/* ayee — minimal video host */

:root {
  --bg: #ffffff;
  --paper: #f6f5f3;
  --ink: #0a0a0a;
  --ink-2: #1d1d1d;
  --muted: #8a8a86;
  --muted-2: #b2b1ac;
  --line: #ececea;
  --line-2: #e3e2df;
  --line-strong: #d6d5d1;
  --accent: #ff5a1f;
  --accent-dim: #ffe1d2;
  --accent-ink: #b03700;
  --danger: #d83a1f;
  --avatar-bg: #e4e3df;
  --avatar-ink: #4a4a47;
  --shadow-md: 0 12px 32px -20px rgba(12, 12, 12, 0.22), 0 2px 6px -2px rgba(12, 12, 12, 0.06);
  --shadow-lg: 0 30px 60px -28px rgba(12, 12, 12, 0.25), 0 6px 16px -8px rgba(12, 12, 12, 0.1);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --r-pill: 999px;
  --t-fast: 140ms cubic-bezier(.2,.7,.2,1);
  --t-med: 240ms cubic-bezier(.2,.7,.2,1);
}

/* Ensure [hidden] works on all elements including SVG */
[hidden] { display: none !important; }

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01' on, 'cv11' on;
}
body { min-height: 100vh; }
button, input, textarea { font-family: inherit; color: inherit; }
button { background: none; border: none; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
.mono { font-family: 'Geist Mono', ui-monospace, monospace; font-feature-settings: 'tnum' on; letter-spacing: -0.01em; }
::selection { background: var(--accent-dim); color: var(--ink); }

/* ===== Shell / Header ===== */
.shell { min-height: 100vh; display: flex; flex-direction: column; }

.hdr {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px 32px;
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med);
}
.hdr.scrolled { border-color: var(--line); }
.hdr-left { display: flex; align-items: center; gap: 14px; justify-self: start; }
.hdr-center { justify-self: center; width: 100%; max-width: 360px; }
.hdr-right { display: flex; align-items: center; gap: 14px; justify-self: end; }

.logo {
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: baseline;
  user-select: none;
  font-style: italic;
  font-family: 'DM Serif Display', 'Geist', serif;
  font-weight: 400;
  font-size: 32px;
  letter-spacing: -0.025em;
  line-height: 1;
}
.logo .y { color: var(--accent); }

/* Brand mark — inline italic + orange y, inherits size from context */
.brand {
  font-family: 'DM Serif Display', 'Geist', serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
}
.brand .y { color: var(--accent); }

.search {
  width: 100%;
  position: relative;
}
.search input {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--r-pill);
  padding: 0 16px 0 38px;
  font-size: 14px;
  outline: none;
  color: var(--ink);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.search input::placeholder { color: var(--muted); }
