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

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 44%, #ecfeff 100%);
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(226, 232, 240, 0.82);
  backdrop-filter: blur(18px);
}

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

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #0f172a;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 14px 30px rgba(8, 145, 178, 0.35);
}

.logo-text {
  font-size: 22px;
}

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

.main-nav a {
  padding: 10px 16px;
  color: #334155;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.22s ease;
}

.main-nav a:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 12px 28px rgba(8, 145, 178, 0.25);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #eff6ff;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #0f172a;
  border-radius: 99px;
}

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.28), transparent 28%), linear-gradient(135deg, #020617 0%, #0f172a 48%, #164e63 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.95) 1px, transparent 0);
  background-size: 42px 42px;
}

.hero-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 640px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  gap: 52px;
  align-items: center;
  width: 100%;
}

.hero-slide.is-active {
  display: grid;
  animation: fadeIn 0.55s ease both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 16px;
  padding: 7px 14px;
  color: #cffafe;
  border: 1px solid rgba(103, 232, 249, 0.35);
  border-radius: 999px;
  background: rgba(8, 145, 178, 0.25);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-copy h1 {
  margin: 0 0 20px;
  color: #ffffff;
  font-size: clamp(44px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero-copy p {
  max-width: 760px;
  margin: 0 0 26px;
  color: #cbd5e1;
  font-size: 20px;
}

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

.hero-tags span,
.detail-tags span,
.card-tags span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  color: #0e7490;
  background: #ecfeff;
  font-size: 13px;
  font-weight: 800;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.24s ease;
}

.btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 36px rgba(8, 145, 178, 0.35);
}

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

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

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 30px;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #1e293b, #0e7490);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.36);
  transform: rotate(2deg);
}

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

.hero-poster:hover img {
  transform: scale(1.07);
}

.hero-poster span,
.play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 68px;
  height: 68px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-dark);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.22);
}

.hero-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

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

.hero-arrow {
  width: 42px;
  height: 42px;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 32px;
  line-height: 1;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.36);
}

.hero-dot.is-active {
  width: 30px;
  background: #22d3ee;
}

.stats-strip {
  width: min(1180px, calc(100% - 32px));
  margin: -44px auto 0;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stats-strip div {
  padding: 24px;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.stats-strip strong {
  display: block;
  margin-bottom: 6px;
  color: #0f172a;
  font-size: 24px;
}

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

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

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

.section-title h2 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.section-title p {
  margin: 0;
  color: var(--muted);
}

.section-title a {
  flex: 0 0 auto;
  color: var(--cyan-dark);
  font-weight: 900;
}

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

.catalogue-grid {
  grid-template-columns: repeat(4, 1fr);
}

.featured-grid {
  grid-template-columns: repeat(3, 1fr);
}

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 26px 54px rgba(15, 23, 42, 0.16);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #e2e8f0, #cffafe);
}

.compact-card .poster-wrap {
  aspect-ratio: 16 / 11;
}

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

.movie-card:hover .poster-wrap img,
.rank-item:hover .rank-poster img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(2, 6, 23, 0.68));
}

.play-icon {
  width: 54px;
  height: 54px;
  font-size: 18px;
  opacity: 0.95;
}

.corner-pill {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 5px 10px;
  color: #ffffff;
  border-radius: 999px;
  background: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

.card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}

.card-content h2,
.card-content h3 {
  margin: 0;
  color: #0f172a;
  font-size: 19px;
  line-height: 1.32;
  letter-spacing: -0.02em;
}

.movie-card:hover h2,
.movie-card:hover h3 {
  color: var(--cyan-dark);
}

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  color: #64748b;
  font-size: 13px;
}

.card-meta span {
  padding: 4px 8px;
  border-radius: 10px;
  background: #f1f5f9;
}

.card-tags span {
  padding: 4px 8px;
  font-size: 12px;
}

