:root {
  --ink: #111827;
  --muted: #6b7280;
  --line: #f1d9b5;
  --paper: #ffffff;
  --soft: #fff7ed;
  --warm: #f59e0b;
  --orange: #f97316;
  --deep: #7c2d12;
  --shadow: 0 20px 55px rgba(124, 45, 18, 0.16);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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: rgba(255, 247, 237, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(245, 158, 11, 0.18);
  box-shadow: 0 10px 34px rgba(154, 52, 18, 0.08);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.36);
}

.brand-name {
  font-size: 26px;
  line-height: 1;
  color: transparent;
  background: linear-gradient(90deg, #d97706, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
}

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

.desktop-nav a,
.mobile-panel nav a {
  color: #4b5563;
  font-weight: 700;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-panel nav a:hover,
.mobile-panel nav a.active {
  color: #ea580c;
}

.header-search,
.mobile-search {
  position: relative;
}

.header-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select {
  border: 2px solid #fed7aa;
  outline: none;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input,
.mobile-search input {
  width: 250px;
  padding: 10px 16px 10px 42px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  z-index: 2;
}

.search-results {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(420px, calc(100vw - 32px));
  max-height: 430px;
  overflow: auto;
  padding: 10px;
  background: #fff;
  border: 1px solid #fed7aa;
  border-radius: 20px;
  box-shadow: var(--shadow);
  display: none;
}

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

.search-result-item {
  display: grid;
  gap: 3px;
  padding: 12px;
  border-radius: 14px;
  background: #fff7ed;
}

.search-result-item strong {
  color: #9a3412;
}

.search-result-item span {
  color: var(--muted);
  font-size: 13px;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: #92400e;
  background: transparent;
  font-size: 28px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(245, 158, 11, 0.16);
  padding: 16px;
}

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

.mobile-panel nav {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.mobile-search input {
  width: 100%;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  background: #451a03;
}

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

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

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
  transform: scale(1.03);
}

.hero-bg::after,
.detail-bg::after,
.category-overview-cover::after,
.category-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.46), rgba(249, 115, 22, 0.36));
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(69, 26, 3, 0.92) 0%, rgba(124, 45, 18, 0.72) 48%, rgba(251, 146, 60, 0.28) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 390px;
  gap: 60px;
  align-items: center;
  color: #fff7ed;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow,
.page-hero span,
.section-heading span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f59e0b;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 14px 0 16px;
  font-size: clamp(40px, 6vw, 78px);
  line-height: 1.03;
  letter-spacing: -0.06em;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
  margin: 0;
  max-width: 690px;
  color: rgba(255, 247, 237, 0.88);
  font-size: 18px;
}

.hero-tags,
.detail-meta,
.chip-row,
.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags,
.detail-meta {
  margin-top: 24px;
}

.hero-tags span,
.detail-meta span,
.chip-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(255, 247, 237, 0.14);
  color: #fff7ed;
  border: 1px solid rgba(255, 247, 237, 0.26);
  font-size: 13px;
  font-weight: 700;
}

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

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

.primary-btn {
  color: #fff;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  box-shadow: 0 15px 32px rgba(249, 115, 22, 0.34);
}

.ghost-btn {
  color: #fff7ed;
  border: 1px solid rgba(255, 247, 237, 0.42);
  background: rgba(255, 255, 255, 0.1);
}

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

.hero-poster,
.detail-poster {
  min-height: 520px;
  border-radius: 34px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

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

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

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
}

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

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

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

.section-heading h2 {
  margin: 6px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

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

.compact-heading {
  align-items: start;
  display: block;
}

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

.category-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 22px;
  color: #fff;
  background: linear-gradient(135deg, #7c2d12, #f97316);
  box-shadow: var(--shadow);
}

.category-card strong,
.category-card em {
  position: relative;
  z-index: 2;
  display: block;
}

.category-card strong {
  font-size: 24px;
  margin-bottom: 10px;
}

.category-card em {
  max-width: 92%;
  color: rgba(255, 247, 237, 0.86);
  font-style: normal;
  font-size: 14px;
}

.category-image,
.category-glow {
  position: absolute;
  inset: 0;
}

.category-image {
  background-size: cover;
  background-position: center;
  opacity: 0.34;
}

.category-glow {
  background: radial-gradient(circle at top right, rgba(254, 243, 199, 0.44), transparent 45%);
  z-index: 1;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 36px rgba(124, 45, 18, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.cover-box {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 318px;
  background: linear-gradient(135deg, #fef3c7, #fdba74 48%, #fb923c);
}

.cover-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.45), transparent 32%), linear-gradient(135deg, rgba(120, 53, 15, 0.08), rgba(154, 52, 18, 0.16));
}

.cover-box img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.movie-card:hover .cover-box img,
.hero-poster:hover img,
.detail-poster:hover img {
  transform: scale(1.045);
}

.cover-badge {
  position: absolute;
  z-index: 2;
  left: 14px;
  top: 14px;
  color: #fff;
  background: rgba(249, 115, 22, 0.92);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
}

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

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

.movie-card h3 {
  margin: 9px 0 8px;
  font-size: 20px;
  line-height: 1.28;
}

.movie-card h3 a:hover,
.rank-item h3 a:hover,
.overview-links a:hover {
  color: #ea580c;
}

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

.movie-card .chip-row span {
  color: #9a3412;
  background: #fff7ed;
  border-color: #fed7aa;
}

.split-showcase,
.category-strip {
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.7), rgba(255, 255, 255, 0.9));
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 82px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(251, 191, 36, 0.28);
  box-shadow: 0 10px 30px rgba(124, 45, 18, 0.08);
}

