/* ==========================================================================
   MOVIE2FREE.CO.UK — Luxury Widescreen Desktop & Mobile Cinema Design System
   Inspired by Apple TV+ & Netflix Modern Dark Interface
   ========================================================================== */

:root {
  --bg-void: #06070b;
  --bg-base: #090b12;
  --bg-surface: #10131e;
  --bg-card: #131724;
  --bg-card-hover: #191f31;
  --bg-glass: rgba(9, 11, 18, 0.82);
  --crimson: #e50914;
  --crimson-bright: #ff1f2d;
  --crimson-glow: rgba(229, 9, 20, 0.38);
  --gold: #f5c518;
  --gold-soft: rgba(245, 197, 24, 0.14);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #8b9bb4;
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --font-sans: 'Prompt', 'Kanit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container-max: 1440px;
  --header-h-mobile: 58px;
  --header-h-desktop: 72px;
  --bottom-nav-h: 62px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  background-color: var(--bg-void);
  color: var(--text-primary);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-void);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(229, 9, 20, 0.08), transparent 70%),
    radial-gradient(ellipse 60% 40% at 85% 15%, rgba(30, 58, 138, 0.08), transparent 65%);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 900px) {
  body {
    padding-bottom: 0;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

/* Unified Widescreen Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 3vw, 2.75rem);
  padding-right: clamp(1rem, 3vw, 2.75rem);
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

/* ==========================================================================
   Luxury Sticky Header (Mobile & Desktop Widescreen)
   ========================================================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h-mobile);
  background: var(--bg-glass);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.25s ease;
}

@media (min-width: 900px) {
  .app-header {
    height: var(--header-h-desktop);
  }
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.app-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.app-logo .logo-m2f {
  background: linear-gradient(135deg, #ff1f2d 0%, #b80610 100%);
  color: #ffffff;
  font-family: 'Kanit', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  padding: 0.28rem 0.65rem;
  border-radius: 9px;
  box-shadow: 0 4px 16px rgba(229, 9, 20, 0.45);
}

.app-logo .logo-wordmark {
  font-family: 'Kanit', sans-serif;
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: 0.04em;
  color: #ffffff;
  display: none;
}

@media (min-width: 480px) {
  .app-logo .logo-wordmark {
    display: inline-block;
  }
}

.app-logo .logo-wordmark em {
  font-style: normal;
  color: var(--crimson-bright);
}

/* Desktop Navigation Links */
.desktop-nav {
  display: none;
}

@media (min-width: 960px) {
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
  }
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s var(--ease-out);
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  color: #ffffff;
  font-weight: 600;
  background: rgba(229, 9, 20, 0.16);
  border-color: rgba(229, 9, 20, 0.38);
}

/* Multi-column Luxury Category Dropdown */
.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  font-family: inherit;
  border-color: var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 0;
  min-width: 360px;
  background: rgba(14, 17, 27, 0.97);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 0.65rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.78);
  z-index: 1200;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem;
}

.nav-dropdown::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 0.65rem;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  display: grid;
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all 0.16s ease;
}

.dropdown-item:hover,
.dropdown-item.active {
  background: rgba(229, 9, 20, 0.18);
  color: #ffffff;
}

.cat-count {
  font-size: 0.72rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-muted);
}

/* Desktop Inline Search Pill + Mobile Toggle */
.app-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.desktop-search-form {
  display: none;
  position: relative;
  align-items: center;
}

@media (min-width: 768px) {
  .desktop-search-form {
    display: flex;
  }
  .mobile-search-btn {
    display: none !important;
  }
}

.desktop-search-input {
  width: 220px;
  height: 38px;
  padding: 0 2.4rem 0 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  transition: all 0.25s var(--ease-out);
}

@media (min-width: 1200px) {
  .desktop-search-input {
    width: 260px;
  }
  .desktop-search-input:focus {
    width: 310px;
  }
}

.desktop-search-input::placeholder {
  color: var(--text-muted);
}

.desktop-search-input:focus {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(229, 9, 20, 0.6);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.15);
}

.desktop-search-submit {
  position: absolute;
  right: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.18s ease;
}

.desktop-search-submit:hover {
  color: #ffffff;
}

.mobile-search-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Mobile Search Overlay */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(6, 7, 11, 0.97);
  backdrop-filter: blur(20px);
  flex-direction: column;
}

.search-overlay.active {
  display: flex;
}

.search-overlay-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.search-overlay-form {
  flex: 1;
}

.search-overlay-form input {
  width: 100%;
  height: 44px;
  padding: 0 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
}

.search-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 1.1rem;
  cursor: pointer;
}

/* ==========================================================================
   Cinematic Ambient Hero Spotlight (Crisp on 4K Desktop Monitors)
   ========================================================================== */
.hero-spotlight {
  position: relative;
  overflow: hidden;
  padding: clamp(2.2rem, 4.5vw, 4.2rem) 0;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-ambient-bg {
  position: absolute;
  inset: -40px;
  background-size: cover;
  background-position: center;
  filter: blur(48px) saturate(1.35) brightness(0.32);
  transform: scale(1.12);
  pointer-events: none;
  z-index: 0;
}

.hero-ambient-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 45%, rgba(229, 9, 20, 0.14), transparent 55%),
    linear-gradient(90deg, rgba(6, 7, 11, 0.95) 0%, rgba(6, 7, 11, 0.72) 55%, rgba(6, 7, 11, 0.45) 100%),
    linear-gradient(180deg, rgba(6, 7, 11, 0.25) 0%, rgba(6, 7, 11, 0.98) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr 270px;
    gap: 3.5rem;
  }
}

@media (min-width: 1280px) {
  .hero-container {
    grid-template-columns: 1fr 300px;
    gap: 4.5rem;
  }
}

.spotlight-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ff8087;
  background: rgba(229, 9, 20, 0.14);
  border: 1px solid rgba(229, 9, 20, 0.35);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(1.75rem, 3.2vw, 2.85rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin-bottom: 0.45rem;
  max-width: 24ch;
}

