

.imdbImg,
.rtImg {
  pointer-events: none;
}

.glass {
  backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  transition: background 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.glass.show {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

@media (min-width: 640px) {
  .content-grid {
    gap: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .content-grid {
    gap: 2.5rem;
    padding: 0 3rem;
  }
}

/* ========================================
   POSTER CARD BASE STYLES
   ======================================== */
.poster-card {
  width: 100%;
  max-width: 280px;
  min-width: 240px;
  flex: 0 0 auto;
  background: transparent;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  transform: translateZ(0); /* Enables hardware acceleration */
  will-change: transform; /* Optimizes for animated properties */
  contain: layout style paint; /* Improves rendering performance */
  min-height: 480px;
  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); */
  transition: 
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backface-visibility: hidden; /* Prevents flickering during transforms */
}

a.group-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

a.group-card:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.72);
  outline-offset: 6px;
}

/* ========================================
   CARD HOVER EFFECTS
   ======================================== */
.card-hover {
  cursor: pointer;
}

.poster-image:hover {
  transform: scale(1.02);
  z-index: 10;
}

.poster-card:hover .poster-info {
  border-radius: 0;
  transition: none;
}

.poster-info {
  position: absolute;
  bottom: 60px;
  left: 0;
  right: 0;
  padding: 1rem 0.75rem 0.5rem 0.75rem;
  text-align: center;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.7) 50%,
    rgba(0, 0, 0, 0.3) 80%,
    transparent 100%
  );

  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  border-radius: 0 0 12px 12px;
  transition: border-radius 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   POSTER IMAGE CONTAINER
   ======================================== */
.poster-image-container {
    position: relative;
    width: 100%;
    height: auto; /* Changed from 100% to auto for better flexibility with aspect-ratio */
    overflow: hidden;
    aspect-ratio: 2 / 3; /* Keeps movie poster proportions */
    border-radius: 8px 8px 0 0;
  }

.poster-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  background-color: transparent;
  transition: transform 0.2s ease;
  border-radius: 12px;
}

@media (hover: none) {
  .card-hover:hover,
  .poster-card:hover {
    transform: none;
    border-color: transparent; /* Reset border */
  }
}


.modal-download {
  color: white;
}

.modal-download:hover {
  color: black;
}

/* .poster-card:hover {
  transform: scale(1.015);
} */

/* ========================================
   POSTER INFO SECTION
   ======================================== */
.poster-info {
  position: absolute;
  bottom: 60px;
  left: 0;
  right: 0;
  padding: 1rem 0.75rem 0.5rem 0.75rem;
  text-align: center;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.7) 50%,
    rgba(0, 0, 0, 0.3) 80%,
    transparent 100%
  );

  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  border-radius: 0 0 12px 12px;
  transition: border-radius 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* .poster-title {
  position: relative;
  font-size: 1.1rem;
  color: #ffffff;
  margin-top: 2rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.025em;
  transition: all 0.3s ease;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;

  overflow: hidden;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
    "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.2px;
} */

#posterMovieText {
  text-shadow: 0 0 0.2em #1a1a1a;
}

/* ========================================
   POSTER TAGS
   ======================================== */
.poster-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  justify-content: center;
  align-items: center;
  margin-top: 0.25rem;
}

.poster-tags .tag {
  background: rgba(26, 26, 26, 0.8);
  color: var(--gray-400);
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
  white-space: nowrap;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poster-tags .tag:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  transform: translateY(-1px);
}

/* ========================================
   POSTER ACTIONS
   ======================================== */
.poster-actions {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 4;
}

/* ========================================
   RATINGS CONTAINER
   ======================================== */
.poster-ratings {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1px;
  z-index: 3;
  padding: 0;
  background: transparent;
  height: 60px;
}

/* ========================================
   RATING BASE STYLES
   ======================================== */
.rating {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  position: relative;
  transition: transform 0.2s ease;
  cursor: pointer;
  min-height: 60px;
  text-align: center;
  height: 100%;
}

.rating::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: -1;
}

.poster-card:hover .rating::before {
  opacity: 1;
}

.rating-logo {
  width: 24px;
  height: 20px;
  object-fit: contain;
  margin-bottom: 4px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8));
  transition: transform 0.2s ease;
}

.rating-value {
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
  transition: transform 0.2s ease;
}

/* ========================================
   IMDB RATING (MOVIES & SHOWS)
   ======================================== */
.imdb-rating {
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.95) 0%,
    rgba(255, 193, 7, 0.95) 50%,
    rgba(255, 160, 0, 0.95) 100%
  );
  color: #1a1a1a;
  border-bottom-left-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.imdb-rating::before {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 50%,
    rgba(0, 0, 0, 0.05) 100%
  );
}

.poster-card:hover .imdb-rating {
  transform: translateY(-1px);
}

