:root {
  --amber-50: #fff8eb;
  --amber-100: #ffedc2;
  --amber-400: #f6b23b;
  --amber-500: #f59e0b;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --rose-500: #f43f5e;
  --slate-950: #1b1206;
  --slate-900: #2a1808;
  --slate-700: #5f4b32;
  --slate-500: #876f50;
  --paper: #ffffff;
  --soft: rgba(255, 255, 255, 0.78);
  --line: rgba(146, 96, 31, 0.18);
  --shadow: 0 20px 60px rgba(117, 61, 0, 0.16);
  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-900);
  background:
    radial-gradient(circle at top left, rgba(255, 204, 128, 0.34), transparent 32rem),
    linear-gradient(180deg, #fff6e6 0%, #fff 42%, #fff8ed 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 249, 239, 0.86);
  box-shadow: 0 10px 32px rgba(158, 88, 0, 0.08);
  backdrop-filter: blur(18px);
}

.header-shell,
.footer-shell,
.hero-shell,
.content-section,
.detail-shell,
.player-shell,
.page-hero {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

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

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

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-400), var(--orange-600));
  box-shadow: 0 12px 30px rgba(234, 88, 12, 0.28);
}

.brand-text {
  display: grid;
  gap: 0;
}

.brand-text strong,
.footer-brand {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #b45309, var(--orange-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

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

.site-nav a {
  padding: 10px 14px;
  color: var(--slate-700);
  border-radius: 999px;
  font-weight: 700;
  transition: 0.2s ease;
}

.site-nav a:hover {
  color: #9a3412;
  background: rgba(251, 191, 36, 0.16);
}

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

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #92400e;
  border-radius: 99px;
}

.hero-section {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #f5b11b 0%, #f97316 48%, #b45309 100%);
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 150px;
  background: linear-gradient(180deg, transparent, rgba(255, 248, 235, 0.96));
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  filter: blur(10px);
  animation: pulseGlow 5s ease-in-out infinite;
}

.hero-glow-one {
  width: 320px;
  height: 320px;
  left: 5%;
  top: 8%;
}

.hero-glow-two {
  width: 460px;
  height: 460px;
  right: -120px;
  bottom: 5%;
  animation-delay: 1.2s;
}

.hero-shell {
  position: relative;
  z-index: 2;
  padding: 86px 0 100px;
}

.hero-badge,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  backdrop-filter: blur(12px);
}

.eyebrow {
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.22);
  background: rgba(245, 158, 11, 0.12);
}

.hero-carousel {
  position: relative;
  min-height: 430px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: center;
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  pointer-events: none;
  transition: 0.55s ease;
}

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

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

.hero-copy p {
  max-width: 720px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.hero-kicker {
  display: block;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero-tags,
.ranking-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.hero-tags span,
.ranking-meta span {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.17);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 800;
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.primary-btn,
.ghost-btn,
.text-btn,
.play-chip,
.card-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.2s ease;
}

.primary-btn {
  color: #9a3412;
  background: #fff;
  box-shadow: 0 16px 36px rgba(120, 53, 15, 0.22);
}

.primary-btn:hover,
.play-chip:hover,
.card-actions a:first-child:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(120, 53, 15, 0.25);
}

.ghost-btn {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.hero-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.32);
  border-radius: 34px;
  box-shadow: 0 40px 80px rgba(70, 27, 0, 0.32);
  transform: rotate(2deg);
}

.hero-poster img,
.poster-wrap img,
.ranking-poster img,
.category-cover img,
.category-card img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.24), rgba(249, 115, 22, 0.2));
}

.hero-dots {
  position: relative;
  z-index: 4;
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.hero-dot {
  width: 36px;
  height: 8px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.hero-dot.active {
  background: #fff;
}

.hero-search {
  position: relative;
  z-index: 4;
  display: flex;
  max-width: 720px;
  margin-top: 28px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 14px 45px rgba(120, 53, 15, 0.18);
  backdrop-filter: blur(16px);
}

.hero-search input,
.filter-bar input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--slate-900);
  background: #fff;
  border-radius: 999px;
  padding: 0 18px;
  min-height: 48px;
  font-size: 16px;
}

.hero-search button {
  border: 0;
  color: #fff;
  cursor: pointer;
  min-width: 110px;
  margin-left: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d97706, var(--orange-600));
  font-size: 16px;
  font-weight: 900;
}

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

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

.section-heading h2,
.page-hero h1,
.detail-main h1,
.now-playing h1 {
  margin: 0;
  color: var(--slate-950);
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.section-link,
.text-btn {
  color: #c2410c;
  font-weight: 900;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 15px 45px rgba(117, 61, 0, 0.09);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: rgba(245, 158, 11, 0.12);
}

.poster-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 5px 10px;
  color: #fff;
  border-radius: 999px;
  background: rgba(154, 52, 18, 0.82);
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  gap: 8px;
  color: #b45309;
  font-size: 12px;
  font-weight: 900;
}

.movie-card h3 {
  margin: 8px 0 8px;
  color: var(--slate-950);
  font-size: 18px;
  line-height: 1.25;
}

