:root {
  --bg: #0f172a;
  --bg-soft: #111827;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-solid: #111827;
  --line: rgba(148, 163, 184, 0.22);
  --text: #e5e7eb;
  --muted: #94a3b8;
  --blue: #3b82f6;
  --blue-dark: #1d4ed8;
  --cyan: #22d3ee;
  --yellow: #fbbf24;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.25), transparent 32rem), var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.site-header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.38);
}

.brand-text strong,
.footer-brand {
  display: block;
  font-size: 20px;
  line-height: 1.1;
  color: #fff;
  letter-spacing: 0.02em;
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 600;
}

.desktop-nav a,
.mobile-nav a,
.footer-links a,
.inline-links a {
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px 18px;
  border-top: 1px solid var(--line);
}

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.home-hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: linear-gradient(135deg, #020617, #172554 48%, #0f172a);
}

.hero-slides,
.hero-slide {
  position: relative;
  min-height: 680px;
}

.hero-slide {
  display: none;
  isolation: isolate;
}

.hero-slide.is-active {
  display: block;
}

.hero-background,
.detail-bg,
.category-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  transform: scale(1.05);
  filter: saturate(1.12) contrast(1.04);
}

.hero-overlay,
.detail-bg-shade,
.page-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(15, 23, 42, 0.75) 48%, rgba(15, 23, 42, 0.25) 100%),
    radial-gradient(circle at 80% 15%, rgba(34, 211, 238, 0.28), transparent 22rem);
  z-index: -1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 360px;
  align-items: center;
  gap: 52px;
  padding: 72px 0 96px;
}

.hero-copy {
  max-width: 760px;
}

.hero-eyebrow,
.page-hero span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--cyan);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2,
.simple-hero h1,
.category-hero h1,
.detail-copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy h3 {
  margin: 18px 0 0;
  color: #dbeafe;
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 800;
}

.hero-copy p,
.simple-hero p,
.category-hero p,
.detail-one-line {
  margin: 22px 0 0;
  max-width: 720px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.22);
  font-size: 13px;
  font-weight: 700;
}

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

.primary-button,
.ghost-button,
.text-button,
.search-form button,
.row-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-height: 46px;
  padding: 0 22px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.primary-button,
.search-form button,
.row-play {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.35);
}

.ghost-button {
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.text-button {
  color: var(--cyan);
}

.primary-button:hover,
.ghost-button:hover,
.text-button:hover,
.search-form button:hover,
.row-play:hover {
  transform: translateY(-2px);
}

.hero-poster-card {
  position: relative;
  display: block;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow);
}

.hero-poster-card img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.hero-poster-card span,
.poster-play {
  position: absolute;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  color: #fff;
  background: rgba(59, 130, 246, 0.92);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.32);
}

.hero-poster-card span {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.hero-poster-card:hover img,
.movie-card:hover img,
.rank-card:hover img,
.category-tile:hover img {
  transform: scale(1.06);
}

.hero-control-bar {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(18px);
}

.hero-control-bar button {
  color: #fff;
}

.hero-control-bar > button {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 28px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
}

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

.search-strip {
  position: relative;
  z-index: 8;
  margin-top: -34px;
}

.search-strip .container,
.filter-panel {
  border-radius: 24px;
  padding: 18px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.search-form {
  display: flex;
  gap: 12px;
}

.search-form input,
.filter-panel input {
  width: 100%;
  min-height: 50px;
  border-radius: 999px;
  padding: 0 20px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  outline: none;
}

.search-form input:focus,
.filter-panel input:focus {
  border-color: rgba(34, 211, 238, 0.72);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.1);
}

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

.quick-links a {
  border-radius: 999px;
  padding: 8px 14px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
}

.content-section {
  padding: 72px 0;
}

.section-dark {
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.3), rgba(15, 23, 42, 0.75));
}

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

.section-heading h2,
.story-card h2,
.ranking-info h2,
.category-directory-card h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading p,
.story-card p,
.category-directory-card p,
.ranking-info p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-link {
  color: var(--cyan);
  font-weight: 800;
}

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

.category-tile {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: 24px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--line);
  background: var(--panel-solid);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

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

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

.category-tile span,
.category-tile em {
  position: relative;
  z-index: 1;
}

.category-tile span {
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.category-tile em {
  margin-top: 8px;
  color: #cbd5e1;
  font-style: normal;
  line-height: 1.6;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.42);
  background: rgba(15, 23, 42, 0.95);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #111827;
}

.movie-poster img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-type,
.movie-year {
  position: absolute;
  top: 10px;
  border-radius: 999px;
  padding: 5px 9px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
}

.movie-type {
  left: 10px;
}

.movie-year {
  right: 10px;
}

