* {
  box-sizing: border-box;
}
:root {
  --amber: #d97706;
  --orange: #f97316;
  --yellow: #f59e0b;
  --dark: #111827;
  --text: #1f2937;
  --muted: #6b7280;
  --soft: #fff7ed;
  --line: #fed7aa;
  --shadow: 0 18px 45px rgba(146, 64, 14, 0.18);
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 48%, #fef3c7 100%);
  min-height: 100vh;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
  background: linear-gradient(135deg, #fde68a, #fb923c);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #fff;
  background: linear-gradient(90deg, #b45309 0%, #f97316 48%, #eab308 100%);
  box-shadow: 0 12px 35px rgba(154, 52, 18, 0.28);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  height: 68px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: #f97316;
  background: #fff;
  font-size: 14px;
  box-shadow: 0 10px 25px rgba(255,255,255,0.28);
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}
.nav-link {
  padding: 9px 0;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.nav-link:hover,
.nav-link.is-active {
  color: #fff;
  border-color: rgba(255,255,255,0.9);
}
.header-search {
  display: flex;
  align-items: center;
  height: 40px;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.35);
}
.header-search input,
.mobile-panel input,
.search-box input,
.filter-select {
  border: 0;
  outline: 0;
  font: inherit;
}
.header-search input {
  width: 210px;
  padding: 0 14px;
  color: var(--dark);
}
.header-search button,
.mobile-panel button,
.search-box button {
  border: 0;
  cursor: pointer;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(90deg, #f59e0b, #f97316);
}
.header-search button {
  align-self: stretch;
  padding: 0 16px;
}
.menu-toggle {
  display: none;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}
.mobile-panel {
  display: none;
  padding: 14px 20px 20px;
  background: rgba(146, 64, 14, 0.92);
}
.mobile-panel.is-open {
  display: grid;
  gap: 14px;
}
.mobile-panel form {
  display: flex;
  gap: 8px;
}
.mobile-panel input {
  min-width: 0;
  flex: 1;
  padding: 11px 14px;
  border-radius: 999px;
}
.mobile-panel button {
  padding: 0 16px;
  border-radius: 999px;
}
.mobile-panel a {
  color: #fff;
  font-weight: 800;
}
.section-wrap,
.hero-inner,
.footer-grid {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background: radial-gradient(circle at 18% 14%, rgba(254, 240, 138, 0.38), transparent 28%), linear-gradient(110deg, #92400e 0%, #ea580c 48%, #facc15 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -32% 35%;
  height: 58%;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  filter: blur(12px);
  transform: rotate(-8deg);
}
.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 540px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 42px;
  padding: 70px 0 86px;
}
.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #78350f;
  background: rgba(255,255,255,0.88);
  font-weight: 900;
}
.hero h1 {
  margin: 24px 0 18px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.hero-lead {
  max-width: 700px;
  font-size: clamp(18px, 2.4vw, 25px);
  color: #fff7ed;
  line-height: 1.7;
}
.hero-actions,
.hero-stats,
.section-head,
.card-actions,
.detail-actions,
.chip-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-actions {
  margin-top: 30px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(146,64,14,.22);
}
.btn-primary {
  color: #9a3412;
  background: #fff;
}
.btn-ghost {
  color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.72);
}
.hero-stats {
  margin-top: 34px;
}
.stat-pill {
  min-width: 128px;
  padding: 13px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
}
.stat-pill strong {
  display: block;
  font-size: 22px;
}
.stat-pill span {
  color: #fffbeb;
  font-size: 13px;
}
.hero-slider {
  position: relative;
  min-height: 420px;
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  opacity: 0;
  transform: translateX(18px) scale(.98);
  pointer-events: none;
  transition: opacity .45s ease, transform .45s ease;
}
.hero-slide.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}
.hero-poster {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(70, 24, 2, 0.42);
  background: #f59e0b;
}
.hero-poster img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}
.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17,24,39,.88), rgba(17,24,39,.05) 58%);
}
.hero-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  z-index: 1;
}
.hero-caption h2 {
  margin: 0 0 8px;
  font-size: 28px;
}
.hero-caption p {
  margin: 0;
  color: #ffedd5;
  line-height: 1.6;
}
.hero-tagline {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.hero-tagline span,
.movie-tags span,
.detail-tags span,
.category-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}
.hero-tagline span {
  padding: 5px 10px;
  color: #fff;
  background: rgba(245, 158, 11, .92);
}
.hero-controls {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255,255,255,.6);
}
.hero-dot.is-active {
  width: 34px;
  background: #fff;
}
.section-wrap {
  padding: 58px 0;
}
.section-head {
  justify-content: space-between;
  margin-bottom: 24px;
}
.section-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--dark);
  letter-spacing: -0.03em;
}
.section-subtitle {
  margin: 8px 0 0;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.7;
}
.panel {
  border-radius: 26px;
  padding: clamp(20px, 3vw, 34px);
  background: rgba(255,255,255,.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.panel-gradient {
  background: linear-gradient(135deg, #fff 0%, #ffedd5 100%);
}
.movie-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
}
.movie-grid.compact {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.movie-card {
  min-width: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 28px rgba(120, 53, 15, .11);
  transition: transform .22s ease, box-shadow .22s ease;
}
.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 45px rgba(120, 53, 15, .18);
}
.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #fde68a, #fb923c);
}
.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.movie-card:hover .poster-link img {
  transform: scale(1.06);
}
.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(17,24,39,.74));
  opacity: .55;
}
.poster-play {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  transform: translate(-50%, -50%) scale(.88);
  border-radius: 999px;
  color: #f97316;
  background: #fff;
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
}
.movie-card:hover .poster-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #ef4444, #f97316);
  box-shadow: 0 10px 22px rgba(153,27,27,.28);
}
.movie-card-body {
  padding: 15px;
}
.movie-title {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--dark);
  font-weight: 900;
  line-height: 1.45;
}
.movie-title:hover {
  color: #ea580c;
}
.movie-desc {
  display: -webkit-box;
  min-height: 40px;
  margin: 8px 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #92400e;
  font-size: 12px;
  font-weight: 800;
}
.movie-meta span {
  padding: 4px 7px;
  border-radius: 8px;
  background: #fffbeb;
}
.movie-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.movie-tags span,
.detail-tags span,
.category-pill {
  padding: 5px 9px;
  color: #c2410c;
  background: #ffedd5;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 22px;
}
.category-card {
  position: relative;
  min-height: 185px;
  overflow: hidden;
  border-radius: 24px;
  padding: 24px;
  color: #fff;
  background: linear-gradient(135deg, #b45309, #f97316 58%, #eab308);
  box-shadow: var(--shadow);
}
.category-card::after {
  content: "";
  position: absolute;
  right: -35px;
  bottom: -35px;
  width: 135px;
  height: 135px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
}
.category-card h2,
.category-card h3 {
  margin: 0 0 12px;
  font-size: 26px;
}
.category-card p {
  margin: 0;
  color: #fff7ed;
  line-height: 1.65;
}
.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 24px;
}
.rank-list {
  display: grid;
  gap: 11px;
}
.rank-row {
  display: grid;
  grid-template-columns: 44px 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 9px 20px rgba(120, 53, 15, .08);
  transition: transform .2s ease;
}
.rank-row:hover {
  transform: translateX(4px);
}
.rank-row img {
  width: 54px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
}
.list-rank {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #f97316, #f59e0b);
}
.rank-text {
  min-width: 0;
}
.rank-text strong,
.rank-text em {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.rank-text em {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}
.rank-heat {
  color: #c2410c;
  font-weight: 900;
}
.search-hero,
.page-hero {
  padding: 68px 0 44px;
  color: #fff;
  background: linear-gradient(110deg, #92400e, #f97316 52%, #facc15);
}
.page-hero h1,
.search-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -0.035em;
}
.page-hero p,
.search-hero p {
  margin: 0;
  max-width: 780px;
  color: #fff7ed;
  font-size: 18px;
  line-height: 1.75;
}
.search-box {
  display: flex;
  max-width: 780px;
  margin-top: 26px;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}
.search-box input {
  flex: 1;
  min-width: 0;
  padding: 18px 20px;
  font-size: 17px;
}
.search-box button {
  padding: 0 26px;
  font-size: 16px;
}
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.filter-select,
.filter-input {
  min-height: 42px;
  border-radius: 12px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: #fff;
}
.filter-input {
  min-width: 260px;
}
.chip {
  border: 0;
  cursor: pointer;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: #9a3412;
  font-weight: 900;
  background: #ffedd5;
}
.chip.is-active {
  color: #fff;
  background: linear-gradient(90deg, #f59e0b, #f97316);
}
.detail-hero {
  color: #fff;
  background: linear-gradient(110deg, #78350f, #ea580c 50%, #f59e0b);
}
.detail-hero-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
  padding: 56px 0;
}
.detail-cover {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 28px 58px rgba(70, 24, 2, .4);
  background: #f59e0b;
}
.detail-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.breadcrumb {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: #ffedd5;
  font-size: 14px;
  margin-bottom: 18px;
}
.breadcrumb a:hover {
  color: #fff;
}
.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}
.detail-info p {
  margin: 0;
  color: #fff7ed;
  font-size: 18px;
  line-height: 1.8;
}
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}
.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #78350f;
  background: rgba(255,255,255,.9);
  font-weight: 900;
}
.player-section {
  width: min(1180px, calc(100% - 40px));
  margin: 44px auto 0;
}
.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #09090b;
  box-shadow: 0 24px 60px rgba(17,24,39,.26);
  aspect-ratio: 16 / 9;
}
.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}
.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: radial-gradient(circle at center, rgba(249,115,22,.42), rgba(17,24,39,.8));
}
.play-cover span {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  margin: 0 auto 12px;
  border-radius: 999px;
  color: #ea580c;
  background: #fff;
  font-size: 30px;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.play-cover strong {
  display: block;
  font-size: 24px;
}
.play-cover[hidden] {
  display: none;
}
.content-grid {
  width: min(1180px, calc(100% - 40px));
  margin: 34px auto 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
}
.article-panel {
  border-radius: 26px;
  padding: clamp(22px, 3vw, 34px);
  background: #fff;
  box-shadow: var(--shadow);
}
.article-panel h2,
.side-panel h2 {
  margin: 0 0 18px;
  color: var(--dark);
  font-size: 26px;
}
.article-panel p {
  margin: 0 0 18px;
  color: #374151;
  line-height: 1.9;
  font-size: 16px;
}
.side-panel {
  border-radius: 26px;
  padding: 20px;
  background: #fff7ed;
  box-shadow: var(--shadow);
  align-self: start;
}
.no-results {
  display: none;
  padding: 28px;
  border-radius: 18px;
  background: #fff;
  color: #92400e;
  font-weight: 900;
}
.empty .no-results {
  display: block;
}
.site-footer {
  color: #fff;
  background: linear-gradient(90deg, #78350f, #c2410c 48%, #a16207);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 34px;
  padding: 50px 0 34px;
}
.site-footer h2 {
  margin: 0 0 16px;
  font-size: 18px;
}
.site-footer p,
.site-footer a {
  display: block;
  margin: 0 0 10px;
  color: #ffedd5;
  line-height: 1.65;
}
.site-footer a:hover {
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.22);
  padding: 18px 20px 24px;
  text-align: center;
  color: #ffedd5;
  font-size: 14px;
}
@media (max-width: 1100px) {
  .movie-grid,
  .movie-grid.compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .category-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}
@media (max-width: 920px) {
  .desktop-nav,
  .header-search {
    display: none;
  }
  .menu-toggle {
    display: block;
    margin-left: auto;
  }
  .hero-inner,
  .rank-layout,
  .detail-hero-inner,
  .content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-inner {
    padding-top: 48px;
  }
  .hero-slider {
    min-height: 390px;
  }
  .detail-cover {
    max-width: 300px;
  }
}
@media (max-width: 680px) {
  .section-wrap,
  .hero-inner,
  .footer-grid,
  .detail-hero-inner,
  .content-grid,
  .player-section {
    width: min(100% - 28px, 1180px);
  }
  .movie-grid,
  .movie-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .category-grid {
    grid-template-columns: 1fr;
  }
  .rank-row {
    grid-template-columns: 34px 46px minmax(0,1fr);
  }
  .rank-row img {
    width: 46px;
    height: 62px;
  }
  .rank-heat {
    display: none;
  }
  .search-box {
    flex-direction: column;
  }
  .search-box button {
    min-height: 48px;
  }
  .hero-poster img {
    height: 310px;
  }
  .brand {
    font-size: 20px;
  }
}