.movie-card p {
  min-height: 4.8em;
  margin: 0 0 14px;
  color: var(--slate-700);
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

.tag-row span {
  padding: 4px 8px;
  color: #92400e;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.13);
  font-size: 12px;
  font-weight: 800;
}

.tag-row.large span {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.card-actions a:first-child,
.play-chip {
  color: #fff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
}

.card-actions a:last-child {
  color: #b45309;
  background: rgba(245, 158, 11, 0.12);
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
}

.rank-panel,
.channel-panel,
.prose-card,
.video-panel,
.now-playing,
.category-overview-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 15px 45px rgba(117, 61, 0, 0.08);
}

.rank-panel,
.channel-panel {
  padding: 24px;
}

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

.rank-mini {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(245, 158, 11, 0.09);
}

.rank-mini span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  font-weight: 900;
}

.rank-mini strong,
.rank-mini small {
  display: block;
}

.rank-mini small {
  color: var(--slate-500);
}

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

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 22px;
  color: #fff;
  isolation: isolate;
  background: #92400e;
}

.category-card::after,
.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(40, 18, 4, 0.88));
  z-index: -1;
}

.category-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.category-card span {
  width: fit-content;
  padding: 5px 9px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 12px;
  font-weight: 900;
}

.category-card strong {
  font-size: 22px;
}

.category-card small {
  color: rgba(255, 255, 255, 0.86);
}

.page-hero {
  margin-top: 28px;
  padding: 54px;
  border-radius: 36px;
  color: #fff;
  background: linear-gradient(135deg, #f6ad2f, #f97316 60%, #9a3412);
  box-shadow: var(--shadow);
}

.page-hero .eyebrow,
.detail-main .eyebrow,
.now-playing .eyebrow {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.16);
}

.page-hero h1,
.page-hero p {
  color: #fff;
}

.page-hero p {
  max-width: 760px;
  margin: 14px 0 0;
  font-size: 18px;
}

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

.breadcrumb.light {
  color: rgba(255, 255, 255, 0.78);
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
}

.filter-bar span {
  white-space: nowrap;
  color: #b45309;
  font-weight: 900;
  padding-right: 12px;
}

.category-overview-grid {
  display: grid;
  gap: 22px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 24px;
  padding: 18px;
}

.category-cover {
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 16 / 11;
}

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

.category-overview-card p {
  color: var(--slate-700);
}

.category-overview-card ul {
  padding: 0;
  margin: 14px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  list-style: none;
}

.category-overview-card li a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.09);
  color: var(--slate-700);
  font-weight: 800;
}

.ranking-list {
  display: grid;
  gap: 14px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 78px 92px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 30px rgba(117, 61, 0, 0.07);
}

.ranking-num {
  color: #d97706;
  font-size: 24px;
  font-weight: 900;
}

.ranking-poster {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 16px;
}

.ranking-info h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.ranking-info p {
  margin: 0;
  color: var(--slate-700);
}

.ranking-meta span {
  color: #92400e;
  background: rgba(245, 158, 11, 0.12);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #3b210a;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.34;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) saturate(1.1);
  transform: scale(1.08);
}

.detail-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 46px;
  align-items: center;
  padding: 72px 0;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border: 10px solid rgba(255, 255, 255, 0.22);
  border-radius: 34px;
  box-shadow: 0 40px 70px rgba(0, 0, 0, 0.28);
}

.detail-main h1,
.now-playing h1 {
  color: #fff;
}

.lead-text {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
}

.detail-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
}

.prose-card {
  padding: 26px;
}

.prose-card h2 {
  margin-top: 0;
  color: var(--slate-950);
  font-size: 26px;
}

.prose-card p {
  color: var(--slate-700);
  font-size: 17px;
}

.meta-card {
  grid-column: 1 / -1;
}

.meta-card dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px 18px;
  margin: 0;
}

.meta-card dt {
  color: #b45309;
  font-weight: 900;
}

.meta-card dd {
  margin: 0;
  color: var(--slate-700);
}

.player-shell {
  padding: 42px 0 0;
}

.player-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  margin-top: 18px;
}

.video-panel {
  position: relative;
  overflow: hidden;
  background: #0f0a04;
}

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

.player-status {
  padding: 12px 18px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(0, 0, 0, 0.55);
  font-weight: 800;
}

.now-playing {
  padding: 26px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c 60%, #9a3412);
}

.now-playing p {
  color: rgba(255, 255, 255, 0.86);
}

.ranking-meta.stacked {
  display: grid;
}

.site-footer {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  background: rgba(255, 248, 237, 0.8);
}

.footer-shell {
  padding: 34px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-shell p {
  max-width: 520px;
  color: var(--slate-500);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #b45309;
  font-weight: 800;
}

.is-hidden {
  display: none !important;
}

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
    opacity: 0.38;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.68;
  }
}

@media (max-width: 1000px) {
  .hero-slide,
  .detail-shell,
  .player-layout,
  .split-section,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .hero-carousel {
    min-height: 780px;
  }

  .hero-poster,
  .detail-poster {
    width: min(320px, 82vw);
  }

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

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

@media (max-width: 760px) {
  .header-shell {
    min-height: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

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

  .hero-section {
    min-height: 780px;
  }

  .hero-shell {
    padding-top: 54px;
  }

  .hero-carousel {
    min-height: 620px;
  }

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

  .hero-search,
  .filter-bar,
  .footer-shell,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-search button {
    min-height: 46px;
    margin-left: 0;
    margin-top: 8px;
  }

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

  .page-hero {
    padding: 34px 24px;
  }

  .ranking-row {
    grid-template-columns: 50px 76px 1fr;
  }

  .ranking-row .play-chip {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .movie-grid,
  .movie-grid.wide,
  .category-grid,
  .category-grid.small,
  .category-overview-card ul {
    grid-template-columns: 1fr;
  }

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

  .hero-carousel {
    min-height: 710px;
  }
}
