* {
  box-sizing: border-box;
}

:root {
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;
  --cyan-300: #67e8f9;
  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;
  --cyan-600: #0891b2;
  --text: #0f172a;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--slate-50);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--slate-900), var(--slate-800), var(--slate-900));
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 14px 35px rgba(2, 6, 23, 0.32);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: white;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan-400), var(--cyan-600));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(6, 182, 212, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand:hover .brand-mark {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 16px 36px rgba(6, 182, 212, 0.52);
}

.brand-mark.small {
  width: 34px;
  height: 34px;
  border-radius: 11px;
}

.brand-mark span {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid white;
}

.brand-mark.small span {
  border-top-width: 7px;
  border-bottom-width: 7px;
  border-left-width: 11px;
}

.brand-text {
  display: grid;
}

.brand-text strong {
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.brand-text em {
  color: var(--slate-400);
  font-size: 12px;
  font-style: normal;
  margin-top: 4px;
}

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

.nav-link {
  color: var(--slate-300);
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 15px;
  transition: background 0.2s ease, color 0.2s ease;
}

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(51, 65, 85, 0.72);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: white;
  border-radius: 10px;
}

.mobile-nav {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

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

.mobile-link {
  color: var(--slate-300);
  padding: 10px 12px;
  border-radius: 12px;
}

.mobile-link:hover,
.mobile-link.active {
  color: white;
  background: rgba(51, 65, 85, 0.7);
}

.hero {
  position: relative;
  height: 78vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--slate-900);
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 24%, rgba(34, 211, 238, 0.24), transparent 32%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.74) 45%, rgba(15, 23, 42, 0.18) 100%);
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 72px;
  width: min(1200px, calc(100% - 32px));
  transform: translateX(-50%);
  color: white;
}

.hero-content-inner {
  max-width: 760px;
}

.hero-kicker,
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--slate-200);
  font-size: 14px;
}

.hero-kicker span:first-child,
.page-kicker {
  color: white;
  background: var(--cyan-500);
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(6, 182, 212, 0.28);
}

.hero h1,
.hero h2 {
  margin: 0;
  font-size: clamp(36px, 7vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.hero h2 {
  margin-top: 10px;
}

.hero p {
  max-width: 680px;
  margin: 18px 0 28px;
  color: var(--slate-200);
  font-size: clamp(16px, 2vw, 21px);
}

.hero-actions,
.page-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

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

.btn-primary {
  color: white;
  background: var(--cyan-500);
  box-shadow: 0 16px 30px rgba(6, 182, 212, 0.32);
}

.btn-primary:hover {
  background: var(--cyan-600);
  box-shadow: 0 20px 40px rgba(6, 182, 212, 0.42);
}

.btn-ghost {
  color: white;
  background: rgba(15, 23, 42, 0.52);
  border: 1px solid rgba(226, 232, 240, 0.25);
  backdrop-filter: blur(10px);
}

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

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

.hero-dot.active {
  width: 34px;
  background: var(--cyan-500);
}

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

.section {
  padding: 72px 0;
}

.section.dark-band {
  width: 100%;
  max-width: none;
  background: linear-gradient(135deg, var(--slate-800), var(--slate-950));
}

.section.dark-band > .container {
  width: min(1200px, calc(100% - 32px));
}

.section.white-band {
  width: 100%;
  max-width: none;
  background: white;
}

.section.white-band > .container {
  width: min(1200px, calc(100% - 32px));
}

.section.cyan-band {
  width: 100%;
  max-width: none;
  background: linear-gradient(135deg, #ecfeff, var(--slate-100));
}

.section.cyan-band > .container {
  width: min(1200px, calc(100% - 32px));
}

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

.section-head h2 {
  margin: 0;
  color: var(--slate-900);
  font-size: clamp(25px, 3vw, 36px);
  letter-spacing: -0.03em;
}

.dark-band .section-head h2 {
  color: white;
}

.section-more {
  color: var(--cyan-600);
  font-weight: 700;
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.dark-band .section-more {
  color: var(--cyan-300);
}

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

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

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

.movie-card {
  position: relative;
  display: grid;
  overflow: hidden;
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--slate-800);
}

.poster-frame img,
.row-poster img,
.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .poster-frame img,
.movie-row:hover .row-poster img,
.related-card:hover .related-thumb img {
  transform: scale(1.1);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.08));
  opacity: 0.78;
  transition: opacity 0.2s ease;
}

.movie-card:hover .poster-shade {
  opacity: 0.88;
}

.play-circle,
.play-mini {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: var(--cyan-500);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  font-size: 22px;
  box-shadow: 0 16px 32px rgba(6, 182, 212, 0.35);
  transition: transform 0.25s ease, background 0.25s ease;
}

.play-mini {
  width: 42px;
  height: 42px;
  font-size: 16px;
}

.movie-card:hover .play-circle,
.movie-row:hover .play-mini {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--cyan-400);
}

