/* ================================ Pages ================================== */
.boot { min-height: 60vh; display: grid; place-items: center; }
.boot .brand-mark { width: 54px; height: 54px; animation: pulse 1.6s ease-in-out infinite; }
.mobile-only { display: none; }
@media (max-width: 720px) { .mobile-only { display: inline-grid; } .hide-mobile { display: none !important; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.eyebrow { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ember); }
.avatar-xl { width: 96px; height: 96px; font-size: 36px; }
.prose { color: var(--text-2); line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Hero */
.hero { position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: 340px; display: flex; align-items: flex-end; margin-bottom: var(--s-4); background: radial-gradient(900px 380px at 15% -10%, rgba(255,90,54,.35), transparent 60%), radial-gradient(700px 380px at 95% 120%, rgba(139,108,255,.35), transparent 60%), var(--surface); border: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.35; filter: blur(2px) saturate(120%); transform: scale(1.05); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(9,9,14,.6) 55%, rgba(9,9,14,.1) 100%); }
[data-theme="light"] .hero::after { background: linear-gradient(90deg, var(--bg) 0%, rgba(246,245,249,.75) 55%, rgba(246,245,249,.2) 100%); }
.hero-inner { position: relative; z-index: 1; display: flex; gap: var(--s-8); align-items: flex-end; padding: var(--s-10); width: 100%; }
.hero-art { width: 220px; flex: none; border-radius: var(--r-lg); box-shadow: var(--shadow-3); }
.hero-copy { position: relative; z-index: 1; max-width: 720px; }
.hero-empty .hero-copy { padding: var(--s-12) var(--s-10); }
.hero-title { font-size: var(--fs-4xl); font-weight: 800; letter-spacing: -0.03em; margin-top: var(--s-3); }
.hero-sub { font-size: var(--fs-lg); color: var(--text-2); margin-top: var(--s-3); max-width: 620px; }
@media (max-width: 720px) {
  .hero-inner { flex-direction: column; align-items: flex-start; padding: var(--s-6); gap: var(--s-4); }
  .hero-art { width: 120px; }
  .hero-empty .hero-copy { padding: var(--s-8) var(--s-6); }
}

.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--s-3); }
.category-tile { position: relative; overflow: hidden; height: 96px; border-radius: var(--r-md); padding: var(--s-4); display: flex; flex-direction: column; justify-content: space-between; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, hsl(var(--hue, 250) 65% 40%), hsl(calc(var(--hue, 250) + 40) 70% 26%)); text-shadow: 0 1px 2px rgb(0 0 0 / 0.35); transition: transform var(--t-med) var(--ease); }
.category-tile small { font-weight: 500; opacity: 0.9; font-size: var(--fs-xs); }
.category-tile:hover { transform: translateY(-2px); color: #fff; }
.ep-list.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-6); }
@media (max-width: 960px) { .ep-list.two-col { grid-template-columns: 1fr; } }
.search-hero input { height: 54px; font-size: var(--fs-lg); border-radius: var(--r-pill); padding: 0 var(--s-6); }
.creator-chip { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4) var(--s-3) var(--s-3); border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); }
.playlist-art { display: grid; place-items: center; background: var(--gradient-brand); color: #fff; }
.playlist-art svg { width: 44px; height: 44px; }

/* Channel page */
.channel-page { padding-bottom: var(--s-16); }
.channel-hero { position: relative; padding: 0 var(--s-8); }
.channel-cover { height: 260px; margin: 0 calc(-1 * var(--s-8)); background-size: cover; background-position: center; position: relative; }
.channel-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.channel-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,9,14,0) 30%, var(--bg) 100%); }
[data-theme="light"] .channel-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.channel-cover::after { background: linear-gradient(180deg, rgba(246,245,249,0) 30%, var(--bg) 100%); }
.channel-head { display: flex; gap: var(--s-6); align-items: flex-end; margin-top: -110px; position: relative; z-index: 1; max-width: var(--content-max); margin-left: auto; margin-right: auto; }
.channel-logo { width: 180px; border-radius: var(--r-lg); box-shadow: var(--shadow-3); border: 4px solid var(--bg); }
.channel-id { min-width: 0; padding-bottom: var(--s-2); }
.channel-name { font-size: var(--fs-4xl); font-weight: 800; letter-spacing: -0.03em; margin-top: var(--s-2); }
.channel-tagline { color: var(--text-2); font-size: var(--fs-lg); margin-top: var(--s-2); }
.channel-owner { display: inline-flex; align-items: center; gap: var(--s-2); margin-top: var(--s-3); font-weight: 600; font-size: var(--fs-sm); }
.channel-stats { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-2); font-size: var(--fs-sm); color: var(--text-3); }
.channel-stats strong { color: var(--text); }
.channel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); max-width: var(--content-max); margin: var(--s-6) auto 0; }
.channel-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s-8); max-width: var(--content-max); margin: var(--s-6) auto 0; padding: 0 var(--s-8); }
.channel-side { position: sticky; top: calc(var(--topbar-h) + var(--s-4)); align-self: start; }
@media (max-width: 1100px) { .channel-body { grid-template-columns: minmax(0, 1fr); } .channel-side { position: static; } }
.channel-main, .channel-side { min-width: 0; }
@media (max-width: 720px) {
  .channel-hero { padding: 0 var(--s-4); }
  .channel-cover { height: 160px; margin: 0 calc(-1 * var(--s-4)); }
  .channel-head { flex-direction: column; align-items: flex-start; margin-top: -70px; gap: var(--s-3); }
  .channel-logo { width: 112px; }
  .channel-body { padding: 0 var(--s-4); }
}
.now-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-6); margin-bottom: var(--s-6); position: relative; overflow: hidden; }
.now-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--gradient-brand); }
.now-head { display: flex; align-items: center; gap: var(--s-3); }
.now-title { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 700; margin-top: var(--s-3); letter-spacing: -0.02em; }
.now-progress { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-4); }
.now-bar { flex: 1; height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.now-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--onair), var(--ember)); border-radius: inherit; transition: width 1s linear; }
.now-next { display: flex; flex-direction: column; gap: 2px; margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.guide { list-style: none; margin: 0; padding: 0; }
.guide-item { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-3) var(--s-2); border-bottom: 1px solid var(--line); }
.guide-item.is-now { background: var(--ember-soft); border-radius: var(--r-md); border-bottom-color: transparent; }
.guide-time { width: 72px; color: var(--text-3); font-size: var(--fs-sm); flex: none; }
.guide-title { font-weight: 600; }
.about-text { white-space: pre-wrap; color: var(--text-2); line-height: 1.7; max-width: 760px; }
.about-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--s-4); }
.about-meta > div { display: flex; flex-direction: column; gap: 4px; }

