:root {
  --bg: #fffaf3;
  --surface: #ffffff;
  --surface-soft: #fff4df;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(146, 64, 14, 0.14);
  --amber: #d97706;
  --amber-dark: #92400e;
  --rose: #e11d48;
  --shadow: 0 24px 60px rgba(120, 53, 15, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.18), transparent 34rem),
    linear-gradient(135deg, #fffaf3 0%, #ffffff 44%, #fff1f2 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 235, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(146, 64, 14, 0.08);
}

.header-inner {
  max-width: 1280px;
  height: 78px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--rose));
  border-radius: 16px;
  box-shadow: 0 18px 30px rgba(217, 119, 6, 0.28);
}

.brand-text,
.footer-logo {
  font-size: 1.28rem;
  background: linear-gradient(120deg, var(--amber-dark), var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.nav-link:hover {
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #fff7ed;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--amber-dark);
  border-radius: 10px;
}

.mobile-nav {
  display: none;
  padding: 10px 24px 22px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
}

.mobile-nav.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff7ed;
}

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  align-items: center;
  gap: 56px;
  padding: 96px max(32px, calc((100vw - 1280px) / 2)) 130px;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.01);
  transition: opacity 0.65s ease, visibility 0.65s ease, transform 0.65s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg {
  object-fit: cover;
  filter: blur(10px) saturate(1.15);
  transform: scale(1.06);
  opacity: 0.52;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.72) 48%, rgba(17, 24, 39, 0.38)),
    radial-gradient(circle at 32% 26%, rgba(245, 158, 11, 0.32), transparent 30rem);
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 2;
}

.hero-kicker,
.section-kicker,
.card-meta {
  color: var(--amber);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 760px;
  margin: 18px 0 22px;
  color: #ffffff;
  font-size: clamp(3rem, 8vw, 6.6rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.24rem;
  line-height: 1.9;
}

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

.hero-tags span,
.tag-row span,
.filter-chips button {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(217, 119, 6, 0.24);
  border-radius: 999px;
  background: rgba(255, 247, 237, 0.78);
  color: var(--amber-dark);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 7px 12px;
}

.hero .hero-tags span {
  background: rgba(255, 255, 255, 0.14);
  color: #fff7ed;
  border-color: rgba(255, 255, 255, 0.22);
}

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

.primary-btn,
.ghost-btn,
.section-action,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--amber-dark));
  box-shadow: 0 16px 36px rgba(217, 119, 6, 0.34);
}

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

.primary-btn:hover,
.ghost-btn:hover,
.section-action:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.hero-poster {
  display: block;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero-arrow,
.hero-dot {
  cursor: pointer;
  border: 0;
}

.hero-arrow {
  width: 46px;
  height: 46px;
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

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

.hero-search-panel {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 102px;
  width: min(760px, calc(100vw - 36px));
  transform: translateX(-50%);
}

.global-search,
.filter-panel {
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.global-search input,
.filter-panel input {
  width: 100%;
  min-height: 48px;
  border: 0;
  outline: 0;
  border-radius: 16px;
  padding: 0 18px;
  color: var(--text);
  background: #fffaf3;
}

.global-search button {
  min-width: 104px;
  border: 0;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--rose));
  font-weight: 900;
  cursor: pointer;
}

.global-search-results {
  display: none;
  margin-top: 12px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.global-search-results.is-open {
  display: grid;
  gap: 10px;
}

.search-result {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.search-result:hover {
  background: #fff7ed;
}

.search-result img {
  width: 54px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
}

.search-result strong,
.search-result span {
  display: block;
}

.search-result span {
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 4px;
}

.content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 84px 24px;
}

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

.section-head h2,
.page-hero h1,
.detail-copy h1 {
  margin: 8px 0 12px;
  color: #111827;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-head p,
.page-hero p,
.category-card p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-action,
.text-link {
  min-height: 44px;
  color: var(--amber-dark);
  background: #fff7ed;
  border: 1px solid var(--line);
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 40px rgba(120, 53, 15, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(217, 119, 6, 0.38);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fff7ed, #ffe4e6);
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.play-dot,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.play-dot {
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(217, 119, 6, 0.9);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 42px;
  height: 32px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--amber));
  font-size: 0.85rem;
}

.card-body {
  padding: 18px;
}

.card-meta {
  font-size: 0.72rem;
}

.card-body h3 {
  min-height: 3.15em;
  margin: 8px 0 8px;
  font-size: 1.1rem;
  line-height: 1.42;
}

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

.card-body p {
  min-height: 4.9em;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row span {
  font-size: 0.74rem;
  padding: 5px 9px;
}

.category-section,
.soft-panel {
  max-width: none;
  padding-left: max(24px, calc((100vw - 1280px) / 2));
  padding-right: max(24px, calc((100vw - 1280px) / 2));
}

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

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

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  transition: transform 0.35s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.16));
}

.category-tile span,
.category-tile small {
  position: relative;
  z-index: 2;
}

.category-tile span {
  font-size: 1.38rem;
  font-weight: 900;
}

.category-tile small {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

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

.soft-panel {
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.88), rgba(255, 228, 230, 0.78));
}

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

.movie-card.is-compact .card-body h3 {
  min-height: auto;
}

