:root {
  --bg: #0a0a0c;
  --bg-elev: #121216;
  --bg-elev-2: #1a1a20;
  --text: #f3f3f5;
  --muted: #8e8e98;
  --border: rgba(255, 255, 255, 0.08);
  /* Luminous primary — Kyro; whisper red only for tiny danger states */
  --accent: #f3f3f5;
  --accent-2: #c8c8d0;
  --accent-soft: rgba(255, 255, 255, 0.1);
  --accent-on: #0a0a0c;
  --whisper: rgba(255, 72, 72, 0.55);
  --ok: #3dd68c;
  --radius: 16px;
  --font: "Outfit", "Segoe UI", sans-serif;
  --display: "Outfit", "Segoe UI", sans-serif;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --btn-radius: 12px;
  --btn-pad-y: 11px;
  --btn-pad-x: 16px;
  --btn-min-h: 44px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-weight: 400;
  background:
    radial-gradient(900px 480px at 50% -8%, rgba(255, 255, 255, 0.06), transparent 55%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: overlay;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.app-shell { max-width: min(1680px, 100%); margin: 0 auto; padding: 20px 28px 96px; }

@media (min-width: 1100px) {
  .app-shell { padding-left: 36px; padding-right: 36px; }
  .card { flex: 0 0 280px; }
  .rail-track { gap: 14px; }
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.smart-search {
  flex: 1 1 280px;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 560px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 6px 4px 14px;
}
.smart-search-lg {
  max-width: none;
  width: 100%;
  border-radius: 16px;
  padding: 8px 10px 8px 16px;
  overflow: hidden;
  box-sizing: border-box;
}
.smart-search-lg .smart-go,
.smart-search-lg .smart-mic {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  font-size: 18px;
}
.smart-search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--text);
  outline: none;
  padding: 8px 0;
}
.smart-mic, .smart-go {
  appearance: none;
  border: none;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.smart-mic.listening {
  background: rgba(255, 255, 255, 0.16);
  animation: pulse-mic 1s ease infinite;
}
@keyframes pulse-mic {
  50% { transform: scale(1.06); }
}
.lexicon-field textarea,
.note-sheet-card textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elev-2);
  color: var(--text);
  padding: 10px 12px;
  resize: vertical;
}
.note-sheet {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0,0,0,0.55);
  padding: 16px;
}
.note-sheet-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.yt-discover-card .badge {
  left: 8px;
  right: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0;
}
.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #0a0a0c;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  padding: 0 4px;
}
.brand-mark-text {
  font-family: var(--display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: -0.06em;
  line-height: 1;
  color: #f3f3f5;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.22);
}
.brand-mark svg {
  width: 16px;
  height: 16px;
  display: block;
  opacity: 0.92;
}
.brand-name {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.04em;
  font-size: 1.45rem;
  line-height: 1.05;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.16);
}

.nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.nav-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--btn-min-h);
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: var(--btn-radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  cursor: pointer;
}
.nav-btn:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.18); }
.nav-btn.active {
  background: var(--accent-soft);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.2vw, 2.75rem);
  letter-spacing: -0.04em;
  margin: 0;
  line-height: 1.08;
  text-shadow: 0 0 28px rgba(255, 255, 255, 0.1);
}
.hero p { margin: 0; color: var(--muted); max-width: 52ch; line-height: 1.5; }

.stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.stat {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--muted);
}
.stat b { color: var(--text); }