/* Live stage */
.live-stage { border-radius: var(--r-lg); overflow: hidden; background: #050508; margin-bottom: var(--s-6); border: 1px solid var(--line); }
.stage-grid { display: grid; gap: 4px; padding: 4px; }
.stage-grid.n1 { grid-template-columns: 1fr; }
.stage-grid.n2 { grid-template-columns: 1fr 1fr; }
.stage-grid.n3, .stage-grid.n4 { grid-template-columns: 1fr 1fr; }
.stage-grid.audio-only { min-height: 220px; place-items: center; }
.stage-tile { position: relative; background: #000; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16 / 9; }
.stage-tile.is-screen { grid-column: 1 / -1; }
.stage-tile video { width: 100%; height: 100%; object-fit: contain; }
.stage-name { position: absolute; left: 10px; bottom: 10px; padding: 3px 10px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: var(--fs-xs); font-weight: 600; }
.stage-audio { display: flex; flex-direction: column; align-items: center; gap: var(--s-4); padding: var(--s-10); color: #fff; }
.stage-pulse { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: var(--gradient-brand); box-shadow: 0 0 0 0 rgba(255,45,85,.5); animation: ring 2s infinite; }
.stage-pulse svg { width: 40px; height: 40px; }

/* Chat */
.chat-panel { display: flex; flex-direction: column; height: min(640px, calc(100vh - var(--topbar-h) - var(--player-h) - 48px)); min-height: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: var(--s-4); border-bottom: 1px solid var(--line); }
.chat-list { flex: 1; overflow-y: auto; padding: var(--s-3); display: flex; flex-direction: column; gap: 2px; }
.chat-msg { display: flex; gap: var(--s-3); padding: 6px var(--s-2); border-radius: var(--r-sm); position: relative; }
.chat-msg:hover { background: var(--surface-2); }
.chat-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.chat-name { font-weight: 600; font-size: var(--fs-sm); }
.chat-body { font-size: var(--fs-sm); color: var(--text-2); overflow-wrap: anywhere; white-space: pre-wrap; }
.chat-badge { font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 1px 6px; border-radius: 4px; background: var(--surface-3); color: var(--text-2); }
.chat-badge-host { background: var(--ember); color: #fff; }
.chat-badge-mod { background: var(--violet); color: #fff; }
.chat-badge-member { background: var(--amber-soft); color: var(--amber); }
.chat-more { opacity: 0; color: var(--text-3); width: 26px; height: 26px; display: grid; place-items: center; border-radius: 6px; flex: none; }
.chat-more svg { width: 16px; height: 16px; }
.chat-msg:hover .chat-more, .chat-more:focus-visible { opacity: 1; }
.chat-form { display: flex; gap: var(--s-2); padding: var(--s-3); border-top: 1px solid var(--line); }
.chat-form .input { min-height: 40px; border-radius: var(--r-pill); }
.chat-empty { text-align: center; padding: var(--s-8) var(--s-4); }
.chat-panel > .btn { margin: var(--s-3); width: auto; }

/* Episode page */
.episode-hero { display: flex; gap: var(--s-8); align-items: flex-end; margin-bottom: var(--s-6); }
.episode-art { width: 240px; border-radius: var(--r-lg); box-shadow: var(--shadow-3); }
.episode-body { display: flex; gap: var(--s-8); }
@media (max-width: 720px) { .episode-hero { flex-direction: column; align-items: flex-start; } .episode-art { width: 160px; } }
.chapters { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.chapter { display: flex; gap: var(--s-4); width: 100%; text-align: left; padding: var(--s-3); border-radius: var(--r-sm); }
.chapter:hover { background: var(--surface); }
.transcript summary { cursor: pointer; list-style: none; }
.transcript summary::-webkit-details-marker { display: none; }
.comment-compose { display: flex; gap: var(--s-3); align-items: flex-start; margin-bottom: var(--s-6); }
.comments { display: flex; flex-direction: column; gap: var(--s-4); }
.comment { display: flex; gap: var(--s-3); }
.comment.pinned { background: var(--ember-soft); padding: var(--s-3); border-radius: var(--r-md); }
.comment.hidden-comment { opacity: 0.6; }
.comment-body { margin: 4px 0; color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; font-size: var(--fs-sm); }
.replies { margin-top: var(--s-2); display: flex; flex-direction: column; gap: var(--s-3); }
.btn.is-active { color: var(--ember); }

/* Plans */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s-4); }
.plan-card { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-6); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); position: relative; }
.plan-card.featured { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--gradient-brand) border-box; border: 1.5px solid transparent; }
.plan-name { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: var(--fs-lg); }
.plan-price { font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; letter-spacing: -0.02em; }
.plan-price span { font-size: var(--fs-sm); font-weight: 500; color: var(--text-3); margin-left: 4px; }
.plan-benefits { list-style: none; margin: 0 0 var(--s-2); padding: 0; display: flex; flex-direction: column; gap: var(--s-2); flex: 1; font-size: var(--fs-sm); color: var(--text-2); }
.plan-benefits li { display: flex; gap: var(--s-2); align-items: flex-start; }
.plan-benefits svg { width: 16px; height: 16px; color: var(--mint); flex: none; margin-top: 3px; }
.pricing .plan-grid { max-width: 1080px; margin: 0 auto; }

/* Subscriptions */
.sub-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--s-4); }
.sub-card { display: flex; gap: var(--s-4); align-items: center; padding: var(--s-4); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.sub-card .art { width: 64px; }

/* Notifications */
.notif-panel { width: min(380px, calc(100vw - 16px)); max-height: 70vh; overflow-y: auto; padding: 8px; }
.notif-item { display: flex; gap: var(--s-3); width: 100%; padding: 10px; border-radius: var(--r-sm); align-items: flex-start; }
.notif-item:hover { background: var(--surface-3); }
.notif-item.unread { background: var(--violet-soft); }
.notif-icon { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; flex: none; color: var(--ember); }
.notif-icon svg { width: 18px; height: 18px; }
.notif-page { display: flex; flex-direction: column; gap: 4px; max-width: 760px; }

/* Auth */
.auth-wrap { display: grid; grid-template-columns: minmax(0, 520px) 1fr; gap: var(--s-8); align-items: stretch; min-height: calc(100vh - var(--topbar-h) - 64px); }
.auth-card { align-self: center; width: 100%; max-width: 460px; margin: 0 auto; padding: var(--s-10) var(--s-8); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-2); }
.auth-title { font-size: var(--fs-2xl); text-align: center; }
.auth-sub { text-align: center; color: var(--text-3); margin: var(--s-2) 0 var(--s-6); font-size: var(--fs-sm); }
.auth-foot { text-align: center; margin-top: var(--s-6); font-size: var(--fs-sm); color: var(--text-3); }
.auth-card form .alert { margin-bottom: var(--s-4); }
.role-toggle { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
.role-toggle button { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; }
.role-toggle svg { width: 16px; height: 16px; }
.auth-art { position: relative; border-radius: var(--r-xl); overflow: hidden; background: radial-gradient(700px 500px at 30% 20%, rgba(255,90,54,.55), transparent 60%), radial-gradient(600px 500px at 80% 90%, rgba(139,108,255,.55), transparent 60%), #0d0d14; display: flex; align-items: flex-end; padding: var(--s-10); }
.auth-art-copy { position: relative; color: #fff; max-width: 420px; }
.auth-art-copy p { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 700; margin-top: var(--s-3); line-height: 1.25; }
@media (max-width: 960px) { .auth-wrap { grid-template-columns: 1fr; } .auth-art { display: none; } .auth-card { padding: var(--s-8) var(--s-5); } }
.totp-setup { display: flex; flex-direction: column; gap: var(--s-4); }
.totp-qr { width: 220px; height: 220px; background: #fff; padding: 10px; border-radius: var(--r-md); align-self: center; }
.totp-secret { display: block; margin-top: var(--s-2); padding: var(--s-3); background: var(--surface-2); border-radius: var(--r-sm); word-break: break-all; }
.creator-cta { max-width: 640px; }
.profile-hero { display: flex; gap: var(--s-6); align-items: center; margin-bottom: var(--s-6); }

/* Guest */
.guest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); margin: var(--s-6) 0; }
.guest-preview { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--r-md); }
@media (max-width: 960px) { .guest-grid { grid-template-columns: 1fr; } }

/* ========================= Creator studio ================================ */
.studio-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; margin-bottom: var(--s-6); }
.channel-switcher { display: inline-flex; align-items: center; gap: var(--s-2); }
.channel-switcher .select { width: auto; min-width: 220px; min-height: 40px; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--s-6); margin-top: var(--s-6); }
@media (max-width: 1100px) { .dash-grid { grid-template-columns: 1fr; } }
.broadcast-card { display: flex; gap: var(--s-5); align-items: center; }
.broadcast-card .art { width: 96px; }
.state-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; background: var(--surface-3); }
.state-pill.AUTOMATED { background: var(--violet-soft); color: var(--violet); }
.state-pill.LIVE { background: var(--onair); color: #fff; }
.state-pill.PAUSED, .state-pill.EMERGENCY { background: var(--amber-soft); color: var(--amber); }
.checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.checklist li { display: flex; gap: var(--s-3); align-items: center; padding: var(--s-3); border-radius: var(--r-md); background: var(--surface-2); font-size: var(--fs-sm); }
.checklist li.done { color: var(--text-3); }
.checklist li .tick { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line-strong); flex: none; }
.checklist li.done .tick { background: var(--mint); border-color: var(--mint); color: #062; }
.checklist li .tick svg { width: 14px; height: 14px; }
.checklist li a { margin-left: auto; }

/* Media library */
.dropzone { display: block; border: 2px dashed var(--line-strong); border-radius: var(--r-lg); padding: var(--s-8); text-align: center; color: var(--text-3); transition: border-color var(--t-fast), background var(--t-fast); cursor: pointer; }
.dropzone.is-over { border-color: var(--ember); background: var(--ember-soft); color: var(--text); }
.dropzone svg { width: 36px; height: 36px; margin: 0 auto var(--s-3); color: var(--ember); }
.uploads { display: flex; flex-direction: column; gap: var(--s-2); margin-top: var(--s-4); }
.upload-item { display: grid; grid-template-columns: 1fr 160px auto; gap: var(--s-4); align-items: center; padding: var(--s-3) var(--s-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); font-size: var(--fs-sm); }
.media-icon { width: 40px; height: 40px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--surface-3); flex: none; overflow: hidden; }
.media-icon img { width: 100%; height: 100%; }
.media-icon svg { width: 20px; height: 20px; color: var(--text-2); }
.waveform { width: 100%; height: 64px; display: block; }
.yt-thumb { width: 200px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-md); background: var(--surface-2); }
.rights-box { padding: var(--s-4); border-radius: var(--r-md); border: 1px solid var(--amber); background: var(--amber-soft); }
.rights-box .checkbox span { color: var(--text); line-height: 1.55; }
.rights-box svg { color: var(--amber); }