.poster-play {
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

.movie-card h3 {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.ranking-info h2 a:hover,
.category-directory-card h2 a:hover {
  color: var(--cyan);
}

.movie-card p {
  min-height: 54px;
  margin: 8px 0 0;
  color: #aebbd0;
  font-size: 13px;
  line-height: 1.55;
}

.movie-meta {
  margin-top: 10px;
  color: #7dd3fc;
  font-size: 12px;
  line-height: 1.4;
}

.tag-row {
  margin-top: 10px;
}

.tag-row span {
  padding: 4px 8px;
  font-size: 11px;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 48px 74px 1fr;
  align-items: center;
  gap: 14px;
  border-radius: 20px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.rank-card strong {
  color: var(--yellow);
  font-size: 26px;
  font-weight: 900;
}

.rank-card img {
  height: 96px;
  border-radius: 14px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.rank-card span,
.rank-card small {
  display: block;
}

.rank-card span {
  color: #fff;
  font-weight: 900;
  line-height: 1.35;
}

.rank-card small {
  margin-top: 8px;
  color: var(--muted);
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, #020617, #172554 55%, #0f172a);
}

.simple-hero {
  padding: 92px 0;
}

.category-hero {
  padding: 110px 0;
}

.page-hero .container,
.detail-hero .container {
  position: relative;
  z-index: 2;
}

.filter-panel {
  margin-bottom: 26px;
}

.large-filter {
  padding: 22px;
}

.category-directory {
  display: grid;
  gap: 18px;
}

.category-directory-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: center;
  padding: 18px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
}

.category-cover {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 16 / 10;
}

.category-cover img {
  height: 100%;
  object-fit: cover;
}

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

.inline-links a {
  border-radius: 999px;
  padding: 7px 12px;
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.13);
}

.ranking-list {
  display: grid;
  gap: 14px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 68px 92px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
}

.ranking-number {
  color: var(--yellow);
  font-size: 28px;
  font-weight: 900;
  text-align: center;
}

.ranking-thumb {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 2 / 3;
}

.ranking-thumb img {
  height: 100%;
  object-fit: cover;
}

.ranking-info h2 {
  font-size: 22px;
}

.detail-hero {
  min-height: 620px;
  padding: 40px 0 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 18px 0 34px;
  color: #cbd5e1;
  font-size: 14px;
}

.breadcrumb a {
  color: #bfdbfe;
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 44px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 2 / 3;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
}

.detail-poster img {
  height: 100%;
  object-fit: cover;
}

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

.detail-meta-grid span {
  border-radius: 16px;
  padding: 12px 14px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-meta-grid b {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}

.player-section {
  padding-top: 64px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-mask {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.64));
}

.player-mask span {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  color: #fff;
  font-size: 34px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
}

.player-mask.is-hidden {
  display: none;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.story-card {
  border-radius: 24px;
  padding: 28px;
  background: rgba(15, 23, 42, 0.74);
  border: 1px solid var(--line);
}

.story-card p {
  color: #cbd5e1;
  font-size: 16px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #020617;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
  color: var(--muted);
}

.footer-inner p {
  max-width: 460px;
  margin: 12px 0 0;
  line-height: 1.8;
}

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

.footer-links a {
  color: #cbd5e1;
}

[data-movie-card].is-hidden {
  display: none;
}

@media (max-width: 1120px) {
  .desktop-nav {
    gap: 12px;
    font-size: 13px;
  }

  .movie-grid,
  .wide-grid,
  .related-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

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

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

  .home-hero,
  .hero-slides,
  .hero-slide {
    min-height: 780px;
  }

  .hero-inner,
  .detail-layout,
  .detail-content-grid,
  .footer-inner,
  .category-directory-card {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    gap: 28px;
    padding-top: 58px;
  }

  .hero-poster-card {
    width: min(280px, 100%);
  }

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

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

  .ranking-row {
    grid-template-columns: 42px 78px 1fr;
  }

  .row-play {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .detail-poster {
    width: min(280px, 100%);
  }

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

@media (max-width: 560px) {
  .site-header-inner {
    height: 66px;
  }

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

  .brand-text small {
    display: none;
  }

  .container,
  .hero-inner,
  .site-header-inner,
  .footer-inner {
    width: min(100% - 22px, 1180px);
  }

  .home-hero,
  .hero-slides,
  .hero-slide {
    min-height: 740px;
  }

  .hero-copy h1,
  .hero-copy h2,
  .simple-hero h1,
  .category-hero h1,
  .detail-copy h1 {
    font-size: 36px;
  }

  .hero-copy p,
  .simple-hero p,
  .category-hero p,
  .detail-one-line {
    font-size: 15px;
  }

  .search-form {
    flex-direction: column;
  }

  .content-section {
    padding: 52px 0;
  }

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

  .movie-grid,
  .wide-grid,
  .related-grid,
  .category-grid,
  .rank-grid {
    grid-template-columns: 1fr;
  }

  .movie-card {
    display: grid;
    grid-template-columns: 118px 1fr;
  }

  .movie-poster {
    height: 100%;
    min-height: 176px;
  }

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

  .player-mask span {
    width: 68px;
    height: 68px;
  }
}
