* {
  box-sizing: border-box;
}

:root {
  --bg: #fff7ed;
  --surface: #ffffff;
  --surface-soft: #fff1df;
  --ink: #201510;
  --muted: #7c6b60;
  --line: rgba(121, 69, 33, 0.14);
  --amber: #d97706;
  --amber-dark: #92400e;
  --orange: #ea580c;
  --dark: #120906;
  --shadow: 0 22px 60px rgba(83, 41, 12, 0.16);
  --radius: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fff7ed 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, rgba(120, 53, 15, 0.96), rgba(154, 52, 18, 0.96), rgba(146, 64, 14, 0.96));
  box-shadow: 0 14px 36px rgba(67, 20, 7, 0.24);
  backdrop-filter: blur(18px);
}

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #7c2d12;
  background: linear-gradient(135deg, #ffffff, #fde68a);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  font-size: 14px;
}

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

.nav-link {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input {
  width: 260px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  outline: none;
  padding: 10px 16px;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.68);
}

.header-search button,
.mobile-search button {
  border: 0;
  border-radius: 999px;
  color: #7c2d12;
  background: #ffffff;
  padding: 10px 18px;
  font-weight: 800;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: 18px 16px 22px;
}

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

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

.mobile-nav-link {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 800;
}

.hero-section {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at 18% 12%, rgba(251, 191, 36, 0.32), transparent 32%), linear-gradient(135deg, #3b1307 0%, #7c2d12 44%, #111827 100%);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.68) 1px, transparent 1px);
  background-size: 42px 42px;
}

.hero-slider {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 650px;
  margin: 0 auto;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.72fr);
  gap: 54px;
  align-items: center;
  opacity: 0;
  transform: translateX(30px);
  pointer-events: none;
  transition: opacity 0.56s ease, transform 0.56s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.hero-copy {
  max-width: 720px;
  padding: 110px 0 96px;
}

.hero-kicker,
.eyebrow {
  margin: 0 0 12px;
  color: #fcd34d;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

.hero-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.1;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.82;
}

.hero-art {
  position: relative;
  border-radius: 36px;
  isolation: isolate;
}

.hero-art img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.36);
  background: rgba(255, 255, 255, 0.08);
}

.hero-glow {
  position: absolute;
  inset: 18% -10% -10%;
  z-index: -1;
  border-radius: 999px;
  filter: blur(44px);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.58), rgba(249, 115, 22, 0.26));
}

.hero-tags,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.card-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
}

.card-tags span {
  color: #9a3412;
  background: #ffedd5;
  border-color: #fed7aa;
}

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

.primary-button,
.ghost-button,
.watch-link,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #7c2d12;
  background: #ffffff;
  padding: 14px 24px;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.2);
}

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

.primary-button:hover,
.ghost-button:hover,
.watch-link:hover,
.section-more:hover {
  transform: translateY(-2px);
}

.hero-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 5;
}

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

.hero-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  font-size: 30px;
  line-height: 1;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
}

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

.content-section {
  padding: 72px 0;
}

.muted-section {
  background: linear-gradient(180deg, rgba(255, 237, 213, 0.8), rgba(255, 255, 255, 0.86));
}

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

.section-heading h2,
.page-hero h1,
.detail-copy h1,
.detail-article h2,
.detail-aside h2 {
  margin: 0;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.section-heading h2 {
  font-size: clamp(28px, 3vw, 42px);
}

.section-more {
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  padding: 11px 18px;
  box-shadow: 0 14px 24px rgba(234, 88, 12, 0.22);
}

.movie-grid,
.rank-grid,
.rank-list,
.category-grid,
.category-overview-grid {
  display: grid;
  gap: 22px;
}

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

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

.rank-list {
  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.94);
  box-shadow: 0 14px 34px rgba(121, 69, 33, 0.1);
  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.36);
  box-shadow: var(--shadow);
}

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

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

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

.poster-shine {
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.42));
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #7c2d12;
  background: #fef3c7;
  font-weight: 950;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

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

.movie-meta-line,
.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.movie-meta-line {
  color: #c2410c;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 10px;
}

.movie-card h2 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.32;
}

.movie-card h2 a:hover {
  color: var(--orange);
}

.movie-card p {
  min-height: 46px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.card-actions {
  margin-top: 14px;
  color: #92400e;
  font-size: 13px;
  font-weight: 900;
}

.watch-link {
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  padding: 9px 14px;
}

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

.category-tile,
.category-overview-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border-radius: 30px;
  color: #ffffff;
  padding: 28px;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.category-tile::before,
.category-overview-card::before,
.page-hero::before,
.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 36%);
}

.category-tile span,
.category-overview-card span {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 950;
}

.category-tile h2,
.category-overview-card h2 {
  margin: 14px 0 12px;
  font-size: 30px;
}

.category-tile p,
.category-overview-card p {
  margin: 0;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.75;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 24px;
  min-height: 250px;
}

