/* =========================================================
   ОЧАГ · семейный эфир
   Тёплая визуальная система: крем, терракота, шалфей.
   ========================================================= */

:root {
  --cream: #FBF5EA;
  --cream-deep: #F4E9D8;
  --paper: #FFFDF8;
  --ink: #332B26;
  --ink-soft: #4C3F37;
  --muted: #7C6A5D;
  --muted-2: #9A8778;
  --terracotta: #D5674A;
  --terracotta-dark: #B95038;
  --terracotta-soft: #F7DDD4;
  --mustard: #F0B94F;
  --mustard-soft: #FBEBCB;
  --sage: #6F8F72;
  --sage-deep: #4F6B52;
  --sage-soft: #E4EEE0;
  --sky: #8FBAC2;
  --sky-soft: #E0EEF0;
  --rose: #E8A48E;
  --rose-soft: #FAE4DC;
  --line: rgba(51, 43, 38, .12);
  --line-strong: rgba(51, 43, 38, .2);
  --white: #FFFDF8;
  --font-body: "Nunito Sans", "Segoe UI", Tahoma, sans-serif;
  --font-display: "Unbounded", "Nunito Sans", "Trebuchet MS", sans-serif;
  --font-accent: "Lora", Georgia, "Times New Roman", serif;
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-soft: 0 22px 55px -34px rgba(51, 43, 38, .35);
  --shadow-card: 0 18px 38px -28px rgba(51, 43, 38, .42);
  --container: 1240px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.modal-open { overflow: hidden; }

[hidden] { display: none !important; }

svg { display: block; }

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

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

img { max-width: 100%; height: auto; }

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

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

button { cursor: pointer; }

button:disabled {
  cursor: wait;
  opacity: .65;
}

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

ul, ol { padding: 0; }

:focus-visible {
  outline: 3px solid rgba(213, 103, 74, .55);
  outline-offset: 3px;
}

::selection {
  background: var(--mustard);
  color: var(--ink);
}

.page-texture {
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 10000;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

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

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease, color .22s ease;
}
.btn .icon { width: 17px; height: 17px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--terracotta);
  color: #FFF9F4;
  box-shadow: 0 14px 26px -14px rgba(185, 80, 56, .8);
}
.btn--primary:hover {
  background: var(--terracotta-dark);
  box-shadow: 0 18px 30px -14px rgba(185, 80, 56, .72);
}

.btn--ink {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 12px 24px -16px rgba(51, 43, 38, .9);
}
.btn--ink:hover { background: #211C19; }

.btn--soft {
  background: rgba(255, 253, 248, .78);
  border-color: var(--line);
  box-shadow: 0 8px 20px -18px rgba(51, 43, 38, .4);
}
.btn--soft:hover {
  background: var(--white);
  border-color: var(--line-strong);
}

.btn--ghost {
  border-color: var(--line-strong);
  background: transparent;
}
.btn--ghost:hover {
  background: rgba(255, 253, 248, .7);
  border-color: var(--ink);
}

.btn--light {
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .6);
}
.btn--light:hover { background: #FFF9EF; }

.btn--sm {
  min-height: 42px;
  padding: 10px 16px;
  font-size: 13px;
}

/* =========================================================
   Header
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 245, 234, .84);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}
.site-header.is-scrolled {
  background: rgba(251, 245, 234, .95);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -26px rgba(51, 43, 38, .4);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 38px;
  height: 80px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 14px;
  background: var(--terracotta);
  color: #FFF9F2;
  box-shadow: 0 9px 18px -12px rgba(185, 80, 56, .9), inset 0 1px 0 rgba(255, 255, 255, .25);
  transform: rotate(-3deg);
  transition: transform .25s ease;
}
.brand:hover .brand-mark { transform: rotate(2deg) translateY(-2px); }
.brand-mark svg { width: 27px; height: 27px; }

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.brand-text strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.045em;
}
.brand-text small {
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: 12px;
}
.main-nav a {
  position: relative;
  padding: 7px 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 700;
  transition: color .2s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--terracotta);
  transition: right .25s ease;
}
.main-nav a:hover { color: var(--terracotta-dark); }
.main-nav a:hover::after { right: 0; }

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

.source-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, .6);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .02em;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.source-status:hover { border-color: var(--line-strong); background: var(--white); }
.source-status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mustard);
  box-shadow: 0 0 0 3px rgba(240, 185, 79, .16);
}
.source-status[data-mode="api"] { color: var(--sage-deep); }
.source-status[data-mode="api"] .source-status__dot {
  background: var(--sage);
  box-shadow: 0 0 0 3px rgba(111, 143, 114, .16);
}
.source-status[data-mode="error"] { color: var(--terracotta-dark); }
.source-status[data-mode="error"] .source-status__dot {
  background: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(213, 103, 74, .16);
}

.header-api .icon { width: 16px; height: 16px; }

.menu-toggle {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
}
.menu-toggle .icon { width: 20px; height: 20px; }

.mobile-nav {
  display: none;
  padding: 8px 24px 24px;
  border-top: 1px solid var(--line);
  background: var(--cream);
}
.mobile-nav.is-open { display: block; }
.mobile-nav nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 16px;
}
.mobile-nav a {
  padding: 12px 4px;
  border-bottom: 1px dashed var(--line);
  font-size: 17px;
  font-weight: 700;
}
.mobile-nav .btn { width: 100%; }

/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  padding: 56px 0 34px;
  overflow: clip;
}
.hero-wash {
  position: absolute;
  inset: -240px -10% auto;
  height: 850px;
  pointer-events: none;
  background:
    radial-gradient(circle at 81% 32%, rgba(240, 185, 79, .25), transparent 28%),
    radial-gradient(circle at 22% 28%, rgba(232, 164, 142, .18), transparent 30%),
    radial-gradient(circle at 60% 100%, rgba(143, 186, 194, .2), transparent 36%);
  filter: blur(6px);
}
.hero-wash::after {
  content: "";
  position: absolute;
  inset: 130px 0 0;
  opacity: .38;
  background-image: radial-gradient(rgba(51, 43, 38, .13) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 0, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0, transparent 65%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 58px;
  align-items: center;
  padding-bottom: 26px;
}

.hero-copy {
  max-width: 630px;
  animation: rise-in .7s cubic-bezier(.2, .7, .2, 1) both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, .7);
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--mustard-soft);
  position: relative;
}
.eyebrow-dot::before,
.eyebrow-dot::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.eyebrow-dot::before {
  inset: 7px;
  background: var(--terracotta);
}
.eyebrow-dot::after {
  width: 4px;
  height: 4px;
  top: 4px;
  right: 4px;
  background: var(--mustard);
}

.hero h1 {
  margin: 22px 0 20px;
  font-family: var(--font-display);
  font-size: clamp(40px, 4.35vw, 64px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.048em;
}
.hero h1 em {
  position: relative;
  display: inline-block;
  color: var(--terracotta);
  font-family: var(--font-accent);
  font-size: 1.09em;
  font-style: italic;
  font-weight: 600;
  letter-spacing: -.035em;
  padding: 0 .05em;
}
.title-underline {
  position: absolute;
  left: 2%;
  bottom: -.14em;
  width: 102%;
  height: .19em;
  color: var(--mustard);
  opacity: .85;
  overflow: visible;
}

.hero-lede {
  max-width: 545px;
  color: var(--muted);
  font-size: 17.5px;
  line-height: 1.64;
}

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

.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 17px;
  color: var(--muted-2);
  font-size: 12.5px;
  font-weight: 600;
}
.hero-note .icon { width: 16px; height: 16px; color: var(--mustard); }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 520px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px dashed var(--line-strong);
}
.hero-stat {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-stat strong {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.04em;
}
.hero-stat span {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.35;
}
.hero-family {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.35;
}
.hero-family b { color: var(--ink-soft); font-size: 11.5px; }

.facepile { display: flex; padding-left: 4px; }
.face {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  margin-left: -7px;
  border: 2px solid var(--cream);
  border-radius: 50%;
  color: var(--ink);
  font-size: 9.5px;
  font-weight: 900;
  box-shadow: 0 3px 8px -4px rgba(51, 43, 38, .4);
}
.face--1 { background: var(--mustard-soft); }
.face--2 { background: var(--sage-soft); }
.face--3 { background: var(--rose-soft); }
.face--plus { background: var(--ink); color: var(--cream); }

/* ----- Hero stage / TV ----- */

.hero-stage {
  position: relative;
  min-height: 525px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rise-in .85s .12s cubic-bezier(.2, .7, .2, 1) both;
}

.stage-doodle {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}
.stage-doodle--sun {
  top: 28px;
  right: -8px;
  width: 74px;
  color: var(--mustard);
  opacity: .85;
  transform: rotate(7deg);
}
.stage-doodle--star {
  left: 12px;
  bottom: 94px;
  width: 34px;
  color: var(--terracotta);
  opacity: .55;
  transform: rotate(-12deg);
}

.tv {
  position: relative;
  z-index: 2;
  width: min(520px, 100%);
  padding: 17px 17px 14px;
  border: 1px solid rgba(51, 43, 38, .1);
  border-radius: 32px;
  background:
    linear-gradient(145deg, #FAF0E1 0%, #F2E3CD 62%, #EBD8BE 100%);
  box-shadow:
    0 44px 80px -48px rgba(51, 43, 38, .62),
    0 12px 24px -22px rgba(51, 43, 38, .45),
    inset 0 1px 0 rgba(255, 255, 255, .8);
  transform: rotate(-1.2deg);
  transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}
.hero-stage:hover .tv { transform: rotate(-.3deg) translateY(-3px); }

.tv-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1px 4px 11px;
}
.tv-brand {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--ink-soft);
  opacity: .7;
}
.tv-signal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--terracotta-dark);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.tv-signal i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(213, 103, 74, .14);
  animation: soft-pulse 2.4s ease-in-out infinite;
}