/* Schedule builder */
.builder > * { min-width: 0; }
.builder { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: var(--s-6); align-items: start; }
@media (max-width: 1100px) { .builder { grid-template-columns: minmax(0, 1fr); } }
.builder-library { position: sticky; top: calc(var(--topbar-h) + var(--s-4)); max-height: calc(100vh - var(--topbar-h) - var(--player-h) - 40px); display: flex; flex-direction: column; }
.builder-library .lib-list { overflow-y: auto; flex: 1; margin-top: var(--s-3); display: flex; flex-direction: column; gap: 4px; }
.lib-item { display: flex; align-items: center; gap: var(--s-3); padding: 8px 10px; border-radius: var(--r-sm); background: var(--surface-2); cursor: grab; font-size: var(--fs-sm); border: 1px solid transparent; }
.lib-item:hover { border-color: var(--line-strong); }
.lib-item:active { cursor: grabbing; }
.lib-item .grow { min-width: 0; }
.lib-item .truncate { font-weight: 600; }
.timeline24 { position: relative; height: 72px; background: var(--surface-2); border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); }
.timeline24 .seg { position: absolute; top: 18px; bottom: 6px; border-right: 1px solid rgba(0,0,0,.35); overflow: hidden; font-size: 10px; padding: 3px 5px; color: #fff; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; }
.timeline24 .seg:hover { filter: brightness(1.15); }
.timeline24 .hour { position: absolute; top: 0; height: 100%; border-left: 1px dashed var(--line-strong); font-size: 10px; color: var(--text-3); padding-left: 3px; pointer-events: none; }
.timeline24 .now-line { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--onair); box-shadow: 0 0 10px var(--onair); z-index: 2; }
.rundown { display: flex; flex-direction: column; gap: 4px; min-height: 120px; padding: var(--s-2); border-radius: var(--r-md); border: 1px dashed transparent; transition: border-color var(--t-fast), background var(--t-fast); }
.rundown.is-over { border-color: var(--ember); background: var(--ember-soft); }
.rd-item { display: grid; grid-template-columns: 20px 70px 1fr auto auto; gap: var(--s-3); align-items: center; padding: 10px 12px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); font-size: var(--fs-sm); }
.rd-item.dragging { opacity: 0.4; }
.rd-item.drop-before { box-shadow: 0 -3px 0 0 var(--ember); }
.rd-item.disabled { opacity: 0.5; }
.rd-item .handle { color: var(--text-3); cursor: grab; display: grid; place-items: center; }
.rd-item .handle svg { width: 16px; height: 16px; }
.rd-time { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-3); line-height: 1.3; }
.rd-title { font-weight: 600; min-width: 0; }
.rd-gap { font-size: var(--fs-xs); color: var(--amber); text-align: center; padding: 2px; }
.rd-actions { display: flex; gap: 2px; }
.rd-actions .icon-btn { width: 32px; height: 32px; }
.rd-actions .icon-btn svg { width: 16px; height: 16px; }
.transition-select { min-height: 32px; padding: 4px 28px 4px 10px; font-size: var(--fs-xs); width: auto; }
.cat-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
.validation { display: flex; flex-direction: column; gap: var(--s-2); }
.blocks { display: flex; flex-direction: column; gap: var(--s-2); }
.block-row { display: grid; grid-template-columns: 120px 1fr 1fr auto; gap: var(--s-3); align-items: center; }
@media (max-width: 720px) { .rd-item { grid-template-columns: 20px 1fr auto; } .rd-item .rd-time, .rd-item .transition-select { display: none; } .block-row { grid-template-columns: 1fr 1fr; } }

