﻿:root {
  --bg: #000000;
  --ink: #ececec;
  --muted: #8a8a8a;
  --red: #c8c8c8;
  --red-2: #888;
  --line: #222;
  --panel: #070707;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --display: "IBM Plex Mono", ui-monospace, monospace;
  --hand: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  color: var(--ink);
  font-family: var(--mono);
  background: var(--bg);
  line-height: 1.45;
  overflow-x: hidden;
}

body.is-booting { overflow: hidden; }

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

.film,
.noise {
  display: none;
}

.film {
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.12) 3px
  );
  opacity: 0.35;
}

.noise {
  opacity: 0.06;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

/* ---- boot ---- */
.boot {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #000;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}
.boot.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.boot__win {
  width: min(720px, 100%);
  border: 1px solid #333;
  border-radius: 14px;
  background: #0e0e0e;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65);
  transform: translateY(18px) scale(0.96);
  opacity: 0;
  animation: term-in 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s forwards;
  overflow: hidden;
}
.boot__bar {
  display: grid;
  grid-template-columns: 72px 1fr 72px;
  align-items: center;
  height: 42px;
  padding: 0 12px;
  background: linear-gradient(180deg, #2a2a2a, #1f1f1f);
}
.boot__dots { display: flex; gap: 8px; }
.boot__dot { width: 12px; height: 12px; border-radius: 50%; background: #555; }
.boot__dot--close { background: #ed5c5c; }
.boot__dot--min { background: #f0bf4c; }
.boot__dot--max { background: #61c554; }
.boot__title { text-align: center; color: #cfcfcf; font-size: 0.78rem; }
.boot__body { min-height: 220px; padding: 18px; background: #0a0a0a; font-size: 0.92rem; }
.boot__line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.boot__prompt { color: #7dcf8a; font-weight: 600; }
.boot__caret {
  display: inline-block; width: 9px; height: 1.05em; background: #d8d8d8;
  animation: blink 1s step-end infinite;
}
.boot__caret.is-hidden { display: none; }
.boot__out {
  margin: 14px 0 0; color: #bdbdbd; white-space: pre-wrap; line-height: 1.55;
  opacity: 0; transform: translateY(6px); transition: 0.35s ease;
}
.boot__out.is-show { opacity: 1; transform: none; }
.skip {
  position: fixed; right: 18px; bottom: 18px; z-index: 110;
  min-height: 38px; padding: 0 18px;
  border: 1.5px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(0,0,0,0.7));
  color: #ddd; font: inherit;
  font-size: 0.82rem; font-weight: 600; cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.skip:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.45);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.12);
}
.skip:active { transform: translateY(0) scale(0.97); }
body.is-ready .skip, body:not(.is-booting) .skip { display: none; }
@keyframes term-in { to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }

/* ---- page ---- */
.wrap {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 20px));
  max-width: 100%;
  margin: 0 auto;
  padding: 18px 0 48px;
  overflow-x: hidden;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
body.is-ready .wrap { opacity: 1; transform: none; }

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
body.is-ready .reveal.is-in {
  opacity: 1;
  transform: none;
}

@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  padding: 10px 4px;
  border: 0;
  border-bottom: 1px solid #111;
  background: #000;
}
.brand {
  font-family: var(--mono);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: #fff;
}
.nav { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.9rem;
  padding-bottom: 2px;
  transition: color 0.2s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #666;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav a:hover { color: #fff; }
.nav a:hover::after { transform: scaleX(1); }
.nav__love { color: #ddd !important; }
.nav__os {
  color: #fff !important;
  border: 1px solid #333;
  border-radius: 999px;
  padding: 4px 12px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.nav__os::after { display: none; }
.nav__os:hover { border-color: #666; background: #101010; transform: translateY(-1px); }
.lang {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: rgba(0,0,0,0.25);
}
.lang__btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.lang__btn + .lang__btn { border-left: 0; }
.lang__btn.is-on,
.lang__btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.14);
  transform: translateY(-1px);
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  padding: 28px 8px 8px;
  border: 0;
  background: transparent;
  margin-bottom: 14px;
}
.profile .role {
  margin: 18px 0 6px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.profile__ava {
  position: relative;
  width: 168px;
  height: 168px;
}
.profile__ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid #2c2c2c;
  border-radius: 50%;
  box-shadow: none;
  display: block;
  animation: ava-in 0.8s ease both;
}
@keyframes ava-in {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: none; }
}
.live {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2fbf71;
  border: 2px solid #111;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(47, 191, 113, 0.45); }
  50% { box-shadow: 0 0 0 7px rgba(47, 191, 113, 0); }
}
.profile__body {
  width: min(640px, 100%);
}
.profile__body h2 {
  margin: 0;
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.1;
}
.profile .handles { justify-content: center; }
.profile .chips { justify-content: center; }
.profile .actions { justify-content: center; }
.profile .status { text-align: left; }
.profile .ym {
  width: 100%;
  max-width: 880px;
  margin-top: 28px;
  text-align: left;
}
.handles {
  margin: 10px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  font-size: 0.9rem;
}
.handles a {
  color: #d0d0d0;
  border-bottom: 1px solid #2a2a2a;
}
.handles a:hover { border-bottom-color: #666; color: #fff; }
.also { color: var(--muted); font-size: 0.78rem; }
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.chips span {
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: rgba(18,9,10,0.9);
  color: #9a9a9a;
  font-size: 0.72rem;
  transition: border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}
.chips span:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.35);
  transform: translateY(-1px);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.btn {
  --btn-x: 0px;
  --btn-y: 0px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  background: linear-gradient(180deg, #1a1a1c 0%, #101012 100%);
  color: #fff;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.06);
  overflow: hidden;
  transform: translate(var(--btn-x), var(--btn-y));
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, background 0.18s ease;
}
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.16), transparent);
  transform: skewX(-18deg);
  opacity: 0;
  pointer-events: none;
}
.btn:hover::after { animation: btn-sheen 0.7s ease forwards; }
@keyframes btn-sheen {
  0% { left: -60%; opacity: 0; }
  15% { opacity: 1; }
  100% { left: 130%; opacity: 0; }
}
.btn:hover {
  transform: translate(var(--btn-x), calc(var(--btn-y) - 2px));
  border-color: rgba(255,255,255,0.4);
  box-shadow: 0 10px 24px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.1);
  filter: brightness(1.06);
}
.btn:active {
  transform: translate(var(--btn-x), calc(var(--btn-y) + 1px)) scale(0.97);
  box-shadow: 0 3px 10px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.04);
}
.btn--hot {
  border-color: #444;
  background: #111;
  box-shadow: none;
}
.btn--hot:hover { border-color: #777; filter: none; }
.btn--sm { min-height: 34px; padding: 0 14px; font-size: 0.8rem; }
.btn.is-copied { border-color: #2fbf71; color: #2fbf71; }
.btn--love {
  border-color: rgba(244, 160, 184, 0.55);
  background: linear-gradient(180deg, #ffb7c8, #e8789a);
  color: #fff;
  box-shadow: 0 8px 22px rgba(232, 120, 154, 0.35), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn--love:hover {
  border-color: #ffc9d8;
  filter: brightness(1.06);
  box-shadow: 0 12px 28px rgba(232, 120, 154, 0.42), inset 0 1px 0 rgba(255,255,255,0.25);
}

/* ---- status widget ---- */
.status {
  margin: 16px auto 0;
  max-width: 420px;
  padding: 10px 14px;
  border: 1px solid #222;
  border-radius: 14px;
  background: #0a0a0a;
}
.status__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.status__meta {
  width: 100%;
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
}
.status__label {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2fbf71;
  box-shadow: 0 0 0 0 rgba(47,191,113,0.4);
  animation: pulse 1.8s ease-in-out infinite;
}
.status__dot[data-status="playing"] { background: #e0a22a; }
.status__dot[data-status="tg"] { background: #2f7fbf; }
.status__dot[data-status="sleep"] { background: #6b5a78; animation: none; }
.status__text {
  font-size: 0.86rem;
  color: #f0d6d9;
  font-weight: 600;
}
.status__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.status.is-locked .status__btns { display: none !important; }
.status__btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: rgba(18,9,10,0.9);
  color: #9a9a9a;
  font: inherit;
  font-size: 0.74rem;
  padding: 6px 12px;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}
.status__btn:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.35);
  transform: translateY(-1px);
}
.status__btn.is-on {
  background: #1a1a1a;
  color: #fff;
  border-color: #666;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
}

/* ---- changelog ---- */
.log {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel);
}
.log__item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #141414;
  transition: background 0.2s ease, padding-left 0.2s ease;
}
.log__item:hover { background: #0d0d0d; padding-left: 20px; }
.log__item:last-child { border-bottom: 0; }
.log__date {
  color: #888;
  font-size: 0.74rem;
  font-weight: 600;
}
.log__text {
  margin: 0;
  color: #cfcfcf;
  font-size: 0.86rem;
}

/* Yandex Music?style player + lyrics */
.ym {
  --ym-accent: #e8e8e8;
  --ym-text: #fff;
  --ym-muted: rgba(255,255,255,0.55);
  --ym-line: rgba(255,255,255,0.12);
  position: relative;
  grid-column: 1 / -1;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid #222222;
  padding: 18px 18px 14px;
  color: var(--ym-text);
  isolation: isolate;
  background: #121214;
}
.ym.is-drop {
  outline: 2px dashed var(--ym-accent);
  outline-offset: -4px;
}
.ym__bg {
  position: absolute;
  inset: -20%;
  z-index: -2;
  background-size: cover;
  background-position: center;
  filter: blur(40px) saturate(1.2) brightness(0.35);
  transform: scale(1.15);
}
.ym::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,8,10,0.25), rgba(10,8,10,0.82) 55%, #0c0a0c),
    radial-gradient(80% 60% at 20% 0%, rgba(255,255,255,0.25), transparent 60%);
}
.ym__top {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: end;
  margin-bottom: 16px;
}
.ym__cover-wrap {
  width: 120px;
  height: 120px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.55);
  background: #000;
}
.ym__cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ym.is-playing .ym__cover-wrap {
  box-shadow: 0 0 0 2px rgba(255,255,255,0.35), 0 12px 40px rgba(0,0,0,0.55);
}
.ym__label {
  margin: 0 0 4px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ym-muted);
}
.ym__title {
  margin: 0;
  font-family: var(--hand);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1;
  font-weight: 700;
}
.ym__artist {
  margin: 8px 0 0;
  font-size: 1rem;
  color: #f0e6d8;
}
.ym__album {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--ym-muted);
}
.ym__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.ym__badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--ym-line);
  font-size: 0.68rem;
  color: #ddd;
}
.ym__badge--hot {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.35);
  color: #dddddd;
}