.movie-card.is-compact .card-body p {
  display: none;
}

.page-hero,
.detail-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 86px 24px 40px;
}

.small-hero {
  text-align: center;
}

.small-hero p {
  margin-left: auto;
  margin-right: auto;
}

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

.category-card {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 28px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 52px rgba(120, 53, 15, 0.08);
}

.category-cover {
  overflow: hidden;
  border-radius: 24px;
}

.category-cover img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.sample-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff7ed;
  color: var(--amber-dark);
  font-size: 0.88rem;
  font-weight: 800;
}

.filter-panel {
  align-items: center;
  margin-bottom: 30px;
  border-color: var(--line);
}

.filter-panel input {
  background: #ffffff;
}

.filter-chips button {
  border-color: var(--line);
  cursor: pointer;
}

.filter-chips button:hover {
  color: #ffffff;
  background: var(--amber);
}

.rank-hero {
  text-align: center;
}

.rank-hero-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.rank-hero-card {
  position: relative;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 24px;
  border-radius: 30px;
  color: #ffffff;
  background: #111827;
  text-align: left;
}

.rank-hero-card img,
.rank-hero-card::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.rank-hero-card img {
  object-fit: cover;
  opacity: 0.64;
}

.rank-hero-card::after {
  content: "";
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.94), transparent 72%);
}

.rank-hero-card span,
.rank-hero-card h2,
.rank-hero-card p {
  position: relative;
  z-index: 2;
}

.rank-hero-card span {
  color: #fbbf24;
  font-weight: 900;
}

.rank-hero-card h2 {
  margin: 12px 0 8px;
  font-size: 1.7rem;
}

.rank-hero-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.94rem;
  margin-bottom: 28px;
}

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

.detail-hero {
  padding-bottom: 46px;
}

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

.detail-copy p {
  max-width: 820px;
  color: var(--muted);
  font-size: 1.16rem;
  line-height: 1.9;
}

.detail-poster {
  overflow: hidden;
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.player-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 50px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #0f172a;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.18));
  cursor: pointer;
}

.player-start span {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--rose));
  box-shadow: 0 18px 42px rgba(225, 29, 72, 0.34);
  font-size: 2.4rem;
}

.player-start strong {
  font-size: 1.2rem;
}

.player-shell.is-playing .player-start {
  display: none;
}

.detail-section {
  padding-top: 30px;
}

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

.detail-article,
.detail-meta-box {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 54px rgba(120, 53, 15, 0.08);
}

.detail-article {
  padding: 34px;
}

.detail-article h2 {
  margin: 0 0 16px;
  font-size: 1.7rem;
}

.detail-article p {
  margin: 0 0 30px;
  color: #374151;
  font-size: 1.05rem;
  line-height: 2;
}

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

.detail-meta-box {
  padding: 24px;
}

.detail-meta-box dl {
  display: grid;
  gap: 16px;
  margin: 0;
}

.detail-meta-box div {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.detail-meta-box div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.detail-meta-box dt {
  color: var(--muted);
  font-size: 0.88rem;
}

.detail-meta-box dd {
  margin: 5px 0 0;
  color: #111827;
  font-weight: 900;
  line-height: 1.6;
}

.detail-meta-box a {
  color: var(--amber-dark);
}

.site-footer {
  color: #e5e7eb;
  background: linear-gradient(135deg, #111827, #1f2937 52%, #431407);
  padding: 62px 24px 28px;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}

.site-footer p {
  max-width: 520px;
  color: #9ca3af;
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 18px;
  color: #fbbf24;
}

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

.site-footer a:hover {
  color: #ffffff;
}

.footer-bottom {
  max-width: 1280px;
  margin: 36px auto 0;
  padding-top: 24px;
  color: #9ca3af;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 1180px) {
  .desktop-nav {
    gap: 14px;
    font-size: 0.9rem;
  }

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

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

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

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: 840px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 28px;
    padding: 70px 22px 190px;
    text-align: center;
  }

  .hero-content p,
  .detail-copy p {
    font-size: 1rem;
  }

  .hero-tags,
  .hero-actions {
    justify-content: center;
  }

  .hero-poster {
    width: min(260px, 72vw);
    margin: 0 auto;
    transform: rotate(0deg);
  }

  .hero-search-panel {
    bottom: 96px;
  }

  .global-search,
  .filter-panel {
    flex-direction: column;
  }

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

  .section-head {
    display: block;
  }

  .section-action {
    margin-top: 18px;
  }

  .catalog-grid,
  .movie-grid,
  .movie-strip,
  .category-grid,
  .rank-hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-poster {
    width: min(280px, 78vw);
  }
}

@media (max-width: 560px) {
  .header-inner {
    height: 68px;
    padding: 0 16px;
  }

  .brand-text {
    font-size: 1.05rem;
  }

  .hero {
    min-height: 820px;
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }

  .content-section,
  .page-hero,
  .detail-hero,
  .player-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .catalog-grid,
  .movie-grid,
  .movie-strip,
  .category-grid,
  .rank-hero-grid,
  .mobile-nav.is-open {
    grid-template-columns: 1fr;
  }

  .card-body h3,
  .card-body p {
    min-height: auto;
  }

  .detail-article,
  .detail-meta-box {
    padding: 22px;
  }
}
