:root {
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(148, 163, 184, 0.18);
  --text: #e5e7eb;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --accent: #f97316;
  --accent-2: #fb7185;
  --blue: #38bdf8;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(249, 115, 22, 0.18), transparent 28rem),
    radial-gradient(circle at 80% 10%, rgba(56, 189, 248, 0.14), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  color: var(--text);
  min-height: 100vh;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.header-inner {
  max-width: 1380px;
  margin: 0 auto;
  min-height: 72px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 14px 40px rgba(249, 115, 22, 0.28);
}
.brand-text {
  font-size: 20px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
}
.main-nav a,
.mobile-nav a {
  color: var(--soft);
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 999px;
  transition: 0.2s ease;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
  background: rgba(148, 163, 184, 0.14);
  color: #fff;
}
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.8);
  color: #fff;
  font-size: 21px;
}
.mobile-nav {
  display: none;
  padding: 0 18px 18px;
  gap: 8px;
  flex-wrap: wrap;
}
.hero {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: #020617;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}
.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.05) contrast(1.08);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.82) 42%, rgba(2, 6, 23, 0.22) 100%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.15), rgba(2, 6, 23, 0.88));
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 790px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px max(28px, calc((100vw - 1320px) / 2)) 96px;
}
.eyebrow {
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 13px;
  font-weight: 800;
}
.hero h1 {
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.96;
  margin: 16px 0 20px;
  letter-spacing: -0.06em;
}
.hero p,
.page-hero p,
.large-feature p,
.detail-info .lead {
  color: var(--soft);
  font-size: 17px;
  line-height: 1.8;
}
.hero-actions,
.detail-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.22s ease;
}
.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 16px 45px rgba(249, 115, 22, 0.28);
}
.btn.ghost {
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.56);
  color: #fff;
  backdrop-filter: blur(12px);
}
.btn:hover {
  transform: translateY(-2px);
}
.hero-tags,
.meta-tags,
.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.hero-tags span,
.meta-tags span,
.movie-tags span {
  border: 1px solid rgba(226, 232, 240, 0.14);
  background: rgba(15, 23, 42, 0.5);
  color: var(--soft);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
}
.hero-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.56);
  padding: 10px 14px;
  border-radius: 999px;
  backdrop-filter: blur(18px);
}
.hero-controls button {
  border: 0;
  color: #fff;
  cursor: pointer;
}
.hero-controls > button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.18);
  font-size: 24px;
  line-height: 1;
}
.hero-dots {
  display: flex;
  gap: 8px;
}
.hero-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  background: rgba(226, 232, 240, 0.38);
}
.hero-dots button.active {
  width: 28px;
  border-radius: 999px;
  background: #fff;
}
.section,
.page-main,
.detail-main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 48px 28px;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.section-head.compact {
  align-items: center;
  margin-bottom: 18px;
}
.section-head h2,
.page-hero h1,
.detail-info h1,
.detail-text h2 {
  margin: 8px 0 0;
  letter-spacing: -0.04em;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
}
.text-link {
  color: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
}
.search-panel {
  margin-top: -36px;
  position: relative;
  z-index: 6;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}
.filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 14px;
}
.filter-row input,
.filter-row select {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.55);
  color: #fff;
  padding: 0 16px;
  outline: none;
}
.sticky-filter {
  position: sticky;
  top: 90px;
  z-index: 8;
  background: rgba(2, 6, 23, 0.82);
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  backdrop-filter: blur(18px);
  margin-bottom: 24px;
}
.movie-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.featured-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.74);
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  transition: 0.24s ease;
}
.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(248, 250, 252, 0.28);
}
.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #0f172a;
}
.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.movie-card:hover img {
  transform: scale(1.06);
}
.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(2, 6, 23, 0.8) 100%);
}
.play-mark {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.92);
  color: #fff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
}
.movie-info {
  padding: 15px;
}
.movie-info h3 {
  margin: 10px 0 8px;
  font-size: 17px;
  line-height: 1.35;
}
.movie-info p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.movie-tags {
  margin-top: 0;
}
.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.9fr);
  gap: 22px;
}
.large-feature,
.rank-panel,
.page-hero,
.detail-hero,
.detail-text,
.next-links,
.category-card a,
.player-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.large-feature {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 26px;
  padding: 24px;
  overflow: hidden;
}
.large-feature img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: 18px;
}
.large-feature h2 {
  font-size: clamp(32px, 4vw, 54px);
  margin: 10px 0 16px;
}
.rank-panel {
  padding: 20px;
}
.rank-list {
  display: grid;
  gap: 10px;
}
.rank-item {
  display: grid;
  grid-template-columns: 42px 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.1);
  transition: 0.2s ease;
}
.rank-item:hover {
  background: rgba(148, 163, 184, 0.12);
}
.rank-num {
  color: #fff;
  font-weight: 900;
  font-size: 18px;
}
.rank-item img {
  width: 58px;
  height: 78px;
  object-fit: cover;
  border-radius: 12px;
}
.rank-main {
  min-width: 0;
}
.rank-main strong,
.rank-main em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rank-main em {
  margin-top: 5px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}