.ym__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 4px 0 10px;
}
.ym__ico {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.ym__ico:hover {
  background: rgba(255,255,255,0.08);
  transform: scale(1.06);
}
.ym__ico:active,
.ym__ico.is-press {
  transform: scale(0.92);
}
.ym__ico--play {
  width: 54px;
  height: 54px;
  background: #fff;
  color: #111;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.ym__ico--play:hover {
  background: #fff;
  color: #111;
  transform: scale(1.05);
  box-shadow: 0 10px 28px rgba(0,0,0,0.4);
}
.ym__ico--play .ym__ico-pause { display: none; }
.ym__ico--play.is-playing .ym__ico-play { display: none; }
.ym__ico--play.is-playing .ym__ico-pause { display: block; }
.ym__ico--play.is-loading { opacity: 0.55; cursor: wait; }
.ym__ico--play:disabled { opacity: 0.45; cursor: wait; }
.ym__ico--mute {
  width: 28px;
  height: 28px;
  color: rgba(255,255,255,0.85);
}
.ym__ico--mute .ym__ico-muted { display: none; }
.ym__ico--mute.is-muted .ym__ico-vol { display: none; }
.ym__ico--mute.is-muted .ym__ico-muted { display: block; color: #dddddd; }

.ym__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
.ym__vol {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  min-width: 140px;
}
.ym__chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,0.24);
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(0,0,0,0.28));
  color: #fff;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.08);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease;
}
.ym__chip:hover {
  border-color: rgba(255,255,255,0.55);
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(0,0,0,0.2));
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 22px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.12);
}
.ym__chip:active { transform: translateY(0) scale(0.97); }
.ym__chip.is-on {
  border-color: var(--ym-accent);
  color: #ffffff;
  background: linear-gradient(180deg, rgba(255,255,255,0.2), rgba(255,255,255,0.06));
  box-shadow: 0 0 0 1px rgba(255,255,255,0.25), 0 10px 24px rgba(255,255,255,0.12), inset 0 1px 0 rgba(255,255,255,0.1);
}
.ym__upload { cursor: pointer; }