.rail { margin: 28px 0; }
.rail-head {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 12px;
}
.rail-head h2 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.rail-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-inline: -28px;
  padding-inline: 28px;
  padding-right: calc(28px + 48px);
  scroll-padding-inline: 28px;
  scroll-snap-type: x mandatory;
}
@media (min-width: 1100px) {
  .rail-track {
    margin-inline: -36px;
    padding-inline: 36px;
    padding-right: calc(36px + 56px);
    scroll-padding-inline: 36px;
  }
}
.rail-track.drag-scroll-ready,
.folder-rail.drag-scroll-ready,
.drag-scroll.drag-scroll-ready {
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
  touch-action: pan-y;
}
.rail-track.is-dragging,
.folder-rail.is-dragging,
.drag-scroll.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}
.rail-track img,
.folder-rail img,
.drag-scroll img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: auto;
}
.rail-track::-webkit-scrollbar { height: 6px; }
.rail-track::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.card {
  position: relative;
  flex: 0 0 260px;
  scroll-snap-align: start;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: visible;
  transition: transform 0.35s var(--ease), border-color 0.25s ease, box-shadow 0.35s var(--ease);
  color: var(--text);
  display: flex;
  flex-direction: column;
}
.card > .moth {
  position: absolute;
  width: 2.5px;
  height: 2.5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px rgba(255,255,255,0.85);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  transition: opacity 0.3s;
}
.card > .moth:nth-of-type(1) { top: 12px; right: 18px; }
.card > .moth:nth-of-type(2) { left: 14px; top: 40%; width: 2px; height: 2px; }
.card > .moth:nth-of-type(3) { bottom: 52px; right: 28px; width: 2px; height: 2px; }
.card:hover,
.card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.22);
  box-shadow: 0 0 36px rgba(255,255,255,0.07), inset 0 1px 0 rgba(255,255,255,0.08);
}
.card:hover > .moth,
.card:focus-within > .moth,
.card.card-spark > .moth {
  opacity: 0.9;
  animation: card-moth-twinkle 2.4s ease-in-out infinite;
}
.card:hover > .moth:nth-of-type(2),
.card.card-spark > .moth:nth-of-type(2) { animation-delay: 0.5s; opacity: 0.65; }
.card:hover > .moth:nth-of-type(3),
.card.card-spark > .moth:nth-of-type(3) { animation-delay: 1.1s; }
@keyframes card-moth-twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.7); }
  45%, 55% { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .card:hover > .moth,
  .card.card-spark > .moth { animation: none; opacity: 0.5; }
}
.card-main {
  display: block;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}
.card-actions {
  display: flex;
  gap: 8px;
  padding: 0 12px 12px;
  align-items: center;
}
.card-actions .play-btn {
  min-width: 44px;
  padding: 8px 12px;
  flex: 1;
}
.thumb-eye {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 4;
  appearance: none;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
  padding: 0;
}
.thumb-eye:hover {
  background: rgba(255, 255, 255, 0.22);
}
.card-menu {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
}
.card-menu-btn {
  appearance: none;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.card-menu-pop {
  position: absolute;
  top: 36px;
  right: 0;
  min-width: 200px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 6px;
  display: grid;
  gap: 2px;
  z-index: 20;
}
.card-menu-pop.hidden { display: none; }
.card-menu-pop button {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.card-menu-pop button:hover { background: rgba(255, 255, 255, 0.06); }
.card-menu-pop button.danger { color: #ff8a80; }
.card-boost {
  position: absolute;
  left: 8px;
  top: 8px;
  font-size: 12px;
}
.rail-head-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.rail-handle {
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  width: 32px;
  height: 32px;
  border-radius: 10px;
  cursor: grab;
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
  touch-action: none;
}
.rail-handle:active { cursor: grabbing; }
.rail.rail-dragging {
  opacity: 0.55;
  outline: 1px dashed rgba(255, 255, 255, 0.22);
}
.rail.rail-drop-target {
  outline: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
}
/* <button class="card"> inherits UA black text — force theme colors */
button.card {
  appearance: none;
  display: block;
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--bg-elev);
  text-align: left;
}
button.card .card-title,
button.card h3 {
  color: var(--text);
}
button.card .card-meta {
  color: var(--muted);
}
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
}
.card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 12px;
  padding: 3px 7px;
  border-radius: 8px;
}
.card-body { padding: 12px 12px 14px; }
.card-title {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  margin: 0 0 6px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.05em;
}
.card-meta {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.panel {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.panel h2 { margin: 0 0 8px; font-family: var(--display); letter-spacing: -0.03em; }
.panel .hint { color: var(--muted); margin: 0 0 16px; font-size: 14px; line-height: 1.45; }

.field { display: grid; gap: 8px; margin-bottom: 14px; }
.field label { font-size: 13px; color: var(--muted); }
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--bg-elev-2);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}
.field input:focus, .field textarea:focus {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* One button system — primary / secondary / ghost */
.btn,
a.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--btn-min-h);
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: var(--btn-radius);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease, filter 0.15s ease;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-on);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.12);
}
.btn:hover:not(:disabled),
a.btn:hover { filter: brightness(1.06); }
.btn.secondary,
a.btn.secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
  color: var(--text);
  filter: none;
}
.btn.secondary:hover:not(:disabled),
a.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}
.btn.ghost,
a.btn.ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
  filter: none;
}
.btn.ghost:hover:not(:disabled),
a.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}
.btn:disabled { opacity: 0.45; cursor: default; filter: none; }

