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

/* ==========================================
   CSS CUSTOM VARIABLES & THEME SYSTEM
   ========================================== */
:root {
  --font-main: 'Outfit', sans-serif;
  
  /* Color Palette */
  --bg-main: #080c14;
  --bg-surface: #0f1626;
  --bg-surface-hover: #17223b;
  --border-color: #1f2d4d;
  --border-color-hover: #3b82f6;
  
  --primary: #e11d48; /* Crimson Red */
  --primary-hover: #f43f5e;
  --primary-glow: rgba(225, 29, 72, 0.4);
  
  --accent-blue: #2563eb;
  --accent-cyan: #06b6d4;
  --accent-gold: #f59e0b;
  --accent-green: #10b981;
  
  /* Text Colors */
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  /* Transitions & Shadows */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 20px rgba(225, 29, 72, 0.25);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

/* ==========================================
   BASE STYLES & RESET
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  overflow-x: hidden;
}

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 5px;
  border: 2px solid var(--bg-main);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ==========================================
   LAYOUT CONTAINERS
   ========================================== */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 767px) {
  .container {
    padding: 0 16px;
  }
}

.main-content {
  flex-grow: 1;
  padding-bottom: 60px;
}

/* Section Header Block */
.section-header-block {
  border-left: 4px solid var(--primary);
  padding-left: 16px;
  margin-bottom: 24px;
}

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

.section-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 800px;
  line-height: 1.4;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.section-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-link:hover {
  color: var(--primary-hover);
  text-shadow: 0 0 8px var(--primary-glow);
}

/* ==========================================
   NAVIGATION / HEADER
   ========================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 12, 20, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: padding var(--transition-normal);
}

.site-header.scrolled {
  padding: 8px 0;
  background: rgba(5, 8, 14, 0.95);
  box-shadow: var(--shadow-md);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* Logo */
.logo {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo span {
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary-glow);
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width var(--transition-fast);
  box-shadow: 0 0 8px var(--primary);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Search Bar */
.search-wrapper {
  position: relative;
  max-width: 300px;
  width: 100%;
}

.search-input {
  width: 100%;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  padding: 10px 16px 10px 42px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

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

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
}

.mobile-toggle span {
  height: 2px;
  width: 100%;
  background-color: var(--text-primary);
  transition: all var(--transition-fast);
}

/* ==========================================
   HERO / FEATURED SECTION
   ========================================== */
.featured-hero {
  position: relative;
  height: 480px;
  margin-bottom: 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center 20%;
  transition: transform 8s ease;
}

.featured-hero:hover .hero-backdrop {
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(8, 12, 20, 0.95) 20%, rgba(8, 12, 20, 0.6) 50%, rgba(8, 12, 20, 0.1) 100%),
              linear-gradient(to top, rgba(8, 12, 20, 1) 0%, rgba(8, 12, 20, 0) 50%);
}

.hero-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 600px;
  padding: 0 48px;
}

.hero-badge {
  background: var(--primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  align-self: flex-start;
  margin-bottom: 16px;
  box-shadow: 0 0 10px var(--primary-glow);
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 0.95rem;
  flex-wrap: wrap;
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rating-star {
  color: var(--accent-gold);
}

.hero-plot {
  color: var(--text-secondary);
  margin-bottom: 30px;
  font-size: 1rem;
}

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

@media (max-width: 639px) {
  .hero-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .hero-buttons .btn {
    width: 100%;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* ==========================================
   MOVIE GRID SYSTEM (2, 4, 6 columns)
   ========================================== */
.section-wrapper {
  margin-bottom: 48px;
}

.movie-grid {
  display: grid;
  gap: 20px;
  /* Mobile-first: 2 columns */
  grid-template-columns: repeat(2, 1fr);
}

/* Card Styles */
.movie-card {
  position: relative;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-md);
}

/* Poster Container */
.poster-container {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #111;
}

.movie-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

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

/* Floating Badges on Cards */
.card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 5;
}

.badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.badge-quality {
  background: rgba(0, 0, 0, 0.75);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-rating {
  background: rgba(245, 158, 11, 0.9);
  color: #000;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Play Hover Overlay */
.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 12, 20, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: 2;
}

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

.play-icon {
  width: 50px;
  height: 50px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  transform: scale(0.8);
  transition: transform var(--transition-normal);
  box-shadow: 0 0 15px var(--primary);
}

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

/* Card Details */
.card-details {
  padding: 12px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.6em;
}

.movie-card:hover .card-title {
  color: var(--primary);
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.card-genre {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70%;
}

/* ==========================================
   TABLES
   ========================================== */
.table-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

@media (min-width: 1024px) {
  .table-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.table-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  min-width: 0;
}

@media (max-width: 767px) {
  .table-card {
    padding: 16px;
  }
}


.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-sm);
}

.movie-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.movie-table th {
  background: var(--bg-main);
  padding: 12px 16px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--border-color);
}

.movie-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  transition: background var(--transition-fast);
}

