:root {
  color-scheme: light;
  --bg: #fff7ed;
  --surface: #ffffff;
  --surface-soft: #fffaf5;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #fed7aa;
  --brand: #ea580c;
  --brand-strong: #c2410c;
  --brand-soft: #ffedd5;
  --red: #ef4444;
  --shadow: 0 20px 55px rgba(154, 52, 18, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(251, 146, 60, 0.20), transparent 36rem),
    radial-gradient(circle at 90% 10%, rgba(239, 68, 68, 0.12), transparent 30rem),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fff7ed 100%);
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #fb923c, #ef4444);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(251, 146, 60, 0.22);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1220px;
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 22px;
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: white;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.28);
}

.brand-name {
  font-size: 20px;
  letter-spacing: -0.02em;
}

.desktop-nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.desktop-nav::-webkit-scrollbar {
  display: none;
}

.desktop-nav a,
.mobile-panel a {
  color: #4b5563;
  font-weight: 700;
  font-size: 14px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
  color: var(--brand);
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  min-width: 260px;
}

.header-search input,
.mobile-search input,
.search-hero input,
.inline-filter input {
  width: 100%;
  border: 1px solid #fdba74;
  border-right: 0;
  outline: none;
  padding: 12px 14px;
  border-radius: 14px 0 0 14px;
  background: #fff;
  color: var(--text);
}

.header-search button,
.mobile-search button,
.search-hero button,
.inline-filter button,
.primary-btn,
.secondary-btn {
  border: 0;
  cursor: pointer;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #dc2626);
  padding: 12px 18px;
  border-radius: 0 14px 14px 0;
  box-shadow: 0 14px 28px rgba(234, 88, 12, 0.22);
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 14px 22px;
}

.secondary-btn {
  color: var(--brand-strong);
  background: #fff;
  box-shadow: inset 0 0 0 1px #fed7aa, 0 12px 26px rgba(154, 52, 18, 0.08);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--brand-strong);
  font-size: 28px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  padding: 0 22px 22px;
}

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

.mobile-panel nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.mobile-panel nav a {
  padding: 12px 14px;
  background: #fff7ed;
  border-radius: 14px;
}

.page-wrap,
.hero-wrap,
.detail-wrap {
  max-width: 1220px;
  margin: 0 auto;
  padding: 34px 22px;
}

.hero-wrap {
  padding-top: 28px;
}

