/* ========================================
   DOMZ FILM - Premium Movie Streaming UI
   Dark Theme + Glassmorphism
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ---- CSS Variables ---- */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: rgba(20, 20, 35, 0.7);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-hover: rgba(255, 255, 255, 0.08);
  --text-primary: #eef0f6;
  --text-secondary: #8b8fa3;
  --text-muted: #555770;
  --accent: #e50914;
  --accent-hover: #ff1a26;
  --accent-glow: rgba(229, 9, 20, 0.35);
  --gold: #f5c518;
  --green: #46d369;
  --blue: #2196f3;
  --purple: #9b59b6;
  --gradient-hero: linear-gradient(to top, var(--bg-primary) 0%, transparent 60%);
  --gradient-hero-left: linear-gradient(to right, var(--bg-primary) 0%, transparent 50%);
  --border-glass: 1px solid rgba(255, 255, 255, 0.06);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px var(--accent-glow);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: all 0.15s ease;
  --font-primary: 'Inter', -apple-system, sans-serif;
  --font-display: 'Outfit', sans-serif;
  --container-width: 1400px;
  --nav-height: 64px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
  background: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* ---- Container ---- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: var(--transition);
  padding: 0 32px;
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: var(--border-glass);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-width);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo span {
  color: var(--text-primary);
  font-weight: 600;
}

.nav-logo .logo-icon {
  font-size: 1.8rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: var(--bg-glass);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown .dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(18, 18, 26, 0.96);
  backdrop-filter: blur(20px);
  border: var(--border-glass);
  border-radius: var(--radius-md);
  padding: 8px;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: var(--bg-glass-hover);
  color: var(--accent);
}

/* Search */
.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.nav-search-btn:hover {
  background: var(--bg-glass);
  color: var(--text-primary);
}

.nav-search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-search-form input {
  background: var(--bg-glass);
  border: var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 8px 16px 8px 38px;
  color: var(--text-primary);
  font-size: 0.88rem;
  width: 220px;
  transition: var(--transition);
  font-family: inherit;
}

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

.nav-search-form input:focus {
  width: 280px;
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.nav-search-form .search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Mobile Menu */
.nav-mobile-toggle {
  display: none;
  font-size: 1.4rem;
  color: var(--text-primary);
}

/* ========================================
   HERO SLIDER
   ======================================== */
.hero-section {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 550px;
  max-height: 800px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide .backdrop {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide .overlay {
  position: absolute;
  inset: 0;
  background: 
    var(--gradient-hero),
    var(--gradient-hero-left),
    linear-gradient(to bottom, rgba(10,10,15,0.3) 0%, transparent 30%);
}

.hero-content {
  position: absolute;
  bottom: 15%;
  left: 0;
  padding: 0 48px;
  max-width: 650px;
  z-index: 2;
}

.hero-content .quality-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: white;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 12px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.hero-meta .rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--gold);
  font-weight: 600;
}

.hero-meta .rating svg {
  width: 14px;
  height: 14px;
}

.hero-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: white;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  border: var(--border-glass);
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--bg-glass-hover);
  transform: translateY(-2px);
}

/* Hero Navigation Dots */
.hero-dots {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: var(--transition);
  cursor: pointer;
}

.hero-dot.active {
  width: 28px;
  border-radius: 4px;
  background: var(--accent);
}

/* ========================================
   SECTION HEADERS
   ======================================== */
.section {
  padding: 40px 0;
  position: relative;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-header h2 .icon {
  font-size: 1.3rem;
}

.section-header .view-all {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(229, 9, 20, 0.3);
  transition: var(--transition);
}

.section-header .view-all:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* Tabs */
.section-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.section-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  padding: 8px 20px;
  border-radius: var(--radius-xl);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: var(--transition);
  border: 1px solid transparent;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: var(--bg-glass);
}

.tab-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* ========================================
   MOVIE CARDS
   ======================================== */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 20px;
}

.movie-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-card);
}

.movie-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-card);
}

