:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --amber: #d97706;
  --amber-dark: #b45309;
  --orange: #ea580c;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.82);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.98);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 850;
  color: #111827;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 10px 22px rgba(217, 119, 6, 0.28);
  font-size: 15px;
}

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

.nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--amber-dark);
  background: #fff7ed;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-button span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #111827;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.mobile-links {
  padding: 12px 0 18px;
  display: grid;
  gap: 8px;
}

.mobile-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
}

.mobile-cats a {
  padding: 7px 12px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 14px;
}

.hero-section {
  position: relative;
  min-height: 760px;
  padding: 128px 0 72px;
  overflow: hidden;
  background: radial-gradient(circle at 16% 24%, rgba(251, 191, 36, 0.28), transparent 32%), linear-gradient(135deg, #fff7ed 0%, #ffffff 48%, #ffedd5 100%);
}

.hero-bg {
  position: absolute;
  inset: auto -14% -24% -14%;
  height: 370px;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.18), transparent 62%);
  pointer-events: none;
}

.hero-shell {
  position: relative;
}

.hero-slider {
  position: relative;
  min-height: 560px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.64fr);
  gap: 48px;
  align-items: center;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.eyebrow,
.section-heading span,
.rank-heading span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber-dark);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
}

.hero-copy h1 {
  margin: 14px 0 10px;
  font-size: clamp(38px, 7vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.06em;
  color: #111827;
}

.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 5vw, 58px);
  line-height: 1.1;
  color: var(--amber);
}

.hero-copy p {
  max-width: 740px;
  margin: 0 0 26px;
  color: #4b5563;
  font-size: 19px;
}

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

.hero-tags span,
.tag-row span,
.footer-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.1);
  color: var(--amber-dark);
  font-size: 13px;
  font-weight: 750;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 850;
  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 28px rgba(217, 119, 6, 0.24);
}

.btn.ghost {
  color: var(--amber-dark);
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.btn.line {
  color: #374151;
  border: 1px solid rgba(217, 119, 6, 0.26);
  background: rgba(255, 255, 255, 0.54);
}

.hero-poster {
  position: relative;
  min-height: 500px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(146, 64, 14, 0.22);
  background: linear-gradient(135deg, #111827, #d97706);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 24, 39, 0.72), transparent 52%);
}

.hero-poster span {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 1;
  padding: 10px 18px;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.92);
  font-weight: 850;
}

.hero-controls {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-controls button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(217, 119, 6, 0.18);
  background: #ffffff;
  color: var(--amber-dark);
  font-size: 28px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.hero-controls div {
  display: flex;
  gap: 7px;
}

.hero-dot {
  width: 10px !important;
  height: 10px !important;
  border: 0 !important;
  background: #fed7aa !important;
  box-shadow: none !important;
}

.hero-dot.is-active {
  width: 28px !important;
  background: var(--amber) !important;
}

.section {
  padding: 72px 0;
}

.section-soft {
  background: #f3f4f6;
}

.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,
.rank-heading h2 {
  margin: 8px 0 8px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-heading p,
.category-card p,
.movie-card p,
.page-hero p,
.category-overview-card p,
.story-card p,
.site-footer p {
  color: var(--muted);
}

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

.category-card {
  min-height: 168px;
  padding: 22px;
  border-radius: var(--radius);
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(217, 119, 6, 0.32);
  box-shadow: var(--shadow);
}

.category-card span {
  display: block;
  color: #111827;
  font-size: 20px;
  font-weight: 850;
  margin-bottom: 10px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 30px;
  align-items: start;
}

.category-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 30px;
  align-items: start;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-frame,
.category-cover,
.detail-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, rgba(251, 191, 36, 0.55), transparent 32%), linear-gradient(135deg, #111827, #92400e);
}

.poster-frame {
  aspect-ratio: 3 / 4;
}

.poster-frame img,
.category-cover img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease, opacity 0.2s ease;
}

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

.play-dot {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(217, 119, 6, 0.95);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

.rank-mark {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  min-width: 32px;
  height: 32px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  font-weight: 900;
}

.movie-card-body {
  padding: 16px;
}

.movie-meta-line,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 750;
}

.movie-card h2 {
  margin: 8px 0 6px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h2 a:hover,
.text-link:hover,
.footer-links a:hover {
  color: var(--amber-dark);
}

.movie-card p {
  min-height: 52px;
  margin: 0 0 12px;
  font-size: 14px;
}

.rank-panel {
  padding: 22px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.sticky-panel {
  position: sticky;
  top: 100px;
}

.rank-item {
  display: grid;
  grid-template-columns: auto 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.rank-item:last-of-type {
  border-bottom: 0;
}

.rank-item strong {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--amber);
  font-size: 13px;
}

.rank-item img {
  width: 54px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  background: #111827;
}

.rank-item b {
  display: block;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-item em {
  display: block;
  color: #6b7280;
  font-size: 13px;
  font-style: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-more,
.text-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--amber-dark);
  font-weight: 850;
}

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

.page-hero,
.detail-hero {
  padding: 72px 0;
  color: #ffffff;
  background: radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.25), transparent 28%), linear-gradient(135deg, var(--amber), var(--orange));
}

.page-hero h1 {
  margin: 10px 0 10px;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.page-hero .eyebrow,
.detail-hero .eyebrow {
  color: #fffbeb;
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.compact-hero {
  padding: 62px 0;
}

.filter-panel {
  margin-bottom: 24px;
  padding: 20px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.filter-title {
  margin-bottom: 14px;
  font-size: 18px;
  font-weight: 850;
}

.filter-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(150px, 1fr));
  gap: 14px;
}

.filter-grid label {
  display: grid;
  gap: 7px;
  color: #4b5563;
  font-size: 14px;
  font-weight: 750;
}

.filter-grid input,
.filter-grid select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  color: #111827;
  background: #f9fafb;
  outline: none;
}

.filter-grid input:focus,
.filter-grid select:focus {
  border-color: rgba(217, 119, 6, 0.52);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.1);
}

