:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.72);
  --bg-card-solid: #111827;
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(34, 211, 238, 0.28);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --orange: #fb923c;
  --green: #34d399;
  --pink: #f472b6;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.52);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.14), transparent 28rem),
    radial-gradient(circle at 80% 10%, rgba(59, 130, 246, 0.16), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.52));
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  backdrop-filter: blur(18px);
  transition: background 0.28s ease, box-shadow 0.28s ease;
}

.site-header.is-scrolled {
  background: rgba(2, 6, 23, 0.94);
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.38);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 14px 28px rgba(34, 211, 238, 0.18);
}

.logo-text {
  font-size: 1.35rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #67e8f9, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  flex: 1;
}

.nav-link,
.mobile-nav-link {
  color: var(--muted-strong);
  font-size: 0.95rem;
  font-weight: 650;
  transition: color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: #ffffff;
}

.nav-link.is-active {
  position: relative;
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: #ffffff;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
}

.mobile-nav.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-nav-link {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.6);
}

main {
  padding-top: 76px;
}

.hero-carousel {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  isolation: isolate;
}

.hero-glow {
  position: absolute;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.34;
  z-index: 0;
}

.hero-glow-a {
  top: 8%;
  left: 4%;
  background: var(--cyan);
}

.hero-glow-b {
  right: 6%;
  bottom: 10%;
  background: var(--blue);
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: saturate(1.1) contrast(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.78) 46%, rgba(2, 6, 23, 0.38) 100%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.1), #020617 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.62fr);
  align-items: center;
  gap: 56px;
  padding: 44px 0 84px;
}

.hero-copy {
  max-width: 760px;
}

.hero-kicker,
.section-eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
  max-width: 920px;
}

.hero-intro {
  max-width: 660px;
  margin: 24px 0 30px;
  color: var(--muted-strong);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.85;
}

.hero-feature {
  max-width: 620px;
  padding: 22px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.52);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-feature span {
  display: inline-flex;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 850;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.22);
}

.hero-feature h2,
.hero-feature h3 {
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
}

.hero-feature p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.7;
}

.hero-actions,
.slim-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 16px 34px rgba(34, 211, 238, 0.24);
}

.btn-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.btn-soft {
  color: #c8f7ff;
  border-color: rgba(34, 211, 238, 0.3);
  background: rgba(34, 211, 238, 0.1);
}

.hero-poster {
  position: relative;
  width: min(360px, 100%);
  justify-self: end;
  aspect-ratio: 2 / 3;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(2, 6, 23, 0.72);
  transform: rotate(2deg);
  transition: transform 0.35s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) scale(1.025);
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  z-index: 2;
}

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

.hero-play,
.card-play {
  position: absolute;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
}

.hero-play {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.45rem;
}

.hero-dots {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
  transition: width 0.22s ease, background 0.22s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.hero-search {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(780px, calc(100% - 32px));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-search input,
.filter-controls input,
.filter-controls select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  outline: none;
  padding: 0 16px;
}

.hero-search input:focus,
.filter-controls input:focus,
.filter-controls select:focus {
  border-color: rgba(34, 211, 238, 0.58);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.1);
}

.hero-search button {
  min-height: 48px;
  border: 0;
  border-radius: 16px;
  color: #ffffff;
  font-weight: 850;
  padding: 0 22px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  cursor: pointer;
}

.page-section,
.inner-hero,
.category-hero,
.detail-hero,
.player-section {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.page-section {
  margin-top: 72px;
}

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

.section-heading h2,
.inner-hero h1,
.category-hero h1,
.detail-info h1 {
  margin: 0;
  color: #ffffff;
  letter-spacing: -0.04em;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.65rem);
}

.section-heading p:not(.section-eyebrow) {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-link {
  color: var(--cyan);
  font-weight: 850;
  white-space: nowrap;
}

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

.featured-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 24px;
}

