/* ==========================================================================
   NONTONGO — Stream Engine
   Futuristic streaming landing page / design system
   ========================================================================== */

:root {
  --bg: #04070f;
  --bg-soft: #070d18;
  --panel: rgba(10, 18, 32, 0.62);
  --panel-solid: #0a1322;
  --line: rgba(139, 184, 255, 0.13);
  --line-strong: rgba(154, 220, 255, 0.28);
  --text: #eef4ff;
  --muted: #94a4c4;
  --dim: #62718d;
  --cyan: #22e6ff;
  --violet: #8b5cf6;
  --pink: #ff3ea5;
  --lime: #b8ff5c;
  --green: #35f2a3;
  --red: #ff6b81;
  --grad: linear-gradient(105deg, #22e6ff 0%, #7c6cf8 48%, #ff3ea5 100%);
  --grad-text: linear-gradient(100deg, #22e6ff 0%, #9d7bff 45%, #ff5fb7 82%, #22e6ff 100%);
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --header-h: 76px;
  --radius: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-neon: 0 0 60px rgba(34, 230, 255, 0.12);
  --container: 1240px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 12% -10%, rgba(34, 230, 255, 0.07), transparent 60%),
    radial-gradient(800px 700px at 90% 8%, rgba(139, 92, 246, 0.09), transparent 62%),
    radial-gradient(900px 600px at 50% 110%, rgba(255, 62, 165, 0.05), transparent 60%);
}

body.no-scroll {
  overflow: hidden;
}

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

[hidden] {
  display: none !important;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1, h2, h3, h4, p, dl, dd, figure {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: rgba(34, 230, 255, 0.28);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #050a13;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(#1d334d, #16233a);
  border-radius: 99px;
  border: 2px solid #050a13;
}

::-webkit-scrollbar-thumb:hover {
  background: #24415f;
}

/* --------------------------------------------------------------------------
   Ambient background
   -------------------------------------------------------------------------- */

#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.75;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.4;
  will-change: transform;
}

.orb-a {
  width: 540px;
  height: 540px;
  top: -180px;
  left: -140px;
  background: radial-gradient(circle at 35% 35%, rgba(34, 230, 255, 0.5), transparent 68%);
  animation: floatOrb 22s ease-in-out infinite;
}

.orb-b {
  width: 620px;
  height: 620px;
  top: 18%;
  right: -260px;
  background: radial-gradient(circle at 55% 45%, rgba(139, 92, 246, 0.45), transparent 68%);
  animation: floatOrb 26s ease-in-out infinite reverse;
}

.orb-c {
  width: 480px;
  height: 480px;
  bottom: -180px;
  left: 32%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 62, 165, 0.3), transparent 70%);
  animation: floatOrb 30s ease-in-out infinite;
}

.grid-floor {
  position: absolute;
  left: -25%;
  bottom: -12vh;
  width: 150%;
  height: 68vh;
  background-image:
    linear-gradient(rgba(34, 230, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 230, 255, 0.14) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(560px) rotateX(63deg);
  transform-origin: center bottom;
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 68%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 68%);
  opacity: 0.5;
  animation: gridSlide 14s linear infinite;
}

.grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  opacity: 0.04;
  mix-blend-mode: overlay;
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 230, 255, 0.09), rgba(139, 92, 246, 0.045) 42%, transparent 68%);
  transform: translate3d(calc(var(--mx, 50vw) - 50%), calc(var(--my, 50vh) - 50%), 0);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  mix-blend-mode: screen;
}

body.cursor-on .cursor-glow {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Layout & utilities
   -------------------------------------------------------------------------- */

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
  position: relative;
}

#app {
  position: relative;
  z-index: 2;
  min-height: 70vh;
}

main:focus {
  outline: none;
}

.section {
  padding-top: clamp(58px, 7vw, 86px);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dim);
}

.eyebrow.cyan {
  color: var(--cyan);
}

.grad-text {
  background: var(--grad-text);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradFlow 9s linear infinite;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--cyan);
  color: #04101c;
  font-weight: 600;
  transition: top 0.25s ease;
}

.skip-link:focus {
  top: 12px;
}

