:root {
  --bg: #f8fafc;
  --text: #111827;
  --muted: #6b7280;
  --soft: #f3f4f6;
  --line: #e5e7eb;
  --orange: #ea580c;
  --orange-dark: #c2410c;
  --red: #dc2626;
  --pink: #db2777;
  --blue: #2563eb;
  --green: #16a34a;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

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

.image-hidden {
  opacity: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
}

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red), var(--pink));
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.32);
  font-size: 16px;
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

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

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #374151;
  font-size: 15px;
  font-weight: 600;
}

.main-nav a {
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--orange);
}

.nav-toggle {
  display: none;
  border: 0;
  background: var(--soft);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 22px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #ea580c 0%, #dc2626 52%, #db2777 100%);
  min-height: 620px;
  padding: 82px 16px 110px;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.11) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.38;
}

.hero-section::before,
.hero-section::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  filter: blur(40px);
}

.hero-section::before {
  left: -130px;
  top: 80px;
}

.hero-section::after {
  right: -110px;
  bottom: -120px;
}

.hero-slider {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.hero-slide {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.hero-slide.is-active {
  display: flex;
}

.hero-copy {
  max-width: 670px;
  animation: fadeUp 0.55s ease both;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  color: var(--orange);
  background: #fff7ed;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-copy .eyebrow,
.page-hero .eyebrow {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

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

.hero-copy p {
  max-width: 620px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2.4vw, 25px);
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 700;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 24px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: var(--orange);
  background: #fff;
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.24);
}

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

.hero-poster {
  position: relative;
  width: min(380px, 32vw);
  aspect-ratio: 3 / 4.2;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08));
  box-shadow: 0 34px 80px rgba(82, 21, 9, 0.42);
  transform: rotate(2.5deg);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  border-radius: inherit;
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
}

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

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

.hero-search {
  position: relative;
  z-index: 3;
  width: min(840px, calc(100% - 32px));
  margin: 40px auto 0;
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(18px);
}

.hero-search input,
.filter-bar input,
.filter-bar select {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 13px 18px;
  outline: none;
  font-size: 15px;
  background: #fff;
}

.hero-search input {
  flex: 1;
  border: 0;
}

.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 0 28px;
  color: #fff;
  background: #111827;
  font-weight: 800;
  cursor: pointer;
}

.channel-strip,
.section-shell,
.footer-shell,
.rank-inner,
.detail-layout,
.breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.channel-strip {
  position: relative;
  z-index: 4;
  margin-top: -62px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

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

.channel-card {
  display: grid;
  gap: 8px;
  min-height: 160px;
  padding: 22px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.channel-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.16);
}

.channel-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  font-size: 24px;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.channel-card strong {
  font-size: 18px;
}

.channel-card span:last-child {
  color: var(--muted);
  font-size: 13px;
}

