:root {
  --bg: #f8fafc;
  --ink: #0f172a;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.12);
  --amber: #f59e0b;
  --amber-soft: #fef3c7;
  --teal: #0f766e;
  --cyan: #0891b2;
  --slate: #111827;
  --radius: 24px;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.12), transparent 32rem), var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(120, 53, 15, 0.96), rgba(124, 45, 18, 0.94));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
}

.nav-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff7ed;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #7c2d12;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #fffbeb;
  font-weight: 700;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
}

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

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

.menu-toggle {
  display: none;
  border: 0;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 20px;
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  background: #0f172a;
}

.hero-bg-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 22% 30%, rgba(245, 158, 11, 0.35), transparent 28rem), radial-gradient(circle at 75% 20%, rgba(8, 145, 178, 0.28), transparent 30rem);
  z-index: 3;
  pointer-events: none;
}

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

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

.hero-slide img {
  position: absolute;
  inset: 0;
  opacity: 0.44;
  filter: saturate(1.1) contrast(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.8)), linear-gradient(0deg, #0f172a 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 5;
  max-width: 900px;
  padding: 150px 24px 220px;
  margin: 0 auto;
  text-align: center;
  color: #fff7ed;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fcd34d;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 16px 0 8px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 46px);
  color: #fde68a;
}

.hero p {
  max-width: 760px;
  margin: 0 auto 24px;
  color: #ffedd5;
  font-size: 20px;
}

.hero-tags,
.detail-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.hero-tags span,
.detail-tags span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  color: #92400e;
  background: #fef3c7;
  font-size: 13px;
  font-weight: 800;
}

.hero-actions,
.inner-actions {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 24px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #78350f;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  box-shadow: 0 18px 40px rgba(245, 158, 11, 0.32);
}

.btn-ghost {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(10px);
}

.hero-tabs {
  position: absolute;
  left: 50%;
  bottom: 44px;
  z-index: 6;
  width: min(1120px, calc(100% - 32px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.hero-tab {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
  color: #fff7ed;
  padding: 8px;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  align-items: center;
  text-align: left;
  cursor: pointer;
  backdrop-filter: blur(16px);
}

.hero-tab img {
  width: 58px;
  height: 74px;
  border-radius: 16px;
}

.hero-tab span {
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-tab.is-active {
  background: rgba(245, 158, 11, 0.35);
  border-color: rgba(253, 230, 138, 0.75);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  color: white;
  background: linear-gradient(90deg, #0f766e, #0891b2);
}

.stats-strip div {
  padding: 26px 18px;
  text-align: center;
}

.stats-strip strong {
  display: block;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.stats-strip span {
  color: #cffafe;
  font-weight: 700;
}

.section-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 72px 20px;
}

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

.section-heading h2,
.inner-hero h1,
.detail-info h1 {
  margin: 8px 0;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-heading p,
.inner-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 700px;
}

.section-heading > a,
.sample-links a,
.footer-grid a,
.link-group h2 a {
  color: #d97706;
  font-weight: 900;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #111827;
}

.poster-link img {
  transition: transform 0.32s ease;
}

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

.play-chip,
.rank-badge {
  position: absolute;
  border-radius: 999px;
  color: white;
  font-weight: 900;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
}

.play-chip {
  right: 12px;
  bottom: 12px;
  padding: 7px 12px;
}

.rank-badge {
  left: 12px;
  top: 12px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f59e0b, #dc2626);
}

.card-body {
  padding: 18px;
}

.card-title {
  display: block;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 8px;
}

.card-body p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.meta-line span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #f1f5f9;
  padding: 4px 9px;
}

.tag-list {
  justify-content: flex-start;
  margin-top: 12px;
}

.tag-list span {
  color: #0f766e;
  background: #ccfbf1;
}

.soft-panel {
  max-width: none;
  padding-left: max(20px, calc((100vw - 1240px) / 2 + 20px));
  padding-right: max(20px, calc((100vw - 1240px) / 2 + 20px));
  background: linear-gradient(135deg, #fff7ed, #ecfeff);
}

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

.category-tile {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: white;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.category-tile img {
  position: absolute;
  inset: 0;
  opacity: 0.42;
  transition: transform 0.32s ease;
}

.category-tile:hover img {
  transform: scale(1.06);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.92), transparent 70%);
}

.category-tile span,
.category-tile strong,
.category-tile p {
  position: relative;
  z-index: 1;
}

.category-tile span {
  font-size: 24px;
  font-weight: 900;
}

.category-tile p {
  margin: 8px 0 0;
  color: #e2e8f0;
  font-size: 14px;
}

.dark-panel {
  max-width: none;
  padding-left: max(20px, calc((100vw - 1240px) / 2 + 20px));
  padding-right: max(20px, calc((100vw - 1240px) / 2 + 20px));
  color: white;
  background: linear-gradient(135deg, #0f172a, #1f2937);
}

.light-heading p {
  color: #cbd5e1;
}

.light-heading > a {
  color: #fcd34d;
}

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

.wide-card {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 18px;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

.dark-panel .wide-card {
  color: #111827;
}

.wide-poster {
  display: block;
  height: 176px;
  border-radius: 18px;
  overflow: hidden;
  background: #111827;
}

.wide-body {
  align-self: center;
}

.wide-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  margin-bottom: 8px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, #f59e0b, #dc2626);
  font-weight: 900;
}

.wide-title {
  display: block;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.2;
}

.wide-body p {
  color: var(--muted);
  margin: 10px 0 14px;
}

.filter-bar,
.filter-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 180px 180px auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  padding: 18px;
  border-radius: 22px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.filter-bar {
  grid-template-columns: 1fr 180px auto;
}

.filter-bar input,
.filter-panel input,
.filter-bar select,
.filter-panel select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 12px 14px;
  color: #0f172a;
  background: #f8fafc;
  outline: none;
  font: inherit;
}

.filter-bar input:focus,
.filter-panel input:focus,
.filter-bar select:focus,
.filter-panel select:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

[data-filter-count] {
  color: #0f766e;
  font-weight: 900;
  white-space: nowrap;
}

.inner-hero {
  position: relative;
  overflow: hidden;
  color: white;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(15, 118, 110, 0.88)), radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.35), transparent 26rem);
  padding: 104px 20px 76px;
  text-align: center;
}

.inner-hero p {
  margin-left: auto;
  margin-right: auto;
  color: #dbeafe;
  font-size: 18px;
}

.category-summary-grid {
  display: grid;
  gap: 22px;
}

.category-summary {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 18px;
  border-radius: var(--radius);
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

.summary-cover {
  height: 260px;
  overflow: hidden;
  border-radius: 20px;
  background: #111827;
}

.category-summary h2 {
  margin: 6px 0;
  font-size: 30px;
}

.sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.sample-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff7ed;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: white;
  background: #0f172a;
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  filter: blur(4px) saturate(1.15);
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.72));
}

