
:root {
  --color-ink: #0f172a;
  --color-muted: #64748b;
  --color-soft: #f8fafc;
  --color-line: #e2e8f0;
  --color-amber: #f59e0b;
  --color-orange: #ea580c;
  --color-rose: #be123c;
  --color-teal: #0d9488;
  --color-cyan: #0891b2;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 10px 28px rgba(15, 23, 42, 0.10);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-ink);
  background: linear-gradient(135deg, #f8fafc 0%, #fff7ed 100%);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(120, 53, 15, 0.92), rgba(154, 52, 18, 0.92));
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: linear-gradient(90deg, rgba(120, 53, 15, 0.98), rgba(154, 52, 18, 0.98));
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.22);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.35);
  font-size: 15px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #fff7ed;
  font-size: 15px;
  font-weight: 700;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: #fbbf24;
  transition: transform 0.2s ease;
}

.main-nav a:hover {
  color: #fef3c7;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #ffffff;
  border-radius: 999px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  padding: 132px 0 80px;
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.28), transparent 30%),
    radial-gradient(circle at 85% 18%, rgba(244, 63, 94, 0.22), transparent 28%),
    linear-gradient(135deg, #78350f 0%, #9a3412 48%, #881337 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.22);
  pointer-events: none;
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.75;
}

.hero-particles span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(252, 211, 77, 0.58);
  animation: pulse-dot 3s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 0.15;
    transform: scale(0.7);
  }
  50% {
    opacity: 1;
    transform: scale(1.25);
  }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 44px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fde68a;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.hero h1,
