:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --dark: #0f172a;
  --dark-soft: #1e293b;
  --cyan: #06b6d4;
  --blue: #2563eb;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 42%, #f8fafc 100%);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(15, 23, 42, 0.96);
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 21px;
  font-weight: 800;
  white-space: nowrap;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 12px 28px rgba(6, 182, 212, 0.28);
  font-size: 15px;
}

.logo-text {
  background: linear-gradient(90deg, #67e8f9, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  color: #cbd5e1;
  border-radius: 11px;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.nav-link {
  padding: 9px 12px;
  font-size: 15px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #ffffff;
  background: rgba(51, 65, 85, 0.72);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(51, 65, 85, 0.72);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #ffffff;
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  padding: 10px 24px 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  background: #1e293b;
}

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.mobile-link {
  display: block;
  padding: 12px 14px;
}

.hero {
  position: relative;
  min-height: 560px;
  height: 70vh;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(2, 6, 23, 0.9) 0%,
    rgba(15, 23, 42, 0.76) 46%,
    rgba(15, 23, 42, 0.12) 100%
  );
}

.hero-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 710px;
  color: #ffffff;
}

.hero-badges,
.tag-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-badges span {
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.9);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.hero h1,
.hero h2 {
  margin: 18px 0 10px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.06em;
  font-weight: 900;
}

.hero-kicker {
  margin: 0 0 14px;
  font-size: clamp(20px, 3vw, 34px);
  color: #e0f2fe;
  font-weight: 800;
}

.hero-summary {
  max-width: 660px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

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

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

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 15px 34px rgba(37, 99, 235, 0.28);
}

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

.hero-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.68);
  font-size: 28px;
  line-height: 1;
  backdrop-filter: blur(10px);
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition:
    width 0.2s ease,
    background 0.2s ease;
}

.hero-dot.is-active {
  width: 28px;
  background: #67e8f9;
}

.hero-search-panel {
  position: absolute;
  z-index: 4;
  right: calc((100vw - min(1280px, 100vw)) / 2 + 24px);
  bottom: 96px;
  width: min(420px, calc(100vw - 48px));
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.64);
  box-shadow: 0 24px 80px rgba(2, 6, 23, 0.36);
  backdrop-filter: blur(18px);
}

.hero-search,
.inline-filter {
  display: flex;
  gap: 10px;
}

.hero-search input,
.inline-filter input,
.inline-filter select {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
}

.hero-search input {
  flex: 1;
  padding: 12px 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.hero-search button {
  border: 0;
  border-radius: 14px;
  padding: 0 18px;
  color: #ffffff;
  font-weight: 800;
  background: var(--cyan);
  cursor: pointer;
}

.hero-mini-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.hero-mini-card {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 7px;
  border-radius: 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.hero-mini-card img {
  width: 40px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
}

.hero-mini-card span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
  font-weight: 700;
}

main,
.page-main,
.detail-main {
  min-height: 60vh;
}

.intro-strip {
  max-width: 1280px;
  margin: -32px auto 0;
  padding: 18px 24px;
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.intro-strip strong {
  margin-right: 12px;
  color: var(--dark);
}

.intro-strip span {
  color: var(--muted);
}

.intro-strip nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.intro-strip nav a {
  padding: 8px 13px;
  border-radius: 999px;
  color: #0369a1;
  background: #e0f2fe;
  font-size: 14px;
  font-weight: 700;
}

.content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 70px 24px 0;
}

.no-top-space {
  padding-top: 32px;
}

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

.section-heading h2 {
  margin: 0;
  color: var(--dark);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 900;
}

.section-heading p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
}

.section-more {
  flex: none;
  color: #0891b2;
  font-weight: 800;
}

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

.all-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

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

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.14);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

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

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

.poster-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(6, 182, 212, 0.94);
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 15px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.card-body h3 {
  margin: 8px 0 7px;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
}

.card-body h3 a:hover {
  color: #0891b2;
}

.card-body p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.tag-row span {
  padding: 4px 9px;
  border-radius: 999px;
  color: #0369a1;
  background: #e0f2fe;
  font-size: 12px;
  font-weight: 700;
}

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

.ranking-page-grid {
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
}

.ranking-item {
  display: grid;
  grid-template-columns: 52px 70px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.ranking-number {
  color: #0891b2;
  font-size: 25px;
  font-weight: 900;
  text-align: center;
}

.ranking-poster img {
  width: 70px;
  height: 94px;
  object-fit: cover;
  border-radius: 13px;
  background: #0f172a;
}

.ranking-item h3 {
  margin: 0 0 5px;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
}

.ranking-item p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
}

.ranking-item div span {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-size: 12px;
  font-weight: 800;
}

.page-main {
  padding-bottom: 70px;
}