.movie-table tr:last-child td {
  border-bottom: none;
}

.movie-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.table-movie-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-movie-thumb {
  width: 32px;
  height: 48px;
  border-radius: 4px;
  object-fit: cover;
}

.table-movie-title {
  font-weight: 600;
}

.table-movie-title:hover {
  color: var(--primary);
}

.rank-badge {
  display: inline-block;
  width: 24px;
  height: 24px;
  background: var(--border-color);
  border-radius: 50%;
  text-align: center;
  line-height: 24px;
  font-weight: 700;
  font-size: 0.8rem;
}

.rank-1 { background: var(--accent-gold); color: #000; }
.rank-2 { background: #cbd5e1; color: #000; }
.rank-3 { background: #b45309; color: #fff; }

.status-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.status-highly { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); border: 1px solid rgba(16, 185, 129, 0.3); }
.status-normal { background: rgba(37, 99, 235, 0.15); color: var(--accent-blue); border: 1px solid rgba(37, 99, 235, 0.3); }

/* ==========================================
   SINGLE MOVIE DETAIL PAGE STYLING
   ========================================== */

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

@media (max-width: 767px) {
  .breadcrumbs {
    font-size: 0.8rem;
    padding: 12px 0;
    flex-wrap: wrap;
  }
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.breadcrumbs span.divider {
  color: var(--text-muted);
}

/* Movie Backdrop Header */
/* Movie Backdrop Header */
.movie-backdrop-banner {
  position: relative;
  height: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: -80px; /* Pull content up over banner */
}

@media (max-width: 767px) {
  .movie-backdrop-banner {
    height: 220px;
    margin-bottom: -60px;
  }
}

.backdrop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}

.backdrop-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, var(--bg-main) 0%, rgba(8, 12, 20, 0) 100%);
}

/* Movie Header Block */
.movie-header-block {
  position: relative;
  z-index: 25;
  margin-bottom: 24px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.movie-title-large {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

@media (max-width: 767px) {
  .movie-title-large {
    font-size: 1.9rem;
  }
  .movie-header-block {
    margin-bottom: 16px;
  }
}

/* Movie Detail Layout grid */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  position: relative;
  z-index: 20;
}

@media (min-width: 768px) {
  .detail-layout {
    grid-template-columns: 280px 1fr;
  }
}

@media (min-width: 1024px) {
  .detail-layout {
    grid-template-columns: 320px 1fr;
  }
}

/* Sidebar Info styling */
.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0; /* Prevents grid item from stretching */
}

.detail-poster-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

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

.detail-quick-specs {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}

.spec-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.spec-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.spec-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.spec-value {
  font-weight: 600;
}

.spec-rating {
  color: var(--accent-gold);
}

@media (max-width: 767px) {
  .detail-sidebar {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 16px;
  }
  
  .detail-poster-card img {
    border-radius: var(--radius-sm);
  }
  
  .detail-quick-specs {
    background: none;
    border: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
  }
  
  .spec-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .spec-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 6px;
    flex-wrap: wrap;
    gap: 4px;
  }
  
  .spec-label {
    font-size: 0.8rem;
  }
  
  .spec-value {
    font-size: 0.8rem;
    text-align: right;
  }
}