.hero-title-en {
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  color: var(--text-muted);
  margin-bottom: 1.15rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.hero-synopsis {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 68ch;
  margin-bottom: 1.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.hero-poster-box {
  display: none;
}

@media (min-width: 900px) {
  .hero-poster-box {
    display: block;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow:
      0 28px 60px rgba(0, 0, 0, 0.8),
      0 0 40px rgba(229, 9, 20, 0.12);
    transform: perspective(1000px) rotateY(-4deg);
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  }
  .hero-poster-box:hover {
    transform: perspective(1000px) rotateY(0deg) translateY(-4px);
    box-shadow:
      0 32px 70px rgba(0, 0, 0, 0.88),
      0 0 50px rgba(229, 9, 20, 0.22);
  }
}

.hero-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.65rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.24s var(--ease-out);
}

.btn-primary {
  background: linear-gradient(135deg, #f0111d 0%, #b80610 100%);
  color: #ffffff;
  box-shadow: 0 8px 26px rgba(229, 9, 20, 0.42);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(229, 9, 20, 0.58);
  filter: brightness(1.06);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  border-color: rgba(255, 255, 255, 0.14);
  color: #f8fafc;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.25);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.24rem 0.62rem;
  border-radius: 7px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(15, 18, 28, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

.badge-quality {
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.92), rgba(168, 6, 15, 0.92));
  border-color: rgba(255, 110, 115, 0.4);
  color: #ffffff;
  font-weight: 700;
}

.badge-rating {
  background: rgba(12, 14, 22, 0.82);
  border-color: rgba(245, 197, 24, 0.4);
  color: #fbbf24;
  font-weight: 700;
}

/* ==========================================================================
   Category Filter Pills Row
   ========================================================================== */
.category-filter-section {
  margin: 0.5rem 0 1.75rem;
}

.category-pills {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0.35rem 0;
  scrollbar-width: none;
}

.category-pills::-webkit-scrollbar {
  display: none;
}

.category-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
  transition: all 0.2s var(--ease-out);
}

.category-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
}

.category-pill.active {
  color: #ffffff;
  font-weight: 600;
  background: linear-gradient(135deg, #e50914 0%, #b20710 100%);
  border-color: rgba(255, 95, 100, 0.5);
  box-shadow: 0 4px 16px rgba(229, 9, 20, 0.32);
}

.pill-count {
  font-size: 0.74rem;
  opacity: 0.72;
}

/* ==========================================================================
   Section Headers & Widescreen Movie Poster Grid
   ========================================================================== */
.movies-section {
  padding-bottom: 3rem;
}

.page-header-banner {
  padding: 1.75rem 0 1.25rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(19, 23, 36, 0.45) 0%, transparent 100%);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.breadcrumb a {
  color: var(--text-secondary);
  transition: color 0.18s ease;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.breadcrumb-sep {
  color: rgba(255, 255, 255, 0.22);
}

.breadcrumb-current {
  color: #ffffff;
  font-weight: 600;
}

.page-description {
  margin-top: 0.4rem;
  color: var(--text-muted);
  font-size: 0.94rem;
  padding-left: 0.85rem;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.section-title {
  position: relative;
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  font-weight: 700;
  color: #ffffff;
  padding-left: 0.85rem;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, #ff1f2d, #b80610);
}

.section-subtitle {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  padding-left: 0.85rem;
}

.section-page-indicator {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
}

/* Responsive Luxury Poster Grid */
.movie-grid,
.movies-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 540px) {
  .movie-grid,
  .movies-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
  }
}

@media (min-width: 840px) {
  .movie-grid,
  .movies-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.35rem;
  }
}

@media (min-width: 1120px) {
  .movie-grid,
  .movies-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.45rem;
  }
}

@media (min-width: 1360px) {
  .movie-grid,
  .movies-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.movie-card {
  position: relative;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(22, 27, 42, 0.72) 0%, rgba(14, 17, 27, 0.92) 100%);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 20px 40px -12px rgba(0, 0, 0, 0.82),
    0 0 24px rgba(229, 9, 20, 0.14);
}

.movie-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.poster-wrap,
.movie-poster-wrap,
.movie-card-poster {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #0d1018;
}

.poster-wrap::after,
.movie-card-poster::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(11, 14, 22, 0.88) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.movie-poster,
.poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s var(--ease-out);
}

.movie-card:hover .movie-poster {
  transform: scale(1.06);
}

.badge-top-left,
.card-badge-tl {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
}

.badge-top-right,
.card-badge-tr {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
}

/* Keep poster clean: hide redundant bottom badges that duplicate card meta below */
.poster-bottom-bar,
.card-badge-bl,
.card-badge-br {
  display: none;
}

.play-overlay,
.poster-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 14, 0.42);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  opacity: 0;
  transition: opacity 0.25s var(--ease-out);
  z-index: 3;
}

.play-button-circle,
.play-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(229, 9, 20, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 3px;
  font-size: 1.05rem;
  box-shadow: 0 8px 24px rgba(229, 9, 20, 0.55);
  transform: scale(0.84);
  transition: transform 0.28s var(--ease-out);
}

.play-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.03em;
}

.movie-card:hover .play-overlay,
.movie-card:hover .poster-overlay {
  opacity: 1;
}

.movie-card:hover .play-button-circle,
.movie-card:hover .play-icon {
  transform: scale(1);
}

.movie-info,
.movie-card-body,
.movie-card-info {
  padding: 0.85rem 0.85rem 0.95rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.movie-meta,
.movie-card-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-bottom: 0.32rem;
}

.movie-audio-inline::before {
  content: '• ';
  opacity: 0.5;
}

.movie-title,
.movie-card-title {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  color: #f8fafc;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.movie-card:hover .movie-card-title {
  color: #ffffff;
}

.movie-title-en,
.movie-card-subtitle,
.movie-card-en {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   Pagination & Empty States
   ========================================================================== */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2.5rem 0 1rem;
}

.page-btn {
  padding: 0.62rem 1.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-strong);
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
  transition: all 0.22s var(--ease-out);
}

.page-btn:hover:not(.disabled) {
  background: var(--crimson);
  border-color: var(--crimson);
  box-shadow: 0 6px 20px var(--crimson-glow);
}