.poster-card:hover .imdb-rating .rating-logo,
.poster-card:hover .imdb-rating .rating-value {
  transform: scale(1.02);
}

/* ========================================
   ROTTEN TOMATOES RATING (MOVIES & SHOWS)
   ======================================== */
.rt-rating {
  background: linear-gradient(
    135deg,
    rgba(255, 77, 77, 0.95) 0%,
    rgba(220, 53, 69, 0.95) 50%,
    rgba(200, 35, 51, 0.95) 100%
  );
  color: #ffffff;
  border-bottom-right-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.rt-rating::before {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0%,
    transparent 50%,
    rgba(0, 0, 0, 0.05) 100%
  );
}

.poster-card:hover .rt-rating {
  transform: translateY(-1px);
}


/* ========================================
   GAMES SPECIFIC RATINGS
   Uses same classes but different styling
   ======================================== */
.games-page .imdb-rating {
  /* Metacritic style for games */
  background: linear-gradient(135deg, #ffcc34, #ff9f00);
  color: #1a1a1a;
  border-bottom-left-radius: 12px;
}

.games-page .rt-rating {
  /* User rating style for games */
  background: linear-gradient(135deg, #4a90e2, #357abd);
  color: #ffffff;
  border-bottom-right-radius: 12px;
}

/* ========================================
   LOADING STATES
   ======================================== */
.rating.loading .rating-value {
  color: transparent;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
  min-width: 30px;
  min-height: 14px;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* ========================================
   FLOATING ELEMENTS ARCHITECTURE
   ======================================== */

/* Base floating element styles - positioned fixed for viewport-level positioning */
.floating-element {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.08;
  z-index: -1; /* Behind content but above background */
  animation: float 8s ease-in-out infinite;
  will-change: transform; /* Optimize for animations */
  pointer-events: none; /* Prevent interaction */
}

.floating-element:nth-child(1) {
  top: 10vh;
  right: 10vw;
  width: 300px;
  height: 300px;
  animation-delay: 0s;
}

.floating-element:nth-child(2) {
  top: 60vh;
  left: 10vw;
  width: 400px;
  height: 400px;
  animation-delay: -4s;
}

/* Floating element animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

/* Professional floating in animation */
@keyframes floatInProfessional {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(30px);
    filter: blur(3px);
  }
  to {
    opacity: 0.08;
    transform: scale(1) translateY(0);
    filter: blur(60px);
  }
}

/* Page load floating animation */
@keyframes floatIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  to {
    opacity: 0.08;
    transform: scale(1) translateY(0);
  }
}

/* Enhanced floating elements with professional animation */
.page-floating-elements .floating-element {
  opacity: 0;
  animation: floatInProfessional 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s forwards;
}

.page-floating-elements .floating-element:nth-child(2) {
  animation-delay: 0.8s;
}



/* ========================================
   NO RESULTS STATE
   ======================================== */
.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--silver);
}