/* --------------------------------------------------------------------------
   Buttons & pills
   -------------------------------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease, background 0.35s ease, border-color 0.35s ease, color 0.3s ease;
}

.btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.btn svg.icon-fill {
  fill: currentColor;
  stroke: none;
}

.btn-primary {
  background: var(--grad);
  background-size: 140% 100%;
  color: #031017;
  box-shadow: 0 12px 34px rgba(34, 230, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.55) 48%, transparent 72%);
  transform: translateX(-130%);
  transition: transform 0.75s var(--ease);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(34, 230, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-primary:hover::after {
  transform: translateX(130%);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--line-strong);
  color: var(--text);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(34, 230, 255, 0.08);
  border-color: rgba(34, 230, 255, 0.45);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
}

.btn-sm {
  height: 40px;
  padding: 0 16px;
  font-size: 0.8rem;
  border-radius: 11px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-btn:hover {
  color: var(--cyan);
  border-color: rgba(34, 230, 255, 0.45);
  background: rgba(34, 230, 255, 0.07);
  transform: translateY(-1px);
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.pill-btn:hover {
  color: var(--cyan);
  border-color: rgba(34, 230, 255, 0.4);
  background: rgba(34, 230, 255, 0.07);
}

.link-btn {
  border: 0;
  background: none;
  padding: 0;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.link-btn:hover {
  color: #fff;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s ease, gap 0.25s ease;
}

.link-arrow svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.link-arrow:hover {
  color: var(--cyan);
  gap: 12px;
}

.type-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(34, 230, 255, 0.3);
  background: rgba(34, 230, 255, 0.09);
  color: #a8f4ff;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  background: linear-gradient(to bottom, rgba(4, 7, 15, 0.78), rgba(4, 7, 15, 0.28));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.site-header.scrolled {
  background: rgba(4, 8, 16, 0.9);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  height: var(--header-h);
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 0 14px rgba(34, 230, 255, 0.28));
  transition: transform 0.4s var(--ease);
}

.brand:hover .brand-mark {
  transform: rotate(-6deg) scale(1.05);
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
}

.brand-text > span {
  color: var(--cyan);
}

.brand-text small {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 0.48rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--dim);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-inline: auto;
}

.main-nav > a {
  position: relative;
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.83rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.main-nav > a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}

.main-nav > a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.main-nav > a.is-active {
  color: #dffbff;
  border-color: rgba(34, 230, 255, 0.24);
  background: rgba(34, 230, 255, 0.06);
}

.main-nav > a.is-active::after {
  width: 18px;
}

.mobile-search {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 210px;
  height: 40px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  transition: width 0.4s var(--ease), border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.header-search:focus-within {
  width: 252px;
  border-color: rgba(34, 230, 255, 0.42);
  background: rgba(8, 16, 30, 0.85);
  box-shadow: 0 0 0 3px rgba(34, 230, 255, 0.08);
}

.header-search svg {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: var(--dim);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.header-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  color: var(--text);
  font-size: 0.82rem;
}

.header-search input::placeholder {
  color: var(--dim);
}

.header-search input::-webkit-search-cancel-button {
  display: none;
}

.header-search kbd {
  flex: none;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.62rem;
}

.menu-btn {
  display: none;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + 58px);
}

.hero::after {
  content: '';
  position: absolute;
  top: 14%;
  left: 46%;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.14), transparent 66%);
  filter: blur(30px);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: clamp(30px, 5vw, 68px);
  min-height: min(760px, calc(100vh - var(--header-h) - 60px));
  padding-bottom: clamp(30px, 5vw, 64px);
}

.hero-copy {
  position: relative;
  z-index: 3;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(10, 18, 32, 0.55);
  backdrop-filter: blur(12px);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: pulseDot 2.4s ease-in-out infinite;
}

.eyebrow-pill b {
  color: var(--dim);
  font-weight: 400;
}

.hero h1 {
  margin: 24px 0 22px;
  font-family: var(--font-display);
  font-size: clamp(2.85rem, 5.6vw, 5rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero h1 .line {
  display: block;
}

.hero h1 .thin {
  font-weight: 400;
  color: #c7d4ec;
}

.hero .lede {
  max-width: 53ch;
  color: var(--muted);
  font-size: clamp(0.94rem, 1.2vw, 1.06rem);
  line-height: 1.75;
}

.hero .lede strong {
  color: var(--text);
  font-weight: 500;
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 32px;
  max-width: 620px;
  padding: 7px;
  border: 1px solid rgba(154, 220, 255, 0.26);
  border-radius: 18px;
  background: rgba(7, 13, 25, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.hero-search:focus-within {
  border-color: rgba(34, 230, 255, 0.55);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(34, 230, 255, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-search .search-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 46px;
  flex: none;
  color: var(--cyan);
}

.hero-search .search-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.hero-search input {
  flex: 1;
  min-width: 0;
  height: 46px;
  border: 0;
  background: none;
  outline: none;
  color: var(--text);
  font-size: 0.94rem;
}

.hero-search input::placeholder {
  color: var(--dim);
}

.hero-search input::-webkit-search-cancel-button {
  display: none;
}

.hero-search .btn {
  height: 46px;
  border-radius: 12px;
  padding: 0 20px;
  flex: none;
}

.hero-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  min-height: 30px;
}

.hero-chips .chips-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-right: 2px;
}

.quick-chip {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 0.71rem;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.quick-chip:hover {
  color: var(--cyan);
  border-color: rgba(34, 230, 255, 0.4);
  background: rgba(34, 230, 255, 0.06);
  transform: translateY(-1px);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  max-width: 620px;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}

.hero-proof svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.8;
}

.hero-proof svg.icon-fill {
  fill: var(--cyan);
  stroke: none;
}

.page-search {
  margin-top: 22px;
  max-width: 580px;
}

/* Hero visual */

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 460px;
  perspective: 1400px;
  z-index: 2;
}

.holo-ring {
  position: absolute;
  width: min(540px, 110%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 40deg, transparent 0deg, rgba(34, 230, 255, 0.55) 70deg, transparent 150deg, rgba(255, 62, 165, 0.4) 250deg, transparent 330deg);
  -webkit-mask-image: radial-gradient(circle, transparent 46%, #000 56%, #000 60%, transparent 68%);
  mask-image: radial-gradient(circle, transparent 46%, #000 56%, #000 60%, transparent 68%);
  filter: blur(4px);
  opacity: 0.7;
  animation: spin 22s linear infinite;
  pointer-events: none;
}

.holo-ring.ring-2 {
  width: min(470px, 96%);
  animation-direction: reverse;
  animation-duration: 32s;
  opacity: 0.35;
  filter: blur(1px);
}

.hero-player {
  position: relative;
  width: min(560px, 100%);
  padding: 10px;
  border: 1px solid rgba(130, 200, 255, 0.24);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(17, 30, 54, 0.92), rgba(5, 10, 19, 0.97));
  box-shadow:
    0 50px 120px rgba(0, 0, 0, 0.7),
    0 0 90px rgba(34, 230, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: rotateY(-8deg) rotateX(4deg) rotateZ(0.5deg);
  transform-style: preserve-3d;
  transition: transform 0.8s var(--ease), box-shadow 0.8s ease;
  will-change: transform;
}

.hero-visual:hover .hero-player {
  transform: rotateY(-2deg) rotateX(1deg) rotateZ(0);
  box-shadow:
    0 60px 140px rgba(0, 0, 0, 0.75),
    0 0 120px rgba(34, 230, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.player-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 17px;
  overflow: hidden;
  background: radial-gradient(120% 100% at 30% 20%, #172743, #060b14 72%);
  isolation: isolate;
}

.player-screen > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  filter: saturate(1.15) contrast(1.05);
  transform: scale(1.03);
  transition: opacity 0.6s ease;
}

.player-screen .screen-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(3, 7, 14, 0.96) 4%, rgba(3, 7, 14, 0.3) 42%, rgba(3, 7, 14, 0.15) 70%, rgba(3, 7, 14, 0.55)),
    radial-gradient(120% 90% at 80% 0%, rgba(139, 92, 246, 0.2), transparent 55%);
}

.player-screen .scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0, 0, 0, 0.16) 3px, transparent 4px);
  opacity: 0.35;
  pointer-events: none;
}

