/* Stay Izzy — dark tribute.
   Desktop: the hero opens as the left half of the screen and settles into a sidebar as you scroll;
   the feed fills the right. A dock at the bottom holds the player (under the sidebar) and the composer (under the feed). */

:root {
  color-scheme: dark;
  --bg: #0b0a09;
  --bg-2: #0f0d0c;
  --surface: #161311;
  --surface-2: #1f1a17;
  --glass: rgba(26, 22, 19, 0.82);
  --line: rgba(255, 236, 220, 0.08);
  --line-2: rgba(255, 236, 220, 0.14);
  --text: #f0e9e2;
  --muted: #a69b92;
  --faint: #6c625b;
  --ember: #ff6a2b;
  --ember-2: #ff8a3d;
  --amber: #ffb54a;
  --ember-tint: rgba(255, 106, 43, 0.12);
  --ember-glow: rgba(255, 106, 43, 0.35);
  --danger: #ff8a7a;

  --f-display: 'Anton', 'Impact', 'Arial Narrow', sans-serif;
  --f-serif: 'Instrument Serif', 'Georgia', serif;
  --f-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(0.2, 0.75, 0.2, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.25, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);

  --side: clamp(440px, 50vw, 780px);
  --side-compact: clamp(340px, 27vw, 400px);
  --dock-pad: 18px;
  --feed-pad: clamp(24px, 4vw, 64px);
  --morph: 0.85s var(--ease-io);
}
html.compact { --side: var(--side-compact); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(1000px 700px at 100% -10%, rgba(255, 106, 43, 0.07), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 400 16px/1.6 var(--f-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg .fill { fill: currentColor; stroke: none; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--ember); color: #160b05; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

/* ---------- ambience ---------- */
.embers { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; opacity: 0.6; }
.grain {
  position: fixed; inset: -50%; pointer-events: none; z-index: 100; opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- hero / sidebar ---------- */
.hero {
  position: fixed; z-index: 2; top: 0; left: 0; bottom: 0; width: var(--side);
  display: flex; flex-direction: column; gap: 26px;
  padding: 22px 22px calc(var(--dock-h, 104px) + 14px);
  background: linear-gradient(180deg, rgba(20, 17, 15, 0.92), rgba(12, 10, 9, 0.96));
  border-right: 1px solid var(--line);
  transition: width var(--morph), gap var(--morph);
}
.portrait {
  position: relative; flex: 1 1 auto; min-height: 120px; margin: 0; border-radius: 22px; overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #2a211c, var(--surface) 70%);
  border: 1px solid var(--line); isolation: isolate;
  animation: fadeIn 1.4s var(--ease) both;
}
.portrait::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11, 10, 9, 0.45), rgba(11, 10, 9, 0) 22%, rgba(11, 10, 9, 0) 70%, rgba(11, 10, 9, 0.55)),
    linear-gradient(135deg, rgba(255, 106, 43, 0.16), rgba(255, 181, 74, 0) 55%);
}
.portrait img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; z-index: 1;
  filter: grayscale(1) contrast(1.08) brightness(0.9);
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.4s var(--ease), filter 1.2s var(--ease), transform 9s linear;
}
.portrait img.active { opacity: 1; transform: scale(1); }
.portrait:hover img.active { filter: grayscale(0.2) contrast(1.04) brightness(0.98); }
.portrait-placeholder { position: absolute; inset: 0; display: grid; place-items: center; }
.portrait-placeholder span { font: 400 clamp(56px, 8vw, 120px)/1 var(--f-display); letter-spacing: 0.04em; color: transparent; -webkit-text-stroke: 1.5px rgba(240, 233, 226, 0.25); }
.portrait.has-photo .portrait-placeholder { display: none; }
.wordmark {
  position: absolute; z-index: 3; top: 16px; left: 18px;
  font: 400 17px/1 var(--f-display); text-transform: uppercase; letter-spacing: 0.08em; text-decoration: none;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}
.wordmark span, .topbar-name span { color: var(--ember); }
.portrait-dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 7px; }
.portrait-dots button { width: 7px; height: 7px; padding: 0; border-radius: 99px; border: 0; background: rgba(255, 255, 255, 0.35); transition: width 0.4s var(--ease), background-color 0.4s; }
.portrait-dots button[aria-selected='true'] { width: 22px; background: var(--ember); }

