:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --cyan: #06b6d4;
  --teal: #14b8a6;
  --dark: #020617;
  --slate: #0f172a;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  color-scheme: light;
}

* {
  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(--ink);
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 45%, rgba(207, 250, 254, 0.35) 100%);
  line-height: 1.65;
}

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;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.92);
  border-bottom: 1px solid rgba(34, 211, 238, 0.18);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1280px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(20, 184, 166, 0.35);
}

.logo-text {
  font-size: 22px;
  background: linear-gradient(135deg, #67e8f9, #5eead4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-link {
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #67e8f9;
}

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

.nav-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.16);
}

.header-search {
  display: flex;
  align-items: center;
  width: 250px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(103, 232, 249, 0.22);
}

.header-search input,
.mobile-search input,
.big-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
}

.header-search input {
  padding: 8px 10px 8px 14px;
  color: #ffffff;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(207, 250, 254, 0.55);
}

.header-search button,
.mobile-search button,
.big-search button {
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
}

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

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

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

.mobile-nav-link {
  display: block;
  color: rgba(255, 255, 255, 0.86);
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.mobile-nav-link.active {
  color: #67e8f9;
}

.mobile-search {
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(103, 232, 249, 0.2);
}

.mobile-search input {
  padding: 10px 12px;
  color: #ffffff;
}

.hero {
  background: radial-gradient(circle at 20% 10%, rgba(34, 211, 238, 0.22), transparent 30%), linear-gradient(135deg, #020617, #0f172a 48%, #042f2e);
  padding: 32px 0 54px;
}

.hero-stage {
  position: relative;
  width: min(1280px, calc(100% - 32px));
  height: min(72vh, 680px);
  min-height: 500px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 34px;
  background: linear-gradient(135deg, #0f172a, #115e59);
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.45);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.65s ease, transform 0.65s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-slide img,
.detail-backdrop img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
}

.image-hidden {
  opacity: 0 !important;
}

.hero-overlay,
.tile-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.9) 0%, rgba(2, 6, 23, 0.55) 46%, rgba(2, 6, 23, 0.12) 100%), linear-gradient(0deg, rgba(2, 6, 23, 0.86), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: clamp(28px, 6vw, 76px);
  color: #ffffff;
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.hero-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  color: #ecfeff;
  background: rgba(8, 145, 178, 0.78);
  border: 1px solid rgba(103, 232, 249, 0.24);
  backdrop-filter: blur(8px);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 720px;
  margin: 0 0 28px;
  color: rgba(226, 232, 240, 0.94);
  font-size: clamp(17px, 2vw, 22px);
}

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

.primary-button,
.ghost-button,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 16px 32px rgba(6, 182, 212, 0.28);
}

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

.primary-button:hover,
.ghost-button:hover,
.section-link:hover {
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.56);
  backdrop-filter: blur(10px);
  font-size: 34px;
  line-height: 1;
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 22px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

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

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

.content-section,
.spotlight-section,
.detail-content {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

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

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

.section-heading h2,
.spotlight-panel h2,
.rank-panel h2,
.text-panel h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-heading p,
.spotlight-panel p,
.collection-card p,
.category-tile p,
.text-panel p,
.detail-one-line {
  color: var(--muted);
}

.section-link {
  color: #0e7490;
  background: rgba(6, 182, 212, 0.1);
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.34), transparent 30%), linear-gradient(135deg, #0f172a, #155e75 48%, #134e4a);
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.2s ease;
}

.movie-card:hover .poster-frame img {
  transform: scale(1.08);
}

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(8px);
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(6, 182, 212, 0.86);
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  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: 18px;
}

.movie-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #0891b2;
  font-size: 13px;
  font-weight: 800;
}

.movie-card h3 {
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.32;
}

.movie-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.movie-tags span {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 8px;
  color: #0f766e;
  background: rgba(20, 184, 166, 0.1);
  font-size: 12px;
  font-weight: 700;
}

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

.category-tile {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 26px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #0e7490);
  box-shadow: var(--soft-shadow);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-tile div {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 22px;
}

.category-tile strong {
  display: block;
  margin-bottom: 8px;
  font-size: 25px;
}

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

.spotlight-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 24px;
  padding: 38px 0;
}

.spotlight-panel,
.rank-panel,
.text-panel {
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: var(--soft-shadow);
}

.spotlight-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(28px, 5vw, 52px);
  color: #ffffff;
  background: radial-gradient(circle at 10% 10%, rgba(103, 232, 249, 0.22), transparent 28%), linear-gradient(135deg, #020617, #0f766e);
}

