/* ============================================================
   Verse Studio — stylesheet (split out of the single-file app).
   The page owns the whole viewport (no site header/footer or
   global stylesheet is loaded here), so the resets below are safe.
   Design tokens ported from tailwind.config.ts + index.css
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* One accent, orange (design plan 3). The Studio's purple tokens are aliases, so every
     existing rule — Create tools, editors, makers — follows the swap without an edit. */
  --accent: #FF6B1A;
  --accent-light: #FF8A4C;
  --accent-deep: #C94F10;
  --accent-ink: #1A0D05;
  --accent-soft: rgba(255,107,26,.14);   /* selected chip tint, active tab ground */
  --accent-tint: rgba(255,107,26,.25);   /* the washes that used to be a translucent purple */
  --accent-wash: rgba(255,107,26,.08);
  --accent-deep-soft: rgba(201,79,16,.4);
  --purple: var(--accent);
  --purple-dark: var(--accent-deep);
  --purple-light: var(--accent-light);
  --black: #121212;           /* verse-black */
  --gray-dark: #1A1A1A;       /* verse-dark-gray */
  --gray-mid: #2A2A2A;        /* verse-medium-gray */
  --gray-light: #3D3D3D;      /* verse-light-gray */
  --white: #ffffff;
  --text: #fafafa;
  --text-soft: #d1d5db;       /* gray-300 */
  --text-muted: #9ca3af;      /* gray-400 */
  --text-dim: #6b7280;        /* gray-500 */
  --border-soft: #4b5563;     /* gray-600 */
  --red: #ef4444;
  --red-soft: #f87171;
  --yellow: #eab308;
  --green: #22c55e;
  --blue: #3b82f6;
  --radius: 0.5rem;
  --st-bar-h: 56px;           /* the top bar sits in normal flow above #app: every full-height rule subtracts it */
  /* chart series (CVD-validated against the dark surface) */
  --ch-revenue: #8B5CF6;
  --ch-streams: #0aa2c0;
  --ch-likes: #EF4444;
  --ch-plays: #8B5CF6;
  --ch-shares: #0d9e6e;
  --ch-grid: #374151;
}

html { scrollbar-color: var(--gray-light) var(--black); }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--black);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
/* Poster headlines only: page headlines, feature-tile titles, home section titles.
   Every label, tab, chip and button stays sentence-case Inter. */
:root { --font-poster: 'Barlow Condensed', 'Arial Narrow', 'Helvetica Neue Condensed', system-ui, sans-serif; }
.st-headline, .st-section-title, .st-tile-title {
  font-family: var(--font-poster); font-weight: 700; text-transform: uppercase;
  letter-spacing: -0.01em; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.st-headline { font-size: 40px; line-height: 44px; }
.st-section-title { font-size: 24px; line-height: 28px; font-weight: 600; }
.st-tile-title { font-size: 20px; line-height: 24px; }
@media (max-width: 640px) { .st-headline { font-size: 30px; line-height: 32px; } }

img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-light); border-radius: 5px; }

