/* ==========================================================================
   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;
}