.channel-blue .channel-icon,
.channel-card.channel-blue .channel-icon {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.channel-red .channel-icon,
.channel-card.channel-red .channel-icon {
  background: linear-gradient(135deg, #dc2626, #fb7185);
}

.channel-purple .channel-icon,
.channel-card.channel-purple .channel-icon {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.channel-green .channel-icon,
.channel-card.channel-green .channel-icon {
  background: linear-gradient(135deg, #16a34a, #22c55e);
}

.channel-cyan .channel-icon,
.channel-card.channel-cyan .channel-icon {
  background: linear-gradient(135deg, #0891b2, #22d3ee);
}

.channel-slate .channel-icon,
.channel-card.channel-slate .channel-icon {
  background: linear-gradient(135deg, #334155, #64748b);
}

.channel-yellow .channel-icon,
.channel-card.channel-yellow .channel-icon {
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.channel-pink .channel-icon,
.channel-card.channel-pink .channel-icon {
  background: linear-gradient(135deg, #db2777, #fb7185);
}

.channel-indigo .channel-icon,
.channel-card.channel-indigo .channel-icon {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
}

.section-shell {
  padding: 72px 0 0;
}

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

.section-head h2 {
  margin: 12px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-more {
  color: var(--blue);
  font-weight: 800;
}

.section-head.light,
.section-more.light {
  color: #fff;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

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

.movie-card {
  min-width: 0;
}

.poster-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster-link:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.15);
}

.poster-wrap {
  position: relative;
  display: block;
  height: 240px;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #fecdd3);
}

.movie-card-feature .poster-wrap {
  height: 390px;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.04));
}

.cat-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.card-body strong {
  font-size: 18px;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.poster-link:hover strong {
  color: var(--orange);
}

.card-line {
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: #6b7280;
  font-size: 13px;
}

.card-meta em {
  font-style: normal;
}

.rank-panel {
  margin-top: 72px;
  padding: 70px 0;
  color: #fff;
  background: linear-gradient(135deg, #1d4ed8 0%, #0891b2 100%);
}

.rank-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.rank-list a,
.rank-row {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 12px;
  align-items: center;
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
}

.rank-list em,
.rank-row em {
  font-style: normal;
  font-weight: 900;
  color: #fed7aa;
  font-size: 22px;
}

.rank-list span {
  font-weight: 800;
}

.rank-list small {
  display: block;
  color: rgba(255, 255, 255, 0.72);
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #ea580c, #dc2626, #db2777);
}

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

.page-hero h1 {
  margin: 18px auto 14px;
  max-width: 860px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 26px;
  padding: 14px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.filter-bar input {
  flex: 1;
}

.filter-bar select {
  min-width: 150px;
}

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

.rank-row {
  grid-template-columns: 56px 1fr auto;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.rank-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 500;
}

.rank-row b {
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 26px 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--orange);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.9fr);
  gap: 32px;
  align-items: stretch;
  padding: 24px 0 16px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-video,
.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-video {
  object-fit: contain;
  z-index: 1;
}

.player-cover {
  z-index: 2;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #000;
}

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

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
}

.play-round {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--orange);
  background: #fff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
  font-size: 28px;
}

.detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 28px;
  padding: 34px;
  background: #fff;
  box-shadow: var(--shadow);
}

.detail-info h1 {
  margin: 16px 0 14px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.lead-text {
  color: #374151;
  font-size: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.detail-meta span {
  border-radius: 999px;
  padding: 7px 12px;
  color: #374151;
  background: #f3f4f6;
  font-size: 13px;
  font-weight: 700;
}

.detail-copy {
  padding-top: 48px;
}

.detail-copy h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.detail-copy p {
  margin: 0 0 28px;
  color: #374151;
  font-size: 17px;
}

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

.site-footer {
  margin-top: 86px;
  padding: 44px 0;
  color: #cbd5e1;
  background: #111827;
}

.footer-shell {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
}

.footer-logo {
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 8px;
}

.footer-shell p {
  margin: 0;
  max-width: 560px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: flex-end;
}

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

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .main-nav {
    gap: 14px;
    font-size: 14px;
  }

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

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

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

@media (max-width: 860px) {
  .nav-shell {
    height: auto;
    min-height: 68px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 11px 0;
  }

  .hero-section {
    min-height: auto;
    padding-top: 52px;
  }

  .hero-slide.is-active {
    display: grid;
  }

  .hero-poster {
    width: min(100%, 380px);
    margin: 10px auto 0;
    transform: none;
  }

  .hero-search,
  .filter-bar {
    border-radius: 22px;
    flex-direction: column;
  }

  .hero-search button {
    height: 46px;
  }

  .channel-strip,
  .channel-grid.large,
  .feature-grid,
  .rank-list {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .brand-text strong {
    font-size: 17px;
  }

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

  .channel-strip,
  .channel-grid.large,
  .feature-grid,
  .movie-grid,
  .related-grid,
  .rank-list {
    grid-template-columns: 1fr;
  }

  .poster-wrap,
  .movie-card-feature .poster-wrap {
    height: 280px;
  }

  .rank-row {
    grid-template-columns: 44px 1fr;
  }

  .rank-row b {
    grid-column: 2;
  }

  .detail-info {
    padding: 24px;
  }

  .play-round {
    width: 66px;
    height: 66px;
    font-size: 23px;
  }
}
