:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #f3f4f6;
  --line: #e5e7eb;
  --amber: #d97706;
  --amber-dark: #b45309;
  --amber-soft: #fffbeb;
  --orange-soft: #fff7ed;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7ed 0, #f8fafc 320px, #f8fafc 100%);
  line-height: 1.7;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.80);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), #f59e0b);
  box-shadow: 0 10px 22px rgba(217, 119, 6, 0.30);
  font-size: 14px;
}

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

.nav-link {
  padding: 9px 13px;
  border-radius: 999px;
  color: #374151;
  font-size: 15px;
  transition: 0.22s ease;
}

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

.search-form {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(360px, 34vw);
}

.search-form input,
.large-search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 11px 16px;
  outline: none;
  color: var(--ink);
  transition: 0.22s ease;
}

.search-form input:focus,
.large-search input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.search-form button,
.large-search button,
.btn.primary {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), #f59e0b);
  box-shadow: 0 12px 26px rgba(217, 119, 6, 0.22);
  cursor: pointer;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--soft);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.mobile-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: #374151;
}

.mobile-nav a:hover {
  background: var(--amber-soft);
  color: var(--amber-dark);
}

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

.hero-slider {
  position: relative;
  height: min(620px, calc(100vh - 72px));
  min-height: 520px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.08);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 32%, rgba(245, 158, 11, 0.38), transparent 28%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.58) 46%, rgba(0, 0, 0, 0.18)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.05) 46%, rgba(0, 0, 0, 0.50));
}

.hero-content {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 360px;
  align-items: center;
  gap: 48px;
}

.hero-copy {
  color: #fff;
  max-width: 740px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fde68a;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow.amber {
  color: var(--amber-dark);
}

.hero-copy h1,
.hero-copy h2 {
  margin: 14px 0 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 2vw, 20px);
}

.hero-tags,
.detail-meta,
.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.detail-meta span,
.detail-meta a,
.card-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  transition: 0.22s ease;
}

.btn.ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
}

.btn.text {
  color: #fde68a;
}

.btn:hover,
.movie-card:hover,
.category-card:hover,
.mini-card:hover {
  transform: translateY(-2px);
}

.hero-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-category-links a {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 14px;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  aspect-ratio: 3 / 4;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.48);
}

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

.hero-controls {
  position: absolute;
  right: max(24px, calc((100% - 1180px) / 2));
  bottom: 34px;
  display: flex;
  gap: 10px;
  z-index: 3;
}

.hero-controls button,
.hero-dots button {
  border: 0;
  cursor: pointer;
}

.hero-controls button {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  font-size: 28px;
  line-height: 1;
}

.hero-dots {
  position: absolute;
  left: max(24px, calc((100% - 1180px) / 2));
  bottom: 46px;
  display: flex;
  gap: 8px;
  z-index: 3;
}

.hero-dots button {
  width: 30px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
}

.hero-dots button.is-active {
  background: #f59e0b;
}

.section-block {
  margin: 44px 0;
}

.intro-panel,
.panel-card,
.story-card,
.side-box,
.category-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.intro-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 30px;
  align-items: center;
  padding: 30px;
  margin-top: -42px;
  position: relative;
  z-index: 5;
}

.intro-panel h2,
.section-head h2,
.simple-hero h1,
.detail-title-block h1 {
  margin: 6px 0 0;
  letter-spacing: -0.04em;
  line-height: 1.16;
}

.intro-panel h2 {
  font-size: clamp(26px, 4vw, 42px);
}

.intro-panel p,
.simple-hero p,
.category-card p,
.story-card p {
  color: #4b5563;
}

.large-search {
  display: flex;
  gap: 10px;
}

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

.section-head.tight {
  margin-bottom: 14px;
}

.section-head span {
  color: var(--amber-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-head h2 {
  font-size: clamp(25px, 3vw, 34px);
}

.section-head a {
  color: var(--amber-dark);
  font-weight: 800;
}

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

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: 0.24s ease;
}

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

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

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

.hover-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(217, 119, 6, 0.92);
  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0;
  transition: 0.24s ease;
}

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

.card-body {
  padding: 14px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: var(--amber-dark);
}

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

.card-meta span {
  background: var(--amber-soft);
  color: #92400e;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 24px;
  margin: 44px auto;
}

.panel-card,
.story-card,
.side-box {
  padding: 24px;
}

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

.rank-list a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-areas: "num title" "num meta";
  align-items: center;
  column-gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: #f9fafb;
  transition: 0.2s ease;
}

.rank-list a:hover {
  background: var(--amber-soft);
}

.rank-list span {
  grid-area: num;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), #f59e0b);
  font-weight: 800;
}

