:root {
  --bg-950: #020617;
  --bg-900: #0f172a;
  --bg-850: #111c33;
  --bg-800: #1e293b;
  --bg-700: #334155;
  --text: #ffffff;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --line: rgba(148, 163, 184, 0.18);
  --cyan: #22d3ee;
  --cyan-strong: #06b6d4;
  --blue: #60a5fa;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, rgba(34, 211, 238, 0.14), transparent 32rem),
    linear-gradient(180deg, var(--bg-950), var(--bg-900) 48%, var(--bg-950));
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);
}

.nav-shell,
.footer-shell,
.content-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.nav-shell {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.35);
  font-size: 15px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--soft);
  font-weight: 600;
}

.desktop-nav a {
  position: relative;
  padding: 26px 0;
  transition: color 0.25s ease;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 18px;
  width: 0;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  transition: width 0.25s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--cyan);
}

.desktop-nav a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 12px;
  background: rgba(51, 65, 85, 0.5);
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  gap: 8px;
  flex-direction: column;
}

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--soft);
  background: rgba(30, 41, 59, 0.55);
}

.mobile-nav.open {
  display: flex;
}

.hero {
  position: relative;
  height: 74vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--bg-950);
}

.hero-track,
.hero-slide,
.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms ease;
}

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-shade {
  background:
    linear-gradient(0deg, var(--bg-950), rgba(2, 6, 23, 0.72) 40%, rgba(2, 6, 23, 0.12)),
    linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.45) 42%, rgba(2, 6, 23, 0.1));
}

.hero-content {
  position: absolute;
  left: max(32px, calc((100% - 1280px) / 2));
  right: 32px;
  bottom: 80px;
  max-width: 760px;
  display: grid;
  gap: 18px;
}

.hero-kicker,
.detail-kicker,
.page-hero span {
  display: inline-flex;
  width: max-content;
  padding: 8px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(6, 182, 212, 0.86);
  border: 1px solid rgba(103, 232, 249, 0.3);
  box-shadow: 0 12px 35px rgba(6, 182, 212, 0.24);
  font-size: 14px;
  font-weight: 700;
}

.hero h1,
.hero h2 {
  margin: 0;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.06em;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.48);
}

.hero p {
  margin: 0;
  color: var(--soft);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.65;
  max-width: 680px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 8px;
}

.primary-btn,
.ghost-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 800;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan-strong), #2563eb);
  box-shadow: 0 18px 42px rgba(6, 182, 212, 0.28);
}

.ghost-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

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

.hero-nav {
  position: absolute;
  top: 50%;
  z-index: 10;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.48);
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-nav:hover {
  background: rgba(0, 0, 0, 0.72);
  transform: translateY(-50%) scale(1.06);
}

.hero-nav.prev {
  left: 28px;
}

.hero-nav.next {
  right: 28px;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.active {
  width: 34px;
  background: var(--cyan-strong);
}

.content-shell {
  padding: 54px 0 70px;
}

.page-main {
  padding-top: 34px;
}

.content-section {
  margin-top: 70px;
}

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

.section-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.heading-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.22);
}

.section-heading h2,
.footer-links h2,
.side-card h2,
.detail-text h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.section-more,
.text-link {
  color: var(--cyan);
}

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

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, 0.72);
  border-radius: var(--radius);
  background: rgba(30, 41, 59, 0.55);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(34, 211, 238, 0.52);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0f172a;
}

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

.movie-card:hover .poster-wrap img,
.category-tile:hover img,
.mini-card:hover img {
  transform: scale(1.08);
}

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), transparent 58%);
}

.card-category,
.card-duration,
.rank-flag,
.poster-play {
  position: absolute;
  z-index: 2;
}

.card-category {
  top: 12px;
  left: 12px;
  max-width: calc(100% - 24px);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.9);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.card-duration {
  right: 12px;
  bottom: 12px;
  padding: 4px 8px;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.72);
  font-size: 12px;
}

.rank-flag {
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  font-weight: 900;
}

.poster-play {
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(6, 182, 212, 0.9);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-body {
  padding: 18px;
}

.card-body h2 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
}

.card-body h2 a {
  transition: color 0.25s ease;
}

.movie-card:hover .card-body h2 a {
  color: var(--cyan);
}

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

.card-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-tags span,
.detail-tags span {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.18);
  font-size: 12px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  color: #64748b;
  font-size: 12px;
}

.filter-panel {
  position: relative;
  z-index: 4;
  display: grid;
  gap: 16px;
  margin-top: -28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.page-main .filter-panel {
  margin-top: 28px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(51, 65, 85, 0.78);
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.56);
}

.search-box span {
  color: var(--cyan);
  font-weight: 800;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
}

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

