:root {
  color-scheme: light;
  --bg: #fafaf9;
  --surface: #ffffff;
  --surface-soft: #f5f5f4;
  --text: #1c1917;
  --muted: #78716c;
  --line: #e7e5e4;
  --primary: #0c4a6e;
  --primary-mid: #075985;
  --primary-light: #0284c7;
  --accent: #f59e0b;
  --accent-strong: #d97706;
  --shadow: 0 18px 45px rgba(12, 74, 110, 0.16);
  --card-shadow: 0 10px 28px rgba(28, 25, 23, 0.12);
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--primary), var(--primary-mid));
  color: #ffffff;
  box-shadow: 0 8px 26px rgba(12, 74, 110, 0.28);
}

.nav-container {
  max-width: 80rem;
  height: 4rem;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.36);
}

.brand-name {
  font-size: 1.25rem;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 1.35rem;
}

.nav-link,
.mobile-link {
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fcd34d;
}

.nav-toggle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  background: rgba(255, 255, 255, 0.12);
}

.nav-toggle span {
  width: 1.25rem;
  height: 2px;
  background: #ffffff;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 0.5rem 1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.mobile-nav.open {
  display: grid;
  gap: 0.35rem;
}

.mobile-link {
  display: block;
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem;
}

.mobile-link:hover,
.mobile-link.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fcd34d;
}

.main-page {
  min-height: calc(100vh - 4rem);
}

.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero {
  position: relative;
  height: 34rem;
  overflow: hidden;
  background: #000000;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.42) 48%, rgba(0, 0, 0, 0.16));
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 3rem 1rem 3.75rem;
}

.hero-inner {
  max-width: 80rem;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.hero h1 {
  max-width: 46rem;
  color: #ffffff;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: 1.08;
  font-weight: 850;
  letter-spacing: -0.045em;
  margin-bottom: 1rem;
}

.hero p {
  max-width: 46rem;
  color: #e7e5e4;
  font-size: 1.08rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

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

.button-primary,
.button-ghost,
.button-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.75rem 1.15rem;
  border-radius: 0.75rem;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(245, 158, 11, 0.3);
}

.button-primary:hover,
.button-light:hover,
.button-ghost:hover {
  transform: translateY(-2px);
}

.button-primary:hover {
  background: var(--accent-strong);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.button-light {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 12px 30px rgba(12, 74, 110, 0.16);
}

.hero-dots {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  display: flex;
  gap: 0.55rem;
}

.hero-dot {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
}

.hero-dot.is-active {
  width: 2rem;
  background: var(--accent);
}

.search-panel {
  max-width: 80rem;
  margin: -2.3rem auto 0;
  padding: 0 1rem;
  position: relative;
  z-index: 5;
}

.search-box {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 1.3rem;
  padding: 1rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(231, 229, 228, 0.9);
  backdrop-filter: blur(14px);
}

.search-input {
  min-height: 3rem;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 0 1rem;
  color: var(--text);
  background: #ffffff;
  outline: none;
}

.search-input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}

.filter-row,
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.filter-pill,
.quick-link {
  min-height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  background: #ffffff;
  color: var(--muted);
  font-weight: 700;
}

.filter-pill.active,
.filter-pill:hover,
.quick-link:hover {
  border-color: var(--accent);
  color: var(--primary);
  background: #fffbeb;
}

.section {
  padding: 4rem 0 0;
}

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

.section-head h2,
.page-title h1 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.15;
  font-weight: 850;
  letter-spacing: -0.03em;
  color: var(--text);
}

.section-head p,
.page-title p {
  margin-top: 0.5rem;
  color: var(--muted);
  line-height: 1.7;
}

.section-more {
  color: var(--primary-light);
  font-weight: 800;
  white-space: nowrap;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.movie-card {
  background: var(--surface);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(28, 25, 23, 0.05);
  border: 1px solid rgba(231, 229, 228, 0.9);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #000000;
}

.card-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.08) 46%, rgba(0, 0, 0, 0));
  opacity: 0.72;
}

.year-badge,
.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.55rem;
  font-size: 0.75rem;
  font-weight: 850;
}

.year-badge {
  top: 0.65rem;
  right: 0.65rem;
  min-width: 3rem;
  padding: 0.25rem 0.5rem;
  color: #ffffff;
  background: var(--accent);
}

.play-chip {
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.42rem 0.7rem;
  color: #ffffff;
  background: rgba(2, 132, 199, 0.9);
}

.card-body {
  padding: 0.85rem;
}