.page-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.page-info {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.empty-state,
.empty-state-box {
  text-align: center;
  padding: 4rem 1.5rem;
  background: rgba(18, 22, 34, 0.72);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin: 2rem 0;
}

/* ==========================================================================
   Footer & Mobile Bottom Nav
   ========================================================================== */
.site-footer {
  margin-top: 3rem;
  background: #040508;
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0 2rem;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  margin-bottom: 2rem;
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1.8fr 1.2fr 1fr;
    gap: 3rem;
  }
}

.footer-seo-title {
  color: #ffffff;
  font-family: 'Kanit', sans-serif;
  font-size: 1.12rem;
  margin-bottom: 0.65rem;
}

.footer-seo-desc {
  line-height: 1.75;
  color: var(--text-muted);
}

.footer-heading {
  color: #f8fafc;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 0.9rem;
}

.footer-links {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1rem;
}

.footer-links a {
  color: var(--text-muted);
  transition: color 0.18s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-h);
  background: rgba(7, 8, 13, 0.94);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1500;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (min-width: 900px) {
  .bottom-nav {
    display: none !important;
  }
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 500;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
  color: #ffffff;
}

/* ============================================================================
   SEO Topic Cluster Silo & Year Quick-Filter Chips
   ============================================================================ */
.seo-cluster-silo {
  margin-top: 1.75rem;
  padding: 1.15rem 1.25rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.seo-cluster-group {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.55rem 0.75rem;
}

.seo-cluster-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #e2e8f0;
  padding-top: 0.22rem;
  white-space: nowrap;
}

.seo-cluster-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  flex: 1;
  min-width: 220px;
}

.seo-cluster-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.24rem 0.68rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 400;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.2s ease;
}

.seo-cluster-chip:hover,
.seo-cluster-chip.active {
  color: #ffffff;
  background: rgba(229, 9, 20, 0.2);
  border-color: rgba(229, 9, 20, 0.48);
}

.year-filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.year-filter-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: #94a3b8;
  margin-right: 0.25rem;
}

.chinese-spotlight-section {
  padding-top: 0.5rem;
}

.section-more-link {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #f8fafc;
  background: rgba(229, 9, 20, 0.16);
  border: 1px solid rgba(229, 9, 20, 0.42);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.section-more-link:hover {
  background: #e50914;
  border-color: #e50914;
  color: #ffffff;
}

.seo-authority-section {
  padding: 0.5rem 0 2.5rem;
}

.seo-authority-card {
  padding: 1.35rem 1.6rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(17, 20, 32, 0.92) 0%, rgba(10, 12, 20, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.seo-authority-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 0.5rem;
}

.seo-authority-text {
  font-size: 0.86rem;
  line-height: 1.75;
  color: #94a3b8;
  margin: 0;
}

.seo-authority-text a,
.footer-seo-desc a {
  color: #e2e8f0;
  text-decoration: underline;
  text-decoration-color: rgba(229, 9, 20, 0.55);
  text-underline-offset: 3px;
}

.seo-authority-text a:hover,
.footer-seo-desc a:hover {
  color: #ffffff;
  text-decoration-color: #e50914;
}

.site-announcement {
  background: linear-gradient(90deg, rgba(229, 9, 20, 0.18) 0%, rgba(16, 20, 32, 0.92) 50%, rgba(229, 9, 20, 0.18) 100%);
  border-bottom: 1px solid rgba(229, 9, 20, 0.35);
  color: #f8fafc;
  font-size: 0.86rem;
  font-weight: 500;
  padding: 0.55rem 0;
  text-align: center;
}

/* ============================================================================
   Per-Domain Brand Logo Emblem & Segmented Theme (MOVIE2FREE Crimson vs JADEPLAY Emerald-Gold)
   ============================================================================ */
.brand-emblem-img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.brand-tagline-pill {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.14rem 0.48rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  margin-left: 0.15rem;
}

.seo-authority-body p {
  font-size: 0.87rem;
  line-height: 1.8;
  color: #94a3b8;
  margin: 0 0 0.75rem 0;
}
.seo-authority-body p:last-child {
  margin-bottom: 0;
}
.seo-authority-body a {
  color: #e2e8f0;
  text-decoration: underline;
  text-decoration-color: rgba(229, 9, 20, 0.55);
  text-underline-offset: 3px;
}

/* JADEPLAY (movie2free.uk) Imperial Emerald Jade & Royal Gold Brand Theme */
body.theme-jade {
  --accent: #10b981;
  --accent-hover: #059669;
  --accent-glow: rgba(16, 185, 129, 0.35);
  background-color: #040a09;
}

body.theme-jade .app-header {
  background: rgba(4, 13, 11, 0.88);
  border-bottom-color: rgba(16, 185, 129, 0.16);
}

body.theme-jade .logo-wordmark em {
  color: #10b981;
}

body.theme-jade .brand-tagline-pill {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

body.theme-jade .nav-link.active,
body.theme-jade .nav-link:hover {
  color: #34d399;
}

body.theme-jade .category-pill.active,
body.theme-jade .btn-primary,
body.theme-jade .play-button-circle {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%) !important;
  border-color: rgba(52, 211, 153, 0.45) !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.32);
}

body.theme-jade .spotlight-tag {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.42);
  color: #6ee7b7;
}

body.theme-jade .section-more-link,
body.theme-jade .seo-cluster-chip.active {
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.4);
}

body.theme-jade .seo-authority-card {
  background: linear-gradient(135deg, rgba(6, 24, 20, 0.92) 0%, rgba(4, 13, 11, 0.94) 100%);
  border-color: rgba(16, 185, 129, 0.18);
}

body.theme-jade .seo-authority-body a,
body.theme-jade .footer-seo-desc a {
  text-decoration-color: rgba(16, 185, 129, 0.6);
}

/* Partner SEO Backlinks Bar */
.partner-backlinks-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  padding: 0.95rem 0.75rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.86rem;
}

.partner-label {
  color: #fbbf24;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-right: 0.25rem;
}

.partner-sep {
  color: rgba(255, 255, 255, 0.28);
  user-select: none;
}

.partner-anchor {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.18s ease;
}

.partner-anchor:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ==========================================================================
   V16 UPGRADE: Native Mobile & Desktop App — Dark Obsidian & Royal Gold Theme
   ========================================================================== */