.player-screen .scanbar {
  position: absolute;
  left: 0;
  right: 0;
  top: -30%;
  height: 28%;
  background: linear-gradient(to bottom, transparent, rgba(34, 230, 255, 0.08), transparent);
  animation: scan 6.5s linear infinite;
  pointer-events: none;
}

.screen-hud {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hud-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(4, 9, 18, 0.55);
  backdrop-filter: blur(10px);
  color: #d9eeff;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hud-chip.live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulseDot 2s infinite;
}

.hud-sound {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.hud-sound i {
  width: 2px;
  border-radius: 2px;
  background: var(--cyan);
  animation: eq 1.2s ease-in-out infinite;
}

.hud-sound i:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.hud-sound i:nth-child(2) { height: 90%; animation-delay: 0.3s; }
.hud-sound i:nth-child(3) { height: 60%; animation-delay: 0.5s; }
.hud-sound i:nth-child(4) { height: 100%; animation-delay: 0.2s; }

.screen-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(9, 20, 36, 0.45);
  backdrop-filter: blur(8px);
  transform: translate(-50%, -50%);
  z-index: 2;
  box-shadow: 0 0 0 0 rgba(34, 230, 255, 0.35), 0 20px 50px rgba(0, 0, 0, 0.5);
  animation: playPulse 3s ease-out infinite;
}

.screen-play svg {
  width: 24px;
  height: 24px;
  margin-left: 3px;
  fill: #fff;
  filter: drop-shadow(0 0 10px rgba(34, 230, 255, 0.8));
}

.screen-info {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 13px;
  z-index: 2;
}

.screen-info .screen-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--cyan);
}

.screen-info h3 {
  margin: 5px 0 9px;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.screen-progress {
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.screen-progress i {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(34, 230, 255, 0.7);
}

.screen-times {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  color: rgba(220, 236, 255, 0.65);
}

.hero-player-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 6px 2px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--dim);
}

.hero-player-bar code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #7f93b5;
}

.hero-player-bar .bar-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  color: var(--green);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.52rem;
}

.hero-player-bar .bar-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.float-card {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border: 1px solid rgba(150, 210, 255, 0.22);
  border-radius: 13px;
  background: rgba(8, 16, 29, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  animation: floatCard 7s ease-in-out infinite;
}

.float-card small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.48rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dim);
}

.float-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

.float-card .fc-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 9px;
  background: rgba(34, 230, 255, 0.1);
  border: 1px solid rgba(34, 230, 255, 0.22);
  color: var(--cyan);
}

.float-card .fc-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  stroke: none;
}

.float-card.card-score {
  top: 6%;
  right: -5%;
  animation-delay: -1.5s;
}

.float-card.card-audio {
  bottom: 13%;
  left: -6%;
  animation-delay: -3.5s;
}

.float-card .audio-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
}

.float-card .audio-bars i {
  width: 3px;
  border-radius: 2px;
  background: var(--pink);
  animation: eq 1s ease-in-out infinite;
}

.float-card .audio-bars i:nth-child(1) { height: 50%; }
.float-card .audio-bars i:nth-child(2) { height: 100%; animation-delay: 0.2s; }
.float-card .audio-bars i:nth-child(3) { height: 65%; animation-delay: 0.4s; }

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */

.marquee {
  position: relative;
  margin-top: clamp(26px, 4vw, 46px);
  padding: 15px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(6, 11, 21, 0.46);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}

.marquee-group {
  display: flex;
  align-items: center;
  flex: none;
}

.marquee-group span {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  margin-right: 26px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #7b8cab;
  white-space: nowrap;
}

.marquee-group span::after {
  content: '✦';
  font-size: 0.8rem;
  color: var(--cyan);
  opacity: 0.75;
}

/* --------------------------------------------------------------------------
   Section heading / content rows
   -------------------------------------------------------------------------- */

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-head .section-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 0.61rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.section-head .section-eyebrow::before {
  content: '';
  width: 16px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.section-head h2 em {
  font-style: normal;
  color: var(--dim);
  font-weight: 400;
}

.row-wrap {
  position: relative;
}

.media-row {
  display: flex;
  gap: 16px;
  padding: 4px 4px 20px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.media-row::-webkit-scrollbar {
  display: none;
}

.media-row > .connect-panel {
  width: 100%;
}

.row-arrow {
  position: absolute;
  top: 33%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(7, 13, 24, 0.88);
  backdrop-filter: blur(12px);
  color: var(--text);
  opacity: 0;
  transition: opacity 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

.row-arrow svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.row-arrow.prev { left: -15px; }
.row-arrow.next { right: -15px; }

.row-wrap:hover .row-arrow,
.row-arrow:focus-visible {
  opacity: 1;
}

.row-arrow:hover {
  border-color: rgba(34, 230, 255, 0.5);
  background: rgba(12, 24, 42, 0.95);
}

.row-arrow:disabled {
  opacity: 0 !important;
  pointer-events: none;
}

.media-card {
  flex: 0 0 190px;
  min-width: 0;
  scroll-snap-align: start;
  transition: transform 0.4s var(--ease);
}

.media-card:hover {
  transform: translateY(-6px);
}

.poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(150deg, #12233d, #070d18 70%);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
  isolation: isolate;
}

.media-card:hover .poster {
  border-color: rgba(34, 230, 255, 0.42);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6), 0 0 34px rgba(34, 230, 255, 0.14);
}

.poster > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), opacity 0.4s ease;
}

.media-card:hover .poster > img {
  transform: scale(1.07);
}

.no-img > img {
  opacity: 0;
}

.poster-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(34, 230, 255, 0.2), transparent 55%),
    radial-gradient(100% 100% at 90% 90%, rgba(255, 62, 165, 0.16), transparent 60%),
    linear-gradient(150deg, #10203a, #060b14);
}

.poster-fallback span {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: rgba(220, 240, 255, 0.18);
  letter-spacing: -0.05em;
}

.poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 7, 14, 0.92) 0%, rgba(3, 7, 14, 0.1) 38%, transparent 55%);
  pointer-events: none;
  z-index: 1;
}

.poster-top {
  position: absolute;
  top: 9px;
  left: 9px;
  right: 9px;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}