.hero-copy { flex: none; min-width: 0; padding: 0 6px; }
.eyebrow { margin: 0 0 14px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; color: var(--amber); display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ''; width: 30px; height: 1px; background: currentColor; opacity: 0.7; }
.name { margin: 0; font: 400 clamp(56px, 6.2vw, 116px)/0.88 var(--f-display); text-transform: uppercase; transition: font-size var(--morph); }
html.compact .name { font-size: clamp(44px, 3.6vw, 56px); }
.name span { display: block; }
.name-last { margin-top: 0.13em; color: transparent; -webkit-text-stroke: 1.4px var(--text); }
.nick { margin: 14px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.nick-name { font: italic 400 clamp(28px, 2.6vw, 38px)/1.1 var(--f-serif); color: var(--amber); transition: font-size var(--morph); }
html.compact .nick-name { font-size: 28px; }
.years { font-size: 13px; font-weight: 500; letter-spacing: 0.24em; color: var(--muted); }
.years:empty { display: none; }
.tagline { margin: 12px 0 0; max-width: 40ch; font-size: 16px; color: var(--muted); }
.tagline:empty { display: none; }
.bio { margin-top: 12px; }
.bio summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13.5px; font-weight: 600; padding: 4px 0; border-bottom: 1px solid var(--line-2); }
.bio summary::-webkit-details-marker { display: none; }
.bio summary svg { width: 15px; height: 15px; transition: transform 0.35s var(--ease); }
.bio[open] summary svg { transform: rotate(180deg); }
.bio-body { padding-top: 10px; max-height: 26vh; overflow: auto; color: var(--muted); font-size: 15px; white-space: pre-line; animation: fadeUp 0.5s var(--ease) both; }
.stats { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin: 18px 0 0; font-size: 13.5px; color: var(--muted); }
.stats b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.stats .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }
.reveal { animation: fadeUp 0.95s var(--ease) both; animation-delay: calc(var(--d, 0) * 90ms + 200ms); }

/* ---------- feed ---------- */
.feed {
  position: relative; z-index: 1; margin-left: var(--side); min-height: 100dvh;
  padding: 40px var(--feed-pad) 160px;
  transition: margin-left var(--morph);
}
.feed-inner { max-width: 680px; margin: 0 auto; }
.feed-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.feed-label { margin: 0; font-size: 11.5px; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted); }
.feed-label span { color: var(--amber); margin-left: 6px; }
.feed-label span:empty { display: none; }
.wall { display: flex; flex-direction: column; gap: 14px; }
.wall-end { height: 1px; }
.wall-empty { margin: 8px 0 0; font: italic 400 24px/1.35 var(--f-serif); color: var(--muted); animation: fadeUp 0.7s var(--ease) both; }
.footer { padding: 56px 0 8px; text-align: center; font-size: 13px; color: var(--faint); }

.new-pill {
  position: fixed; z-index: 30; top: 18px; left: calc(var(--side) + (100vw - var(--side)) / 2); translate: -50% 0;
  display: flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 0;
  background: var(--text); color: #120d0a; font-weight: 600; font-size: 13.5px;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.7); animation: dropIn 0.55s var(--spring) both;
  transition: left var(--morph);
}
.new-pill svg { width: 16px; height: 16px; }