.tv-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 19px;
  overflow: hidden;
  background: #2B231E;
  box-shadow:
    inset 0 0 0 4px #3A2F27,
    inset 0 0 0 6px rgba(255, 255, 255, .08),
    inset 0 18px 40px rgba(0, 0, 0, .25);
}
.tv-art {
  position: absolute;
  inset: 0;
  transition: opacity .3s ease, transform .7s ease;
}
.tv-art.is-changing { opacity: 0; transform: scale(1.025); }
.tv-art .art-svg { width: 100%; height: 100%; }
.tv-art img { width: 100%; height: 100%; object-fit: cover; }
.tv-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(26, 18, 13, .18), transparent 30%, transparent 55%, rgba(26, 18, 13, .55)),
    radial-gradient(circle at 50% 40%, transparent 55%, rgba(20, 14, 10, .18));
}
.tv-open {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  background: transparent;
}
.tv-open:focus-visible { outline-offset: -5px; }
.tv-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 13px;
  background: rgba(255, 250, 241, .9);
  color: var(--ink);
  pointer-events: none;
  box-shadow: 0 8px 20px -12px rgba(0, 0, 0, .45);
  backdrop-filter: blur(10px);
}
.tv-caption span {
  color: var(--muted);
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.tv-caption strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tv-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 5px 2px;
}
.tv-knobs { display: flex; gap: 7px; }
.tv-knobs i {
  width: 19px;
  height: 19px;
  border: 1px solid rgba(51, 43, 38, .16);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #FFF9ED, #DCC5A6 70%);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, .8), 0 2px 4px -2px rgba(51, 43, 38, .35);
}
.tv-speaker {
  width: 66px;
  height: 22px;
  margin-left: 2px;
  border-radius: 6px;
  opacity: .5;
  background-image: radial-gradient(rgba(51, 43, 38, .55) 1px, transparent 1.4px);
  background-size: 6px 6px;
}
.tv-play {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  margin-left: auto;
  padding: 9px 15px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-size: 11.5px;
  font-weight: 800;
  box-shadow: 0 8px 16px -10px rgba(51, 43, 38, .8);
  transition: background .2s ease, transform .2s ease;
}
.tv-play:hover { background: var(--terracotta-dark); transform: translateY(-1px); }
.tv-play .icon { width: 13px; height: 13px; }

.stage-pill {
  position: absolute;
  top: 30px;
  left: -12px;
  z-index: 5;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--sage);
  color: #FFFDF7;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  transform: rotate(-3deg);
  box-shadow: 0 12px 24px -16px rgba(79, 107, 82, .9);
}

.stage-shelf {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 8px;
  z-index: 1;
  height: 88px;
}
.shelf-board {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 12px;
  border-radius: 4px;
  background: #D7B68B;
  box-shadow: 0 16px 24px -16px rgba(51, 43, 38, .5), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.shelf-plant {
  display: none;
  position: absolute;
  left: 6%;
  bottom: 15px;
  width: 72px;
  height: 82px;
}
.shelf-book {
  position: absolute;
  bottom: 18px;
  width: 12px;
  border-radius: 3px 3px 1px 1px;
}
.shelf-book--1 { right: 13%; height: 43px; background: var(--terracotta); transform: rotate(-4deg); }
.shelf-book--2 { right: 10.5%; height: 50px; background: var(--sage); transform: rotate(2deg); }
.shelf-book--3 { right: 8%; height: 37px; background: var(--mustard); transform: rotate(-1deg); }

/* =========================================================
   API banner
   ========================================================= */

.api-strip {
  position: relative;
  z-index: 3;
  padding-top: 12px;
}

.api-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid #EAD9C3;
  border-radius: 22px;
  background: rgba(255, 250, 240, .82);
  box-shadow: 0 15px 30px -28px rgba(51, 43, 38, .45);
  transition: background .25s ease, border-color .25s ease;
}
.api-banner[data-mode="connected"] {
  border-color: #D3E2CE;
  background: rgba(239, 246, 236, .86);
}
.api-banner[data-mode="error"] {
  border-color: #EFC9BC;
  background: rgba(253, 238, 232, .9);
}
.api-banner-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 14px;
  background: var(--cream-deep);
  color: var(--ink);
}
.api-banner[data-mode="connected"] .api-banner-icon { background: var(--sage-soft); color: var(--sage-deep); }
.api-banner[data-mode="error"] .api-banner-icon { background: var(--terracotta-soft); color: var(--terracotta-dark); }
.api-banner-icon .icon { width: 21px; height: 21px; }
.api-banner-copy { min-width: 0; }
.api-banner-copy strong {
  display: block;
  margin-bottom: 2px;
  font-size: 14.5px;
  font-weight: 800;
}
.api-banner-copy p {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}
.api-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: none;
}
.api-banner-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sage-deep);
  font-size: 10.5px;
  font-weight: 800;
}
.api-banner-loading .spinner {
  width: 17px;
  height: 17px;
  border-width: 2px;
  border-color: rgba(79, 107, 82, .2);
  border-top-color: var(--sage);
}