.detail-layout {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 92px 20px 70px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 42px;
  align-items: center;
}

.detail-cover {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 30px;
  background: #111827;
  box-shadow: var(--shadow);
}

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

.detail-info p {
  max-width: 820px;
  color: #e2e8f0;
  font-size: 19px;
}

.detail-tags {
  justify-content: flex-start;
  margin: 22px 0;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-meta span {
  display: inline-flex;
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff7ed;
  font-weight: 800;
}

.detail-section {
  display: grid;
  gap: 30px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.stream-player {
  display: block;
  width: 100%;
  height: 100%;
  background: #020617;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: white;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.72));
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
}

.play-layer.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.play-circle {
  width: 74px;
  height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #78350f;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  box-shadow: 0 18px 42px rgba(245, 158, 11, 0.34);
}

.article-block {
  padding: 30px;
  border-radius: 26px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

.article-block h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.article-block p {
  margin: 0 0 24px;
  color: #334155;
  font-size: 17px;
}

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

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

.link-group {
  padding: 24px;
  border-radius: 24px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

.link-group h2 {
  margin: 0 0 14px;
}

.link-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
}

.link-group li {
  break-inside: avoid;
  margin-bottom: 8px;
}

.link-group a {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  color: #0f172a;
  font-weight: 800;
}

.link-group span {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(135deg, #0f172a, #111827);
  padding: 58px 20px 40px;
}

.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
}

.footer-grid h2,
.footer-grid h3 {
  color: #fcd34d;
  margin-top: 0;
}

.footer-grid a {
  display: block;
  margin: 8px 0;
  color: #fde68a;
}

@media (max-width: 1024px) {
  .card-grid,
  .compact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .hero-tabs {
    grid-template-columns: repeat(3, 1fr);
  }

  .detail-layout {
    grid-template-columns: 240px 1fr;
  }
}

@media (max-width: 760px) {
  .nav-wrap {
    flex-wrap: wrap;
  }

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

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 12px;
  }

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

  .nav-links a {
    padding: 12px 0;
  }

  .hero {
    min-height: 820px;
  }

  .hero-content {
    padding-top: 120px;
    padding-bottom: 260px;
  }

  .hero-tabs {
    grid-template-columns: 1fr;
    bottom: 24px;
  }

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

  .section-heading {
    display: block;
  }

  .card-grid,
  .compact-grid,
  .category-grid,
  .library-links {
    grid-template-columns: 1fr;
  }

  .wide-card,
  .category-summary,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .wide-poster,
  .summary-cover {
    height: 220px;
  }

  .detail-cover {
    max-width: 260px;
  }

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

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

  .link-group ul {
    columns: 1;
  }
}