.movie-card .poster-wrap {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
}

.movie-card .poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.movie-card:hover .poster-wrap img {
  transform: scale(1.08);
}

.movie-card .poster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 50%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.poster-overlay .play-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
  transform: scale(0);
  transition: var(--transition);
  box-shadow: var(--shadow-glow);
}

.movie-card:hover .poster-overlay .play-icon {
  transform: scale(1);
}

/* Badges */
.movie-card .badge-quality {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--accent);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  z-index: 2;
  letter-spacing: 0.3px;
}

.movie-card .badge-rating {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  color: var(--gold);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 3px;
}

.movie-card .badge-type {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--purple);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  z-index: 2;
}

.movie-card .card-info {
  padding: 12px;
}

.movie-card .card-title {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-card .card-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.movie-card .card-meta .year {
  color: var(--text-secondary);
}

/* Horizontal Scroll Row */
.movie-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 8px;
}

.movie-row::-webkit-scrollbar {
  display: none;
}

.movie-row .movie-card {
  flex: 0 0 175px;
  scroll-snap-align: start;
}

/* ========================================
   GENRE CHIPS
   ======================================== */
.genre-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.genre-chip {
  padding: 8px 18px;
  border-radius: var(--radius-xl);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: var(--border-glass);
  background: var(--bg-glass);
  transition: var(--transition);
  cursor: pointer;
}

.genre-chip:hover,
.genre-chip.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* ========================================
   DETAIL PAGE
   ======================================== */
.detail-hero {
  position: relative;
  width: 100%;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-backdrop .overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(to top, var(--bg-primary) 0%, rgba(10,10,15,0.5) 50%, rgba(10,10,15,0.3) 100%),
    linear-gradient(to right, var(--bg-primary) 0%, transparent 60%);
}

.detail-content {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 40px;
  padding: 60px 48px 40px;
  max-width: var(--container-width);
  margin: 0 auto;
  width: 100%;
}

.detail-poster {
  flex-shrink: 0;
  width: 260px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
}

.detail-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.detail-info .badges {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.detail-info .badge {
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.badge-hd {
  background: var(--accent);
  color: white;
}

.badge-imdb {
  background: var(--gold);
  color: #000;
  display: flex;
  align-items: center;
  gap: 4px;
}

.badge-genre {
  background: var(--bg-glass);
  color: var(--text-secondary);
  border: var(--border-glass);
}

.detail-info h1 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.detail-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-meta .meta-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
}

.detail-overview {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 700px;
}

.detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Player Section */
.player-section {
  padding: 40px 0;
}

.player-wrapper {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-card);
}

.player-wrapper iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
}

.player-servers {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
  justify-content: center;
}

.server-btn {
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--bg-glass);
  color: var(--text-secondary);
  border: var(--border-glass);
  transition: var(--transition);
}

.server-btn.active,
.server-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* Season/Episode Selector */
.episode-section {
  padding: 20px 0;
}

.season-select-wrapper {
  margin-bottom: 20px;
}

.season-select-wrapper select {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: var(--border-glass);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
}

.episode-btn {
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--bg-glass);
  color: var(--text-secondary);
  border: var(--border-glass);
  text-align: center;
  transition: var(--transition);
}

.episode-btn:hover,
.episode-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* Cast */
.cast-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 8px;
}

.cast-grid::-webkit-scrollbar {
  display: none;
}

.cast-card {
  flex: 0 0 110px;
  text-align: center;
}

.cast-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 8px;
  border: 2px solid var(--border-glass);
}

.cast-card .cast-name {
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 2px;
}

.cast-card .cast-char {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ========================================
   SEARCH PAGE
   ======================================== */
.search-hero {
  padding: calc(var(--nav-height) + 40px) 0 20px;
  text-align: center;
}

.search-hero h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 20px;
}

