:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.72);
  --bg-card-strong: rgba(30, 41, 59, 0.9);
  --border: rgba(148, 163, 184, 0.18);
  --border-strong: rgba(34, 211, 238, 0.36);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --cyan: #22d3ee;
  --cyan-dark: #0891b2;
  --blue: #60a5fa;
  --orange: #fb923c;
  --green: #4ade80;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.45);
  --radius: 24px;
  --container: min(1180px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 5%, rgba(34, 211, 238, 0.18), transparent 30rem),
    radial-gradient(circle at 88% 20%, rgba(59, 130, 246, 0.16), transparent 26rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

img {
  display: block;
  max-width: 100%;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(30, 41, 59, 0.9));
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: white;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  box-shadow: 0 14px 40px rgba(2, 6, 23, 0.35);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: var(--container);
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #082f49;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.35);
  font-size: 16px;
  font-weight: 900;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 850;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  color: var(--muted-strong);
  font-weight: 650;
  font-size: 14px;
}

.desktop-nav a {
  position: relative;
  transition: color 0.25s ease;
  white-space: nowrap;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  transition: right 0.25s ease;
}

.desktop-nav a:hover {
  color: var(--cyan);
}

.desktop-nav a:hover::after {
  right: 0;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.68);
}

.header-search input {
  width: 180px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  padding: 8px 4px 8px 12px;
}

.header-search button,
.primary-button,
.hero-search-form button {
  border: 0;
  border-radius: 999px;
  color: white;
  cursor: pointer;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 16px 36px rgba(34, 211, 238, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.header-search button {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 750;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  font-weight: 800;
}

.primary-button:hover,
.hero-search-form button:hover,
.header-search button:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.08);
  box-shadow: 0 22px 46px rgba(34, 211, 238, 0.32);
}

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(12px);
  transition: background 0.25s ease, transform 0.25s ease;
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  color: white;
  background: rgba(51, 65, 85, 0.62);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: white;
}

.mobile-nav {
  display: none;
  width: var(--container);
  margin: 0 auto;
  padding: 0 0 18px;
  gap: 8px;
  flex-direction: column;
}

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.35);
}

.mobile-nav a:hover {
  color: var(--cyan);
  background: rgba(51, 65, 85, 0.65);
}

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

.hero-carousel {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: #020617;
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-gradient-bottom {
  background: linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.86) 34%, transparent 100%);
}

.hero-gradient-side {
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.48) 42%, transparent 72%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1180px) / 2));
  bottom: clamp(64px, 12vh, 120px);
  z-index: 3;
  max-width: 720px;
  padding-right: 24px;
}

.hero-category,
.section-kicker,
.category-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  color: white;
  background: rgba(6, 182, 212, 0.9);
  backdrop-filter: blur(10px);
}

.hero-category {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 800;
}

.hero-content h1 {
  margin: 18px 0 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  font-weight: 900;
  text-wrap: balance;
}

.hero-content p {
  max-width: 680px;
  margin: 0;
  color: #cbd5e1;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-size: 36px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: translateY(-50%) scale(1.08);
}

.hero-prev {
  left: 28px;
}

.hero-next {
  right: 28px;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--cyan);
}

.site-main {
  width: var(--container);
  margin: 0 auto;
  padding: 72px 0 90px;
}

.page-main {
  padding-top: 38px;
}

.search-panel,
.editor-banner,
.page-hero,
.detail-hero,
.player-section,
.detail-article,
.related-sidebar,
.category-overview-card,
.category-showcase-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.78), rgba(30, 41, 59, 0.42));
  box-shadow: var(--shadow);
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
  gap: 28px;
  align-items: center;
  padding: clamp(24px, 4vw, 42px);
  margin-bottom: 34px;
}

.search-panel h2,
.page-hero h1,
.editor-copy h2,
.section-heading h2 {
  margin: 8px 0 10px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.045em;
  font-weight: 900;
}

.search-panel p,
.page-hero p,
.editor-copy p,
.section-heading p,
.category-showcase-head p,
.category-overview-main p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-search-form {
  display: flex;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.5);
}

.hero-search-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  padding: 0 18px;
}

.hero-search-form button {
  padding: 12px 22px;
  font-weight: 850;
}

.section-kicker {
  padding: 6px 11px;
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.13);
  border: 1px solid rgba(34, 211, 238, 0.2);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 76px;
}