/* card */
.card {
  position: relative; padding: 20px 22px 16px; border-radius: 20px;
  background: linear-gradient(180deg, var(--surface), #13110f);
  border: 1px solid var(--line);
  transition: border-color 0.35s var(--ease);
}
.card:hover { border-color: rgba(255, 190, 140, 0.16); }
.card.pre { opacity: 0; transform: translateY(26px); }
.card.in { animation: cardIn 0.8s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
.card.fresh { animation: slam 0.9s var(--spring) both, glow 2.4s 0.4s var(--ease) both; }
.card.pinned { border-color: rgba(255, 181, 74, 0.3); background: linear-gradient(180deg, rgba(255, 181, 74, 0.07), var(--surface) 40%, #13110f); }
.card-head { display: flex; align-items: center; gap: 12px; }
.avatar {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  font-weight: 700; font-size: 14.5px; background: hsl(var(--h, 20) 32% 22%); color: hsl(var(--h, 20) 80% 80%);
  box-shadow: inset 0 0 0 1px hsl(var(--h, 20) 50% 40% / 0.4);
}
.who { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.who-name { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who-name.anon { color: var(--muted); font-style: italic; font-weight: 500; }
.who-meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--faint); }
.who-rel { font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); padding: 1px 8px; border: 1px solid rgba(255, 181, 74, 0.28); border-radius: 99px; }
.who-rel:empty { display: none; }
.pin-badge { margin-left: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--amber); }
.pin-badge svg { width: 14px; height: 14px; }
.card-msg { margin: 14px 0 0; font-size: 16px; line-height: 1.68; white-space: pre-wrap; overflow-wrap: anywhere; color: #e9e1d9; }
.card-msg.short { font: 400 clamp(23px, 2.4vw, 28px)/1.3 var(--f-serif); color: var(--text); }
.card-msg.clamped { display: -webkit-box; -webkit-line-clamp: 9; -webkit-box-orient: vertical; overflow: hidden; mask-image: linear-gradient(180deg, #000 70%, transparent); }
.read-more { margin-top: 6px; padding: 4px 0; background: none; border: 0; color: var(--amber); font-weight: 600; font-size: 14px; }
.read-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.card-photo { display: block; width: 100%; margin-top: 14px; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--surface-2); cursor: zoom-in; }
.card-photo img { width: 100%; height: auto; max-height: 560px; object-fit: cover; transition: transform 0.8s var(--ease), opacity 0.6s; opacity: 0; }
.card-photo img.loaded { opacity: 1; }
.card-photo:hover img { transform: scale(1.025); }
.card-foot { display: flex; align-items: center; margin-top: 14px; }

/* lighter */
.lighter {
  position: relative; display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 15px 0 11px;
  border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted);
  font-size: 13.5px; font-weight: 500; transition: color 0.3s, border-color 0.3s, background-color 0.3s, transform 0.25s var(--spring);
}
.lighter:hover { color: var(--text); border-color: rgba(255, 181, 74, 0.4); }
.lighter:active { transform: scale(0.94); }
.lighter-flame { display: grid; place-items: center; width: 18px; height: 22px; transform-origin: 50% 90%; }
.lighter-flame svg { width: 16px; height: 22px; overflow: visible; }
.flame-outer { stroke-width: 1.6; transition: fill 0.4s, stroke 0.4s; }
.flame-inner { stroke: none; fill: transparent; transition: fill 0.4s; }
.lighter.lit { color: var(--amber); border-color: rgba(255, 106, 43, 0.4); background: var(--ember-tint); }
.lighter.lit .flame-outer { fill: var(--ember); stroke: var(--ember); }
.lighter.lit .flame-inner { fill: var(--amber); }
.lighter.lit .lighter-flame { animation: flicker 2.6s ease-in-out infinite; }
.lighter.igniting .lighter-flame { animation: ignite 0.7s var(--spring) both; }
.lighter-count { position: relative; display: inline-block; height: 1.3em; overflow: hidden; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text); }
.lighter-count:has(span:empty) { display: none; }
.lighter-count span { display: block; line-height: 1.3; }
.lighter-count .roll-out { position: absolute; inset: 0; animation: rollOut 0.45s var(--ease) both; }
.lighter-count .roll-in { animation: rollIn 0.45s var(--ease) both; }
.spark { position: absolute; left: 19px; top: 11px; width: 4px; height: 4px; border-radius: 50%; background: var(--amber); pointer-events: none; animation: spark 0.8s var(--ease) forwards; box-shadow: 0 0 6px var(--ember); }
.lighter.nudge { animation: nudge 0.4s var(--ease); }
.card.skeleton { height: 160px; background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%) 0 0 / 300% 100%; animation: shimmer 1.6s linear infinite; }

/* ---------- dock ---------- */
.dock {
  position: fixed; z-index: 50; left: 0; right: 0; bottom: var(--kb, 0px);
  display: flex; align-items: flex-end; pointer-events: none;
  transition: bottom 0.2s var(--ease);
}
.dock > * { pointer-events: auto; }
.dock::before {
  content: ''; position: absolute; z-index: -1; left: var(--side); right: 0; bottom: 0; height: 150px; pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 10, 9, 0), rgba(11, 10, 9, 0.92) 70%);
  transition: left var(--morph);
}
.scrim {
  position: fixed; inset: 0; z-index: 45; background: rgba(5, 4, 4, 0.55);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity 0.45s var(--ease);
}
html.composing .scrim { opacity: 1; pointer-events: auto; }

.glass {
  background: var(--glass); border: 1px solid var(--line-2);
  backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.85);
}