.ym__lyrics {
  display: none;
  margin-top: 14px;
  border-top: 1px solid var(--ym-line);
  padding-top: 8px;
}
.ym__lyrics.is-open { display: block; }
.ym__lyrics-scroll,
.ym__lyrics-viewport {
  position: relative;
  height: 300px;
  max-height: 300px;
  overflow: hidden;
  padding: 0 4px;
  mask-image: linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent);
  overflow-anchor: none;
  touch-action: none;
  overscroll-behavior: none;
  user-select: none;
}
.ym__lyrics-track {
  will-change: transform;
  transform: translate3d(0, 0, 0);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
}
.ym__line {
  appearance: none;
  display: block;
  width: min(100%, 640px);
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
  font-family: var(--hand);
  font-size: clamp(1.05rem, 2.8vw, 1.45rem);
  font-weight: 500;
  color: rgba(255,255,255,0.38);
  cursor: pointer;
  transition: color 0.2s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}
.ym__line.is-past { color: rgba(255,255,255,0.62); }
.ym__line.is-active {
  color: #fff;
  transform: scale(1.04);
  transform-origin: center;
}
.ym__line:hover { color: rgba(255,255,255,0.9); }

.ym__seekrow {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  gap: 10px;
  align-items: center;
  font-size: 0.72rem;
  color: var(--ym-muted);
  font-variant-numeric: tabular-nums;
}
.ym__range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(#fff, #fff) 0 / var(--pct, 0%) 100% no-repeat, rgba(255,255,255,0.18);
  outline: none;
  cursor: pointer;
}
.ym__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
  opacity: 0;
}
.ym__range:hover::-webkit-slider-thumb,
.ym__range:active::-webkit-slider-thumb { opacity: 1; }
.ym__range::-moz-range-thumb {
  width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; opacity: 0;
}
.ym__range:hover::-moz-range-thumb { opacity: 1; }
.ym__range:hover {
  background: linear-gradient(var(--ym-accent), var(--ym-accent)) 0 / var(--pct, 0%) 100% no-repeat, rgba(255,255,255,0.18);
}
.ym__range--vol { width: 88px; }

