:root {
  color-scheme: light;
  --bg: #fff7ed;
  --bg-soft: #fffbeb;
  --surface: #ffffff;
  --surface-warm: #fff7ed;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #f3d6a3;
  --brand: #d97706;
  --brand-dark: #92400e;
  --brand-soft: #fef3c7;
  --shadow: 0 18px 50px rgba(146, 64, 14, 0.14);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg) 0%, #ffffff 38%, #fff7ed 100%);
  color: var(--text);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Microsoft YaHei",
    sans-serif;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 251, 235, 0.94);
  border-bottom: 1px solid rgba(217, 119, 6, 0.18);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 72px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-dark);
  font-size: 22px;
  font-weight: 900;
  white-space: nowrap;
}

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

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #78350f;
  font-weight: 700;
  transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
  background: var(--brand-soft);
  color: #b45309;
}

.header-search,
.mobile-search,
.search-page-form {
  display: flex;
  align-items: center;
  border: 1px solid rgba(217, 119, 6, 0.22);
  background: #ffffff;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(217, 119, 6, 0.08);
}

.header-search input,
.mobile-search input,
.search-page-form input,
.page-tools input {
  width: 220px;
  border: 0;
  outline: 0;
  padding: 12px 16px;
  background: transparent;
  color: var(--text);
}

.header-search button,
.mobile-search button,
.search-page-form button {
  border: 0;
  padding: 12px 18px;
  background: var(--brand);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 22px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
}

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

.hero-track,
.hero-slide {
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.03);
  transition:
    opacity 0.8s ease,
    transform 1.2s ease;
}

.hero-slide.active {
  position: relative;
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 72% 28%,
      rgba(245, 158, 11, 0.28),
      transparent 34%
    ),
    linear-gradient(
      90deg,
      rgba(17, 24, 39, 0.92) 0%,
      rgba(17, 24, 39, 0.62) 48%,
      rgba(17, 24, 39, 0.18) 100%
    ),
    linear-gradient(0deg, rgba(17, 24, 39, 0.9), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 88px 0;
  color: #ffffff;
}

.eyebrow,
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #d97706;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-kicker {
  color: #fbbf24;
}

.hero h1,
.page-hero h1,
.detail-heading h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.hero p,
.page-hero p,
.detail-heading p {
  max-width: 720px;
  color: #e5e7eb;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

.hero-tags,
.tag-row,
.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.tag-row span {
  background: #fef3c7;
  color: #92400e;
}

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

.primary-button,
.ghost-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.22s ease;
}

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

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px rgba(217, 119, 6, 0.42);
}

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.text-button {
  min-height: 0;
  padding: 0;
  color: #b45309;
}

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

.hero-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: 0.22s ease;
}

.hero-dots button.active {
  width: 34px;
  background: #fbbf24;
}

.section-block {
  padding: 58px 0;
}

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

.section-heading h2,
.content-card h2,
.side-card h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 950;
  letter-spacing: -0.03em;
}

.section-heading a {
  color: #b45309;
  font-weight: 900;
}

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

.category-tile {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.category-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.82));
}

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

.category-tile span {
  font-size: 22px;
  font-weight: 950;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(217, 119, 6, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 38px rgba(146, 64, 14, 0.1);
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #451a03, #f59e0b);
}

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

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

.play-chip,
.rank-badge {
  position: absolute;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
}

.play-chip {
  right: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  background: rgba(217, 119, 6, 0.92);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.rank-badge {
  top: 12px;
  left: 12px;
  padding: 7px 10px;
  background: rgba(127, 29, 29, 0.9);
  font-size: 12px;
}

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

.movie-meta-line {
  color: #9a3412;
  font-size: 12px;
  font-weight: 800;
}

.movie-meta-line span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: #d97706;
}

.movie-card h3 {
  min-height: 54px;
  margin: 8px 0 8px;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 950;
}

.movie-card p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page-hero {
  padding: 86px 0 56px;
  color: #ffffff;
  background:
    radial-gradient(
      circle at 82% 18%,
      rgba(251, 191, 36, 0.32),
      transparent 28%
    ),
    linear-gradient(135deg, #431407, #92400e 48%, #111827);
}

.page-hero p {
  color: #fef3c7;
}

.page-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.page-tools input {
  width: min(520px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
}

.page-tools span {
  color: #fde68a;
  font-weight: 900;
}

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

.category-card-large {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 24px;
  padding: 28px;
  border: 1px solid rgba(217, 119, 6, 0.16);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 14px 42px rgba(146, 64, 14, 0.08);
}

.category-card-large h2 {
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 950;
}

.category-card-large p {
  color: var(--muted);
  line-height: 1.8;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #fff7ed;
  transition: 0.2s ease;
}

.compact-card:hover {
  background: #ffedd5;
  transform: translateX(3px);
}

.compact-card img {
  grid-row: span 2;
  width: 72px;
  height: 98px;
  border-radius: 14px;
  object-fit: cover;
}

.compact-card span {
  font-weight: 900;
}

.compact-card small {
  color: var(--muted);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 62px 96px 1fr 72px;
  gap: 18px;
  align-items: center;
  padding: 14px;
}

.rank-number,
.rank-score {
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 950;
  color: #b45309;
}

.rank-cover img {
  width: 96px;
  height: 132px;
  border-radius: 16px;
  object-fit: cover;
}

.rank-info h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 950;
}

.rank-info p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.7;
}

.search-page-form {
  width: min(720px, 100%);
  margin-top: 24px;
}

.search-page-form input {
  flex: 1;
  width: auto;
}

.search-summary {
  margin-bottom: 22px;
  color: #92400e;
  font-weight: 900;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  color: #ffffff;
  background: #111827;
}

.detail-backdrop,
.detail-shade {
  position: absolute;
  inset: 0;
}

.detail-backdrop {
  background-position: center;
  background-size: cover;
  filter: blur(10px) saturate(1.05);
  transform: scale(1.08);
}

.detail-shade {
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.66)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.95), transparent 46%);
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  padding: 48px 0 58px;
}

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