.search input:focus { border-color: var(--ink); background: #fff; }

/* mobile icon-only header buttons */
.hdr-signin-ico { display: none; line-height: 0; }
@media (max-width: 640px) {
  .hdr { padding: 10px 14px; gap: 10px; grid-template-columns: auto 1fr auto; }
  .hdr-center { max-width: none; min-width: 0; }
  .hdr-label { display: none; }
  .hdr-upload {
    width: 36px; height: 36px; padding: 0;
    border-radius: 50%; justify-content: center; flex-shrink: 0;
    background: var(--paper); border: 1px solid var(--line);
  }
  .hdr-upload:hover { background: var(--line); border-color: var(--line-strong); }
  .hdr-signin { width: 36px; height: 36px; padding: 0; border-radius: 50%; justify-content: center; flex-shrink: 0; }
  .hdr-signin-ico { display: inline-flex; align-items: center; justify-content: center; }
  .hdr-right { gap: 8px; }
}
.search-ico {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast), border-color var(--t-fast), opacity var(--t-fast);
  border: 1px solid transparent;
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #2a2a2a; }
.btn-accent {
  background: var(--accent);
  color: #fff;
  font-weight: 500;
}
.btn-accent:hover { background: #0fa063; }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { background: rgba(12,12,12,0.06); }
.btn-outline { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--paper); border-color: #b8b7b3; }
.btn-bare { color: var(--ink); padding: 0 4px; height: 38px; }
.btn-bare:hover { color: #555; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-icon {
  width: 38px; height: 38px; padding: 0;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink);
}
.btn-icon:hover { background: rgba(12,12,12,0.06); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* avatar */
.avatar {
  border-radius: 50%;
  background: var(--avatar-bg);
  color: var(--avatar-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Geist', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
  transition: transform var(--t-fast);
  user-select: none;
  flex: 0 0 auto;
  overflow: hidden;
}
.avatar.xs { width: 24px; height: 24px; font-size: 11px; }
.avatar.sm { width: 32px; height: 32px; font-size: 13px; }
.avatar.md { width: 40px; height: 40px; font-size: 15px; }
.avatar.lg { width: 96px; height: 96px; font-size: 34px; font-weight: 700; }
.avatar:hover { transform: scale(1.04); }
.avatar.static { cursor: default; }
.avatar.static:hover { transform: none; }

/* ===== HOME ===== */
.home {
  flex: 1;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 32px 100px;
}

.drop {
  position: relative;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--paper);
  padding: 88px 48px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--t-med), background var(--t-med);
  overflow: hidden;
}
.drop:hover { border-color: #b5b4b0; background: #f1f0ed; }
.drop.dragover {
  border-color: var(--accent);
  border-style: solid;
  background: color-mix(in oklab, var(--accent) 6%, var(--paper));
}
.drop-icon {
  width: 64px; height: 64px;
  margin: 0 auto 30px;
  border-radius: 50%;
  background: #e7e6e2;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-med), transform var(--t-med), color var(--t-med);
}
.drop.dragover .drop-icon { background: var(--accent); color: #fff; transform: scale(1.08); }
.drop-title {
  font-size: 44px;
  letter-spacing: -0.035em;
  margin: 0 0 14px;
  line-height: 1.05;
  color: var(--ink);
  font-family: 'Instrument Serif', 'Geist', serif;
  font-style: italic;
  font-weight: 400;
}
.drop-sub {
  color: var(--muted);
  font-size: 16px;
  max-width: 460px;
  margin: 0 auto 28px;
  letter-spacing: -0.005em;
}
.drop-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted-2);
  font-family: 'Geist Mono', ui-monospace, monospace;
}
.drop-meta .dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-2); }