.page-hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.gradient-text {
  color: transparent;
  background: linear-gradient(90deg, #fde68a, #fff7ed);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-lead {
  max-width: 680px;
  margin: 0 0 30px;
  color: #ffedd5;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.8;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 40px rgba(245, 158, 11, 0.34);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.44);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 620px);
  margin: 28px 0 0;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  padding: 0 12px;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.hero-search button {
  min-height: 42px;
  padding: 0 18px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.hero-stat {
  padding: 18px 14px;
  text-align: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-stat strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.hero-stat span {
  display: block;
  margin-top: 8px;
  color: #ffedd5;
  font-size: 13px;
}

.hero-slider {
  position: relative;
  min-height: 510px;
  border-radius: 30px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.32);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

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

.image-missing img,
img.is-missing {
  visibility: hidden;
}

.poster-wrap.image-missing,
.hero-slide.image-missing,
.video-poster.image-missing {
  background:
    radial-gradient(circle at 30% 20%, rgba(251, 191, 36, 0.4), transparent 28%),
    linear-gradient(135deg, #334155, #7c2d12 55%, #881337);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.34) 52%, rgba(0, 0, 0, 0.1) 100%);
}

.slide-content {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px;
}

.slide-content .meta-line {
  color: #fde68a;
  font-weight: 800;
}

.slide-content h2 {
  margin: 10px 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
}

.slide-content p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 20px;
  color: #e5e7eb;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.slider-dots {
  position: absolute;
  z-index: 4;
  right: 24px;
  top: 24px;
  display: flex;
  gap: 8px;
}

.slider-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  cursor: pointer;
}

.slider-dots button.is-active {
  width: 28px;
  background: #fbbf24;
}

.stats-strip {
  padding: 42px 0;
  color: #ffffff;
  background: linear-gradient(90deg, #0d9488, #0891b2);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.stats-grid div {
  text-align: center;
}

.stats-grid strong {
  display: block;
  font-size: 32px;
  line-height: 1;
}

.stats-grid span {
  display: block;
  margin-top: 8px;
  color: #cffafe;
}

.section {
  padding: 72px 0;
}

.section-white {
  background: #ffffff;
}

.section-soft {
  background: linear-gradient(135deg, #f8fafc, #fff7ed);
}

.section-rose {
  background: linear-gradient(135deg, #ffe4e6, #fce7f3);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
}

.section-title {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.section-subtitle {
  margin: 10px 0 0;
  color: var(--color-muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-orange);
  font-weight: 900;
}

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

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #334155, #78350f);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 62%);
  transition: opacity 0.2s ease;
}

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

.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.68);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.rank-badge {
  left: 12px;
  right: auto;
  background: #e11d48;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
  min-width: 0;
}

.meta-line {
  color: var(--color-teal);
  font-size: 13px;
  font-weight: 900;
}

.movie-card strong {
  display: -webkit-box;
  overflow: hidden;
  min-height: 48px;
  margin: 8px 0 8px;
  color: #1e293b;
  font-size: 18px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-desc {
  display: -webkit-box;
  overflow: hidden;
  min-height: 44px;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.58;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-row span,
.detail-tags span,
.category-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #0f766e;
  background: #ccfbf1;
  font-size: 12px;
  font-weight: 800;
}

.featured-grid .movie-card {
  position: relative;
  border-radius: 28px;
}

.featured-grid .poster-wrap {
  aspect-ratio: 16 / 11;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  padding: 24px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #0891b2);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:nth-child(3n + 1) {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.category-card:nth-child(3n + 2) {
  background: linear-gradient(135deg, #be123c, #9333ea);
}

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

.category-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-card p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.category-card strong {
  font-size: 30px;
}

.ranking-list {
  display: grid;
  gap: 16px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 64px 170px minmax(0, 1fr) 130px;
  gap: 18px;
  align-items: center;
  overflow: hidden;
  padding: 14px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ranking-row:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.ranking-number {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: #e11d48;
  font-weight: 900;
}

.ranking-row img {
  width: 170px;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  object-fit: cover;
  background: linear-gradient(135deg, #334155, #78350f);
}

.ranking-copy {
  min-width: 0;
}

.ranking-copy strong,
.ranking-copy em,
.ranking-copy span {
  display: block;
}

.ranking-copy strong {
  margin-bottom: 6px;
  font-size: 20px;
}

.ranking-copy em {
  margin-bottom: 8px;
  color: var(--color-teal);
  font-style: normal;
  font-weight: 800;
}

.ranking-copy span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--color-muted);
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ranking-score {
  justify-self: end;
  color: #e11d48;
  font-weight: 900;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 130px 0 58px;
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.28), transparent 30%),
    linear-gradient(135deg, #78350f, #9a3412 50%, #881337);
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #ffedd5;
  font-size: 19px;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: #fde68a;
  font-weight: 800;
}

.filter-panel {
  margin: -28px auto 36px;
  padding: 22px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 0 16px;
  border: 2px solid var(--color-line);
  border-radius: 16px;
  transition: border-color 0.2s ease;
}

.search-box:focus-within {
  border-color: var(--color-teal);
}

.search-box span {
  color: var(--color-muted);
  font-size: 24px;
}

.search-box input {
  width: 100%;
  min-height: 52px;
  border: 0;
  outline: 0;
  color: var(--color-ink);
  background: transparent;
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.filter-controls label {
  display: grid;
  gap: 8px;
  min-width: 170px;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 800;
}

.filter-controls select {
  min-height: 46px;
  padding: 0 12px;
  border: 2px solid var(--color-line);
  border-radius: 14px;
  color: var(--color-ink);
  background: #ffffff;
  outline: 0;
}

.filter-controls select:focus {
  border-color: var(--color-teal);
}

.filter-result {
  margin: 14px 0 0;
  color: var(--color-muted);
  font-size: 14px;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  padding-bottom: 70px;
}

.no-results {
  display: none;
  margin: 24px 0 70px;
  padding: 38px;
  text-align: center;
  border-radius: 24px;
  color: var(--color-muted);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.no-results.is-visible {
  display: block;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.8fr);
  gap: 30px;
  padding: 104px 0 72px;
}

.player-card,
.detail-card,
.side-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-start {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 18px 45px rgba(245, 158, 11, 0.35);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.player-start:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

.detail-card {
  padding: 28px;
}

.detail-title {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.detail-card .hero-lead {
  color: #475569;
  font-size: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 22px;
}

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #0f766e;
  background: #ccfbf1;
  font-size: 13px;
  font-weight: 900;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.detail-content h2 {
  margin: 28px 0 12px;
  font-size: 24px;
}

.detail-content p {
  color: #334155;
  font-size: 16px;
  line-height: 1.95;
}

.side-card {
  padding: 22px;
}

.side-card + .side-card {
  margin-top: 22px;
}

.side-card h3 {
  margin: 0 0 16px;
  font-size: 22px;
}

.cover-large {
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #334155, #78350f);
}

.cover-large img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.related-list {
  display: grid;
  gap: 12px;
}

.related-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.related-item img {
  width: 92px;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, #334155, #78350f);
}

.related-item strong {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 4px;
  font-size: 15px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.related-item span {
  color: var(--color-muted);
  font-size: 12px;
}

.info-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-line);
}

.info-list span {
  color: var(--color-muted);
}

.info-list strong {
  text-align: right;
}

.content-card {
  margin: 56px auto 72px;
  padding: clamp(24px, 4vw, 46px);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 30px;
}

.content-card p,
.content-card li {
  color: #334155;
  line-height: 1.9;
}

.content-card ul {
  padding-left: 1.2em;
}

.site-footer {
  color: #cbd5e1;
  background: #0f172a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 34px;
  padding: 50px 0 34px;
}

.footer-logo {
  color: #ffffff;
  margin-bottom: 16px;
}

.site-footer p {
  max-width: 480px;
  color: #94a3b8;
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #fde68a;
}

.site-footer ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-footer a:hover {
  color: #fbbf24;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.28);
  color: #94a3b8;
  font-size: 14px;
}

[data-movie-card].is-hidden {
  display: none !important;
}

@media (max-width: 1040px) {
  .hero-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-slider {
    min-height: 460px;
  }

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

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

@media (max-width: 780px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border-radius: 20px;
    background: rgba(120, 53, 15, 0.98);
    box-shadow: var(--shadow-soft);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 13px 10px;
  }

  .hero {
    min-height: auto;
    padding: 110px 0 56px;
  }

  .hero-search {
    border-radius: 22px;
    align-items: stretch;
    flex-direction: column;
  }

  .hero-search input {
    width: 100%;
    min-height: 44px;
  }

  .hero-search button {
    width: 100%;
  }

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

  .movie-grid,
  .listing-grid,
  .category-grid,
  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

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

  .filter-panel {
    margin-top: -18px;
  }

  .filter-controls,
  .filter-controls label {
    width: 100%;
  }

  .ranking-row {
    grid-template-columns: 48px 104px minmax(0, 1fr);
  }

  .ranking-score {
    display: none;
  }

  .ranking-row img {
    width: 104px;
  }

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

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .logo {
    font-size: 18px;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 38px;
  }

  .hero-slider {
    min-height: 390px;
    border-radius: 22px;
  }

  .slide-content {
    padding: 24px;
  }

  .movie-grid,
  .listing-grid,
  .category-grid,
  .featured-grid {
    grid-template-columns: 1fr;
  }

  .detail-layout {
    padding-top: 92px;
  }
}