.poster-badge {
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  background: rgba(4, 9, 18, 0.6);
  backdrop-filter: blur(8px);
  color: #d6ebff;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.poster-badge.tv {
  color: #b9f2ff;
  border-color: rgba(34, 230, 255, 0.3);
  background: rgba(34, 230, 255, 0.12);
}

.poster-badge.anime {
  color: #ffc6e8;
  border-color: rgba(255, 62, 165, 0.32);
  background: rgba(255, 62, 165, 0.11);
}

.poster-score {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border-radius: 6px;
  background: rgba(4, 9, 18, 0.66);
  backdrop-filter: blur(8px);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 0.56rem;
}

.poster-score svg {
  width: 9px;
  height: 9px;
  fill: currentColor;
}

.card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(34, 230, 255, 0.9);
  color: #031018;
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.35s var(--ease);
  box-shadow: 0 0 30px rgba(34, 230, 255, 0.4);
}

.card-play svg {
  width: 17px;
  height: 17px;
  margin-left: 2px;
  fill: currentColor;
}

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

.card-info {
  padding: 11px 3px 0;
}

.card-info h3 {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #e3ecfb;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.25s ease;
}

.media-card:hover .card-info h3 {
  color: var(--cyan);
}

.card-info p {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Skeletons */

.skeleton-card {
  flex: 0 0 190px;
}

.sk-poster {
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.035) 25%, rgba(255, 255, 255, 0.085) 50%, rgba(255, 255, 255, 0.035) 75%);
  background-size: 240% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
  border: 1px solid var(--line);
}

.sk-line {
  height: 10px;
  margin-top: 12px;
  border-radius: 4px;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.035) 25%, rgba(255, 255, 255, 0.085) 50%, rgba(255, 255, 255, 0.035) 75%);
  background-size: 240% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
}

.sk-line.short {
  width: 46%;
  height: 8px;
  margin-top: 7px;
}

/* Connect panel */

.connect-panel {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 26px 28px;
  border: 1px dashed rgba(34, 230, 255, 0.26);
  border-radius: 18px;
  background:
    radial-gradient(600px 160px at 0% 50%, rgba(34, 230, 255, 0.06), transparent 70%),
    rgba(8, 15, 27, 0.5);
}

.connect-panel .connect-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex: none;
  border-radius: 14px;
  border: 1px solid rgba(34, 230, 255, 0.3);
  background: rgba(34, 230, 255, 0.08);
  color: var(--cyan);
}

.connect-panel .connect-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.connect-panel h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.connect-panel p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  max-width: 62ch;
}

.connect-panel .btn {
  margin-left: auto;
  flex: none;
}

.row-error {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid rgba(255, 107, 129, 0.22);
  border-radius: 16px;
  background: rgba(255, 107, 129, 0.05);
  color: var(--muted);
  font-size: 0.84rem;
}

.row-error strong {
  display: block;
  margin-bottom: 2px;
  color: #ffd7dd;
  font-family: var(--font-display);
  font-weight: 600;
}

.row-error .btn {
  margin-left: auto;
  flex: none;
}

/* --------------------------------------------------------------------------
   Feature cards
   -------------------------------------------------------------------------- */

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

.feature-card {
  position: relative;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(15, 26, 46, 0.66), rgba(7, 12, 22, 0.6));
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.35s ease, box-shadow 0.4s ease;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -40%;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 230, 255, 0.16), transparent 70%);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 230, 255, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 34px rgba(34, 230, 255, 0.07);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border: 1px solid rgba(34, 230, 255, 0.26);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(34, 230, 255, 0.13), rgba(139, 92, 246, 0.1));
  color: var(--cyan);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.feature-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   API docs / terminal
   -------------------------------------------------------------------------- */

.docs-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 4.5vw, 64px);
  align-items: start;
}

.docs-copy .lede {
  margin-top: 14px;
  max-width: 48ch;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

.endpoint-list {
  margin-top: 26px;
  border-top: 1px solid var(--line);
}

.endpoint-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.endpoint-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
}

.endpoint-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.endpoint-body {
  min-width: 0;
  flex: 1;
}

.endpoint-body small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--dim);
}

.endpoint-body code {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #a9c1e2;
}