.card-title {
  display: block;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 850;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.card-meta {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.card-body p,
.list-info p {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.65rem;
}

.card-tags span,
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  background: #f0f9ff;
  color: var(--primary-mid);
  font-size: 0.74rem;
  font-weight: 750;
}

.highlight-band {
  border-radius: 1.4rem;
  padding: 1.2rem;
  background: linear-gradient(135deg, #f0f9ff, #fffbeb);
  box-shadow: 0 1px 0 rgba(28, 25, 23, 0.04);
}

.horizontal-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.25rem 0.25rem 1rem;
  scroll-snap-type: x mandatory;
}

.horizontal-scroll .movie-card {
  flex: 0 0 11.5rem;
  scroll-snap-align: start;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
}

.category-card {
  position: relative;
  min-height: 12rem;
  border-radius: 1.3rem;
  padding: 1.35rem;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #ffffff;
  box-shadow: var(--shadow);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -3rem;
  bottom: -4rem;
  width: 12rem;
  height: 12rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.category-card h2,
.category-card h3 {
  position: relative;
  font-size: 1.35rem;
  font-weight: 850;
  margin-bottom: 0.7rem;
}

.category-card p {
  position: relative;
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.75;
}

.category-card a {
  position: relative;
  display: inline-flex;
  margin-top: 1rem;
  color: #fcd34d;
  font-weight: 850;
}

.page-hero {
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  color: #ffffff;
  padding: 3.5rem 0;
}

.page-hero .page-title h1,
.page-hero .page-title p {
  color: #ffffff;
}

.page-hero .page-title p {
  opacity: 0.86;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 1rem;
  font-weight: 700;
}

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

.list-stack {
  display: grid;
  gap: 1rem;
}

.list-card {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  padding: 0.8rem;
}

.list-card:hover {
  transform: translateY(-3px);
}

.list-cover {
  border-radius: 0.8rem;
}

.list-info {
  min-width: 0;
  align-self: center;
}

.rank-list {
  display: grid;
  gap: 0.85rem;
}

.rank-item {
  position: relative;
}

.rank-badge {
  top: 0.7rem;
  left: 0.7rem;
  width: 2.1rem;
  height: 2.1rem;
  background: var(--primary);
  color: #ffffff;
}

.detail-layout {
  display: grid;
  gap: 2rem;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  background: #000000;
  box-shadow: var(--shadow);
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.25));
  z-index: 3;
  transition: opacity 0.25s ease;
}

.player-shell.is-playing .player-overlay {
  opacity: 0;
  pointer-events: none;
}

.play-button {
  width: 4.6rem;
  height: 4.6rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #ffffff;
  font-size: 1.8rem;
  box-shadow: 0 18px 40px rgba(245, 158, 11, 0.36);
}

.player-overlay strong {
  font-size: 1.2rem;
}

.detail-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.3rem;
  box-shadow: 0 1px 0 rgba(28, 25, 23, 0.04);
}

.detail-title {
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.045em;
  color: #ffffff;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 0;
}

.detail-meta span {
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-weight: 750;
}

.prose-section h2 {
  font-size: 1.35rem;
  font-weight: 850;
  margin: 0 0 0.75rem;
}

.prose-section p {
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 0.85rem;
}

.side-cover {
  border-radius: 1rem;
  overflow: hidden;
  background: #000000;
  box-shadow: var(--card-shadow);
}

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

.empty-state {
  display: none;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  color: var(--muted);
  background: var(--surface-soft);
}

.empty-state.show {
  display: block;
}

.site-footer {
  margin-top: 4rem;
  background: #1c1917;
  color: #d6d3d1;
}

.footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 3rem 1rem;
  display: grid;
  gap: 2rem;
}

.footer-brand {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 850;
  margin-bottom: 0.7rem;
}

.footer-inner p {
  max-width: 30rem;
  line-height: 1.75;
}

.footer-inner h2 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 850;
  margin-bottom: 0.7rem;
}

.footer-links {
  display: grid;
  gap: 0.45rem;
}

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

.footer-bottom {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.3rem 1rem;
  border-top: 1px solid #292524;
  color: #a8a29e;
}

.hidden-card {
  display: none;
}

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

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }

  .search-box {
    grid-template-columns: 1fr auto;
    padding: 1rem 1.1rem;
  }

  .movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .footer-inner {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .detail-layout {
    grid-template-columns: minmax(0, 1fr) 18rem;
    align-items: start;
  }
}

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

  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .hero {
    height: 31rem;
  }

  .hero-content {
    padding-bottom: 4.25rem;
  }

  .hero-dots {
    right: 1rem;
    bottom: 1.25rem;
  }

  .section {
    padding-top: 3rem;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .list-card {
    grid-template-columns: 6.2rem 1fr;
  }
}