.no-results h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--white);
  font-weight: 700;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {

  .imdbImg {
    display: none;
  }

  .rtImg {
    display: none;
  }

  .content-grid {
    gap: 1.5rem;
    padding: 0 1.5rem;
    justify-content: center;
  }

  /* Specific styling for latest uploads grid */
  .latest-uploads-grid {
    /* Force 2x2 grid for latest uploads on mobile */
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
    margin: 0 auto;
  }

  /* Specific styling for search results grid */
  .search-results-grid {
    /* Force 2x2 grid for search results on mobile */
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
    margin: 0 auto;
  }

  /* Specific styling for category grids */
  .movies-grid,
  .shows-grid,
  .games-grid,
  .resources-grid {
    /* Force 2x2 grid for category pages on mobile */
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
    margin: 0 auto;
    gap: 0.5rem;
    padding: 0 0.5rem;
    align-content: start;
  }

  .poster-card {
    max-width: 180px;
    min-width: 150px;
    min-height: 360px;
  }

  /* Latest uploads specific card styling */
  .latest-uploads-grid .poster-card {
    max-width: none;
    min-width: 0;
    width: 100%;
  }

  /* Search results specific card styling */
  .search-results-grid .poster-card {
    max-width: none;
    min-width: 0;
    width: 100%;
    /* Change to flexbox layout for mobile search results */
    display: flex;
    flex-direction: column;
    position: relative;
  }

  /* Category grids specific card styling */
  .movies-grid .poster-card,
  .shows-grid .poster-card,
  .games-grid .poster-card,
  .resources-grid .poster-card {
    max-width: 180px;
    min-width: 150px;
    width: auto;
    /* Change to flexbox layout for mobile category pages */
    display: flex;
    flex-direction: column;
    position: relative;
  }

  /* Category grids specific image container */
  .movies-grid .poster-image-container,
  .shows-grid .poster-image-container,
  .games-grid .poster-image-container,
  .resources-grid .poster-image-container {
    position: static;
    width: 100%;
    height: auto;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
  }

  .movies-grid .poster-info,
  .shows-grid .poster-info,
  .games-grid .poster-info,
  .resources-grid .poster-info {
    position: static;
    padding: 0rem 0rem 0.25rem 0.5rem;
    text-align: center;
    min-height: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    border-radius: 0;
    margin-top: 0;
    margin-bottom: 0;
  }

  /* Category grids specific poster info */
  /* Search results specific image container */
  .search-results-grid .poster-image-container {
    position: static;
    width: 100%;
    height: auto;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
  }

  /* Search results specific poster info - position below image */
  .search-results-grid .poster-info {
    position: static;
    bottom: auto;
    left: auto;
    right: auto;
    padding: 0.75rem 0.5rem 0.25rem 0.5rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    min-height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    border-radius: 0;
    margin-top: 0;
    margin-bottom: 0;
  }

  /* Search results specific poster ratings - position below text */
  .search-results-grid .poster-ratings {
    position: static;
    bottom: auto;
    left: auto;
    right: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1px;
    z-index: 3;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.6);
    height: auto;
    min-height: 50px;
    border-radius: 0 0 8px 8px;
    margin-top: 0;
  }

  /* Category grids specific poster ratings */
  .movies-grid .poster-ratings,
  .shows-grid .poster-ratings,
  .games-grid .poster-ratings,
  .resources-grid .poster-ratings {
    position: static;
    bottom: auto;
    left: auto;
    right: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1px;
    z-index: 3;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.6);
    height: auto;
    min-height: 50px;
    border-radius: 0 0 8px 8px;
    margin-top: 0;
  }

  .poster-image-container {
    height: 240px;
  }

  .poster-info {
    padding: 0.75rem 0.5rem 0.25rem 0.5rem;
    min-height: 60px;
  }

  .poster-title {
    font-size: 0.9rem;
  }

  .rating-logo {
    width: 18px;
    height: 16px;
  }

  .rating-value {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {

  .poster-tags {
    display: none;
  }


  .content-grid {
    gap: 1rem;
    padding: 0 1rem;
    justify-content: center;
  }

  /* Specific styling for latest uploads grid */
  .latest-uploads-grid {
    /* Maintain 2x2 grid for latest uploads on small mobile */
    grid-template-columns: repeat(2, 1fr);
    max-width: 400px;
    margin: 0 auto;
  }

  /* Specific styling for search results grid */
  .search-results-grid {
    /* Maintain 2x2 grid for search results on small mobile */
    grid-template-columns: repeat(2, 1fr);
    max-width: 400px;
    margin: 0 auto;
  }

  /* Specific styling for category grids */
  .movies-grid,
  .shows-grid,
  .games-grid,
  .resources-grid {
    /* Maintain 2x2 grid for category pages on small mobile */
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
    margin: 0 auto;
    gap: 0.5rem;
    padding: 0 0.5rem;
    align-content: start;
  }

  .poster-card {
    max-width: 160px;
    min-width: 140px;
    min-height: 320px;
  }

  /* Latest uploads specific card styling */
  .latest-uploads-grid .poster-card {
    max-width: none;
    min-width: 0;
    width: 100%;
  }

  /* Search results specific card styling */
  .search-results-grid .poster-card {
    max-width: none;
    min-width: 0;
    width: 100%;
    /* Change to flexbox layout for mobile search results */
    display: flex;
    flex-direction: column;
    position: relative;
  }

  .poster-card {
    min-height: 300px !important;
  }

  /* Category grids specific card styling */
  .movies-grid .poster-card,
  .shows-grid .poster-card,
  .games-grid .poster-card,
  .resources-grid .poster-card {
    max-width: 160px;
    min-width: 140px;
    width: auto;
  }

  /* Search results specific image container */
  .search-results-grid .poster-image-container {
    position: static;
    width: 100%;
    height: auto;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
  }

  /* Search results specific poster info - position below image */
  .search-results-grid .poster-info {
    position: static;
    top: 500px;
    bottom: auto;
    left: auto;
    right: auto;
    padding: 0.5rem 0.5rem 0.25rem 0.5rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    border-radius: 0;
    margin-top: 0;
    margin-bottom: 0;
  }

  /* Search results specific poster ratings - position below text */
  .search-results-grid .poster-ratings {
    position: static;
    bottom: auto;
    left: auto;
    right: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1px;
    z-index: 3;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.6);
    height: auto;
    min-height: 50px;
    border-radius: 0 0 8px 8px;
    margin-top: 0;
  }

  /* Category grids specific poster ratings */
  .movies-grid .poster-ratings,
  .shows-grid .poster-ratings,
  .games-grid .poster-ratings,
  .resources-grid .poster-ratings {
    position: static;
    bottom: auto;
    left: auto;
    right: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1px;
    z-index: 3;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.6);
    height: auto;
    min-height: 50px;
    border-radius: 0 0 8px 8px;
    margin-top: 0;
  }

  .poster-image-container {
    height: 240px;
  }

  .floating-element {
    display: none; /* Hide on very small screens for performance */
  }
}