/* ===== Section header ===== */
.section-hdr {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 64px 0 22px;
  gap: 18px;
}
.section-title {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 0;
}
.section-title .muted { color: var(--muted); margin-left: 8px; font-weight: 400; }
.chips {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  flex-wrap: nowrap;
}
.chip {
  padding: 7px 14px;
  border-radius: var(--r-pill);
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--t-fast);
}
.chip:hover { color: var(--ink); background: var(--paper); }
.chip.active { background: var(--ink); color: #fff; }
.chip.active:hover { background: var(--ink); color: #fff; }

/* ===== Feed grid ===== */
.feed {
  column-count: 4;
  column-gap: 20px;
}
@media (max-width: 1100px) { .feed { column-count: 3; } }
@media (max-width: 760px) { .feed { column-count: 2; column-gap: 12px; } }
@media (max-width: 480px) { .feed { column-count: 1; } }

.card {
  break-inside: avoid;
  margin-bottom: 24px;
  cursor: pointer;
}
.card-thumb {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e6e1d6;
  transition: transform var(--t-med);
}
.card:hover .card-thumb { transform: translateY(-2px); }
.card-thumb-inner {
  position: absolute;
  inset: 0;
}
.card-duration {
  position: absolute;
  bottom: 8px; right: 8px;
  background: rgba(12,12,12,0.78);
  color: #fff;
  font-size: 11.5px;
  padding: 3px 7px;
  border-radius: 5px;
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
  font-family: 'Geist Mono', ui-monospace, monospace;
}
.card-format-badge {
  position: absolute;
  top: 8px; left: 8px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #fff;
  background: rgba(255,255,255,0.18);
  padding: 3px 7px;
  border-radius: 5px;
  backdrop-filter: blur(6px);
  text-transform: lowercase;
  font-weight: 500;
}
/* hide card meta below thumb — title is now an overlay */
.card-meta { display: none; }
.card { margin-bottom: 14px; }
.card-meta .avatar { width: 28px; height: 28px; font-size: 11px; flex: 0 0 28px; }
.card-title {
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 0 0 3px;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-author {
  font-size: 13px;
  color: var(--muted);
}
.card-stats {
  font-size: 12px;
  color: var(--muted-2);
  margin-top: 2px;
  font-family: 'Geist Mono', ui-monospace, monospace;
}

/* ===== Player page ===== */
.player-page {
  max-width: none;
  margin: 0;
  padding: 32px 5vw 120px;
}
.player-frame {
  position: relative;
  background: #0a0a0a;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  width: 100%;
}
.player-frame.vertical {
  aspect-ratio: 9 / 16;
  max-width: 520px;
}

.player-frame-OLD-REMOVED { display: none; }
.player-thumb {
  position: absolute;
  inset: 0;
}
.player-controls {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px 18px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transition: opacity var(--t-med);
}
.player-frame:hover .player-controls,
.player-frame.paused .player-controls { opacity: 1; }
.scrubber {
  position: relative;
  height: 4px;
  background: rgba(255,255,255,0.22);
  border-radius: 2px;
  cursor: pointer;
}
/* Expanded hit area without touching the visual bar */
.scrubber::before {
  content: '';
  position: absolute;
  top: -12px;
  bottom: -12px;
  left: 0;
  right: 0;
}
@media (hover: none) {
  .scrubber { height: 5px; }
  .scrubber::before { top: -18px; bottom: -18px; }
}
.scrubber-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: var(--accent);
  border-radius: 2px;
}
.scrubber-dot {
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  transition: opacity var(--t-fast);
}
.player-frame:hover .scrubber-dot,
.player-frame.paused .scrubber-dot { opacity: 1; }
.player-ctrlrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 13px;
  position: relative;
}
.player-ctrlrow button { color: #fff; opacity: 0.92; background: none; border: 0; padding: 4px; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.player-ctrlrow button:hover { opacity: 1; }
.player-ctrlrow .pc-text { font-size: 12px; font-family: 'Geist Mono', ui-monospace, monospace; }
.player-time { font-family: 'Geist Mono', ui-monospace, monospace; opacity: 0.9; }

/* settings popover */
.pc-popover {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 8px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #fff;
  font-size: 13px;
  z-index: 10;
}
.pc-popover-section {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  padding: 10px 12px 6px;
  font-weight: 500;
}
.pc-popover-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--t-fast);
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
}
.pc-popover-item:hover { background: rgba(255,255,255,0.08); }
.pc-popover-item.active { color: var(--accent); }
.pc-popover-item .badge {
  font-size: 10px;
  color: var(--accent);
  background: color-mix(in oklab, var(--accent) 22%, transparent);
  padding: 2px 6px;
  border-radius: 5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-left: 8px;
  font-weight: 500;
}
.pc-popover-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 4px 0; }

/* compact pill button in player control row */
.pc-pill {
  height: 26px;
  padding: 0 10px;
  border-radius: 13px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.005em;
  font-family: inherit;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: background var(--t-fast);
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-feature-settings: 'tnum' on;
}
.pc-pill:hover { background: rgba(255,255,255,0.2); }
.player-playbtn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.player-playbtn .pp {
  width: 76px; height: 76px;
  background: rgba(255,255,255,0.95);
  color: #0a0a0a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--t-med);
}
.player-frame:hover .player-playbtn .pp { transform: scale(1.06); }
.player-frame.playing .player-playbtn { opacity: 0; pointer-events: none; }