.endpoint-item .copy-mini {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.endpoint-item .copy-mini svg {
  width: 14px;
  height: 14px;
}

.terminal {
  position: relative;
  border: 1px solid rgba(34, 230, 255, 0.22);
  border-radius: 20px;
  background: linear-gradient(170deg, #07101d, #04080f);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(34, 230, 255, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff5f57;
}

.window-dots i:nth-child(2) { background: #febc2e; }
.window-dots i:nth-child(3) { background: #28c840; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--dim);
  letter-spacing: 0.05em;
}

.terminal-copy {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.terminal-copy svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.terminal-copy:hover {
  color: var(--cyan);
  border-color: rgba(34, 230, 255, 0.4);
}

.doc-tabs {
  display: flex;
  gap: 4px;
  padding: 12px 14px 0;
  border-bottom: 1px solid var(--line);
}

.doc-tab {
  padding: 8px 14px 11px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.doc-tab:hover {
  color: var(--muted);
}

.doc-tab.is-active {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.code-block {
  margin: 0;
  min-height: 330px;
  max-height: 420px;
  padding: 22px 20px;
  overflow: auto;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.9;
  color: #c7d8f2;
  tab-size: 2;
}

.code-block .tok-c { color: #5d6f8e; }
.code-block .tok-k { color: #ff82c8; }
.code-block .tok-s { color: #b8ff5c; }
.code-block .tok-u { color: #7fdbff; }
.code-block .tok-p { color: #ffd166; }
.code-block .tok-t { color: #b9a6ff; }

.terminal-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--dim);
}

.terminal-foot i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  position: relative;
  margin-top: clamp(60px, 8vw, 96px);
  padding: clamp(36px, 6vw, 64px);
  border: 1px solid rgba(34, 230, 255, 0.2);
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(760px 300px at 12% 0%, rgba(34, 230, 255, 0.14), transparent 60%),
    radial-gradient(700px 320px at 92% 110%, rgba(255, 62, 165, 0.13), transparent 62%),
    rgba(7, 13, 24, 0.82);
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(140, 190, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 190, 255, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(80% 100% at 50% 0%, #000, transparent 75%);
  mask-image: radial-gradient(80% 100% at 50% 0%, #000, transparent 75%);
  pointer-events: none;
}

.cta-band::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(34, 230, 255, 0.16);
  box-shadow: 0 0 80px rgba(34, 230, 255, 0.08) inset;
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-inner h2 {
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.8vw, 2.9rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.cta-inner p {
  margin-top: 12px;
  max-width: 52ch;
  color: var(--muted);
  font-size: 0.9rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: none;
}

/* --------------------------------------------------------------------------
   Browse / search views
   -------------------------------------------------------------------------- */

.page-head {
  padding-top: calc(var(--header-h) + 54px);
  padding-bottom: 12px;
}

.page-head .eyebrow {
  color: var(--cyan);
}

.page-head h1 {
  margin: 10px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.page-head .page-lede {
  max-width: 62ch;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.7;
}

.page-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.type-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.tab svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tab:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
}

.tab.is-active {
  color: #dffcff;
  border-color: rgba(34, 230, 255, 0.4);
  background: rgba(34, 230, 255, 0.08);
  box-shadow: inset 0 0 20px rgba(34, 230, 255, 0.05);
}

.result-count {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--dim);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 24px 18px;
  margin-top: 26px;
}

.media-grid .media-card {
  flex: none;
}

.grid-skeleton {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 24px 18px;
  margin-top: 26px;
}

.grid-skeleton .sk-poster {
  width: 100%;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 38px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 24px;
  margin-top: 26px;
  border: 1px dashed var(--line-strong);
  border-radius: 20px;
  background: rgba(8, 15, 27, 0.4);
}

.empty-state .empty-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(34, 230, 255, 0.06);
  color: var(--cyan);
}

.empty-state .empty-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.empty-state h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.empty-state p {
  margin-top: 7px;
  max-width: 48ch;
  color: var(--muted);
  font-size: 0.85rem;
}

.empty-state .btn {
  margin-top: 22px;
}

.search-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
}

.search-summary b {
  color: var(--muted);
  font-weight: 500;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 209, 102, 0.22);
  border-radius: 12px;
  background: rgba(255, 209, 102, 0.05);
  color: #d8c9a4;
  font-size: 0.78rem;
  line-height: 1.6;
}

.notice svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 2px;
  fill: none;
  stroke: #ffd166;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notice a {
  color: #ffe3a1;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Detail view
   -------------------------------------------------------------------------- */

.detail-hero {
  position: relative;
  padding: calc(var(--header-h) + 42px) 0 clamp(34px, 5vw, 52px);
  overflow: hidden;
}

.detail-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to top, var(--bg) 1%, rgba(4, 7, 15, 0.6) 48%, rgba(4, 7, 15, 0.76) 100%),
    var(--backdrop, linear-gradient(140deg, #10203a, #050a13));
  background-size: cover;
  background-position: center 24%;
  opacity: 0.66;
  transform: scale(1.015);
  pointer-events: none;
}

.detail-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 320px at 8% 80%, rgba(34, 230, 255, 0.12), transparent 60%),
    linear-gradient(to right, rgba(4, 7, 15, 0.55), transparent 55%);
  pointer-events: none;
}

.detail-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(28px, 4.5vw, 56px);
  align-items: end;
}

.detail-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(150, 215, 255, 0.3);
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(150deg, #12233d, #060b14);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65), 0 0 50px rgba(34, 230, 255, 0.1);
}

.detail-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 8, 15, 0.5), transparent 40%);
  pointer-events: none;
}

.detail-info {
  min-width: 0;
  padding-bottom: 4px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(6, 12, 22, 0.5);
  backdrop-filter: blur(10px);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.back-btn svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.back-btn:hover {
  color: var(--cyan);
  border-color: rgba(34, 230, 255, 0.4);
}

.detail-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.detail-kicker .sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--dim);
}

.detail-kicker .kicker-muted {
  color: var(--dim);
}

.detail-info h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.7rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.045em;
  max-width: 20ch;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.55);
}

.detail-alt-title {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--dim);
  letter-spacing: 0.04em;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(6, 12, 22, 0.5);
  backdrop-filter: blur(10px);
  color: #c4d4ec;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.03em;
}

.meta-chip svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.meta-chip.score {
  color: var(--lime);
  border-color: rgba(184, 255, 92, 0.25);
}

.meta-chip.score svg {
  fill: var(--lime);
  stroke: none;
}

.meta-chip .status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.genre-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.genre-chip {
  padding: 5px 10px;
  border: 1px solid rgba(139, 92, 246, 0.28);
  border-radius: 7px;
  background: rgba(139, 92, 246, 0.08);
  color: #c6b9ff;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.detail-overview {
  margin-top: 20px;
  max-width: 74ch;
  color: #aebcda;
  font-size: 0.9rem;
  line-height: 1.78;
  white-space: pre-line;
}

.detail-overview.is-empty {
  color: var(--dim);
  font-style: italic;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.detail-actions .btn {
  height: 48px;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 38px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.fact {
  min-width: 0;
}

.fact dt {
  font-family: var(--font-mono);
  font-size: 0.57rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.fact dd {
  margin-top: 4px;
  font-size: 0.8rem;
  color: #c9d7ec;
  max-width: 42ch;
}

.episodes-section {
  padding-top: clamp(28px, 4vw, 44px);
  padding-bottom: 30px;
}

.episodes-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.episodes-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.episodes-head h2 span {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--dim);
}

.episode-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.select-field {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.select-field select {
  height: 40px;
  min-width: 170px;
  padding: 0 38px 0 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.25s ease;
}

.select-field select:hover,
.select-field select:focus {
  border-color: rgba(34, 230, 255, 0.4);
  outline: none;
}

.select-field select option {
  background: #0a1322;
  color: var(--text);
}

.select-field svg {
  position: absolute;
  right: 13px;
  width: 13px;
  height: 13px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.segmented {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.segmented button {
  height: 32px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.segmented button:hover {
  color: var(--text);
}

.segmented button.is-active {
  background: var(--grad);
  color: #04101a;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(34, 230, 255, 0.28);
}

.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.episode-grid > .empty-state,
.episode-grid > .row-error {
  grid-column: 1 / -1;
}

.episode-card {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(10, 18, 32, 0.55);
  overflow: hidden;
  text-align: left;
  transition: transform 0.35s var(--ease), border-color 0.3s ease, box-shadow 0.35s ease, background 0.3s ease;
}

.episode-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 230, 255, 0.4);
  background: rgba(13, 24, 42, 0.7);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.45), 0 0 26px rgba(34, 230, 255, 0.08);
}

.ep-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(100% 100% at 20% 10%, rgba(34, 230, 255, 0.16), transparent 60%),
    linear-gradient(150deg, #13233b, #060b14);
}

.ep-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.episode-card:hover .ep-thumb img {
  transform: scale(1.05);
}

.ep-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 8, 15, 0.7), transparent 55%);
}

