:root {
  color-scheme: light;
  --ink: #231409;
  --muted: #745848;
  --soft: #fff8ed;
  --panel: #ffffff;
  --line: rgba(133, 78, 33, 0.16);
  --orange: #f97316;
  --amber: #f59e0b;
  --gold: #facc15;
  --deep: #7c2d12;
  --shadow: 0 20px 45px rgba(124, 45, 18, 0.16);
  --shadow-soft: 0 12px 30px rgba(124, 45, 18, 0.10);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 46%, #fff7ed 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(180, 83, 9, 0.98), rgba(234, 88, 12, 0.98), rgba(217, 119, 6, 0.98));
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(124, 45, 18, 0.25);
  backdrop-filter: blur(16px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #9a3412;
  background: linear-gradient(135deg, #ffffff, #fde68a);
  box-shadow: inset 0 -4px 10px rgba(249, 115, 22, 0.22);
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav > a,
.nav-dropdown > button {
  border: 0;
  color: #fff7ed;
  background: transparent;
  border-radius: 999px;
  padding: 10px 15px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.main-nav > a:hover,
.nav-dropdown:hover > button {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  min-width: 190px;
  display: none;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.nav-dropdown:hover .dropdown-panel {
  display: grid;
}

.dropdown-panel a {
  padding: 10px 12px;
  border-radius: 12px;
  color: #6b3418;
}

.dropdown-panel a:hover {
  background: #fff7ed;
  color: #ea580c;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 11px;
}

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

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at 15% 0%, rgba(250, 204, 21, 0.9), transparent 28%), linear-gradient(110deg, #92400e 0%, #ea580c 45%, #f59e0b 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 560px;
  height: 560px;
  top: -220px;
  right: -120px;
  background: rgba(255, 255, 255, 0.16);
  filter: blur(2px);
}

.hero::after {
  width: 420px;
  height: 420px;
  bottom: -210px;
  left: -120px;
  background: rgba(255, 247, 237, 0.13);
}

.hero-shell {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: center;
  padding: 56px 0 72px;
}

.hero-slider {
  position: relative;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.68fr);
  gap: 44px;
  align-items: center;
}

.hero-slide.active {
  display: grid;
  animation: fadeUp 0.55s ease both;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy p {
  margin: 0 0 24px;
  max-width: 690px;
  color: #fff7ed;
  font-size: clamp(17px, 2.2vw, 23px);
}

.hero-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff7ed;
}

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

.hero-tags span,
.tag-row span,
.detail-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #ffedd5;
  color: #9a3412;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-actions,
.section-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 800;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #9a3412;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(124, 45, 18, 0.16);
}

.btn-primary:hover {
  box-shadow: 0 18px 36px rgba(124, 45, 18, 0.24);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.btn-warm {
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  box-shadow: var(--shadow-soft);
}

.hero-poster {
  position: relative;
  border-radius: 34px;
  transform: rotate(2deg);
  box-shadow: 0 30px 80px rgba(67, 20, 7, 0.35);
}

.hero-poster img {
  width: min(390px, 100%);
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 34px;
  border: 8px solid rgba(255, 255, 255, 0.18);
}

.hero-card-note {
  position: absolute;
  left: -34px;
  bottom: 34px;
  max-width: 260px;
  padding: 16px;
  border-radius: 20px;
  color: #7c2d12;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-card-note strong {
  display: block;
  margin-bottom: 5px;
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: -38px;
  display: flex;
  gap: 10px;
}

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

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

.page-section {
  padding: 62px 0;
}

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

.eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-weight: 800;
  font-size: 13px;
}

.section-head h2,
.page-title h1,
.detail-title h1 {
  margin: 0;
  color: #231409;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.15;
}

.section-head p,
.page-title p,
.detail-title p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

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

.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);
}

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 52%;
  background: linear-gradient(0deg, rgba(23, 12, 5, 0.82), transparent);
}

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
}

.play-chip {
  right: 14px;
  bottom: 14px;
  padding: 7px 12px;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.35);
}

