:root {
  --bg: #f7f7fb;
  --paper: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(17, 24, 39, 0.1);
  --orange: #ea580c;
  --amber: #f59e0b;
  --rose: #f97316;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #fff7ed 0, var(--bg) 420px, #f9fafb 100%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.06);
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 22px;
  color: #111827;
  letter-spacing: 0.01em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 12px 26px rgba(234, 88, 12, 0.32);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav > a,
.nav-drop > button,
.nav-drop-panel a {
  border: 0;
  background: transparent;
  font: inherit;
  color: #374151;
  cursor: pointer;
}

.main-nav > a,
.nav-drop > button {
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.main-nav > a:hover,
.main-nav > a.active,
.nav-drop:hover > button {
  background: #fff7ed;
  color: var(--orange);
  transform: translateY(-1px);
}

.nav-drop {
  position: relative;
}

.nav-drop-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 220px;
  display: none;
  padding: 12px;
  border: 1px solid rgba(234, 88, 12, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.nav-drop:hover .nav-drop-panel {
  display: grid;
  gap: 4px;
}

.nav-drop-panel a {
  padding: 8px 10px;
  border-radius: 12px;
}

.nav-drop-panel a:hover {
  background: #fff7ed;
  color: var(--orange);
}

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

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--orange);
}

.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: linear-gradient(120deg, #c2410c, #f59e0b 54%, #fb923c);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(4px);
  opacity: 0.36;
  pointer-events: none;
}

.hero::before {
  width: 460px;
  height: 460px;
  right: -130px;
  top: -120px;
  background: rgba(255, 255, 255, 0.5);
}

.hero::after {
  width: 360px;
  height: 360px;
  left: -90px;
  bottom: -150px;
  background: rgba(255, 255, 255, 0.34);
}

.hero-stage {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 560px;
  margin: 0 auto;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.72fr);
  gap: 42px;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease, visibility 0.55s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hero-copy {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 60px 0;
}

.kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff7ed;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 14px 0 16px;
  max-width: 760px;
  font-size: clamp(40px, 6vw, 74px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.hero-copy p {
  margin: 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
}

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

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

.btn {
  color: var(--orange);
  background: #fff;
  box-shadow: 0 16px 32px rgba(124, 45, 18, 0.24);
}

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

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
}

.btn-dark {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.24);
}

.hero-card {
  position: relative;
  z-index: 1;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.18);
  padding: 16px;
  box-shadow: 0 30px 70px rgba(67, 20, 7, 0.28);
  backdrop-filter: blur(14px);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.26);
}

.hero-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.hero-card-meta span,
.meta-pill,
.tag-row span,
.filter-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-card-meta span {
  color: #7c2d12;
  background: #fff;
  padding: 7px 12px;
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: 42px;
  z-index: 4;
  display: flex;
  gap: 10px;
}

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

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

.wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 120px;
  background: linear-gradient(0deg, var(--bg), rgba(247, 247, 251, 0));
}

.section {
  padding: 58px 0;
}

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

.section-head h2,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  color: #111827;
  letter-spacing: -0.03em;
}

.section-head h2 {
  font-size: clamp(26px, 4vw, 40px);
}

.section-head p,
.page-hero p,
.detail-title p {
  color: var(--muted);
  margin: 8px 0 0;
}

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

.movie-card {
  min-width: 0;
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
  box-shadow: var(--soft-shadow);
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #fdba74);
}

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

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

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

.quality,
.poster-meta,
.rank-num {
  position: absolute;
  z-index: 2;
}