:root {
  --obs-root: #07080d;
  --obs-surface: #0f131f;
  --obs-card: #141928;
  --obs-glass: rgba(10, 13, 22, 0.92);
  --border-gold: rgba(245, 158, 11, 0.36);
  --gold-primary: #f59e0b;
  --gold-light: #fbbf24;
  --gold-gradient: linear-gradient(135deg, #fde047 0%, #f59e0b 55%, #d97706 100%);
  --gold-glow: rgba(245, 158, 11, 0.26);
  --bottom-nav-h: 68px;
}

html,
body.cinema-body,
body.theme-jade,
body.theme-crimson {
  background-color: var(--obs-root) !important;
  background-image: radial-gradient(ellipse 85% 42% at 50% -8%, rgba(245, 158, 11, 0.08), transparent 72%) !important;
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 640px) {
  .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

/* 1. Sticky 3-Row Mobile / 2-Row Desktop App Header + Category Pill Ribbon */
.app-header {
  height: auto !important;
  background: var(--obs-glass) !important;
  backdrop-filter: blur(18px) saturate(165%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(165%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.app-header .header-inner {
  height: auto !important;
  min-height: 0 !important;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 8px 12px;
}

@media (min-width: 860px) {
  .app-header .header-inner {
    flex-wrap: nowrap;
    min-height: 58px;
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 14px;
  }
}

.app-logo {
  order: 1;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.brand-emblem-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #0c101b;
  border: 1px solid var(--border-gold);
  box-shadow: 0 4px 12px var(--gold-glow);
  overflow: hidden;
  flex-shrink: 0;
}

.brand-emblem-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-brand-stack {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.logo-gold-text,
body.theme-jade .logo-gold-text {
  font-family: 'Kanit', 'Prompt', sans-serif;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-tld-badge {
  font-size: 0.69rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.04em;
}

/* Capsule Search Bar — Inline Full-Width Row 2 on Mobile, Center on Desktop */
.header-search-capsule-wrap {
  position: relative;
  order: 3;
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  display: block;
}

@media (min-width: 860px) {
  .header-search-capsule-wrap {
    order: 2;
    flex: 1 1 440px;
    width: auto;
    max-width: 480px;
  }
}

.capsule-search-form {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  padding: 4px 5px 4px 13px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.capsule-search-form:focus-within {
  border-color: var(--gold-primary);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.14);
}

.capsule-search-icon {
  color: #94a3b8;
  flex-shrink: 0;
}

.capsule-search-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #f8fafc;
  font-family: inherit;
  font-size: 0.85rem;
  padding: 5px 4px;
}

.capsule-search-input::placeholder {
  color: #64748b;
}

.capsule-search-btn {
  border: none;
  border-radius: 999px;
  background: var(--gold-gradient);
  color: #07080d;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 15px;
  cursor: pointer;
  flex-shrink: 0;
  transition: filter 0.18s ease, transform 0.15s ease;
}

.capsule-search-btn:hover {
  filter: brightness(1.06);
  transform: scale(1.02);
}

/* Live Search Dropdown */
.header-live-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #101524;
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.78);
  z-index: 1200;
  max-height: 360px;
  overflow-y: auto;
  padding: 0.3rem;
}

.live-result-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.15s ease;
}

.live-result-item:last-child {
  border-bottom: none;
}

.live-result-item:hover {
  background: rgba(245, 158, 11, 0.12);
}

.live-result-thumb {
  width: 36px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: #182035;
}

.live-result-meta {
  flex: 1;
  min-width: 0;
}

.live-result-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-result-sub {
  font-size: 0.72rem;
  color: var(--gold-light);
  margin-top: 0.1rem;
}

.live-result-play {
  color: var(--gold-light);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.live-empty {
  padding: 0.85rem;
  text-align: center;
  font-size: 0.82rem;
  color: #94a3b8;
}

/* Right Action Pills */
.header-action-pills {
  order: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

@media (min-width: 860px) {
  .header-action-pills {
    order: 3;
  }
}

.hdr-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #cbd5e1;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.hdr-desktop-only {
  display: none;
}

@media (min-width: 900px) {
  .hdr-desktop-only {
    display: inline-flex;
  }
}

.hdr-pill-app {
  display: inline-flex;
  background: rgba(245, 158, 11, 0.14);
  border-color: var(--border-gold);
  color: var(--gold-light);
  font-size: 0.76rem;
  padding: 6px 12px;
}

.hdr-pill:hover {
  border-color: var(--border-gold);
  color: #ffffff;
}

.hdr-pill-gold {
  background: var(--gold-gradient) !important;
  border-color: transparent !important;
  color: #07080d !important;
  font-weight: 700;
  box-shadow: 0 4px 14px var(--gold-glow);
}

/* Sub-Header Category Pill Ribbon */
.cat-ribbon-wrap {
  padding: 0 0 8px;
  background: transparent;
}

@media (min-width: 860px) {
  .cat-ribbon-wrap {
    padding: 0 0 10px;
  }
}

.cat-ribbon {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 8px;
  overflow-x: auto !important;
  white-space: nowrap !important;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding: 2px 0;
}

.cat-ribbon::-webkit-scrollbar {
  display: none;
}

.ribbon-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  scroll-snap-align: start;
  transition: all 0.18s ease;
}

.ribbon-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: var(--border-gold);
}

.ribbon-pill.active {
  background: var(--gold-gradient) !important;
  border-color: transparent !important;
  color: #07080d !important;
  font-weight: 700;
  box-shadow: 0 4px 14px var(--gold-glow);
}

/* 2. Framed Hero Spotlight Card (Mobile App Compact + Desktop Luxury) */
.home-page,
.category-page,
.directory-page {
  padding-top: 12px;
}

@media (min-width: 720px) {
  .home-page,
  .category-page,
  .directory-page {
    padding-top: 18px;
  }
}

.hero-card-frame {
  position: relative;
  border-radius: 18px;
  border: 1px solid var(--border-gold);
  background: #0d111b;
  overflow: hidden;
  padding: 14px;
  margin-bottom: 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

@media (min-width: 720px) {
  .hero-card-frame {
    border-radius: 20px;
    padding: 22px 26px;
    margin-bottom: 26px;
  }
}

.hero-card-glow-bg {
  position: absolute;
  inset: -24px;
  background-size: cover;
  background-position: center;
  filter: blur(28px) brightness(0.3) saturate(1.25);
  z-index: 0;
  pointer-events: none;
}

.hero-card-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

@media (min-width: 720px) {
  .hero-card-inner {
    grid-template-columns: 174px minmax(0, 1fr);
    gap: 24px;
  }
}

.hero-card-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(251, 191, 36, 0.45);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.65);
  background: #131826;
}

@media (min-width: 720px) {
  .hero-card-poster {
    border-radius: 14px;
  }
}

.hero-card-body {
  min-width: 0;
}

.hero-crown-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 6px;
}