/* player */
.player {
  position: relative; flex: 0 0 var(--side); width: var(--side); padding: 0 var(--dock-pad) var(--dock-pad);
  transition: flex-basis var(--morph), width var(--morph), opacity 0.3s;
  animation: dockUp 0.8s 0.6s var(--spring) both;
}
.player { container-type: inline-size; }
@container (max-width: 360px) {
  .pl-time { display: none; }
  .pl-scrub { grid-template-columns: minmax(0, 1fr); }
  .pl-btn { width: 30px; }
}
.pl {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 10px 10px 10px 10px; border-radius: 22px;
  background: var(--glass); border: 1px solid var(--line-2);
  backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.85);
}
.pl-art {
  position: relative; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--surface-2);
  transition: transform 0.25s var(--spring);
}
.pl-art:active { transform: scale(0.94); }
.pl-art img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.4); }
.pl-art::after {
  content: ''; position: absolute; inset: 0; background: rgba(11, 10, 9, 0.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0e9e2' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 6h16M4 12h16M4 18h10'/%3E%3C/svg%3E") center / 20px no-repeat;
  opacity: 0; transition: opacity 0.25s;
}
.pl-art:hover::after, .pl-art[aria-expanded='true']::after { opacity: 1; }
.pl-art-badge {
  position: absolute; right: 3px; bottom: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px;
  background: var(--ember); color: #170b05; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; z-index: 1;
}
.pl-art-badge:empty { display: none; }
.pl-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pl-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.pl-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-sub { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-scrub { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.pl-time { font-size: 10.5px; color: var(--faint); font-variant-numeric: tabular-nums; min-width: 28px; }
.pl-time:last-child { text-align: right; }
.pl-seek {
  --p: 0%; -webkit-appearance: none; appearance: none; width: 100%; height: 16px; margin: 0; background: transparent; cursor: pointer;
}
.pl-seek::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--ember) var(--p), rgba(255, 255, 255, 0.12) var(--p)); }
.pl-seek::-moz-range-track { height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--ember) var(--p), rgba(255, 255, 255, 0.12) var(--p)); }
.pl-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 11px; height: 11px; margin-top: -4px; border-radius: 50%; background: var(--text); border: 0; transform: scale(0); transition: transform 0.2s var(--spring); }
.pl-seek::-moz-range-thumb { width: 11px; height: 11px; border-radius: 50%; background: var(--text); border: 0; transform: scale(0); transition: transform 0.2s var(--spring); }
.pl:hover .pl-seek::-webkit-slider-thumb, .pl-seek:focus-visible::-webkit-slider-thumb { transform: scale(1); }
.pl:hover .pl-seek::-moz-range-thumb, .pl-seek:focus-visible::-moz-range-thumb { transform: scale(1); }
.pl-seek:disabled { cursor: default; opacity: 0.5; }
.pl-ctrls { display: flex; align-items: center; gap: 2px; }
.pl-btn { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 0; background: none; color: var(--muted); transition: color 0.2s, transform 0.2s var(--spring); }
.pl-btn:hover { color: var(--text); }
.pl-btn:active { transform: scale(0.88); }
.pl-btn svg { width: 17px; height: 17px; }
.pl-play {
  position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: linear-gradient(135deg, var(--ember-2), var(--ember)); color: #170b05;
  box-shadow: 0 8px 24px -8px var(--ember-glow); transition: transform 0.25s var(--spring), box-shadow 0.3s;
}
.pl-play:hover { box-shadow: 0 10px 30px -6px rgba(255, 106, 43, 0.6); }
.pl-play:active { transform: scale(0.9); }
.pl-play svg { width: 20px; height: 20px; }
.pl-play .i-pause, .player.playing .pl-play .i-play { display: none; }
.player.playing .pl-play .i-pause { display: block; }
.pl-spin { position: absolute; inset: -3px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--amber); opacity: 0; animation: spin 0.9s linear infinite; }
.player.loading .pl-spin { opacity: 1; }
.player.single .pl-prev, .player.single .pl-next { display: none; }