.search-box {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-box input {
  width: 100%;
  padding: 16px 24px 16px 52px;
  border-radius: var(--radius-xl);
  background: var(--bg-glass);
  border: var(--border-glass);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

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

.search-box .search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
}

.search-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

.filter-select {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: var(--border-glass);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-select:focus {
  outline: none;
  border-color: var(--accent);
}

.search-results-info {
  padding: 20px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 40px 0;
}

.page-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 500;
  background: var(--bg-glass);
  color: var(--text-secondary);
  border: var(--border-glass);
  transition: var(--transition);
}

.page-btn:hover,
.page-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

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

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--bg-secondary);
  border-top: var(--border-glass);
  padding: 48px 0 24px;
  margin-top: 60px;
}

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

.footer-brand .footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 12px;
}

.footer-brand .footer-logo span {
  color: var(--text-primary);
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-col a {
  display: block;
  font-size: 0.84rem;
  color: var(--text-muted);
  padding: 4px 0;
  transition: var(--transition-fast);
}

.footer-col a:hover {
  color: var(--accent);
  padding-left: 6px;
}

.footer-bottom {
  border-top: var(--border-glass);
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ========================================
   LOADING
   ======================================== */
.skeleton {
  background: linear-gradient(90deg, var(--bg-glass) 25%, rgba(255,255,255,0.06) 50%, var(--bg-glass) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-md);
}

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

.loading-spinner {
  display: flex;
  justify-content: center;
  padding: 60px 0;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--bg-glass);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* No Results */
.no-results {
  text-align: center;
  padding: 80px 0;
  color: var(--text-muted);
}

.no-results .icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.no-results h3 {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .detail-content {
    padding: 40px 24px;
    gap: 24px;
  }
  .detail-poster {
    width: 200px;
  }
  .detail-info h1 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 16px;
  }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.98);
    flex-direction: column;
    padding: 24px;
    gap: 8px;
    overflow-y: auto;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 12px 16px;
    font-size: 1rem;
  }
  .nav-dropdown .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: var(--bg-glass);
    margin-top: 4px;
  }
  .nav-mobile-toggle {
    display: flex;
  }
  .hero-section {
    height: 65vh;
    min-height: 400px;
  }
  .hero-content {
    padding: 0 20px;
    bottom: 20%;
  }
  .hero-content h1 {
    font-size: 1.8rem;
  }
  .hero-content p {
    font-size: 0.85rem;
    -webkit-line-clamp: 2;
  }
  .movie-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }
  .movie-row .movie-card {
    flex: 0 0 145px;
  }
  .section-header h2 {
    font-size: 1.2rem;
  }
  .detail-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 16px;
  }
  .detail-poster {
    width: 180px;
  }
  .detail-info h1 {
    font-size: 1.6rem;
  }
  .detail-meta {
    justify-content: center;
  }
  .detail-info .badges {
    justify-content: center;
  }
  .detail-actions {
    justify-content: center;
  }
  .detail-overview {
    text-align: left;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .search-hero h1 {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .movie-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .movie-card .card-info {
    padding: 8px;
  }
  .movie-card .card-title {
    font-size: 0.78rem;
  }
  .hero-content h1 {
    font-size: 1.4rem;
  }
  .btn-primary, .btn-secondary {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.movie-card {
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

.movie-card:nth-child(1) { animation-delay: 0.05s; }
.movie-card:nth-child(2) { animation-delay: 0.1s; }
.movie-card:nth-child(3) { animation-delay: 0.15s; }
.movie-card:nth-child(4) { animation-delay: 0.2s; }
.movie-card:nth-child(5) { animation-delay: 0.25s; }
.movie-card:nth-child(6) { animation-delay: 0.3s; }
.movie-card:nth-child(7) { animation-delay: 0.35s; }
.movie-card:nth-child(8) { animation-delay: 0.4s; }
.movie-card:nth-child(9) { animation-delay: 0.45s; }
.movie-card:nth-child(10) { animation-delay: 0.5s; }
.movie-card:nth-child(11) { animation-delay: 0.55s; }
.movie-card:nth-child(12) { animation-delay: 0.6s; }