.ym__list-wrap {
  margin-top: 16px;
  border-top: 1px solid var(--ym-line);
  padding-top: 12px;
}
.ym__list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ym-muted);
}
.ym__list-sub {
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 0.72rem;
}
.ym__rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  padding: 4px 4px 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.4) rgba(255,255,255,0.05);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.ym__rail::-webkit-scrollbar { height: 8px; }
.ym__rail::-webkit-scrollbar-track { background: rgba(255,255,255,0.06); border-radius: 8px; }
.ym__rail::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.35); border-radius: 8px; }
.ym__rail::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.6); }

.ym__card {
  appearance: none;
  flex: 0 0 auto;
  width: 148px;
  border: 1px solid var(--ym-line);
  background: rgba(255,255,255,0.04);
  color: #eee;
  font: inherit;
  padding: 10px 10px 11px;
  cursor: pointer;
  text-align: left;
  scroll-snap-align: center;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.ym__card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.07);
}
.ym__card.is-active {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.2);
}
.ym__card-cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}
.ym__card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}
.ym__card:hover .ym__card-cover img { transform: scale(1.05); }
.ym__card-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  transition: opacity 0.18s ease;
}
.ym__card:hover .ym__card-play { opacity: 1; }
.ym__card.is-active .ym__card-play { opacity: 0; }
.ym__card-eq {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  padding: 3px 5px;
  border-radius: 6px;
  background: rgba(0,0,0,0.55);
  opacity: 0;
}
.ym__card.is-active .ym__card-eq { opacity: 1; }
.ym__card-eq i {
  width: 3px;
  height: 5px;
  background: var(--ym-accent);
  animation: eq 0.9s ease-in-out infinite;
  animation-play-state: paused;
}
.ym__card-eq i:nth-child(2) { animation-delay: 0.2s; }
.ym__card-eq i:nth-child(3) { animation-delay: 0.4s; }
.ym.is-playing .ym__card.is-active .ym__card-eq i { animation-play-state: running; }
@keyframes eq {
  0%, 100% { height: 5px; }
  50% { height: 13px; }
}
.ym__card-title {
  display: block;
  margin-top: 9px;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.ym__card-artist {
  display: block;
  margin-top: 3px;
  color: var(--ym-muted);
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ym__embed-wrap iframe {
  width: 100%;
  height: 180px;
  border: 0;
  border-radius: 12px;
  background: #000;
}

@media (max-width: 700px) {
  .ym__top { grid-template-columns: 88px 1fr; }
  .ym__cover-wrap { width: 88px; height: 88px; }
  .ym__vol { width: 100%; margin-left: 0; order: 5; }
  .ym__range--vol { flex: 1; width: auto; }
}
/* Night broadcast rails */
.broadcast {
  position: relative;
  overflow: hidden;
  margin: 0 0 22px;
  border: 1px solid #1e1e1e;
  border-radius: 18px;
  background:
    radial-gradient(120% 80% at 10% 50%, rgba(255,255,255,0.05), transparent 55%),
    #050505;
  min-height: 118px;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.broadcast--bot { margin-top: 22px; margin-bottom: 0; }
.broadcast__edge {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  box-shadow: inset 0 0 40px rgba(0,0,0,.55);
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255,255,255,0.015) 3px
  );
}
.broadcast__track {
  display: flex;
  width: max-content;
  gap: 14px;
  padding: 14px 12px;
  animation: slide 38s linear infinite;
}
.broadcast__track--rev { animation-direction: reverse; animation-duration: 32s; }
.broadcast:hover .broadcast__track { animation-play-state: paused; }
body.is-music .broadcast__track { animation-duration: 22s; }

.bc {
  position: relative;
  flex: 0 0 auto;
  min-width: 160px;
  height: 90px;
  padding: 10px 12px;
  border: 1px solid #242424;
  border-radius: 14px;
  transition: border-color 0.2s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  background: linear-gradient(145deg, #101010, #070707 60%);
  box-shadow: 4px 4px 0 #000;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.bc:hover { border-color: #ff3a48; transform: translateY(-2px); }
.bc.is-copied { outline: 2px solid var(--spot, #1db954); }
.bc--hero .bc__ava {
  position: relative;
  width: 64px;
  height: 64px;
  border: 2px solid #fff;
  overflow: hidden;
  flex: 0 0 auto;
}
.bc--hero .bc__ava img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.15);
  display: block;
}
.bc--hero .bc__ava i {
  position: absolute; right: 4px; bottom: 4px;
  width: 10px; height: 10px; border-radius: 50%;
  background: #2fbf71; border: 2px solid #000;
}
.bc__copy { display: grid; gap: 2px; }
.bc__copy b { font-family: var(--hand); font-size: 1.35rem; line-height: 1; }
.bc__copy span { color: #8a8a8a; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; }

.bc--eq {
  min-width: 150px;
  justify-content: space-between;
}
.bc__eq {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 54px;
}
.bc__eq i {
  display: block;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, #999999, var(--red));
  transform-origin: bottom;
  transform: scaleY(0.35);
}
.bc__tag {
  font-family: var(--display);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: #cfcfcf;
}

.bc--glitch {
  min-width: 200px;
  justify-content: center;
  background: #000;
  overflow: hidden;
}
.bc__glitch {
  position: relative;
  font-family: var(--hand);
  font-size: 2rem;
  color: #fff;
}
.bc__glitch::before,
.bc__glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0.75;
}
.bc__glitch::before { color: #9a9a9a; clip-path: inset(0 0 55% 0); transform: translate(-2px, 0); }
.bc__glitch::after { color: #6a6a6a; clip-path: inset(45% 0 0 0); transform: translate(2px, 0); }
body.is-music .bc__glitch::before { animation: glitch-a 0.9s infinite linear alternate-reverse; }
body.is-music .bc__glitch::after { animation: glitch-b 0.7s infinite linear alternate-reverse; }
@keyframes glitch-a { to { transform: translate(3px, -1px); } }
@keyframes glitch-b { to { transform: translate(-3px, 1px); } }

.bc--night {
  min-width: 210px;
  background: linear-gradient(160deg, #101010, #050505);
}
.bc__moon { display: none; }
.bc__lines { display: grid; gap: 2px; }
.bc__lines span { color: #9a9a9a; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; }
.bc__lines strong { font-family: var(--hand); font-size: 1.35rem; color: #fff; }

.bc--stamp {
  flex-direction: column;
  justify-content: center;
  min-width: 120px;
  gap: 6px;
}
.bc__face {
  width: 48px; height: 48px;
  object-fit: cover;
  border: 1px solid #3a3a3a;
  border-radius: 12px;
  filter: grayscale(1) contrast(1.2);
}
.bc--stamp span { font-size: 0.78rem; color: #cfcfcf; }

.bc--live { min-width: 170px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; }
.bc__live {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--display); font-size: 0.72rem; letter-spacing: 0.12em;
  color: #fff;
}
.bc__live em {
  width: 8px; height: 8px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 0 rgba(255,255,255,.6);
  animation: livepulse 1.4s ease-out infinite;
}
@keyframes livepulse {
  70% { box-shadow: 0 0 0 10px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.bc__pulse { color: #8a8a8a; font-size: 0.78rem; }

.bc--ticker {
  min-width: 220px;
  overflow: hidden;
  background: #0b0b0b;
}
.bc__strip {
  white-space: nowrap;
  font-family: var(--display);
  letter-spacing: 0.2em;
  color: rgba(220,220,220,0.55);
  font-size: 0.85rem;
}

.bc--portal { min-width: 200px; }
.bc__portal {
  width: 56px; height: 56px; border-radius: 50%;
  overflow: hidden; border: 1px solid #3a3a3a;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.06);
  flex: 0 0 auto;
}
.bc__portal img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.4) contrast(1.1); }
.bc__portal-meta { display: grid; gap: 2px; }
.bc__portal-meta b { font-family: var(--display); font-size: 0.78rem; letter-spacing: 0.08em; }
.bc__portal-meta span { color: #8a8a8a; font-size: 0.72rem; }
.block { margin-top: 8px; }
.block__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.tape {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid #2a2a2a;
  border-radius: 999px;
  background: #0d0d0d;
  color: #ddd;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.tape:hover { border-color: #555; color: #fff; transform: translateY(-1px); }
.tape--alt { background: #0d0d0d; }

.board {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.item {
  position: relative;
  padding: 18px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #070707;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease, background 0.2s ease;
}
.item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px 160px at var(--mx, 50%) -30%, rgba(255,255,255,0.07), transparent 70%);
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}
.item:hover {
  transform: translateY(-4px);
  border-color: #3c3c3c;
  background: #0b0b0b;
}
.item:hover::after { opacity: 1; }
.item__badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  border: 1px solid #333;
  border-radius: 999px;
  background: #111;
  color: #ccc;
  font-size: 0.66rem;
  font-family: var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.item h3 {
  margin: 0;
  font-size: 1.05rem;
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.item p {
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: 0.88rem;
}
.item__btns { display: flex; flex-wrap: wrap; gap: 8px; }

.poster {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0;
  margin: 28px 0;
  border: 1px solid #2a2a2a;
  border-radius: 18px;
  background: #000;
  overflow: hidden;
  transition: border-color 0.25s ease;
}
.poster:hover { border-color: #4a4a4a; }
.poster__left img {
  width: 140px;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.2);
}
.poster__right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 20px;
  background: repeating-linear-gradient(
    90deg,
    #080808,
    #080808 8px,
    #0d0d0d 8px,
    #0d0d0d 16px
  );
}
.poster__right p {
  margin: 0;
  font-family: var(--mono);
  letter-spacing: 0.22em;
  color: #888;
  font-size: 0.76rem;
}
.poster__right strong {
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  line-height: 1.05;
  margin-top: 6px;
  letter-spacing: 0.04em;
}
.poster__right span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.badge {
  display: grid;
  gap: 4px;
  padding: 14px 12px;
  border: 1.5px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  background: linear-gradient(180deg, #171717, #0d0d0d);
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
  min-height: 78px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.badge:hover {
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.45);
}
.badge b {
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #8a8a8a;
  text-transform: uppercase;
}
.badge span { font-size: 0.92rem; }

/* ---- osint web ---- */
.osint {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #050505;
  padding: 0 0 14px;
}
.osint__bar {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: #9a9a9a;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  background: #0a0a0a;
}
.osint__form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
}
.osint__input {
  flex: 1 1 220px;
  min-height: 40px;
  padding: 0 14px;
  border: 1.5px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  background: #0d0708;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.osint__input:focus {
  border-color: #666;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.07);
}
.osint__hint {
  margin: 0;
  padding: 0 14px;
  color: var(--muted);
  font-size: 0.78rem;
}
.osint__results { padding: 10px 12px 0; display: grid; gap: 12px; }
.osint__results:empty { padding: 0; }
.osint__empty { color: var(--muted); font-size: 0.85rem; }
.osint__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.osint__tag {
  padding: 3px 12px;
  border: 1px solid #333;
  border-radius: 999px;
  background: #111;
  color: #ddd;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.osint__count { color: var(--muted); font-size: 0.8rem; }
.osint__cat {
  margin-bottom: 6px;
  color: #888;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.osint__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.osint__chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: linear-gradient(180deg, #171012, #0d090a);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.osint__chip:hover { border-color: var(--red); transform: translateY(-1px); }
.osint__chip a {
  padding: 6px 4px 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
}
.osint__copy {
  padding: 6px 10px 6px 6px;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.68rem;
  cursor: pointer;
}
.osint__copy:hover { color: var(--ink); }

.osint__chip--found {
  border-color: rgba(47,191,113,0.6);
  box-shadow: 0 0 0 1px rgba(47,191,113,0.15), 0 4px 14px rgba(47,191,113,0.12);
}
.osint__chip--found a { color: #7be3a8; }
.osint__chip--dead { opacity: 0.45; }
.osint__chip--dead a { text-decoration: line-through; }
.osint__chip--checking { border-style: dashed; }
.osint__state {
  padding-left: 2px;
  font-size: 0.72rem;
  color: var(--muted);
}
.osint__chip--found .osint__state { color: #2fbf71; }
.osint__chip--dead .osint__state { color: #999999; }

.osint__toggle {
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.osint__toggle:hover { color: var(--ink); }
.osint__toggle.is-on { border-color: var(--red); color: var(--ink); }

.osint__count--busy { color: #bbbbbb; }
@keyframes osint-pulse { 50% { opacity: 0.4; } }
.osint__count--busy { animation: osint-pulse 1s infinite; }

/* db results */
.osint__db {
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.05);
  padding: 10px 12px;
}
.osint__db-note { color: var(--muted); font-size: 0.82rem; }
.osint__db-note--hit { color: #7be3a8; margin-bottom: 8px; }
.osint__db-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
}
.osint__db-src {
  color: #8a8a8a;
  font-family: var(--display);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-top: 2px;
  word-break: break-all;
}
.osint__db-cells { line-height: 1.55; word-break: break-all; }
.osint__db-k {
  display: inline-block;
  min-width: 34px;
  color: var(--red);
  font-size: 0.68rem;
  font-family: var(--display);
  letter-spacing: 0.05em;
}
.osint__db-extra { color: var(--muted); font-size: 0.74rem; }

.osint__intel {
  border: 1px solid rgba(255,255,255,0.1);
  background: #0c0708;
  padding: 10px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.osint__intel .osint__cat { width: 100%; margin-bottom: 2px; }
.osint__check {
  border: 1px solid var(--line);
  padding: 4px 8px;
  font-size: 0.74rem;
  color: var(--muted);
}
.osint__check b {
  color: var(--red);
  font-size: 0.64rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-right: 6px;
}
.osint__check.is-ok { border-color: rgba(47,191,113,0.4); color: #c8e6d4; }
.osint__hint a { color: #8a8a8a; text-decoration: underline; text-underline-offset: 3px; }
.osint__hint a:hover { color: var(--ink); }

.whois {
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #050505;
}
.whois__bar {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: #0a0a0a;
  color: var(--muted);
  font-size: 0.8rem;
}
.whois pre {
  margin: 0;
  padding: 14px;
  color: #cfcfcf;
  font: inherit;
  font-size: 0.84rem;
  line-height: 1.65;
  white-space: pre-wrap;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.85rem;
}
.guest {
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background: #050505;
}
.guest__tag {
  margin: 0 0 6px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #888;
}
.guest p { margin: 0; color: var(--muted); font-size: 0.85rem; max-width: 52ch; }

/* modal */
.modal {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  padding: 18px; opacity: 0; transition: opacity 0.18s ease;
}
.modal[hidden] { display: none !important; }
.modal.is-open { opacity: 1; }
.modal__backdrop {
  position: absolute; inset: 0; background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(6px);
}
.modal__box {
  position: relative; z-index: 1; width: min(420px, 100%);
  padding: 28px 24px 22px; border: 1px solid #2a2a2a; border-radius: 20px; background: #0a0a0a;
  box-shadow: 0 30px 70px rgba(0,0,0,0.75);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal.is-open .modal__box { transform: none; }
.modal__q { margin: 0 0 18px; font-family: var(--hand); font-size: 1.35rem; }
.modal__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modal__punch {
  margin: 0; padding: 14px 12px; border: 1px solid #2a2a2a; border-radius: 14px;
  background: #0f0f0f; color: #cfcfcf;
  font-family: var(--hand); font-size: 1.25rem; line-height: 1.3;
  animation: punch-in 0.35s ease;
}
.modal__x {
  position: absolute; top: 8px; right: 10px; width: 32px; height: 32px;
  border: 0; border-radius: 50%; background: transparent; color: #888; font-size: 1.4rem; cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.modal__x:hover { color: #fff; background: #161616; transform: rotate(90deg); }
@keyframes punch-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 820px) {
  .board, .badges { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .profile { }
  .profile__ava, .profile__ava img { width: 128px; height: 128px; }
  .board, .badges { grid-template-columns: 1fr; }
  .poster { grid-template-columns: 100px 1fr; }
  .poster__left img { width: 100px; }
  .actions { display: grid; grid-template-columns: 1fr 1fr; }
  .actions .btn { width: 100%; }
  .nav { order: 3; width: 100%; }
}
@media (max-width: 420px) {
  .actions { grid-template-columns: 1fr; }
}

/* ---- motion polish ---- */
.reveal {
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

/* staggered cascade inside grids / lists */
.board .item.reveal:nth-child(2),
.badges .badge.reveal:nth-child(2),
#changelog .log__item.reveal:nth-child(2) { transition-delay: 0.07s; }
.board .item.reveal:nth-child(3),
.badges .badge.reveal:nth-child(3),
#changelog .log__item.reveal:nth-child(3) { transition-delay: 0.14s; }
.board .item.reveal:nth-child(4),
.badges .badge.reveal:nth-child(4),
#changelog .log__item.reveal:nth-child(4) { transition-delay: 0.21s; }
.board .item.reveal:nth-child(n + 5),
.badges .badge.reveal:nth-child(n + 5),
#changelog .log__item.reveal:nth-child(n + 5) { transition-delay: 0.26s; }

/* avatar breathing ring */
.profile__ava { position: relative; }
.profile__ava::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  animation: ava-ring 4.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ava-ring {
  0%, 100% { transform: scale(1); opacity: 0.45; }
  50% { transform: scale(1.045); opacity: 0.9; }
}

/* blinking terminal caret next to the handle */
.profile__body h2::after {
  content: "_";
  margin-left: 4px;
  color: #666;
  animation: caret 1.1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.guest { transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease; }
.guest:hover { border-color: #3c3c3c; background: #070707; }

.whois, .osint, .log, .status { transition: border-color 0.25s ease; }
.whois:hover, .osint:hover, .log:hover { border-color: #2e2e2e; }

@media (prefers-reduced-motion: reduce) {
  .broadcast__track, .boot__win, .reveal, .wrap, .profile__ava img,
  .profile__ava::after, .profile__body h2::after, .btn::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  @keyframes ava-in { from, to { opacity: 1; transform: none; } }
}
