:root {
  --amber: #f59e0b;
  --orange: #f97316;
  --red: #ef4444;
  --green: #10b981;
  --blue: #2563eb;
  --ink: #1f2937;
  --muted: #6b7280;
  --soft: #fff7ed;
  --line: #fed7aa;
  --card: #ffffff;
  --shadow: 0 22px 60px rgba(124, 45, 18, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 44%, #fff7ed 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.92), rgba(255, 247, 237, 0.92));
  border-bottom: 1px solid rgba(251, 191, 36, 0.28);
  box-shadow: 0 8px 30px rgba(146, 64, 14, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.32);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 21px;
  font-weight: 850;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #d97706, #ea580c);
  -webkit-background-clip: text;
  color: transparent;
}

.brand-text small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

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

.nav-link,
.mobile-link {
  color: #374151;
  font-weight: 700;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.nav-link {
  padding: 10px 16px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #b45309;
  background: rgba(251, 191, 36, 0.18);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(251, 191, 36, 0.18);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #b45309;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 10px 16px 18px;
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--line);
}

.mobile-nav.open {
  display: grid;
  gap: 8px;
}

.mobile-link {
  padding: 13px 14px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 630px;
  color: white;
  background: linear-gradient(135deg, #f59e0b 0%, #fb923c 44%, #f97316 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 255, 255, 0.28), transparent 26%),
    radial-gradient(circle at 82% 75%, rgba(255, 255, 255, 0.2), transparent 32%),
    linear-gradient(135deg, rgba(146, 64, 14, 0.18), transparent 58%);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 48px;
  align-items: center;
  padding: 70px 0 92px;
  opacity: 0;
  transform: translateY(18px) scale(0.99);
  pointer-events: none;
  transition: opacity 0.48s ease, transform 0.48s ease;
}

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

.hero-kicker,
.meta-row,
.tag-row,
.meta-pills,
.hero-actions,
.filter-selects {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-kicker span,
.meta-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  color: white;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.hero-copy h1 {
  max-width: 760px;
  margin: 20px 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.82;
}

.primary-button,
.secondary-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 800;
  transition: all 0.2s ease;
}

.primary-button {
  color: white;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.28);
}

.hero-actions .primary-button {
  color: #9a3412;
  background: white;
  box-shadow: 0 18px 44px rgba(124, 45, 18, 0.18);
}

.secondary-button {
  color: white;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.38);
}

.primary-button:hover,
.secondary-button:hover,
.text-button:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  width: min(420px, 100%);
  justify-self: end;
  overflow: hidden;
  border: 12px solid rgba(255, 255, 255, 0.23);
  border-radius: 34px;
  box-shadow: 0 35px 90px rgba(124, 45, 18, 0.38);
  aspect-ratio: 3 / 4.2;
  background: rgba(255, 255, 255, 0.16);
}

.hero-poster img,
.poster img,
.feature-poster img,
.hot-poster img,
.category-tile img,
.category-cover img,
.detail-poster img,
.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(10px);
}

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

.hero-controls button {
  border: 0;
  cursor: pointer;
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  color: white;
  font-size: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
}

.hero-dot.active {
  width: 28px;
  background: white;
}

.section {
  padding: 62px 0;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.section-title span {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-title a,
.text-button {
  color: #d97706;
  font-weight: 800;
}

.feature-card,
.category-card-large,
.content-card,
.side-card,
.player-card,
.filter-panel,
.cta-band {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(251, 191, 36, 0.24);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.feature-card {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
  padding: 28px;
}

.feature-poster {
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 3 / 4;
}

.feature-info h2 {
  margin: 12px 0 14px;
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.1;
}

.feature-info p {
  color: #4b5563;
  font-size: 17px;
  line-height: 1.8;
}

.meta-row {
  color: #7c2d12;
  font-size: 13px;
  font-weight: 700;
}

.meta-row span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #ffedd5;
}

.tag-row span {
  padding: 6px 10px;
  color: #b45309;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  background: #fef3c7;
}

.gradient-block {
  width: min(1240px, calc(100% - 24px));
  padding-left: 30px;
  padding-right: 30px;
  border-radius: 34px;
  background: linear-gradient(90deg, #eff6ff, #ecfeff);
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: white;
  box-shadow: 0 16px 38px rgba(124, 45, 18, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 55px rgba(124, 45, 18, 0.18);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.2;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

.poster img {
  transition: transform 0.32s ease;
}

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

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

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  box-shadow: 0 12px 22px rgba(239, 68, 68, 0.28);
}

.card-body {
  padding: 16px;
}

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

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

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

.hot-item {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 18px;
  padding: 14px;
  border-radius: 22px;
  background: white;
  box-shadow: 0 14px 34px rgba(124, 45, 18, 0.09);
}

.hot-poster {
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 3 / 4;
  background: #fed7aa;
}

.hot-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
  font-size: 18px;
  font-weight: 900;
}

.hot-rank {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef4444, #f97316);
}

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

.full-list .hot-item {
  grid-template-columns: 92px 1fr;
}

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

.category-tile {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 8px;
  padding: 18px;
  color: white;
  border-radius: 26px;
  background: #111827;
  box-shadow: 0 16px 38px rgba(17, 24, 39, 0.16);
}

.category-tile img {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  transition: transform 0.3s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
}

.category-tile:hover img {
  transform: scale(1.08);
}

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

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

.category-tile small {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

.cta-band {
  margin-bottom: 70px;
  padding: 48px 26px;
  text-align: center;
  background: linear-gradient(90deg, #fef3c7, #ffedd5);
}

.cta-band h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 44px);
}

.cta-band p {
  color: var(--muted);
  font-size: 17px;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 34px;
}

.footer-brand {
  color: white;
  font-size: 23px;
  font-weight: 900;
  margin-bottom: 12px;
}

.footer-inner p {
  max-width: 460px;
  color: #9ca3af;
  line-height: 1.8;
}

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

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

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: white;
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.page-hero {
  min-height: 330px;
  display: grid;
  place-items: center;
  text-align: center;
}

.page-hero::before,
.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.28), transparent 28%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.2), transparent 30%);
}