.queue, .yt-wrap {
  position: absolute; left: var(--dock-pad); right: var(--dock-pad); bottom: calc(100% + 10px);
  border-radius: 20px; overflow: hidden;
  background: var(--glass); border: 1px solid var(--line-2);
  backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.85);
  transform-origin: 30% 100%; animation: popUp 0.45s var(--spring) both;
}
.yt-wrap { aspect-ratio: 16 / 9; min-height: 200px; background: #000; }
.yt-wrap iframe, .yt-wrap #yt { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.portrait .yt-wrap { inset: 0; left: 0; right: 0; bottom: 0; z-index: 4; aspect-ratio: auto; min-height: 0; border: 0; border-radius: inherit; box-shadow: none; animation: fadeIn 0.6s var(--ease) both; }
.yt-close { position: absolute; top: 8px; right: 8px; z-index: 2; width: 32px; height: 32px; background: rgba(11, 10, 9, 0.7); }
.player.has-video .queue { bottom: calc(100% + 20px + var(--yt-h, 200px)); }
.queue { background: rgba(22, 19, 16, 0.98); padding: 8px; max-height: min(52vh, 460px); overflow-y: auto; overscroll-behavior: contain; }
.queue-title { margin: 6px 10px 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); }
.queue-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.q-item {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%;
  padding: 8px 10px 8px 8px; border: 0; border-radius: 14px; background: none; text-align: left; transition: background-color 0.2s;
  animation: fadeUp 0.4s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms);
}
.q-item:hover { background: rgba(255, 255, 255, 0.05); }
.q-item.current { background: var(--ember-tint); }
.q-thumb { position: relative; width: 44px; height: 44px; border-radius: 10px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; color: var(--amber); }
.q-thumb img { width: 100%; height: 100%; object-fit: cover; }
.q-thumb svg { width: 20px; height: 20px; }
.q-meta { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.q-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-sub { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.q-badge { font-size: 9.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line-2); color: var(--muted); }
.q-badge.yt { color: #ff6b6b; border-color: rgba(255, 107, 107, 0.35); }
.eq { display: none; gap: 2px; align-items: flex-end; height: 14px; color: var(--ember); }
.eq i { width: 3px; background: currentColor; border-radius: 2px; animation: eq 0.9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -0.3s; } .eq i:nth-child(3) { animation-delay: -0.6s; }
.player.playing .q-item.current .eq { display: flex; }

/* composer */
.composer { flex: 1 1 auto; min-width: 0; display: flex; justify-content: center; padding: 0 var(--feed-pad) var(--dock-pad); animation: dockUp 0.8s 0.75s var(--spring) both; }
.cmp {
  position: relative; width: 100%; max-width: 680px; padding: 8px; border-radius: 28px;
  background: var(--glass); border: 1px solid var(--line-2);
  backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.85);
  transition: border-color 0.4s var(--ease), box-shadow 0.5s var(--ease), border-radius 0.5s var(--ease), background-color 0.4s;
}
.cmp.drag { border-color: var(--ember); }
html.composing .cmp {
  border-color: rgba(255, 106, 43, 0.35); background: rgba(24, 20, 17, 0.96);
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.95), 0 0 0 4px rgba(255, 106, 43, 0.07), 0 0 60px -20px var(--ember-glow);
}

.cmp-head, .cmp-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.55s var(--ease); }
.cmp-head > *, .cmp-more > * { min-height: 0; overflow: hidden; }
html.composing .cmp-head, html.composing .cmp-more { grid-template-rows: 1fr; }
.cmp-head-inner { display: flex; align-items: center; justify-content: space-between; }
.cmp-head-inner { transition: padding 0.55s var(--ease); }
.cmp-to { margin: 0; padding: 0 12px; font: italic 400 23px/1 var(--f-serif); color: var(--amber); opacity: 0; transform: translateY(8px); transition: opacity 0.4s var(--ease), transform 0.5s var(--ease), padding 0.55s var(--ease); }
.cmp-collapse { width: 34px; height: 34px; margin-right: 4px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--muted); opacity: 0; transition: opacity 0.3s, background-color 0.2s; }
.cmp-collapse:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.cmp-collapse svg { width: 18px; height: 18px; }
html.composing .cmp-to { opacity: 1; transform: none; }
html.composing .cmp-head-inner { padding: 8px 0 4px; }
html.composing .cmp-collapse { opacity: 1; }

.cmp-attachment { position: relative; width: 84px; height: 84px; margin: 6px 0 4px 8px; border-radius: 16px; overflow: hidden; animation: popIn 0.45s var(--spring) both; box-shadow: 0 0 0 1px var(--line-2); }
.cmp-attachment img { width: 100%; height: 100%; object-fit: cover; }
.cmp-attachment-busy { position: absolute; inset: 0; display: none; place-items: center; background: rgba(11, 10, 9, 0.55); }
.cmp-attachment-busy::after { content: ''; width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25); border-top-color: var(--text); animation: spin 0.8s linear infinite; }
.cmp-attachment.busy .cmp-attachment-busy { display: grid; }
.cmp-attachment-remove { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(11, 10, 9, 0.75); color: var(--text); }
.cmp-attachment-remove svg { width: 13px; height: 13px; stroke-width: 2.5; }

