:root {
  color-scheme: light;
  --bg: #f7f7f8;
  --surface: #ffffff;
  --surface-soft: #f3f4f6;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --dark: #0b0f19;
  --dark-soft: #111827;
  --amber: #f59e0b;
  --amber-deep: #d97706;
  --orange: #f97316;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.16);
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
}

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

img,
video {
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0));
  transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(16px);
}

.site-header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand {
  color: #ffffff;
  font-size: 24px;
}

.site-header.is-scrolled .brand,
.site-header.is-open .brand {
  color: var(--text);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.35);
  font-size: 16px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.88);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-header.is-scrolled .nav-link,
.site-header.is-open .nav-link {
  color: #374151;
}

.nav-link:hover,
.nav-link.is-active {
  background: rgba(245, 158, 11, 0.14);
  color: var(--amber);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.site-header.is-scrolled .nav-toggle,
.site-header.is-open .nav-toggle {
  color: var(--text);
  background: #f3f4f6;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: #ffffff;
  background: #070b14;
  display: grid;
  align-items: center;
  padding: 112px 0 92px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(115deg, rgba(3, 7, 18, 0.92) 0%, rgba(17, 24, 39, 0.70) 42%, rgba(251, 146, 60, 0.28) 100%), var(--hero-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: background-image 0.35s ease;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 32%;
  background: linear-gradient(0deg, #f7f7f8, rgba(247, 247, 248, 0));
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 20%, rgba(245, 158, 11, 0.28), transparent 34%), radial-gradient(circle at 82% 28%, rgba(249, 115, 22, 0.22), transparent 30%);
  mix-blend-mode: screen;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.7fr);
  gap: 54px;
  align-items: center;
}

.hero-slide {
  display: none;
  animation: fadeUp 0.45s ease both;
}

.hero-slide.is-active {
  display: block;
}

.hero-kicker,
.section-heading span,
.ranking-box-head span,
.detail-kicker,
.page-hero span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.04;
  letter-spacing: -0.06em;
  max-width: 840px;
}

.hero-subtitle {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(18px, 2vw, 24px);
  max-width: 760px;
}

.hero-tags,
.tag-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-strip span {
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 0;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 18px 38px rgba(245, 158, 11, 0.32);
}

.btn-glass {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(16px);
}

.btn.full {
  width: 100%;
}

.hero-media {
  display: grid;
  gap: 18px;
}

.hero-poster {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(135deg, #1f2937, #111827);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.44);
}

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

.hero-poster:hover img {
  transform: scale(1.05);
}

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 70px;
  height: 70px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(245, 158, 11, 0.92);
  box-shadow: 0 16px 38px rgba(245, 158, 11, 0.38);
}

.hero-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.hero-thumb {
  overflow: hidden;
  position: relative;
  min-height: 86px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 18px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.hero-thumb.is-active {
  border-color: var(--amber);
}

.hero-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
}

.hero-thumb span {
  position: absolute;
  inset: auto 8px 8px 8px;
  display: block;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  line-height: 1.25;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.hero-search {
  position: relative;
  z-index: 3;
  width: min(860px, calc(100% - 32px));
  margin: 36px auto 0;
  display: flex;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
}

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

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

.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  cursor: pointer;
}

.stats-section {
  position: relative;
  z-index: 4;
  margin-top: -52px;
  padding: 0 16px 38px;
}

