:root {
  color-scheme: light;
  --primary: #0891b2;
  --primary-dark: #155e75;
  --secondary: #2563eb;
  --accent: #14b8a6;
  --ink: #0f172a;
  --muted: #64748b;
  --soft: #f8fafc;
  --line: #e2e8f0;
  --card: #ffffff;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 26px rgba(15, 23, 42, 0.08);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 36%, #f8fafc 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  color: #ffffff;
  background: linear-gradient(90deg, #2563eb 0%, #0891b2 50%, #0f766e 100%);
  box-shadow: 0 14px 36px rgba(8, 47, 73, 0.22);
}

.site-header__inner {
  width: min(1240px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.site-logo__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #0e7490;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
  transition: transform 0.25s ease;
}

.site-logo:hover .site-logo__icon {
  transform: scale(1.08) rotate(-4deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 650;
}

.site-nav a,
.mobile-nav a {
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover,
.mobile-nav a:hover {
  color: #dffcff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: #ffffff;
}

.mobile-nav {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  flex-direction: column;
  gap: 14px;
  font-weight: 650;
}

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

.hero-slider {
  position: relative;
  min-height: clamp(620px, 78vh, 820px);
  overflow: hidden;
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 440px);
  align-items: center;
  gap: 56px;
  width: 100%;
  padding: 84px max(32px, calc((100vw - 1240px) / 2)) 116px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.hero-slide__bg,
.hero-slide__shade {
  position: absolute;
  inset: 0;
}

.hero-slide__bg {
  background-position: center;
  background-size: cover;
  filter: blur(16px) saturate(1.15);
  transform: scale(1.08);
  opacity: 0.34;
}

.hero-slide__shade {
  background:
    radial-gradient(circle at 78% 28%, rgba(20, 184, 166, 0.32), transparent 32%),
    linear-gradient(110deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.72) 46%, rgba(14, 116, 144, 0.4) 100%);
}

.hero-slide__content,
.hero-poster {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 12px;
  color: #0891b2;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-slide .eyebrow {
  color: #67e8f9;
}

.hero-slide h1 {
  max-width: 760px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(42px, 6vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-summary {
  max-width: 760px;
  margin: 24px 0;
  color: rgba(226, 232, 240, 0.92);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

.hero-poster {
  display: block;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
  transition: transform 0.3s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) translateY(-6px);
}

.hero-poster img {
  aspect-ratio: 3 / 4.2;
  object-fit: cover;
}

.hero-actions,
.filter-bar,
.tag-row,
.hero-controls,
.meta-list div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

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

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, #0891b2, #2563eb);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.24);
}

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

.btn-soft {
  color: #e0f2fe;
  background: rgba(14, 116, 144, 0.42);
}

.btn-small {
  min-height: 38px;
  padding: 0 16px;
  color: #ffffff;
  background: linear-gradient(90deg, #0891b2, #0f766e);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 3;
  transform: translateX(-50%);
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(16px);
}

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

.hero-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.14);
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: #67e8f9;
}

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

.section--intro {
  padding-top: 80px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-heading h2,
.page-hero h1,
.detail-panel h1,
.content-card h2 {
  margin: 0;
  color: #0f172a;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.section-heading h2 {
  font-size: clamp(30px, 4vw, 54px);
}

.section-heading p:not(.eyebrow),
.page-hero p,
.category-overview-card p,
.movie-card p,
.content-card p,
.rank-row p,
.site-footer p {
  color: var(--muted);
  line-height: 1.72;
}

.section-heading--row {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.text-link {
  color: #0891b2;
  font-weight: 800;
}

.category-grid,
.movie-grid,
.category-overview-grid,
.footer-grid {
  display: grid;
  gap: 24px;
}

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

.category-card,
.category-overview-card,
.movie-card,
.content-card,
.rank-row {
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

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

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.88));
}

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

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

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

.category-card span {
  font-size: 22px;
  font-weight: 850;
}

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

.filter-bar {
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.filter-bar label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #334155;
  font-weight: 750;
}

.filter-search {
  flex: 1 1 420px;
}

.filter-bar input,
.filter-bar select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  color: #0f172a;
  background: #f8fafc;
  outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: #0891b2;
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.13);
}

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

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

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

.movie-card {
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.movie-card.is-hidden,
.rank-row.is-hidden {
  display: none;
}

.movie-card__poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #e0f2fe, #ccfbf1);
}

.movie-card__poster img {
  aspect-ratio: 3 / 4.1;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .movie-card__poster img {
  transform: scale(1.07);
}

.movie-card__play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 850;
  background: linear-gradient(90deg, #0891b2, #2563eb);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.22);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
}

.movie-card__body {
  padding: 18px;
}

.movie-card__title {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.28;
}

.movie-card__title:hover {
  color: #0891b2;
}

.movie-card__meta,
.rank-row__meta {
  color: #64748b;
  font-size: 14px;
  font-weight: 650;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #0e7490;
  font-size: 13px;
  font-weight: 750;
  background: #ecfeff;
}

.tag-row--hero span {
  color: #cffafe;
  background: rgba(8, 145, 178, 0.32);
}

.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
  color: #ffffff;
  background:
    radial-gradient(circle at 90% 10%, rgba(20, 184, 166, 0.35), transparent 28%),
    linear-gradient(110deg, #0f172a, #155e75 54%, #0f766e);
}

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

.page-hero .eyebrow {
  color: #67e8f9;
}

.page-hero h1 {
  color: #ffffff;
  font-size: clamp(36px, 5vw, 64px);
}

.page-hero p {
  max-width: 780px;
  color: rgba(226, 232, 240, 0.88);
  font-size: 18px;
}

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

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

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

.category-overview-card__images img {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
}

.category-overview-card h2 {
  margin: 4px 0 10px;
  font-size: 26px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 96px 58px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 16px;
}

.rank-row__poster img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
}

.rank-row__number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
  background: linear-gradient(135deg, #0891b2, #2563eb);
}

.rank-row h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.rank-row h2 a:hover {
  color: #0891b2;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 5%, rgba(20, 184, 166, 0.24), transparent 34%),
    linear-gradient(180deg, #0f172a 0%, #122337 70%, #f8fafc 70%, #f8fafc 100%);
  padding: 28px max(16px, calc((100vw - 1240px) / 2)) 20px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 24px;
  color: rgba(226, 232, 240, 0.86);
  font-size: 14px;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.72fr);
  align-items: stretch;
  gap: 26px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 32px 70px rgba(2, 6, 23, 0.34);
}

.player-video {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: block;
  background: #000000;
  object-fit: contain;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 14px;
  align-content: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.15), rgba(15, 23, 42, 0.68));
  cursor: pointer;
}