.page-hero > div {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 32px));
}

.page-hero p {
  margin: 0 0 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 7vw, 66px);
  line-height: 1.08;
}

.page-hero span {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.8;
}

.filter-panel {
  width: min(1180px, calc(100% - 32px));
  margin: -36px auto 34px;
  position: relative;
  z-index: 5;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}

.search-box {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border-radius: 16px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.search-box span {
  color: #d97706;
  font-size: 22px;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

.filter-select {
  min-height: 52px;
  padding: 0 38px 0 14px;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  color: #7c2d12;
  background: #fff7ed;
  outline: none;
}

.filter-empty {
  grid-column: 1 / -1;
  color: #b45309;
  text-align: center;
  font-weight: 800;
}

.category-list-large {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.category-card-large {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  padding: 18px;
}

.category-cover {
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 3 / 4;
}

.category-card-large h2 {
  margin: 6px 0 10px;
  font-size: 26px;
}

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

.category-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.category-preview a {
  padding: 6px 10px;
  color: #b45309;
  font-size: 12px;
  border-radius: 999px;
  background: #ffedd5;
}

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

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  filter: blur(8px);
  transform: scale(1.05);
}

.detail-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 42px;
  align-items: center;
  min-height: 520px;
  padding: 54px 0;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  aspect-ratio: 3 / 4.15;
  box-shadow: 0 30px 70px rgba(124, 45, 18, 0.36);
  border: 10px solid rgba(255, 255, 255, 0.24);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: white;
}

.breadcrumb em {
  font-style: normal;
}

.detail-info h1 {
  margin: 20px 0;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-info p {
  max-width: 800px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 19px;
  line-height: 1.85;
}

.detail-info .tag-row {
  margin: 18px 0 24px;
}

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

.detail-main,
.detail-side {
  display: grid;
  gap: 22px;
  align-content: start;
}

.player-card {
  overflow: hidden;
  padding: 0;
  background: #030712;
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #030712;
}

.video-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #030712;
}

.video-start {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: white;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(3, 7, 18, 0.25), rgba(3, 7, 18, 0.72));
}

.video-start span {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  border-radius: 999px;
  color: #9a3412;
  font-size: 30px;
  background: white;
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.3);
}

.video-start strong {
  font-size: 18px;
}

.video-start.is-hidden {
  display: none;
}

.video-state {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  padding: 10px 14px;
  color: white;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
}

.content-card,
.side-card {
  padding: 26px;
}

.content-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.content-card p {
  color: #4b5563;
  font-size: 16px;
  line-height: 1.9;
}

.inner-title {
  margin-bottom: 18px;
}

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

.side-card dl {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px 14px;
  margin: 0;
}

.side-card dt {
  color: #9a3412;
  font-weight: 900;
}

.side-card dd {
  margin: 0;
  color: #4b5563;
}

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

.side-hot-list .hot-item {
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 10px;
  box-shadow: none;
  border: 1px solid #ffedd5;
}

.side-hot-list .hot-info p,
.side-hot-list .meta-row {
  display: none;
}

.side-hot-list .hot-title {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

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

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

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

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

  .menu-button {
    display: inline-block;
  }

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

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
    padding: 46px 0 92px;
  }

  .hero-kicker,
  .hero-actions,
  .meta-row,
  .tag-row,
  .meta-pills {
    justify-content: center;
  }

  .hero-poster {
    justify-self: center;
    width: min(310px, 76vw);
  }

  .feature-card,
  .category-card-large,
  .detail-wrap {
    grid-template-columns: 1fr;
  }

  .feature-poster,
  .detail-poster {
    max-width: 320px;
    margin: 0 auto;
  }

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

  .category-list-large,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .detail-wrap {
    text-align: center;
  }
}

@media (max-width: 620px) {
  .header-inner {
    height: 64px;
  }

  .brand-text strong {
    font-size: 18px;
  }

  .brand-text small {
    display: none;
  }

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

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

  .hot-item,
  .full-list .hot-item {
    grid-template-columns: 84px 1fr;
  }

  .card-body {
    padding: 12px;
  }

  .card-body h3 {
    font-size: 16px;
  }

  .card-body p,
  .compact-card .tag-row {
    display: none;
  }

  .page-hero {
    min-height: 280px;
  }

  .section {
    padding: 42px 0;
  }
}
