:root {
  --bg: #fff7ed;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: rgba(17, 24, 39, 0.10);
  --orange: #f97316;
  --red: #ef4444;
  --pink: #ec4899;
  --blue: #2563eb;
  --dark: #111827;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.16), transparent 30rem),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 44%, #fff7ed 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  color: #ffffff;
  background: linear-gradient(90deg, #f97316 0%, #ef4444 52%, #ec4899 100%);
  box-shadow: 0 18px 36px rgba(239, 68, 68, 0.26);
}

.nav-shell {
  width: min(1240px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand-icon {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 17px;
  flex: 1;
  min-width: 0;
}

.nav-link {
  font-size: 15px;
  font-weight: 700;
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  opacity: 1;
  transform: translateY(-1px);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.nav-search input,
.big-search input,
.filter-card input,
.filter-card select {
  border: 0;
  outline: 0;
  color: var(--text);
  background: #ffffff;
}

.nav-search input {
  width: 220px;
  padding: 10px 14px;
  border-radius: 999px;
}

.nav-search button,
.big-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  color: #ffffff;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
}

.mobile-panel {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  gap: 10px;
  flex-wrap: wrap;
}

.mobile-panel a {
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.hero-slider {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

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

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06);
}

.hero-mask,
.detail-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 13, 26, 0.92), rgba(8, 13, 26, 0.56) 46%, rgba(8, 13, 26, 0.74)),
    radial-gradient(circle at 18% 28%, rgba(249, 115, 22, 0.42), transparent 28rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  min-height: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 360px;
  align-items: center;
  gap: 64px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.page-hero span,
.section-title span,
.category-overview-text span {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  color: #ffffff;
  background: linear-gradient(90deg, #f97316, #ef4444);
  box-shadow: 0 12px 28px rgba(239, 68, 68, 0.28);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

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

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

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.detail-meta span,
.tag-row span,
.detail-tags a {
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(14px);
}

.hero-actions,
.page-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.btn-primary,
.btn-secondary,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  padding: 15px 28px;
  color: #ffffff;
  background: linear-gradient(90deg, #f97316, #ef4444);
  box-shadow: 0 18px 40px rgba(239, 68, 68, 0.34);
}

.btn-secondary {
  padding: 14px 26px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.17);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.20);
}

.btn-primary:hover,
.btn-secondary:hover,
.text-link:hover {
  transform: translateY(-2px) scale(1.01);
}

.hero-poster,
.detail-poster {
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

.hero-poster img,
.detail-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.hero-controls {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  color: #ffffff;
}

.hero-controls button {
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.hero-controls > button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 34px;
  line-height: 1;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.section-wrap {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0;
}

.intro-band,
.filter-card {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 520px);
  gap: 28px;
  align-items: center;
}

.intro-band h2,
.section-title h2,
.page-hero h1,
.detail-info h1,
.detail-content h2 {
  margin: 0;
  letter-spacing: -0.04em;
}

.intro-band h2,
.section-title h2,
.page-hero h1,
.detail-info h1 {
  font-size: clamp(32px, 4vw, 54px);
}

.intro-band p,
.page-hero p,
.detail-content p,
.category-overview-card p,
.channel-card p {
  color: var(--muted);
  line-height: 1.82;
}

.big-search {
  display: flex;
  padding: 8px;
  gap: 8px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.big-search input {
  flex: 1;
  min-width: 0;
  padding: 15px 18px;
  border-radius: 999px;
}

.big-search button {
  padding: 13px 22px;
}

.section-title,
.channel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.section-title a,
.channel-head a,
.text-link {
  color: var(--orange);
  font-weight: 900;
}

.compact-title h2 {
  font-size: 32px;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.16);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111827;
}

.poster-wrap img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.68));
}

.poster-play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 16px 34px rgba(239, 68, 68, 0.32);
}

.card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.card-body h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.25;
}

.card-body p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row span {
  color: #ef4444;
  background: #fff1f2;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 30px;
  align-items: start;
}