.stats-grid div {
  min-height: 124px;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.55);
}

.stats-grid strong {
  font-size: clamp(32px, 5vw, 50px);
  line-height: 1;
  color: var(--cyan);
}

.stats-grid span {
  color: var(--muted);
  font-weight: 650;
}

.content-section {
  margin-top: 76px;
}

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

.section-heading h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.section-link {
  color: var(--cyan);
  font-weight: 750;
  transition: color 0.25s ease;
}

.section-link:hover {
  color: #67e8f9;
}

.movie-grid {
  display: grid;
  gap: 20px;
}

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

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

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

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

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

.movie-card {
  min-width: 0;
}

.movie-card-link {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.25);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card-link:hover {
  border-color: var(--border-strong);
  transform: translateY(-5px);
  box-shadow: 0 26px 70px rgba(8, 145, 178, 0.18);
}

.movie-poster {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin: 0;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 58%);
  opacity: 0.8;
}

.category-pill,
.duration-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.category-pill {
  top: 12px;
  left: 12px;
}

.duration-pill {
  right: 12px;
  bottom: 12px;
  border-radius: 8px;
  color: white;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
}

.rank-badge {
  left: 12px;
  bottom: 12px;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, #facc15, #fb923c);
}

.play-pill {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: auto;
  border-radius: 999px;
  color: white;
  background: rgba(6, 182, 212, 0.92);
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.38);
  opacity: 0;
  transform: scale(0.86);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card-link:hover .play-pill {
  opacity: 1;
  transform: scale(1);
}

.movie-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.movie-card-body h3 {
  margin: 0;
  color: white;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 850;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.movie-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  color: #64748b;
  font-size: 12px;
}

.movie-meta-row span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.48);
}

.movie-card-horizontal .movie-card-link {
  display: grid;
  grid-template-columns: 45% minmax(0, 1fr);
}

.movie-card-horizontal .movie-poster {
  aspect-ratio: auto;
  height: 100%;
}

.movie-card-compact .movie-card-body {
  padding: 12px;
}

.movie-card-compact .movie-card-body h3 {
  font-size: 14px;
}

.movie-card-compact .movie-card-body p {
  display: none;
}

.movie-card-compact .movie-poster {
  aspect-ratio: 16 / 11;
}

.editor-banner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: center;
  margin-top: 86px;
  padding: clamp(24px, 4vw, 40px);
  background:
    radial-gradient(circle at 20% 10%, rgba(34, 211, 238, 0.16), transparent 24rem),
    linear-gradient(135deg, rgba(8, 47, 73, 0.65), rgba(30, 41, 59, 0.55));
}

.editor-copy p {
  max-width: 520px;
  margin-bottom: 24px;
}

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

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

.category-showcase-card,
.category-overview-card {
  padding: 22px;
}

.category-showcase-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.category-showcase-head h3,
.category-overview-main h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 900;
}

.category-showcase-head a,
.category-overview-samples a {
  color: var(--cyan);
  font-weight: 700;
}

.category-overview-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 20px;
}

.category-overview-main {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(37, 99, 235, 0.12)),
    rgba(2, 6, 23, 0.45);
}

.category-overview-main span {
  width: fit-content;
  margin-bottom: auto;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.12);
  font-weight: 850;
}

.category-overview-samples {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

.category-overview-samples a {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.5);
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.category-overview-samples a:hover {
  color: white;
  border-color: var(--border-strong);
  background: rgba(8, 145, 178, 0.16);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 6vw, 60px);
  margin-bottom: 26px;
}

.page-hero::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -100px;
  top: -100px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.12);
  filter: blur(8px);
}

.page-hero h1,
.page-hero p,
.page-hero span {
  position: relative;
  z-index: 1;
}

.page-hero p {
  max-width: 760px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--cyan);
}

.filter-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(140px, 190px));
  gap: 12px;
  margin: 28px 0 16px;
}

.filter-search {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-search span {
  color: var(--muted);
  font-weight: 700;
}

.filter-toolbar input,
.filter-toolbar select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 14px;
  outline: none;
  color: var(--text);
  background: rgba(15, 23, 42, 0.78);
  padding: 0 14px;
}

.filter-toolbar input:focus,
.filter-toolbar select:focus {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.08);
}

.filter-result-line {
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 700;
}

.filter-result-line span {
  color: var(--cyan);
}