/* ---------- icons ---------- */
.icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- animations ---------- */
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { opacity: 0; animation: fade-in 0.5s ease-out forwards; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
.pulse { animation: pulse 2s cubic-bezier(0.4,0,0.6,1) infinite; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 16px; border-radius: 6px; font-size: 14px; font-weight: 500;
  transition: background-color .2s, color .2s, border-color .2s, opacity .2s;
  white-space: nowrap; user-select: none;
}
.btn:disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn-primary { background: var(--purple); color: var(--accent-ink); }
.btn-primary:hover { background: var(--purple-dark); }
.btn-outline { border: 1px solid var(--gray-light); background: transparent; color: var(--text); }
.btn-outline:hover { background: var(--gray-mid); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: rgba(42,42,42,.6); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 13px; height: 32px; }
.btn-icon { width: 32px; height: 32px; padding: 0; }
.btn-pill { border-radius: 9999px; }
.btn-full { width: 100%; }
.btn-disabled-gray { background: var(--border-soft) !important; color: var(--text-muted) !important; cursor: not-allowed; }

/* ---------- badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  border-radius: 9999px; padding: 2px 10px; font-size: 12px; font-weight: 600;
  border: 1px solid transparent; line-height: 1.4;
}
.badge-purple { background: var(--purple); color: var(--accent-ink); }
.badge-secondary { background: var(--gray-mid); color: var(--text); }
.badge-outline { border-color: var(--gray-light); color: var(--text-soft); background: transparent; }
.badge-outline-purple { border-color: var(--purple); color: var(--purple); background: transparent; }
.badge-outline-gray { border-color: var(--border-soft); color: var(--text-muted); background: transparent; }
.badge-yellow { background: var(--yellow); color: #121212; }
.badge-purple-soft { background: var(--accent-tint); color: var(--purple-light); }
.badge-click { cursor: pointer; transition: background-color .2s; }

/* ---------- cards ---------- */
.card { background: var(--gray-dark); border: 1px solid var(--gray-mid); border-radius: var(--radius); }
.card-header { padding: 24px 24px 0; }
.card-content { padding: 24px; }
.card-title { font-size: 16px; font-weight: 600; color: #fff; }

/* ---------- inputs ---------- */
.input, .textarea, .select {
  width: 100%; background: var(--gray-mid); border: 1px solid var(--gray-light);
  color: #fff; border-radius: 6px; padding: 9px 12px; font: inherit; font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.input::placeholder, .textarea::placeholder { color: var(--text-muted); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 2px var(--accent-tint); }
.textarea { resize: vertical; min-height: 80px; line-height: 1.6; }
.input-bare { background: transparent; border: none; padding: 0; font-size: 20px; font-weight: 700; }
.input-bare:focus { box-shadow: none; }
.input-dark { background: var(--black); border-color: var(--gray-mid); }
label.form-label { display: block; color: #fff; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.char-count { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ---------- range sliders (--p = fill % 0-100) ---------- */
input[type="range"].range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px;
  border-radius: 9999px; outline: none; cursor: pointer;
  background: linear-gradient(to right, var(--purple) 0%, var(--purple) calc(var(--p, 50) * 1%), var(--gray-light) calc(var(--p, 50) * 1%), var(--gray-light) 100%);
}
input[type="range"].range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 2px solid var(--purple); transition: transform .15s;
}
input[type="range"].range::-webkit-slider-thumb:hover { transform: scale(1.2); }
input[type="range"].range::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--purple);
}
input[type="range"].range:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- tabs ---------- */
.tabs-list { display: inline-flex; background: var(--gray-dark); border-radius: 6px; padding: 4px; gap: 2px; }
.tab-trigger {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 6px 14px; border-radius: 4px; font-size: 14px; font-weight: 500;
  color: var(--text-muted); transition: background-color .2s, color .2s;
  text-decoration: none;
}
.tab-trigger:hover { color: #fff; }
.tab-trigger.active { background: var(--gray-mid); color: #fff; }
/* underline variant (Fan Hub): transparent, purple bottom border */
.tabs-underline { display: grid; grid-template-columns: repeat(4, 1fr); height: 48px; }
.tabs-underline .tab-trigger { border-radius: 0; height: 100%; border-bottom: 2px solid transparent; }
.tabs-underline .tab-trigger.active { background: transparent; color: #fff; border-bottom-color: var(--purple); }

/* ---------- toasts (sonner-style) ---------- */
#toasts { position: fixed; bottom: 24px; right: 24px; z-index: 300; display: flex; flex-direction: column; gap: 10px; max-width: 356px; pointer-events: none; }
/* A plain toast lets taps through to what it covers (on a phone it sat over a device window's lower knobs for 3-4 s);
   a toast that carries a button or link stays clickable. */
#toasts .toast:has(button, a) { pointer-events: auto; }
.toast {
  display: flex; align-items: center; gap: 10px;
  background: var(--gray-dark); border: 1px solid var(--gray-mid); color: var(--text);
  border-radius: 8px; padding: 14px 16px; font-size: 13.5px; font-weight: 500;
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
  animation: toast-in .25s ease-out;
}
.toast.leaving { animation: toast-out .25s ease-in forwards; }
.toast .icon { flex-shrink: 0; }
.toast-success .icon { color: var(--green); }
.toast-error .icon { color: var(--red); }
.toast-info .icon { color: var(--blue); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px) scale(.97); } }

/* ---------- modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.8); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  animation: fade-overlay .2s ease-out;
}
@keyframes fade-overlay { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 100%; max-width: 672px; max-height: 90vh; overflow-y: auto;
  background: var(--gray-dark); border: 1px solid var(--gray-mid); border-radius: var(--radius);
  animation: fade-in .25s ease-out;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 24px 24px 0; }
.modal-title { color: #fff; font-size: 20px; font-weight: 600; }
.modal-body { padding: 24px; display: flex; flex-direction: column; gap: 24px; }
.dropzone {
  border: 2px dashed var(--gray-mid); border-radius: var(--radius); padding: 24px;
  text-align: center; color: var(--text-muted); transition: border-color .2s;
}
.dropzone:hover { border-color: var(--purple); }
.dropzone input[type=file] { display: none; }
.dropzone .file-picked { display: flex; align-items: center; justify-content: center; gap: 8px; color: #fff; }

/* ============================================================
   HOME — app shell: sidebar + content + player
   ============================================================ */
.app-shell { min-height: calc(100vh - var(--st-bar-h)); height: calc(100vh - var(--st-bar-h)); display: flex; flex-direction: column; }
.main-row { flex: 1; display: flex; overflow: hidden; }
.content-scroll {
  flex: 1; overflow-y: auto;
  background: radial-gradient(circle at 50% 0%, var(--gray-dark), var(--black) 70%);
}
.content-pad { padding: 24px 32px; }

/* sidebar */
.sidebar {
  width: 256px; height: 100%; flex-shrink: 0; display: none;
  border-right: 1px solid var(--gray-mid);
}
@media (min-width: 768px) { .sidebar { display: block; } }
.sidebar-inner { background: var(--black); color: #fff; height: 100%; width: 256px; display: flex; flex-direction: column; }
.sidebar-logo { padding: 24px; border-bottom: 1px solid var(--gray-mid); }
.sidebar-logo h1 {
  font-size: 24px; font-weight: 700;
  background: linear-gradient(to right, var(--purple), var(--purple-dark));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sidebar-nav { flex: 1; padding: 24px 16px; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px;
  border-radius: var(--radius); text-align: left; font-size: 15px;
  transition: background-color .2s; color: inherit;
}
.nav-item:hover { background: var(--gray-mid); }
.nav-group { display: flex; flex-direction: column; gap: 4px; }
.playlists-head { display: flex; align-items: center; justify-content: space-between; margin: 32px 0 16px; }
.playlists-head h3 { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.playlists-head button { padding: 4px; border-radius: 4px; display: flex; }
.playlists-head button:hover { background: var(--gray-mid); }
.playlist-item { font-size: 14px; color: var(--text-soft); padding: 8px 12px; }
.sidebar-bottom { padding: 16px; border-top: 1px solid var(--gray-mid); display: flex; flex-direction: column; gap: 8px; }
.user-chip {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  border-radius: var(--radius); background: var(--gray-mid); cursor: pointer;
  overflow: hidden;
}
.user-chip .avatar { flex-shrink: 0; }
.user-chip span { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--purple);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 500; color: var(--accent-ink);
}
.avatar-lg { width: 40px; height: 40px; }

/* mobile sidebar drawer */
.mobile-toggle { position: fixed; top: 16px; left: 16px; z-index: 60; }
@media (min-width: 768px) { .mobile-toggle { display: none; } }
.mobile-toggle button {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(26,26,26,.8);
  backdrop-filter: blur(12px); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.4); color: #fff;
}
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 40;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; left: 0; height: 100%; z-index: 50; transform: translateX(-100%); transition: transform .3s; }
.drawer.open { transform: translateX(0); }
@media (min-width: 768px) { .drawer, .drawer-overlay { display: none; } }

/* player bar */
.player-bar { height: 80px; border-top: 1px solid var(--gray-mid); display: flex; align-items: center; padding: 0 16px; background: var(--gray-dark); }
.player-inner { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; }
.player-track { display: flex; align-items: center; gap: 12px; width: 25%; min-width: 0; }
.player-cover { height: 48px; width: 48px; border-radius: 4px; overflow: hidden; background: var(--gray-mid); flex-shrink: 0; }
.player-cover img { height: 100%; width: 100%; object-fit: cover; }
.player-track-meta { display: flex; flex-direction: column; min-width: 0; }
.player-track-meta .t { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-track-meta .a { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-center { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 50%; max-width: 448px; }
.player-buttons { display: flex; align-items: center; gap: 16px; margin-bottom: 4px; }
.player-buttons .side { color: var(--text-muted); display: flex; transition: color .2s; }
.player-buttons .side:hover { color: #fff; }
.play-toggle {
  height: 32px; width: 32px; border-radius: 50%; background: #fff; color: #000;
  display: flex; align-items: center; justify-content: center; transition: transform .15s;
}
.play-toggle:hover { transform: scale(1.05); }
.player-progress { display: flex; align-items: center; gap: 8px; width: 100%; }
.player-progress .time { font-size: 12px; color: var(--text-muted); min-width: 32px; text-align: center; }
.player-volume { display: flex; align-items: center; gap: 8px; width: 25%; justify-content: flex-end; color: var(--text-muted); }
.player-volume input { width: 96px; }
@media (max-width: 639px) {
  .player-track { width: 40%; }
  .player-volume { display: none; }
  .player-center { width: 60%; }
}

/* ---------- section header ---------- */
.section { margin-bottom: 32px; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.section-head h2 { font-size: 20px; font-weight: 700; }
.see-all { display: flex; align-items: center; font-size: 14px; font-weight: 500; color: var(--text-muted); transition: color .2s; }
.see-all:hover { color: #fff; }

/* ---------- hero ---------- */
.hero {
  margin-bottom: 40px; position: relative; overflow: hidden; border-radius: 12px;
  height: 256px; cursor: pointer;
}
.hero-tint { position: absolute; inset: 0; background: linear-gradient(to right, rgba(255,107,26,.8), var(--accent-deep-soft)); z-index: 10; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.hero:hover img { transform: scale(1.05); }
.hero-body { position: absolute; bottom: 0; left: 0; padding: 32px; z-index: 20; width: 100%; }
.hero-body .kicker { font-size: 14px; font-weight: 500; color: #e5e7eb; margin-bottom: 4px; display: block; }
.hero-body h1 { font-size: 36px; font-weight: 700; margin-bottom: 8px; }
.hero-body p { color: #e5e7eb; margin-bottom: 16px; }
.hero-actions { display: flex; gap: 16px; }
.hero-save { background: rgba(0,0,0,.3); backdrop-filter: blur(4px); color: #fff; }
.hero-save:hover { background: rgba(0,0,0,.5); }

/* ---------- stories bar ---------- */
.stories { display: flex; overflow-x: auto; gap: 16px; padding-bottom: 8px; scrollbar-width: none; -ms-overflow-style: none; }
.stories::-webkit-scrollbar { display: none; }
.story { flex-shrink: 0; cursor: pointer; text-align: center; }
.story-ring { width: 64px; height: 64px; border-radius: 50%; padding: 2px; position: relative; }
.story-ring.new { background: linear-gradient(to top right, var(--purple), var(--purple-light)); }
.story-ring.seen { background: var(--border-soft); }
.story-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--black); transition: transform .2s; }
.story:hover .story-ring img { transform: scale(1.05); }
.story-dot { position: absolute; top: -4px; right: -4px; width: 16px; height: 16px; background: var(--purple); border-radius: 50%; border: 2px solid var(--black); }
.story-add {
  width: 64px; height: 64px; border-radius: 50%; border: 2px dashed var(--border-soft);
  display: flex; align-items: center; justify-content: center; background: rgba(42,42,42,.3);
  color: var(--text-muted); transition: border-color .2s, color .2s;
}
.story:hover .story-add { border-color: var(--purple); color: var(--purple); }
.story p { font-size: 12px; margin-top: 8px; color: var(--text-muted); max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .2s; }
.story:hover p { color: #fff; }

/* ---------- live streams ---------- */
.grid-streams { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .grid-streams { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-streams { grid-template-columns: repeat(3, 1fr); } }
.stream-card {
  position: relative; background: rgba(42,42,42,.3); border-radius: 12px; overflow: hidden;
  cursor: pointer; transition: background-color .3s;
}
.stream-card:hover { background: rgba(42,42,42,.5); }
.stream-thumb { position: relative; overflow: hidden; }
.stream-thumb > img { width: 100%; height: 160px; object-fit: cover; transition: transform .3s; }
.stream-card:hover .stream-thumb > img { transform: scale(1.05); }
.stream-hover {
  position: absolute; inset: 0; background: rgba(0,0,0,.4); opacity: 0;
  transition: opacity .3s; display: flex; align-items: center; justify-content: center;
}
.stream-card:hover .stream-hover { opacity: 1; }
.overlay-play {
  height: 64px; width: 64px; border-radius: 50%; background: rgba(255,107,26,.9);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.live-pill { position: absolute; top: 12px; left: 12px; padding: 4px 8px; border-radius: 9999px; font-size: 12px; font-weight: 700; }
.live-pill.live { background: var(--red); color: #fff; animation: pulse 2s cubic-bezier(0.4,0,0.6,1) infinite; }
.live-pill.soon { background: var(--yellow); color: #121212; }
.viewers-pill {
  position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
  padding: 4px 8px; border-radius: 9999px; font-size: 12px; color: #fff;
  display: flex; align-items: center; gap: 4px;
}
.stream-body { padding: 16px; }
.stream-body h3 { font-weight: 700; color: #fff; margin-bottom: 4px; transition: color .2s; }
.stream-card:hover .stream-body h3 { color: var(--purple-light); }
.stream-body .artist { font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }
.stream-body .when { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-dim); }

/* ---------- AI DJ ---------- */
.ai-panel {
  background: linear-gradient(to bottom right, var(--accent-tint), rgba(201,79,16,.1));
  border: 1px solid var(--accent-tint); border-radius: 12px; padding: 24px;
}
.ai-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ai-left { display: flex; align-items: center; gap: 16px; }
.ai-bot {
  height: 64px; width: 64px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(to bottom right, var(--purple), var(--purple-dark));
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.ai-left h3 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.ai-left .sub { color: var(--text-muted); font-size: 14px; margin-bottom: 8px; }
.ai-left .desc { color: var(--text-soft); font-size: 14px; }
.ai-actions { display: flex; flex-direction: column; gap: 8px; }
.btn-outline-purple { border: 1px solid var(--purple); color: var(--purple); background: transparent; }
.btn-outline-purple:hover { background: var(--purple); color: var(--accent-ink); }
.ai-moods { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.mood-chip {
  padding: 4px 12px; border-radius: 9999px; background: var(--accent-soft);
  font-size: 12px; color: var(--purple-light); transition: background-color .2s;
}
.mood-chip:hover { background: var(--accent-tint); }

/* ---------- album / artist / podcast grids ---------- */
.grid-albums { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 640px) { .grid-albums { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .grid-albums { grid-template-columns: repeat(5, 1fr); } }
.album-card {
  background: rgba(42,42,42,.3); border-radius: var(--radius); padding: 16px;
  cursor: pointer; transition: background-color .2s;
}
.album-card:hover { background: rgba(42,42,42,.5); }
.album-art { position: relative; margin-bottom: 12px; }
.album-art > img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.album-hover {
  position: absolute; inset: 0; background: rgba(0,0,0,.4); border-radius: 6px;
  opacity: 0; transition: opacity .2s; display: flex; align-items: center; justify-content: center;
}
.album-card:hover .album-hover { opacity: 1; }
.album-play {
  height: 48px; width: 48px; border-radius: 50%; background: var(--purple); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(0,0,0,.4);
  transform: scale(.95); transition: transform .2s;
}
.album-card:hover .album-play { transform: scale(1); }
.album-card h3 { font-weight: 500; color: #fff; margin-bottom: 4px; font-size: 15px; transition: color .2s;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.album-card:hover h3 { color: var(--purple-light); }
.album-card .artist { font-size: 14px; color: var(--text-muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }

.grid-artists { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 640px) { .grid-artists { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .grid-artists { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1280px) { .grid-artists { grid-template-columns: repeat(6, 1fr); } }
.artist-card { text-align: center; cursor: pointer; }
.artist-photo { position: relative; margin-bottom: 12px; }
.artist-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; margin: 0 auto; transition: transform .2s; }
.artist-card:hover .artist-photo img { transform: scale(1.05); }
.artist-photo .veil { position: absolute; inset: 0; background: rgba(0,0,0,.2); border-radius: 50%; opacity: 0; transition: opacity .2s; }
.artist-card:hover .veil { opacity: 1; }
.artist-card h3 { font-weight: 500; color: #fff; transition: color .2s; }
.artist-card:hover h3 { color: var(--purple-light); }
.artist-card .role { font-size: 14px; color: var(--text-muted); }

.grid-podcasts { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .grid-podcasts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-podcasts { grid-template-columns: repeat(4, 1fr); } }
.podcast-card { background: rgba(42,42,42,.3); border-radius: 12px; padding: 16px; cursor: pointer; transition: background-color .2s; }
.podcast-card:hover { background: rgba(42,42,42,.5); }
.podcast-card h3 { font-weight: 500; color: #fff; margin-bottom: 4px; transition: color .2s; }
.podcast-card:hover h3 { color: var(--purple-light); }
.podcast-card .host { font-size: 14px; color: var(--text-muted); margin-bottom: 4px; }
.podcast-card .eps { font-size: 12px; color: var(--text-dim); }

/* ---------- made for you ---------- */
.grid-mfy { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 768px) { .grid-mfy { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .grid-mfy { grid-template-columns: repeat(4, 1fr); } }
.mfy-tile {
  background: linear-gradient(to bottom right, var(--gray-mid), var(--gray-dark));
  border-radius: 12px; padding: 16px; cursor: pointer; transition: opacity .2s;
}
.mfy-tile:hover { opacity: .85; }
.mfy-wide { grid-column: span 2; display: flex; align-items: center; }
.mfy-wide .mix-art { width: 96px; height: 96px; border-radius: 4px; overflow: hidden; margin-right: 16px; flex-shrink: 0; }
.mfy-wide .mix-art img { width: 100%; height: 100%; object-fit: cover; }
.mfy-wide h3 { font-size: 18px; font-weight: 500; }
.mfy-wide .sub { font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }
.mfy-tile h4 { font-size: 14px; font-weight: 500; margin-bottom: 12px; }
.mfy-tile .big { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.mfy-foot { display: flex; justify-content: space-between; align-items: center; }
.mfy-foot .count { font-size: 12px; color: var(--text-muted); }
.mfy-play {
  height: 32px; width: 32px; border-radius: 50%; background: var(--purple); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center; transition: background-color .2s;
}
.mfy-play:hover { background: var(--purple-dark); }

/* ============================================================
   FAN HUB
   ============================================================ */
.fanhub { min-height: 100vh; background: var(--black); }
.fanhub-header {
  position: sticky; top: 0; z-index: 50; background: rgba(18,18,18,.95);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--gray-mid);
}
.fanhub-header-inner { max-width: 672px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; }
.fanhub-header-inner h1 { font-size: 20px; font-weight: 700; color: #fff; }
.fanhub-header-actions { display: flex; align-items: center; gap: 12px; }
.fanhub-wrap { max-width: 672px; margin: 0 auto; }
.compose { border-bottom: 1px solid var(--gray-mid); padding: 16px; display: flex; gap: 12px; }
.compose-main { flex: 1; }
.compose-prompt {
  width: 100%; text-align: left; color: var(--text-muted); height: 48px;
  border-radius: 16px; padding: 0 16px; font-size: 15px; transition: background-color .2s, color .2s;
}
.compose-prompt:hover { background: rgba(42,42,42,.3); color: #fff; }
.compose-row { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.compose-hint { font-size: 12px; color: var(--text-dim); }
.fanhub-tabs { position: sticky; top: 61px; z-index: 40; background: rgba(18,18,18,.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--gray-mid); }
.feed { min-height: 100vh; }
.feed-empty { text-align: center; padding: 48px 16px; }
.feed-empty p { color: var(--text-muted); font-size: 17px; }
.feed-empty .hint { color: var(--text-dim); font-size: 14px; margin-top: 8px; }
.feed-empty .cta { margin-top: 16px; }

/* feed card */
.feed-card { padding: 16px; border-bottom: 1px solid var(--gray-mid); transition: background-color .2s; }
.feed-card:hover { background: rgba(26,26,26,.3); }
.feed-card:last-child { border-bottom: none; }
.feed-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.feed-head-main { flex: 1; min-width: 0; }
.feed-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.feed-meta .handle { font-weight: 500; color: #fff; font-size: 14px; }
.feed-meta .dot, .feed-meta .ago { color: var(--text-dim); font-size: 14px; }
.feed-head-main h3 { color: #fff; font-weight: 500; margin-bottom: 4px; }
.feed-head-main .desc { color: var(--text-soft); font-size: 14px; margin-bottom: 8px; }
.feed-head-main .original { color: var(--text-muted); font-size: 14px; margin-bottom: 8px; }
.feed-media { position: relative; margin-bottom: 12px; border-radius: 12px; overflow: hidden; background: var(--gray-dark); }
.feed-media > img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.feed-media .type-glyph { width: 100%; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; font-size: 40px; }
.feed-media-hover {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: transparent; transition: background-color .2s;
}
.feed-media-hover .btn { opacity: 0; transition: opacity .2s; }
.feed-media:hover .feed-media-hover { background: rgba(0,0,0,.3); }
.feed-media:hover .feed-media-hover .btn { opacity: 1; }
.feed-badge-tl { position: absolute; top: 12px; left: 12px; }
.feed-badge-tr { position: absolute; top: 12px; right: 12px; }
.badge-ai { background: rgba(18,18,18,.8); }
.feed-actions { display: flex; align-items: center; justify-content: space-between; }
.feed-actions-left { display: flex; align-items: center; gap: 24px; }
.feed-act { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 14px; transition: color .2s; }
.feed-act:hover.act-like, .feed-act.liked { color: var(--red-soft); }
.feed-act:hover.act-reply { color: #60a5fa; }
.feed-act:hover.act-vote { color: #4ade80; }
.feed-act:hover.act-share { color: var(--purple); }
.feed-views { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-dim); }
.feed-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 12px; }
.feed-tags span { color: var(--purple); font-size: 14px; cursor: pointer; }
.feed-tags span:hover { text-decoration: underline; }
.feed-loading { display: flex; align-items: center; justify-content: center; padding: 48px 0; color: var(--purple); }

/* ============================================================
   STUDIO
   ============================================================ */
.page-dark { min-height: calc(100vh - var(--st-bar-h)); background: var(--black); color: #fff; }
.studio-header { border-bottom: 1px solid var(--gray-mid); }
.studio-header-inner { max-width: 1280px; margin: 0 auto; padding: 24px; }
.studio-header-inner h1 { font-size: 30px; font-weight: 700; color: #fff; }
.studio-header-inner p { color: var(--text-muted); margin-top: 8px; }
.studio-wrap { max-width: 1280px; margin: 0 auto; padding: 24px; }
/* Full-screen tools (2026-10-04), as the Beat Maker has done since 09-26 (.bm-host): a page root marked st-app (the
   editors and the 3D scene, a workbench of panes) or st-dock (the AI tools pages, Create video and audio, the ad maker:
   a settings panel docked down the left) gets the whole window under the bar, and its panes scroll instead of the page.
   Below the breakpoints those pages stack as before, so phones and tablets keep the gutter. st-wide (the Image gallery)
   only drops the cap. The home pill moves off the docked panel; on a workbench it shrinks into the right end of the status
   line, the one spot no pane uses (floating, it covered the 3D camera timeline's buttons and the video tracks). */
@media (min-width: 1024px) {
  .studio-wrap:has(> #studio-body > .st-app) { max-width: none; padding: 0; }
  body:has(.st-app) .verse-home-pill { left: auto !important; right: 8px !important; bottom: 2px !important; height: 24px !important; min-width: 24px !important; border-radius: 12px !important; }
  body:has(.st-app) .verse-home-pill .vh-ic { width: 24px !important; height: 24px !important; }
  body:has(.st-app) .verse-home-pill .vh-ic svg { width: 14px !important; height: 14px !important; }
}
@media (min-width: 901px) {
  .studio-wrap:has(> #studio-body > .st-dock) { max-width: none; padding: 0; }
  body:has(.st-dock) .verse-home-pill { left: auto !important; right: 18px !important; bottom: 18px !important; }
}
.studio-wrap:has(> #studio-body > .st-wide) { max-width: none; }

/* Beat Maker loader frame (the DAW itself is studio-beat.css, where .daw.bm drops this frame) */
.daw { background: var(--black); border: 1px solid var(--gray-mid); border-radius: var(--radius); padding: 24px; }
.btn-play-active { background: #dc2626 !important; }
.btn-play-active:hover { background: #b91c1c !important; }
.btn-rec { border: 1px solid var(--red); color: var(--red); background: transparent; }
.btn-rec.recording { background: #dc2626; color: #fff; }
.slider-row { display: flex; align-items: center; gap: 12px; color: var(--text-muted); }
.slider-row .val { font-size: 14px; width: 32px; text-align: right; }
.tracks-title { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.track-row {
  display: flex; align-items: center; gap: 16px; padding: 12px;
  background: var(--gray-dark); border: 1px solid var(--gray-mid); border-radius: 4px;
  margin-bottom: 12px;
}
.track-row .slider-row { flex: 1; }
.track-toggle { min-width: 72px; }

/* NFT */
.stack-lg { display: flex; flex-direction: column; gap: 24px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.h2 { font-size: 24px; font-weight: 700; color: #fff; }
.grid-nft { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .grid-nft { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-nft { grid-template-columns: repeat(3, 1fr); } }
.nft-head-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nft-title-row { display: flex; align-items: center; gap: 8px; color: #fff; }
.nft-artist { color: var(--text-muted); margin-top: 6px; }
.nft-price-row { display: flex; align-items: center; justify-content: space-between; }
.nft-price { font-size: 24px; font-weight: 700; color: var(--purple); }
.nft-remaining { font-size: 14px; color: var(--text-muted); }
.progress { width: 100%; height: 8px; background: var(--gray-mid); border-radius: 9999px; overflow: hidden; }
.progress > div { height: 100%; background: var(--purple); border-radius: 9999px; transition: width .3s; }
.nft-date { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-muted); }
.nft-benefits h4 { color: #fff; font-weight: 500; margin-bottom: 8px; }
.nft-benefits ul { list-style: none; font-size: 14px; color: var(--text-muted); display: flex; flex-direction: column; gap: 4px; }
.nft-benefits li { display: flex; align-items: center; gap: 8px; }
.nft-benefits li .icon { color: var(--purple); }
.gated-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .gated-grid { grid-template-columns: repeat(3, 1fr); } }
.gated-tile { padding: 16px; background: var(--black); border: 1px solid var(--gray-mid); border-radius: 4px; }
.gated-tile .icon { margin-bottom: 8px; }
.gated-tile h3 { color: #fff; font-weight: 500; margin-bottom: 4px; }
.gated-tile p { color: var(--text-muted); font-size: 14px; }
.tc-yellow { color: var(--yellow); }
.tc-purple { color: var(--purple); }
.tc-blue { color: var(--blue); }
.tc-green { color: var(--green); }
.tc-red { color: var(--red); }

/* Analytics */
.stats-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .stats-grid { grid-template-columns: repeat(5, 1fr); } }
.stat-card { padding: 16px; display: flex; align-items: center; justify-content: space-between; }
.stat-card .label { color: var(--text-muted); font-size: 14px; }
.stat-card .value { font-size: 24px; font-weight: 700; color: #fff; }
.charts-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 1024px) { .charts-grid { grid-template-columns: repeat(2, 1fr); } }
.chart-box { width: 100%; }
.chart-box svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.chart-legend .key { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); }
.chart-legend .swatch { width: 10px; height: 10px; border-radius: 2px; }
.chart-panel-label { font-size: 11px; fill: var(--text-muted); font-weight: 600; letter-spacing: .04em; }
.tips-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .tips-grid { grid-template-columns: repeat(3, 1fr); } }
.tip-tile { padding: 16px; background: var(--black); border: 1px solid var(--gray-mid); border-radius: 4px; }
.tip-tile .icon { margin-bottom: 8px; }
.tip-tile h3 { color: #fff; font-weight: 500; margin-bottom: 8px; }
.tip-tile p { color: var(--text-muted); font-size: 14px; }

/* Lyric Studio */
.lyric-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 1024px) { .lyric-grid { grid-template-columns: 2fr 1fr; } }
.lyric-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lyric-textarea { min-height: 400px; font-size: 17px; line-height: 1.7; }
.lyric-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; flex-wrap: wrap; gap: 12px; }
.lyric-counts { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-muted); }
.sidebar-tools { display: flex; flex-direction: column; gap: 16px; }
.theme-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.suggestion {
  padding: 8px; background: var(--black); border: 1px solid var(--gray-mid); border-radius: 4px;
  cursor: pointer; transition: background-color .2s; font-size: 14px; color: var(--text-soft);
}
.suggestion:hover { background: var(--gray-mid); }
.collab-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.collab-avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--purple); display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--accent-ink); }
.collab-row span { font-size: 14px; color: var(--text-soft); }
.mt-12 { margin-top: 12px; }

/* ============================================================
   VIDEOS
   ============================================================ */
.videos-wrap { max-width: 1280px; margin: 0 auto; padding: 32px 24px; }
.videos-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; gap: 16px; flex-wrap: wrap; }
.videos-head h1 { font-size: 30px; font-weight: 700; margin-bottom: 8px; }
.videos-head p { color: var(--text-muted); }
.videos-filters { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
@media (min-width: 768px) { .videos-filters { flex-direction: row; } }
.search-wrap { position: relative; flex: 1; }
.search-wrap .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.search-wrap input { padding-left: 40px; background: var(--gray-dark); border-color: var(--gray-mid); }
.cat-row { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-btn { border: 1px solid var(--gray-mid); color: var(--text-muted); }
.cat-btn:hover { background: var(--gray-mid); }
.cat-btn.active { background: var(--purple); border-color: var(--purple); color: var(--accent-ink); }
.cat-btn.active:hover { background: var(--purple-dark); }
.grid-videos { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .grid-videos { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-videos { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .grid-videos { grid-template-columns: repeat(4, 1fr); } }
.video-card { overflow: hidden; cursor: pointer; transition: border-color .2s; }
.video-card:hover { border-color: var(--purple); }
.video-thumb { position: relative; aspect-ratio: 16/9; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; background: var(--gray-mid); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.video-card:hover .video-thumb img { transform: scale(1.05); }
.video-thumb .no-thumb { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.duration-pill { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,.8); color: #fff; font-size: 12px; padding: 4px 8px; border-radius: 4px; }
.video-thumb-hover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; transition: background-color .2s; }
.video-thumb-hover .icon { opacity: 0; transition: opacity .2s; }
.video-card:hover .video-thumb-hover { background: rgba(0,0,0,.3); }
.video-card:hover .video-thumb-hover .icon { opacity: 1; }
.video-body { padding: 16px; }
.video-title-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; gap: 8px; }
.video-title-row h3 { font-weight: 500; color: #fff; transition: color .2s;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.video-card:hover .video-title-row h3 { color: var(--purple-light); }
.video-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 12px;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.video-stats { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-muted); }
.video-stats .group { display: flex; align-items: center; gap: 12px; }
.video-stats .stat { display: flex; align-items: center; gap: 4px; }
.video-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 12px; }
.mb-12 { margin-bottom: 12px; }
.sk { background: var(--gray-dark); border-radius: 12px; padding: 16px; animation: pulse 2s cubic-bezier(0.4,0,0.6,1) infinite; }
.sk-thumb { aspect-ratio: 16/9; background: var(--gray-mid); border-radius: var(--radius); margin-bottom: 12px; }
.sk-line { height: 16px; background: var(--gray-mid); border-radius: 4px; margin-bottom: 8px; }
.sk-line.short { width: 66%; height: 12px; }
.videos-empty { text-align: center; padding: 48px 0; }
.videos-empty .icon { color: var(--text-muted); margin: 0 auto 16px; }
.videos-empty h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.videos-empty p { color: var(--text-muted); margin-bottom: 16px; }
.videos-tabs-content { margin-top: 24px; }

/* video detail */
.vd-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 1024px) { .vd-grid { grid-template-columns: 2fr 1fr; } }
.vd-player { aspect-ratio: 16/9; background: #000; border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
.vd-player video { width: 100%; height: 100%; }
.vd-info { display: flex; flex-direction: column; gap: 16px; }
.vd-info h1 { font-size: 24px; font-weight: 700; }
.vd-meta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.vd-meta { display: flex; align-items: center; gap: 16px; font-size: 14px; color: var(--text-muted); flex-wrap: wrap; }
.vd-meta .stat { display: flex; align-items: center; gap: 4px; }
.vd-actions { display: flex; align-items: center; gap: 8px; }
.btn-like-active { background: var(--purple) !important; border-color: var(--purple) !important; color: var(--accent-ink) !important; }
.vd-desc { background: var(--gray-dark); border-radius: var(--radius); padding: 16px; color: var(--text-soft); white-space: pre-wrap; }
.comment-item { border-bottom: 1px solid var(--gray-mid); padding-bottom: 16px; margin-bottom: 16px; }
.comment-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.comment-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 14px; color: var(--text-muted); }
.comment-item p { color: var(--text-soft); }
.comments-empty { color: var(--text-muted); text-align: center; padding: 32px 0; }
.comment-compose { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.comment-compose .btn { align-self: flex-start; }
.center-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.tag-chip-x { display: inline-flex; align-items: center; gap: 4px; }
.tag-chip-x button { display: flex; opacity: .8; }
.tag-chip-x button:hover { opacity: 1; }

/* ============================================================
   SUBSCRIPTION
   ============================================================ */
.page-radial { min-height: 100vh; background: radial-gradient(circle at 50% 0%, var(--gray-dark), var(--black) 70%); }
.sub-wrap { max-width: 1152px; margin: 0 auto; padding: 24px; }
.sub-title { text-align: center; margin: 24px 0 48px; }
.sub-title h1 { font-size: 36px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.grad-text { background: linear-gradient(to right, var(--purple), var(--purple-light)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub-title p { color: var(--text-muted); font-size: 18px; }
.plans-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) { .plans-grid { grid-template-columns: repeat(3, 1fr); } }
.plan-card { position: relative; text-align: center; }
.plan-card .card-header { padding-top: 32px; }
.plan-icon { color: var(--purple); margin: 0 auto 16px; }
.plan-name { font-size: 24px; font-weight: 600; color: #fff; }
.plan-price { font-size: 36px; font-weight: 700; color: var(--purple); margin-top: 6px; }
.plan-price .per { font-size: 16px; font-weight: 400; color: var(--text-muted); }
.plan-features { list-style: none; text-align: left; display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.plan-features li { display: flex; align-items: center; gap: 8px; color: var(--text-soft); font-size: 15px; }
.plan-features li .icon { color: var(--purple); flex-shrink: 0; }

/* ============================================================
   AUTH
   ============================================================ */
.auth-card { width: 100%; max-width: 448px; }
.auth-head { text-align: center; padding: 24px 24px 0; }
.auth-logo { height: 64px; width: 64px; margin: 0 auto 16px; border-radius: 12px; object-fit: cover; }
.auth-head h1 { font-size: 24px; font-weight: 700; color: #fff; }
.auth-head p { color: var(--text-muted); font-size: 14px; margin-top: 8px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--gray-mid); border-radius: 6px; padding: 4px; gap: 2px; margin-bottom: 16px; }
.auth-tabs .tab-trigger { color: #fff; }
.auth-tabs .tab-trigger.active { background: var(--purple); color: var(--accent-ink); }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-error { color: var(--red-soft); font-size: 14px; }
.auth-foot { text-align: center; color: var(--text-muted); font-size: 13px; margin-top: 16px; }
.auth-foot a { color: var(--purple-light); }

/* ---------- 404 (kept faithful to the original light page) ---------- */
.nf-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #f3f4f6; color: #111827; }
.nf-page h1 { font-size: 36px; font-weight: 700; margin-bottom: 16px; }
.nf-page p { font-size: 20px; color: #4b5563; margin-bottom: 16px; }
.nf-page a { color: #3b82f6; text-decoration: underline; }
.nf-page a:hover { color: #1d4ed8; }

/* ---------- misc utilities ---------- */
.hidden { display: none !important; }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.mt-16 { margin-top: 16px; }
.mb-24 { margin-bottom: 24px; }
.stack-16 { display: flex; flex-direction: column; gap: 16px; }
.stack-8 { display: flex; flex-direction: column; gap: 8px; }
.row-8 { display: flex; align-items: center; gap: 8px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- boot splash (shown until the backend check finishes) ---------- */
.boot { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: var(--text-muted); font-size: 14px; }
.boot h1 { font-size: 28px; font-weight: 700; background: linear-gradient(to right, var(--purple), var(--purple-dark)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.boot-spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--gray-mid); border-top-color: var(--purple); animation: spin .8s linear infinite; }

/* ---------- toast title + description (shadcn use-toast style) ---------- */
.toast-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.toast-desc { font-weight: 400; font-size: 12.5px; color: var(--text-muted); }

/* ---------- subscription: current plan (Subscription.tsx) ---------- */
.sub-current { border-color: var(--purple); margin-bottom: 32px; }
.sub-current-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.plan-card.current { box-shadow: 0 0 0 2px var(--purple); }
.plan-current-badge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); }

/* ---------- Studio › AI Music ---------- */
.mg-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
@media (min-width: 1024px) { .mg-grid { grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr); } }
.mg-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-soft); margin-bottom: 6px; }
.mg-label-val { font-weight: 500; color: var(--purple-light); margin-left: 6px; font-variant-numeric: tabular-nums; }
.mg-prompt { min-height: 96px; font-size: 15px; }
.mg-ideas { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mg-ideas .badge { cursor: pointer; font-weight: 400; }
.mg-ideas .badge:hover { border-color: var(--purple); color: var(--purple-light); }
.mg-row { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.mg-field { flex: 1 1 180px; min-width: 0; }
.mg-field select.input { appearance: none; -webkit-appearance: none; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.mg-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; user-select: none; padding-bottom: 9px; }
.mg-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.mg-switch-track { position: relative; width: 40px; height: 22px; border-radius: 999px; background: var(--gray-light); transition: background .2s; flex-shrink: 0; }
.mg-switch-thumb { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.mg-switch input:checked + .mg-switch-track { background: var(--purple); }
.mg-switch input:checked + .mg-switch-track .mg-switch-thumb { transform: translateX(18px); }
.mg-switch input:focus-visible + .mg-switch-track { outline: 2px solid var(--purple-light); outline-offset: 2px; }
.mg-advanced { border: 1px solid var(--gray-mid); border-radius: var(--radius); padding: 0 14px; }
.mg-advanced summary { cursor: pointer; padding: 12px 0; font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 8px; list-style: none; }
.mg-advanced summary::-webkit-details-marker { display: none; }
.mg-advanced summary::after { content: ''; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted); transform: rotate(45deg); transition: transform .2s; }
.mg-advanced[open] summary::after { transform: rotate(-135deg); }
.mg-adv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; padding-bottom: 14px; }
.mg-submit { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 4px; }
.mg-price { display: flex; flex-direction: column; gap: 2px; }
.mg-price strong { font-size: 20px; color: var(--purple-light); font-variant-numeric: tabular-nums; }
.mg-price span { font-size: 13px; }
.mg-error { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--radius); background: rgba(239, 68, 68, .12); border: 1px solid rgba(239, 68, 68, .35); color: var(--red-soft); font-size: 14px; }
.mg-error a { color: #fff; font-weight: 600; }
.mg-status { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-muted); }
.mg-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-dim); flex-shrink: 0; }
.mg-status-on .mg-dot { background: var(--green); box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
.mg-status-busy .mg-dot { background: var(--yellow); animation: pulse 1.6s infinite; }
.mg-status-off .mg-dot { background: var(--red); }
.mg-progress { position: relative; height: 8px; border-radius: 999px; background: var(--gray-mid); overflow: hidden; margin-top: 14px; }
.mg-progress > div { position: absolute; top: 0; bottom: 0; width: 40%; border-radius: 999px; background: linear-gradient(90deg, var(--purple-dark), var(--purple), var(--purple-light)); animation: mg-slide 1.6s ease-in-out infinite; }
@keyframes mg-slide { 0% { left: -40%; } 100% { left: 100%; } }
.mg-progress-card { border-color: var(--purple-dark); }
.mg-result { border-color: var(--purple); }
.mg-gate { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 32px 24px; }
.mg-gate h3 { font-size: 18px; }
.mg-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 24px 8px; color: var(--text-muted); font-size: 14px; }
.mg-list { display: flex; flex-direction: column; gap: 12px; }
.mg-track { border: 1px solid var(--gray-mid); border-radius: var(--radius); padding: 12px; background: var(--black); }
.mg-track-featured { border-color: var(--purple-dark); }
.mg-track-head { display: flex; align-items: center; gap: 10px; }
.mg-track-play { width: 36px; height: 36px; border-radius: 50%; background: var(--purple); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .2s; }
.mg-track-play:hover { background: var(--purple-light); color: var(--black); }
.mg-track-title { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.mg-track-title strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mg-track-title span { font-size: 12px; }
.mg-track-actions { display: flex; gap: 6px; flex-shrink: 0; }
.mg-track-actions .btn-icon { padding: 6px; }
.mg-audio { width: 100%; margin-top: 12px; height: 40px; }
.mg-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mg-meta .badge { font-weight: 400; font-size: 11.5px; }
.mg-track-prompt { margin-top: 8px; font-size: 13px; color: var(--text-muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mg-track-featured .mg-track-prompt { -webkit-line-clamp: unset; }
@media (max-width: 639px) {
  .mg-track-head { flex-wrap: wrap; }
  .mg-track-actions { width: 100%; justify-content: flex-end; }
  .mg-submit .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .mg-progress > div { animation: none; width: 100%; left: 0; opacity: .6; } }

/* ============================================================
   HOME — live data (albums, songs, Fan Hub, videos) + empty state
   The sleeve is the identity: a two-tone vinyl cover drawn from
   each title, so real releases fill the page with distinct art.
   ============================================================ */
.sleeve-svg { display: block; width: 100%; height: 100%; }
.hm-panel { background: var(--gray-dark); border: 1px solid var(--gray-mid); border-radius: 12px; padding: 20px 24px; }
.hm-panel p { color: var(--text-soft); margin-bottom: 12px; max-width: 60ch; }
.hm-hint { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hm-hint p { margin: 0; }
.hm-error h2 { font-size: 18px; margin-bottom: 6px; }
.hm-count { font-size: 13px; color: var(--text-muted); }
.hm-note { color: var(--text-muted); font-size: 13px; margin: 12px 0 6px; }

/* hero: the newest release as a sleeve beside its details */
.hm-hero { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: 28px; align-items: end; margin-bottom: 40px; padding: 24px; border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-soft), rgba(26,26,26,.6) 55%, var(--gray-dark)); border: 1px solid var(--gray-mid); }
.hm-hero-sleeve { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; box-shadow: 0 24px 48px rgba(0,0,0,.55), 0 2px 0 rgba(255,255,255,.06) inset; }
.hm-hero-sleeve img { width: 100%; height: 100%; object-fit: cover; }
.hm-hero-sleeve .sleeve-disc { transition: transform .6s cubic-bezier(.2,.8,.2,1); transform-origin: 60px 50px; }
.hm-hero:hover .hm-hero-sleeve .sleeve-disc { transform: translateX(6px) rotate(18deg); }
.hm-hero-body .kicker { font-size: 13px; font-weight: 500; color: var(--purple-light); display: block; margin-bottom: 6px; }
.hm-hero-body h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; margin-bottom: 10px; }
.hm-hero-by { color: var(--text-soft); margin-bottom: 8px; }
.hm-hero-desc { color: var(--text-muted); max-width: 60ch; margin-bottom: 16px; }
.hm-hero .hero-actions { margin-top: 16px; }

/* your studio strip */
.hm-mine-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 18px; background: var(--gray-dark); border: 1px solid var(--gray-mid); border-radius: 12px; }
.hm-mine-sum { color: var(--text-soft); margin: 0; }
.hm-mine-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* releases: sleeves in a row */
.hm-sleeves { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (min-width: 640px) { .hm-sleeves { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .hm-sleeves { grid-template-columns: repeat(5, 1fr); } }
.hm-sleeve-card { text-align: left; padding: 0; border-radius: 10px; }
.hm-sleeve-card:focus-visible { outline: 2px solid var(--purple); outline-offset: 4px; }
.hm-sleeve { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; margin-bottom: 10px; box-shadow: 0 10px 24px rgba(0,0,0,.45); }
.hm-sleeve img { width: 100%; height: 100%; object-fit: cover; }
.hm-sleeve-play { position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 50%; background: var(--purple); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.hm-sleeve-card:hover .hm-sleeve-play, .hm-sleeve-card:focus-visible .hm-sleeve-play { opacity: 1; transform: none; }
.hm-sleeve-card h3 { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-sleeve-card p { font-size: 13px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* tracklist rows */
.hm-tracks { list-style: none; display: flex; flex-direction: column; border-top: 1px solid var(--gray-mid); }
.hm-track { display: grid; grid-template-columns: 36px 44px 1fr auto auto 32px; gap: 12px; align-items: center; padding: 8px 6px; border-bottom: 1px solid var(--gray-mid); }
.hm-track-share { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.hm-track-share:hover, .hm-track-share:focus-visible { background: var(--gray-mid); color: #fff; outline: none; }
.hm-track:hover { background: rgba(42,42,42,.4); }
.hm-track-play { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-soft); background: var(--gray-mid); }
.hm-track-play:hover, .hm-track-play:focus-visible { background: var(--purple); color: var(--accent-ink); outline: none; }
.hm-track-sleeve { width: 44px; height: 44px; border-radius: 6px; overflow: hidden; }
.hm-track-sleeve img { width: 100%; height: 100%; object-fit: cover; }
.hm-track-main { min-width: 0; display: flex; flex-direction: column; }
.hm-track-title { font-weight: 500; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-track-sub { font-size: 13px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-track-dur { font-size: 13px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.hm-track-ago { font-size: 12px; color: var(--text-dim); }
@media (max-width: 639px) { .hm-track { grid-template-columns: 36px 1fr auto 32px; } .hm-track-sleeve, .hm-track-ago { display: none; } }

/* fan + video rows reuse the feed and video cards */
.hm-feed { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 1024px) { .hm-feed { grid-template-columns: repeat(3, 1fr); } }
.hm-feed .feed-card { border: 1px solid var(--gray-mid); border-radius: 12px; }
.hm-videos { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .hm-videos { grid-template-columns: repeat(3, 1fr); } }

/* empty state: an unfilled sleeve and one invitation */
.hm-empty { display: grid; grid-template-columns: minmax(160px, 240px) 1fr; gap: 32px; align-items: center; padding: 40px 32px; border-radius: 14px; border: 1px solid var(--gray-mid); background: var(--gray-dark); margin: 24px 0 48px; }
.hm-empty-sleeve { aspect-ratio: 1; border-radius: 8px; border: 2px dashed var(--border-soft); display: flex; align-items: center; justify-content: center; }
.hm-empty-disc { width: 62%; aspect-ratio: 1; border-radius: 50%; border: 2px dashed var(--border-soft); position: relative; }
.hm-empty-disc::after { content: ''; position: absolute; inset: 36%; border-radius: 50%; border: 2px dashed var(--border-soft); }
.hm-empty-body h1 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.hm-empty-body p { color: var(--text-soft); max-width: 58ch; margin-bottom: 18px; }
.hm-empty-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.hm-empty-hint { font-size: 13px; color: var(--text-muted); margin: 0 !important; }
@media (max-width: 639px) { .hm-hero, .hm-empty { grid-template-columns: 1fr; } .hm-hero-sleeve { max-width: 220px; } .hm-empty-sleeve { max-width: 160px; } }

/* loading skeleton */
.hm-skel-hero { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: center; margin-bottom: 40px; }
.hm-skel-sleeve { aspect-ratio: 1; border-radius: 8px; background: var(--gray-mid); }
.hm-skel-sleeve.sm { width: 100%; }
.hm-skel-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.hm-skel-line { height: 14px; border-radius: 7px; background: var(--gray-mid); margin-bottom: 12px; }
.hm-skel-line.tall { height: 34px; }
.hm-skel-line.w40 { width: 40%; } .hm-skel-line.w50 { width: 50%; } .hm-skel-line.w70 { width: 70%; }
.hm-skel-sleeve, .hm-skel-line { animation: hm-pulse 1.4s ease-in-out infinite; }
@keyframes hm-pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hm-skel-sleeve, .hm-skel-line { animation: none; } .hm-hero-sleeve .sleeve-disc, .hm-sleeve-play { transition: none; } }
@media (max-width: 639px) { .hm-skel-hero { grid-template-columns: 1fr; } .hm-skel-row { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Studio > Albums ---------- */
.al-wrap { display: flex; flex-direction: column; gap: 20px; }
.al-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.al-head h2 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.al-head p { max-width: 60ch; }
.al-gate .card-content h3 { font-size: 18px; margin-bottom: 8px; }
.al-gate .card-content p { margin-bottom: 14px; }
.al-error { color: var(--red-soft); font-size: 13px; margin: 8px 0 0; }
.al-empty p { margin: 0; }
.al-label { display: block; font-size: 13px; color: var(--text-soft); margin: 14px 0 6px; }
.al-editor h3 { font-size: 18px; font-weight: 700; }
.al-cover-row { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: start; margin-top: 8px; }
.al-cover-preview { aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--gray-mid); }
.al-cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.al-small { font-size: 12px; margin-top: 6px; }
.al-track-list { list-style: none; display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow-y: auto; padding-right: 4px; }
.al-track { display: grid; grid-template-columns: 20px 28px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--gray-mid); border-radius: 8px; cursor: pointer; }
.al-track.on { border-color: var(--purple); background: var(--accent-wash); }
.al-track input { accent-color: var(--purple); }
.al-track-pos { font-size: 12px; color: var(--purple-light); font-variant-numeric: tabular-nums; }
.al-track-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.al-track-dur { font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.al-check { display: flex; align-items: center; gap: 8px; margin: 16px 0 4px; color: var(--text-soft); font-size: 14px; cursor: pointer; }
.al-check input { accent-color: var(--purple); }
.al-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.al-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .al-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .al-grid { grid-template-columns: repeat(3, 1fr); } }
.al-card { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 14px; background: var(--gray-dark); border: 1px solid var(--gray-mid); border-radius: 12px; }
.al-card-sleeve { aspect-ratio: 1; border-radius: 8px; overflow: hidden; }
.al-card-sleeve img { width: 100%; height: 100%; object-fit: cover; }
.al-card-body h3 { font-size: 16px; font-weight: 600; margin-bottom: 2px; }
.al-card-body p { font-size: 13px; margin-bottom: 8px; }
.al-card-actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.link-btn { color: var(--purple-light); text-decoration: underline; padding: 0; }

/* ---------- Share sheet (Verse Social, Verse Social Videos, outside networks) ---------- */
.sh-modal { max-width: 560px; }
.sh-sub { font-size: 13px; color: var(--text-muted); margin-top: 2px; max-width: 42ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-body { gap: 18px; }
.sh-section { display: flex; flex-direction: column; gap: 8px; }
.sh-h { font-size: 12px; text-transform: none; letter-spacing: 0; color: var(--purple-light); font-weight: 700; border-bottom: 1px solid var(--gray-mid); padding-bottom: 6px; margin-bottom: 4px; }
.sh-h-gap { margin-top: 14px; }
.sh-hint { font-size: 12.5px; margin: -4px 0 4px; }
.sh-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-soft); cursor: pointer; }
.sh-check input { accent-color: var(--purple); }
.sh-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.sh-done { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-size: 13.5px; font-weight: 600; }
.sh-error { color: var(--red-soft); font-size: 13px; margin: 0; }
.sh-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sh-nets { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.sh-net { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid var(--gray-mid); border-radius: 10px; background: rgba(42,42,42,.3); color: var(--text); font-size: 13px; text-align: left; }
.sh-net:hover, .sh-net:focus-visible { border-color: var(--purple); background: var(--accent-soft); outline: none; }
.sh-mark { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; background: var(--gray-mid); color: #fff; font-weight: 700; font-size: 12px; letter-spacing: 0; }
.sh-mark-facebook { background: #1877f2; } .sh-mark-x { background: #000; border: 1px solid var(--gray-light); } .sh-mark-linkedin { background: #0a66c2; }
.sh-mark-pinterest { background: #e60023; } .sh-mark-reddit { background: #ff4500; } .sh-mark-whatsapp { background: #25d366; color: #0b2a12; }
.sh-mark-telegram { background: #229ed9; } .sh-mark-email { background: var(--gray-light); } .sh-mark-instagram { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); font-size: 10.5px; }
.sh-link { margin: 4px 0 0; font-size: 12px; color: var(--text-muted); word-break: break-all; }
.sh-link code { font-family: Consolas, "SFMono-Regular", Menlo, monospace; background: rgba(255,255,255,.06); padding: 2px 6px; border-radius: 6px; }
.sh-note { margin: 0; font-size: 12.5px; color: var(--yellow); }
@media (max-width: 480px) { .sh-grid2 { grid-template-columns: 1fr; } }
.feed-card-flash { animation: feed-flash 3.2s ease-out; }
@keyframes feed-flash { 0% { background: var(--accent-tint); } 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .feed-card-flash { animation: none; background: var(--accent-soft); } }

/* ---------- Studio top bar (replaces the left tool rail at >= 1024px) ---------- */
.st-bar { position: sticky; top: 0; z-index: 60; height: var(--st-bar-h); background: var(--black); border-bottom: 1px solid var(--gray-mid); }
.st-bar-inner { display: flex; align-items: center; gap: 12px; height: var(--st-bar-h); max-width: 1440px; margin: 0 auto; padding: 0 24px; }
.st-wordmark { font-size: 15px; font-weight: 600; white-space: nowrap; }
.st-menu { display: none; padding: 6px; border-radius: 6px; color: var(--text-muted); }
/* No overflow clipping here: the Edit / Make / Library menus hang below the bar from inside this nav, so
   `overflow: hidden` cut them off at the bar's edge, and focusing a menu item scrolled the nav's own labels
   out of sight. The nav fits from 1024 px up (below that it becomes the drawer), so nothing needs clipping. */
.st-nav { display: flex; align-items: center; gap: 2px; }
/* .st-nav-item, not .nav-item: the music sidebar's .nav-item (12px padding, 8px radius, grey hover block)
   would otherwise round the ends of the 2px active underline and paint a block on hover. */
.st-nav .st-nav-item, .st-menu-btn {
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  height: var(--st-bar-h); padding: 0 12px; font-size: 14px; line-height: 1.5; color: var(--text-muted);
  background: none; border-radius: 0; width: auto;
  border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.st-nav .st-nav-item:hover, .st-menu-btn:hover { color: var(--text); }
.st-nav .st-nav-item.active, .st-menu-btn.active { color: var(--text); border-bottom-color: var(--accent); }
.st-nav .st-nav-item:focus-visible, .st-menu-btn:focus-visible, .st-wordmark:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.st-bar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
/* Tutorials sits with the account controls, where help lives: it is navigation, not one more creative tool. It is drawn
   like a bar item (bar height, the 2px accent underline when you are there). From 1024 to 1099 px the bar has room for
   the icon only, so the word is clipped but stays the button's name; below 1024 px the drawer carries the entry. */
.st-help { position: relative; display: inline-flex; align-items: center; gap: 6px; height: var(--st-bar-h); padding: 0 10px; margin-right: 4px;
  font-size: 14px; line-height: 1.5; color: var(--text-muted); white-space: nowrap; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.st-help:hover { color: var(--text); }
.st-help.active { color: var(--text); border-bottom-color: var(--accent); }
.st-help:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (max-width: 1099px) { .st-help .st-help-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
@media (max-width: 1023px) { .st-help { display: none; } }
.st-balance { font-size: 13px; color: var(--text-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-avatar { width: 28px; height: 28px; border-radius: 999px; background: var(--gray-light); color: var(--text); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.st-menu-wrap { position: relative; }
/* The popover hangs off the bar, not over it: the wrap is bar-height, so this clears the active underline. */
.st-pop { position: absolute; top: var(--st-bar-h); left: 0; min-width: 190px; padding: 6px; z-index: 70;
  background: var(--gray-dark); border: 1px solid var(--gray-mid); border-radius: 10px; }
.st-pop-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border-radius: 6px; font-size: 14px; color: var(--text-soft); text-align: left; }
.st-pop-item:hover { background: var(--gray-mid); color: var(--text); }
.st-pop-item:focus-visible { background: var(--gray-mid); color: var(--text); outline: 2px solid var(--accent); outline-offset: -2px; }
/* ---------- drawer (one for every route, rendered by the bar) ---------- */
.st-drawer-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 80; }
.st-drawer-overlay.open { display: block; }
/* visibility (not just the transform) keeps the closed drawer out of the tab order at every route and width. */
.st-drawer { position: fixed; top: 0; left: 0; bottom: 0; width: 272px; max-width: 86vw; z-index: 90;
  background: var(--gray-dark); border-right: 1px solid var(--gray-mid); padding: 16px; overflow-y: auto;
  transform: translateX(-100%); visibility: hidden; transition: transform .2s ease, visibility .2s ease; }
.st-drawer.open { transform: none; visibility: visible; }
.st-drawer-group { padding: 8px 0; border-top: 1px solid var(--gray-mid); }
.st-drawer-group:first-child { border-top: 0; }
.st-drawer-label { font-size: 12px; color: var(--text-muted); padding: 0 8px 4px; }
.st-drawer .st-nav-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px; border-radius: 6px; font-size: 14px; color: var(--text-soft); text-align: left; }
.st-drawer .st-nav-item:hover { color: var(--text); }
.st-drawer .st-nav-item.active { background: var(--accent-soft); color: var(--text); }
@media (max-width: 1023px) {
  .st-nav, .st-menu-wrap { display: none; }
  .st-menu { display: inline-flex; }
  .st-bar-inner { padding: 0 16px; gap: 8px; }
}
/* The spec keeps the balance in the bar at every width: the coin icon goes, the number stays. */
@media (max-width: 400px) { .st-bar-inner { padding: 0 12px; } .st-balance .icon { display: none; } }
@media (prefers-reduced-motion: reduce) { .st-drawer { transition: none; } }