.movie-body {
  display: grid;
  gap: 8px;
  padding: 17px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--slate-500);
  font-size: 13px;
}

.card-meta span:first-child {
  color: white;
  background: var(--cyan-500);
  border-radius: 999px;
  padding: 3px 9px;
  font-weight: 700;
}

.movie-card strong,
.movie-row strong,
.related-card strong {
  color: var(--slate-900);
  font-size: 18px;
  line-height: 1.32;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.movie-card:hover strong,
.movie-row:hover strong,
.related-card:hover strong {
  color: var(--cyan-600);
}

.movie-card em,
.movie-row em {
  color: var(--slate-600);
  font-style: normal;
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 25px;
}

.tag-list span,
.detail-tags span {
  color: var(--slate-600);
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
}

.movie-card-large {
  min-height: 330px;
  color: white;
}

.movie-card-large .poster-frame {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
}

.large-card-content {
  position: relative;
  z-index: 3;
  align-self: end;
  display: grid;
  gap: 10px;
  padding: 28px;
}

.large-card-content .card-meta {
  color: var(--slate-300);
}

.large-card-content strong {
  color: white;
  font-size: 26px;
}

.large-card-content em {
  color: var(--slate-200);
  font-style: normal;
}

.scroller {
  overflow-x: auto;
  padding: 6px 0 16px;
  margin: 0 -16px;
}

.scroll-track {
  display: flex;
  gap: 18px;
  min-width: max-content;
  padding: 0 16px;
}

.scroll-item {
  width: 315px;
  flex: 0 0 auto;
}

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

.movie-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items: stretch;
  overflow: hidden;
  border-radius: 17px;
  background: white;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-row:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.row-poster {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--slate-800);
}

.row-body {
  display: grid;
  align-content: center;
  gap: 9px;
  padding: 18px 22px 18px 0;
}

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

