:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --text: #111827;
  --muted: #64748b;
  --soft: #f1f5f9;
  --line: #e2e8f0;
  --accent: #f97316;
  --accent-strong: #ea580c;
  --accent-soft: #fff7ed;
  --dark: #111827;
  --dark-2: #1f2937;
  --radius: 22px;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #111827, #f97316);
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(18px);
}

.nav-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #fb923c, #ef4444);
  color: #fff;
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.28);
}

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

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

.nav-link,
.nav-drop-button {
  border: 0;
  background: transparent;
  padding: 9px 13px;
  color: #334155;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-drop-button:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.nav-dropdown {
  position: relative;
}

.drop-panel {
  position: absolute;
  top: 42px;
  left: 0;
  min-width: 180px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: none;
}

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

.drop-panel a {
  padding: 9px 12px;
  border-radius: 12px;
  color: #475569;
  font-weight: 650;
}

.drop-panel a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.header-search input,
.hero-search-card input,
.filters input,
.mobile-panel input {
  border: 0;
  outline: 0;
  background: transparent;
  min-width: 210px;
  padding: 9px 12px;
  color: var(--text);
}

.header-search button,
.hero-search-card button {
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  color: #fff;
  background: var(--accent);
  font-weight: 800;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--soft);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 99px;
}

.mobile-panel {
  display: none;
  padding: 10px 22px 18px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.mobile-panel a {
  display: block;
  padding: 12px 0;
  color: #334155;
  font-weight: 750;
}

.mobile-panel form {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

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

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

.hero-slides,
.hero-slide,
.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 42px;
  padding: 108px max(22px, calc((100vw - 1280px) / 2 + 22px)) 170px;
}

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

.hero-bg {
  background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.98), rgba(17, 24, 39, 0.72), rgba(249, 115, 22, 0.18)), var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.1);
  transform: scale(1.04);
}

.hero-content,
.hero-poster,
.detail-shell,
.page-hero > div {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 14px;
  color: #fb923c;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-content h2 {
  margin: 22px 0 12px;
  font-size: clamp(26px, 4vw, 44px);
}

.hero-content p,
.page-hero p,
.lead-text {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

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

.hero-tags span,
.tag-row span {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.12);
  color: #fb923c;
  font-size: 12px;
  font-weight: 800;
}

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

.primary-button,
.ghost-button,
.section-more {
  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, background 0.2s ease;
}

.primary-button {
  min-height: 48px;
  padding: 0 24px;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.34);
}

.ghost-button {
  min-height: 48px;
  padding: 0 24px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
}

.primary-button:hover,
.ghost-button:hover,
.section-more:hover,
.movie-card:hover,
.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-3px);
}

.hero-poster {
  height: 500px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 78px;
  height: 78px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(249, 115, 22, 0.92);
  font-size: 30px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.hero-search-card {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 34px;
  width: min(960px, calc(100% - 44px));
  transform: translateX(-50%);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.hero-search-card h2 {
  margin: 0 0 12px;
}

.hero-search-card form {
  display: flex;
  gap: 10px;
  padding: 6px;
  border-radius: 999px;
  background: #fff;
}

.hero-search-card input {
  flex: 1;
  min-width: 0;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.quick-links a {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-weight: 800;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  right: max(22px, calc((100vw - 1280px) / 2 + 22px));
  bottom: 54px;
  display: flex;
  gap: 8px;
}

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

.hero-dot.is-active {
  width: 34px;
  background: var(--accent);
}

.section,
.dark-section,
.page-hero,
.detail-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 22px;
}

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

.section-head h2 {
  margin: 0 0 6px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.section-more {
  min-width: max-content;
  padding: 11px 18px;
  color: var(--accent);
  background: var(--accent-soft);
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.9);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  box-shadow: var(--shadow);
}

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

.movie-card img,
.category-card img,
.category-overview-card img,
.rank-cover img,
.poster-panel img {
  transition: transform 0.5s ease;
}

.movie-card:hover img,
.category-card:hover img,
.category-overview-card:hover img,
.rank-row:hover img {
  transform: scale(1.08);
}

.duration,
.rank-badge {
  position: absolute;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.duration {
  right: 10px;
  bottom: 10px;
  padding: 4px 8px;
  background: rgba(15, 23, 42, 0.76);
}

.rank-badge {
  left: 10px;
  top: 10px;
  padding: 5px 9px;
  background: var(--accent);
}

.play-hover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 30px;
  opacity: 0;
  background: rgba(15, 23, 42, 0.35);
  transition: opacity 0.2s ease;
}

.movie-card:hover .play-hover {
  opacity: 1;
}

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

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

.movie-card h3 a:hover {
  color: var(--accent);
}

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

.movie-meta,
.rank-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

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

.category-card {
  position: relative;
  min-height: 172px;
  overflow: hidden;
  border-radius: 24px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  color: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
  transition: transform 0.2s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.86));
}

.category-card img {
  position: absolute;
  inset: 0;
}

.category-card span,
.category-card small {
  position: relative;
  z-index: 1;
}