.cmp {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; column-gap: 6px;
  grid-template-areas: 'head head head' 'media media media' 'attach field send' 'more more more';
}
html.composing .cmp { grid-template-areas: 'head head head' 'media media media' 'field field field' 'more more more' 'attach . send'; }
.cmp-head { grid-area: head; }
.cmp-attachment { grid-area: media; }
.cmp-attach { grid-area: attach; }
.cmp-field { grid-area: field; }
.cmp-send { grid-area: send; }
.cmp-more { grid-area: more; }
html.composing .cmp-field { padding: 0 8px; }
html.composing .cmp-placeholder { left: 12px; }
html.composing .cmp-attach, html.composing .cmp-send { margin-top: 6px; }
.cmp-attach-label { display: none; font-size: 13.5px; font-weight: 600; }
html.composing .cmp-attach { width: auto; height: 40px; padding: 0 14px 0 11px; margin-bottom: 2px; display: inline-flex; gap: 8px; border-radius: 999px; border: 1px solid var(--line-2); justify-self: start; }
html.composing .cmp-attach-label { display: inline; }
html.composing .cmp-attach svg { width: 19px; height: 19px; }
.cmp-attach {
  position: relative; flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--muted); cursor: pointer;
  transition: color 0.2s, background-color 0.2s, transform 0.2s var(--spring);
}
.cmp-attach:hover { color: var(--amber); background: rgba(255, 255, 255, 0.05); }
.cmp-attach:active { transform: scale(0.9); }
.cmp-attach:has(input:focus-visible) { outline: 2px solid var(--amber); }
.cmp-attach input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cmp-attach svg { width: 22px; height: 22px; stroke-width: 1.8; }
.cmp-field { position: relative; flex: 1; min-width: 0; }
.cmp-field textarea {
  display: block; width: 100%; min-height: 44px; max-height: 38vh; padding: 10px 4px; margin: 0;
  border: 0; background: transparent; color: var(--text); font-size: 16px; line-height: 1.5; resize: none; outline: none;
  field-sizing: content; overflow-x: hidden; overflow-y: auto; overflow-wrap: anywhere; scrollbar-width: thin; transition: min-height 0.5s var(--ease);
}
html.composing .cmp-field textarea { min-height: 96px; }
.cmp-placeholder {
  position: absolute; left: 4px; top: 10px; right: 0; pointer-events: none; color: var(--faint); font-size: 16px; line-height: 1.5;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity 0.35s, transform 0.35s var(--ease);
}
.cmp-placeholder.swap { opacity: 0; transform: translateY(-6px); }
.cmp.has-text .cmp-placeholder { opacity: 0; }

