:root {
  --site-bg: #0f172a;
  --site-panel: rgba(15, 23, 42, 0.82);
  --site-panel-strong: rgba(30, 41, 59, 0.88);
  --site-line: rgba(148, 163, 184, 0.18);
  --site-text: #e2e8f0;
  --site-muted: #94a3b8;
  --site-accent: #22d3ee;
  --site-accent-strong: #38bdf8;
  --site-radius: 1.25rem;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(8, 145, 178, 0.20), transparent 34rem),
    radial-gradient(circle at 90% 10%, rgba(59, 130, 246, 0.16), transparent 28rem),
    linear-gradient(180deg, #0f172a 0%, #111827 48%, #020617 100%);
}

img {
  background-color: rgba(15, 23, 42, 0.6);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--site-line);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.34);
}

.header-inner {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  min-height: 4.75rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.logo-mark {
  position: relative;
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid rgba(34, 211, 238, 0.38);
  border-radius: 0.95rem;
  color: var(--site-accent);
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.28), rgba(37, 99, 235, 0.22));
  box-shadow: 0 0 34px rgba(34, 211, 238, 0.18);
}

.logo-title {
  display: block;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #22d3ee, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-subtitle {
  display: block;
  margin-top: 0.12rem;
  color: var(--site-muted);
  font-size: 0.75rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav-link,
.mobile-nav a {
  display: inline-flex;
  align-items: center;
  border-radius: 0.75rem;
  padding: 0.58rem 0.82rem;
  color: #cbd5e1;
  font-size: 0.93rem;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav a:hover {
  color: #67e8f9;
  background: rgba(51, 65, 85, 0.68);
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.search-box {
  position: relative;
  width: min(18rem, 22vw);
}

.search-box input,
.toolbar-input,
.toolbar-select {
  width: 100%;
  border: 1px solid rgba(100, 116, 139, 0.65);
  border-radius: 0.9rem;
  padding: 0.72rem 1rem;
  color: #e2e8f0;
  background: rgba(30, 41, 59, 0.62);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.search-box input {
  padding-left: 2.45rem;
}

.search-box input:focus,
.toolbar-input:focus,
.toolbar-select:focus {
  border-color: rgba(34, 211, 238, 0.86);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.14);
  background: rgba(15, 23, 42, 0.80);
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 0.85rem;
  color: #94a3b8;
  transform: translateY(-50%);
}

.menu-toggle {
  display: none;
  border-radius: 0.85rem;
  padding: 0.7rem 0.85rem;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.68);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--site-line);
  padding: 0.8rem 1rem 1rem;
  background: rgba(15, 23, 42, 0.96);
}

.mobile-nav.is-open {
  display: grid;
  gap: 0.35rem;
}

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

.hero {
  position: relative;
  min-height: clamp(34rem, 78vh, 48rem);
  overflow: hidden;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.hero-stage {
  position: absolute;
  inset: 0;
}

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.72) 38%, rgba(15, 23, 42, 0.22) 68%, rgba(15, 23, 42, 0.66) 100%),
    linear-gradient(0deg, #0f172a 0%, rgba(15, 23, 42, 0.22) 50%, rgba(2, 6, 23, 0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 2rem));
  min-height: clamp(34rem, 78vh, 48rem);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(18rem, 0.72fr);
  align-items: end;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(5rem, 10vh, 8rem) 0 clamp(3rem, 8vh, 5rem);
}