/* Main Review Content area */
.detail-main-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0; /* Prevents grid item from stretching */
}

/* Related Grid limit to 4 Columns */
.related-grid {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .related-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.movie-tagline {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 16px;
}

.movie-genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.genre-tag {
  background: rgba(225, 29, 72, 0.1);
  color: var(--primary);
  border: 1px solid rgba(225, 29, 72, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Content Blocks */
.content-block {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
}

.block-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.block-title i {
  color: var(--primary);
}

.storyline-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Review Block details */
.review-score-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (min-width: 640px) {
  .review-score-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.score-box {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}

.score-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
}

.score-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

@media (max-width: 767px) {
  .score-box {
    padding: 12px 8px;
  }
  .score-num {
    font-size: 1.4rem;
  }
  .score-label {
    font-size: 0.7rem;
  }
}

.review-body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.review-body p {
  margin-bottom: 16px;
}

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

.verdict-box {
  margin-top: 24px;
  padding: 20px;
  background: rgba(16, 185, 129, 0.05);
  border-left: 4px solid var(--accent-green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.verdict-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-green);
  margin-bottom: 6px;
}

/* Cast and Crew section */
.cast-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 480px) {
  .cast-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (min-width: 768px) {
  .cast-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .cast-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 479px) {
  .cast-card {
    padding: 10px 12px;
  }
  .cast-avatar {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
  .cast-name {
    font-size: 0.85rem;
  }
  .cast-role {
    font-size: 0.7rem;
  }
}

.cast-card {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cast-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-surface-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  border: 2px solid var(--border-color);
  font-size: 1rem;
  flex-shrink: 0;
}

.cast-info {
  overflow: hidden;
}

.cast-name {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cast-role {
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================
   COMMENTS & FEEDBACK FORMS
   ========================================== */
.comments-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  list-style: none;
  margin-bottom: 24px;
}

.comment-item {
  display: flex;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.comment-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.comment-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-primary);
  flex-shrink: 0;
}

.comment-content {
  flex-grow: 1;
}

.comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.comment-user {
  font-weight: 600;
  font-size: 0.95rem;
}

.comment-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.comment-rating {
  font-size: 0.85rem;
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.comment-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Comment Form styling */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-control {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Star Rating Input styling */
.star-rating-select {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 8px;
}

.star-rating-select input {
  display: none;
}

.star-rating-select label {
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.star-rating-select label:hover,
.star-rating-select label:hover ~ label,
.star-rating-select input:checked ~ label {
  color: var(--accent-gold);
}

/* ==========================================
   FOOTER SECTION
   ========================================== */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px 0;
  color: var(--text-secondary);
}

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

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 2fr;
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-col-title {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
}

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

.footer-links a {
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.social-icon {
  width: 38px;
  height: 38px;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.social-icon:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

/* Newsletter */
.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-input {
  flex-grow: 1;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.newsletter-input:focus {
  border-color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.85rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-bottom-links a:hover {
  color: var(--primary);
}

/* ==========================================
   MEDIA QUERIES FOR RESPONSIVE GRIDS
   ========================================== */

/* Tablet viewports */
@media (min-width: 640px) {
  .movie-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
}

/* Desktop viewports */
@media (min-width: 1024px) {
  .movie-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  
  .site-header {
    padding: 15px 0;
  }
}

/* Mobile responsive fixes */
@media (max-width: 639px) {
  .hero-content {
    padding: 0 24px;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .featured-hero {
    height: 380px;
  }
  .mobile-toggle {
    display: flex;
  }
  .nav-menu {
    position: absolute;
    top: 70px;
    left: -100%;
    width: 100%;
    background: var(--bg-surface);
    flex-direction: column;
    gap: 20px;
    padding: 40px 24px;
    border-bottom: 1px solid var(--border-color);
    transition: left var(--transition-normal);
    box-shadow: var(--shadow-md);
  }
  .nav-menu.active {
    left: 0;
  }
  .search-wrapper {
    display: none; /* Can toggle or move inside menu */
  }
  .search-wrapper.mobile-active {
    display: block;
    max-width: none;
    padding: 10px 24px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    z-index: 99;
  }
}
