/* ==========================================================================
   一起看 | 17kan - Cinema & SEO Multi-Page Pure Static Stylesheet
   Designed for high performance, accessibility, SEO readability & modern UI
   ========================================================================== */

:root {
  --bg-primary: #0a0d14;
  --bg-secondary: #111827;
  --bg-card: #162032;
  --bg-card-hover: #1e2c45;
  --border-subtle: #233148;
  --border-light: #334460;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-gold: #f59e0b;
  --accent-gold-hover: #d97706;
  --accent-gold-subtle: rgba(245, 158, 11, 0.12);
  --accent-red: #ef4444;
  --accent-blue: #38bdf8;
  --accent-green: #10b981;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", Georgia, Cambria, serif;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
  --shadow-gold: 0 0 20px rgba(245, 158, 11, 0.25);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --container-max: 1240px;
}

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

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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, #151f33 0%, #0a0d14 60%);
}

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.15s ease;
}

a:hover {
  color: #fbbf24;
}

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

ul, ol {
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(10, 13, 20, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo {
  height: 42px;
  width: auto;
}

/* Main Navigation */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
  background-color: var(--bg-card);
}

.nav-link.active {
  color: var(--accent-gold);
  border-bottom: 2px solid var(--accent-gold);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

/* Header Actions & Quick Search */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.search-box-wrapper {
  position: relative;
  width: 240px;
}

.search-input {
  width: 100%;
  padding: 8px 14px 8px 36px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.875rem;
  outline: none;
  transition: all 0.2s ease;
}

.search-input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
  width: 280px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  display: none;
  z-index: 200;
  max-height: 380px;
  overflow-y: auto;
}

.search-dropdown.show {
  display: block;
}

.search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: background 0.15s;
}

.search-item:hover {
  background-color: var(--bg-card-hover);
  color: var(--accent-gold);
}

.search-badge {
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  color: var(--text-muted);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}

/* Secondary Sub-Navigation / Genre Bar */
.genre-bar {
  background-color: rgba(17, 24, 39, 0.7);
  border-bottom: 1px solid rgba(35, 49, 72, 0.6);
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.genre-bar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
}

.genre-bar-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.genre-pill {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.genre-pill:hover, .genre-pill.active {
  color: #ffffff;
  background-color: var(--accent-gold-subtle);
  border-color: rgba(245, 158, 11, 0.35);
}

.genre-pill.active {
  color: var(--accent-gold);
  font-weight: 600;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
  padding: 18px 0 10px;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.breadcrumb-item a {
  color: var(--text-secondary);
}

.breadcrumb-item a:hover {
  color: var(--accent-gold);
}

.breadcrumb-separator {
  color: var(--text-muted);
  user-select: none;
}

.breadcrumb-current {
  color: var(--text-primary);
  font-weight: 500;
}

/* Hero Section */
.hero-section {
  padding: 48px 0 32px;
  position: relative;
}

.hero-box {
  background: linear-gradient(135deg, rgba(22, 32, 50, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-box::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background-color: var(--accent-gold-subtle);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--accent-gold);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 16px;
  color: #ffffff;
}

.hero-title span {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 780px;
  line-height: 1.7;
  margin-bottom: 24px;
}

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

.hero-feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-primary);
}

.hero-feature-pill svg {
  color: var(--accent-gold);
}

/* Section Header */
.section-block {
  padding: 36px 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.section-title-wrap {
  position: relative;
}

.section-h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--accent-gold);
  border-radius: 2px;
}

.section-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.section-more-link {
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Movie Cards Grid */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.movie-grid.five-cols {
  grid-template-columns: repeat(5, 1fr);
}

.movie-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-light);
  box-shadow: var(--shadow-lg), 0 0 16px rgba(245, 158, 11, 0.15);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  width: 100%;
  overflow: hidden;
  background-color: #0f172a;
}

.poster-wrap img, .poster-wrap svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-badge-top-left {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.poster-rating {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(4px);
  color: var(--accent-gold);
  font-size: 0.875rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.movie-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.movie-title-link {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 4px;
  display: block;
}

.movie-title-link:hover {
  color: var(--accent-gold);
}

.movie-original-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 8px;
}

.movie-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.75rem;
  margin-bottom: 8px;
}

.movie-meta-tag {
  color: var(--text-secondary);
  background-color: var(--bg-secondary);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.movie-meta-tag a {
  color: var(--text-secondary);
}

.movie-meta-tag a:hover {
  color: var(--accent-gold);
}

.movie-desc-excerpt {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
  flex: 1;
}

.movie-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 10px;
  margin-top: auto;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.legal-tag {
  color: var(--accent-green);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 600;
}

/* Detail Page Specific Styling */
.movie-detail-hero {
  background: linear-gradient(180deg, rgba(22, 32, 50, 0.95) 0%, rgba(10, 13, 20, 1) 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin: 16px 0 36px;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.movie-detail-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 36px;
}

.movie-detail-poster-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  border: 1px solid var(--border-light);
}

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

.movie-detail-content {
  display: flex;
  flex-direction: column;
}

.movie-detail-h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 6px;
}