.category-tile {
  min-height: 150px;
  border-radius: 22px;
  padding: 24px;
  background: linear-gradient(135deg, white, #ecfeff);
  border: 1px solid rgba(6, 182, 212, 0.16);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-tile strong {
  display: block;
  color: var(--slate-900);
  font-size: 22px;
  margin-bottom: 8px;
}

.category-tile span {
  color: var(--slate-600);
}

.page-hero {
  color: white;
  background:
    radial-gradient(circle at 82% 18%, rgba(6, 182, 212, 0.32), transparent 28%),
    linear-gradient(135deg, var(--slate-950), var(--slate-800));
  padding: 86px 0 72px;
}

.page-hero h1 {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.page-hero p,
.page-hero .page-actions,
.page-hero .search-wrap,
.page-hero .page-kicker {
  width: min(1200px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.page-hero p {
  max-width: 740px;
  margin-top: 16px;
  margin-bottom: 24px;
  color: var(--slate-200);
  font-size: 18px;
}

.search-wrap {
  margin-top: 28px;
}

.search-input {
  width: min(680px, 100%);
  height: 54px;
  border: 1px solid rgba(203, 213, 225, 0.3);
  border-radius: 16px;
  padding: 0 18px;
  color: white;
  background: rgba(15, 23, 42, 0.52);
  outline: none;
  box-shadow: 0 12px 34px rgba(2, 6, 23, 0.18);
}

.search-input::placeholder {
  color: var(--slate-400);
}

.search-input:focus {
  border-color: var(--cyan-400);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.14), 0 12px 34px rgba(2, 6, 23, 0.18);
}

.catalog-section {
  padding: 54px 0 80px;
}

.is-hidden {
  display: none !important;
}

.rank-badge {
  position: absolute;
  z-index: 5;
  left: 12px;
  top: 12px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(239, 68, 68, 0.28);
}

.watch-stage {
  background:
    radial-gradient(circle at 78% 16%, rgba(6, 182, 212, 0.3), transparent 32%),
    linear-gradient(135deg, var(--slate-950), var(--slate-800));
  padding: 42px 0 60px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(300px, 0.9fr);
  gap: 26px;
  align-items: start;
}

.player-panel,
.info-panel,
.text-panel,
.related-panel {
  border-radius: 22px;
  background: white;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.player-shell {
  position: relative;
  background: black;
}

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

.player-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 6;
  width: 82px;
  height: 82px;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.96);
  color: white;
  font-size: 32px;
  padding-left: 6px;
  cursor: pointer;
  box-shadow: 0 20px 45px rgba(6, 182, 212, 0.4);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.player-play:hover {
  transform: translate(-50%, -50%) scale(1.06);
  background: var(--cyan-400);
}

.player-shell.is-playing .player-play {
  opacity: 0;
  pointer-events: none;
}

.player-status {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 7;
  color: white;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(226, 232, 240, 0.15);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  pointer-events: none;
  backdrop-filter: blur(8px);
}

.player-shell.is-ready .player-status {
  display: none;
}

.player-meta {
  padding: 24px;
}

.player-meta h1 {
  margin: 0 0 10px;
  color: var(--slate-900);
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.035em;
}

.player-meta p {
  margin: 0;
  color: var(--slate-600);
  font-size: 17px;
}

.info-panel {
  padding: 24px;
}

.info-panel h2,
.text-panel h2,
.related-panel h2 {
  margin: 0 0 16px;
  color: var(--slate-900);
  font-size: 22px;
}

.info-list {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.info-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--slate-200);
}

.info-list span {
  color: var(--slate-500);
}

.info-list strong {
  color: var(--slate-900);
  text-align: right;
}

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

.detail-content {
  padding: 44px 0 80px;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.85fr);
  gap: 26px;
  align-items: start;
}

.text-panel {
  padding: 30px;
}

.text-panel + .text-panel {
  margin-top: 22px;
}

.text-panel p {
  color: var(--slate-700);
  font-size: 16px;
  margin: 0 0 14px;
}

.text-panel .lead {
  color: var(--slate-900);
  font-weight: 700;
  font-size: 17px;
}

.related-panel {
  position: sticky;
  top: 100px;
  padding: 22px;
}

.related-list {
  display: grid;
  gap: 15px;
}

.related-card {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 12px;
  align-items: center;
}

.related-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 13px;
  background: var(--slate-800);
}

.related-card strong {
  font-size: 15px;
}

.related-card span {
  color: var(--slate-500);
  font-size: 12px;
}

.site-footer {
  color: var(--slate-300);
  background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.footer-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.footer-brand {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

.footer-brand strong {
  color: white;
  font-size: 20px;
}

.footer-brand p {
  grid-column: 1 / -1;
  max-width: 520px;
  margin: 0;
  color: var(--slate-400);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

.footer-bottom {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  color: var(--slate-500);
  font-size: 14px;
}

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

  .menu-toggle {
    display: inline-flex;
  }

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

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

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

  .related-panel {
    position: static;
  }
}

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

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

  .hero {
    height: 72vh;
    min-height: 500px;
  }

  .hero-content {
    bottom: 64px;
  }

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

  .section {
    padding: 50px 0;
  }

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

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

  .movie-body {
    padding: 14px;
  }

  .movie-card strong {
    font-size: 16px;
  }

  .movie-row {
    grid-template-columns: 128px 1fr;
    gap: 12px;
  }

  .row-body {
    padding: 12px 12px 12px 0;
  }

  .row-body em,
  .tag-list {
    display: none;
  }

  .scroll-item {
    width: 265px;
  }

  .category-tiles {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 60px 0 50px;
  }

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

@media (max-width: 480px) {
  .movie-grid,
  .movie-grid.three,
  .movie-grid.ranking {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .page-actions,
  .detail-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .player-play {
    width: 66px;
    height: 66px;
    font-size: 26px;
  }
}