/* =========================================================
   Sections
   ========================================================= */

.section { padding: 72px 0; }

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

.section-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--terracotta-dark);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.section-kicker::before {
  content: "";
  width: 25px;
  height: 1px;
  background: currentColor;
}
.section-kicker--light { color: var(--mustard); }

.section-head h2,
.how-copy h2 {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(29px, 3.1vw, 43px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.045em;
}

.section-sub {
  max-width: 355px;
  padding-bottom: 4px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.reveal {
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}
.js .reveal.will-reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(24px);
}

/* =========================================================
   Catalog
   ========================================================= */

.catalog { padding-top: 58px; }

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0 20px;
  border-top: 1px solid var(--line);
}

.filters {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  min-width: 0;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, .54);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.filter-btn:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--white);
}
.filter-btn.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--cream);
}
.filter-btn .filter-count {
  min-width: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(51, 43, 38, .07);
  color: currentColor;
  font-size: 9.5px;
  line-height: 17px;
  text-align: center;
  opacity: .7;
}
.filter-btn.is-active .filter-count {
  background: rgba(255, 253, 248, .17);
  opacity: 1;
}
.filter-btn .icon { width: 13px; height: 13px; }
.filter-btn[data-filter="favorites"] .icon { color: var(--terracotta); }
.filter-btn[data-filter="favorites"].is-active .icon { color: var(--rose); }

.search {
  position: relative;
  display: block;
  flex: 0 1 260px;
  width: 260px;
}
.search input {
  width: 100%;
  height: 43px;
  padding: 0 38px 0 39px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, .8);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  outline: none;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
  appearance: none;
}
.search input::-webkit-search-cancel-button { display: none; }
.search input::placeholder { color: var(--muted-2); }
.search input:focus {
  background: var(--white);
  border-color: rgba(213, 103, 74, .55);
  box-shadow: 0 0 0 4px rgba(213, 103, 74, .09);
}
.search-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 16px;
  height: 16px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}
.search-clear {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--cream-deep);
  color: var(--muted);
  transform: translateY(-50%);
}
.search-clear .icon { width: 13px; height: 13px; }

.catalog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
}
.catalog-meta p {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}
.catalog-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 600;
}
.catalog-hint .icon { width: 12px; height: 12px; color: var(--terracotta); }

/* ----- Cards ----- */

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

.stream-card {
  position: relative;
  min-width: 0;
  animation: card-in .45s cubic-bezier(.2, .7, .2, 1) both;
  animation-delay: calc(var(--i, 0) * 34ms);
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 22px;
  background: var(--cream-deep);
  box-shadow: var(--shadow-card);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease;
}
.stream-card:hover .card-media {
  transform: translateY(-5px);
  box-shadow: 0 30px 48px -32px rgba(51, 43, 38, .6);
}

.card-art {
  position: absolute;
  inset: 0;
  transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}
.stream-card:hover .card-art { transform: scale(1.045); }
.card-art .art-svg { width: 100%; height: 100%; }
.card-art img { width: 100%; height: 100%; object-fit: cover; }
.art-fallback {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--mustard-soft), var(--sage-soft));
}

.card-tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(29, 22, 17, .15), transparent 35%, transparent 62%, rgba(29, 22, 17, .38)),
    radial-gradient(circle at 50% 30%, transparent 55%, rgba(29, 22, 17, .12));
}

.card-cat {
  position: absolute;
  top: 11px;
  left: 11px;
  z-index: 2;
  max-width: calc(100% - 66px);
  overflow: hidden;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  background: rgba(255, 251, 244, .9);
  color: var(--ink);
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: .05em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

.fav {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: rgba(255, 251, 244, .9);
  color: var(--ink);
  box-shadow: 0 7px 16px -10px rgba(0, 0, 0, .5);
  transition: background .2s ease, color .2s ease, transform .2s ease;
  backdrop-filter: blur(8px);
}
.fav:hover { transform: scale(1.08); color: var(--terracotta); }
.fav .icon { width: 16px; height: 16px; }
.fav.is-fav {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #FFF9F4;
}
.fav.is-fav .icon { fill: currentColor; stroke: currentColor; }

.card-live,
.card-demo {
  position: absolute;
  left: 11px;
  bottom: 11px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #FFF9F4;
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.card-live { background: rgba(176, 60, 45, .92); }
.card-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #FFF9F4;
  animation: soft-pulse 1.8s ease-in-out infinite;
}
.card-demo { background: rgba(43, 35, 30, .62); }

.card-hit {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
}
.card-hit:focus-visible { outline-offset: -4px; }

.card-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--white);
  color: var(--terracotta);
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .5);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(.94);
  transition: opacity .3s ease, transform .3s cubic-bezier(.2, .7, .2, 1);
}
.card-play .icon { width: 18px; height: 18px; margin-left: 2px; }
.stream-card:hover .card-play,
.stream-card:focus-within .card-play {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.card-body { padding: 14px 3px 0; }

.card-title-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.card-title-row h3 {
  min-width: 0;
  font-size: 18.5px;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -.02em;
}
.card-title-row h3 button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  transition: color .2s ease;
}
.card-title-row h3 button:hover { color: var(--terracotta-dark); }
.card-age {
  flex: none;
  margin-left: auto;
  margin-top: 3px;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  line-height: 1.2;
}

.card-desc {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12.8px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 11px;
}
.card-meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted-2);
  font-size: 10.5px;
  font-weight: 700;
}
.card-meta .icon { width: 12px; height: 12px; }
.card-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--terracotta-dark);
  font-size: 10.5px;
  font-weight: 800;
}
.card-more .icon { width: 13px; height: 13px; transition: transform .2s ease; }
.stream-card:hover .card-more .icon { transform: translateX(3px); }

/* ----- Empty / load more ----- */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 50px 24px 44px;
  border: 1px dashed var(--line-strong);
  border-radius: 28px;
  background: rgba(255, 253, 248, .45);
  text-align: center;
}
.empty-art { width: 116px; margin-bottom: 12px; }
.empty-state h3 {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -.03em;
}
.empty-state p {
  max-width: 380px;
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 13.5px;
}

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