@media (min-width: 720px) {
  .hero-crown-pill {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.76rem;
    margin-bottom: 10px;
  }
}

.hero-seo-h1 {
  font-family: 'Kanit', 'Prompt', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.28;
  color: #ffffff;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 720px) {
  .hero-seo-h1 {
    font-size: clamp(1.35rem, 2.3vw, 1.75rem);
    margin-bottom: 10px;
  }
}

.hero-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

@media (min-width: 720px) {
  .hero-meta-chips {
    gap: 8px;
    margin-bottom: 12px;
  }
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  font-size: 0.71rem;
  font-weight: 500;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 720px) {
  .hero-chip {
    padding: 4px 11px;
    font-size: 0.76rem;
  }
}

.hero-card-desc {
  display: none;
}

@media (min-width: 641px) {
  .hero-card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #cbd5e1;
    font-size: 0.88rem;
    line-height: 1.6;
    max-width: 680px;
    margin-bottom: 14px;
  }
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

@media (min-width: 720px) {
  .hero-cta-row {
    gap: 10px;
  }
}

.btn-gold-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--gold-gradient);
  color: #07080d !important;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  border: none;
  box-shadow: 0 6px 18px var(--gold-glow);
  cursor: pointer;
  transition: transform 0.16s ease, filter 0.18s ease;
}

@media (min-width: 720px) {
  .btn-gold-cta {
    padding: 10px 20px;
    font-size: 0.88rem;
    gap: 8px;
  }
}

.btn-gold-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.btn-dark-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc !important;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: border-color 0.18s ease, background 0.18s ease;
}

@media (min-width: 720px) {
  .btn-dark-cta {
    padding: 10px 18px;
    font-size: 0.85rem;
  }
}

.btn-dark-cta:hover {
  border-color: var(--border-gold);
  background: rgba(255, 255, 255, 0.13);
}

/* 3. Shelves, Top 10 Ranked Rail & Obsidian Framed Poster Cards */
.shelf-section {
  margin-bottom: 24px;
}

.shelf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.shelf-title {
  font-family: 'Kanit', 'Prompt', sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 700;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.shelf-right-meta {
  font-size: 0.76rem;
  color: #94a3b8;
  font-weight: 500;
  white-space: nowrap;
}

.shelf-more-gold {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-light);
  white-space: nowrap;
}

.shelf-more-gold:hover {
  text-decoration: underline;
}

.btn-clear-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-family: inherit;
  font-size: 0.74rem;
  cursor: pointer;
}

.btn-clear-pill:hover {
  color: #ffffff;
  border-color: var(--border-gold);
}

/* Horizontal Scroll Shelf (Continue Watching, Saved & Top 10) */
.app-scroll-shelf {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 130px;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.app-scroll-shelf::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) {
  .app-scroll-shelf {
    grid-auto-columns: 160px;
    gap: 14px;
  }
}

.app-card-scroll {
  scroll-snap-align: start;
}

/* Main Responsive Poster Grid (2 Cols on Mobile, 4 on Tablet, 6 on Desktop) */
.app-poster-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 641px) {
  .app-poster-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
  }
}

@media (min-width: 900px) {
  .app-poster-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
  }
}

@media (min-width: 1180px) {
  .app-poster-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
  }
}

/* Obsidian Framed Card */
.app-card {
  display: flex;
  flex-direction: column;
  background: var(--obs-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.app-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-gold);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.58);
}

.app-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.app-poster-box {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(110deg, #121725 8%, #1a2135 18%, #121725 33%);
}

.app-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.28s ease;
}

.app-card:hover .app-poster-img {
  transform: scale(1.04);
}

/* Card Badges Matching Reference Design */
@media (max-width: 640px) {
  .hero-card-poster .badge-ribbon-tl {
    display: none;
  }
}

