:root {
  --bg: #fafaf9;
  --bg-soft: #f5f5f4;
  --panel: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: rgba(148, 163, 184, 0.28);
  --dark: #0f172a;
  --dark-soft: #1e293b;
  --accent: #d97706;
  --accent-2: #f59e0b;
  --radius: 22px;
  --shadow: 0 22px 60px rgba(15, 23, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  display: block;
  max-width: 100%;
  background: linear-gradient(135deg, #1f2937, #92400e);
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #0f172a, #1f2937 45%, #0f172a);
  color: #f8fafc;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.24);
  border-bottom: 1px solid rgba(245, 158, 11, 0.25);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  box-shadow: 0 14px 34px rgba(217, 119, 6, 0.38);
  font-size: 18px;
  font-weight: 900;
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 22px;
  letter-spacing: 0.04em;
}

.brand-text small {
  color: #cbd5e1;
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  gap: 22px;
  white-space: nowrap;
}

.nav-link {
  position: relative;
  color: #e5e7eb;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-2);
  transition: right 0.25s ease;
}

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

.nav-link:hover::after,
.nav-link.is-active::after {
  right: 0;
}

.nav-link-muted {
  color: #cbd5e1;
  font-weight: 500;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 11px;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
}

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.mobile-link {
  padding: 10px 12px;
  border-radius: 12px;
  color: #e5e7eb;
}

.mobile-link:hover,
.mobile-link.is-active {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}

.hero-layer {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 25%, rgba(245, 158, 11, 0.22), transparent 34%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.78) 45%, rgba(15, 23, 42, 0.15));
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #ffffff;
  max-width: min(1180px, calc(100% - 32px));
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-content > * {
  pointer-events: auto;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 14px;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(217, 119, 6, 0.92);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.hero h2 {
  max-width: 760px;
  margin: 20px 0 16px;
  color: #ffffff;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 24px;
  color: #e7e5e4;
  font-size: clamp(18px, 2vw, 23px);
}

.hero-meta,
.detail-meta,
.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-meta span,
.detail-meta span,
.movie-meta span {
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(15, 23, 42, 0.32);
  color: #f8fafc;
  font-size: 12px;
}

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

.primary-button,
.ghost-button,
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 16px 34px rgba(217, 119, 6, 0.34);
}

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

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.outline-button {
  color: #92400e;
  border: 1px solid rgba(217, 119, 6, 0.28);
  background: #fffbeb;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  transform: translateY(-50%);
  color: #ffffff;
  background: rgba(15, 23, 42, 0.46);
  backdrop-filter: blur(12px);
  font-size: 34px;
  line-height: 1;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 4;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: #f59e0b;
}

.section {
  padding: 76px 0;
}

.section-dark {
  color: #ffffff;
  background: linear-gradient(180deg, #1e293b, #334155);
}

.section-split {
  background: linear-gradient(180deg, #fafaf9, #f5f5f4);
}

.section-heading {
  text-align: center;
  margin-bottom: 34px;
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
}

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

.section-heading h2,
.page-hero h1,
.article-card h2,
.side-card h2,
.category-overview-head h2 {
  margin: 12px 0 10px;
  color: inherit;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

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

.section-dark .section-heading p,
.section-dark .text-link-light {
  color: #cbd5e1;
}

.text-link-light {
  font-weight: 800;
}

.featured-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

.featured-scroll::-webkit-scrollbar {
  height: 9px;
}

.featured-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.55);
}

.featured-card {
  position: relative;
  flex: 0 0 310px;
  height: 300px;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow);
  scroll-snap-align: start;
  background: #0f172a;
}

.featured-card img,
.category-tile img,
.poster-wrap img,
.detail-info-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.featured-card:hover img,
.category-tile:hover img,
.movie-card:hover .poster-wrap img {
  transform: scale(1.07);
}

.featured-shade,
.category-tile-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.86));
}

.featured-copy,
.category-tile-copy {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 7px;
  color: #ffffff;
}

.featured-copy strong,
.category-tile-copy strong {
  font-size: 20px;
  line-height: 1.25;
}

.featured-copy small,
.category-tile-copy em {
  color: #e5e7eb;
  font-style: normal;
}

.featured-play {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #111827;
  background: #fbbf24;
  opacity: 0;
  transform: translateY(-6px);
  transition: all 0.2s ease;
}

.featured-card:hover .featured-play {
  opacity: 1;
  transform: translateY(0);
}

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

.category-tile {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border-radius: 24px;
  background: #111827;
  box-shadow: var(--shadow);
}

.category-mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.category-mini-list span {
  max-width: 100%;
  padding: 3px 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff7ed;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(130px, 180px));
  gap: 14px;
  margin-bottom: 26px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(12px);
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(217, 119, 6, 0.55);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #1f2937;
}

.score-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  min-width: 42px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #111827;
  background: #fbbf24;
  font-weight: 900;
  text-align: center;
}

.play-float {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(10px);
}

.movie-card-body {
  display: grid;
  gap: 9px;
  padding: 16px;
}