/* =========================================================
   Collections
   ========================================================= */

.collections { padding-top: 38px; }

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

.collection-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 172px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(51, 43, 38, .08);
  border-radius: 24px;
  text-align: left;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease;
}
.collection-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}
.collection-card--butter { background: #F9E5B9; }
.collection-card--sage { background: #DDE9D8; }
.collection-card--rose { background: #F6DCD2; }
.collection-card--sky { background: #DCECEF; }
.collection-card.is-empty { opacity: .58; }

.collection-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 14px;
  background: rgba(255, 253, 248, .6);
  color: var(--ink-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45);
}
.collection-icon svg { width: 25px; height: 25px; }

.collection-text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
  padding-top: 17px;
}
.collection-text strong {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.04em;
}
.collection-text small {
  color: rgba(51, 43, 38, .62);
  font-size: 10.5px;
  font-weight: 700;
}
.collection-text small b { font-weight: 900; }

.collection-arrow {
  position: absolute;
  top: 18px;
  right: 16px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: rgba(255, 253, 248, .5);
  transition: background .2s ease, transform .2s ease;
}
.collection-arrow .icon { width: 14px; height: 14px; }
.collection-card:hover .collection-arrow {
  background: var(--white);
  transform: translateX(2px);
}
.collection-doodle {
  position: absolute;
  right: -28px;
  bottom: -42px;
  width: 125px;
  height: 125px;
  border-radius: 50%;
  border: 18px solid rgba(255, 253, 248, .38);
  pointer-events: none;
}
.collection-card--sage .collection-doodle { border-radius: 36% 64% 55% 45%; border-width: 14px; }
.collection-card--rose .collection-doodle { border-width: 22px; right: -40px; }
.collection-card--sky .collection-doodle { border-width: 10px; width: 145px; height: 145px; }

/* ----- Family night ----- */

.family-night {
  position: relative;
  display: flex;
  align-items: center;
  gap: 26px;
  overflow: hidden;
  margin-top: 16px;
  padding: 26px 30px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 78% 10%, rgba(240, 185, 79, .16), transparent 30%),
    var(--ink);
  color: var(--cream);
  box-shadow: 0 30px 55px -40px rgba(51, 43, 38, .8);
}
.family-night::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .16;
  background-image: radial-gradient(rgba(255, 253, 248, .5) .8px, transparent .8px);
  background-size: 17px 17px;
  mask-image: linear-gradient(90deg, transparent, #000);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000);
  pointer-events: none;
}
.family-night-art {
  position: relative;
  z-index: 1;
  flex: 0 0 170px;
  width: 170px;
}
.family-night-art svg { width: 100%; height: auto; }
.family-night-copy {
  position: relative;
  z-index: 1;
  max-width: 520px;
}
.family-night-copy .section-kicker { margin-bottom: 7px; }
.family-night-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 27px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -.04em;
}
.family-night-copy p:not(.section-kicker) {
  max-width: 430px;
  margin-top: 7px;
  color: rgba(251, 245, 234, .64);
  font-size: 12.5px;
  line-height: 1.5;
}
.family-night .btn {
  position: relative;
  z-index: 1;
  margin-left: auto;
  flex: none;
}

/* =========================================================
   How it works
   ========================================================= */

.how { padding-top: 30px; padding-bottom: 84px; }

.how-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 52px;
  overflow: hidden;
  padding: 46px;
  border: 1px solid rgba(51, 43, 38, .08);
  border-radius: 36px;
  background:
    radial-gradient(circle at 8% 4%, rgba(255, 253, 248, .75), transparent 30%),
    linear-gradient(135deg, #F6ECDC, #F0E0C9);
}
.how-panel::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -120px;
  top: -130px;
  border: 1px dashed rgba(51, 43, 38, .16);
  border-radius: 50%;
  pointer-events: none;
}
.how-copy { position: relative; z-index: 1; }
.how-copy h2 { margin-top: 11px; }
.how-copy h2 em {
  color: var(--terracotta);
  font-family: var(--font-accent);
  font-size: 1.08em;
  font-style: italic;
  font-weight: 600;
}
.how-lede {
  max-width: 510px;
  margin-top: 15px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.steps {
  display: flex;
  flex-direction: column;
  margin-top: 24px;
  list-style: none;
}
.step {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 13px;
  padding: 13px 0;
  border-bottom: 1px dashed rgba(51, 43, 38, .14);
}
.step:first-child { padding-top: 0; }
.step:last-child { border-bottom: 0; padding-bottom: 0; }
.step-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(51, 43, 38, .12);
  border-radius: 50%;
  background: rgba(255, 253, 248, .65);
  color: var(--terracotta-dark);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
}
.step strong { font-size: 13.5px; font-weight: 800; }
.step p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.how-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 25px;
}
.how-actions .btn { min-height: 46px; padding-inline: 18px; font-size: 13px; }

.format-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 19px;
}
.format-chips span {
  padding: 4px 8px;
  border: 1px solid rgba(51, 43, 38, .1);
  border-radius: 7px;
  background: rgba(255, 253, 248, .32);
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: .08em;
}

.how-code {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-self: center;
}