.category-posters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  transform: rotate(-4deg);
}

.category-posters img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
}

.accent-orange,
.accent-red,
.accent-violet,
.accent-pink,
.accent-blue,
.accent-green,
.accent-amber,
.accent-cyan,
.accent-slate,
.accent-yellow {
  background: linear-gradient(135deg, #7c2d12, #ea580c);
}

.accent-red { background: linear-gradient(135deg, #7f1d1d, #dc2626); }
.accent-violet { background: linear-gradient(135deg, #2e1065, #7c3aed); }
.accent-pink { background: linear-gradient(135deg, #831843, #db2777); }
.accent-blue { background: linear-gradient(135deg, #172554, #2563eb); }
.accent-green { background: linear-gradient(135deg, #14532d, #16a34a); }
.accent-amber { background: linear-gradient(135deg, #78350f, #d97706); }
.accent-cyan { background: linear-gradient(135deg, #164e63, #0891b2); }
.accent-slate { background: linear-gradient(135deg, #0f172a, #475569); }
.accent-yellow { background: linear-gradient(135deg, #713f12, #ca8a04); }

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  padding: 92px 0;
  background: linear-gradient(135deg, #431407, #9a3412 54%, #111827);
}

.small-hero,
.search-hero,
.rank-hero {
  background: radial-gradient(circle at 15% 20%, rgba(251, 191, 36, 0.28), transparent 34%), linear-gradient(135deg, #431407, #111827);
}

.page-hero h1 {
  max-width: 860px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.06;
}

.page-actions .ghost-button {
  color: #ffffff;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: end;
  gap: 18px;
  margin-bottom: 28px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 30px rgba(121, 69, 33, 0.08);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: #9a3412;
  font-weight: 900;
}

.filter-panel input {
  width: 100%;
  border: 1px solid rgba(217, 119, 6, 0.24);
  border-radius: 18px;
  background: #fffaf4;
  color: var(--ink);
  outline: none;
  padding: 14px 16px;
}

.filter-panel input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.filter-chip {
  border: 1px solid rgba(217, 119, 6, 0.24);
  border-radius: 999px;
  color: #9a3412;
  background: #fff7ed;
  padding: 11px 16px;
  font-weight: 900;
  cursor: pointer;
}

.filter-chip.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  border-color: transparent;
}

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

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

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 32px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 800;
}

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

.detail-copy h1 {
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1.05;
}

.player-section {
  padding-bottom: 32px;
  background: #120906;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
}

.video-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(251, 191, 36, 0.22), rgba(0, 0, 0, 0.72));
  cursor: pointer;
}

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

.play-icon {
  display: inline-grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  color: #7c2d12;
  background: #ffffff;
  font-size: 34px;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.32);
}

.player-cover strong {
  font-size: 22px;
}

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

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 34px;
}

.detail-article,
.detail-aside {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(121, 69, 33, 0.08);
  padding: 28px;
}

.detail-article h2,
.detail-aside h2 {
  margin-bottom: 14px;
  font-size: 26px;
}

.detail-article p {
  margin: 0 0 24px;
  color: #4b3429;
  font-size: 17px;
  line-height: 1.95;
}

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

.fact-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(121, 69, 33, 0.1);
  padding: 12px 0;
}

.fact-list span {
  color: var(--muted);
}

.fact-list strong {
  color: #9a3412;
  text-align: right;
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(180deg, #1c0f09, #070302);
  padding-top: 54px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.8fr;
  gap: 34px;
}

.footer-brand p {
  max-width: 420px;
  line-height: 1.8;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.footer-grid a:hover {
  color: #fcd34d;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 42px auto 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.54);
}

@media (max-width: 1180px) {
  .feature-grid,
  .rank-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

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

  .menu-toggle {
    display: block;
  }

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

  .hero-slider,
  .hero-section {
    min-height: 820px;
  }

  .hero-copy {
    padding: 88px 0 0;
  }

  .hero-art {
    max-width: 320px;
    margin: 0 auto 86px;
  }

  .movie-grid,
  .rank-grid,
  .rank-list,
  .feature-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .filter-chips {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .container,
  .header-inner,
  .footer-inner,
  .footer-bottom,
  .hero-slider {
    width: min(100% - 22px, 1180px);
  }

  .site-logo {
    font-size: 18px;
  }

  .hero-slider,
  .hero-section {
    min-height: 760px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-copy p,
  .page-hero p,
  .detail-copy p {
    font-size: 16px;
  }

  .hero-controls {
    bottom: 18px;
  }

  .movie-grid,
  .rank-grid,
  .rank-list,
  .feature-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .content-section {
    padding: 48px 0;
  }

  .page-hero,
  .detail-hero {
    padding: 64px 0;
  }

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

  .mobile-search {
    align-items: stretch;
    flex-direction: column;
  }

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