.ep-number {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 4px 7px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(4, 9, 18, 0.7);
  backdrop-filter: blur(8px);
  color: #dff5ff;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
}

.ep-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(34, 230, 255, 0.92);
  color: #031018;
  transform: translate(-50%, -50%) scale(0.75);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s var(--ease);
  box-shadow: 0 0 24px rgba(34, 230, 255, 0.45);
}

.ep-play svg {
  width: 14px;
  height: 14px;
  margin-left: 1px;
  fill: currentColor;
}

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

.ep-onair {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  color: #c8d7ee;
  background: rgba(4, 9, 18, 0.65);
  padding: 3px 6px;
  border-radius: 5px;
  backdrop-filter: blur(8px);
}

.ep-body {
  padding: 12px 14px 14px;
}

.ep-body h3 {
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: #dfe9f9;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ep-body p {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--dim);
  letter-spacing: 0.03em;
}

.episode-note {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.63rem;
  color: var(--dim);
  letter-spacing: 0.02em;
}

.episodes-load {
  margin-top: 24px;
}

.episode-skeleton {
  aspect-ratio: 16 / 10.5;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.075) 50%, rgba(255, 255, 255, 0.03) 75%);
  background-size: 240% 100%;
  animation: shimmer 1.6s infinite;
}

.detail-loading {
  padding-top: calc(var(--header-h) + 70px);
  min-height: 70vh;
}

.detail-loading .back-btn {
  margin-bottom: 24px;
}

.detail-skeleton-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 50px);
  align-items: start;
}

.detail-skeleton-grid > .sk-poster {
  width: 100%;
}

.detail-loading .dl-lines {
  display: grid;
  gap: 12px;
  max-width: 520px;
  padding-top: 12px;
}

.detail-error {
  padding-top: calc(var(--header-h) + 80px);
  padding-bottom: 100px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  z-index: 2;
  margin-top: clamp(60px, 8vw, 100px);
  padding: 58px 0 26px;
  border-top: 1px solid var(--line);
  background: linear-gradient(to bottom, rgba(4, 8, 15, 0.3), rgba(3, 6, 12, 0.85));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: clamp(26px, 4vw, 52px);
}

.footer-brand p {
  margin-top: 18px;
  max-width: 38ch;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.7;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.footer-badges span {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-col h3 {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}

.footer-col a {
  display: block;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.8rem;
  transition: color 0.25s ease, transform 0.25s ease;
}

.footer-col a:hover {
  color: var(--cyan);
  transform: translateX(2px);
}

.footer-status {
  display: flex;
  flex-direction: column;
}

.status-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.76rem;
}

.status-line i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(53, 242, 163, 0.7);
}

.footer-mono {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--dim);
  letter-spacing: 0.08em;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  color: var(--dim);
  font-size: 0.68rem;
}

/* --------------------------------------------------------------------------
   Dialogs
   -------------------------------------------------------------------------- */

dialog {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  max-width: none;
  max-height: none;
}

dialog::backdrop {
  background: rgba(2, 5, 10, 0.74);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

dialog[open] {
  animation: dialogIn 0.35s var(--ease);
}

.modal {
  margin: auto;
}

.modal-card {
  position: relative;
  width: min(580px, calc(100vw - 32px));
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid rgba(130, 200, 255, 0.22);
  border-radius: 24px;
  background: linear-gradient(165deg, rgba(14, 24, 42, 0.99), rgba(5, 10, 18, 0.99));
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.75), 0 0 70px rgba(34, 230, 255, 0.07);
}

.modal-glow {
  position: absolute;
  top: -160px;
  right: -100px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 230, 255, 0.16), rgba(139, 92, 246, 0.09) 45%, transparent 70%);
  pointer-events: none;
}

.modal-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 26px 0;
}

.modal-head h2 {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.modal-body {
  position: relative;
  padding: 18px 26px 6px;
}

.modal-lede {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

.field {
  display: block;
  margin-top: 18px;
}

.field-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text);
}

.field-label em {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 400;
  color: var(--dim);
  letter-spacing: 0.03em;
}

