:root {
  --cyan: #06b6d4;
  --cyan-dark: #0891b2;
  --blue: #2563eb;
  --navy: #0f172a;
  --ink: #111827;
  --muted: #64748b;
  --soft: #ecfeff;
  --line: #e2e8f0;
  --card: #ffffff;
  --shadow: 0 20px 55px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #ecfeff 0, #ffffff 320px, #f8fafc 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "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: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(1200px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 12px 28px rgba(6, 182, 212, 0.32);
}

.brand-text {
  display: grid;
  line-height: 1.12;
}

.brand-text strong {
  font-size: 24px;
  color: transparent;
  background: linear-gradient(90deg, var(--cyan-dark), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
}

.brand-text small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

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

.nav-links a {
  color: #334155;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cyan-dark);
}

.top-search {
  position: relative;
  display: flex;
  width: 300px;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #ffffff;
}

.top-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 11px 12px 11px 18px;
  outline: none;
}

.top-search button {
  border: 0;
  color: #ffffff;
  padding: 0 18px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  color: var(--cyan-dark);
  font-size: 24px;
  border-radius: 12px;
  background: #ecfeff;
  cursor: pointer;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  background: var(--cyan-dark);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 56px;
  align-items: center;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0 110px;
  color: #ffffff;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}

.hero-slide::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 145, 178, 0.06), rgba(255, 255, 255, 0.98));
  pointer-events: none;
}

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

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  color: #e0faff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.hero h1,
.hero h2 {
  margin: 24px 0 16px;
  max-width: 780px;
  font-size: clamp(42px, 8vw, 76px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 720px;
  margin: 0 0 28px;
  color: #e0f2fe;
  font-size: clamp(18px, 2.2vw, 24px);
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  color: #075985;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  background: #cffafe;
}

.hero .hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

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

.primary-btn {
  color: var(--cyan-dark);
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(8, 47, 73, 0.18);
}

.primary-btn.light {
  color: var(--cyan-dark);
}

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

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

.hero-poster {
  position: relative;
  z-index: 2;
  aspect-ratio: 3 / 4;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 35px 80px rgba(15, 23, 42, 0.42);
  transform: rotate(2deg);
}

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

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

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

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

.stats-strip {
  width: min(1120px, calc(100% - 32px));
  margin: -46px auto 40px;
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.stats-strip div {
  text-align: center;
}

.stats-strip strong {
  display: block;
  color: var(--cyan-dark);
  font-size: 32px;
  line-height: 1;
}

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

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

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

.section-head h2 {
  margin: 0 0 6px;
  color: #0f172a;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
}

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

.section-head > a,
.text-link {
  color: var(--cyan-dark);
  font-weight: 900;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 48px rgba(8, 145, 178, 0.18);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #cffafe, #dbeafe);
}

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

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

.play-chip {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 38px;
  background: rgba(15, 23, 42, 0.1);
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.movie-card:hover .play-chip {
  opacity: 1;
  background: rgba(15, 23, 42, 0.45);
}

.poster-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  color: #ffffff;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.movie-info {
  padding: 18px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.movie-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 6px;
  color: #94a3b8;
}

.movie-info h3 {
  margin: 8px 0 8px;
  font-size: 18px;
  line-height: 1.25;
}

.movie-info h3 a:hover {
  color: var(--cyan-dark);
}

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

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

.category-card,
.category-large-card,
.story-card,
.info-card,
.rank-panel,
.filter-panel {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.category-card {
  padding: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 42px rgba(8, 145, 178, 0.16);
}

.category-card span {
  display: block;
  margin: 14px 0 6px;
  color: #0f172a;
  font-size: 20px;
  font-weight: 900;
}

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

.category-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.category-stack img {
  aspect-ratio: 3 / 4;
  width: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.cyan-band {
  width: min(1200px, calc(100% - 32px));
  margin: 48px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 42px;
  color: #ffffff;
  border-radius: 34px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 24px 58px rgba(37, 99, 235, 0.22);
}

.cyan-band h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 42px);
}

.cyan-band p {
  margin: 0;
  color: #e0f2fe;
}

.two-col-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  align-items: start;
}

.rank-panel {
  position: sticky;
  top: 100px;
  padding: 24px;
}

.compact-head {
  margin-bottom: 18px;
}

.compact-head h2 {
  font-size: 26px;
}

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

.mini-card {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 10px;
  border-radius: 16px;
  background: #f8fafc;
  transition: background 0.2s ease, transform 0.2s ease;
}

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

.mini-card img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 12px;
}