.spotlight-panel p {
  max-width: 580px;
  color: rgba(226, 232, 240, 0.86);
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  color: #0891b2;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.spotlight-panel .eyebrow {
  color: #67e8f9;
}

.rank-panel {
  padding: 24px;
}

.rank-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.rank-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: #f8fafc;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  background: #ecfeff;
  transform: translateX(3px);
}

.rank-item span,
.wide-rank-num {
  font-weight: 900;
  color: #06b6d4;
}

.rank-item strong,
.wide-rank-card strong {
  display: block;
}

.rank-item small,
.wide-rank-card small {
  color: var(--muted);
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 14% 12%, rgba(34, 211, 238, 0.22), transparent 28%), linear-gradient(135deg, #020617, #0f172a 55%, #134e4a);
  color: #ffffff;
}

.compact-hero {
  padding: 72px 0;
}

.page-hero > div {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

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

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(226, 232, 240, 0.86);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: rgba(226, 232, 240, 0.78);
  font-size: 14px;
}

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

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

.collection-card {
  display: block;
  min-height: 170px;
  padding: 24px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.collection-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
}

.collection-card span {
  color: #0891b2;
  font-weight: 800;
}

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

.wide-rank-card {
  display: grid;
  grid-template-columns: 56px 180px 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wide-rank-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.wide-rank-card img {
  width: 180px;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  object-fit: cover;
  background: linear-gradient(135deg, #0f172a, #0e7490);
}

.wide-rank-card p {
  margin: 6px 0;
  color: var(--muted);
}

.search-hero {
  padding: 72px 0 84px;
}

.big-search {
  display: flex;
  max-width: 760px;
  margin-top: 26px;
  padding: 8px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 24px 50px rgba(2, 6, 23, 0.22);
}

.big-search input {
  padding: 16px 18px;
  color: var(--ink);
}

.big-search button {
  padding-inline: 26px;
}

.detail-hero {
  min-height: 600px;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  filter: blur(4px);
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.78) 50%, rgba(2, 6, 23, 0.58));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 70px;
}

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

.detail-poster {
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

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

.detail-one-line {
  max-width: 820px;
  margin: 0 0 22px;
  color: rgba(226, 232, 240, 0.88);
  font-size: 20px;
}

.detail-tags {
  margin-bottom: 28px;
}

.detail-tags span {
  color: #cffafe;
  background: rgba(8, 145, 178, 0.4);
  border: 1px solid rgba(103, 232, 249, 0.18);
}

.player-section {
  width: min(1180px, calc(100% - 32px));
  margin: -72px auto 0;
  position: relative;
  z-index: 4;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 32px 80px rgba(2, 6, 23, 0.38);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12), rgba(2, 6, 23, 0.42));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  border-radius: 999px;
  font-size: 36px;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 18px 40px rgba(6, 182, 212, 0.34);
}

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

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 54px 0 18px;
}

.text-panel {
  padding: 28px;
}

.text-panel p {
  margin: 16px 0 0;
  font-size: 17px;
}

.site-footer {
  margin-top: 54px;
  color: #cbd5e1;
  background: linear-gradient(180deg, #0f172a, #020617);
}

.footer-grid {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 34px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}

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

.footer-grid p {
  max-width: 520px;
  color: #94a3b8;
}

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

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a {
  color: #94a3b8;
}

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

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #64748b;
  font-size: 14px;
}

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

  .menu-button {
    display: block;
    margin-left: auto;
  }

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

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

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

@media (max-width: 820px) {
  .hero-stage {
    min-height: 560px;
    height: auto;
  }

  .hero-slide {
    min-height: 560px;
  }

  .hero-arrow {
    display: none;
  }

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

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

  .detail-poster {
    max-width: 360px;
  }

  .player-section {
    margin-top: -36px;
  }

  .wide-rank-card {
    grid-template-columns: 44px 110px 1fr;
  }

  .wide-rank-card img {
    width: 110px;
  }

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

@media (max-width: 560px) {
  .header-inner,
  .mobile-nav,
  .content-section,
  .spotlight-section,
  .detail-content,
  .page-hero > div,
  .detail-hero-inner,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 22px, 1280px);
  }

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

  .hero {
    padding: 16px 0 34px;
  }

  .hero-stage {
    width: min(100% - 22px, 1280px);
    border-radius: 24px;
  }

  .hero-content {
    padding: 28px;
  }

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

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

  .spotlight-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .big-search {
    flex-direction: column;
    border-radius: 22px;
  }

  .detail-info h1 {
    font-size: 38px;
  }

  .wide-rank-card {
    grid-template-columns: 38px 1fr;
  }

  .wide-rank-card img {
    display: none;
  }
}