.code-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 23px;
  background: #332B26;
  color: #EDE2D5;
  box-shadow: 0 28px 50px -32px rgba(51, 43, 38, .75);
  transform: rotate(1.1deg);
  transition: transform .35s ease;
}
.how-code:hover .code-card { transform: rotate(0) translateY(-2px); }
.code-card::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -60px;
  bottom: -80px;
  border-radius: 50%;
  background: rgba(240, 185, 79, .12);
  filter: blur(6px);
}
.code-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: #A99787;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .04em;
}
.code-dots { display: flex; gap: 4px; }
.code-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.code-dots i:first-child { background: var(--terracotta); }
.code-dots i:nth-child(2) { background: var(--mustard); }
.code-dots i:last-child { background: var(--sage); }
.code-copy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 7px;
  background: transparent;
  color: #C9BAAA;
  font-size: 9px;
  font-weight: 700;
  transition: background .2s ease, color .2s ease;
}
.code-copy:hover { background: rgba(255, 255, 255, .08); color: #FFF9EF; }
.code-copy .icon { width: 11px; height: 11px; }

.code-card pre {
  margin: 0;
  padding: 18px 18px 16px;
  overflow-x: auto;
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10.5px;
  line-height: 1.8;
  tab-size: 2;
}
.code-card code { font-family: inherit; }
.c-key { color: #F0C97C; }
.c-str { color: #B7D5AE; }
.c-num { color: #F1A88D; }

.code-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 15px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  color: #9A8878;
  font-size: 8.5px;
  font-weight: 700;
}
.code-ok { display: inline-flex; align-items: center; gap: 4px; color: #B7D5AE; }
.code-ok .icon { width: 11px; height: 11px; }
.code-caption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 10.5px;
  text-align: center;
}
.code-caption code {
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(51, 43, 38, .07);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 9.5px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 34px;
}
.trust-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.trust-icon {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 248, .65);
  color: var(--terracotta-dark);
}
.trust-icon .icon { width: 17px; height: 17px; }
.trust-item strong { display: block; margin-bottom: 2px; font-size: 12.5px; font-weight: 800; }
.trust-item p { color: var(--muted); font-size: 11px; line-height: 1.5; }

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  margin-top: 20px;
  padding: 52px 0 24px;
  border-radius: 38px 38px 0 0;
  background: var(--ink);
  color: var(--cream);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) auto;
  gap: 46px;
}
.brand--light .brand-mark {
  background: rgba(255, 253, 248, .08);
  color: var(--mustard);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.brand--light .brand-text strong { color: var(--cream); }
.brand--light .brand-text small { color: rgba(251, 245, 234, .45); }
.footer-brand p {
  margin-top: 16px;
  color: rgba(251, 245, 234, .55);
  font-size: 11.5px;
  line-height: 1.6;
}
.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.footer-nav div { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.footer-nav span {
  margin-bottom: 4px;
  color: rgba(251, 245, 234, .38);
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.footer-nav a,
.footer-nav button {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(251, 245, 234, .76);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  transition: color .2s ease;
}
.footer-nav a:hover,
.footer-nav button:hover { color: var(--mustard); }
.footer-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: rgba(251, 245, 234, .55);
  font-size: 10.5px;
  line-height: 1.55;
}
.footer-heart { color: var(--terracotta); font-size: 15px; line-height: 1.2; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 36px;
  padding-top: 17px;
  border-top: 1px solid rgba(255, 253, 248, .08);
  color: rgba(251, 245, 234, .33);
  font-size: 9px;
  line-height: 1.6;
}
.footer-bottom p:last-child { text-align: right; }

/* =========================================================
   Dialogs · common
   ========================================================= */

dialog {
  color: var(--ink);
}
dialog::backdrop {
  background: rgba(34, 26, 21, .58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
dialog[open] { animation: dialog-in .28s cubic-bezier(.2, .7, .2, 1) both; }

.sheet-dialog {
  width: min(1020px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 30px;
  background: var(--paper);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .55);
  overflow: hidden;
}

.api-sheet {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 8;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 253, 248, .8);
  color: var(--muted);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.modal-close:hover { background: var(--ink); color: var(--cream); transform: rotate(6deg); }
.modal-close .icon { width: 16px; height: 16px; }

/* =========================================================
   API dialog
   ========================================================= */

.api-main {
  padding: 36px 36px 30px;
}
.api-head { padding-right: 30px; }
.api-head-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 15px;
  background: var(--ink);
  color: var(--cream);
  transform: rotate(-3deg);
}
.api-head-icon .icon { width: 21px; height: 21px; }
.api-head .section-kicker { font-size: 9px; }
.api-head h2 {
  margin: 8px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(27px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.045em;
}
.api-head > p:last-child {
  max-width: 510px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

#apiForm { margin-top: 22px; }

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.field > span:first-child {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .01em;
}
.field > span:first-child em {
  color: var(--muted-2);
  font-style: normal;
  font-weight: 600;
}
.field input,
.field select {
  width: 100%;
  height: 47px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #FFFCF7;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  outline: none;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.field input::placeholder { color: #B7A89A; font-weight: 500; }
.field input:focus,
.field select:focus {
  border-color: rgba(213, 103, 74, .6);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(213, 103, 74, .08);
}

.input-wrap { position: relative; display: block; }
.input-wrap .input-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 17px;
  height: 17px;
  color: var(--muted-2);
  transform: translateY(-50%);
  pointer-events: none;
}
.input-wrap input { padding-left: 40px; padding-right: 75px; }
.input-action {
  position: absolute;
  top: 50%;
  right: 7px;
  padding: 6px 9px;
  border: 0;
  border-radius: 8px;
  background: var(--cream-deep);
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 800;
  transform: translateY(-50%);
  transition: background .2s ease, color .2s ease;
}
.input-action:hover { background: var(--ink); color: var(--cream); }

.field-hint {
  margin-top: 7px;
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.45;
}

.field-row {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 12px;
  margin-top: 15px;
}

.select-wrap { position: relative; display: block; }
.select-wrap select {
  padding-right: 34px;
  appearance: none;
  cursor: pointer;
}
.select-wrap .icon {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 14px;
  height: 14px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.advanced {
  margin-top: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 252, 247, .55);
}
.advanced summary {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 13px;
  list-style: none;
  cursor: pointer;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
}
.advanced summary::-webkit-details-marker { display: none; }
.advanced summary small {
  color: var(--muted-2);
  font-size: 9.5px;
  font-weight: 600;
}
.advanced summary .icon {
  width: 14px;
  height: 14px;
  margin-left: auto;
  color: var(--muted);
  transition: transform .2s ease;
}
.advanced[open] summary .icon { transform: rotate(180deg); }
.advanced-body {
  padding: 2px 13px 14px;
  border-top: 1px dashed var(--line);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 11px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
  cursor: pointer;
}
.check input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.check-box {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 1px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #fff;
  color: transparent;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.check-box .icon { width: 11px; height: 11px; stroke-width: 2.6; }
.check input:checked + .check-box {
  background: var(--sage);
  border-color: var(--sage);
  color: #fff;
}
.check input:focus-visible + .check-box { outline: 3px solid rgba(213, 103, 74, .35); outline-offset: 2px; }

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-top: 15px;
  padding: 16px;
  border: 1px dashed #D7C3A8;
  border-radius: 14px;
  background: #FCF6EC;
  color: var(--muted);
  text-align: center;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.dropzone:hover,
.dropzone.is-over {
  border-color: var(--terracotta);
  background: #FFF8ED;
}
.dropzone .icon { width: 20px; height: 20px; margin-bottom: 3px; color: var(--terracotta); }
.dropzone strong { color: var(--ink-soft); font-size: 11px; font-weight: 800; }
.dropzone span { color: var(--muted-2); font-size: 9px; }

.file-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  padding: 7px 10px;
  border-radius: 9px;
  background: var(--sage-soft);
  color: var(--sage-deep);
  font-size: 10px;
  font-weight: 700;
}
.file-chip .icon { width: 12px; height: 12px; }
.file-chip button {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(79, 107, 82, .12);
  color: inherit;
}
.file-chip button .icon { width: 10px; height: 10px; }

.api-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}
.api-actions .btn { min-height: 45px; font-size: 12.5px; }
.api-actions .btn--ghost { margin-right: auto; }

.api-status {
  min-height: 17px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.4;
}
.api-status.is-error { color: var(--terracotta-dark); }
.api-status.is-success { color: var(--sage-deep); }

.api-aside {
  position: relative;
  overflow: hidden;
  padding: 38px 26px 28px;
  background:
    radial-gradient(circle at 100% 0, rgba(240, 185, 79, .2), transparent 35%),
    #F3E7D5;
}
.api-aside::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -70px;
  width: 180px;
  height: 180px;
  border: 1px dashed rgba(51, 43, 38, .14);
  border-radius: 50%;
}
.aside-tape {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 4px;
  background: var(--mustard);
  color: var(--ink);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  transform: rotate(-2deg);
}
.api-aside h3 {
  margin-top: 13px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.04em;
}
.aside-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
  list-style: none;
}
.aside-list li {
  display: grid;
  grid-template-columns: 25px 1fr;
  gap: 9px;
}
.aside-list li > span {
  padding-top: 1px;
  color: var(--terracotta-dark);
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 600;
}
.aside-list p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}
.aside-list strong {
  display: block;
  margin-bottom: 1px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
}
.aside-note {
  display: flex;
  gap: 8px;
  margin-top: 23px;
  padding: 11px;
  border: 1px solid rgba(51, 43, 38, .08);
  border-radius: 11px;
  background: rgba(255, 253, 248, .45);
  color: var(--muted);
}
.aside-note .icon { width: 15px; height: 15px; flex: none; color: var(--sage-deep); }
.aside-note p { font-size: 9px; line-height: 1.45; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 19px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(51, 43, 38, .25);
  background: transparent;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
}
.text-link:hover { color: var(--terracotta-dark); border-color: currentColor; }
.text-link .icon { width: 13px; height: 13px; }
.aside-small {
  margin-top: 14px;
  color: var(--muted-2);
  font-size: 8.5px;
  line-height: 1.45;
}

/* =========================================================
   Player
   ========================================================= */

.player-dialog {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #1D1714;
  color: #F7EFE3;
  overflow: hidden;
}
.player-dialog[open] { display: block; }
.player-dialog::backdrop { background: #16110F; }

.player-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 344px;
  height: 100dvh;
}

.player-main {
  min-width: 0;
  overflow-y: auto;
  padding: 14px 22px 28px;
  overscroll-behavior: contain;
}

.player-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 46px;
  margin-bottom: 8px;
}
.player-mode {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 253, 248, .12);
  border-radius: 999px;
  color: #D9C9B9;
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.player-mode i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(213, 103, 74, .17);
  animation: soft-pulse 2s ease-in-out infinite;
}
.player-mode.is-demo i { background: var(--mustard); box-shadow: 0 0 0 3px rgba(240, 185, 79, .14); animation: none; }
.player-mode.is-video i { background: var(--sage); box-shadow: 0 0 0 3px rgba(111, 143, 114, .14); animation: none; }