.detail-heading {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: end;
}

.detail-cover {
  width: 220px;
  aspect-ratio: 2 / 3;
  border: 6px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
}

.detail-tags {
  margin-top: 20px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  padding: 48px 0 18px;
}

.player-section,
.content-card,
.side-card,
.seo-panel {
  border: 1px solid rgba(217, 119, 6, 0.14);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(146, 64, 14, 0.1);
}

.player-section {
  overflow: hidden;
  margin-bottom: 24px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
}

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background:
    radial-gradient(
      circle at center,
      rgba(245, 158, 11, 0.22),
      transparent 28%
    ),
    linear-gradient(180deg, rgba(15, 23, 42, 0.22), rgba(15, 23, 42, 0.74));
  cursor: pointer;
  transition:
    opacity 0.24s ease,
    visibility 0.24s ease;
}

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

.player-button {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.32);
  font-size: 30px;
}

.player-title {
  max-width: 78%;
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 950;
  text-align: center;
}

.player-status {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 4;
  color: #fde68a;
  font-weight: 800;
}

.content-card,
.side-card,
.seo-panel {
  padding: 26px;
  margin-bottom: 24px;
}

.content-card p,
.seo-panel p {
  color: #4b5563;
  line-height: 1.95;
  font-size: 16px;
}

.info-list {
  display: grid;
  gap: 14px;
  margin: 18px 0 18px;
}

.info-list div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f3e2c1;
}

.info-list dt {
  color: #92400e;
  font-weight: 900;
}

.info-list dd {
  margin: 0;
  color: var(--text);
}

.side-card {
  position: sticky;
  top: 96px;
}

.side-list {
  margin-top: 18px;
}

.side-link {
  display: block;
  margin-top: 12px;
  padding: 13px 16px;
  border-radius: 16px;
  background: #fff7ed;
  color: #92400e;
  font-weight: 900;
}

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

.site-footer {
  margin-top: 42px;
  padding: 52px 0;
  background: #451a03;
  color: #fde68a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr;
  gap: 32px;
}

.site-footer p {
  color: #fed7aa;
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin: 8px 0;
}

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

@media (max-width: 1024px) {
  .header-search {
    display: none;
  }

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

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

  .side-card {
    position: static;
  }
}

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

  .mobile-panel.open {
    display: block;
    border-top: 1px solid rgba(217, 119, 6, 0.16);
  }

  .mobile-panel-inner {
    display: grid;
    gap: 12px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 16px 0 20px;
  }

  .mobile-search input {
    flex: 1;
    width: auto;
  }

  .mobile-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .mobile-categories a {
    padding: 8px 11px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-weight: 800;
  }

  .hero,
  .hero-track,
  .hero-slide {
    min-height: 560px;
  }

  .category-strip,
  .movie-grid,
  .footer-grid,
  .category-card-large,
  .detail-heading {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 42px 74px 1fr;
  }

  .rank-score {
    grid-column: 3;
    justify-content: start;
    place-items: start;
    font-size: 18px;
  }

  .detail-cover {
    width: 180px;
  }
}

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

  .brand,
  .footer-brand {
    font-size: 18px;
  }

  .hero-content {
    padding: 68px 0;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

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

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

  .movie-card h3 {
    min-height: 46px;
    font-size: 15px;
  }

  .movie-card p {
    font-size: 13px;
  }

  .rank-info h2 {
    font-size: 18px;
  }

  .rank-cover img {
    width: 74px;
    height: 104px;
  }

  .content-card,
  .side-card,
  .seo-panel {
    padding: 20px;
  }
}