.mini-card strong {
  display: block;
  overflow: hidden;
  color: #0f172a;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mini-card em {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-no {
  position: absolute;
  left: -6px;
  top: -6px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 8px 18px rgba(6, 182, 212, 0.28);
}

.inner-page {
  min-height: 60vh;
}

.page-hero {
  width: min(1200px, calc(100% - 32px));
  margin: 36px auto 0;
  padding: 58px;
  color: #ffffff;
  border-radius: 36px;
  background: linear-gradient(135deg, var(--cyan-dark), var(--blue));
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.06;
}

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

.soft-hero {
  background: radial-gradient(circle at right top, rgba(34, 211, 238, 0.44), transparent 36%), linear-gradient(135deg, #0f172a, #0e7490 52%, #2563eb);
}

.category-large-grid {
  display: grid;
  gap: 22px;
}

.category-large-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  padding: 20px;
}

.category-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.category-preview img {
  aspect-ratio: 3 / 4;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.category-large-card h2 {
  margin: 4px 0 8px;
  font-size: 28px;
}

.category-large-card p {
  color: var(--muted);
}

.quick-movies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.quick-movies a {
  color: #075985;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ecfeff;
  font-size: 13px;
  font-weight: 800;
}

.filter-panel {
  display: flex;
  gap: 12px;
  padding: 16px;
  margin-bottom: 24px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  outline: none;
  background: #ffffff;
}

.filter-panel select {
  max-width: 180px;
}

.rank-hero-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.rank-hero-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  color: #ffffff;
  padding: 28px;
  border-radius: 28px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.rank-hero-card span {
  width: max-content;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #075985;
  background: #ffffff;
  font-weight: 900;
}

.rank-hero-card strong {
  font-size: 28px;
  line-height: 1.1;
}

.rank-hero-card em {
  margin-top: 6px;
  color: #e0f2fe;
  font-style: normal;
}

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

.detail-hero {
  position: relative;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 38px;
  align-items: end;
  min-height: 560px;
  padding: 120px max(32px, calc((100vw - 1200px) / 2)) 70px;
  color: #ffffff;
  background-size: cover;
  background-position: center;
}

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

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

.detail-copy h1 {
  margin: 18px 0 12px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.04;
}

.detail-copy p {
  max-width: 820px;
  margin: 0 0 20px;
  color: #e0f2fe;
  font-size: 20px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #cffafe;
  font-size: 14px;
}

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

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

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 800;
}

.large-tags span {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.13);
}

.player-section h2 {
  margin: 0 0 18px;
  font-size: 32px;
}

.player-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 28px 72px rgba(15, 23, 42, 0.24);
}

.movie-player,
.player-cover,
.player-cover img,
.player-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-player {
  z-index: 1;
  background: #000000;
}

.player-cover {
  z-index: 2;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #000000;
}

.player-cover img {
  object-fit: cover;
}

.player-shade {
  background: rgba(15, 23, 42, 0.42);
}

.player-button {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  color: var(--cyan-dark);
  font-size: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
  transform: translate(-50%, -50%);
}

.player-cover.is-hidden {
  display: none;
}

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

.story-card,
.info-card {
  padding: 28px;
}

.story-card h2,
.info-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.story-card h2:not(:first-child) {
  margin-top: 28px;
}

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

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

.info-card dt {
  color: var(--muted);
  font-weight: 800;
}

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

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

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

.footer-brand .brand-text strong {
  color: #ffffff;
  background: none;
  -webkit-text-fill-color: #ffffff;
}

.site-footer p {
  color: #94a3b8;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #67e8f9;
}

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

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

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

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

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

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

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

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

  .rank-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .nav-wrap {
    min-height: 68px;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

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

  .nav-links a {
    padding: 12px;
    border-radius: 12px;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: #ecfeff;
  }

  .hero {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 54px 0 96px;
  }

  .hero-poster {
    width: min(260px, 80vw);
    justify-self: center;
  }

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -34px;
  }

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

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

  .cyan-band,
  .section-head,
  .filter-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .category-large-card,
  .detail-hero,
  .footer-grid,
  .rank-hero-grid,
  .wide-rank {
    grid-template-columns: 1fr;
  }

  .detail-hero {
    padding: 42px 16px;
  }

  .detail-poster {
    width: min(260px, 76vw);
  }

  .page-hero {
    padding: 38px 24px;
  }
}

@media (max-width: 520px) {
  .brand-text strong {
    font-size: 20px;
  }

  .stats-strip,
  .movie-grid,
  .small-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 700px;
  }

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

  .player-button {
    width: 64px;
    height: 64px;
    font-size: 26px;
  }
}