.cmp-send {
  position: relative; flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, 0.07); color: var(--faint);
  transition: background-color 0.3s, color 0.3s, transform 0.3s var(--spring), box-shadow 0.3s;
}
.cmp-send svg:not(.cmp-ring), .cmp-send .i-spin { grid-area: 1 / 1; }
.cmp-send .i-send { width: 20px; height: 20px; stroke-width: 2.4; transition: transform 0.35s var(--spring); }
.cmp-send .i-done, .cmp-send .i-spin { opacity: 0; }
.cmp-send .i-done { width: 22px; height: 22px; stroke-width: 2.6; stroke-dasharray: 24; stroke-dashoffset: 24; }
.cmp-send .i-spin { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(23, 11, 5, 0.25); border-top-color: #170b05; animation: spin 0.8s linear infinite; }
.cmp-send:not(:disabled) { background: linear-gradient(135deg, var(--ember-2), var(--ember)); color: #170b05; box-shadow: 0 8px 24px -8px var(--ember-glow); animation: pop 0.45s var(--spring); }
.cmp-send:not(:disabled):hover .i-send { transform: translateY(-2px); }
.cmp-send:not(:disabled):active { transform: scale(0.9); }
.cmp-send:disabled { cursor: default; }
.cmp-send.loading .i-send, .cmp-send.done .i-send { opacity: 0; }
.cmp-send.loading .i-spin { opacity: 1; }
.cmp-send.done { background: linear-gradient(135deg, var(--amber), var(--ember-2)); }
.cmp-send.done .i-done { opacity: 1; animation: draw 0.45s var(--ease) forwards; }
.cmp-send.loading, .cmp-send.done { pointer-events: none; }
.cmp-ring { position: absolute; inset: -3px; width: 50px; height: 50px; transform: rotate(-90deg); pointer-events: none; opacity: 0; transition: opacity 0.3s; }
.cmp-ring circle { stroke: var(--amber); stroke-width: 2.5; stroke-dasharray: 141.4; stroke-dashoffset: calc(141.4 - 141.4 * var(--p, 0)); transition: stroke-dashoffset 0.2s, stroke 0.3s; }
.cmp-send.near .cmp-ring { opacity: 1; }
.cmp-send.over .cmp-ring circle { stroke: var(--danger); }

.cmp-more-inner { display: flex; flex-direction: column; gap: 14px; padding: 0 12px; }
html.composing .cmp-more-inner { padding: 10px 12px 8px; }
.cmp-more-inner > * { opacity: 0; transform: translateY(8px); transition: opacity 0.45s var(--ease), transform 0.5s var(--ease); }
html.composing .cmp-more-inner > * { opacity: 1; transform: none; }
html.composing .cmp-more-inner > :nth-child(2) { transition-delay: 0.07s; }
html.composing .cmp-more-inner > :nth-child(n+3) { transition-delay: 0.14s; }

.cmp-sign { display: flex; align-items: baseline; gap: 10px; }
.cmp-sign-dash { font: 400 26px/1 var(--f-serif); color: var(--amber); }
.cmp-sign input {
  flex: 0 1 300px; min-width: 0; padding: 2px 2px 4px; border: 0; border-bottom: 1px dashed var(--line-2); border-radius: 0; background: transparent;
  font: italic 400 25px/1.2 var(--f-serif); color: var(--text); outline: none; transition: border-color 0.25s;
}
.cmp-sign input::placeholder { color: var(--faint); }
.cmp-sign input:focus { border-bottom-color: var(--ember); border-bottom-style: solid; }
.cmp-sign-opt { font-size: 11.5px; color: var(--faint); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; color: var(--muted); cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s, transform 0.25s var(--spring);
}
.chip span:hover { color: var(--text); border-color: rgba(255, 181, 74, 0.45); }
.chip span:active { transform: scale(0.93); }
.chip input:checked + span { background: var(--ember-tint); border-color: var(--ember); color: var(--amber); }
.chip input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile:empty { display: none; }
.cmp-error { margin: 0; color: var(--danger); font-size: 14px; }
.cmp-error:empty { display: none; }
.cmp.shake { animation: shake 0.45s var(--ease); }
.cmp-foot { margin: 0; font-size: 12px; color: var(--faint); }
kbd { display: inline-block; min-width: 18px; padding: 0 4px; margin-right: 2px; border-radius: 5px; border: 1px solid var(--line-2); font: 600 11px/16px var(--f-sans); text-align: center; color: var(--muted); }

/* ---------- topbar (mobile), lightbox, toast ---------- */
.topbar { display: none; }

.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(6, 5, 5, 0.94); color: var(--text); }
.lightbox[open] { display: grid; place-items: center; animation: fadeIn 0.3s var(--ease); }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: 94vw; max-height: 88dvh; border-radius: 14px; animation: zoomIn 0.45s var(--spring) both; cursor: zoom-out; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.06); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }
.lightbox-close { position: fixed; top: calc(16px + env(safe-area-inset-top, 0px)); right: 16px; }

.toast {
  position: fixed; z-index: 80; left: calc(var(--side) + (100vw - var(--side)) / 2); top: 22px; translate: -50% 0;
  width: max-content; max-width: min(520px, calc(100vw - 32px)); padding: 12px 20px; border-radius: 999px; background: var(--text); color: #120d0a;
  text-align: center; font-size: 14.5px; font-weight: 600; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.7);
  opacity: 0; transform: translateY(-16px) scale(0.96); pointer-events: none; transition: opacity 0.35s var(--ease), transform 0.45s var(--spring);
}
.toast.show { opacity: 1; transform: none; }