@media (max-width: 360px) {
  .content-grid {
    gap: 0.75rem;
    padding: 0 0.75rem;
  }

  /* Specific styling for latest uploads grid */
  .latest-uploads-grid {
    /* Maintain 2x2 grid for latest uploads on very small mobile */
    grid-template-columns: repeat(2, 1fr);
    max-width: 320px;
    margin: 0 auto;
  }

  /* Specific styling for search results grid */
  .search-results-grid {
    /* Maintain 2x2 grid for search results on very small mobile */
    grid-template-columns: repeat(2, 1fr);
    max-width: 320px;
    margin: 0 auto;
  }

  /* Specific styling for category grids */
  .movies-grid,
  .shows-grid,
  .games-grid,
  .resources-grid {
    /* Maintain 2x2 grid for category pages on very small mobile */
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
    margin: 0 auto;
    gap: 0.5rem;
    padding: 0 0.5rem;
    align-content: start;
  }

  .poster-card {
    min-height: 320px;
  }

  /* Latest uploads specific card styling */
  .latest-uploads-grid .poster-card {
    min-height: 320px;
  }

  /* Search results specific card styling */
  .search-results-grid .poster-card {
    min-height: 320px;
    /* Change to flexbox layout for mobile search results */
    display: flex;
    flex-direction: column;
  }

  /* Category grids specific card styling */
  .movies-grid .poster-card,
  .shows-grid .poster-card,
  .games-grid .poster-card,
  .resources-grid .poster-card {
    max-width: 140px;
    min-width: 120px;
    min-height: 320px;
    width: auto;
  }

  /* Search results specific image container */
  .search-results-grid .poster-image-container {
    position: static;
    width: 100%;
    height: auto;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
  }

  /* Search results specific poster info - position below image */
  .search-results-grid .poster-info {
    position: static;
    bottom: auto;
    left: auto;
    right: auto;
    padding: 0.4rem 0.25rem 0.2rem 0.25rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    min-height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    border-radius: 0;
    margin-top: 0;
    margin-bottom: 0;
  }

  /* Search results specific poster ratings - position below image */
  .search-results-grid .poster-ratings {
    position: static;
    bottom: auto;
    left: auto;
    right: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1px;
    z-index: 3;
    padding: 0.4rem;
    background: rgba(0, 0, 0, 0.6);
    height: auto;
    min-height: 40px;
    border-radius: 0 0 8px 8px;
    margin-top: 0;
  }

  /* Category grids specific poster ratings */
  .movies-grid .poster-ratings,
  .shows-grid .poster-ratings,
  .games-grid .poster-ratings,
  .resources-grid .poster-ratings {
    position: static;
    bottom: auto;
    left: auto;
    right: auto;
    display: flex;
    justify-content: center;
    align-items: center;
      gap: 1px;
    z-index: 3;
    padding: 0.4rem;
    background: rgba(0, 0, 0, 0.6);
    height: auto;
    min-height: 40px;
    border-radius: 0 0 8px 8px;
    margin-top: 0;
  }

  .poster-image-container {
    height: 240px;
  }

  .poster-info {
    padding: 0.5rem 0.25rem 0.25rem 0.25rem;
    min-height: 50px;
  }

  .poster-title {
    font-size: 0.8rem;
  }
}

/* ========================================
   PLATFORM DISPLAY STYLES
   ======================================== */
.platform-display {
  font-size: 0.875rem;
  color: #d1d5db;
  font-weight: 500;
  letter-spacing: 0.025em;
}

.platform-display .platform-separator {
  color: #6b7280;
  margin: 0 0.5rem;
  font-weight: 300;
}

/* Platform-specific styling for better visual hierarchy */
#modalGamePlatform {
  font-size: 0.875rem;
  font-weight: 500;
  color: #e5e7eb;
  line-height: 1.25;
  word-break: break-word;
  max-width: 100%;
}

/* Enhanced platform info styling in cards */
.platform-info {
  font-size: 0.75rem;
  color: #9ca3af;
  font-weight: 500;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  max-width: 100%;
}

/* Responsive platform display */
@media (max-width: 640px) {
  #modalGamePlatform {
    font-size: 0.8125rem;
  }
  
  .platform-info {
    font-size: 0.6875rem;
  }
}

/* ========================================
   EXTRA SMALL SCREENS (450px and below) - CATEGORIES ONLY
   ======================================== */