.hero-copy {
  max-width: 46rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  color: #67e8f9;
  background: rgba(8, 145, 178, 0.12);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-title {
  margin-top: 1.15rem;
  font-size: clamp(2.65rem, 6vw, 5.8rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: #ffffff;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

.hero-summary {
  max-width: 42rem;
  margin-top: 1.2rem;
  color: #cbd5e1;
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.75;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

.meta-pill,
.tag-pill,
.rank-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  padding: 0.38rem 0.72rem;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.62);
  font-size: 0.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.84rem 1.18rem;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.btn-primary {
  color: #082f49;
  background: linear-gradient(90deg, #22d3ee, #60a5fa);
  box-shadow: 0 20px 45px rgba(34, 211, 238, 0.22);
}

.btn-secondary {
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: rgba(15, 23, 42, 0.55);
}

.btn-ghost {
  color: #67e8f9;
  background: rgba(8, 145, 178, 0.11);
}

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

.hero-panel {
  align-self: center;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 1.5rem;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.58);
  box-shadow: 0 30px 90px rgba(2, 6, 23, 0.48);
  backdrop-filter: blur(16px);
}

.hero-panel img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 1rem;
}

.hero-panel-title {
  margin-top: 1rem;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
}

.hero-panel-text {
  margin-top: 0.4rem;
  color: #94a3b8;
  font-size: 0.92rem;
}

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

.hero-dot {
  width: 2.35rem;
  height: 0.28rem;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.32);
  transition: width 0.3s ease, background-color 0.3s ease;
}

.hero-dot.is-active {
  width: 3.5rem;
  background: #22d3ee;
}

.section {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2.6rem, 6vw, 4.6rem) 0;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.section-kicker {
  color: #22d3ee;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title {
  margin-top: 0.35rem;
  color: #ffffff;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-desc {
  margin-top: 0.55rem;
  max-width: 46rem;
  color: #94a3b8;
  line-height: 1.7;
}

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

.movie-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--site-radius);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.76), rgba(15, 23, 42, 0.72));
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.24);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  border-color: rgba(34, 211, 238, 0.42);
  box-shadow: 0 28px 70px rgba(8, 145, 178, 0.16);
  transform: translateY(-4px);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

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

.movie-card:hover .movie-poster {
  transform: scale(1.06);
  filter: saturate(1.1);
}

.card-badge,
.card-type {
  position: absolute;
  z-index: 2;
  top: 0.75rem;
  border-radius: 999px;
  padding: 0.3rem 0.58rem;
  color: #e0f2fe;
  background: rgba(2, 6, 23, 0.66);
  font-size: 0.72rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.card-badge {
  left: 0.75rem;
}

.card-type {
  right: 0.75rem;
}

.movie-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem;
}

.movie-card-title {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 850;
  line-height: 1.32;
}

.movie-card-title a:hover {
  color: #67e8f9;
}

.movie-meta {
  margin-top: 0.42rem;
  color: #94a3b8;
  font-size: 0.82rem;
}

.movie-line {
  display: -webkit-box;
  min-height: 3.2em;
  margin-top: 0.7rem;
  overflow: hidden;
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.85rem;
}

.tag-pill {
  border-color: rgba(34, 211, 238, 0.15);
  padding: 0.28rem 0.55rem;
  color: #a5f3fc;
  background: rgba(8, 145, 178, 0.10);
  font-size: 0.72rem;
}

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

.category-card {
  min-height: 11.5rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1.35rem;
  padding: 1.25rem;
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.18), transparent 45%),
    linear-gradient(135deg, rgba(30, 41, 59, 0.88), rgba(15, 23, 42, 0.78));
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.24);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
  border-color: rgba(34, 211, 238, 0.38);
  transform: translateY(-4px);
}

.category-title {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 900;
}

.category-desc {
  margin-top: 0.65rem;
  color: #94a3b8;
  line-height: 1.65;
}

.category-more {
  display: inline-flex;
  margin-top: 1.1rem;
  color: #67e8f9;
  font-weight: 800;
}

.rank-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.rank-item {
  display: grid;
  grid-template-columns: auto 5.2rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 1.2rem;
  padding: 0.8rem;
  background: rgba(15, 23, 42, 0.64);
}

.rank-number {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #082f49;
  background: linear-gradient(135deg, #22d3ee, #60a5fa);
  font-weight: 900;
}

.rank-cover {
  width: 5.2rem;
  aspect-ratio: 4 / 5;
  border-radius: 0.85rem;
  object-fit: cover;
}

.rank-title {
  color: #ffffff;
  font-weight: 850;
}

.rank-title:hover {
  color: #67e8f9;
}

.rank-text {
  display: -webkit-box;
  margin-top: 0.38rem;
  overflow: hidden;
  color: #94a3b8;
  font-size: 0.85rem;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page-hero {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5.5rem) 0 2rem;
}

.page-hero-panel {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1.8rem;
  padding: clamp(1.4rem, 4vw, 2.2rem);
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.18), transparent 36%),
    linear-gradient(135deg, rgba(30, 41, 59, 0.84), rgba(15, 23, 42, 0.82));
  box-shadow: 0 30px 90px rgba(2, 6, 23, 0.28);
}

