/* Minbar: a TV station in a browser tab. Copyright WAJD Group. */

@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/assets/fonts/cairo-900-latin.woff2') format('woff2');
}

:root {
  --green: #14614e;
  --green-dark: #0e4a3b;
  --green-soft: #e3efeb;
  --gold: #b8955a;
  --gold-rich: #cf9f26;
  --gold-ink: #241c06;
  --gold-line: rgba(184, 149, 90, 0.55);
  --gold-soft: #f3ead9;
  --ink: #22302c;
  --ink-soft: #5b6a65;
  --paper: #faf7f1;
  --card: #ffffff;
  --line: #e6dfd2;
  --red: #b03a2e;
  --red-soft: #f7e5e2;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(34, 48, 44, 0.07);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3 { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; line-height: 1.2; color: var(--ink); }
h1 { font-size: 2.4rem; font-weight: 700; }
h2 { font-size: 1.5rem; font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { color: var(--ink-soft); }
a { color: var(--green); }

.container { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }
main.container { flex: 1; }

.hidden { display: none !important; }

/* ---------- Header / footer ---------- */

.site-header { border-bottom: 1px solid var(--line); background: var(--card); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img, .brand svg { width: 44px; height: 44px; }
.brand-name { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-size: 1.35rem; font-weight: 700; letter-spacing: 0.01em; }
.header-nav { display: flex; align-items: center; gap: 10px; }
.show-mobile { display: none; }
@media (max-width: 430px) {
  .header-nav { gap: 6px; }
  .header-nav .btn-small { padding: 0 10px; }
  .brand img { width: 38px; height: 38px; }
  .brand-name { font-size: 1.15rem; }
  .hide-mobile { display: none; }
  .show-mobile { display: inline; }
}

.site-footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 22px 0; }
.site-footer .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-footer p { font-size: 0.85rem; color: var(--ink-soft); }
.site-footer a { color: var(--ink-soft); }

/* ---------- ONE BUTTON METRIC: the only place button sizes live ----------
   Action pills 40px, small/chip actions 36px. Pages style colour only. */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; border-radius: 999px; padding: 0 18px; font-size: 0.85rem; font-weight: 700;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  font-family: inherit; background: none; color: var(--ink); white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: linear-gradient(180deg, #ddb14a, var(--gold-rich));
  color: var(--gold-ink); box-shadow: 0 1px 2px rgba(34, 48, 44, 0.15);
}
.btn-primary:hover { background: #c39322; }
.btn-secondary { border: 1.5px solid var(--green); color: var(--green); background: #ffffff; }
.btn-secondary:hover { background: var(--green-soft); }
.btn-danger { background: var(--red); color: #ffffff; }
.btn-quiet { color: var(--ink-soft); border-color: var(--line); background: var(--card); }
.btn-quiet:hover { border-color: var(--ink-soft); }
.btn-small { height: 36px; padding: 0 14px; font-size: 0.8rem; }
.btn-wide { width: 100%; }

/* ---------- Cards, forms ---------- */

.card {
  background: var(--card); border: 1.5px solid var(--gold-line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px;
}
.card + .card { margin-top: 16px; }
.card h2, .card h3 { margin-bottom: 10px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink); margin-bottom: 5px; }
input, select {
  width: 100%; padding: 10px 12px; font-size: 0.95rem; font-family: inherit;
  border: 1px solid var(--line); border-radius: 8px; background: #ffffff; color: var(--ink);
}
input:focus, select:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.field { margin-bottom: 14px; }
/* Under 16px, iPhone Safari zooms the page on focus. */
@media (max-width: 640px) { input, select, textarea { font-size: 16px; } }
.field-hp { position: absolute; left: -6000px; top: 0; height: 1px; width: 1px; overflow: hidden; }

.form-error {
  background: var(--red-soft); color: var(--red); border: 1px solid #e5c4bf;
  border-radius: 8px; padding: 10px 12px; font-size: 0.9rem; margin-bottom: 14px;
}
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 10px; }

.auth-wrap { max-width: 420px; margin: 48px auto; }
.auth-wrap .card { padding: 28px; }
.auth-wrap h1 { font-size: 1.6rem; margin-bottom: 6px; }
.auth-wrap .lead { margin-bottom: 18px; }

/* ---------- Landing ---------- */

.hero { padding: 64px 0 40px; text-align: center; }
.hero h1 { max-width: 720px; margin: 0 auto 14px; }
.hero .lead { font-size: 1.15rem; max-width: 620px; margin: 0 auto 26px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}

.section { padding: 36px 0; }
.section h2 { text-align: center; margin-bottom: 24px; }

.step-num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--green-soft); color: var(--green);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 10px;
}
.icon-tile {
  width: 40px; height: 40px; border-radius: 10px; background: var(--green-soft); color: var(--green);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px;
}
.icon-tile svg { width: 20px; height: 20px; }

.usecase-list { list-style: none; }
.usecase-list li { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; color: var(--ink-soft); }
.usecase-list li strong { color: var(--ink); }
.tick { color: var(--green); font-weight: 700; }

/* ---------- Dashboard ---------- */

.page-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 30px 0 18px; flex-wrap: wrap; }
.page-head h1 { font-size: 1.7rem; }

.live-banner {
  display: flex; align-items: center; gap: 12px; background: var(--red-soft);
  border: 1px solid #e5c4bf; border-radius: var(--radius); padding: 14px 18px; margin-bottom: 16px;
}
.live-banner strong { color: var(--red); }

.dot-live { width: 10px; height: 10px; border-radius: 50%; background: var(--red); flex: none; }
.dot-idle { width: 10px; height: 10px; border-radius: 50%; background: var(--line); flex: none; }

.kv { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.kv code {
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
  padding: 5px 9px; font-size: 0.85rem; word-break: break-all;
}

.list-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.list-row:last-child { border-bottom: none; }
.list-row .meta { font-size: 0.85rem; color: var(--ink-soft); }

.badge {
  display: inline-block; font-size: 0.75rem; font-weight: 700; border-radius: 999px; padding: 2px 10px;
}
.badge-live { background: var(--red-soft); color: var(--red); }
.badge-ended { background: var(--green-soft); color: var(--green); }
.badge-gold { background: var(--gold-soft); color: #8a6a33; }

.schedule-form .grid-form { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 10px; align-items: end; }
@media (max-width: 760px) { .schedule-form .grid-form { grid-template-columns: 1fr 1fr; } }
.top-gap { margin-top: 12px; }
.align-end { display: flex; align-items: flex-end; }
@media (max-width: 760px) {
  .schedule-form .grid-form.top-gap { grid-template-columns: 1fr; }
  .align-end .btn { width: 100%; }
}

/* ---------- Dark pages: studio and watch ---------- */

body.dark { background: #14181b; color: #e8e4da; }
body.dark h1, body.dark h2, body.dark h3 { color: #f2eee4; }
body.dark p { color: #a9b3ae; }
body.dark .site-header { background: #191e22; border-color: #262d31; }
body.dark .brand { color: #f2eee4; }
body.dark .btn-primary { background: linear-gradient(180deg, #efcf78, #e6c25f); color: var(--gold-ink); }
body.dark .btn-primary:hover { background: #d9b34c; }
body.dark .btn-secondary { border-color: #7cc0ab; color: #7cc0ab; background: transparent; }
body.dark .card { background: #191e22; border-color: rgba(230, 194, 95, 0.35); box-shadow: none; }
body.dark label { color: #cfd6d1; }
body.dark input, body.dark select { background: #101417; border-color: #2c343a; color: #e8e4da; }
body.dark .btn-quiet { background: #191e22; border-color: #2c343a; color: #a9b3ae; }
body.dark .site-footer { border-color: #262d31; }
body.dark a { color: #7cc0ab; }
body.dark .kv code { background: #101417; border-color: #2c343a; color: #cfd6d1; }
body.dark .list-row { border-color: #262d31; }

.player-shell {
  position: relative; background: #000000; border-radius: var(--radius);
  overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid #262d31;
}
.player-shell video { width: 100%; height: 100%; display: block; background: #000000; }
.player-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 12px;
  align-items: center; background: rgba(10, 14, 12, 0.82);
  text-align: center; padding: 20px; overflow-y: auto;
}
/* Safe centring: keeps the top readable when the overlay is taller than the player. */
.player-overlay > :first-child { margin-top: auto; }
.player-overlay > :last-child { margin-bottom: auto; }
@media (max-width: 640px) {
  /* A fixed height, not min-height: with aspect-ratio set, a min-height
     transfers into width and overflows the viewport. */
  .player-shell { aspect-ratio: auto; height: 320px; }
  .player-overlay h2 { font-size: 1.15rem; }
  .player-overlay p { font-size: 0.85rem; }
}
.player-overlay h2 { color: #f2eee4; }
.player-overlay p { color: #a9b3ae; }

.audio-art {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px;
  align-items: center; justify-content: center; background: radial-gradient(circle at 50% 42%, #1d2a26 0%, #10161a 70%);
}
.audio-art svg { width: 72px; height: 72px; color: var(--gold); }
.audio-art p { color: #cfd6d1; font-weight: 600; }

.status-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 14px 0; }
.status-chip {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 999px;
  border: 1px solid #2c343a; background: #191e22; color: #cfd6d1;
  padding: 6px 14px; font-size: 0.85rem; font-weight: 600;
}
.status-chip.live { border-color: #6d3730; background: #2a1a17; color: #e78a7d; }

.next-card { text-align: center; padding: 34px 22px; }
.next-when { font-size: 1.5rem; font-weight: 700; color: #f2eee4; font-family: "Iowan Old Style", Palatino, Georgia, serif; }

.studio-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; align-items: start; margin-bottom: 20px; }
@media (max-width: 860px) { .studio-grid { grid-template-columns: 1fr; } }

/* ---------- Admin ---------- */

.stat-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 16px; }
@media (max-width: 760px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; padding: 16px 10px; }
.stat .num { font-size: 1.7rem; font-weight: 700; color: var(--green); }
.stat .lbl { font-size: 0.8rem; color: var(--ink-soft); }

table.plain { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
table.plain th, table.plain td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.plain th { color: var(--ink-soft); font-weight: 600; }
.table-scroll { overflow-x: auto; }

/* ---------- Pastel washes (WAJD kit): faint, lower part of the card only,
   rotate hues so no two adjacent cards look alike ---------- */

.wash-1 { background: linear-gradient(14deg, rgba(224, 116, 146, 0.16) 0%, rgba(240, 164, 110, 0.12) 20%, rgba(214, 178, 84, 0.08) 38%, #ffffff 60%); }
.wash-2 { background: linear-gradient(14deg, rgba(214, 178, 84, 0.16) 0%, rgba(126, 178, 132, 0.12) 20%, rgba(116, 176, 214, 0.08) 38%, #ffffff 60%); }
.wash-3 { background: linear-gradient(14deg, rgba(116, 176, 214, 0.16) 0%, rgba(160, 142, 214, 0.12) 20%, rgba(224, 116, 146, 0.08) 38%, #ffffff 60%); }
.wash-4 { background: linear-gradient(14deg, rgba(126, 178, 132, 0.16) 0%, rgba(116, 176, 214, 0.12) 20%, rgba(160, 142, 214, 0.08) 38%, #ffffff 60%); }
.wash-5 { background: linear-gradient(14deg, rgba(240, 164, 110, 0.16) 0%, rgba(214, 178, 84, 0.12) 20%, rgba(126, 178, 132, 0.08) 38%, #ffffff 60%); }
.wash-6 { background: linear-gradient(14deg, rgba(160, 142, 214, 0.16) 0%, rgba(224, 116, 146, 0.12) 20%, rgba(240, 164, 110, 0.08) 38%, #ffffff 60%); }
.wash-gold-solo { background: linear-gradient(to top, rgba(214, 178, 84, 0.12), #ffffff 55%); }

body.dark .wash-1 { background: linear-gradient(14deg, rgba(224, 116, 146, 0.2) 0%, rgba(240, 164, 110, 0.16) 20%, rgba(214, 178, 84, 0.12) 38%, #191e22 60%); }
body.dark .wash-2 { background: linear-gradient(14deg, rgba(214, 178, 84, 0.2) 0%, rgba(126, 178, 132, 0.16) 20%, rgba(116, 176, 214, 0.12) 38%, #191e22 60%); }
body.dark .wash-gold-solo { background: linear-gradient(to top, rgba(214, 178, 84, 0.16), #191e22 55%); }

/* ---------- Recordings kept on this device ---------- */

.recordings-card { margin-top: 18px; }
.recordings-card h3 { margin-bottom: 6px; }
.check-row { display: flex; align-items: center; gap: 10px; margin: 12px 0; font-weight: 600; cursor: pointer; }
.check-row input { width: 20px; height: 20px; accent-color: var(--gold-rich); flex: none; }
.rec-player { width: 100%; max-height: 320px; border-radius: 10px; background: #000000; margin: 8px 0 12px; display: block; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.rec-now { margin-top: 6px; }
.dot-keep { width: 10px; height: 10px; border-radius: 50%; background: var(--gold-rich); flex: none; }
@media (max-width: 640px) {
  .list-row .row-actions { width: 100%; }
  .list-row .row-actions .btn { flex: 1 1 0; }
}

/* ---------- QR code and printable poster ---------- */

.qr-block { display: flex; gap: 16px; align-items: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.qr-img { width: 132px; height: 132px; flex: none; border: 1px solid var(--line); border-radius: 8px; background: #ffffff; }
.qr-block p { margin-bottom: 10px; font-size: 0.9rem; }
@media (max-width: 480px) { .qr-block { flex-direction: column; align-items: flex-start; } }

body.poster-page { background: #ffffff; }
.poster { max-width: 720px; margin: 0 auto; padding: 48px 32px; text-align: center; }
.poster-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--green); font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-size: 1.4rem; font-weight: 700; }
.poster-brand img { width: 44px; height: 44px; }
.poster h1 { font-size: 2.6rem; margin: 28px 0 8px; color: var(--green-dark); }
.poster .poster-lead { font-size: 1.35rem; color: var(--ink); margin-bottom: 28px; }
.poster-qr { width: 360px; max-width: 80vw; height: auto; border: 1.5px solid var(--gold-line); border-radius: 16px; padding: 14px; background: #ffffff; }
.poster-steps { list-style: none; display: flex; justify-content: center; gap: 28px; margin: 28px 0 18px; flex-wrap: wrap; }
.poster-steps li { font-size: 1.05rem; color: var(--ink); }
.poster-steps strong { color: var(--green); }
.poster-url { font-size: 1rem; color: var(--ink-soft); word-break: break-all; }
.poster-note { font-size: 0.95rem; margin-top: 18px; }
.poster-actions { margin-top: 28px; }
@media print {
  @page { size: A4; margin: 14mm; }
  .poster-actions { display: none; }
  .poster { padding: 0; }
}

/* ---------- Share kit, settings, channel identity ---------- */

.narrow { max-width: 760px; }
.notice-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--gold-soft); border: 1.5px solid var(--gold-line); border-radius: var(--radius);
  padding: 12px 16px; margin-bottom: 16px; color: var(--ink);
}
.share-kit { margin-bottom: 16px; }
.share-kit-grid { display: grid; grid-template-columns: 1fr 260px; gap: 24px; align-items: center; }
.share-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 4px; }
.share-canvas { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 6px 18px rgba(20, 97, 78, 0.25); }
@media (max-width: 760px) {
  .share-kit-grid { grid-template-columns: 1fr; }
  .share-canvas { max-width: 300px; margin: 0 auto; display: block; }
  .share-actions .btn { flex: 1 1 calc(50% - 10px); }
}

.logo-row { display: flex; gap: 16px; align-items: center; margin: 12px 0 18px; }
.logo-frame {
  width: 104px; height: 104px; flex: none; border-radius: 50%; border: 1.5px solid var(--gold-line);
  background: var(--paper); display: flex; align-items: center; justify-content: center; overflow: hidden;
  font-size: 0.75rem; color: var(--ink-soft); text-align: center;
}
.logo-frame img { width: 100%; height: 100%; object-fit: cover; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.file-btn { margin: 0; }
.steps-list { margin: 8px 0 12px 20px; color: var(--ink-soft); }
.twofa-qr { width: 200px; height: 200px; border: 1px solid var(--line); border-radius: 10px; background: #ffffff; display: block; }
.codes {
  background: var(--paper); border: 1px dashed var(--gold-line); border-radius: 8px; padding: 12px 16px;
  font-size: 1rem; line-height: 1.8; margin: 10px 0 12px; columns: 2; font-family: ui-monospace, Menlo, Consolas, monospace;
}

.channel-id { display: flex; align-items: center; gap: 14px; }
.channel-logo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 1.5px solid rgba(230, 194, 95, 0.6); background: #faf7f1; flex: none; }
.channel-tagline { margin-top: 2px; font-size: 0.95rem; }
.listener-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
@media (max-width: 640px) {
  .channel-logo { width: 46px; height: 46px; }
  .listener-actions .btn { flex: 1 1 calc(50% - 10px); }
}
.poster .channel-logo { width: 150px; height: 150px; margin-top: 20px; border-width: 2px; }

/* ---------- Studio camera director ---------- */

.frame-box {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none;
  border: 2px solid #e6c25f; border-radius: 4px; box-shadow: 0 0 0 9999px rgba(10, 14, 12, 0.35);
  transition: left 90ms linear, top 90ms linear, width 90ms linear, height 90ms linear;
}
.shot-chip {
  position: absolute; left: 12px; top: 12px; pointer-events: none;
  background: rgba(16, 20, 23, 0.8); color: #e6c25f; border: 1px solid rgba(230, 194, 95, 0.5);
  border-radius: 999px; padding: 4px 12px; font-size: 0.8rem; font-weight: 700;
}
#preview { cursor: crosshair; object-fit: contain; }

/* ---------- Live audience count on the video ---------- */

.viewer-badge {
  position: absolute; top: 12px; right: 12px; z-index: 3; pointer-events: none;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(16, 20, 23, 0.78); color: #f2eee4; border: 1px solid rgba(230, 194, 95, 0.5);
  border-radius: 999px; padding: 5px 12px; font-size: 0.9rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.viewer-badge svg { width: 16px; height: 16px; color: #e6c25f; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Picture and lighting ---------- */

.picture-panel { margin-top: 10px; border: 1px solid #2c343a; border-radius: 10px; padding: 10px 14px; }
.picture-panel summary { cursor: pointer; font-weight: 700; color: #e6c25f; padding: 4px 0; }
.picture-panel[open] summary { margin-bottom: 8px; }
.range-field { margin-bottom: 12px; }
.range-field input[type="range"] { width: 100%; padding: 0; border: none; background: none; accent-color: #e6c25f; height: 28px; }
.edge-light {
  position: fixed; inset: 0; z-index: 60;
  box-shadow: inset 0 0 0 var(--edge-w, 6vmin) rgba(var(--edge-rgb, 255, 226, 184), 1),
              inset 0 0 calc(var(--edge-w, 6vmin) * 1.6) calc(var(--edge-w, 6vmin) * 0.6) rgba(var(--edge-rgb, 255, 226, 184), 0.85);
  pointer-events: none;
}
/* Only the glowing border takes taps (to hide it); the studio stays usable. */
.edge-light::before {
  content: ""; position: absolute; inset: 0; pointer-events: auto;
  border: var(--edge-w, 6vmin) solid transparent;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 0, var(--edge-w, 6vmin) var(--edge-w, 6vmin), var(--edge-w, 6vmin) calc(100% - var(--edge-w, 6vmin)), calc(100% - var(--edge-w, 6vmin)) calc(100% - var(--edge-w, 6vmin)), calc(100% - var(--edge-w, 6vmin)) var(--edge-w, 6vmin), var(--edge-w, 6vmin) var(--edge-w, 6vmin));
}

.viewer-picture { margin-top: 12px; max-width: 420px; padding: 16px; }

/* ---------- Studio voice meter ---------- */

.voice-panel { margin-top: 12px; padding: 16px; }
.voice-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.level { height: 12px; border-radius: 999px; background: #101417; border: 1px solid #2c343a; overflow: hidden; }
.level-fill { height: 100%; width: 0; background: linear-gradient(90deg, #3f9c7f, #7cc0ab 60%, #e6c25f 85%); transition: width 80ms linear; }
.level-fill.hot { background: #d8604f; }
.voice-warning {
  margin-top: 12px; padding: 10px 12px; border-radius: 8px; font-size: 0.9rem;
  background: #2a1a17; border: 1px solid #6d3730; color: #f0b3a8;
}
body.dark .voice-warning { color: #f0b3a8; }
@media (prefers-reduced-motion: reduce) { .level-fill { transition: none; } }

/* ---------- Toast ---------- */

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #ffffff; border-radius: 999px; padding: 10px 22px;
  font-size: 0.9rem; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); z-index: 50;
}

/* ---------- Embed mode ---------- */

body.embed .site-header, body.embed .site-footer, body.embed .watch-meta { display: none; }
body.embed main.container { max-width: none; padding: 0; }
body.embed .player-shell { border-radius: 0; border: none; }