.page-hero {
  color: #ffffff;
  background:
    radial-gradient(
      circle at 18% 18%,
      rgba(6, 182, 212, 0.38),
      transparent 28%
    ),
    linear-gradient(135deg, #0f172a 0%, #1e293b 48%, #0369a1 100%);
}

.page-hero > div {
  max-width: 1280px;
  margin: 0 auto;
  padding: 76px 24px;
}

.compact-hero > div,
.category-hero > div,
.ranking-hero > div,
.search-hero > div {
  padding-top: 66px;
  padding-bottom: 56px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #67e8f9;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.page-hero h1,
.detail-head h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.category-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 24px 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.category-card {
  min-height: 228px;
  padding: 24px;
  border-radius: 22px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #164e63 55%, #2563eb);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
}

.category-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #67e8f9;
  background: rgba(255, 255, 255, 0.1);
}

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

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.category-samples a {
  padding: 5px 9px;
  border-radius: 999px;
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 700;
}

.inline-filter {
  margin-top: 24px;
  max-width: 740px;
}

.wide-filter {
  max-width: 860px;
}

.inline-filter input {
  flex: 1;
  padding: 13px 16px;
}

.inline-filter select {
  width: 150px;
  padding: 13px 12px;
  color: var(--dark);
  background: #ffffff;
}

.empty-state {
  display: none;
  margin-top: 30px;
  padding: 28px;
  border: 1px dashed #94a3b8;
  border-radius: 20px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
}

.empty-state.is-visible {
  display: block;
}

.detail-main {
  padding-bottom: 70px;
  background: linear-gradient(
    180deg,
    #0f172a 0,
    #0f172a 330px,
    #f8fafc 330px,
    #ffffff 100%
  );
}

.detail-head {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 24px 28px;
  color: #ffffff;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 26px;
  color: #cbd5e1;
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: #67e8f9;
}

.detail-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.detail-title-row p:not(.eyebrow) {
  max-width: 780px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.detail-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
}

.detail-primary,
.detail-side,
.detail-article,
.detail-meta-card {
  min-width: 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000000;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #ffffff;
  background: linear-gradient(
    180deg,
    rgba(2, 6, 23, 0.18),
    rgba(2, 6, 23, 0.72)
  );
  border: 0;
  cursor: pointer;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

.player-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-ring {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.32);
  font-size: 30px;
  text-indent: 5px;
}

.player-overlay strong {
  max-width: 80%;
  font-size: clamp(20px, 3vw, 34px);
  line-height: 1.25;
  text-align: center;
}

.detail-article {
  margin-top: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.detail-article h2 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 900;
}

.detail-article h2:not(:first-child) {
  margin-top: 26px;
}

.detail-article p {
  margin: 0;
  color: #334155;
  font-size: 17px;
}

.detail-side img {
  width: 100%;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: var(--shadow);
  background: #0f172a;
}

.detail-meta-card {
  margin-top: 20px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.detail-meta-card h2 {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 900;
}

.detail-meta-card dl {
  margin: 0;
}

.detail-meta-card dl div {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #f1f5f9;
}

.detail-meta-card dt {
  color: var(--muted);
  font-weight: 700;
}

.detail-meta-card dd {
  margin: 0;
  color: var(--dark);
  font-weight: 800;
}

.detail-tags {
  margin-top: 16px;
}

.related-section {
  padding-top: 54px;
}

.site-footer {
  margin-top: 76px;
  color: #94a3b8;
  background: #0f172a;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
}

.footer-grid h3 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

.footer-grid p {
  margin: 0;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.footer-grid a:hover {
  color: #67e8f9;
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  text-align: center;
  font-size: 14px;
}

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

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

  .mobile-toggle {
    display: block;
  }

  .hero-search-panel {
    right: 24px;
  }

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

  .detail-side {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
  }
}

@media (max-width: 820px) {
  .header-inner {
    min-height: 64px;
    padding: 0 18px;
  }

  .hero {
    min-height: 720px;
    height: auto;
  }

  .hero-inner {
    align-items: flex-start;
    padding-top: 78px;
  }

  .hero-search-panel {
    left: 18px;
    right: 18px;
    bottom: 92px;
    width: auto;
  }

  .hero-controls {
    bottom: 30px;
  }

  .intro-strip {
    margin: 0;
    border-radius: 0;
    grid-template-columns: 1fr;
  }

  .section-heading,
  .detail-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .ranking-grid,
  .ranking-page-grid {
    grid-template-columns: 1fr;
  }

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

  .detail-side img {
    max-width: 260px;
  }

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

@media (max-width: 560px) {
  .site-logo {
    font-size: 18px;
  }

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

  .hero-summary {
    font-size: 16px;
  }

  .hero-mini-list {
    grid-template-columns: 1fr;
  }

  .content-section,
  .page-hero > div,
  .detail-head,
  .detail-layout {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .card-body {
    padding: 12px;
  }

  .card-body p,
  .tag-row {
    display: none;
  }

  .inline-filter {
    flex-direction: column;
  }

  .inline-filter select {
    width: 100%;
  }

  .ranking-item {
    grid-template-columns: 42px 58px minmax(0, 1fr);
  }

  .ranking-poster img {
    width: 58px;
    height: 78px;
  }

  .detail-article,
  .detail-meta-card {
    padding: 20px;
  }
}