/* video meta block */
.video-info { margin-top: 18px; }

/* title overlay on hover (player + thumbs) */
.title-overlay {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 14px 16px 22px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0.18) 70%, transparent);
  color: #fff;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.25;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity var(--t-med), transform var(--t-med);
  pointer-events: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.player-frame:hover .title-overlay,
.card:hover .title-overlay,
.nextcard:hover .title-overlay,
.vrow-thumb:hover .title-overlay { opacity: 1; transform: translateY(0); }
.player-frame .title-overlay { font-size: 20px; padding: 18px 22px 30px; }
.card .title-overlay { font-size: 14px; padding: 12px 14px 20px; }
.nextcard .title-overlay { font-size: 13px; padding: 12px 14px 20px; }
.video-title-wrap { display: none; }
.video-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.video-channel {
  display: flex;
  gap: 12px;
  align-items: center;
  cursor: pointer;
}
.video-channel-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}
.video-channel-name { font-weight: 500; font-size: 15px; letter-spacing: -0.015em; white-space: nowrap; line-height: 1; }
.video-actions { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.video-desc {
  margin-top: 16px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.55;
}
.btn-subscribe-mini {
  height: 26px;
  padding: 0 12px;
  font-size: 12px;
  border-radius: var(--r-pill);
}

/* like / share */
.like {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  height: 38px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: transparent;
  transition: all var(--t-fast);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.like:hover { background: var(--paper); border-color: #b8b7b3; }
.like.on { color: var(--accent); border-color: var(--accent); background: color-mix(in oklab, var(--accent) 10%, transparent); }
.like svg { transition: transform var(--t-med); }
.like.bump svg { animation: heartbump 480ms ease-out; }
@keyframes heartbump {
  0% { transform: scale(1); }
  30% { transform: scale(1.45); }
  60% { transform: scale(0.92); }
  100% { transform: scale(1); }
}
.like-burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}
.like-burst span {
  position: absolute;
  left: 22px; top: 50%;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: burst 600ms ease-out;
}
@keyframes burst {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
  100% { transform: translate(var(--x), var(--y)) scale(0); opacity: 0; }
}

/* comments */
.comments { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.comments-head {
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: 18px;
}
.comments-head h3 {
  margin: 0; font-size: 18px; font-weight: 500; letter-spacing: -0.025em;
  display: inline-flex; align-items: baseline; gap: 8px;
}
.comments-head h3 .count { color: var(--muted); font-weight: 400; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 14px; }
.comments-sort {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--r-pill);
}
.comments-sort:hover { color: var(--ink); background: var(--paper); }

.comment-input-wrap {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  align-items: flex-start;
}
.comment-textarea {
  flex: 1;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  outline: none;
  transition: border-color var(--t-fast), background var(--t-fast);
  color: var(--ink);
  resize: vertical;
  min-height: 64px;
  font-family: inherit;
  line-height: 1.5;
}
.comment-textarea:focus { border-color: var(--ink); background: #fff; }
.comment-textarea::placeholder { color: var(--muted); }
.comment {
  display: flex;
  gap: 12px;
  padding: 12px 0;
}
.comment-body { flex: 1; min-width: 0; }
.comment-meta { display: flex; gap: 10px; align-items: baseline; margin-bottom: 3px; }
.comment-author { font-weight: 500; font-size: 13.5px; }
.comment-time { font-size: 12px; color: var(--muted); font-family: 'Geist Mono', ui-monospace, monospace; }
.comment-text { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.comment-actions { margin-top: 6px; display: flex; gap: 16px; color: var(--muted); font-size: 12.5px; }
.comment-actions button { color: inherit; font-family: inherit; }
.comment-actions button:hover { color: var(--ink); }

/* next-up section (after comments) */
.nextup {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.nextup-head {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 18px;
  font-weight: 500;
}
.nextup-grid {
  column-count: 4;
  column-gap: 14px;
}
@media (max-width: 1100px) { .nextup-grid { column-count: 3; } }
@media (max-width: 700px) { .nextup-grid { column-count: 2; } }
@media (max-width: 420px) { .nextup-grid { column-count: 1; } }

.nextcard {
  cursor: pointer;
  display: block;
  break-inside: avoid;
  margin-bottom: 14px;
}
.nextcard-thumb {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--t-med);
}
.nextcard:hover .nextcard-thumb { transform: translateY(-2px); }
.nextcard-title-overlay { display: none; }

/* ===== Upload flow ===== */
.upload-stage {
  padding: 40px;
  background: var(--paper);
  border-radius: var(--radius-lg);
}
.upload-flex { display: flex; gap: 32px; align-items: flex-start; }
.upload-preview {
  width: 360px;
  flex: 0 0 360px;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  background: #0a0a0a;
  position: relative;
  overflow: hidden;
}
.upload-preview.vertical { aspect-ratio: 9/16; width: 220px; flex: 0 0 220px; }
.upload-preview-fill {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.upload-progress-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #fff;
}
.upload-pct {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.upload-pct-sub { font-size: 11px; opacity: 0.65; letter-spacing: 0.08em; text-transform: uppercase; }
.upload-pbar {
  width: 70%;
  height: 3px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  overflow: hidden;
}
.upload-pbar-fill {
  height: 100%;
  background: var(--accent);
  transition: width 200ms linear;
}
.upload-meta {
  position: absolute;
  top: 12px; left: 12px; right: 12px;
  display: flex; justify-content: space-between;
  color: rgba(255,255,255,0.85);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  font-family: 'Geist Mono', ui-monospace, monospace;
}
.upload-form {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.upload-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.upload-eyebrow .pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.field-row { display: flex; flex-direction: column; gap: 6px; }
.field-label {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
.input {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14.5px;
  outline: none;
  transition: border-color var(--t-fast);
  color: var(--ink);
}
.input:focus { border-color: var(--ink); }
.input.lg { font-size: 19px; padding: 14px 16px; font-weight: 500; letter-spacing: -0.02em; }
.input::placeholder { color: var(--muted); }

/* segmented */
.seg {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 3px;
  background: #fff;
  gap: 2px;
}
.seg button {
  padding: 9px 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--t-fast);
}
.seg button:hover { color: var(--ink); }
.seg button.active { background: var(--ink); color: #fff; }

/* cover picker */
.cover-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.cover-frame {
  flex: 0 0 96px;
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--t-fast);
  background: #0a0a0a;
}
.cover-frame .fill { position: absolute; inset: 0; }
.cover-frame:hover { transform: translateY(-1px); }
.cover-frame.active { border-color: var(--accent); }
.cover-frame.custom {
  background: #fff;
  border: 1.5px dashed var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 22px;
}
.cover-frame.vertical { flex: 0 0 60px; aspect-ratio: 9/16; }

.share-block {
  margin-top: 6px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.share-block .label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}
.share-link-row { display: flex; gap: 8px; align-items: center; }
.share-link {
  flex: 1;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 13px;
  background: rgba(255,255,255,0.08);
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(255,255,255,0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.copy-btn {
  background: #fff;
  color: var(--ink);
  height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--t-fast);
}
.copy-btn:hover { background: var(--accent); color: #fff; }
.copy-btn.copied { background: var(--accent); color: #fff; }

/* ===== Auth modal ===== */
.modal-bg[hidden] { display: none; }
.modal-bg {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20,18,12,0.36);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 200ms ease-out;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 40px 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: rise 280ms cubic-bezier(.2,.7,.2,1);
}
@keyframes rise {
  from { transform: translateY(20px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition: all var(--t-fast);
}
.modal-close:hover { background: var(--paper); color: var(--ink); }
.modal h2 {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.04em;
}
.modal p.sub {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14.5px;
}

.code-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 6px 0 20px;
}
.code-cell {
  width: 48px;
  height: 56px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  text-align: center;
  font-size: 22px;
  font-weight: 500;
  font-family: 'Geist Mono', ui-monospace, monospace;
  outline: none;
  background: var(--paper);
  transition: all var(--t-fast);
  color: var(--ink);
}
.code-cell:focus { border-color: var(--ink); background: #fff; }
.code-cell.filled { background: #fff; border-color: var(--line-strong); }
.code-cell.error { border-color: var(--danger); animation: shake 360ms; }
@keyframes shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(3px); }
  30%, 50%, 70% { transform: translateX(-5px); }
  40%, 60% { transform: translateX(5px); }
}
.modal-foot {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.modal-foot button {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.modal-back {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.modal-back:hover { color: var(--ink); }

/* ===== Subscriptions ===== */
.subs-page {
  max-width: none;
  margin: 0;
  padding: 32px 5vw 80px;
}
.subs-hero {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 22px;
}
.subs-title {
  font-family: 'Geist', system-ui, sans-serif;
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.025em;
  margin: 0;
  line-height: 1;
}
.subs-sub {
  color: var(--muted);
  font-size: 13px;
  font-family: 'Geist Mono', ui-monospace, monospace;
}

.subs-channels {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.subs-channels::-webkit-scrollbar { display: none; }
.subs-channel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--t-fast);
  min-width: 100px;
  background: none;
  border: 0;
  font-family: inherit;
}
.subs-channel:hover { background: var(--paper); }
.subs-channel-name {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}
.subs-channel-handle {
  font-size: 11px;
  color: var(--muted);
  font-family: 'Geist Mono', ui-monospace, monospace;
}
/* ===== Channel page (public) ===== */
.channel-page {
  max-width: none;
  margin: 0;
  padding: 48px 5vw 100px;
}
.channel-hero {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.channel-hero-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
}
@media (max-width: 720px) {
  .channel-hero-row { grid-template-columns: auto 1fr; gap: 14px; }
  .channel-actions { grid-column: 1 / -1; }
}
.channel-avatar-wrap .avatar.lg {
  width: 64px;
  height: 64px;
  font-size: 22px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent-ink);
}
.channel-info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.channel-handle-eyebrow {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: -0.01em;
  line-height: 1;
}
.channel-name {
  font-family: 'Geist', system-ui, sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.2;
  color: var(--ink);
}
.channel-bio {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 640px;
  margin: 0;
}
.channel-stats {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  align-items: baseline;
}
.channel-stats strong {
  color: var(--ink);
  font-weight: 600;
  font-feature-settings: 'tnum' on;
}
.channel-stats .sep { color: var(--muted-2); }
.channel-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  align-self: center;
}

.channel-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
}
.channel-tabs button {
  padding: 9px 16px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  border-radius: var(--r-pill);
  transition: all var(--t-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.channel-tabs button:hover { color: var(--ink); background: var(--paper); }
.channel-tabs button.active { color: #fff; background: var(--ink); }
.channel-tabs .tab-count {
  font-size: 12px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  opacity: 0.65;
  font-weight: 500;
}

/* channel video grids */
.channel-grid-h {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 16px;
}
@media (max-width: 1280px) { .channel-grid-h { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .channel-grid-h { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .channel-grid-h { grid-template-columns: 1fr; } }

.channel-grid-v {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
@media (max-width: 1280px) { .channel-grid-v { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 900px) { .channel-grid-v { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .channel-grid-v { grid-template-columns: repeat(3, 1fr); } }

.ch-card, .ch-card-v { cursor: pointer; }
.ch-card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--t-med);
}
.ch-card-thumb.vertical { aspect-ratio: 9/16; }
.ch-card:hover .ch-card-thumb,
.ch-card-v:hover .ch-card-thumb { transform: translateY(-2px); }

/* About panel */
.about-panel {
  max-width: 720px;
  display: flex;
  flex-direction: column;
}
.about-panel .pair {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.about-panel .pair:first-child { padding-top: 4px; }
.about-panel .pair:last-child { border-bottom: 0; }
.about-panel .pair .k {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
.about-panel .pair .v { font-size: 15px; color: var(--ink); }

/* ===== Personal cabinet (мои видео — table) ===== */
.cabinet-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 32px 100px;
}
.cabinet-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  gap: 18px;
}
.cabinet-eyebrow {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 8px;
  font-weight: 500;
}
.cabinet-title {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.04em;
  margin: 0;
  line-height: 1;
}

.cabinet-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.cabinet-tabs button {
  padding: 12px 14px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--t-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cabinet-tabs button:hover { color: var(--ink); }
.cabinet-tabs button.active { color: var(--ink); border-bottom-color: var(--ink); }
.cabinet-tabs button .badge {
  font-size: 12px;
  color: var(--muted-2);
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-weight: 400;
}
.cabinet-tabs button.active .badge { color: var(--ink); }

/* table */
.vtable {
  width: 100%;
  margin-top: 18px;
}
.vtable-head {
  display: grid;
  grid-template-columns: 200px 1fr 200px 120px 60px;
  gap: 24px;
  padding: 0 0 10px;
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.vrow {
  display: grid;
  grid-template-columns: 200px 1fr 200px 120px 60px;
  gap: 24px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  transition: background var(--t-fast);
}
.vrow:hover { background: var(--paper); }
.vrow-thumb {
  width: 200px;
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: #0a0a0a;
  cursor: pointer;
}
.vrow-thumb.vertical {
  aspect-ratio: 9/16;
  width: 124px;
  margin: 0 38px;
}
.vrow-title {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 0 0 4px;
  outline: none;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 2px 4px;
  margin-left: -4px;
  transition: border-color var(--t-fast), background var(--t-fast);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vrow-title[contenteditable="true"] { border-color: var(--line-strong); background: #fff; -webkit-line-clamp: unset; }
.vrow-title:focus { border-color: var(--ink); background: #fff; -webkit-line-clamp: unset; }
.vrow-date {
  font-size: 12.5px;
  color: var(--muted);
  font-family: 'Geist Mono', ui-monospace, monospace;
}
.vrow-views {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 15px;
  color: var(--ink);
}
.vrow-actions {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
  align-items: center;
}
.vrow-act {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted);
  border: 1px solid transparent;
  transition: all var(--t-fast);
  flex-shrink: 0;
}
.vrow-act:hover {
  background: var(--bg);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
.vrow-act.danger:hover { color: var(--danger); border-color: #ffd0c8; background: #fff5f3; }

.privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 5px 10px 5px 8px;
  border-radius: var(--r-pill);
  background: var(--paper);
  color: var(--ink-2);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--t-fast);
  font-weight: 400;
}
.privacy-pill:hover { background: #fff; border-color: var(--line); }
.privacy-pill .pdot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--muted-2);
}
.privacy-pill.public .pdot { background: var(--accent); }
.privacy-pill.channel .pdot { background: #4b9aff; }
.privacy-pill.link .pdot { background: var(--danger); }

/* Privacy badge (read-only, used in cabinet table) */
.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 4px 10px 4px 8px;
  border-radius: var(--r-pill);
  background: var(--paper);
  color: var(--ink-2);
  border: 1px solid transparent;
}
.privacy-badge .pdot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--muted-2);
}
.privacy-badge.public .pdot { background: var(--accent); }
.privacy-badge.channel .pdot { background: #4b9aff; }
.privacy-badge.link .pdot { background: var(--danger); }

/* Edit panel (inline below a vrow) */
.edit-panel { border-top: 1px solid var(--line); }
.edit-panel-inner {
  padding: 20px 0 16px;
}
.edit-fields {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.edit-fields .field-group { flex: 1; min-width: 200px; }
.field-group { display: flex; flex-direction: column; gap: 6px; }

/* Privacy tab buttons inside edit panel */
.privacy-tabs { display: flex; gap: 6px; }
.privacy-tab {
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 13px;
  color: var(--ink-2);
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  transition: all var(--t-fast);
}
.privacy-tab:hover { border-color: var(--ink-3); background: #fff; }
.privacy-tab.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* Edit page (dedicated /cabinet/edit/{id}) */
.edit-page-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: start;
}
.edit-page-thumb {
  width: 200px;
  aspect-ratio: 16/9;
  border-radius: 10px;
  background: var(--paper);
  position: relative;
  overflow: hidden;
}
.edit-page-thumb.vertical {
  width: 112px;
  aspect-ratio: 9/16;
}
@media (max-width: 640px) {
  .edit-page-layout { grid-template-columns: 1fr; }
  .edit-page-thumb  { width: 100%; }
}

/* dropdown menu */
.menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  min-width: 240px;
  padding: 8px;
  box-shadow: var(--shadow-md);
  z-index: 50;
  animation: menuIn 160ms cubic-bezier(.2,.7,.2,1);
}
@keyframes menuIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.menu-head {
  padding: 10px 12px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.menu-head .nm { font-size: 14px; font-weight: 500; }
.menu-head .em { font-size: 12.5px; color: var(--muted); font-family: 'Geist Mono', ui-monospace, monospace; }
.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  transition: background var(--t-fast);
}
.menu-item:hover { background: var(--paper); }
.menu-item .mi { color: var(--muted); display: inline-flex; }
.menu-divider { height: 1px; background: var(--line); margin: 6px 0; }

/* toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  z-index: 200;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px;
  animation: toastIn 240ms cubic-bezier(.2,.7,.2,1);
}
@keyframes toastIn {
  from { transform: translate(-50%, 12px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}
.toast .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* skeleton placeholder thumb */
.thumb-fill {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.thumb-fill .title-line {
  font-family: 'Geist', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.95);
  letter-spacing: -0.015em;
  text-align: left;
  line-height: 1.2;
  max-width: 88%;
}
.thumb-fill.large .title-line { font-size: 22px; }
.thumb-fill.sm .title-line { font-size: 12px; }

/* edit channel modal panel */
.edit-channel {
  max-width: 540px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* misc */
.divider { height: 1px; background: var(--line); margin: 0; border: 0; }

.chips::-webkit-scrollbar, .cover-strip::-webkit-scrollbar { display: none; }
.chips, .cover-strip { scrollbar-width: none; }

/* Responsive cabinet */
@media (max-width: 900px) {
  .vtable-head, .vrow { grid-template-columns: 140px 1fr 140px 80px 50px; gap: 12px; }
  .vrow-thumb { width: 140px; }
  .vrow-thumb.vertical { width: 80px; margin: 0 30px; }
}

/* ===== Processing badge ===== */
.processing-badge {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(10,10,10,0.75);
  color: rgba(255,255,255,0.9);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 5px;
  backdrop-filter: blur(6px);
  letter-spacing: 0.04em;
  pointer-events: none;
}

/* ===== pc-pill-wrap ===== */
.pc-pill-wrap { position: relative; }

/* ===== Embed modal ===== */
.embed-size-tabs .btn.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* ===== Thumb aspect ratio fix ===== */
.card-thumb { display: block; width: 100%; }

/* ===== Player frame fill ===== */
.player-frame video { pointer-events: none; }
.player-frame .player-playbtn,
.player-frame .player-controls { pointer-events: auto; }

/* ===== Search page ===== */
.search input::-webkit-search-cancel-button { display: none; }

/* ===== Cabinet privacy menu position ===== */
.vrow { position: relative; }
.vrow .privacy-menu { position: absolute; top: calc(100% + 4px); left: 0; z-index: 20; }

/* ===== Responsive player ===== */
@media (max-width: 640px) {
  .player-page { padding: 0 0 80px; }
  .player-frame { border-radius: 0; }
  .video-info,
  .comments,
  .nextup { padding-left: 16px !important; padding-right: 16px !important; }
}

/* ===== Spinner ===== */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--line);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