.play-overlay.is-hidden {
  display: none;
}

.play-overlay__icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #0e7490;
  font-size: 34px;
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(2, 6, 23, 0.28);
}

.detail-panel {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.68);
  box-shadow: 0 28px 60px rgba(2, 6, 23, 0.2);
  backdrop-filter: blur(16px);
}

.detail-poster {
  align-self: start;
  aspect-ratio: 3 / 4.15;
  object-fit: cover;
  border-radius: 22px;
}

.detail-panel h1 {
  color: #ffffff;
  font-size: clamp(26px, 3vw, 42px);
}

.detail-one-line {
  color: rgba(226, 232, 240, 0.88);
  line-height: 1.7;
}

.meta-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.meta-list div {
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.meta-list dt {
  color: rgba(226, 232, 240, 0.66);
}

.meta-list dd {
  margin: 0;
  color: #ffffff;
  font-weight: 750;
  text-align: right;
}

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

.content-card {
  padding: 28px;
}

.content-card h2 {
  font-size: 28px;
}

.site-footer {
  margin-top: 50px;
  color: #e2e8f0;
  background: linear-gradient(180deg, #1e293b, #0f172a);
}

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

.site-footer h2 {
  margin: 0 0 18px;
  color: #67e8f9;
  font-size: 18px;
}

.site-footer ul {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.site-footer a {
  color: #cbd5e1;
}

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

.footer-logo {
  color: #ffffff;
  margin-bottom: 14px;
}

.footer-bottom {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 14px;
}

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

  .nav-toggle {
    display: block;
  }

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

  .hero-poster {
    max-width: 260px;
  }

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

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

@media (max-width: 760px) {
  .site-logo {
    font-size: 20px;
  }

  .hero-slider {
    min-height: 720px;
  }

  .hero-slide {
    padding: 56px 18px 112px;
  }

  .hero-slide h1 {
    font-size: 42px;
  }

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

  .section {
    padding: 46px 0;
  }

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

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

  .category-card {
    min-height: 190px;
  }

  .movie-card__body {
    padding: 14px;
  }

  .movie-card__title {
    font-size: 16px;
  }

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

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

  .rank-row__number {
    position: absolute;
    margin: 8px;
  }

  .rank-row__content {
    grid-column: 1 / -1;
  }

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

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

  .player-shell,
  .player-video {
    min-height: 260px;
  }

  .footer-grid {
    gap: 30px;
  }
}

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

  .hero-actions,
  .filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}