.stats-grid {
  width: min(1040px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.stat-card {
  padding: 24px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.stat-card strong {
  display: block;
  color: var(--amber-deep);
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1;
}

.stat-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

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

.section-heading {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading.align-left {
  margin-left: 0;
  text-align: left;
}

.section-heading h2,
.page-hero h1,
.ranking-box h2,
.story-card h2,
.detail-facts h2 {
  margin: 14px 0 10px;
  color: var(--text);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.section-heading.light h2,
.section-heading.light p {
  color: #ffffff;
}

.dark-section {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(180deg, #111827, #030712);
}

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

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

.movie-card {
  min-width: 0;
}

.movie-card[hidden],
.ranking-row[hidden] {
  display: none !important;
}

.movie-card-link {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #111827, #374151);
}

.poster-frame.is-empty::before {
  content: "免费影视";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 900;
  letter-spacing: 0.08em;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.04));
}

.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  transform: translate(-50%, -50%) scale(0.92);
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(245, 158, 11, 0.92);
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.movie-card-link:hover .play-dot {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 10px;
  color: #ffffff;
  background: rgba(245, 158, 11, 0.94);
  font-size: 12px;
  font-weight: 900;
}

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

.movie-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.movie-meta-row span {
  border-radius: 999px;
  padding: 3px 8px;
  color: #64748b;
  background: #f1f5f9;
  font-size: 12px;
  font-weight: 700;
}

.movie-card strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.movie-card-link:hover strong {
  color: var(--amber-deep);
}

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

.tag-strip {
  margin-top: auto;
}

.tag-strip span {
  color: #6b7280;
  background: #f3f4f6;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, #1f2937, #030712);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.82;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.24), transparent 35%);
}

.category-card a:first-child {
  position: relative;
  z-index: 1;
  display: block;
  min-height: 236px;
  padding: 30px;
  color: #ffffff;
}

.category-kicker {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 13px;
  font-weight: 800;
}

.category-card h2 {
  margin: 28px 0 10px;
  font-size: 30px;
}

.category-card p {
  max-width: 500px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.category-more {
  display: inline-flex;
  margin-top: 24px;
  font-weight: 900;
  color: #ffffff;
}

.category-samples {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 30px 28px;
}

.category-samples a {
  border-radius: 999px;
  padding: 5px 10px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.13);
  font-size: 13px;
}

.accent-orange { background: linear-gradient(135deg, #f97316, #7c2d12); }
.accent-amber { background: linear-gradient(135deg, #f59e0b, #78350f); }
.accent-blue { background: linear-gradient(135deg, #2563eb, #0f172a); }
.accent-purple { background: linear-gradient(135deg, #7c3aed, #312e81); }
.accent-green { background: linear-gradient(135deg, #059669, #064e3b); }
.accent-rose { background: linear-gradient(135deg, #e11d48, #4c0519); }
.accent-cyan { background: linear-gradient(135deg, #0891b2, #164e63); }
.accent-lime { background: linear-gradient(135deg, #65a30d, #365314); }
.accent-indigo { background: linear-gradient(135deg, #4f46e5, #1e1b4b); }
.accent-pink { background: linear-gradient(135deg, #db2777, #500724); }

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}

.ranking-box {
  position: sticky;
  top: 96px;
  padding: 26px;
  border-radius: 28px;
  color: #ffffff;
  background: linear-gradient(180deg, #111827, #030712);
  box-shadow: var(--shadow);
}

.ranking-box h2 {
  color: #ffffff;
  font-size: 30px;
}

.ranking-links {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.ranking-links a {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 10px;
  align-items: center;
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-links a:hover {
  transform: translateX(4px);
  background: rgba(245, 158, 11, 0.18);
}

.ranking-links span {
  color: var(--amber);
  font-weight: 900;
}

.ranking-links strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-links em {
  color: #fde68a;
  font-style: normal;
  font-weight: 900;
}

.page-main {
  padding-top: 76px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #030712);
  padding: 76px max(16px, calc((100% - 1180px) / 2));
}

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

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
}

.small-hero {
  min-height: 330px;
  display: grid;
  align-content: center;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 26px;
  padding: 22px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.filter-panel h2 {
  margin: 0 0 4px;
  font-size: 22px;
}

.filter-panel p {
  margin: 0;
  color: var(--muted);
}

.filter-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 150px;
  gap: 10px;
}

.filter-controls input,
.filter-controls select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  outline: 0;
  background: #ffffff;
}

.filter-controls input:focus,
.filter-controls select:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.empty-state {
  margin-bottom: 24px;
  border-radius: 22px;
  padding: 26px;
  text-align: center;
  color: var(--muted);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

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

.ranking-row a {
  display: grid;
  grid-template-columns: 62px 150px 1fr 74px;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.ranking-number {
  color: var(--amber-deep);
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.ranking-cover {
  border-radius: 16px;
}

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

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

.ranking-copy strong {
  color: var(--text);
  font-size: 20px;
}

.ranking-copy em {
  color: var(--muted);
  font-style: normal;
}

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

.ranking-score {
  border-radius: 999px;
  padding: 8px 10px;
  color: #92400e;
  background: #fef3c7;
  font-weight: 900;
  text-align: center;
}

.detail-main {
  background: #f7f7f8;
}

.watch-section {
  padding: 112px max(16px, calc((100% - 1180px) / 2)) 52px;
  color: #ffffff;
  background: radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.28), transparent 34%), linear-gradient(135deg, #111827, #030712);
}

.watch-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.65fr);
  gap: 30px;
  align-items: center;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.56));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 18px 44px rgba(245, 158, 11, 0.35);
  font-size: 30px;
}

.player-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.watch-info {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

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

.watch-info h1 {
  margin: 18px 0 14px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.watch-info p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.76);
}

.detail-tags {
  margin-bottom: 28px;
}

.detail-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
}

.story-card,
.detail-facts {
  border-radius: 26px;
  padding: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.story-card p {
  margin: 0;
  color: #4b5563;
  font-size: 17px;
}

.detail-facts {
  grid-row: span 2;
}

.detail-facts ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.detail-facts li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.detail-facts li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.detail-facts span {
  color: var(--muted);
}

.detail-facts strong {
  text-align: right;
}

.related-section {
  padding-top: 52px;
}

.site-footer {
  color: rgba(255, 255, 255, 0.76);
  background: linear-gradient(180deg, #111827, #030712);
  padding: 54px max(16px, calc((100% - 1180px) / 2)) 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 42px;
}

.footer-brand {
  color: #ffffff;
  font-size: 24px;
}

.footer-grid p {
  max-width: 420px;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

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

.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.54);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .hero-inner,
  .watch-grid,
  .split-section,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .hero-media {
    max-width: 560px;
    margin: 0 auto;
  }

  .ranking-box {
    position: static;
  }

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

@media (max-width: 820px) {
  .site-header-inner {
    height: 68px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-soft);
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .site-nav .nav-link {
    color: #374151;
  }

  .hero {
    padding-top: 94px;
  }

  .hero-inner {
    gap: 30px;
  }

  .hero-search {
    border-radius: 24px;
    flex-direction: column;
  }

  .hero-search button {
    min-height: 48px;
  }

  .stats-grid,
  .movie-grid,
  .compact-grid,
  .category-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .filter-panel,
  .filter-controls {
    grid-template-columns: 1fr;
  }

  .ranking-row a {
    grid-template-columns: 42px 96px 1fr;
  }

  .ranking-score {
    grid-column: 3;
    width: fit-content;
  }
}

@media (max-width: 560px) {
  .brand-name {
    font-size: 20px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-thumbs,
  .stats-grid,
  .movie-grid,
  .compact-grid,
  .category-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-wrap {
    padding: 48px 0;
  }

  .category-card a:first-child {
    min-height: 210px;
  }

  .watch-section {
    padding-top: 92px;
  }

  .watch-info,
  .story-card,
  .detail-facts {
    padding: 22px;
  }

  .ranking-row a {
    grid-template-columns: 34px 1fr;
  }

  .ranking-cover {
    display: none;
  }

  .ranking-copy {
    grid-column: 2;
  }

  .ranking-score {
    grid-column: 2;
  }
}