.badge-ribbon-tl {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 3;
  max-width: calc(100% - 48px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 2px 6px;
  border-radius: 6px;
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #ffffff;
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1.25;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.badge-gold-tr {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(7, 8, 13, 0.86);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .badge-ribbon-tl,
  .badge-gold-tr {
    top: 8px;
    font-size: 0.66rem;
    padding: 2px 7px;
  }
  .badge-ribbon-tl { left: 8px; }
  .badge-gold-tr { right: 8px; }
}

.badge-rank-bl {
  position: absolute;
  bottom: 6px;
  left: 6px;
  z-index: 3;
  min-width: 27px;
  height: 27px;
  padding: 0 7px;
  border-radius: 8px;
  background: var(--gold-gradient);
  color: #07080d;
  font-family: 'Kanit', sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.62);
}

.app-card-hover {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(7, 8, 13, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.app-card:hover .app-card-hover {
  opacity: 1;
}

.app-hover-play {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--gold-gradient);
  color: #07080d;
  font-size: 0.98rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 2px;
  box-shadow: 0 8px 22px var(--gold-glow);
}

.app-card-title {
  margin: 8px 9px 10px;
  padding: 0;
  font-size: 0.81rem;
  font-weight: 500;
  line-height: 1.38;
  color: #f1f5f9;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(0.81rem * 1.38 * 2);
}

.app-card:hover .app-card-title {
  color: var(--gold-light);
}

/* 4. Framed Breadcrumb & Pagination */
.app-breadcrumb-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  margin-bottom: 13px;
  background: var(--obs-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  font-size: 0.8rem;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.app-breadcrumb-bar::-webkit-scrollbar {
  display: none;
}

.bc-back-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-weight: 600;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.bc-item {
  color: #cbd5e1;
}

.bc-item:hover {
  color: var(--gold-light);
}

.bc-sep {
  color: rgba(255, 255, 255, 0.28);
}

.bc-current {
  color: var(--gold-light);
  font-weight: 500;
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 24px;
}

.pg-pill {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--obs-card);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #e2e8f0;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}

.pg-pill:hover {
  border-color: var(--border-gold);
  color: #ffffff;
}

.pg-pill.active {
  background: var(--gold-gradient);
  border-color: transparent;
  color: #07080d;
  font-weight: 800;
}

.pg-dots {
  color: #64748b;
  padding: 0 4px;
}

/* 5. SEO Authority Box & Directory Cards */
.seo-authority-card {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(245, 158, 11, 0.2) !important;
  border-radius: 16px !important;
  padding: clamp(1rem, 2.4vw, 1.55rem) !important;
}

.seo-authority-title {
  color: var(--gold-light) !important;
  font-family: 'Kanit', 'Prompt', sans-serif;
  font-size: clamp(1.02rem, 1.8vw, 1.24rem) !important;
}

.seo-authority-body p {
  color: #94a3b8;
  font-size: 0.88rem;
  line-height: 1.74;
  margin-bottom: 0.75rem;
}

.seo-authority-body p:last-child {
  margin-bottom: 0;
}

.seo-authority-body a {
  color: #f8fafc !important;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(245, 158, 11, 0.65) !important;
  text-underline-offset: 3px;
}

.dir-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

@media (min-width: 720px) {
  .dir-cat-grid {
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 10px;
  }
}

.dir-cat-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 9px 11px;
  border-radius: 11px;
  background: var(--obs-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  transition: border-color 0.18s ease;
}

.dir-cat-card:hover {
  border-color: var(--border-gold);
}

.dir-cat-name {
  font-weight: 600;
  color: #f1f5f9;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dir-cat-count {
  font-size: 0.72rem;
  color: var(--gold-light);
  font-weight: 600;
  flex-shrink: 0;
}

/* 6. 3-Column SEO Directory Footer & Trust Badges */
.site-footer {
  background: #05060a !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 2.2rem 0 1.6rem !important;
}

.footer-grid-v2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  padding-bottom: 1.25rem;
}

@media (min-width: 900px) {
  .footer-grid-v2 {
    grid-template-columns: 1.15fr 1.35fr 0.95fr;
    gap: 2.4rem;
  }
}

.footer-brand-logo {
  margin-bottom: 0.65rem;
}

.footer-usp-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 0.8rem;
}

.usp-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 600;
}

.footer-col-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.footer-cat-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 12px;
}

.footer-cat-grid a,
.footer-dir-links a {
  font-size: 0.82rem;
  color: #94a3b8;
  transition: color 0.16s ease;
}

.footer-cat-grid a:hover,
.footer-dir-links a:hover {
  color: var(--gold-light);
}

.fcat-count {
  color: #64748b;
  font-size: 0.75rem;
}

.footer-dir-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* 7. Mobile 5-Tab Fixed Bottom App Navigation Bar & Raised Royal Gold FAB */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 899px) {
  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(64px + env(safe-area-inset-bottom, 0px));
    background: rgba(10, 13, 22, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    z-index: 1500;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .bnav-item {
    border: none;
    background: transparent;
    color: #94a3b8;
    font-family: inherit;
    font-size: 0.69rem;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    cursor: pointer;
    padding: 4px 0;
    text-decoration: none;
    transition: color 0.16s ease;
  }

  .bnav-item.active,
  .bnav-item:hover {
    color: var(--gold-light);
  }

  .bnav-center {
    position: relative;
    color: var(--gold-light) !important;
    font-weight: 600;
  }

  .bnav-fab {
    width: 42px;
    height: 42px;
    margin-top: -18px;
    border-radius: 50%;
    background: var(--gold-gradient);
    color: #07080d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 2px;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.5), 0 0 0 3px #0a0d16;
  }
}

/* 8. Native Slide-Up Mobile App Sheets & Toast */
.app-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.app-sheet-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.app-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 560px;
  margin: 0 auto;
  max-height: 82dvh;
  background: #101421;
  border-top: 1px solid var(--border-gold);
  border-radius: 22px 22px 0 0;
  z-index: 1650;
  transform: translateY(106%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.78);
}

.app-sheet.open {
  transform: translateY(0);
}

.sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.24);
  margin: 10px auto 4px;
  flex-shrink: 0;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.sheet-header h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
}

.sheet-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0.92rem;
  cursor: pointer;
}

.sheet-body {
  padding: 14px 16px 22px;
  overflow-y: auto;
}

.sheet-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 14px;
}

.sheet-cat-tile {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 11px 12px;
  border-radius: 13px;
  background: var(--obs-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.16s ease;
}

.sheet-cat-tile:hover,
.sheet-cat-tile.active {
  border-color: var(--border-gold);
  background: rgba(245, 158, 11, 0.1);
}

.sheet-cat-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #f8fafc;
}

.sheet-cat-tile small {
  font-size: 0.72rem;
  color: var(--gold-light);
}

.sheet-full-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  background: var(--gold-gradient);
  color: #07080d !important;
  font-weight: 700;
  font-size: 0.86rem;
}

.sheet-search-form {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.sheet-search-form input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-gold);
  background: var(--obs-root);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
}

.sheet-search-submit {
  padding: 10px 16px !important;
  border-radius: 12px !important;
  font-size: 0.84rem !important;
}

.sheet-live-results {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.sheet-sublabel {
  margin: 0 0 8px;
  font-size: 0.76rem;
  color: #94a3b8;
}

.sheet-search-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.sheet-chip-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--obs-card);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #e2e8f0;
  font-size: 0.78rem;
}

.sheet-chip-pill:hover {
  border-color: var(--border-gold);
  color: var(--gold-light);
}