.no-results {
  padding: 26px;
  border: 1px dashed var(--border-strong);
  border-radius: 18px;
  color: var(--muted-strong);
  text-align: center;
  background: rgba(6, 182, 212, 0.08);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 70px minmax(0, 1fr) 120px 90px 100px;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.58);
  transition: border-color 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

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

.rank-row img {
  width: 70px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
}

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

.rank-title {
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-hero {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: clamp(24px, 5vw, 54px);
  padding: clamp(24px, 5vw, 48px);
  margin-bottom: 30px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.48);
}

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

.detail-copy h1 {
  margin: 14px 0 14px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  font-weight: 950;
}

.detail-copy > p {
  max-width: 760px;
  color: var(--muted-strong);
  font-size: 18px;
  line-height: 1.85;
}

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

.detail-meta-grid span {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.58);
  text-align: center;
  font-weight: 750;
}

.detail-meta-grid strong {
  margin-right: 4px;
  color: var(--cyan);
  font-size: 24px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-cloud span {
  padding: 8px 12px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.08);
  font-weight: 700;
}

.player-section {
  overflow: hidden;
  margin: 30px 0;
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: black;
}

.video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: black;
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: white;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(6, 182, 212, 0.24), rgba(0, 0, 0, 0.58));
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 900;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.video-play-overlay span {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: var(--cyan-dark);
  box-shadow: 0 0 60px rgba(34, 211, 238, 0.35);
}

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

.source-panel {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 20px;
  border-top: 1px solid var(--border);
}

.source-panel h2 {
  margin: 0 0 6px;
}

.source-panel p {
  margin: 0;
  color: var(--muted);
}

.source-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.source-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.75);
  cursor: pointer;
}

.source-button.is-active,
.source-button:hover {
  color: white;
  border-color: var(--border-strong);
  background: rgba(6, 182, 212, 0.18);
}

.player-message {
  width: 100%;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.detail-article {
  padding: clamp(24px, 4vw, 38px);
}

.detail-article section + section {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.detail-article h2,
.related-sidebar h2 {
  margin: 0 0 16px;
  font-size: 25px;
  font-weight: 900;
}

.detail-article p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 2;
  font-size: 16px;
}

.movie-info-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.movie-info-list div {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.62);
}

.movie-info-list dt {
  color: var(--muted);
  font-weight: 750;
}

.movie-info-list dd {
  margin: 0;
  color: var(--text);
}

.related-sidebar {
  position: sticky;
  top: 96px;
  padding: 22px;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), #020617);
}

.footer-grid {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr) minmax(0, 0.9fr);
  gap: 38px;
  padding: 54px 0 30px;
}

.footer-grid p,
.footer-list a,
.footer-bottom {
  color: var(--muted);
}

.footer-grid h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

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

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

.footer-bottom {
  width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 0 30px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 13px;
}

[hidden] {
  display: none !important;
}

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

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

  .header-search {
    margin-left: auto;
  }

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

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

@media (max-width: 920px) {
  .hero-carousel {
    min-height: 520px;
    height: 74vh;
  }

  .hero-content {
    left: 22px;
    right: 22px;
    bottom: 72px;
  }

  .hero-arrow {
    display: none;
  }

  .search-panel,
  .editor-banner,
  .detail-hero,
  .detail-layout,
  .footer-grid,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

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

  .movie-grid-featured,
  .movie-grid-horizontal,
  .library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .detail-layout {
    display: block;
  }

  .related-sidebar {
    position: static;
    margin-top: 28px;
  }

  .source-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 680px) {
  .header-inner {
    min-height: 68px;
  }

  .brand-text small,
  .header-search {
    display: none;
  }

  .hero-content h1 {
    font-size: 38px;
  }

  .hero-actions,
  .hero-search-form,
  .section-heading,
  .footer-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .stats-grid,
  .movie-grid-featured,
  .movie-grid-horizontal,
  .movie-grid-compact,
  .library-grid,
  .category-showcase-grid,
  .category-overview-grid,
  .editor-grid,
  .compact-grid,
  .detail-meta-grid,
  .filter-toolbar {
    grid-template-columns: 1fr;
  }

  .movie-card-horizontal .movie-card-link {
    display: flex;
  }

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

  .rank-row span:nth-last-child(-n + 3) {
    display: none;
  }

  .source-buttons {
    width: 100%;
  }

  .source-button {
    flex: 1;
  }
}