.hero-carousel {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: 34px;
  background: linear-gradient(135deg, #7c2d12, #ea580c 48%, #ef4444);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero-carousel::before,
.hero-carousel::after {
  content: "";
  position: absolute;
  inset: auto auto -20% -10%;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: rgba(255, 237, 213, 0.18);
  filter: blur(8px);
  z-index: 0;
}

.hero-carousel::after {
  inset: -24% -8% auto auto;
  width: 520px;
  height: 520px;
  background: rgba(255, 255, 255, 0.14);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(300px, 0.72fr);
  gap: 34px;
  align-items: center;
  padding: 54px;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 1;
}

.hero-slide.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.hero-copy {
  color: #fff;
}

.hero-kicker,
.kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff7ed;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.kicker {
  color: var(--brand-strong);
  background: var(--brand-soft);
}

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

.hero-copy p {
  max-width: 670px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.9;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.hero-tags span,
.tag-row span,
.info-pill,
.breadcrumb a,
.breadcrumb span {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-poster {
  position: relative;
  height: 430px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
  transform: rotate(2deg);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.74));
}

.hero-poster-title {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  color: #fff;
  font-weight: 900;
  font-size: 24px;
}

.hero-dots {
  position: absolute;
  left: 54px;
  bottom: 34px;
  z-index: 5;
  display: flex;
  gap: 10px;
}

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

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

.quick-channels {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.channel-card,
.category-card,
.stat-card {
  display: block;
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(251, 146, 60, 0.22);
  box-shadow: 0 18px 45px rgba(154, 52, 18, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.channel-card:hover,
.category-card:hover,
.movie-card:hover,
.rank-row:hover,
.index-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 70px rgba(154, 52, 18, 0.15);
}

.channel-card strong,
.category-card strong,
.stat-card strong {
  display: block;
  color: #1f2937;
  font-size: 18px;
  margin-bottom: 8px;
}

.channel-card span,
.category-card span,
.stat-card span {
  color: var(--muted);
  line-height: 1.6;
}

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

.section-heading h2,
.page-title h1,
.detail-title h1 {
  margin: 12px 0 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

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

.section-link {
  flex: 0 0 auto;
  color: var(--brand-strong);
  font-weight: 900;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(251, 146, 60, 0.20);
  box-shadow: 0 16px 45px rgba(154, 52, 18, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.15;
  overflow: hidden;
  background: linear-gradient(135deg, #fb923c, #ef4444);
}

.poster-link img {
  transition: transform 0.38s ease;
}

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

.year-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: white;
  background: rgba(17, 24, 39, 0.72);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.rank-badge {
  left: auto;
  right: 12px;
  background: linear-gradient(135deg, #f97316, #dc2626);
}

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

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

.movie-card h3 a:hover {
  color: var(--brand);
}

.meta-line,
.card-summary {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.card-summary {
  color: #4b5563;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-row span,
.info-pill,
.breadcrumb a,
.breadcrumb span {
  color: var(--brand-strong);
  background: #fff7ed;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 64px 82px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(251, 146, 60, 0.18);
  box-shadow: 0 14px 34px rgba(154, 52, 18, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-num {
  color: var(--brand-strong);
  font-weight: 900;
  font-size: 24px;
  text-align: center;
}

.rank-thumb {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 14px;
}

.rank-row h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

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

.rank-heat {
  color: #dc2626;
  font-weight: 900;
  white-space: nowrap;
}

.page-title {
  padding: 36px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255, 237, 213, 0.95), rgba(255, 255, 255, 0.95));
  border: 1px solid rgba(251, 146, 60, 0.24);
  box-shadow: var(--shadow);
}

.stats-grid,
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

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

.category-card .mini-posters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.category-card .mini-posters img {
  aspect-ratio: 3 / 4;
  border-radius: 12px;
}

.inline-filter,
.search-hero {
  display: flex;
  gap: 0;
  max-width: 680px;
  margin-top: 20px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.9fr);
  gap: 34px;
  align-items: center;
  padding: 34px;
  border-radius: 32px;
  background: linear-gradient(135deg, #7c2d12, #ea580c 54%, #ef4444);
  color: white;
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 3 / 4.2;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.breadcrumb a,
.breadcrumb span {
  background: rgba(255, 255, 255, 0.18);
  color: white;
}

.detail-title h1 {
  color: white;
}

.detail-title p {
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.9;
  font-size: 17px;
}

.info-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.info-pill {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.player-panel {
  margin-top: 34px;
  overflow: hidden;
  border-radius: 30px;
  background: #111827;
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.20);
}

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

.video-stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
  z-index: 1;
}

.play-trigger {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  color: white;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.20), rgba(2, 6, 23, 0.72));
}

.play-trigger.is-hidden {
  display: none;
}

.play-trigger span {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #dc2626);
  box-shadow: 0 24px 60px rgba(220, 38, 38, 0.30);
  font-size: 32px;
  padding-left: 5px;
}

.player-caption,
.content-panel {
  padding: 24px;
  background: #fff;
}

.player-caption h2,
.content-panel h2 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 26px;
}

.player-caption p,
.content-panel p {
  margin: 0;
  color: #4b5563;
  line-height: 1.9;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  margin-top: 28px;
}

.content-panel {
  border-radius: 26px;
  border: 1px solid rgba(251, 146, 60, 0.18);
  box-shadow: 0 18px 45px rgba(154, 52, 18, 0.08);
}

.side-panel {
  display: grid;
  gap: 14px;
  align-content: start;
}

.side-link {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(251, 146, 60, 0.18);
}

.side-link img {
  aspect-ratio: 3 / 4;
  border-radius: 12px;
}

.side-link strong {
  display: block;
  margin-bottom: 6px;
}

.side-link span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.index-list {
  columns: 4 220px;
  column-gap: 18px;
  margin-top: 24px;
}

.index-link {
  display: block;
  break-inside: avoid;
  margin-bottom: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(251, 146, 60, 0.16);
  color: #374151;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.no-result {
  display: none;
  margin-top: 20px;
  padding: 18px;
  border-radius: 18px;
  background: #fff7ed;
  color: var(--brand-strong);
  font-weight: 900;
}

.no-result.is-visible {
  display: block;
}

.site-footer {
  margin-top: 42px;
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  max-width: 1220px;
  margin: 0 auto;
  padding: 44px 22px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 34px;
}

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

.site-footer p {
  margin: 0;
  line-height: 1.8;
  color: #9ca3af;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: white;
  font-size: 18px;
}

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

.footer-links a {
  color: #d1d5db;
}

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

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

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

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

  .hero-poster {
    height: 330px;
  }

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

@media (max-width: 640px) {
  .header-inner,
  .page-wrap,
  .hero-wrap,
  .detail-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .hero-carousel {
    min-height: 760px;
    border-radius: 24px;
  }

  .hero-slide {
    padding: 28px;
  }

  .hero-dots {
    left: 28px;
    bottom: 24px;
  }

  .quick-channels,
  .movie-grid,
  .movie-grid.compact-grid,
  .stats-grid,
  .category-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .rank-heat {
    grid-column: 3;
  }

  .detail-hero,
  .page-title {
    padding: 24px;
    border-radius: 24px;
  }
}
