:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --cyan-500: #06b6d4;
  --rose-500: #f43f5e;
  --orange-500: #f97316;
  --green-500: #22c55e;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
  --radius: 20px;
}

* {
  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;
  color: #111827;
  background: #f8fafc;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, var(--slate-900), var(--slate-800));
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.26);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--blue-600);
  box-shadow: 0 0 0 7px rgba(59, 130, 246, 0.14);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.nav-link {
  font-size: 14px;
  color: #cbd5e1;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #60a5fa;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.wide-search input {
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 999px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input,
.mobile-search input {
  width: 210px;
  padding: 9px 14px;
  color: #ffffff;
  background: rgba(51, 65, 85, 0.78);
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: #94a3b8;
}

.header-search button,
.mobile-search button,
.wide-search button {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--blue-600);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.header-search button,
.mobile-search button {
  padding: 9px 16px;
}

.header-search button:hover,
.mobile-search button:hover,
.wide-search button:hover {
  transform: translateY(-1px);
  background: var(--blue-700);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: #ffffff;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 0 16px 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

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

.mobile-nav nav {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.mobile-search {
  display: flex;
  gap: 8px;
  padding-top: 16px;
}

.mobile-search input {
  flex: 1;
  width: auto;
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, var(--slate-900), var(--slate-800), var(--slate-700));
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.hero-slide.active {
  opacity: 1;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.12));
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(680px, 92vw);
}

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

.hero-tags span,
.card-tags span,
.tag-cloud span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  padding: 7px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-tags span:first-child {
  background: var(--blue-600);
}

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

.hero p {
  max-width: 760px;
  margin: 0 0 30px;
  color: #e2e8f0;
  font-size: clamp(18px, 2.4vw, 25px);
}

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

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

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

.btn.primary {
  color: #ffffff;
  background: var(--blue-600);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.32);
}

.btn.ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
}

.hero-arrow.prev {
  left: 22px;
}

.hero-arrow.next {
  right: 22px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 32px;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

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

.hero-dot.active {
  width: 34px;
  background: #ffffff;
}

.intro-panel {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
  gap: 28px;
  align-items: center;
  margin-top: -58px;
  padding: 30px;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.intro-panel h2,
.section-head h2,
.content-card h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

.intro-panel p,
.section-head p {
  margin: 10px 0 0;
  color: #64748b;
}

.wide-search {
  display: flex;
  gap: 10px;
}

.wide-search input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  color: #0f172a;
  background: #f8fafc;
}

.wide-search input:focus,
.header-search input:focus,
.mobile-search input:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.16);
}

.wide-search button {
  padding: 12px 22px;
  white-space: nowrap;
}

.page-section {
  padding: 70px 0;
}

.page-band {
  background: #ffffff;
}

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

.section-more {
  color: var(--blue-600);
  font-weight: 800;
  white-space: nowrap;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 46px rgba(15, 23, 42, 0.18);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--slate-900);
}

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

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(2, 6, 23, 0.44);
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-wrap::after {
  opacity: 1;
}

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--blue-600);
  font-size: 12px;
  font-weight: 800;
}

.poster-play {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 1;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--blue-600);
  background: #ffffff;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  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-tags span {
  padding: 4px 9px;
  color: #1d4ed8;
  background: #eff6ff;
}

.card-body h2 {
  margin: 12px 0 8px;
  color: #1e293b;
  font-size: 19px;
  line-height: 1.35;
}

.card-body h2 a:hover,
.mini-card h2 a:hover {
  color: var(--blue-600);
}

.card-body p {
  min-height: 48px;
  margin: 0 0 12px;
  color: #64748b;
  font-size: 14px;
}

.card-meta,
.mini-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
}

.card-meta span,
.mini-meta span,
.detail-meta span {
  padding: 4px 9px;
  border-radius: 999px;
  background: #f1f5f9;
}

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

.category-tile,
.category-overview {
  min-height: 170px;
  padding: 24px;
  border-radius: var(--radius);
  color: #ffffff;
  background: linear-gradient(135deg, var(--slate-900), var(--blue-600));
  box-shadow: var(--shadow);
  transition: transform 0.22s ease;
}

.category-tile:hover,
.category-overview:hover {
  transform: translateY(-5px);
}

.category-tile span,
.category-overview h2 {
  display: block;
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 900;
}

.category-tile p,
.category-overview p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

.category-overview {
  min-height: 230px;
}

.category-links {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
}