.empty-state {
  display: none;
  padding: 48px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed #d1d5db;
  border-radius: 24px;
  background: #ffffff;
}

.empty-state.is-visible {
  display: block;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.category-cover {
  aspect-ratio: 4 / 3;
  border-radius: 18px;
}

.category-overview-card h2 {
  margin: 0 0 8px;
  font-size: 25px;
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.mini-links a {
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 13px;
}

.breadcrumb {
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: #6b7280;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--amber-dark);
  font-weight: 750;
}

.detail-hero {
  padding: 54px 0 64px;
}

.detail-hero-inner {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.detail-poster {
  aspect-ratio: 3 / 4;
  border-radius: 30px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.25);
}

.detail-info h1 {
  margin: 10px 0 14px;
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.lead {
  max-width: 850px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
}

.detail-meta {
  margin: 18px 0;
  color: rgba(255, 255, 255, 0.82);
}

.wide-tags span {
  color: #7c2d12;
  background: rgba(255, 255, 255, 0.82);
}

.video-box {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2);
}

.video-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  object-fit: contain;
}

.video-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.18));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.video-start span {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.34);
  font-size: 28px;
}

.video-start b {
  font-size: 20px;
}

.video-start.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.story-card {
  padding: 28px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.story-card h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.story-card p {
  margin: 0;
  font-size: 16px;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 1fr 1fr;
  gap: 34px;
  padding: 54px 0;
}

.footer-brand {
  color: #ffffff;
  margin-bottom: 12px;
}

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

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

.footer-links a {
  color: #d1d5db;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.footer-bottom {
  padding: 18px 0;
  text-align: center;
  color: #9ca3af;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

  .split-layout,
  .category-layout {
    grid-template-columns: 1fr;
  }

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

  .sticky-panel {
    position: static;
  }
}

@media (max-width: 860px) {
  .desktop-nav {
    display: none;
  }

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

  .mobile-panel.is-open {
    display: block;
  }

  .hero-section {
    min-height: auto;
    padding: 112px 0 64px;
  }

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

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-poster,
  .hero-poster img {
    min-height: 360px;
  }

  .hero-controls {
    bottom: -8px;
  }

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

  .detail-hero-inner,
  .detail-content,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    max-width: 320px;
  }
}

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

  .header-inner {
    min-height: 66px;
  }

  .brand {
    font-size: 18px;
  }

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

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

  .hero-copy p,
  .lead {
    font-size: 17px;
  }

  .hero-actions,
  .small-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

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

  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .movie-card p {
    min-height: auto;
  }
}