.movie-detail-original-name {
  font-size: 1.125rem;
  color: var(--accent-gold);
  font-family: var(--font-sans);
  font-weight: 500;
  margin-bottom: 18px;
}

/* Ratings Badge Matrix */
.ratings-matrix {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.rating-badge-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  min-width: 105px;
}

.rating-source {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.rating-score {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.rating-score.high {
  color: #fbbf24;
}

.rating-score.fresh {
  color: var(--accent-red);
}

.rating-scale {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Info Grid */
.movie-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 0.9375rem;
}

.movie-specs-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.movie-specs-table th {
  text-align: left;
  padding: 10px 14px 10px 0;
  color: var(--text-muted);
  font-weight: 600;
  width: 100px;
  vertical-align: top;
  white-space: nowrap;
}

.movie-specs-table td {
  padding: 10px 0;
  color: var(--text-primary);
}

.movie-specs-table td a {
  margin-right: 8px;
  display: inline-block;
}

/* Section Box for Details */
.detail-article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 28px;
}

.detail-article-card h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-article-card h2::before {
  content: "";
  width: 4px;
  height: 18px;
  background: var(--accent-gold);
  border-radius: 2px;
}

.detail-article-card p {
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.detail-article-card p:last-child {
  margin-bottom: 0;
}

/* Legal Streaming Platform Directory */
.legal-stream-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 28px;
}

.legal-stream-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.legal-stream-header h3 {
  color: #ffffff;
  font-size: 1.125rem;
  font-weight: 700;
}

.legal-stream-badge {
  background-color: rgba(16, 185, 129, 0.2);
  color: var(--accent-green);
  border: 1px solid var(--accent-green);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.stream-platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.stream-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stream-name {
  font-weight: 700;
  color: #ffffff;
  font-size: 0.9375rem;
}

.stream-status {
  font-size: 0.8125rem;
  color: var(--accent-green);
}

.stream-note {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.legal-disclaimer-note {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  padding-top: 12px;
}

/* Category Filter Navigation Box */
.category-filter-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 28px;
}

.filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-row:last-child {
  border-bottom: none;
}

.filter-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 700;
  min-width: 60px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  transition: all 0.15s ease;
}

.filter-chip:hover, .filter-chip.active {
  background: var(--accent-gold-subtle);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* Editorial / Educational Content Box */
.editorial-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px;
  margin: 36px 0;
}

.editorial-box h3 {
  font-size: 1.25rem;
  color: #ffffff;
  margin: 20px 0 10px;
}

.editorial-box h3:first-child {
  margin-top: 0;
}

.editorial-box p {
  color: #cbd5e1;
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.editorial-box ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 16px;
  color: #cbd5e1;
  font-size: 0.9375rem;
}

.editorial-box li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* Site Footer */
.site-footer {
  margin-top: auto;
  background-color: #07090f;
  border-top: 1px solid var(--border-subtle);
  padding: 56px 0 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-top: 12px;
  max-width: 320px;
}

.footer-column h4 {
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
}

.footer-column h4::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--accent-gold);
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

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

.footer-legal-bar a {
  color: var(--text-muted);
}

.footer-legal-bar a:hover {
  color: var(--text-primary);
}

/* Floating Tools: Back to Top, Toast */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--accent-gold);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--accent-gold);
  color: #0a0d14;
  transform: translateY(-3px);
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1e293b;
  border: 1px solid var(--accent-gold);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  font-size: 0.875rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999;
  pointer-events: none;
}

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

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: repeat(3, 1fr);
  }
  .movie-grid.five-cols {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .movie-detail-layout {
    grid-template-columns: 1fr;
  }
  .movie-detail-poster-wrap {
    max-width: 280px;
    margin: 0 auto;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .nav-menu {
    display: none;
  }
  .nav-menu.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
    padding: 16px 20px;
    gap: 12px;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .movie-grid, .movie-grid.five-cols {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .hero-box {
    padding: 24px;
  }
  .hero-title {
    font-size: 1.625rem;
  }
  .search-box-wrapper {
    width: 160px;
  }
  .search-input:focus {
    width: 200px;
  }
}

@media (max-width: 480px) {
  .movie-grid, .movie-grid.five-cols {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 1.375rem;
  }
  .search-box-wrapper {
    display: none;
  }
}