.blue { background: linear-gradient(135deg, #0f172a, #2563eb); }
.purple { background: linear-gradient(135deg, #1e1b4b, #7c3aed); }
.red { background: linear-gradient(135deg, #450a0a, #dc2626); }
.orange { background: linear-gradient(135deg, #431407, #f97316); }
.cyan { background: linear-gradient(135deg, #083344, #0891b2); }
.green { background: linear-gradient(135deg, #052e16, #16a34a); }
.pink { background: linear-gradient(135deg, #500724, #db2777); }
.slate { background: linear-gradient(135deg, #020617, #475569); }

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

.rank-list {
  display: grid;
  gap: 16px;
}

.mini-card {
  position: relative;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.1);
}

.rank-number {
  position: absolute;
  left: -8px;
  top: -8px;
  z-index: 1;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--rose-500);
  font-weight: 900;
}

.mini-poster {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 12px;
  background: var(--slate-900);
}

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

.mini-card h2 {
  margin: 0 0 6px;
  color: #0f172a;
  font-size: 17px;
  line-height: 1.35;
}

.mini-card p {
  margin: 0 0 10px;
  color: #64748b;
  font-size: 14px;
}

.page-hero,
.detail-hero {
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.46), transparent 38%), linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.compact-hero,
.category-hero {
  padding: 82px 0;
}

.page-hero h1,
.detail-intro h1 {
  margin: 10px 0 16px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.page-hero p,
.detail-intro p {
  max-width: 760px;
  margin: 0;
  color: #dbeafe;
  font-size: 18px;
}

.eyebrow {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  color: #bfdbfe;
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.category-hero .wide-search,
.search-hero .wide-search {
  max-width: 760px;
  margin-top: 28px;
}

.detail-hero {
  padding: 58px 0;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-cover {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 28px 58px rgba(0, 0, 0, 0.38);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: #cbd5e1;
  font-size: 14px;
}

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

.detail-meta {
  margin: 22px 0 26px;
}

.detail-meta span {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.12);
}

.player-panel {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  box-shadow: 0 26px 60px rgba(2, 6, 23, 0.24);
  aspect-ratio: 16 / 9;
}

.player-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
  object-fit: contain;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.76));
  cursor: pointer;
}

.player-panel.is-playing .player-cover {
  display: none;
}

.play-circle {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--blue-600);
  background: #ffffff;
  font-size: 28px;
  box-shadow: 0 18px 36px rgba(2, 6, 23, 0.3);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 360px;
  gap: 26px;
  padding-bottom: 30px;
}

.detail-main,
.detail-side {
  display: grid;
  gap: 22px;
  align-content: start;
}

.content-card {
  padding: 28px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
}

.content-card h2 {
  margin-bottom: 16px;
  font-size: 24px;
}

.content-card p {
  margin: 0 0 14px;
  color: #475569;
}

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

.info-card dt {
  color: #64748b;
}

.info-card dd {
  margin: 0;
  color: #0f172a;
  font-weight: 800;
}

.tag-cloud span {
  padding: 7px 11px;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.site-footer {
  padding-top: 54px;
  color: #cbd5e1;
  background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
}

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

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

.footer-grid p {
  margin: 12px 0 0;
  color: #94a3b8;
  font-size: 14px;
}

.footer-grid a {
  display: block;
  margin: 8px 0;
  color: #cbd5e1;
  font-size: 14px;
}

.footer-grid a:hover {
  color: #60a5fa;
}

.footer-bottom {
  margin-top: 42px;
  padding: 20px 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #94a3b8;
  text-align: center;
  font-size: 14px;
}

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

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

  .menu-toggle {
    display: block;
  }

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

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

@media (max-width: 760px) {
  .hero {
    height: 560px;
  }

  .hero-content {
    align-items: end;
    padding-bottom: 86px;
  }

  .hero-arrow {
    display: none;
  }

  .intro-panel,
  .detail-hero-grid,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .intro-panel {
    margin-top: 0;
    border-radius: 0;
    width: 100%;
  }

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

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

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

  .detail-cover {
    width: min(280px, 80vw);
  }

  .page-section {
    padding: 46px 0;
  }

  .compact-hero,
  .category-hero {
    padding: 58px 0;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .brand {
    font-size: 18px;
  }

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

  .hero p,
  .page-hero p,
  .detail-intro p {
    font-size: 16px;
  }

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

  .mini-card {
    grid-template-columns: 74px minmax(0, 1fr);
  }
}