.filter-buttons button,
.category-pills a {
  border: 1px solid rgba(51, 65, 85, 0.85);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(30, 41, 59, 0.58);
  padding: 9px 14px;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.filter-buttons button.active,
.category-pills a.current,
.filter-buttons button:hover,
.category-pills a:hover {
  color: #ffffff;
  border-color: rgba(34, 211, 238, 0.5);
  background: rgba(6, 182, 212, 0.26);
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
  align-items: start;
}

.rank-list,
.side-list {
  display: grid;
  gap: 14px;
}

.mini-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(51, 65, 85, 0.65);
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.42);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.mini-card:hover {
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(51, 65, 85, 0.42);
}

.mini-card img {
  width: 120px;
  height: 76px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.5s ease;
}

.mini-card strong {
  display: block;
  color: #ffffff;
  line-height: 1.35;
}

.mini-card em {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

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

.category-tile,
.category-overview-card {
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, 0.72);
  border-radius: var(--radius);
  background: rgba(30, 41, 59, 0.48);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.5);
}

.category-tile {
  position: relative;
  min-height: 260px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transition: transform 0.6s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.28));
}

.category-tile span,
.category-tile p {
  position: relative;
  z-index: 2;
}

.category-tile span {
  font-size: 24px;
  font-weight: 900;
}

.category-tile p {
  margin: 10px 0 0;
  color: var(--soft);
  line-height: 1.55;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 56px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 32px;
  background:
    radial-gradient(circle at 80% 10%, rgba(34, 211, 238, 0.18), transparent 22rem),
    linear-gradient(135deg, rgba(30, 41, 59, 0.86), rgba(15, 23, 42, 0.95));
  box-shadow: var(--shadow);
}

.slim-hero {
  padding-block: 48px;
}

.page-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--soft);
  font-size: 18px;
  line-height: 1.7;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.category-overview-card {
  display: grid;
  gap: 18px;
  padding: 18px;
}

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

.category-cover-stack img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
}

.category-overview-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-overview-card p {
  color: var(--muted);
  line-height: 1.65;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
}

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

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

.detail-primary {
  display: grid;
  gap: 24px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 28px;
  background: #000000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.5));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-start span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-strong), #2563eb);
  box-shadow: 0 0 45px rgba(34, 211, 238, 0.42);
  font-size: 26px;
  transform: translateX(3px);
}

.player-card.playing .player-start {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-card,
.side-card {
  border: 1px solid rgba(51, 65, 85, 0.72);
  border-radius: 26px;
  background: rgba(30, 41, 59, 0.5);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.2);
}

.detail-card {
  padding: 32px;
}

.detail-heading h1 {
  margin: 18px 0 12px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.detail-heading p {
  margin: 0;
  color: var(--soft);
  font-size: 18px;
  line-height: 1.7;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0;
}

.detail-meta-grid span {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.52);
  color: var(--soft);
}

.detail-meta-grid strong {
  color: var(--cyan);
  font-size: 12px;
}

.detail-tags {
  margin-bottom: 28px;
}

.detail-text {
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.detail-text p {
  color: var(--soft);
  line-height: 1.85;
  font-size: 16px;
}

.detail-side {
  position: sticky;
  top: 98px;
}

.side-card {
  padding: 22px;
}

.side-card h2 {
  margin-bottom: 18px;
}

.related-section {
  margin-top: 42px;
}

.compact-card .card-body p {
  min-height: auto;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), #020617);
  color: var(--muted);
}

.footer-shell {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 40px;
  padding: 54px 0 36px;
}

.footer-brand p {
  max-width: 380px;
  line-height: 1.7;
}

.footer-logo .brand-name {
  font-size: 20px;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 12px;
}

.footer-links h2 {
  color: #ffffff;
  font-size: 18px;
}

.footer-links a {
  color: var(--muted);
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: var(--cyan);
}

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 34px;
  border-top: 1px solid var(--line);
  color: #64748b;
  font-size: 14px;
}

.searchable-card.hidden-card {
  display: none;
}

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

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

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

  .detail-side {
    position: static;
  }
}

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

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .nav-shell {
    height: 66px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-subtitle {
    display: none;
  }

  .hero {
    height: 78vh;
    min-height: 540px;
  }

  .hero-content {
    left: 20px;
    right: 20px;
    bottom: 68px;
  }

  .hero h1,
  .hero h2 {
    font-size: 42px;
  }

  .hero-nav {
    display: none;
  }

  .content-shell {
    width: min(100% - 24px, 1280px);
    padding-top: 34px;
  }

  .movie-grid,
  .large-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

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

  .filter-panel {
    margin-top: 16px;
  }

  .page-hero,
  .detail-card {
    padding: 26px;
    border-radius: 24px;
  }

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

  .mini-card {
    grid-template-columns: 96px 1fr;
  }

  .mini-card img {
    width: 96px;
    height: 68px;
  }

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

@media (max-width: 440px) {
  .hero-actions {
    flex-direction: column;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }

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