.sheet-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.sheet-tab-btn {
  padding: 9px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.sheet-tab-btn.active {
  background: var(--gold-gradient);
  color: #07080d;
  border-color: transparent;
  font-weight: 700;
}

.sheet-library-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.sheet-lib-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 12px;
  background: var(--obs-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sheet-lib-row img {
  width: 44px;
  height: 66px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: #182035;
}

.sheet-lib-info {
  flex: 1;
  min-width: 0;
}

.sheet-lib-info strong {
  display: block;
  font-size: 0.84rem;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sheet-lib-info span {
  font-size: 0.73rem;
  color: var(--gold-light);
}

.sheet-empty {
  padding: 18px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
  font-size: 0.82rem;
  color: #94a3b8;
}

.sheet-install-guide {
  padding: 12px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.09);
  border: 1px solid var(--border-gold);
  font-size: 0.78rem;
}

.sheet-install-guide strong {
  color: var(--gold-light);
}

.sheet-install-guide p {
  margin: 4px 0 0;
  color: #cbd5e1;
  line-height: 1.55;
}

.app-toast {
  position: fixed;
  left: 50%;
  bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(14px);
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  z-index: 1800;
  opacity: 0;
  pointer-events: none;
  transition: all 0.22s ease;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65);
}

.app-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* 9. PWA Modal */
.pwa-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(4, 6, 11, 0.82);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.pwa-modal[hidden] {
  display: none !important;
}

.pwa-modal-card {
  position: relative;
  width: 100%;
  max-width: 430px;
  background: var(--obs-surface);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 1.35rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
}

.pwa-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.1rem;
  cursor: pointer;
}

.pwa-modal-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.pwa-modal-icon {
  border-radius: 12px;
  border: 1px solid var(--border-gold);
}

.pwa-modal-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #ffffff;
}

.pwa-modal-sub {
  font-size: 0.8rem;
  color: #94a3b8;
}

.pwa-modal-steps {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pwa-step {
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  background: var(--obs-card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.82rem;
  line-height: 1.55;
  color: #cbd5e1;
}

/* ============================================================
   V18: Chinese Plot Hubs, Quick Filter Bar, Poster BR Badges, Ad Slots
   ============================================================ */
.badge-meta-br {
  position: absolute;
  right: 7px;
  bottom: 7px;
  z-index: 4;
  padding: 2px 7px;
  border-radius: 7px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #f8fafc;
  background: rgba(7, 9, 15, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.badge-ep-br {
  background: rgba(16, 185, 129, 0.9);
  border-color: rgba(167, 243, 208, 0.45);
  color: #032219;
}

.theme-crimson .badge-ep-br {
  background: linear-gradient(135deg, #fde047 0%, #f59e0b 100%);
  border-color: rgba(253, 224, 71, 0.65);
  color: #090b12;
}

.chinese-hub-strip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding: 0.68rem 0.9rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(12, 16, 26, 0.9) 100%);
  border: 1px solid rgba(52, 211, 153, 0.24);
}

.hub-strip-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #6ee7b7;
  margin-right: 0.15rem;
}

.hub-strip-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.34rem 0.78rem;
  border-radius: 999px;
  font-size: 0.79rem;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  transition: all 0.16s ease;
}

.hub-strip-pill:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(52, 211, 153, 0.55);
  color: #ffffff;
}

.quick-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1.15rem;
  border-radius: 14px;
  background: var(--obs-surface);
  border: 1px solid var(--border-subtle);
}

.qf-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.qf-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 72px;
}

.qf-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.68rem;
  border-radius: 999px;
  font-size: 0.77rem;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition: all 0.15s ease;
}

.qf-pill:hover {
  border-color: var(--border-gold);
  color: #ffffff;
}

.qf-pill.active {
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold-primary) 100%);
  border-color: transparent;
  color: #090b12;
  font-weight: 700;
}

.theme-jade .qf-pill.active {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  color: #032219;
}

.ad-banner-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.ad-banner-link {
  display: block;
  width: 100%;
  max-width: 970px;
}