.rank-panel,
.rank-page-list,
.category-overview-card,
.channel-card,
.filter-card,
.detail-content article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
}

.rank-panel {
  position: sticky;
  top: 100px;
  padding: 22px;
}

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

.rank-page-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 24px;
}

.rank-item {
  display: grid;
  grid-template-columns: auto 76px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #fff7ed;
}

.rank-num {
  font-size: 20px;
  font-weight: 900;
  color: #ef4444;
}

.rank-thumb {
  overflow: hidden;
  border-radius: 14px;
}

.rank-thumb img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.rank-item h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.rank-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.channel-grid,
.overview-list {
  display: grid;
  gap: 22px;
}

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

.channel-card {
  padding: 24px;
}

.channel-mini-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #7c2d12 62%, #831843);
}

.page-hero {
  padding: 96px 16px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(42px, 7vw, 78px);
}

.page-hero p {
  max-width: 760px;
  margin: 20px auto 0;
  color: rgba(255, 255, 255, 0.86);
}

.page-hero-actions {
  justify-content: center;
}

.filter-card {
  padding: 16px;
}

.filter-card input,
.filter-card select {
  width: 100%;
  padding: 15px 18px;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px var(--line);
}

.category-overview-card {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
}

.category-overview-text h2 {
  margin: 0;
  font-size: 32px;
}

.overview-posters {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.overview-posters a {
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.overview-posters img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

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

.detail-shell {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: center;
}

.detail-poster {
  transform: rotate(-1.5deg);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
}

.detail-info h1 {
  font-size: clamp(42px, 6vw, 76px);
}

.detail-meta {
  margin: 22px 0;
}

.detail-one-line {
  max-width: 820px;
  font-size: 20px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
}

.detail-tags a {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.player-section {
  padding-top: 42px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000000;
  box-shadow: 0 34px 84px rgba(0, 0, 0, 0.28);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 78vh;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(239, 68, 68, 0.20), rgba(0, 0, 0, 0.72));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-cover span {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  padding-left: 4px;
  border-radius: 50%;
  font-size: 34px;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 20px 46px rgba(239, 68, 68, 0.42);
}

.player-cover strong {
  font-size: 24px;
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

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

.detail-content article {
  padding: 28px;
}

.detail-content h2 {
  font-size: 28px;
  margin-bottom: 16px;
}

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

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

.footer-brand {
  display: inline-flex;
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.footer-grid p {
  max-width: 420px;
  line-height: 1.8;
}

.footer-grid h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 18px;
}

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

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

.footer-bottom {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  color: #9ca3af;
}

.hidden-by-filter {
  display: none !important;
}

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

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

  .mobile-panel.open {
    display: flex;
  }

  .nav-shell {
    justify-content: space-between;
  }
}

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

  .hero-content,
  .detail-shell,
  .split-layout,
  .category-overview-card,
  .intro-band,
  .filter-card,
  .detail-content,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 86px 0 120px;
    gap: 32px;
  }

  .hero-poster,
  .detail-poster {
    width: min(280px, 82vw);
    margin: 0 auto;
  }

  .hero-slider,
  .hero-content {
    min-height: 860px;
  }

  .rank-panel {
    position: static;
  }

  .movie-grid,
  .movie-grid.two-col,
  .rank-page-list,
  .channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-shell {
    padding: 60px 0;
  }
}

@media (max-width: 620px) {
  .brand-text {
    font-size: 18px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 40px;
  }

  .hero-copy p,
  .detail-one-line {
    font-size: 17px;
  }

  .movie-grid,
  .movie-grid.two-col,
  .rank-page-list,
  .channel-grid,
  .overview-posters {
    grid-template-columns: 1fr;
  }

  .big-search {
    border-radius: 24px;
    flex-direction: column;
  }

  .big-search input,
  .big-search button {
    width: 100%;
  }

  .section-wrap {
    padding: 38px 0;
  }

  .rank-item {
    grid-template-columns: auto 64px 1fr;
  }
}