.rank-badge {
  left: 14px;
  top: 14px;
  width: 42px;
  height: 42px;
  background: rgba(124, 45, 18, 0.86);
  border: 2px solid rgba(255, 255, 255, 0.38);
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #9a3412;
  font-size: 13px;
  font-weight: 800;
}

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

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

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 24px;
  border-radius: var(--radius-xl);
  color: #ffffff;
  background: linear-gradient(135deg, #b45309, #f97316 55%, #f59e0b);
  box-shadow: var(--shadow-soft);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -42px;
  top: -42px;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.category-card h2,
.category-card h3 {
  position: relative;
  margin: 0 0 12px;
  font-size: 26px;
}

.category-card p {
  position: relative;
  margin: 0;
  color: #fff7ed;
  line-height: 1.75;
}

.category-card span {
  position: relative;
  display: inline-flex;
  margin-top: 18px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 800;
}

.page-hero {
  padding: 58px 0 34px;
  background: radial-gradient(circle at 85% 0%, rgba(250, 204, 21, 0.46), transparent 34%);
}

.page-title {
  max-width: 860px;
}

.filter-panel,
.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 12px;
  margin: 26px 0;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.filter-panel input,
.filter-panel select,
.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
}

.filter-panel input:focus,
.search-panel input:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.15);
}

.no-results {
  display: none;
  padding: 34px;
  border-radius: 22px;
  text-align: center;
  color: var(--muted);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 52px 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.rank-row img {
  width: 74px;
  height: 96px;
  border-radius: 14px;
  object-fit: cover;
}

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

.rank-row h2,
.rank-row h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.rank-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.side-panel {
  position: sticky;
  top: 94px;
  align-self: start;
  padding: 22px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.side-panel h2 {
  margin: 0 0 14px;
}

.side-panel a {
  display: block;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: #7c2d12;
  font-weight: 800;
}

.detail-hero {
  padding: 46px 0;
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

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

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

.player-wrap,
.detail-panel,
.summary-card {
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.player-wrap {
  overflow: hidden;
}

.movie-player {
  position: relative;
  overflow: hidden;
  background: #0f0702;
}

.movie-player video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #080401;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 30%, rgba(249, 115, 22, 0.22), rgba(8, 4, 1, 0.76));
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.movie-player.ready .player-cover {
  opacity: 0;
  visibility: hidden;
}

.player-button {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  border: 0;
  color: #9a3412;
  background: #ffffff;
  font-size: 34px;
  cursor: pointer;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.player-status {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 12px 16px;
  border-radius: 16px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.54);
  opacity: 0;
  transform: translateY(10px);
  transition: 0.22s ease;
}

.player-status.show {
  opacity: 1;
  transform: translateY(0);
}

.player-info {
  padding: 18px;
}

.detail-panel {
  overflow: hidden;
}

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

.detail-panel-body {
  padding: 20px;
}

.detail-meta {
  display: grid;
  gap: 10px;
  margin: 16px 0;
  color: var(--muted);
}

.detail-meta strong {
  color: #7c2d12;
}

.summary-grid {
  display: grid;
  gap: 20px;
  margin-top: 26px;
}

.summary-card {
  padding: 24px;
}

.summary-card h2 {
  margin: 0 0 12px;
  color: #7c2d12;
}

.summary-card p {
  margin: 0;
  color: #4c3428;
  line-height: 1.9;
}

.related-strip {
  margin-top: 36px;
}

.search-results {
  min-height: 220px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

  .side-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 78px;
    display: none;
    padding: 14px;
    border-radius: 22px;
    background: #9a3412;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-dropdown,
  .nav-dropdown > button {
    width: 100%;
    text-align: left;
  }

  .dropdown-panel {
    position: static;
    display: grid;
    margin-top: 8px;
    box-shadow: none;
  }

  .hero-shell {
    min-height: auto;
    padding: 40px 0 68px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    width: min(360px, 86vw);
    margin: 0 auto;
    transform: none;
  }

  .hero-card-note {
    left: 14px;
    bottom: 14px;
  }

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

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

  .section-head {
    display: block;
  }

  .rank-row {
    grid-template-columns: 42px 64px minmax(0, 1fr);
  }

  .rank-row .btn {
    grid-column: 2 / -1;
  }
}

@media (max-width: 540px) {
  .site-shell {
    width: min(100% - 22px, 1180px);
  }

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

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

  .hero-actions,
  .detail-actions {
    display: grid;
  }

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

  .page-section {
    padding: 42px 0;
  }
}