/* Live studio */
.studio { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s-6); }
@media (max-width: 1100px) { .studio { grid-template-columns: minmax(0, 1fr); } }
.studio > *, .dash-grid > * { min-width: 0; }
.studio-preview { position: relative; background: #000; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 9; display: grid; place-items: center; }
.studio-preview video { width: 100%; height: 100%; object-fit: contain; }
.studio-preview .studio-onair { position: absolute; top: 14px; left: 14px; z-index: 2; }
.studio-controls { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-4); align-items: center; }
.meter { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; width: 160px; }
.meter span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--mint), var(--amber), var(--onair)); transition: width 80ms linear; }
.participant { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3); border-radius: var(--r-md); background: var(--surface-2); }
.rec-dot { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 700; color: var(--onair); }
.rec-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--onair); animation: pulse 1.2s infinite; }

/* Charts */
.chart { width: 100%; height: 220px; display: block; }
.chart .axis { stroke: var(--line-strong); }
.chart .grid { stroke: var(--line); }
.chart text { fill: var(--text-3); font-size: 10px; font-family: var(--font-ui); }
.chart .area { fill: url(#zzgrad); opacity: 0.35; }
.chart .line { fill: none; stroke: var(--ember); stroke-width: 2; }
.chart .bar { fill: var(--violet); }
.bars { display: flex; flex-direction: column; gap: var(--s-2); }
.bar-row { display: grid; grid-template-columns: 120px 1fr 60px; gap: var(--s-3); align-items: center; font-size: var(--fs-sm); }
.bar-row .bar-track { height: 8px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.bar-row .bar-track span { display: block; height: 100%; background: var(--gradient-brand); border-radius: inherit; }
.heat { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; }
.heat div { aspect-ratio: 1; border-radius: 3px; background: var(--ember); }

/* Merch */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--s-5); }
.product-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.product-media { position: relative; display: block; aspect-ratio: 1; background: var(--surface-2); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.product-card:hover .product-media img { transform: scale(1.03); }
.product-sale { position: absolute; top: 10px; left: 10px; }
.product-noimg { width: 100%; height: 100%; display: grid; place-items: center; color: var(--text-3); }
.product-noimg svg { width: 40px; height: 40px; }
.product-info { padding: var(--s-4); display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product-title { font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-price { display: flex; gap: var(--s-2); align-items: baseline; }
.product-info .btn { align-self: flex-start; }
.pinned-product { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-3) var(--s-4); margin-bottom: var(--s-4); border-radius: var(--r-lg); background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--gradient-brand) border-box; border: 1.5px solid transparent; animation: viewIn var(--t-slow) var(--ease); }
.pinned-product img, .pinned-product .product-noimg { width: 64px; height: 64px; border-radius: var(--r-md); object-fit: cover; flex: none; }

/* Admin */
.admin-badge { background: var(--violet); color: #fff; }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: var(--s-2) var(--s-4); font-size: var(--fs-sm); }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.health-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: var(--mint); box-shadow: 0 0 0 3px var(--mint-soft); }
.health-dot.bad { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.toolbar { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; margin-bottom: var(--s-4); }
.toolbar .input, .toolbar .select { width: auto; min-width: 220px; min-height: 40px; }