/* ---------- tablet & mobile ---------- */
@media (max-width: 1023px) {
  :root, html.compact { --side: 0px; --dock-pad: 10px; }
  .hero { position: relative; width: auto; height: auto; display: block; padding: 0; background: none; border: 0; }
  .portrait { height: min(66svh, 118vw); border-radius: 0; border: 0; }
  .portrait::after { background: linear-gradient(180deg, rgba(11, 10, 9, 0.45), rgba(11, 10, 9, 0) 20%, rgba(11, 10, 9, 0) 45%, var(--bg) 100%), linear-gradient(135deg, rgba(255, 106, 43, 0.14), transparent 60%); }
  .portrait-dots { bottom: 104px; }
  .hero-copy { position: relative; z-index: 3; margin-top: -92px; padding: 0 20px; max-width: 720px; }
  .name, html.compact .name { font-size: clamp(50px, 15vw, 96px); }
  html.compact .nick-name { font-size: clamp(28px, 2.6vw, 38px); }
  .bio-body { max-height: none; }

  .feed { margin-left: 0; padding: 44px 16px calc(var(--dock-h, 150px) + 40px); min-height: 0; }
  .card { padding: 18px 18px 14px; }
  .new-pill { left: 50%; top: 66px; }
  .toast { left: 50%; top: 66px; }

  .dock { flex-direction: column; align-items: stretch; gap: 8px; padding: 0 var(--dock-pad) calc(var(--dock-pad) + var(--safe-b)); }
  .dock::before { left: 0; height: 190px; }
  .player, .composer { flex: none; width: auto; padding: 0; }
  .composer { order: 2; }
  .cmp { max-width: none; }
  .pl { padding: 7px 7px 7px 7px; gap: 10px; border-radius: 20px; }
  .pl-art { width: 44px; height: 44px; border-radius: 12px; }
  .pl-time, .pl-prev { display: none; }
  .pl-scrub { grid-template-columns: minmax(0, 1fr); }
  .pl-play { width: 42px; height: 42px; }
  .queue, .yt-wrap { left: 0; right: 0; }
  html.composing .player { display: none; }
  .kbd-hint { display: none; }
  .cmp-sign input { font-size: 22px; }

  .topbar {
    position: fixed; z-index: 40; top: 0; left: 0; right: 0; height: 56px; display: flex; align-items: center; gap: 10px;
    padding: env(safe-area-inset-top, 0) 16px 0; background: rgba(11, 10, 9, 0.78); border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
    transform: translateY(-100%); transition: transform 0.45s var(--ease);
  }
  .topbar.show { transform: none; }
  .topbar-avatar { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; background: var(--surface-2); flex: none; }
  .topbar-avatar img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
  .topbar-name { font: 400 18px/1 var(--f-display); text-transform: uppercase; letter-spacing: 0.06em; }
  .topbar-years { margin-left: auto; font-size: 11.5px; letter-spacing: 0.2em; color: var(--muted); }
}
@media (hover: none) { .kbd-hint { display: none; } }

/* ---------- keyframes ---------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: none; } }
@keyframes popUp { from { opacity: 0; transform: translateY(12px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(0.8); } 60% { transform: scale(1.1); } 100% { transform: scale(1); } }
@keyframes zoomIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-14px) scale(0.95); } to { opacity: 1; transform: none; } }
@keyframes dockUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes slam {
  0% { opacity: 0; transform: translateY(40px) scale(0.97); }
  55% { opacity: 1; transform: translateY(-4px) scale(1.005); }
  100% { opacity: 1; transform: none; }
}
@keyframes glow {
  0% { box-shadow: 0 0 0 1px rgba(255, 106, 43, 0.8), 0 0 50px -6px rgba(255, 106, 43, 0.6); border-color: rgba(255, 106, 43, 0.8); }
  100% { box-shadow: 0 0 0 0 transparent, 0 0 0 0 transparent; }
}
@keyframes flicker {
  0%, 100% { transform: scale(1) rotate(0deg); } 20% { transform: scale(1.04, 0.97) rotate(-2deg); }
  40% { transform: scale(0.97, 1.05) rotate(1.5deg); } 60% { transform: scale(1.03, 0.98) rotate(-1deg); } 80% { transform: scale(0.98, 1.03) rotate(1deg); }
}
@keyframes ignite { 0% { transform: scale(0.3) translateY(4px); } 60% { transform: scale(1.35) translateY(-2px); } 100% { transform: scale(1); } }
@keyframes rollIn { from { transform: translateY(100%); } to { transform: none; } }
@keyframes rollOut { from { transform: none; } to { transform: translateY(-100%); } }
@keyframes spark { from { opacity: 1; transform: translate(0, 0) scale(1); } to { opacity: 0; transform: translate(var(--x), var(--y)) scale(0.3); } }
@keyframes nudge { 0%, 100% { transform: none; } 30% { transform: rotate(-6deg); } 60% { transform: rotate(5deg); } }
@keyframes shimmer { to { background-position: -300% 0; } }
@keyframes shake { 0%, 100% { transform: none; } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
  .embers, .grain { display: none; }
  .card.pre { opacity: 1; transform: none; }
}