.movie-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 18px 55px rgba(2, 6, 23, 0.24);
  backdrop-filter: blur(14px);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: var(--line-strong);
  box-shadow: 0 26px 70px rgba(34, 211, 238, 0.12);
}

.featured-card:first-child {
  grid-row: span 2;
}

.card-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #111827;
}

.featured-card:first-child .card-poster {
  aspect-ratio: 16 / 11;
}

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

.movie-card:hover .card-poster img {
  transform: scale(1.07);
  opacity: 0.86;
}

.card-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(2, 6, 23, 0.92) 100%);
}

.card-play {
  left: 50%;
  top: 50%;
  z-index: 3;
  transform: translate(-50%, -50%) scale(0.88);
  opacity: 0;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

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

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 850;
  background: rgba(34, 211, 238, 0.82);
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 16px;
}

.card-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-title a:hover {
  color: var(--cyan);
}

.card-desc {
  min-height: 3.2em;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.card-meta span {
  color: var(--muted-strong);
  font-size: 0.8rem;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #c8f7ff;
  font-size: 0.74rem;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.18);
}

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

.category-tile,
.category-overview-card a {
  position: relative;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(59, 130, 246, 0.08)),
    rgba(15, 23, 42, 0.72);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-tile:hover,
.category-overview-card a:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
}

.category-tile span,
.category-overview-card h2 {
  font-size: 1.45rem;
  font-weight: 900;
}

.category-tile strong,
.category-count {
  color: var(--cyan);
  font-size: 2.6rem;
  font-weight: 900;
}

.category-tile small,
.category-overview-card p {
  color: var(--muted);
  line-height: 1.65;
}

.tile-thumbs,
.category-overview-art,
.category-hero-covers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.tile-thumbs img,
.category-overview-art img,
.category-hero-covers img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
}

.category-overview-card a {
  min-height: 360px;
}

.genre-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-card);
}

.genre-cloud a {
  padding: 10px 15px;
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(30, 41, 59, 0.82);
  border: 1px solid var(--line);
}

.genre-cloud a:hover {
  color: #ffffff;
  border-color: var(--line-strong);
}

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

.rank-item {
  display: grid;
  grid-template-columns: auto 64px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.64);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  border-color: var(--line-strong);
}

.rank-number {
  color: var(--cyan);
  font-size: 1.35rem;
  font-weight: 900;
}

.rank-item img {
  width: 64px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
}

.rank-info strong,
.rank-info small {
  display: block;
}

.rank-info small {
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.5;
}

.inner-hero,
.category-hero {
  margin-top: 48px;
  padding: 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 15% 10%, rgba(34, 211, 238, 0.18), transparent 24rem),
    radial-gradient(circle at 85% 20%, rgba(59, 130, 246, 0.18), transparent 26rem),
    rgba(15, 23, 42, 0.62);
  box-shadow: var(--shadow);
}

.inner-hero h1,
.category-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
}

.inner-hero p:not(.section-eyebrow),
.category-hero p:not(.section-eyebrow) {
  max-width: 760px;
  color: var(--muted-strong);
  line-height: 1.8;
  font-size: 1.08rem;
}

.category-hero {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 430px);
  align-items: center;
  gap: 32px;
}

.category-hero-covers {
  transform: rotate(1deg);
}

.category-hero-covers img:nth-child(even) {
  margin-top: 36px;
}

.filter-panel {
  width: min(1180px, calc(100% - 32px));
  margin: 38px auto 0;
  display: grid;
  grid-template-columns: 0.6fr 1fr;
  align-items: end;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.74);
  backdrop-filter: blur(14px);
}

.filter-panel h2 {
  margin: 0;
  font-size: 1.8rem;
}

.filter-controls {
  display: grid;
  grid-template-columns: 1fr 160px 160px;
  gap: 12px;
}

.filter-result-bar {
  margin-bottom: 18px;
  color: var(--muted-strong);
}

.filter-result-bar span:first-child {
  color: var(--cyan);
  font-weight: 900;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.7);
}