.player-bar-actions { display: flex; align-items: center; gap: 14px; }
.player-external {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(251, 245, 234, .6);
  font-size: 10.5px;
  font-weight: 700;
  transition: color .2s ease;
}
.player-external:hover { color: var(--mustard); }
.player-external .icon { width: 13px; height: 13px; }
.player-close {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  padding: 0;
  border: 1px solid rgba(255, 253, 248, .14);
  border-radius: 50%;
  background: rgba(255, 253, 248, .06);
  color: #F7EFE3;
  transition: background .2s ease, color .2s ease;
}
.player-close:hover { background: var(--cream); color: var(--ink); }
.player-close .icon { width: 16px; height: 16px; }

.player-frame {
  position: relative;
  width: min(100%, calc((100dvh - 276px) * 16 / 9));
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 253, 248, .08);
  border-radius: 18px;
  background: #0C0908;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
}
.player-mount { position: absolute; inset: 0; }
.player-mount video {
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}
.player-mount iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
.player-mount .player-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 100%;
  color: rgba(251, 245, 234, .55);
  font-size: 11px;
}
.player-mount .player-placeholder strong {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
}

.player-loader {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(13, 9, 7, .74);
  color: rgba(251, 245, 234, .72);
  font-size: 11px;
}
.spinner {
  width: 29px;
  height: 29px;
  border: 2px solid rgba(251, 245, 234, .18);
  border-top-color: var(--mustard);
  border-radius: 50%;
  animation: spin .9s linear infinite;
}

.player-error {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #17110E;
  text-align: center;
}
.player-error-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 9px;
  border: 1px solid rgba(240, 185, 79, .4);
  border-radius: 50%;
  color: var(--mustard);
  font-family: var(--font-display);
  font-size: 16px;
}
.player-error h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -.03em;
}
.player-error p {
  max-width: 390px;
  margin: 5px 0 15px;
  color: rgba(251, 245, 234, .55);
  font-size: 11px;
  line-height: 1.5;
}
.player-error > div { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.player-error .btn--ghost {
  border-color: rgba(255, 253, 248, .22);
  color: rgba(251, 245, 234, .78);
}
.player-error .btn--ghost:hover {
  border-color: rgba(255, 253, 248, .42);
  background: rgba(255, 253, 248, .08);
  color: var(--cream);
}

.player-hint {
  width: min(100%, calc((100dvh - 276px) * 16 / 9));
  margin: 7px auto 0;
  color: rgba(251, 245, 234, .36);
  font-size: 9.5px;
  text-align: center;
}

.player-info {
  width: min(100%, 860px);
  margin: 18px auto 0;
}
.player-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--terracotta);
  color: #FFF9F4;
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.pill--soft {
  border: 1px solid rgba(255, 253, 248, .12);
  background: rgba(255, 253, 248, .06);
  color: rgba(251, 245, 234, .65);
  letter-spacing: .02em;
}
.player-info h2 {
  margin-top: 9px;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 37px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.045em;
}
.player-info > p {
  max-width: 660px;
  margin-top: 7px;
  color: rgba(251, 245, 234, .58);
  font-size: 12.5px;
  line-height: 1.55;
}
.player-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}
.player-actions .btn--soft {
  border-color: rgba(255, 253, 248, .12);
  background: rgba(255, 253, 248, .08);
  color: var(--cream);
  box-shadow: none;
}
.player-actions .btn--soft:hover { background: rgba(255, 253, 248, .14); }
.player-actions .btn--soft.is-fav {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #FFF9F4;
}
.player-actions .btn--soft.is-fav .icon { fill: currentColor; stroke: currentColor; }
.player-actions .btn--ghost {
  border-color: rgba(255, 253, 248, .16);
  color: rgba(251, 245, 234, .75);
}
.player-actions .btn--ghost:hover { background: rgba(255, 253, 248, .07); border-color: rgba(255, 253, 248, .3); }

