:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --pink: #ec4899;
  --yellow: #facc15;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(249, 115, 22, 0.16);
  --paper: rgba(255, 255, 255, 0.92);
  --shadow: 0 22px 45px rgba(249, 115, 22, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(251, 146, 60, 0.22), transparent 32rem),
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.2), transparent 34rem),
    linear-gradient(135deg, #fff7ed 0%, #fdf2f8 48%, #fefce8 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(251, 146, 60, 0.16);
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.08);
  backdrop-filter: blur(16px);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 12px 26px rgba(236, 72, 153, 0.22);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 24px;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, var(--orange-dark), var(--pink), #eab308);
  -webkit-background-clip: text;
  color: transparent;
}

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

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

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  color: #4b5563;
  font-weight: 700;
  border-radius: 14px;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--orange-dark);
  background: rgba(255, 237, 213, 0.95);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  border-radius: 14px;
  background: #fff7ed;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--orange-dark);
  border-radius: 999px;
}

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

.mobile-nav.open {
  display: grid;
  gap: 8px;
}

.hero {
  position: relative;
  min-height: 670px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  background-image:
    linear-gradient(110deg, rgba(17, 24, 39, 0.78) 0%, rgba(124, 45, 18, 0.62) 44%, rgba(236, 72, 153, 0.38) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(250, 204, 21, 0.26), transparent 24rem),
    radial-gradient(circle at 80% 30%, rgba(236, 72, 153, 0.22), transparent 28rem),
    linear-gradient(180deg, transparent 58%, rgba(255, 247, 237, 0.95) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(290px, 0.58fr);
  align-items: center;
  gap: 42px;
  max-width: 1280px;
  min-height: 670px;
  margin: 0 auto;
  padding: 72px 22px 92px;
  color: #fff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 8px 14px;
  color: #fff7ed;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

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

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

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

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 16px 30px rgba(236, 72, 153, 0.26);
}

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

.hero-cover {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.34);
  transform: rotate(2deg);
}

.hero-cover img {
  width: 100%;
  aspect-ratio: 2 / 2.7;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.6), rgba(236, 72, 153, 0.6));
}

.hero-cover-caption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(17, 24, 39, 0.58);
  backdrop-filter: blur(14px);
}

.hero-cover-caption strong {
  display: block;
  font-size: 20px;
}

.hero-cover-caption small {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.74);
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 34px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

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

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

.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 54px 22px 0;
}

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