.category-card span {
  font-size: 22px;
  font-weight: 900;
}

.category-card small {
  display: -webkit-box;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.84);
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.dark-section {
  max-width: none;
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.28), transparent 35%), linear-gradient(135deg, #111827, #1f2937 55%, #111827);
  color: #fff;
  padding-left: max(22px, calc((100vw - 1280px) / 2 + 22px));
  padding-right: max(22px, calc((100vw - 1280px) / 2 + 22px));
}

.slim-dark {
  padding-top: 50px;
  padding-bottom: 50px;
}

.dark-head p {
  color: #cbd5e1;
}

.dark-head .section-more {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.rank-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 16px;
}

.rank-cover b {
  position: absolute;
  left: 9px;
  top: 9px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
}

.rank-info h3 {
  margin: 8px 0 6px;
  color: #fff;
  font-size: 19px;
}

.rank-info p {
  display: -webkit-box;
  margin: 0 0 12px;
  color: #cbd5e1;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page-hero {
  min-height: 360px;
  display: flex;
  align-items: center;
  max-width: none;
  padding-left: max(22px, calc((100vw - 1280px) / 2 + 22px));
  padding-right: max(22px, calc((100vw - 1280px) / 2 + 22px));
  color: #fff;
  background: radial-gradient(circle at 15% 15%, rgba(249, 115, 22, 0.34), transparent 32%), linear-gradient(135deg, #111827, #1f2937);
}

.compact-hero {
  min-height: 320px;
}

.channel-hero {
  min-height: 420px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 18px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-overview-card img {
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  overflow: hidden;
}

.category-overview-card h2 {
  margin: 8px 0;
}

.category-overview-card p {
  color: var(--muted);
  margin: 0 0 12px;
}

.category-overview-card strong {
  color: var(--accent);
}

.filters {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
  padding: 16px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.filters input {
  width: 100%;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 999px;
  background: var(--soft);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--soft);
  color: #475569;
  font-weight: 850;
  cursor: pointer;
}

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

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #111827;
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.98), rgba(17, 24, 39, 0.76), rgba(249, 115, 22, 0.16)), var(--detail-image);
  background-position: center;
  background-size: cover;
  filter: blur(2px) saturate(1.1);
  transform: scale(1.04);
}

.breadcrumb {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 750;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
}

.poster-panel {
  aspect-ratio: 3 / 4;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
}

.detail-meta {
  margin: 22px 0;
  color: rgba(255, 255, 255, 0.78);
}

.detail-section {
  padding-top: 50px;
  padding-bottom: 38px;
}

.player-card {
  overflow: hidden;
  border-radius: 30px;
  background: #0f172a;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
}

.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.video-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.42));
  cursor: pointer;
  z-index: 2;
}

.play-layer span {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font-size: 34px;
  box-shadow: 0 18px 44px rgba(249, 115, 22, 0.36);
}

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

.player-title {
  padding: 20px 24px 24px;
  color: #fff;
}

.player-title h2 {
  margin: 0 0 8px;
}

.player-title p {
  margin: 0;
  color: #cbd5e1;
}

.article-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  padding-top: 20px;
}

.content-card,
.side-card {
  padding: 26px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.content-card h2,
.side-card h2 {
  margin: 0 0 12px;
}

.content-card p {
  margin: 0 0 24px;
  color: #334155;
  font-size: 17px;
}

.side-card dl {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px 14px;
  margin: 0;
}

.side-card dt {
  color: var(--muted);
  font-weight: 850;
}

.side-card dd {
  margin: 0;
  color: var(--text);
}

.site-footer {
  margin-top: 40px;
  padding: 46px 22px;
  background: #0f172a;
  color: #cbd5e1;
}

.footer-shell {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2fr;
  gap: 32px;
}

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

.footer-shell p {
  color: #94a3b8;
}

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

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

.footer-links a:hover {
  background: rgba(249, 115, 22, 0.24);
  color: #fff;
}

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

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

  .hero-slide {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

@media (max-width: 900px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .hero-carousel {
    min-height: 780px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    padding-top: 90px;
    padding-bottom: 220px;
  }

  .hero-poster {
    display: none;
  }

  .hero-dots {
    left: 22px;
    right: auto;
    bottom: 28px;
  }

  .section-head,
  .footer-shell {
    grid-template-columns: 1fr;
    display: grid;
    align-items: start;
  }

  .rank-grid,
  .category-overview-grid,
  .article-section,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .poster-panel {
    max-width: 320px;
  }

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

@media (max-width: 640px) {
  .nav-shell,
  .section,
  .dark-section,
  .page-hero,
  .detail-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-content h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 34px;
  }

  .hero-content p,
  .page-hero p,
  .lead-text {
    font-size: 16px;
  }

  .hero-search-card form {
    display: grid;
    border-radius: 22px;
  }

  .movie-grid,
  .compact-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

  .movie-card h3 {
    font-size: 16px;
  }

  .rank-row,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .rank-cover {
    aspect-ratio: 16 / 9;
  }

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