.soft-section {
  background: linear-gradient(135deg, #ecfeff 0%, #eff6ff 100%);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 164px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  transition: 0.22s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.13);
}

.rank-no {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-size: 20px;
  font-weight: 900;
}

.rank-poster {
  display: block;
  overflow: hidden;
  height: 96px;
  border-radius: 16px;
  background: #e2e8f0;
}

.rank-body {
  min-width: 0;
}

.rank-body strong {
  display: block;
  overflow: hidden;
  color: #0f172a;
  font-size: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-body em {
  display: -webkit-box;
  overflow: hidden;
  margin: 5px 0 10px;
  color: var(--muted);
  font-style: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-body span {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rank-body b {
  padding: 4px 8px;
  color: #0e7490;
  border-radius: 10px;
  background: #ecfeff;
  font-size: 12px;
}

.category-band {
  background: linear-gradient(135deg, #0f172a 0%, #164e63 100%);
}

.light-title h2,
.light-title p,
.light-title a {
  color: #ffffff;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 186px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  transition: 0.24s ease;
}

.overview-grid .category-card {
  border-color: rgba(14, 116, 144, 0.14);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.category-card:hover {
  transform: translateY(-6px) scale(1.01);
  background: rgba(255, 255, 255, 0.16);
}

.overview-grid .category-card:hover {
  background: #ffffff;
}

.category-glow {
  position: absolute;
  right: -40px;
  top: -40px;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.2);
}

.category-card strong {
  position: relative;
  display: block;
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 22px;
}

.overview-grid .category-card strong {
  color: #0f172a;
}

.category-card em {
  position: relative;
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-style: normal;
}

.overview-grid .category-card em {
  color: #64748b;
}

.category-more {
  position: absolute;
  left: 24px;
  bottom: 22px;
  color: #67e8f9;
  font-weight: 900;
}

.overview-grid .category-more {
  color: var(--cyan-dark);
}

.page-main {
  min-height: 70vh;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 96px max(16px, calc((100vw - 1180px) / 2)) 72px;
  color: #ffffff;
  background: radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.26), transparent 28%), linear-gradient(135deg, #0f172a 0%, #164e63 100%);
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #cbd5e1;
  font-size: 19px;
}

.compact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 32px;
  align-items: end;
}

.search-panel {
  display: flex;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.search-panel input {
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  color: #ffffff;
  border: 0;
  outline: 0;
  background: transparent;
}

.search-panel input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.search-panel button {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 24px;
  color: #ffffff;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-weight: 900;
  cursor: pointer;
}

.wide-search {
  max-width: 620px;
}

.empty-state {
  margin: 40px 0 0;
  padding: 36px;
  color: #64748b;
  border: 1px dashed #cbd5e1;
  border-radius: 22px;
  background: #ffffff;
  text-align: center;
  font-size: 18px;
}

.detail-main {
  background: #f8fafc;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.1);
}

.detail-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 30px;
  color: #cbd5e1;
  font-size: 14px;
}

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

.breadcrumb strong {
  color: #ffffff;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
  gap: 34px;
  align-items: center;
}

.player-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.32);
}

.video-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

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

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.44));
  cursor: pointer;
  transition: 0.2s ease;
}

.video-overlay span {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0e7490;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  font-size: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  transition: 0.2s ease;
}

.video-overlay:hover span {
  transform: scale(1.06);
}

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

.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.detail-line {
  margin: 0 0 22px;
  color: #cbd5e1;
  font-size: 18px;
}

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

.detail-meta span {
  padding: 12px 14px;
  color: #e0f2fe;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.detail-content {
  display: grid;
  gap: 22px;
}

.text-panel {
  padding: 30px;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.text-panel h2 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 28px;
  letter-spacing: -0.04em;
}

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

.inner-title {
  margin-bottom: 20px;
}

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

.site-footer {
  color: #cbd5e1;
  background: #020617;
}

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

.footer-logo {
  color: #ffffff;
  font-size: 24px;
}

.footer-shell p {
  max-width: 760px;
  color: #94a3b8;
}

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

.footer-links a {
  color: #cffafe;
  font-weight: 800;
}

.copyright {
  margin-bottom: 0;
  font-size: 14px;
}

@media (max-width: 1024px) {
  .hero-slide,
  .detail-layout,
  .compact-hero {
    grid-template-columns: 1fr;
  }

  .hero-shell,
  .hero {
    min-height: auto;
  }

  .hero-shell {
    padding: 70px 0 110px;
  }

  .hero-poster {
    max-width: 420px;
    transform: none;
  }

  .stats-strip,
  .category-grid,
  .catalogue-grid,
  .mini-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-grid,
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

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

  .main-nav a {
    text-align: center;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-info h1 {
    letter-spacing: -0.04em;
  }

  .hero-copy p,
  .page-hero p {
    font-size: 17px;
  }

  .stats-strip,
  .movie-grid,
  .featured-grid,
  .catalogue-grid,
  .mini-grid,
  .category-grid,
  .related-grid,
  .detail-meta {
    grid-template-columns: 1fr;
  }

  .stats-strip {
    margin-top: 18px;
  }

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

  .rank-item {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .rank-poster {
    display: none;
  }

  .page-hero {
    padding-top: 72px;
  }

  .search-panel {
    border-radius: 24px;
    flex-direction: column;
  }

  .search-panel button {
    width: 100%;
  }
}
