:root {
  --bg: #f8fafc;
  --paper: #ffffff;
  --paper-soft: rgba(255, 255, 255, 0.88);
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --dark: #020617;
  --amber: #d97706;
  --amber-light: #f59e0b;
  --amber-soft: #fef3c7;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.10);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(245, 158, 11, 0.15), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, #f3f4f6 55%, #eef2f7 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,
video {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.logo-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--amber-light));
  box-shadow: 0 10px 25px rgba(217, 119, 6, 0.35);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 9px 14px;
  border-radius: 999px;
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--amber);
  background: var(--amber-soft);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 14px;
  background: #f3f4f6;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #111827;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
}

.mobile-links {
  display: grid;
  gap: 8px;
  padding: 14px 0 18px;
}

.hero {
  position: relative;
  padding-bottom: 34px;
}

.hero-stage {
  position: relative;
  height: min(72vh, 590px);
  min-height: 460px;
  overflow: hidden;
  background: var(--dark);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
  transition: opacity 0.8s ease;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.88) 0%, rgba(2, 6, 23, 0.56) 42%, rgba(2, 6, 23, 0.20) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.78) 0%, transparent 48%);
}

.hero-content {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  color: #fff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 8vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero-desc {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

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

.hero-tags span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  color: #111827;
  background: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 800;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--amber-light));
  box-shadow: 0 16px 30px rgba(217, 119, 6, 0.34);
}

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

.narrow-actions .btn.ghost,
.detail-actions .btn.ghost {
  color: #111827;
  background: #fff;
  border: 1px solid var(--line);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  font-size: 36px;
  line-height: 1;
  transform: translateY(-50%);
}

.hero-arrow.prev {
  left: 22px;
}

.hero-arrow.next {
  right: 22px;
}

.hero-dots {
  position: absolute;
  right: 32px;
  bottom: 32px;
  z-index: 5;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 34px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

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

.hero-bottom {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 16px;
  margin-top: -42px;
  position: relative;
  z-index: 6;
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.hero-search span {
  color: var(--amber);
  font-weight: 900;
}

.hero-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #111827;
  background: transparent;
}

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

.hero-thumb {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 82px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.hero-thumb.active {
  outline: 2px solid rgba(245, 158, 11, 0.8);
}

.hero-thumb img {
  width: 56px;
  height: 62px;
  border-radius: 14px;
  background: #e5e7eb;
  object-fit: cover;
}

.hero-thumb span {
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.content-section,
.quick-channels {
  padding: 48px 0 0;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-more {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--amber);
  background: var(--amber-soft);
  font-weight: 900;
  white-space: nowrap;
}

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

.channel-card {
  position: relative;
  min-height: 188px;
  overflow: hidden;
  padding: 20px;
  border-radius: var(--radius);
  color: #fff;
  background: #111827;
  box-shadow: var(--shadow);
}

.channel-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.58;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.channel-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.12), rgba(17, 24, 39, 0.88));
}

.channel-card:hover img {
  transform: scale(1.08);
}

.channel-name,
.channel-copy {
  position: relative;
  z-index: 2;
  display: block;
}

.channel-name {
  margin-top: 78px;
  font-size: 22px;
  font-weight: 900;
}

.channel-copy {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.85);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.14);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #e5e7eb;
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(217, 119, 6, 0.94);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translateY(0);
}

.rank-num {
  position: absolute;
  left: 12px;
  top: 12px;
  display: grid;
  min-width: 38px;
  height: 34px;
  place-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #111827, var(--amber));
  font-style: normal;
  font-weight: 900;
}

.card-body {
  padding: 14px;
}

.card-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 46px;
  color: #111827;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-title:hover {
  color: var(--amber);
}

.card-meta {
  margin: 7px 0 0;
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
}

.card-text {
  display: -webkit-box;
  overflow: hidden;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.compact .card-text {
  -webkit-line-clamp: 2;
}

.filter-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.filter-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: center;
}

.filter-row strong {
  color: #111827;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #374151;
  background: #f3f4f6;
  font-weight: 800;
}

.chip.active,
.chip:hover {
  color: #fff;
  background: var(--amber);
}

.page-main,
.detail-main {
  padding-bottom: 68px;
}

.page-hero {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(2, 6, 23, 0.92), rgba(120, 53, 15, 0.82)),
    radial-gradient(circle at 85% 10%, rgba(245, 158, 11, 0.42), transparent 28rem);
}

.page-hero-inner {
  min-height: 300px;
  display: grid;
  align-content: center;
  padding: 54px 0;
}

.page-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.03;
  letter-spacing: -0.06em;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
}

.page-search {
  width: min(520px, 100%);
  margin-bottom: 22px;
}

.detail-hero {
  color: #fff;
  background:
    radial-gradient(circle at 15% 20%, rgba(245, 158, 11, 0.42), transparent 30rem),
    linear-gradient(135deg, #020617, #1f2937 58%, #78350f);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 36px;
  align-items: end;
  min-height: 520px;
  padding: 70px 0 48px;
}

.detail-poster {
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #111827;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb a:hover {
  color: #fff;
}

.detail-copy h1 {
  max-width: 840px;
  margin: 0;
  font-size: clamp(38px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.detail-one-line {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.player-section {
  margin-top: -26px;
  position: relative;
  z-index: 3;
}

.stream-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.28);
}

.stream-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
}

.stream-start {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(217, 119, 6, 0.96);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.stream-start span {
  margin-left: 5px;
  font-size: 34px;
}

.stream-start:hover {
  transform: translate(-50%, -50%) scale(1.05);
}

.stream-shell.playing .stream-start {
  opacity: 0;
  pointer-events: none;
}

.detail-content {
  display: grid;
  gap: 24px;
  padding-top: 34px;
}

.story-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.story-card h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 4vw, 34px);
  letter-spacing: -0.03em;
}

.story-card p:last-child {
  margin: 0;
  color: #374151;
  font-size: 17px;
}

.site-footer {
  margin-top: 70px;
  padding: 42px 0 28px;
  color: #d1d5db;
  background: #020617;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: start;
}

.footer-logo {
  color: #fff;
}

.site-footer p {
  max-width: 680px;
  margin: 18px 0 0;
  color: #9ca3af;
}

.footer-links {
  display: grid;
  gap: 10px;
  min-width: 160px;
  font-weight: 800;
}

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

.copyright {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #6b7280;
  font-size: 13px;
}

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

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

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

  .hero-bottom {
    grid-template-columns: 1fr;
  }
}

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

  .menu-toggle {
    display: flex;
  }

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

  .hero-stage {
    height: 620px;
  }

  .hero-arrow {
    display: none;
  }

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

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

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

  .detail-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 38px 0;
  }

  .detail-poster {
    width: min(280px, 78vw);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .hero h1,
  .detail-copy h1 {
    letter-spacing: -0.05em;
  }

  .hero-desc,
  .detail-one-line {
    font-size: 16px;
  }

  .hero-thumbs {
    display: none;
  }

  .hero-bottom {
    margin-top: -32px;
  }

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

  .movie-grid,
  .channel-grid {
    grid-template-columns: 1fr;
  }

  .movie-card.compact {
    display: grid;
    grid-template-columns: 112px 1fr;
  }

  .movie-card.compact .poster-link {
    aspect-ratio: auto;
    height: 100%;
    min-height: 154px;
  }

  .stream-start {
    width: 68px;
    height: 68px;
  }
}