/* Native file input → same as .btn.secondary */
.file-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--btn-min-h);
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: var(--btn-radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.file-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}
.file-btn input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.preview {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  margin-top: 8px;
  align-items: start;
}
.preview img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 12px;
  background: #000;
}
@media (max-width: 640px) {
  .preview { grid-template-columns: 1fr; }
  .nav { width: 100%; }
}

.video-page {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 22px;
}
@media (max-width: 860px) {
  .video-page { grid-template-columns: 1fr; }
}
.video-hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse at 40% 35%, rgba(255,255,255,0.08), transparent 55%),
    #0c0c10;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.video-hero img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background: #121216;
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
}
.video-hero:hover img {
  transform: scale(1.02);
  filter: brightness(1.05);
}
.video-hero .hero-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 36px rgba(255,255,255,0.12);
  pointer-events: none;
  z-index: 2;
}
.video-hero .hero-play::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 18px;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fff;
}
.video-hero::after {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 55% 40%, rgba(255,255,255,0.1), transparent 42%);
  filter: blur(24px);
  pointer-events: none;
  opacity: 0.7;
  animation: kyro-float 7s ease-in-out infinite;
}
@keyframes kyro-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* —— Page transitions (Kyro) —— */
#app.page-exit {
  animation: kyro-page-out 0.28s var(--ease) forwards;
}
#app.page-exit-video {
  animation: kyro-video-out 0.4s var(--ease) forwards;
}
#app.page-enter {
  animation: kyro-page-in 0.42s var(--ease) both;
}
#app.page-enter-video {
  animation: kyro-video-in 0.55s var(--ease) both;
}
#app.page-enter-video .video-hero {
  animation: kyro-hero-in 0.7s var(--ease) both;
}
#app.page-enter-video .video-page > div:last-child {
  animation: kyro-panel-in 0.55s 0.08s var(--ease) both;
}
@keyframes kyro-page-out {
  to { opacity: 0; transform: translateY(8px) scale(0.992); filter: blur(2px); }
}
@keyframes kyro-page-in {
  from { opacity: 0; transform: translateY(10px) scale(0.994); filter: blur(3px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes kyro-video-out {
  to { opacity: 0; transform: translateY(16px) scale(0.985); filter: blur(4px); }
}
@keyframes kyro-video-in {
  from { opacity: 0; transform: translateY(18px) scale(0.98); filter: blur(5px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes kyro-hero-in {
  from { opacity: 0; transform: scale(0.96); filter: brightness(0.7); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes kyro-panel-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  #app.page-exit,
  #app.page-exit-video,
  #app.page-enter,
  #app.page-enter-video,
  #app.page-enter-video .video-hero,
  #app.page-enter-video .video-page > div:last-child,
  .video-hero::after {
    animation: none !important;
  }
}
.muted { color: var(--muted); }
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px;
  margin: 0 6px 6px 0;
  color: var(--text);
}
.tag-pill-sm { font-size: 11px; padding: 3px 8px; margin: 6px 4px 0 0; }
.tag-pill-lg { font-size: 14px; padding: 8px 12px; }
.tag-pill-btn {
  cursor: pointer;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  font: inherit;
}
.tag-pill-btn:hover { border-color: rgba(255, 255, 255, 0.2); }
.tag-pill-on {
  background: var(--accent-soft);
  border-color: rgba(255, 255, 255, 0.22);
}
.tag-x {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0 2px;
  margin-left: 2px;
}
.tag-x:hover { color: var(--text); }
.tags-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.tags-edit-btn {
  min-height: 32px !important;
  padding: 4px 10px !important;
  font-size: 14px;
}
.tags-edit-btn.active {
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.08);
}
.tags-row[data-editing="0"] .tag-x { display: none; }
.tag-pill-edit {
  padding-right: 6px;
}
.tag-sim-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin: 8px 0;
  padding-bottom: 6px;
}
.tag-sim-card {
  flex: 0 0 140px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  background: rgba(255,255,255,0.03);
}
.tag-sim-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 8px;
  background: #121216;
}
.tag-sim-title {
  font-size: 12px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tag-sim-card input { accent-color: #fff; }

/* —— Recent list (no spine) —— */
.recent-list {
  max-width: 720px;
  margin: 8px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.recent-list .card.card-row {
  flex: none;
  width: auto;
  max-width: none;
  display: grid;
  grid-template-columns: 128px 1fr auto;
  gap: 12px;
  align-items: stretch;
  background: rgba(255,255,255,0.035);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.recent-list .card.card-row .card-main {
  display: contents;
  border-radius: 0;
}
.recent-list .card.card-row .card-thumb {
  width: 128px;
  min-height: 72px;
  aspect-ratio: 16/9;
  border-radius: 12px 0 0 12px;
  overflow: hidden;
  position: relative;
  background: #121216;
}
.recent-list .card.card-row .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--ease), filter 0.45s ease, opacity 0.35s ease;
  opacity: 0.92;
}
.recent-list .card.card-row:hover .card-thumb img,
.recent-list .card.card-row:focus-within .card-thumb img {
  transform: scale(1.04);
  opacity: 1;
  filter: brightness(1.06);
}
.recent-list .card.card-row .card-body {
  padding: 10px 4px 10px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.recent-list .card.card-row .card-title {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}
.recent-list .card.card-row .card-meta { font-size: 12px; }
.recent-list .card.card-row .card-actions {
  padding: 10px 12px 10px 0;
  align-self: center;
}
.recent-list .card.card-row .card-menu {
  top: 6px;
  right: 6px;
}
.recent-list .card.card-row .thumb-eye {
  left: 4px;
  bottom: 4px;
  width: 26px;
  height: 26px;
  font-size: 12px;
}

/* —— Kyro spine queue (legacy, unused) —— */
.spine-list {
  position: relative;
  max-width: 640px;
  margin: 8px 0 28px;
  padding-left: 8px;
}
.spine-list::before { display: none; }
.tags-cloud, .tags-row, .card-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}

.empty {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  color: var(--muted);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: #1a1a20;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 50;
  max-width: min(92vw, 420px);
}

.undo-bar {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 13000;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  max-width: min(92vw, 520px);
  padding: 12px 14px;
  border-radius: 14px;
  background: #1c1c24;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow);
}
.undo-bar.hidden { display: none !important; }
.undo-msg { font-weight: 650; }
.undo-count { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 2ch; }
.undo-btn {
  appearance: none;
  border: none;
  background: var(--accent);
  color: var(--accent-on);
  font: inherit;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 10px;
}
.undo-x {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  padding: 0 4px;
}
.search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.search-grid .card {
  flex: none;
  width: 100%;
  max-width: none;
}
.shorts-fold summary {
  cursor: pointer;
  list-style: none;
}
.shorts-fold summary::-webkit-details-marker { display: none; }
.lexicon-snooze {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.lexicon-snooze select {
  flex: 1;
  min-width: 140px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elev-2);
  color: var(--text);
  padding: 8px 10px;
}

.login-wrap {
  min-height: 70vh;
  display: grid;
  place-items: center;
}
.sister {
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted);
}
.sister a { color: #ffb4a8; text-decoration: underline; text-underline-offset: 3px; }

.bottom-nav {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: rgba(11, 11, 13, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  z-index: 40;
  justify-content: space-around;
}
.bottom-nav button {
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  min-height: 40px;
  padding: 8px 10px;
  cursor: pointer;
}
.bottom-nav button.active {
  color: #fff;
  background: var(--accent-soft);
  border-color: rgba(255, 255, 255, 0.16);
}
@media (max-width: 720px) {
  .topbar .nav { display: none; }
  .bottom-nav { display: flex; }
  .app-shell { padding-bottom: 110px; }
}

/* Live process feedback */
.progress-box {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  animation: progress-in 0.22s ease;
}
.progress-box.done {
  border-color: rgba(61, 214, 140, 0.35);
  background: linear-gradient(180deg, rgba(61, 214, 140, 0.1), rgba(255, 255, 255, 0.03));
}
.progress-box.error {
  border-color: var(--whisper);
  background: linear-gradient(180deg, rgba(255, 72, 72, 0.08), rgba(255, 255, 255, 0.03));
}
@keyframes progress-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.progress-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.progress-spin {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--accent-2);
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
.progress-box.done .progress-spin,
.progress-box.error .progress-spin {
  animation: none;
  border: 0;
  background: var(--ok);
  position: relative;
}
.progress-box.done .progress-spin::after {
  content: "";
  position: absolute;
  inset: 6px 5px 7px 7px;
  border: solid #0b0b0d;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.progress-box.error .progress-spin {
  background: var(--accent);
}
.progress-box.error .progress-spin::after {
  content: "!";
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: grid;
  place-items: center;
  inset: 0;
  position: absolute;
}
@keyframes spin { to { transform: rotate(360deg); } }
.progress-copy { flex: 1; min-width: 0; }
.progress-title {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
}
.progress-detail {
  margin-top: 3px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
}
.progress-meta {
  text-align: right;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.progress-pct {
  font-weight: 800;
  font-family: var(--display);
  font-size: 1.1rem;
}
.progress-eta {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}
.progress-bar {
  margin-top: 12px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.progress-bar > i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.25s ease;
  position: relative;
}
.progress-bar > i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  animation: sheen 1.1s linear infinite;
}
@keyframes sheen {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}
.progress-box.done .progress-bar > i {
  background: var(--ok);
}
.progress-box.done .progress-bar > i::after { animation: none; opacity: 0; }
.progress-log {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  max-height: 120px;
  overflow: auto;
  font-size: 12px;
  color: #b7b7c2;
}
.progress-log li {
  padding: 3px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: #b7b7c2;
}
.progress-log li:first-child {
  border-top: 0;
  color: #f2f2f4;
  font-weight: 600;
}
.btn.busy {
  pointer-events: none;
  opacity: 0.7;
  position: relative;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.chip {
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: var(--btn-radius);
  min-height: 36px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
.chip.active {
  background: var(--accent-soft);
  border-color: rgba(255, 255, 255, 0.22);
}
.channel-list {
  display: grid;
  gap: 8px;
}
.channel-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  text-align: left;
  width: 100%;
}
.channel-row:hover {
  border-color: rgba(255, 255, 255, 0.18);
}
.channel-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: #222;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.channel-row-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.channel-row b { font-size: 15px; color: var(--text); }
.channel-row .count {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.list-card {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  border-radius: 16px;
  overflow: hidden;
  padding: 0;
  text-align: left;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  width: 100%;
}
.list-card:hover { border-color: rgba(255, 255, 255, 0.2); }
.list-cover {
  display: grid;
  gap: 2px;
  aspect-ratio: 16 / 9;
  background: #111;
}
.list-cover-1 { grid-template-columns: 1fr; }
.list-cover-2 { grid-template-columns: 1fr 1fr; }
.list-cover-3 { grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; }
.list-cover-3 img:first-child { grid-row: 1 / span 2; }
.list-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 0;
}
.list-cover-empty {
  display: grid;
  place-items: center;
  font-size: 40px;
  opacity: 0.5;
  aspect-ratio: 16 / 9;
  background: var(--bg-elev-2);
}
.list-card-body { padding: 12px 14px 14px; }
.list-card-body h3 {
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.3;
}
.warn-box {
  margin: 12px 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 122, 69, 0.45);
  background: rgba(255, 122, 69, 0.1);
  color: #ffd7c2;
  font-size: 14px;
  line-height: 1.4;
}

.folder-list { display: grid; gap: 12px; }
.folder-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-elev);
  overflow: hidden;
  color: var(--text);
}
.folder-card.open { border-color: rgba(255, 255, 255, 0.2); }
.folder-head {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.folder-head:hover { background: rgba(255, 255, 255, 0.03); }
.folder-head-text { min-width: 0; flex: 1; }
.folder-head-text b { display: block; font-size: 15px; margin-bottom: 4px; color: var(--text); }
.folder-head-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.folder-head-meta .count {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.folder-rule {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ffb4a8;
}
.folder-rule.muted { color: var(--muted); font-weight: 600; text-transform: none; letter-spacing: 0; }
.folder-card.drop-hover {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.folder-rail {
  display: flex;
  gap: 12px;
  padding: 0 14px 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.folder-tile {
  position: relative;
  flex: 0 0 200px;
  scroll-snap-align: start;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elev-2);
  color: var(--text);
  cursor: grab;
  overflow: visible;
  display: flex;
  flex-direction: column;
}
.folder-tile.dragging { opacity: 0.45; cursor: grabbing; }
.folder-tile-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.folder-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.folder-tile .card-menu { top: 6px; right: 6px; }
.folder-tile-title {
  padding: 10px 10px 4px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.05em;
}
.folder-tile-meta {
  padding: 0 10px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.folder-tile-actions {
  display: flex;
  gap: 6px;
  padding: 8px 10px 10px;
  margin-top: auto;
  align-items: center;
}
.folder-assign {
  flex: 1;
  min-width: 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.35);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  padding: 6px 8px;
}
.folder-body { padding: 0 14px 14px; border-top: 1px solid rgba(255,255,255,0.06); }
.folder-grid { display: grid; gap: 8px; margin-top: 12px; }
.folder-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  color: var(--text);
}
.folder-item img {
  width: 120px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  background: #000;
}
.folder-item-title {
  font-size: 14px;
  font-weight: 650;
  color: var(--text);
  line-height: 1.3;
}

/* Desktop mouse drag on carousels */
.rail-track,
.folder-rail,
.drag-scroll {
  cursor: grab;
  user-select: none;
}
.rail-track.is-dragging,
.folder-rail.is-dragging,
.drag-scroll.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}
.rail-track.is-dragging a,
.drag-scroll.is-dragging a {
  pointer-events: none;
}

.fab-add {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: calc(72px + env(safe-area-inset-bottom));
  z-index: 80;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: var(--accent-on);
  font-size: 32px;
  line-height: 1;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 24px rgba(255,255,255,0.12);
  cursor: pointer;
  display: none; /* mobile: share from YouTube; + only on desktop web */
}
@media (min-width: 900px) {
  .fab-add {
    display: block;
    bottom: 28px;
  }
}

.hero-compact {
  margin-bottom: 12px;
}
.hero-compact h1 {
  margin-bottom: 10px;
}
.stats-compact {
  gap: 10px;
}
.stats-compact .stat {
  padding: 6px 10px;
  font-size: 13px;
}

.now-block {
  margin: 8px 0 18px;
  padding: 14px 0 4px;
}
.now-block .rail-head {
  margin-bottom: 8px;
}
.now-block .filter-chips {
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.now-block .suggest-card .card-title {
  font-size: 0.95rem;
}
.mp-sister {
  margin: 0 0 16px;
  font-size: 13px;
}
.mp-sister a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mp-sister a:hover {
  color: var(--text);
}
.plan-block {
  margin: 4px 0 18px;
}
.plan-block h3 {
  font-weight: 500;
  color: var(--muted);
}
.inbox-onboard {
  border: 1px solid var(--border);
}
.settings-panel {
  margin-bottom: 14px;
}
.settings-panel h2 {
  margin-bottom: 12px;
}
.settings-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.settings-row label {
  min-width: 120px;
  color: var(--muted);
  font-size: 13px;
}
.settings-row input[type="number"],
.settings-row select {
  width: 64px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}
.settings-row select {
  width: auto;
  min-width: 72px;
}
.settings-label {
  margin: 10px 0 6px;
  font-size: 13px;
  color: var(--muted);
}
.settings-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  font-size: 14px;
  color: var(--text);
}

.sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.62);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}
.sheet-card {
  width: min(520px, 100%);
  max-height: min(88vh, 640px);
  overflow: auto;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 18px 18px 14px 14px;
  padding: 16px 18px 20px;
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.sheet-head h2 { margin: 0; font-size: 1.2rem; }
.sheet-card textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elev-2, #1a1a1a);
  color: var(--text);
  padding: 12px;
  font: inherit;
  resize: vertical;
}

.channel-rail-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.channel-avatar.sm {
  width: 40px;
  height: 40px;
}
.channel-rails .rail { margin-bottom: 8px; }
.dur-filter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.dur-sliders {
  display: grid;
  gap: 10px;
}
.dur-sliders label {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}
.dur-sliders input[type="range"] { width: 100%; }

.growing-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.growing-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  min-width: 140px;
}
.growing-chip b { font-size: 13px; color: var(--text); }
.home-classify-btn {
  align-self: stretch;
  min-width: 140px;
  padding: 10px 16px;
}
.home-classify-progress {
  margin-top: 12px;
}
.home-classify-progress:empty { display: none; }

.home-brand-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.home-brand-row h1 { margin: 0 0 4px; }
.home-brand-row .hero-sub { margin: 0; }
.today-chip {
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
  transition: color .15s, background .15s, border-color .15s;
}
.today-chip:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}
.smart-search-home {
  max-width: none;
  width: 100%;
  margin: 0 0 14px;
}
.today-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.today-card {
  display: flex;
  gap: 10px;
  align-items: stretch;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px;
  touch-action: pan-y;
}
.today-card .card-main {
  display: flex;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.today-card .card-thumb {
  width: 112px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #000;
}
.today-card .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.today-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
  flex-shrink: 0;
}
.today-actions .btn {
  min-height: 36px;
  padding: 6px 10px;
  font-size: 12px;
  white-space: nowrap;
}

/* —— Kyro spine queue (legacy) —— */
.spine-list {
  position: relative;
  max-width: 640px;
  margin: 8px 0 28px;
}
.spine-list::before { display: none !important; }
.spine-list .card.q-item::before { display: none !important; }
.slab-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  position: relative;
  overflow: hidden;
}
.slab-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.12), transparent 40%);
  opacity: 0.4;
  pointer-events: none;
}