.ad-banner-img {
  display: block;
  width: 100%;
  max-width: 970px;
  max-height: 120px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 640px) {
  .quick-filter-bar { padding: 0.7rem 0.75rem; gap: 0.45rem; }
  .qf-group { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .qf-group::-webkit-scrollbar { display: none; }
  .qf-pill { white-space: nowrap; flex-shrink: 0; }
  .chinese-hub-strip { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .chinese-hub-strip::-webkit-scrollbar { display: none; }
  .hub-strip-pill { white-space: nowrap; flex-shrink: 0; }
}

/* =========================================================
   CLUSTER C: 037HD.CO.UK (Sapphire Midnight & Ice Cyan)
   ========================================================= */
body.cinema-body.theme-sapphire {
  --obs-root: #040914;
  --obs-surface: #091224;
  --obs-elevated: #0e1a33;
  --obs-card: #0c162b;
  --gold-primary: #0ea5e9;
  --gold-light: #7dd3fc;
  --gold-gradient: linear-gradient(135deg, #0284c7 0%, #38bdf8 55%, #bae6fd 100%);
  --gold-glow: 0 8px 26px rgba(14, 165, 233, 0.34);
  --border-gold: rgba(56, 189, 248, 0.32);
  --border-subtle: rgba(125, 211, 252, 0.14);
  background-color: var(--obs-root) !important;
  background-image: radial-gradient(circle at 18% 0%, rgba(14, 165, 233, 0.14), transparent 44%),
                    radial-gradient(circle at 85% 15%, rgba(37, 99, 235, 0.12), transparent 40%) !important;
}

body.theme-sapphire .app-header {
  background: rgba(4, 9, 20, 0.90) !important;
  border-bottom-color: rgba(56, 189, 248, 0.22) !important;
}

body.theme-sapphire .brand-emblem-frame {
  border-color: rgba(56, 189, 248, 0.55) !important;
  box-shadow: 0 0 18px rgba(14, 165, 233, 0.35) !important;
}

body.theme-sapphire .logo-gold-text {
  background: linear-gradient(135deg, #ffffff 0%, #bae6fd 48%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.theme-sapphire .logo-tld-badge {
  background: rgba(14, 165, 233, 0.16) !important;
  color: #7dd3fc !important;
  border-color: rgba(56, 189, 248, 0.35) !important;
}

body.theme-sapphire .hero-card-frame {
  border-color: rgba(56, 189, 248, 0.30) !important;
  background: linear-gradient(135deg, rgba(9, 18, 36, 0.96) 0%, rgba(12, 26, 54, 0.92) 100%) !important;
  box-shadow: 0 22px 50px rgba(2, 132, 199, 0.18) !important;
}

body.theme-sapphire .hero-crown-pill {
  background: rgba(14, 165, 233, 0.14) !important;
  border-color: rgba(56, 189, 248, 0.38) !important;
  color: #bae6fd !important;
}

body.theme-sapphire .hero-seo-h1 {
  background: linear-gradient(135deg, #ffffff 10%, #bae6fd 60%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.theme-sapphire .btn-gold-cta,
body.theme-sapphire .capsule-search-btn,
body.theme-sapphire .bnav-fab,
body.theme-sapphire .sheet-full-btn {
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%) !important;
  color: #031526 !important;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.36) !important;
}

body.theme-sapphire .badge-ribbon-tl {
  background: linear-gradient(135deg, #0369a1, #0ea5e9) !important;
  color: #f0f9ff !important;
}

body.theme-sapphire .badge-ep-br {
  background: rgba(8, 20, 42, 0.92) !important;
  border-color: rgba(56, 189, 248, 0.48) !important;
  color: #7dd3fc !important;
}

body.theme-sapphire .chinese-hub-strip {
  background: linear-gradient(135deg, rgba(9, 22, 46, 0.92), rgba(6, 14, 30, 0.95)) !important;
  border-color: rgba(56, 189, 248, 0.25) !important;
}

body.theme-sapphire .hub-strip-pill:hover,
body.theme-sapphire .qf-pill.active,
body.theme-sapphire .ribbon-pill.active,
body.theme-sapphire .pg-pill.active {
  background: linear-gradient(135deg, #0284c7, #38bdf8) !important;
  color: #031526 !important;
  border-color: transparent !important;
}

body.theme-sapphire .movie-card:hover {
  border-color: rgba(56, 189, 248, 0.52) !important;
  box-shadow: 0 14px 30px rgba(14, 165, 233, 0.22) !important;
}

body.theme-sapphire .mobile-bottom-nav {
  background: rgba(4, 9, 20, 0.94) !important;
  border-top-color: rgba(56, 189, 248, 0.22) !important;
}

body.theme-sapphire .bnav-item.active,
body.theme-sapphire .shelf-icon-gold {
  color: #38bdf8 !important;
}

/* =========================================================
   CLUSTER D: PLAY2MOVIE.COM (Royal Amethyst & Neon Magenta)
   ========================================================= */
body.cinema-body.theme-amethyst {
  --obs-root: #080511;
  --obs-surface: #110a21;
  --obs-elevated: #190f30;
  --obs-card: #150c29;
  --gold-primary: #a855f7;
  --gold-light: #e879f9;
  --gold-gradient: linear-gradient(135deg, #9333ea 0%, #c084fc 50%, #f472b6 100%);
  --gold-glow: 0 8px 26px rgba(168, 85, 247, 0.36);
  --border-gold: rgba(192, 132, 252, 0.34);
  --border-subtle: rgba(232, 121, 249, 0.14);
  background-color: var(--obs-root) !important;
  background-image: radial-gradient(circle at 20% 0%, rgba(168, 85, 247, 0.15), transparent 44%),
                    radial-gradient(circle at 82% 14%, rgba(236, 72, 153, 0.12), transparent 40%) !important;
}

body.theme-amethyst .app-header {
  background: rgba(8, 5, 17, 0.90) !important;
  border-bottom-color: rgba(192, 132, 252, 0.22) !important;
}

body.theme-amethyst .brand-emblem-frame {
  border-color: rgba(232, 121, 249, 0.55) !important;
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.36) !important;
}

body.theme-amethyst .logo-gold-text {
  background: linear-gradient(135deg, #ffffff 0%, #f5d0fe 48%, #e879f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.theme-amethyst .logo-tld-badge {
  background: rgba(168, 85, 247, 0.18) !important;
  color: #f0abfc !important;
  border-color: rgba(232, 121, 249, 0.35) !important;
}

body.theme-amethyst .hero-card-frame {
  border-color: rgba(192, 132, 252, 0.32) !important;
  background: linear-gradient(135deg, rgba(17, 10, 33, 0.96) 0%, rgba(28, 13, 51, 0.92) 100%) !important;
  box-shadow: 0 22px 50px rgba(147, 51, 234, 0.20) !important;
}

body.theme-amethyst .hero-crown-pill {
  background: rgba(168, 85, 247, 0.16) !important;
  border-color: rgba(232, 121, 249, 0.38) !important;
  color: #f5d0fe !important;
}

body.theme-amethyst .hero-seo-h1 {
  background: linear-gradient(135deg, #ffffff 10%, #f5d0fe 60%, #e879f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.theme-amethyst .btn-gold-cta,
body.theme-amethyst .capsule-search-btn,
body.theme-amethyst .bnav-fab,
body.theme-amethyst .sheet-full-btn {
  background: linear-gradient(135deg, #9333ea 0%, #ec4899 100%) !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.38) !important;
}

body.theme-amethyst .badge-ribbon-tl {
  background: linear-gradient(135deg, #7e22ce, #db2777) !important;
  color: #fdf4ff !important;
}

body.theme-amethyst .badge-ep-br {
  background: rgba(22, 11, 40, 0.92) !important;
  border-color: rgba(232, 121, 249, 0.45) !important;
  color: #f0abfc !important;
}

body.theme-amethyst .chinese-hub-strip {
  background: linear-gradient(135deg, rgba(22, 12, 43, 0.92), rgba(14, 7, 29, 0.95)) !important;
  border-color: rgba(192, 132, 252, 0.26) !important;
}

body.theme-amethyst .hub-strip-pill:hover,
body.theme-amethyst .qf-pill.active,
body.theme-amethyst .ribbon-pill.active,
body.theme-amethyst .pg-pill.active {
  background: linear-gradient(135deg, #9333ea, #ec4899) !important;
  color: #ffffff !important;
  border-color: transparent !important;
}

body.theme-amethyst .movie-card:hover {
  border-color: rgba(232, 121, 249, 0.52) !important;
  box-shadow: 0 14px 30px rgba(168, 85, 247, 0.24) !important;
}

body.theme-amethyst .mobile-bottom-nav {
  background: rgba(8, 5, 17, 0.94) !important;
  border-top-color: rgba(192, 132, 252, 0.22) !important;
}

body.theme-amethyst .bnav-item.active,
body.theme-amethyst .shelf-icon-gold {
  color: #e879f9 !important;
}