.rank-number {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  border-radius: 16px;
  font-weight: 900;
}

.rank-cover {
  min-height: 104px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #fde68a, #fb923c);
}

.rank-cover img {
  width: 100%;
  height: 104px;
  object-fit: cover;
}

.rank-item h3 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.25;
}

.rank-item p {
  margin: 0 0 8px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.movie-card.compact .cover-box {
  min-height: 220px;
}

.movie-card.compact h3 {
  font-size: 17px;
}

.movie-card.compact p {
  -webkit-line-clamp: 2;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff7ed;
  background: #7c2d12;
}

.small-hero {
  padding: 96px 0 86px;
  background: linear-gradient(135deg, #7c2d12, #f97316);
}

.page-hero-content,
.small-hero .container {
  position: relative;
  z-index: 2;
}

.category-hero {
  min-height: 410px;
  display: grid;
  align-items: center;
}

.category-hero .hero-bg {
  opacity: 0.55;
}

.overview-grid {
  display: grid;
  gap: 24px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  padding: 18px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(251, 191, 36, 0.25);
  box-shadow: 0 12px 34px rgba(124, 45, 18, 0.08);
}

.category-overview-cover {
  position: relative;
  min-height: 190px;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

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

.category-overview-card p {
  margin: 0 0 16px;
  color: var(--muted);
}

.overview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.overview-links a,
.text-link {
  color: #ea580c;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.overview-links a {
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.filter-bar input,
.filter-bar select {
  min-height: 46px;
  padding: 0 16px;
}

.filter-bar input {
  flex: 1 1 260px;
}

.detail-hero {
  min-height: 650px;
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 44px 0 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
  color: rgba(255, 247, 237, 0.82);
  font-weight: 700;
}

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

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

.detail-poster {
  min-height: 520px;
}

.detail-copy h1 {
  font-size: clamp(38px, 5vw, 64px);
}

.player-block {
  padding-top: 54px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #09090b;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.24);
}

.video-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #fff;
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.58));
}

.play-overlay.is-hidden {
  display: none;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.4);
  font-size: 34px;
}

.play-overlay strong {
  margin-top: -18px;
  font-size: 20px;
}

.detail-text-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.article-card,
.side-panel {
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(251, 191, 36, 0.24);
  box-shadow: 0 12px 34px rgba(124, 45, 18, 0.08);
}

.article-card h2,
.side-panel h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.article-card p {
  margin: 0;
  color: #4b5563;
  font-size: 17px;
}

.large-chip-row {
  margin-top: 18px;
}

.large-chip-row span {
  color: #9a3412;
  background: #fff7ed;
  border-color: #fed7aa;
}

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

.large-rank-list .rank-item {
  grid-template-columns: 58px 108px minmax(0, 1fr);
}

.large-rank-list .rank-cover,
.large-rank-list .rank-cover img {
  min-height: 132px;
  height: 132px;
}

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

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

.site-footer {
  background: linear-gradient(135deg, #7c2d12, #431407);
  color: #ffedd5;
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1fr;
  gap: 34px;
}

.footer-brand {
  margin-bottom: 16px;
}

.site-footer p {
  margin: 14px 0 0;
  color: rgba(255, 237, 213, 0.78);
}

.site-footer h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

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

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

.footer-links a {
  color: rgba(255, 237, 213, 0.82);
}

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

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

[data-card].is-hidden {
  display: none;
}

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

  .menu-toggle {
    display: block;
  }

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

  .hero-content {
    gap: 28px;
    padding: 110px 0 120px;
  }

  .hero-poster,
  .detail-poster {
    min-height: 420px;
    max-width: 360px;
  }

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

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

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

  .brand-name {
    font-size: 22px;
  }

  .hero-carousel,
  .hero-content {
    min-height: 740px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 38px;
  }

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

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

  .category-grid,
  .movie-grid,
  .mini-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .rank-item,
  .large-rank-list .rank-item {
    grid-template-columns: 44px 76px minmax(0, 1fr);
  }

  .rank-cover,
  .rank-cover img,
  .large-rank-list .rank-cover,
  .large-rank-list .rank-cover img {
    min-height: 94px;
    height: 94px;
  }

  .hero-controls {
    bottom: 18px;
  }

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