.category-grid,
.category-overview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.category-tile,
.category-card a {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(56, 189, 248, 0.1)),
    rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
  transition: 0.22s ease;
}
.category-tile:hover,
.category-card a:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.3);
}
.category-tile span,
.category-card h2 {
  font-size: 22px;
  font-weight: 900;
  margin: 0;
}
.category-tile em,
.category-card p {
  color: var(--muted);
  font-style: normal;
  line-height: 1.7;
}
.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
}
.page-main,
.detail-main {
  padding-top: 34px;
}
.page-hero {
  padding: clamp(30px, 6vw, 62px);
  margin-bottom: 26px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(56, 189, 248, 0.1)),
    rgba(15, 23, 42, 0.86);
}
.page-hero h1 {
  font-size: clamp(38px, 6vw, 70px);
}
.category-overview {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.category-card span {
  color: #fff;
  font-weight: 800;
}
.rank-list-full {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.breadcrumb {
  display: flex;
  gap: 10px;
  color: var(--muted);
  margin: 10px 0 22px;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--soft);
}
.detail-hero {
  display: grid;
  grid-template-columns: minmax(220px, 330px) minmax(0, 1fr);
  gap: 32px;
  padding: clamp(22px, 4vw, 38px);
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.18), rgba(56, 189, 248, 0.08)),
    rgba(15, 23, 42, 0.82);
}
.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.detail-info h1 {
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
}
.meta-tags {
  margin: 20px 0;
}
.player-section {
  padding: 24px;
}
.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.player-box video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}
.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.15), rgba(2, 6, 23, 0.65));
}
.play-layer span {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  font-size: 30px;
}
.play-layer strong {
  font-size: 18px;
}
.detail-text {
  padding: clamp(24px, 4vw, 42px);
}
.detail-text p {
  color: var(--soft);
  line-height: 2;
  font-size: 16px;
}
.next-links {
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--soft);
}
.next-links a:hover {
  color: #fff;
}
.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.62);
}
.footer-grid {
  max-width: 1320px;
  margin: 0 auto;
  padding: 42px 28px;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 30px;
}
.footer-grid p {
  color: var(--muted);
  line-height: 1.8;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: center;
}
.footer-links a {
  color: var(--soft);
  border: 1px solid var(--line);
  padding: 9px 12px;
  border-radius: 999px;
}
[data-card].is-hidden {
  display: none;
}
@media (max-width: 1180px) {
  .main-nav a:nth-last-child(-n+4) {
    display: none;
  }
  .movie-grid,
  .featured-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .split-section,
  .large-feature {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 820px) {
  .header-inner {
    padding: 0 18px;
  }
  .main-nav {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .mobile-nav.is-open {
    display: flex;
  }
  .hero {
    min-height: 620px;
    height: 74vh;
  }
  .hero-content {
    padding: 60px 22px 104px;
    justify-content: flex-end;
  }
  .section,
  .page-main,
  .detail-main {
    padding-left: 18px;
    padding-right: 18px;
  }
  .filter-row,
  .detail-hero,
  .footer-grid,
  .rank-list-full,
  .category-overview {
    grid-template-columns: 1fr;
  }
  .movie-grid,
  .featured-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-hero,
  .next-links {
    display: block;
  }
  .next-links a {
    display: block;
    padding: 8px 0;
  }
}
@media (max-width: 520px) {
  .movie-grid,
  .featured-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }
  .hero h1,
  .detail-info h1,
  .page-hero h1 {
    font-size: 38px;
  }
  .brand-text {
    font-size: 18px;
  }
  .hero-controls {
    width: calc(100% - 36px);
    justify-content: space-between;
  }
}