/* —— FAQ sparkle button (Kyro moths) —— */
.hero-with-faq {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.faq-sparkle-btn {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.16);
  background: var(--bg-elev);
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 20px rgba(255,255,255,0.06);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s;
}
.faq-sparkle-btn:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(255,255,255,0.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 0 28px rgba(255,255,255,0.1);
}
.faq-sparkle-btn .moth {
  position: absolute;
  width: 2.5px;
  height: 2.5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px rgba(255,255,255,0.85);
  animation: faq-twinkle 3.2s ease-in-out infinite;
  pointer-events: none;
}
.faq-sparkle-btn .moth:nth-child(1) { top: 9px; right: 11px; }
.faq-sparkle-btn .moth:nth-child(2) { left: 10px; top: 50%; width: 2px; height: 2px; animation-delay: 0.7s; opacity: 0.7; }
.faq-sparkle-btn .moth:nth-child(3) { bottom: 11px; right: 13px; width: 2px; height: 2px; animation-delay: 1.4s; }
@keyframes faq-twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.7); }
  45%, 55% { opacity: 1; transform: scale(1); }
}
.faq-list { max-width: 720px; display: grid; gap: 10px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,0.035);
  overflow: hidden;
  transition: border-color 0.3s, background 0.3s;
}
.faq-item[open] {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .faq-body {
  padding: 0 18px 18px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.55;
  white-space: pre-wrap;
}