.rank-list strong {
  grid-area: title;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-list em {
  grid-area: meta;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.cloud-links,
.subnav-row,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cloud-links a,
.subnav-row a,
.tag-list a,
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  color: #92400e;
  background: var(--amber-soft);
  font-weight: 700;
  font-size: 14px;
}

.cloud-links.small a {
  font-size: 13px;
  padding: 7px 10px;
}

.page-main {
  padding: 36px 0 70px;
}

.simple-hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: clamp(28px, 5vw, 58px);
  margin-bottom: 34px;
  background:
    radial-gradient(circle at 88% 18%, rgba(245, 158, 11, 0.26), transparent 28%),
    linear-gradient(135deg, #fff7ed, #ffffff 48%, #f9fafb);
  border: 1px solid rgba(229, 231, 235, 0.88);
  box-shadow: var(--shadow);
}

.simple-hero h1 {
  max-width: 820px;
  font-size: clamp(32px, 5vw, 56px);
}

.simple-hero p {
  max-width: 760px;
  margin-bottom: 0;
  font-size: 17px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--amber-dark);
}

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

.category-card {
  overflow: hidden;
  padding: 24px;
  transition: 0.22s ease;
}

.category-card span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: #92400e;
  background: var(--amber-soft);
  font-size: 13px;
  font-weight: 800;
}

.category-card h2 {
  margin: 14px 0 8px;
  font-size: 24px;
}

.category-sample {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.category-sample a {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 999px;
  padding: 6px 9px;
  color: #4b5563;
  background: #f3f4f6;
  font-size: 13px;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
}

.pagination a,
.pagination span {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--line);
  color: #374151;
}

.pagination .current {
  color: #fff;
  background: var(--amber);
  border-color: var(--amber);
}

.player-section {
  margin-bottom: 30px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 16 / 9;
  background: #020617;
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.30);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background:
    radial-gradient(circle at 50% 50%, rgba(217, 119, 6, 0.32), transparent 30%),
    rgba(0, 0, 0, 0.42);
  cursor: pointer;
  transition: 0.24s ease;
}

.player-cover span {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), #f59e0b);
  box-shadow: 0 18px 36px rgba(217, 119, 6, 0.34);
  font-size: 28px;
}

.player-cover strong {
  max-width: min(620px, 86%);
  font-size: clamp(20px, 4vw, 34px);
  line-height: 1.25;
  text-align: center;
}

.player-shell.is-started .player-cover {
  opacity: 0;
  pointer-events: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
  align-items: start;
}

.detail-title-block {
  margin-bottom: 24px;
}

.detail-title-block h1 {
  font-size: clamp(32px, 5vw, 52px);
}

.detail-meta {
  margin-top: 14px;
}

.detail-meta span,
.detail-meta a {
  color: #92400e;
  background: var(--amber-soft);
}

.story-card {
  margin-bottom: 20px;
}

.story-card h2,
.side-box h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.story-card p {
  margin: 0;
}

.story-card p + p {
  margin-top: 12px;
}

.highlight-card {
  background: linear-gradient(135deg, #fff7ed, #fff);
}

.lead-text {
  color: #92400e !important;
  font-weight: 700;
}

.detail-side {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
}

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

.mini-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: #f9fafb;
  transition: 0.2s ease;
}

.mini-card img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  background: #111827;
}

.mini-card span {
  min-width: 0;
}

.mini-card strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}

.mini-card em {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.next-prev {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.next-prev a {
  padding: 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.next-prev span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.next-prev strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-footer {
  margin-top: 40px;
  padding: 36px 0 22px;
  background: #111827;
  color: rgba(255, 255, 255, 0.74);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-logo {
  color: #fff;
  font-size: 22px;
}

.footer-inner p {
  margin: 8px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 22px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 14px;
}

.search-page-form {
  max-width: 720px;
  margin-top: 20px;
}

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

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

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

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .hero-slider {
    height: auto;
    min-height: 680px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-content: center;
    padding-top: 54px;
    padding-bottom: 110px;
  }

  .hero-poster {
    width: min(260px, 70vw);
  }

  .intro-panel,
  .split-section,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .split-section,
  .footer-inner {
    display: grid;
  }

  .detail-side {
    position: static;
  }

  .large-search {
    flex-direction: column;
  }
}

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

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

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

  .hero-actions,
  .hero-category-links {
    align-items: stretch;
  }

  .btn,
  .hero-category-links a {
    width: 100%;
  }

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

  .card-body {
    padding: 12px;
  }

  .card-body h3 {
    font-size: 15px;
  }

  .card-body p {
    display: none;
  }

  .simple-hero {
    border-radius: 22px;
  }

  .next-prev {
    grid-template-columns: 1fr;
  }

  .mini-card {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .mini-card img {
    width: 82px;
    height: 62px;
  }
}