.page-title {
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 950;
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.page-desc {
  max-width: 56rem;
  margin-top: 0.9rem;
  color: #cbd5e1;
  line-height: 1.8;
}

.toolbar {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12rem 12rem;
  gap: 0.85rem;
  padding: 1rem 0 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: #94a3b8;
  font-size: 0.9rem;
}

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

.detail-hero {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(16rem, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(1.4rem, 4vw, 3rem);
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.detail-cover-wrap {
  position: sticky;
  top: 6rem;
  align-self: start;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1.5rem;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.62);
  box-shadow: 0 30px 90px rgba(2, 6, 23, 0.34);
}

.detail-cover {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 1rem;
  object-fit: cover;
}

.detail-content {
  min-width: 0;
}

.detail-title {
  margin-top: 0.8rem;
  color: #ffffff;
  font-size: clamp(2.1rem, 5vw, 4.5rem);
  font-weight: 950;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.detail-intro {
  margin-top: 1rem;
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.78;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.info-cell {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  background: rgba(30, 41, 59, 0.45);
}

.info-label {
  color: #94a3b8;
  font-size: 0.76rem;
}

.info-value {
  margin-top: 0.25rem;
  color: #e2e8f0;
  font-weight: 800;
}

.player-section {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  padding-bottom: 2rem;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 1.5rem;
  background: #020617;
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.5);
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(34, 211, 238, 0.18), transparent 26%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.48));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-button {
  display: grid;
  width: clamp(4.2rem, 8vw, 6.4rem);
  height: clamp(4.2rem, 8vw, 6.4rem);
  place-items: center;
  border-radius: 999px;
  color: #082f49;
  background: linear-gradient(135deg, #22d3ee, #60a5fa);
  box-shadow: 0 0 0 12px rgba(34, 211, 238, 0.10), 0 24px 70px rgba(34, 211, 238, 0.34);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  transform: translateX(0.1rem);
}

.article-block {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 1.4rem;
  padding: clamp(1.2rem, 3vw, 1.8rem);
  background: rgba(15, 23, 42, 0.56);
}

.article-block + .article-block {
  margin-top: 1rem;
}

.article-block h2 {
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 900;
}

.article-block p {
  margin-top: 0.75rem;
  color: #cbd5e1;
  line-height: 1.82;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), #020617);
}

.footer-inner {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0;
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 0.8fr);
  gap: 1.5rem;
}

.footer-title {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 900;
}

.footer-text,
.footer-links a {
  color: #94a3b8;
  font-size: 0.92rem;
  line-height: 1.7;
}

.footer-links {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

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

.hidden-card {
  display: none !important;
}

.search-results-note {
  color: #94a3b8;
  line-height: 1.7;
}

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

  .search-box {
    width: min(19rem, 34vw);
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 18rem;
  }

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

@media (max-width: 900px) {
  .header-inner {
    min-height: 4.25rem;
  }

  .search-box {
    display: none;
  }

  .hero,
  .hero-content {
    min-height: 42rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-items: end;
  }

  .hero-panel {
    display: none;
  }

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

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

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

  .detail-cover-wrap {
    position: relative;
    top: 0;
    max-width: 24rem;
  }

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

@media (max-width: 620px) {
  .header-inner,
  .section,
  .page-hero,
  .toolbar,
  .detail-hero,
  .player-section,
  .footer-inner {
    width: min(100% - 1rem, 1280px);
  }

  .logo-subtitle {
    display: none;
  }

  .hero,
  .hero-content {
    min-height: 38rem;
  }

  .hero-title {
    font-size: clamp(2.25rem, 15vw, 3.6rem);
  }

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

  .movie-grid,
  .category-grid,
  .rank-list,
  .footer-inner,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: auto 4.6rem minmax(0, 1fr);
  }

  .rank-cover {
    width: 4.6rem;
  }
}