.section-title {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.section-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.text-link {
  color: var(--orange-dark);
  font-weight: 900;
}

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

.channel-card {
  min-height: 152px;
  padding: 22px;
  color: #fff;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: var(--shadow);
  transition: 0.2s ease;
}

.channel-card:hover {
  transform: translateY(-4px);
}

.channel-card strong {
  display: block;
  font-size: 24px;
}

.channel-card small {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.tone-pink { background: linear-gradient(135deg, #fb7185, #ec4899); }
.tone-yellow { background: linear-gradient(135deg, #f59e0b, #f97316); }
.tone-rose { background: linear-gradient(135deg, #f43f5e, #fb923c); }
.tone-amber { background: linear-gradient(135deg, #d97706, #fbbf24); }
.tone-violet { background: linear-gradient(135deg, #7c3aed, #ec4899); }
.tone-fuchsia { background: linear-gradient(135deg, #c026d3, #fb7185); }
.tone-red { background: linear-gradient(135deg, #dc2626, #f97316); }
.tone-lime { background: linear-gradient(135deg, #65a30d, #f59e0b); }
.tone-sky { background: linear-gradient(135deg, #0284c7, #8b5cf6); }

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 20px 42px rgba(249, 115, 22, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 55px rgba(236, 72, 153, 0.16);
}

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.38), rgba(236, 72, 153, 0.38));
}

.poster img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.quality,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.74);
  backdrop-filter: blur(10px);
}

.quality {
  right: 12px;
  bottom: 12px;
}

.rank-badge {
  top: 12px;
  left: 12px;
  min-width: 34px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
}

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

.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 26px;
}

.movie-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  background: #ffedd5;
}

.movie-card h2 {
  margin: 12px 0 8px;
  font-size: 20px;
  line-height: 1.35;
}

.movie-card h2 a:hover {
  color: var(--orange-dark);
}

.movie-card p {
  display: -webkit-box;
  min-height: 56px;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  color: #9a3412;
  font-size: 13px;
  font-weight: 800;
}

.hot-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
}

.hot-feature {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.72), rgba(236, 72, 153, 0.54)), var(--feature-image);
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.hot-feature-content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 34px;
  color: #fff;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.82), transparent);
}

.hot-feature-content h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 48px);
}

.hot-feature-content p {
  max-width: 760px;
  margin: 14px 0 22px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.8;
}

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

.hot-item {
  display: grid;
  grid-template-columns: auto 84px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 30px rgba(249, 115, 22, 0.09);
}

.hot-item:hover strong {
  color: var(--orange-dark);
}

.list-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #fff;
  font-weight: 900;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
}

.hot-item img {
  width: 84px;
  height: 58px;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.38), rgba(236, 72, 153, 0.38));
}

.hot-item strong,
.hot-item small {
  display: block;
}

.hot-item strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hot-item small {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.page-hero {
  padding: 76px 22px 58px;
  color: #fff;
  background:
    radial-gradient(circle at 20% 20%, rgba(250, 204, 21, 0.26), transparent 28rem),
    linear-gradient(135deg, #f97316, #ec4899 58%, #f59e0b);
}

.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.page-hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 800px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 160px 160px 160px;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 36px rgba(249, 115, 22, 0.08);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  color: #374151;
  border: 1px solid rgba(249, 115, 22, 0.18);
  border-radius: 14px;
  outline: none;
  background: #fff;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  color: #9a3412;
  font-size: 14px;
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
}

.detail-main,
.detail-side {
  min-width: 0;
}

.player-shell {
  overflow: hidden;
  border-radius: 32px;
  background: #111827;
  box-shadow: 0 28px 65px rgba(17, 24, 39, 0.22);
}

.player-box {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.62), rgba(236, 72, 153, 0.34)),
    var(--poster-image);
  background-position: center;
  background-size: cover;
  cursor: pointer;
}

.player-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.36), rgba(17, 24, 39, 0.14));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-box.is-playing .player-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  color: #fff;
  font-size: 34px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 20px 45px rgba(236, 72, 153, 0.34);
}

.player-caption {
  padding: 18px 22px 22px;
  color: #f9fafb;
}

.player-caption strong {
  display: block;
  font-size: 22px;
}

.player-caption small {
  display: block;
  margin-top: 8px;
  color: rgba(249, 250, 251, 0.72);
}

.content-card {
  margin-top: 22px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 18px 38px rgba(249, 115, 22, 0.1);
}

.content-card:first-child {
  margin-top: 0;
}

.content-card h1,
.content-card h2,
.content-card h3 {
  margin: 0 0 14px;
  letter-spacing: -0.03em;
}

.content-card h1 {
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.08;
}

.content-card h2 {
  font-size: 26px;
}

.content-card p {
  margin: 0;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.9;
}

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

.info-pill {
  padding: 13px 14px;
  border-radius: 18px;
  background: #fff7ed;
}

.info-pill small,
.info-pill strong {
  display: block;
}

.info-pill small {
  color: var(--muted);
  font-size: 12px;
}

.info-pill strong {
  margin-top: 4px;
  color: #9a3412;
}

.side-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 38px rgba(249, 115, 22, 0.1);
}

.side-card.sticky {
  position: sticky;
  top: 96px;
}

.side-card h2 {
  margin: 0 0 16px;
}

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

.related-list .hot-item {
  grid-template-columns: 86px minmax(0, 1fr);
}

.related-list .hot-item img {
  width: 86px;
  height: 60px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  background: #fff;
  color: #9a3412;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.1);
}

.pagination .current {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
}

.site-footer {
  margin-top: 76px;
  color: #fff;
  background: linear-gradient(100deg, #ea580c, #db2777 54%, #ca8a04);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 0.8fr;
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 22px;
}

.brand-footer .brand-text strong,
.brand-footer .brand-text small {
  color: #fff;
  background: none;
  -webkit-background-clip: initial;
}

.footer-brand p {
  max-width: 460px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
}

.footer-links h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

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

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

.footer-link-grid a {
  color: rgba(255, 255, 255, 0.78);
}

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

.footer-bottom {
  padding: 18px 22px;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.empty-state {
  display: none;
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(249, 115, 22, 0.34);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.62);
}

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

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

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

  .menu-toggle {
    display: block;
  }

  .hero,
  .hero-inner {
    min-height: 760px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 50px;
  }

  .hero-cover {
    max-width: 300px;
    margin: 0 auto;
  }

  .section-header,
  .footer-inner {
    display: block;
  }

  .section-header .text-link {
    display: inline-flex;
    margin-top: 14px;
  }

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

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

  .footer-links {
    margin-top: 28px;
  }
}

@media (max-width: 560px) {
  .site-header-inner {
    padding: 14px 16px;
  }

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

  .hero,
  .hero-inner {
    min-height: 720px;
  }

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

  .hero p {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
  }

  .section {
    padding-right: 16px;
    padding-left: 16px;
  }

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

  .hot-item {
    grid-template-columns: auto 76px minmax(0, 1fr);
  }

  .related-list .hot-item {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .content-card {
    padding: 20px;
  }
}