.player-side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  padding: 24px 20px;
  border-left: 1px solid rgba(255, 253, 248, .08);
  background: #251E1A;
}
.player-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
}
.player-side-head h3 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.03em;
}
.player-side-head span {
  color: rgba(251, 245, 234, .32);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.upnext-list { display: flex; flex-direction: column; gap: 4px; }
.upnext-empty {
  padding: 18px 7px;
  color: rgba(251, 245, 234, .4);
  font-size: 10px;
  line-height: 1.5;
}
.upnext-item {
  display: grid;
  grid-template-columns: 91px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 7px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  text-align: left;
  transition: background .2s ease;
}
.upnext-item:hover { background: rgba(255, 253, 248, .06); }
.upnext-art {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 8px;
  background: #3A2F27;
}
.upnext-art .art-svg { width: 100%; height: 100%; }
.upnext-art img { width: 100%; height: 100%; object-fit: cover; }
.upnext-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.upnext-copy strong {
  overflow: hidden;
  color: rgba(251, 245, 234, .88);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upnext-copy small {
  overflow: hidden;
  color: rgba(251, 245, 234, .34);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upnext-play { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; color: rgba(251, 245, 234, .4); }
.upnext-play .icon { width: 11px; height: 11px; }
.upnext-item:hover .upnext-play { color: var(--mustard); }

.player-side-note {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 22px;
  color: rgba(251, 245, 234, .33);
}
.player-side-note .icon { width: 13px; height: 13px; flex: none; color: var(--terracotta); margin-top: 2px; }
.player-side-note p { font-size: 9px; line-height: 1.55; }

/* =========================================================
   Toasts
   ========================================================= */

.toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  width: min(340px, calc(100vw - 32px));
  padding: 12px 14px;
  border: 1px solid rgba(255, 253, 248, .12);
  border-radius: 13px;
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 18px 35px -18px rgba(0, 0, 0, .55);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  pointer-events: auto;
  animation: toast-in .3s cubic-bezier(.2, .7, .2, 1) both;
}
.toast.is-leaving { animation: toast-out .25s ease both; }
.toast .icon { width: 15px; height: 15px; flex: none; margin-top: 1px; color: var(--mustard); }
.toast--success .icon { color: #B7D5AE; }
.toast--error .icon { color: #F0A78E; }

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1120px) {
  .hero-grid { gap: 34px; }
  .stage-doodle--sun { right: 4px; width: 62px; }
  .header-inner { gap: 24px; }
  .main-nav { gap: 22px; }
  .stream-grid { gap: 26px 18px; }
  .player-shell { grid-template-columns: minmax(0, 1fr) 310px; }
}

@media (max-width: 1000px) {
  .main-nav { display: none; }
  .menu-toggle { display: grid; }
  .header-api span { display: none; }
  .header-api { width: 42px; height: 42px; min-height: 42px; padding: 0; border-radius: 50%; }
  .mobile-nav:not([hidden]) { display: block; }

  .hero { padding-top: 42px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-copy { max-width: 680px; }
  .hero h1 { font-size: clamp(42px, 6.2vw, 62px); }
  .hero-stage { width: min(590px, 100%); margin: 0 auto; min-height: 500px; }
  .stage-pill { left: 2%; }
  .api-banner-actions { margin-left: auto; }

  .stream-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collection-card { min-height: 158px; }
  .family-night-art { flex-basis: 150px; width: 150px; }

  .how-panel { grid-template-columns: 1fr; gap: 32px; padding: 34px; }
  .how-code { max-width: 620px; width: 100%; margin: 0 auto; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:last-child { grid-column: span 2; max-width: 520px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-note { display: none; }

  .player-shell { grid-template-columns: 1fr; height: 100dvh; overflow-y: auto; }
  .player-main { overflow: visible; padding: 12px 18px 22px; }
  .player-frame,
  .player-hint { width: 100%; }
  .player-side {
    overflow: visible;
    border-top: 1px solid rgba(255, 253, 248, .08);
    border-left: 0;
    padding: 22px 18px 30px;
  }
  .upnext-list { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
  .player-side-note { display: none; }
}

@media (max-width: 860px) {
  .api-sheet { grid-template-columns: 1fr; }
  .api-main { padding: 32px 28px 26px; }
  .api-aside { padding: 26px 28px; }
  .aside-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .aside-list li:last-child { grid-column: span 2; }
  .aside-note { margin-top: 17px; }
  .aside-small { display: none; }
  .api-aside::after { display: none; }
}

@media (max-width: 760px) {
  .container { width: calc(100% - 32px); }
  .section { padding: 56px 0; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 13px; margin-bottom: 22px; }
  .section-sub { max-width: 480px; }
  .catalog { padding-top: 46px; }
  .catalog-toolbar { align-items: stretch; flex-direction: column-reverse; gap: 11px; padding-top: 13px; }
  .search { width: 100%; flex-basis: auto; }
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 -16px;
    padding: 2px 16px 4px;
    scrollbar-width: none;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filter-btn { flex: none; }
  .catalog-hint { display: none; }
  .catalog-meta { padding-bottom: 14px; }
  .stream-grid { gap: 25px 14px; }
  .card-title-row h3 { font-size: 16px; }
  .card-desc { font-size: 11.8px; }
  .card-play { width: 40px; height: 40px; opacity: 1; transform: none; }
  .card-play .icon { width: 15px; height: 15px; }
  .card-live, .card-demo { bottom: 10px; left: 10px; }
  .card-cat { top: 9px; left: 9px; font-size: 8.5px; }
  .fav { top: 8px; right: 8px; width: 32px; height: 32px; }

  .hero { padding-top: 34px; }
  .hero h1 { font-size: clamp(34px, 9vw, 48px); margin-top: 18px; }
  .hero-lede { font-size: 15.5px; }
  .hero-actions { gap: 8px; }
  .hero-actions .btn { min-height: 46px; padding: 12px 16px; font-size: 12.5px; }
  .hero-stats { gap: 20px; flex-wrap: wrap; margin-top: 28px; }
  .hero-family { margin-left: 0; }
  .hero-stage { min-height: 0; padding: 18px 0 48px; }
  .tv { width: min(480px, 94%); }
  .stage-pill { top: 0; left: 0; font-size: 8px; padding: 7px 10px; }
  .stage-doodle--sun { top: 2px; width: 50px; }
  .stage-doodle--star { display: none; }
  .stage-shelf { bottom: -16px; }
  .shelf-plant { width: 60px; height: 70px; left: 3%; }
  .tv { transform: rotate(-.7deg); }
  .tv-caption { padding: 8px 10px; }
  .tv-caption strong { font-size: 11px; }
  .tv-caption span { font-size: 6.5px; }
  .tv-play { min-height: 34px; padding: 7px 12px; font-size: 10px; }

  .api-banner { flex-wrap: wrap; gap: 11px; padding: 14px; }
  .api-banner-copy { flex: 1; min-width: 180px; }
  .api-banner-actions { width: 100%; margin-left: 55px; }
  .api-banner-actions .btn { min-height: 38px; }

  .collection-grid { gap: 10px; }
  .collection-card { min-height: 142px; padding: 14px; border-radius: 20px; }
  .collection-icon { width: 36px; height: 36px; border-radius: 11px; }
  .collection-icon svg { width: 21px; height: 21px; }
  .collection-text strong { font-size: 14px; }
  .collection-arrow { top: 13px; right: 12px; width: 27px; height: 27px; }

  .family-night { flex-wrap: wrap; padding: 21px; gap: 15px; }
  .family-night-art { flex-basis: 110px; width: 110px; }
  .family-night-copy { flex: 1; min-width: 190px; }
  .family-night .btn { width: 100%; margin-left: 0; }
  .family-night-copy h3 { font-size: 19px; }

  .how-panel { padding: 26px 20px; border-radius: 28px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-nav { gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .footer-bottom p:last-child { text-align: left; }

  .sheet-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 24px; }
  .api-sheet { max-height: calc(100dvh - 16px); }
  .api-main { padding: 28px 18px 22px; }
  .api-head { padding-right: 26px; }
  .api-aside { padding: 22px 18px; }
  .field-row { grid-template-columns: 1fr; }
  .api-actions .btn { flex: 1; padding-inline: 12px; }
  .api-actions .btn--ghost { flex: 0 0 auto; }
  .aside-list { grid-template-columns: 1fr; }
  .aside-list li:last-child { grid-column: auto; }
  .modal-close { top: 10px; right: 10px; width: 32px; height: 32px; }

  .player-main { padding: 8px 10px 18px; }
  .player-bar { padding: 0 2px; margin-bottom: 5px; min-height: 42px; }
  .player-bar-actions { gap: 9px; }
  .player-external { font-size: 9px; }
  .player-frame { border-radius: 12px; }
  .player-info { padding: 0 5px; }
  .player-info h2 { font-size: 25px; }
  .player-info > p { font-size: 11.5px; }
  .player-actions .btn { font-size: 10.5px; min-height: 38px; padding-inline: 11px; }
  .player-side { padding: 20px 10px 26px; }
  .upnext-list { grid-template-columns: 1fr; }
  .player-side-head { padding: 0 5px; }

  .toast-stack { right: 12px; bottom: 12px; left: 12px; }
  .toast { width: 100%; }
}

@media (max-width: 540px) {
  .header-inner { height: 68px; gap: 14px; }
  .brand-mark { width: 38px; height: 38px; border-radius: 12px; }
  .brand-mark svg { width: 24px; height: 24px; }
  .brand-text strong { font-size: 19px; }
  .brand-text small { font-size: 7.5px; }
  .source-status { display: none; }
  .header-actions { gap: 7px; }
  .header-api { width: 38px; height: 38px; min-height: 38px; }
  .menu-toggle { width: 38px; height: 38px; }

  .eyebrow { font-size: 8.5px; letter-spacing: .09em; padding: 5px 10px 5px 7px; }
  .eyebrow-dot { width: 20px; height: 20px; }
  .eyebrow-dot::before { inset: 6px; }
  .hero h1 { font-size: clamp(29px, 9.2vw, 42px); }
  .hero-actions .btn { flex: 1; white-space: normal; text-align: center; }
  .hero-note { font-size: 10.5px; align-items: flex-start; }
  .hero-stat strong { font-size: 24px; }
  .hero-stat span { font-size: 9px; }
  .hero-family { display: none; }

  .tv { padding: 12px 12px 10px; border-radius: 24px; }
  .tv-top { padding-bottom: 8px; }
  .tv-caption { left: 8px; right: 8px; bottom: 8px; }
  .tv-bottom { gap: 8px; padding-top: 9px; }
  .tv-speaker { width: 40px; height: 16px; }
  .tv-knobs i { width: 15px; height: 15px; }
  .tv-play span { display: none; }
  .tv-play { width: 33px; min-height: 33px; padding: 0; justify-content: center; }
  .tv-play .icon { width: 13px; height: 13px; margin-left: 1px; }
  .stage-pill { display: none; }
  .stage-shelf { bottom: -20px; }
  .shelf-book { display: none; }
  .shelf-plant { display: block; }


  .api-banner-actions { margin-left: 0; }
  .api-banner-icon { width: 38px; height: 38px; border-radius: 12px; }
  .api-banner-copy strong { font-size: 13px; }
  .api-banner-copy p { font-size: 11.5px; }

  .section-head h2 { font-size: 29px; }
  .section-sub { font-size: 12.5px; }
  .section-kicker { font-size: 9px; }
  .stream-grid { grid-template-columns: 1fr; gap: 24px; }
  .card-media { border-radius: 20px; }
  .card-desc { -webkit-line-clamp: 3; }
  .card-title-row h3 { font-size: 18px; }
  .card-play { width: 44px; height: 44px; }

  .collection-grid { grid-template-columns: 1fr 1fr; }
  .collection-card { min-height: 128px; }
  .collection-text strong { font-size: 12.5px; }
  .collection-text small { font-size: 9px; }
  .collection-doodle { width: 95px; height: 95px; border-width: 12px; }
  .family-night-art { display: none; }
  .family-night-copy { min-width: 100%; }

  .how-panel { padding: 23px 16px; }
  .how-copy h2 { font-size: 26px; }
  .how-actions .btn { width: 100%; }
  .code-card pre { font-size: 8.5px; padding: 14px 13px; }
  .code-foot { font-size: 7.5px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item:last-child { grid-column: auto; }

  .footer-nav { grid-template-columns: 1fr 1fr; }
  .footer-bottom { font-size: 8px; }

  .api-head h2 { font-size: 26px; }
  .api-head > p:last-child { font-size: 11.5px; }
  .api-actions { flex-wrap: wrap; }
  .api-actions .btn--ghost { order: 2; width: 100%; flex: 1 0 100%; }
  .api-actions .btn--primary { order: 1; flex: 1 0 100%; }
  .dropzone { padding: 13px; }

  .player-external { display: none; }
  .player-info h2 { font-size: 22px; }
  .player-actions .btn { flex: 1; }
  .player-tags .pill { font-size: 8px; }
}

@media (max-width: 430px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero h1 { font-size: clamp(28px, 9.4vw, 38px); }
  .header-inner { gap: 10px; }
  .brand-text small { letter-spacing: .12em; }
  .collection-grid { grid-template-columns: 1fr; }
  .collection-card { min-height: 116px; }
  .collection-text { padding-top: 12px; }
  .family-night { padding: 18px; }
  .how-panel { padding: 20px 13px; }
  .how-copy h2 { font-size: 23px; }
  .api-main { padding: 25px 14px 20px; }
  .api-aside { padding: 20px 14px; }
  .api-actions .btn { font-size: 11px; }
  .player-bar { min-height: 38px; }
  .player-mode { padding: 5px 8px; font-size: 7.5px; }
  .player-info h2 { font-size: 21px; }
  .player-actions { gap: 6px; }
  .player-actions .btn { font-size: 9.5px; padding-inline: 9px; }
}

/* =========================================================
   Motion
   ========================================================= */

@keyframes rise-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes dialog-in {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to { opacity: 1; transform: none; }
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to { opacity: 1; transform: none; }
}
@keyframes toast-out {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateY(8px) scale(.97); }
}
@keyframes soft-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal.will-reveal:not(.is-visible) { opacity: 1; transform: none; }
  .card-play { opacity: 1; transform: none; }
}