.field-input {
  display: flex;
  align-items: center;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.field-input:focus-within {
  border-color: rgba(34, 230, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(34, 230, 255, 0.07);
}

.field-input input,
.field-input select {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 14px;
  border: 0;
  background: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.field-input input::placeholder {
  color: var(--dim);
}

.field-action {
  flex: none;
  height: 32px;
  margin-right: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.field-action:hover {
  color: var(--cyan);
  border-color: rgba(34, 230, 255, 0.35);
}

.field-hint {
  margin-top: 7px;
  font-size: 0.7rem;
  color: var(--dim);
}

.field-hint a {
  color: var(--cyan);
  transition: color 0.2s ease;
}

.field-hint a:hover {
  color: #fff;
}

.select-input {
  position: relative;
}

.select-input select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.select-input select option {
  background: #0a1322;
}

.select-input svg {
  position: absolute;
  right: 14px;
  width: 14px;
  height: 14px;
  pointer-events: none;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.settings-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
}

.settings-sources span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.settings-sources i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green, #35f2a3);
  box-shadow: 0 0 8px rgba(53, 242, 163, 0.65);
}

.settings-status:not(:empty) {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 18px;
  padding: 11px 13px;
  border-radius: 10px;
  font-size: 0.76rem;
  line-height: 1.55;
}

.settings-status.is-ok {
  border: 1px solid rgba(53, 242, 163, 0.24);
  background: rgba(53, 242, 163, 0.06);
  color: #a4f5d2;
}

.settings-status.is-err {
  border: 1px solid rgba(255, 107, 129, 0.25);
  background: rgba(255, 107, 129, 0.06);
  color: #ffc4cd;
}

.settings-status.is-busy {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.privacy-note {
  margin-top: 14px;
  color: var(--dim);
  font-size: 0.68rem;
  line-height: 1.6;
  opacity: 0.85;
}

.modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 26px 24px;
}

.modal-foot-right {
  display: flex;
  gap: 8px;
}

/* Player dialog */

.player-dialog {
  width: min(1180px, calc(100vw - 28px));
  max-width: none;
  max-height: calc(100dvh - 20px);
}

.player-shell {
  max-height: calc(100dvh - 20px);
  overflow-y: auto;
  border: 1px solid rgba(34, 230, 255, 0.26);
  border-radius: 20px;
  background: rgba(4, 8, 15, 0.98);
  box-shadow: 0 50px 150px rgba(0, 0, 0, 0.85), 0 0 90px rgba(34, 230, 255, 0.12);
}

.player-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.player-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.player-titles {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.player-titles strong {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-titles span {
  margin-top: 1px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--dim);
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: none;
}

.player-actions .icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.player-actions .icon-btn svg {
  width: 16px;
  height: 16px;
}

.player-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #02040a;
}

.player-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.player-loader {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: radial-gradient(80% 80% at 50% 50%, #071120, #02040a);
  transition: opacity 0.4s ease, visibility 0.4s;
}

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

.player-loader p {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.loader-ring {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid rgba(34, 230, 255, 0.16);
  border-top-color: var(--cyan);
  border-right-color: rgba(139, 92, 246, 0.7);
  animation: spin 0.9s linear infinite;
  box-shadow: 0 0 24px rgba(34, 230, 255, 0.2);
}

.screen-corner {
  position: absolute;
  z-index: 2;
  width: 20px;
  height: 20px;
  pointer-events: none;
  opacity: 0.65;
}

.screen-corner.tl { top: 12px; left: 12px; border-top: 1px solid var(--cyan); border-left: 1px solid var(--cyan); }
.screen-corner.tr { top: 12px; right: 12px; border-top: 1px solid var(--cyan); border-right: 1px solid var(--cyan); }
.screen-corner.bl { bottom: 12px; left: 12px; border-bottom: 1px solid var(--cyan); border-left: 1px solid var(--cyan); }
.screen-corner.br { bottom: 12px; right: 12px; border-bottom: 1px solid var(--cyan); border-right: 1px solid var(--cyan); }

.player-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 11px 16px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--dim);
}

.embed-line {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.embed-line code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #8fa4c4;
}

.player-note {
  flex: none;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px dotted rgba(34, 230, 255, 0.35);
  padding-bottom: 1px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.player-note:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.player-foot .link-btn {
  flex: none;
}

/* Toasts */

.toast-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: min(360px, calc(100vw - 44px));
  padding: 12px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(8, 15, 27, 0.97);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  color: #d7e4f7;
  font-size: 0.8rem;
  line-height: 1.5;
  animation: toastIn 0.35s var(--ease);
  pointer-events: auto;
}

.toast svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 1px;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toast.ok {
  border-color: rgba(53, 242, 163, 0.3);
}

.toast.ok svg {
  stroke: var(--green);
}

.toast.err {
  border-color: rgba(255, 107, 129, 0.35);
}

.toast.err svg {
  stroke: var(--red);
}

.toast.info svg {
  stroke: var(--cyan);
}

.toast.is-out {
  animation: toastOut 0.3s ease forwards;
}

/* Reveal */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.view-enter {
  animation: viewIn 0.55s var(--ease) both;
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */

@keyframes gradFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 220% 50%; }
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

@keyframes floatOrb {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(30px, -34px, 0) scale(1.06); }
}

@keyframes gridSlide {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 0 64px, 64px 0; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes eq {
  0%, 100% { transform: scaleY(0.55); }
  50% { transform: scaleY(1); }
}

@keyframes playPulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 230, 255, 0.35), 0 20px 50px rgba(0, 0, 0, 0.5); }
  70% { box-shadow: 0 0 0 18px rgba(34, 230, 255, 0), 0 20px 50px rgba(0, 0, 0, 0.5); }
  100% { box-shadow: 0 0 0 0 rgba(34, 230, 255, 0), 0 20px 50px rgba(0, 0, 0, 0.5); }
}

@keyframes scan {
  0% { top: -30%; }
  100% { top: 110%; }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@keyframes shimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

@keyframes dialogIn {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

@keyframes viewIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(24px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

@keyframes toastOut {
  to { opacity: 0; transform: translateX(24px) scale(0.96); }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-copy > * {
  animation: riseIn 0.9s var(--ease) both;
}

.hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.13s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.21s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.29s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.37s; }
.hero-copy > *:nth-child(6) { animation-delay: 0.45s; }

.hero-visual > .hero-player {
  animation: fadeIn 1.1s var(--ease) both;
  animation-delay: 0.2s;
}

.hero-visual > .float-card {
  animation: floatCard 7s ease-in-out infinite, fadeIn 1s ease both;
}

.hero-visual > .card-score { animation-delay: -1.5s, 0.45s; }
.hero-visual > .card-audio { animation-delay: -3.5s, 0.6s; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .hero h1 {
    font-size: clamp(2.7rem, 5.4vw, 4.4rem);
  }

  .float-card.card-score {
    right: 0;
  }

  .float-card.card-audio {
    left: 0;
  }
}

@media (max-width: 1080px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-grid {
    grid-template-columns: 260px minmax(0, 1fr);
  }
}

@media (max-width: 980px) {
  .main-nav {
    position: fixed;
    top: calc(var(--header-h) + 8px);
    left: 16px;
    right: 16px;
    z-index: 95;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line-strong);
    border-radius: 22px;
    background: rgba(6, 12, 22, 0.97);
    backdrop-filter: blur(26px);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.65);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.985);
    transform-origin: top center;
    transition: opacity 0.3s ease, transform 0.35s var(--ease), visibility 0.3s;
  }

  .site-header.mobile-open .main-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .main-nav > a {
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 0.94rem;
  }

  .main-nav > a::after {
    display: none;
  }

  .main-nav > a.is-active {
    background: rgba(34, 230, 255, 0.08);
  }

  .mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    margin: 0 0 8px;
    padding: 0 8px 0 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
  }

  .mobile-search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    background: none;
    outline: none;
    font-size: 0.86rem;
  }

  .mobile-search button {
    height: 32px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: var(--grad);
    color: #041018;
    font-family: var(--font-mono);
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

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

  .header-search {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 54px;
    padding-top: 14px;
  }

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

  .hero-visual {
    width: min(600px, 94%);
    margin-inline: auto;
    min-height: 400px;
  }

  .hero-player {
    transform: rotateY(-4deg) rotateX(2deg);
  }

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

  .docs-grid > * {
    min-width: 0;
  }

  .docs-copy .lede {
    max-width: 60ch;
  }

  .detail-grid {
    grid-template-columns: 230px minmax(0, 1fr);
  }

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

  .footer-status {
    grid-column: span 3;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
  }

  .footer-status h3 {
    width: 100%;
    margin-bottom: 0;
  }

  .footer-status .footer-mono {
    margin: 0;
  }
}