.movie-title {
  min-height: 48px;
  color: var(--text);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.movie-title:hover {
  color: var(--accent);
}

.movie-meta span {
  background: #f8fafc;
  color: #475569;
}

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

.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span,
.detail-tags a {
  padding: 4px 9px;
  border-radius: 999px;
  color: #92400e;
  background: #fffbeb;
  font-size: 12px;
  font-weight: 700;
}

.ranking-panel,
.article-card,
.side-card,
.category-overview-block,
.detail-info-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.ranking-panel {
  position: sticky;
  top: 96px;
  padding: 18px;
}

.ranking-heading,
.category-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.ranking-heading span,
.ranking-heading a {
  font-weight: 900;
}

.ranking-heading a {
  color: var(--accent);
  font-size: 14px;
}

.rank-list,
.ranking-page-list {
  display: grid;
  gap: 12px;
}

.rank-item {
  display: grid;
  grid-template-columns: 42px 64px minmax(0, 1fr) 44px;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #f8fafc;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  background: #fff7ed;
}

.rank-number {
  color: var(--accent);
  font-weight: 1000;
  font-size: 18px;
  text-align: center;
}

.rank-item img {
  width: 64px;
  height: 86px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.rank-copy strong,
.rank-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy strong {
  font-weight: 900;
}

.rank-copy small {
  color: var(--muted);
}

.rank-score {
  color: var(--accent);
  font-weight: 900;
  text-align: right;
}

.page-hero {
  padding: 72px 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 84% 20%, rgba(245, 158, 11, 0.24), transparent 32%),
    linear-gradient(135deg, #0f172a, #1e293b 62%, #431407);
}

.page-hero p {
  max-width: 760px;
  color: #cbd5e1;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: #cbd5e1;
  font-size: 14px;
}

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

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

.category-overview-block {
  padding: 24px;
}

.category-overview-head h2 {
  font-size: 30px;
}

.empty-message {
  padding: 26px;
  border: 1px dashed rgba(217, 119, 6, 0.35);
  border-radius: 20px;
  color: var(--muted);
  background: #fff7ed;
  text-align: center;
}

.detail-hero {
  padding: 34px 0 68px;
  color: #ffffff;
  background:
    radial-gradient(circle at 78% 20%, rgba(245, 158, 11, 0.22), transparent 34%),
    linear-gradient(135deg, #0f172a, #111827 62%, #1e293b);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: stretch;
}

.player-card {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

.movie-player {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: block;
  background: #020617;
  object-fit: contain;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 24px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.82));
  text-align: center;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.big-play {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  box-shadow: 0 20px 48px rgba(217, 119, 6, 0.4);
  font-size: 34px;
  font-weight: 900;
}

.play-overlay strong {
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.2;
}

.play-overlay span {
  color: #e5e7eb;
}

.detail-info-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: 260px 1fr;
  color: var(--text);
}

.detail-info-card > div {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.detail-info-card h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
}

.detail-info-card p {
  margin: 0;
  color: var(--muted);
}

.detail-button {
  margin-top: 4px;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.article-card,
.side-card {
  padding: 28px;
}

.article-card h2,
.side-card h2 {
  font-size: 26px;
}

.article-card p {
  color: #334155;
  font-size: 17px;
}

.side-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.side-card dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.side-card dd {
  margin: -8px 0 0;
  color: var(--text);
  font-weight: 700;
}

.side-card a {
  color: var(--accent);
}

.related-section {
  padding-top: 0;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(90deg, #020617, #0f172a 55%, #020617);
  border-top: 1px solid rgba(245, 158, 11, 0.2);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) 0.8fr 1.2fr;
  gap: 34px;
  padding: 46px 0;
}

.brand-footer .brand-text strong {
  color: #ffffff;
}

.footer-brand p {
  max-width: 520px;
  color: #94a3b8;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-links h2 {
  margin: 0 0 6px;
  color: #ffffff;
  font-size: 16px;
}

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

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

.footer-cats h2 {
  grid-column: 1 / -1;
}

.footer-bottom {
  padding: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  color: #94a3b8;
  text-align: center;
  font-size: 13px;
}

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

  .menu-button {
    display: block;
  }

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

  .ranking-panel {
    position: static;
  }

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

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

  .brand-text strong {
    font-size: 18px;
  }

  .brand-text small {
    font-size: 11px;
  }

  .hero {
    height: 560px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 82px;
  }

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

  .section {
    padding: 54px 0;
  }

  .section-heading-row,
  .category-overview-head {
    display: grid;
    align-items: start;
  }

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

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

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

  .movie-title {
    font-size: 15px;
  }

  .movie-meta span,
  .hero-meta span,
  .detail-meta span {
    font-size: 11px;
  }

  .player-card,
  .movie-player {
    min-height: 260px;
  }

  .detail-info-card {
    grid-template-rows: 260px auto;
  }

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

@media (max-width: 480px) {
  .movie-grid,
  .movie-grid-wide,
  .movie-grid-featured,
  .category-grid,
  .movie-grid-small {
    grid-template-columns: 1fr;
  }

  .featured-card {
    flex-basis: 260px;
  }

  .rank-item {
    grid-template-columns: 34px 56px minmax(0, 1fr);
  }

  .rank-score {
    display: none;
  }
}