.quality {
  top: 12px;
  right: 12px;
  color: #fff;
  background: rgba(234, 88, 12, 0.94);
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.poster-meta {
  left: 12px;
  bottom: 12px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 13px;
  font-weight: 800;
}

.rank-num {
  top: 12px;
  left: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #f97316);
  border-radius: 12px;
  font-style: normal;
  font-weight: 900;
}

.movie-info {
  padding: 16px;
}

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

.movie-info h3 a:hover {
  color: var(--orange);
}

.movie-info p {
  display: -webkit-box;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span,
.meta-pill {
  color: #9a3412;
  background: #fff7ed;
  padding: 4px 9px;
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.card-bottom strong {
  color: var(--orange);
  font-size: 16px;
}

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

.channel-card {
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff, #fff7ed);
  border: 1px solid rgba(234, 88, 12, 0.1);
  box-shadow: var(--soft-shadow);
}

.channel-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.channel-card span,
.channel-card p {
  color: var(--muted);
  font-size: 14px;
}

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

.rank-list,
.side-box,
.info-box,
.search-panel,
.page-hero {
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
}

.rank-list {
  padding: 8px;
}

.rank-item {
  display: grid;
  grid-template-columns: 64px 120px minmax(0, 1fr) 100px;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  transition: background 0.2s ease;
}

.rank-item:hover {
  background: #fff7ed;
}

.rank-index {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #fff;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  font-weight: 900;
}

.rank-item img {
  width: 120px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 16px;
}

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

.rank-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.rank-score {
  color: var(--orange);
  text-align: right;
  font-weight: 900;
}

.side-box {
  padding: 20px;
}

.side-box h3,
.info-box h2 {
  margin: 0 0 16px;
}

.compact-link {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
}

.compact-link:hover {
  background: #fff7ed;
}

.compact-link img {
  width: 82px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
}

.compact-link strong,
.compact-link em {
  display: block;
}

.compact-link em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.page-hero {
  margin: 34px auto 0;
  padding: 38px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 247, 237, 0.95));
  border: 1px solid rgba(234, 88, 12, 0.1);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  margin-bottom: 14px;
  font-size: 14px;
}

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

.search-panel {
  padding: 20px;
  margin: 24px 0;
}

.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.search-form input {
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0 16px;
  font: inherit;
  background: #fff;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.filter-chip {
  border: 1px solid rgba(234, 88, 12, 0.18);
  color: #9a3412;
  background: #fff7ed;
  padding: 7px 12px;
  cursor: pointer;
}

.filter-chip.is-active {
  color: #fff;
  background: var(--orange);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.pagination a {
  min-width: 42px;
  text-align: center;
  padding: 9px 13px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--soft-shadow);
  font-weight: 800;
}

.pagination a.current,
.pagination a:hover {
  color: #fff;
  background: var(--orange);
}

.detail-hero {
  padding: 34px 0 0;
}

.detail-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: end;
  margin-bottom: 24px;
}

.detail-title h1 {
  font-size: clamp(32px, 5vw, 58px);
}

.detail-cover {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow);
}

.player-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.14), rgba(15, 23, 42, 0.72));
  cursor: pointer;
  z-index: 3;
}

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

.play-button {
  display: inline-grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 18px 36px rgba(234, 88, 12, 0.36);
  cursor: pointer;
  font-size: 28px;
}

.info-box {
  margin-top: 24px;
  padding: 26px;
}

.info-box p {
  color: #374151;
}

.meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 8px;
}

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

.site-footer {
  margin-top: 60px;
  padding: 44px 0;
  color: #6b7280;
  background: #111827;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.4fr;
  gap: 24px;
}

.footer-inner strong {
  color: #fff;
  font-size: 22px;
}

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

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

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

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

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

  .hero-card {
    display: none;
  }

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

  .rank-item {
    grid-template-columns: 46px 92px minmax(0, 1fr);
  }

  .rank-score {
    display: none;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
  }

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

  .nav-drop-panel {
    position: static;
    display: grid;
    width: 100%;
    box-shadow: none;
  }

  .hero,
  .hero-stage {
    min-height: 620px;
  }

  .hero-slide {
    align-items: start;
    padding-top: 38px;
  }

  .hero-dots {
    bottom: 82px;
  }

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

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

  .search-form {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 26px;
  }

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