@media (max-width: 820px) {
  .detail-hero {
    padding-top: calc(var(--header-h) + 34px);
  }

  .detail-grid {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
  }

  .detail-info h1 {
    font-size: clamp(1.8rem, 5vw, 2.6rem);
  }

  .detail-overview {
    font-size: 0.85rem;
  }

  .facts {
    gap: 16px 26px;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-inner h2 {
    max-width: 24ch;
  }

  .player-topbar {
    flex-wrap: wrap;
  }

  .player-actions {
    margin-left: auto;
  }
}

@media (max-width: 680px) {
  .container {
    width: calc(100% - 32px);
  }

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

  .detail-skeleton-grid > .sk-poster {
    width: 160px;
  }

  .brand-text small {
    display: none;
  }

  .header-inner {
    gap: 14px;
  }

  .hero {
    padding-top: calc(var(--header-h) + 40px);
  }

  .hero h1 {
    font-size: clamp(2.5rem, 11vw, 3.4rem);
  }

  .hero .lede {
    font-size: 0.92rem;
  }

  .hero-search {
    flex-wrap: wrap;
    border-radius: 16px;
    padding: 6px;
  }

  .hero-search input {
    height: 44px;
    font-size: 0.88rem;
  }

  .hero-search .search-icon {
    height: 44px;
    width: 36px;
  }

  .hero-search .btn {
    width: 100%;
    height: 44px;
    margin-top: 2px;
  }

  .hero-proof {
    gap: 8px 16px;
  }

  .hero-visual {
    min-height: 310px;
    width: 100%;
  }

  .hero-player {
    transform: none !important;
    padding: 7px;
    border-radius: 18px;
  }

  .player-screen {
    border-radius: 12px;
  }

  .screen-play {
    width: 54px;
    height: 54px;
  }

  .screen-play svg {
    width: 19px;
    height: 19px;
  }

  .float-card {
    padding: 8px 10px;
    border-radius: 11px;
  }

  .float-card strong {
    font-size: 0.7rem;
  }

  .float-card small {
    font-size: 0.42rem;
  }

  .float-card.card-score {
    top: -14px;
    right: -4px;
  }

  .float-card.card-audio {
    bottom: -16px;
    left: -4px;
  }

  .hero-player-bar {
    font-size: 0.5rem;
  }

  .hero-player-bar .bar-status {
    display: none;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .media-card,
  .skeleton-card {
    flex-basis: 152px;
  }

  .row-arrow {
    display: none;
  }

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

  .connect-panel {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
  }

  .connect-panel .btn {
    margin-left: 0;
    width: 100%;
  }

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

  .row-error .btn {
    margin-left: 0;
  }

  .media-grid,
  .grid-skeleton {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 13px;
  }

  .media-grid .card-info h3 {
    font-size: 0.82rem;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .detail-poster {
    width: 172px;
    border-radius: 18px;
  }

  .detail-info h1 {
    font-size: clamp(1.9rem, 8vw, 2.7rem);
    max-width: none;
  }

  .detail-actions .btn {
    flex: 1;
    min-width: 150px;
  }

  .detail-kicker {
    margin-top: 2px;
  }

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

  .episodes-head {
    align-items: flex-start;
  }

  .episode-controls {
    width: 100%;
  }

  .episode-controls .select-field {
    flex: 1;
  }

  .episode-controls .select-field select {
    width: 100%;
  }

  .terminal {
    border-radius: 16px;
  }

  .code-block {
    font-size: 0.67rem;
    padding: 18px 15px;
    min-height: 300px;
  }

  .terminal-title {
    display: none;
  }

  .cta-actions {
    width: 100%;
  }

  .cta-actions .btn {
    flex: 1;
  }

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

  .footer-brand {
    grid-column: span 2;
  }

  .footer-status {
    grid-column: span 2;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .modal-head,
  .modal-body,
  .modal-foot {
    padding-left: 20px;
    padding-right: 20px;
  }

  .modal-foot {
    flex-wrap: wrap;
  }

  .modal-foot-right {
    margin-left: auto;
  }

  .player-dialog {
    width: 100vw;
    max-width: 100vw;
    margin: auto;
  }

  .player-shell {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .player-meta {
    width: 100%;
  }

  .player-actions {
    width: 100%;
    margin-left: 0;
  }

  .player-actions .pill-btn:first-child {
    display: none;
  }

  .player-foot .embed-line {
    display: none;
  }

  .player-stage {
    aspect-ratio: 16 / 10;
  }

  .toast-stack {
    right: 14px;
    left: 14px;
    bottom: 14px;
    align-items: stretch;
  }

  .toast {
    max-width: none;
  }
}

@media (max-width: 420px) {
  .eyebrow-pill {
    font-size: 0.55rem;
    letter-spacing: 0.14em;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-chips .chips-label {
    width: 100%;
  }

  .media-card,
  .skeleton-card {
    flex-basis: 138px;
  }

  .detail-poster {
    width: 148px;
  }

  .page-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  #starfield {
    display: none;
  }
}