.ranking-cover {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 18px;
}

.ranking-cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.ranking-cover span {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
  color: #ffffff;
  background: rgba(34, 211, 238, 0.9);
}

.ranking-detail h2 {
  margin: 0 0 10px;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.ranking-detail p {
  color: var(--muted-strong);
  line-height: 1.7;
}

.detail-hero {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 38px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(59, 130, 246, 0.08)),
    rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow);
}

.detail-cover {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.52);
}

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

.detail-info h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.08;
}

.detail-one-line {
  color: var(--muted-strong);
  font-size: 1.1rem;
  line-height: 1.8;
  margin: 20px 0 24px;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.detail-meta-grid span {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--muted-strong);
  background: rgba(2, 6, 23, 0.28);
}

.detail-meta-grid strong {
  color: var(--cyan);
  font-size: 0.78rem;
}

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

.player-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: var(--radius-lg);
  background: #000000;
  box-shadow: 0 34px 90px rgba(2, 6, 23, 0.54);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.86)),
    rgba(2, 6, 23, 0.16);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-button {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 2rem;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 45px rgba(34, 211, 238, 0.28);
}

.player-overlay strong {
  font-size: clamp(1.2rem, 3vw, 2.4rem);
}

.player-overlay em {
  color: var(--muted-strong);
  font-style: normal;
}

.narrow-section {
  width: min(920px, calc(100% - 32px));
}

.detail-content {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.66);
}

.detail-content h2 {
  margin: 0 0 14px;
  font-size: 1.6rem;
}

.detail-content h2:not(:first-child) {
  margin-top: 30px;
}

.detail-content p {
  color: var(--muted-strong);
  line-height: 2;
  font-size: 1.02rem;
}

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

.prev-next a {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.68);
}

.prev-next span,
.compact-card small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 6px;
}

.prev-next strong {
  color: #ffffff;
}

.compact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.compact-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.66);
}

.compact-card:hover {
  border-color: var(--line-strong);
}

.compact-card img {
  width: 74px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
}

.compact-card strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
}

.site-footer {
  margin-top: 96px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.68);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
}

.footer-brand p {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.7;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  gap: 12px 22px;
}

.footer-links a {
  color: var(--muted-strong);
}

.footer-links a:hover {
  color: var(--cyan);
}

.footer-bottom {
  padding: 20px 16px 30px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

[data-filter-card].is-hidden {
  display: none;
}

@media (max-width: 1100px) {
  .desktop-nav {
    gap: 14px;
  }

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

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

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

  .menu-toggle {
    display: block;
  }

  .hero-content,
  .category-hero,
  .detail-hero,
  .filter-panel,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-content {
    min-height: 680px;
    padding-top: 38px;
    gap: 28px;
  }

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

  .featured-grid,
  .ranking-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

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

  .ranking-row {
    grid-template-columns: 112px 1fr;
  }

  .ranking-row .btn {
    grid-column: 1 / -1;
  }
}

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

  main {
    padding-top: 66px;
  }

  .logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .logo-text {
    font-size: 1.05rem;
  }

  .hero-carousel {
    min-height: 760px;
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: 2.45rem;
  }

  .hero-feature {
    padding: 18px;
  }

  .hero-search {
    grid-template-columns: 1fr;
    bottom: 14px;
  }

  .hero-dots {
    bottom: 126px;
  }

  .page-section {
    margin-top: 48px;
  }

  .section-heading {
    display: block;
  }

  .section-link {
    display: inline-flex;
    margin-top: 12px;
  }

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

  .card-body {
    padding: 12px;
  }

  .card-desc {
    display: none;
  }

  .category-grid,
  .category-overview-grid,
  .prev-next {
    grid-template-columns: 1fr;
  }

  .inner-hero,
  .category-hero,
  .detail-hero {
    padding: 26px;
    border-radius: 22px;
  }

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

  .player-button {
    width: 66px;
    height: 66px;
  }

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