:root {
  --sky: #0284c7;
  --sky-light: #0ea5e9;
  --deep: #0f172a;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --warm: #fff7ed;
  --card: #ffffff;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: #f9fafb;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.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.85);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

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

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky-light), var(--sky));
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.32);
  font-size: 13px;
}

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

.nav-link,
.mobile-nav-link {
  color: #374151;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: var(--sky);
}

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

.top-search input {
  width: 210px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 10px 16px;
  background: #ffffff;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.top-search input:focus,
.filter-search input:focus,
.filter-selects select:focus {
  border-color: var(--sky-light);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

.top-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #ffffff;
  background: var(--sky);
  cursor: pointer;
}

.mobile-menu-button {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.mobile-menu-button span {
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: #0f172a;
}

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

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

.hero-slider {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: linear-gradient(135deg, #38bdf8, #0284c7);
}

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

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(14, 165, 233, 0.38), transparent 34%),
    linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.12));
}

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

.hero-copy {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 84px;
  color: #ffffff;
}

.hero-copy > * {
  max-width: 720px;
}

.hero-kicker,
.detail-meta,
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-kicker span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy p {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.65;
}

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

.primary-button,
.glass-button,
.text-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
  min-height: 48px;
  padding: 0 28px;
  color: #ffffff;
  background: var(--sky);
  box-shadow: 0 14px 28px rgba(2, 132, 199, 0.32);
}

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

.primary-button:hover {
  background: #0369a1;
}

.glass-button {
  min-height: 48px;
  padding: 0 28px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.glass-button:hover {
  background: rgba(255, 255, 255, 0.32);
}

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

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

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

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

.warm-section {
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

.cool-section {
  background: linear-gradient(135deg, #f0f9ff, #ecfeff);
}

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

.section-heading h2,
.player-section h2,
.detail-article h2,
.detail-side h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.18;
  font-weight: 900;
  color: #111827;
}

.section-heading p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.section-more,
.text-button {
  color: var(--sky);
}

.section-more span {
  margin-left: 5px;
  font-size: 24px;
  line-height: 0;
}

.horizontal-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(290px, 360px);
  gap: 24px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scroll-snap-type: x proximity;
}

.rail-item {
  scroll-snap-align: start;
}

.movie-grid,
.rank-grid,
.category-grid,
.category-entry-grid {
  display: grid;
  gap: 24px;
}

.movie-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.rank-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.category-grid {
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
}

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

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #dbeafe;
}

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

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

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62), transparent);
  transition: opacity 0.25s ease;
}

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

.type-badge,
.duration-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
}

.type-badge {
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  font-size: 12px;
  background: var(--sky);
}

.duration-badge {
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.74);
}

.rank-badge {
  top: -12px;
  left: -12px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.28);
}

.card-play {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  opacity: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%) scale(0.82);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.card-play span,
.big-play span {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 17px solid var(--sky);
}

.movie-card:hover .card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.movie-card-body {
  padding: 18px;
}

.movie-meta {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.movie-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.movie-card h3 a:hover {
  color: var(--sky);
}

.movie-line {
  min-height: 44px;
  margin: 9px 0 14px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

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

.movie-tags span {
  border-radius: 999px;
  padding: 5px 9px;
  color: #0369a1;
  background: #e0f2fe;
  font-size: 12px;
  font-weight: 700;
}

.category-card,
.category-entry,
.detail-side,
.detail-article,
.filter-panel {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.category-card {
  position: relative;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 24px;
  color: #ffffff;
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.24));
}

.category-card span,
.category-card p {
  position: relative;
  z-index: 2;
}

.category-card span {
  font-size: 24px;
  font-weight: 900;
}

.category-card p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.65;
}

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

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0;
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #075985 55%, #0ea5e9);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: auto -10% -50% 45%;
  height: 360px;
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.3);
  filter: blur(60px);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  margin: 12px 0 14px;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.08;
  font-weight: 900;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

.eyebrow {
  color: #bae6fd;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.breadcrumb {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.82);
}

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

.category-entry-grid {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.category-entry {
  overflow: hidden;
}

.category-entry-cover {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 145px;
  background: #e0f2fe;
}

.category-entry-cover img {
  width: 100%;
  height: 100%;
  min-height: 145px;
  object-fit: cover;
}

.category-entry-body {
  padding: 22px;
}

.category-entry h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 900;
}

.category-entry p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.75;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 16px;
  margin-bottom: 28px;
  padding: 18px;
}

.filter-search input,
.filter-selects select {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  outline: none;
  background: #ffffff;
}

.filter-search input {
  padding: 14px 16px;
}

.filter-selects {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-selects select {
  min-width: 138px;
  padding: 14px 42px 14px 14px;
}

.no-results {
  display: none;
  margin: 30px 0 0;
  padding: 22px;
  border-radius: var(--radius);
  color: var(--muted);
  background: #ffffff;
  text-align: center;
}

.no-results.is-visible {
  display: block;
}

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

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.45;
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(10px) saturate(1.15);
  transform: scale(1.06);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.74), rgba(2, 6, 23, 0.32));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 42px;
  align-items: center;
  min-height: 560px;
  padding: 70px 0;
}

.detail-poster {
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

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

.detail-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  font-weight: 900;
}

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

.detail-tags {
  margin: 20px 0 30px;
}

.player-section {
  background: #0f172a;
  color: #ffffff;
}

.player-section h2 {
  margin-bottom: 22px;
  color: #ffffff;
}

.video-player {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.45);
}

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

.video-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.22));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.video-overlay strong,
.video-overlay em {
  display: block;
  text-align: center;
}

.video-overlay strong {
  margin-top: 18px;
  font-size: clamp(22px, 4vw, 42px);
  font-style: normal;
}

.video-overlay em {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
  font-weight: 700;
}

.big-play {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
}

.detail-article,
.detail-side {
  padding: 30px;
}

.detail-article h2,
.detail-side h2 {
  margin-bottom: 18px;
  font-size: 28px;
}

.detail-article p {
  margin: 0 0 28px;
  color: #374151;
  font-size: 17px;
  line-height: 1.95;
}

.detail-side dl {
  margin: 0;
}

.detail-side dt {
  margin-top: 18px;
  color: var(--muted);
  font-weight: 800;
}

.detail-side dd {
  margin: 6px 0 0;
  color: #111827;
  line-height: 1.7;
}

.site-footer {
  padding: 48px 0;
  color: #cbd5e1;
  background: #0f172a;
}

.site-footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 28px;
}

.site-footer p {
  max-width: 420px;
  margin: 12px 0 0;
  line-height: 1.75;
}

.footer-logo {
  color: #ffffff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 22px;
}

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

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

  .mobile-menu-button {
    display: flex;
  }

  .hero-slider {
    height: 560px;
  }

  .hero-copy {
    padding-bottom: 78px;
  }

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

  .detail-poster {
    width: min(320px, 85vw);
  }

  .footer-links {
    justify-content: flex-start;
  }

  .filter-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header-inner {
    height: 64px;
  }

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

  .hero-slider {
    height: 520px;
  }

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

  .hero-actions {
    display: grid;
  }

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

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

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

  .filter-selects select {
    width: 100%;
  }

  .page-hero {
    padding: 68px 0;
  }

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

  .detail-meta span {
    font-size: 13px;
  }
}
