/* KidsVideo WebAdmin - "production studio" theme on Bootstrap 5.3 (dark). Restrained gold, charcoal panels, film headings. */
:root {
    --bg: #0b0b0e;
    --bg-2: #111116;
    --panel: #16161c;
    --panel-2: #1c1c23;
    --line: #2a2a33;
    --line-2: #34343f;
    --text: #e9e5dc;
    --muted: #9c98a3;
    --gold: #c9a44c;
    --gold-2: #e2c36f;
    --gold-dim: rgba(201, 164, 76, .14);
    --ok: #4fbf7f;
    --warn: #e0a83a;
    --bad: #e05a52;
    --info: #6f9de8;
    --radius: 12px;
    --bs-body-bg: var(--bg);
    --bs-body-color: var(--text);
    --bs-border-color: var(--line);
    --bs-link-color-rgb: 226, 195, 111;
    --bs-link-hover-color-rgb: 240, 214, 140;
    --bs-focus-ring-color: rgba(201, 164, 76, .45);
}

html { scroll-padding-top: 80px; }
body {
    font-family: Inter, "Segoe UI", system-ui, sans-serif;
    background: radial-gradient(1200px 500px at 50% -200px, #1d1611 0%, transparent 70%), var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1; }
a { color: var(--gold-2); text-decoration-color: rgba(226, 195, 111, .35); }
a:hover { color: #f0d68c; }
:focus-visible { outline: 2px solid var(--gold-2) !important; outline-offset: 2px; }
.skip-link { position: absolute; left: 1rem; top: .5rem; z-index: 2000; background: var(--gold); color: #111; padding: .4rem .8rem; border-radius: 6px; }
.min-w-0 { min-width: 0; }
.text-muted-studio { color: var(--muted) !important; }
.text-danger-studio { color: #ff8a82 !important; }
.text-warning-studio { color: var(--warn) !important; }
.opt { color: var(--muted); font-weight: 400; font-size: .8em; text-transform: none; letter-spacing: 0; }

/* ---------- header ---------- */
.studio-header {
    position: sticky; top: 0; z-index: 1030;
    background: rgba(11, 11, 14, .92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 0 rgba(201, 164, 76, .12);
}
.studio-header::after { /* thin film perforation strip */
    content: ""; display: block; height: 4px;
    background: radial-gradient(circle, #24242c 1.2px, transparent 1.6px) 0 0 / 10px 4px repeat-x;
}
.navbar-brand { display: flex; align-items: center; gap: .6rem; color: var(--text) !important; }
.brand-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(145deg, #2a2112, #15120c); border: 1px solid rgba(201, 164, 76, .45); color: var(--gold-2); }
.brand-mark.big { width: 56px; height: 56px; font-size: 1.6rem; border-radius: 14px; }
.brand-text { font-family: "Bebas Neue", Impact, sans-serif; font-size: 1.55rem; letter-spacing: .08em; color: var(--gold-2); line-height: 1; }
.brand-sub { font-size: .72rem; text-transform: uppercase; letter-spacing: .2em; color: var(--muted); border-left: 1px solid var(--line-2); padding-left: .6rem; }
.navbar .nav-link { color: #cfcad3; border-radius: 8px; padding: .45rem .8rem !important; }
.navbar .nav-link:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.navbar .nav-link.active { color: var(--gold-2); background: var(--gold-dim); }
.navbar-toggler { color: var(--text); border-color: var(--line-2); font-size: 1.4rem; }

/* ---------- buttons ---------- */
.btn-gold { --bs-btn-color: #17130a; --bs-btn-bg: var(--gold); --bs-btn-border-color: var(--gold); --bs-btn-hover-color: #17130a; --bs-btn-hover-bg: var(--gold-2); --bs-btn-hover-border-color: var(--gold-2); --bs-btn-active-bg: #b38f3c; --bs-btn-active-color: #17130a; --bs-btn-disabled-bg: #6b5a32; --bs-btn-disabled-border-color: #6b5a32; font-weight: 600; }
.btn-gold-outline { --bs-btn-color: var(--gold-2); --bs-btn-border-color: rgba(201, 164, 76, .55); --bs-btn-hover-color: #17130a; --bs-btn-hover-bg: var(--gold); --bs-btn-hover-border-color: var(--gold); --bs-btn-active-bg: var(--gold); --bs-btn-active-color: #17130a; --bs-btn-disabled-color: #7c6c46; --bs-btn-disabled-border-color: #3d3524; font-weight: 600; }
.btn-ghost { --bs-btn-color: #cfcad3; --bs-btn-border-color: transparent; --bs-btn-hover-color: var(--text); --bs-btn-hover-bg: rgba(255, 255, 255, .06); --bs-btn-hover-border-color: var(--line-2); --bs-btn-active-bg: rgba(255, 255, 255, .1); }
.text-danger-studio.btn-ghost, .btn-ghost.text-danger-studio { --bs-btn-color: #ff8a82; }
.btn { min-height: 34px; }
.btn-sm { min-height: 30px; }
@media (pointer: coarse) { .btn, .form-select, .form-control { min-height: 44px; } .btn-sm { min-height: 40px; min-width: 40px; } }

/* ---------- hero / stats ---------- */
.hero-strip { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; padding: 1.4rem 0 1.1rem; }
.display-title { font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; letter-spacing: .06em; font-size: clamp(1.9rem, 3.4vw, 2.6rem); color: var(--text); margin: 0; }
.stat-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.stat { display: flex; flex-direction: column; min-width: 112px; padding: .6rem .9rem; border-radius: var(--radius); background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.stat:hover { border-color: rgba(201, 164, 76, .5); color: var(--text); transform: translateY(-1px); }
.stat-num { font-family: "Bebas Neue", Impact, sans-serif; font-size: 2rem; line-height: 1; color: var(--gold-2); }
.stat-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.stat-live .stat-num { color: var(--warn); }
.stat-bad .stat-num { color: var(--bad); }

/* ---------- panels ---------- */
.panel { background: linear-gradient(180deg, var(--panel) 0%, #131318 100%); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem 1.1rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.section-title { display: flex; align-items: center; gap: .55rem; font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; letter-spacing: .08em; font-size: 1.55rem; color: var(--gold-2); margin: 0 0 .4rem; }
.section-title i { font-size: 1.05rem; color: var(--gold); }
.panel-form { border-color: rgba(201, 164, 76, .3); }
@media (min-width: 1400px) { .panel-form { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; } }

/* ---------- filters / tables ---------- */
.filter-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .5rem; margin-bottom: .9rem; }
.filter-bar.compact { display: flex; flex-wrap: wrap; margin-bottom: 0; }
.filter-bar.compact .form-control, .filter-bar.compact .form-select { width: auto; min-width: 150px; }
.form-control, .form-select { background-color: #0f0f13; border-color: var(--line-2); color: var(--text); }
.form-control:focus, .form-select:focus { background-color: #121217; border-color: var(--gold); box-shadow: 0 0 0 .2rem rgba(201, 164, 76, .2); color: var(--text); }
.form-control::placeholder { color: #6d6974; }
.form-label { font-size: .82rem; font-weight: 600; color: #d6d1c8; text-transform: uppercase; letter-spacing: .06em; }
.form-hint { font-size: .78rem; color: var(--muted); margin-top: .2rem; }
.field-error { display: block; color: #ff8a82; font-size: .8rem; margin-top: .2rem; }
.input-validation-error { border-color: var(--bad) !important; }
.studio-table { --bs-table-bg: transparent; --bs-table-color: var(--text); --bs-table-border-color: var(--line); --bs-table-hover-bg: rgba(255, 255, 255, .03); }
.studio-table thead th { font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 600; border-bottom-color: var(--line-2); }
.studio-table tbody tr:hover { background: rgba(255, 255, 255, .025); }
.job-title { color: var(--text); font-weight: 600; text-decoration: none; }
.job-title:hover { color: var(--gold-2); }
.job-code { font-size: .74rem; color: var(--muted); letter-spacing: .02em; }
.job-summary { font-size: .8rem; color: #b4afb9; margin-top: .15rem; }
.job-error { font-size: .78rem; color: #ff9c94; margin-top: .25rem; }
.lang-chip { display: inline-block; font-size: .7rem; padding: .05rem .4rem; border: 1px solid var(--line-2); border-radius: 999px; color: #d8d3ca; }
.job-thumb { display: grid; place-items: center; width: 72px; aspect-ratio: 16/9; border-radius: 6px; overflow: hidden; background: #0d0d11; border: 1px solid var(--line-2); color: var(--muted); }
.job-thumb.portrait { width: 40px; aspect-ratio: 9/16; }
.job-thumb.sm { width: 56px; }
.job-thumb.sm.portrait { width: 34px; }
.job-thumb img { width: 100%; height: 100%; object-fit: cover; }
.job-thumb-cell { width: 84px; }
.stage-cell { min-width: 150px; }
.stage-text { font-size: .78rem; color: #cbc6ce; margin-top: .25rem; }
.stage-detail { font-size: .74rem; color: var(--muted); font-family: ui-monospace, Consolas, monospace; min-height: 1em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-card { border: 1px solid var(--line); border-radius: 10px; padding: .7rem; margin-bottom: .6rem; background: var(--panel-2); }

/* ---------- status badges ---------- */
.status-badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 600; letter-spacing: .04em; padding: .2rem .55rem; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.st-queued { color: #a9b9da; border-color: #3b4560; background: rgba(111, 157, 232, .08); }
.st-processing { color: #f3c063; border-color: #6b5426; background: rgba(224, 168, 58, .1); }
.st-processing i { animation: pulse 1.6s ease-in-out infinite; }
.st-cancelling { color: #f39b5c; border-color: #6b4226; background: rgba(243, 155, 92, .1); }
.st-completed { color: #7fdca5; border-color: #2c5a40; background: rgba(79, 191, 127, .09); }
.st-failed { color: #ff8f87; border-color: #6a2d2a; background: rgba(224, 90, 82, .1); }
.st-cancelled { color: #a5a1aa; border-color: #3a3a44; background: rgba(255, 255, 255, .03); }
@keyframes pulse { 50% { opacity: .35; } }
.studio-progress { height: .45rem; background: #24242c; margin-top: .35rem; border-radius: 999px; }
.studio-progress.lg { height: .7rem; }
.studio-progress .progress-bar { background: linear-gradient(90deg, #a8832f, var(--gold-2)); }

/* ---------- queue ---------- */
.queue-stats { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.qchip { font-size: .76rem; padding: .25rem .6rem; border-radius: 999px; border: 1px solid var(--line-2); color: #cfcad3; text-decoration: none; }
.qchip b { color: var(--text); }
.qchip.live b { color: var(--warn); } .qchip.ok b { color: var(--ok); } .qchip.bad b { color: var(--bad); }
.queue-sub { font-size: .7rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); margin: .9rem 0 .45rem; font-weight: 600; }
.queue-list { list-style: none; padding: 0; margin: 0; }
.queue-item { border: 1px solid var(--line); border-radius: 10px; padding: .6rem .7rem; margin-bottom: .5rem; background: var(--panel-2); }
.queue-item.active { border-color: #6b5426; box-shadow: inset 3px 0 0 var(--warn); }
.queue-pos { font-family: "Bebas Neue", Impact, sans-serif; font-size: 1.4rem; color: var(--gold); width: 1.8rem; text-align: center; line-height: 1.2; }
.badge-now { font-size: .62rem; font-weight: 700; letter-spacing: .1em; color: #17130a; background: var(--gold); border-radius: 4px; padding: .05rem .3rem; margin-left: .3rem; vertical-align: middle; }

/* ---------- empty states ---------- */
.empty-state { text-align: center; padding: 1.8rem 1rem; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 10px; }
.empty-state i { font-size: 2rem; color: var(--gold); opacity: .8; }
.empty-state h2, .empty-state h3 { font-family: "Bebas Neue", Impact, sans-serif; letter-spacing: .06em; color: var(--text); font-size: 1.4rem; margin: .4rem 0 .2rem; font-weight: 400; }
.empty-state .btn i { font-size: inherit; opacity: 1; color: inherit; }
.empty-state.compact { padding: .9rem; display: flex; align-items: center; justify-content: center; gap: .6rem; }
.empty-state.compact i { font-size: 1.2rem; }
.empty-state.big { padding: 3.5rem 1rem; }

/* ---------- form ---------- */
.form-block { border-top: 1px solid var(--line); padding-top: .8rem; margin-top: .9rem; }
.form-block:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.form-block legend { font-family: "Bebas Neue", Impact, sans-serif; letter-spacing: .1em; font-size: 1.05rem; color: var(--gold); margin-bottom: .5rem; }
.storyline { min-height: 200px; line-height: 1.5; resize: vertical; }
.ai-panel { border: 1px solid rgba(201, 164, 76, .35); background: rgba(201, 164, 76, .05); border-radius: 10px; padding: .7rem; margin-top: .6rem; }
.ai-status { font-size: .85rem; }
.ai-status.error { color: #ff8a82; } .ai-status.ok { color: var(--ok); }
.form-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.form-actions .btn { flex: 1 1 180px; }
.sub-more summary { cursor: pointer; font-size: .82rem; color: var(--gold-2); margin: .3rem 0; }
.sub-preview-wrap { margin-top: .8rem; }
.sub-preview { position: relative; margin: 0 auto; border-radius: 8px; overflow: hidden; border: 1px solid var(--line-2);
    background: linear-gradient(180deg, #7cc4f4 0%, #bfe6ff 48%, #6fbf5a 49%, #4e9a3f 100%); }
.sub-preview.landscape { aspect-ratio: 16/9; width: min(100%, 480px); }
.sub-preview.portrait { aspect-ratio: 9/16; width: min(240px, 60%); }
.sub-preview.has-frame { background-size: cover; background-position: center; }
.safe-zone { position: absolute; border: 1px dashed rgba(255, 255, 255, .55); border-radius: 4px; pointer-events: none; }
.sub-sample { position: absolute; max-width: 80%; text-align: center; line-height: 1.25; white-space: pre-line; }
.form-check-input:checked { background-color: var(--gold); border-color: var(--gold); }
.form-range::-webkit-slider-thumb { background: var(--gold); }
.form-range::-moz-range-thumb { background: var(--gold); }

/* ---------- details / timeline ---------- */
.studio-crumbs { --bs-breadcrumb-divider-color: var(--muted); --bs-breadcrumb-item-active-color: var(--muted); font-size: .85rem; }
.live-box { border: 1px solid var(--line-2); border-radius: 10px; padding: .8rem; margin: .4rem 0 1rem; background: var(--panel-2); }
.error-box { border: 1px solid #6a2d2a; background: rgba(224, 90, 82, .08); border-radius: 10px; padding: .8rem 1rem; margin: .4rem 0 1rem; color: #ffc3be; }
.warn-box { border: 1px solid #5c4a22; background: rgba(224, 168, 58, .06); border-radius: 10px; padding: .6rem .9rem; color: #f0d394; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line-2); }
.timeline li { position: relative; padding: .35rem 0 .35rem 1rem; display: grid; grid-template-columns: 9.5rem 7.5rem 1fr; gap: .5rem; font-size: .82rem; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: .7rem; width: 10px; height: 10px; border-radius: 50%; background: var(--info); box-shadow: 0 0 0 3px var(--bg); }
.timeline .ev-warn::before { background: var(--warn); } .timeline .ev-error::before { background: var(--bad); } .timeline .ev-success::before { background: var(--ok); }
.timeline .ev-error .tl-msg { color: #ffaaa3; } .timeline .ev-warn .tl-msg { color: #f0d394; }
.tl-time { color: var(--muted); white-space: nowrap; } .tl-stage { color: var(--gold-2); font-weight: 600; }
@media (max-width: 767.98px) { .timeline li { grid-template-columns: 1fr; gap: 0; } }
.meta-list { display: grid; grid-template-columns: 8.5rem 1fr; gap: .35rem .6rem; font-size: .86rem; margin: 0; }
.meta-list dt { color: var(--muted); font-weight: 500; } .meta-list dd { margin: 0; }
.storyline-view { white-space: pre-line; font-size: .86rem; color: #cfcad3; max-height: 240px; overflow: auto; }

/* ---------- player / posters ---------- */
.player-frame { background: #000; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 0 0 1px rgba(201, 164, 76, .12), 0 20px 60px rgba(0, 0, 0, .6); }
.player-frame video { width: 100%; display: block; max-height: 72vh; background: #000; }
.player-frame.portrait { max-width: 420px; margin: 0 auto; }
.poster { height: 100%; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); transition: transform .15s, border-color .15s, box-shadow .15s; }
.poster:hover { transform: translateY(-3px); border-color: rgba(201, 164, 76, .45); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.poster-thumb { position: relative; display: grid; place-items: center; aspect-ratio: 16/9; background: #08080a; color: var(--muted); font-size: 2rem; overflow: hidden; }
.poster-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.poster-thumb.portrait img { object-fit: contain; }
.poster-play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; color: #fff; background: rgba(0, 0, 0, .35); opacity: 0; transition: opacity .15s; }
.poster:hover .poster-play, .poster-thumb:focus-visible .poster-play { opacity: 1; }
.poster-time { position: absolute; right: .5rem; bottom: .5rem; font-size: .72rem; background: rgba(0, 0, 0, .75); padding: .1rem .4rem; border-radius: 4px; color: #fff; }
.poster-body { padding: .75rem .85rem; display: flex; flex-direction: column; gap: .15rem; flex: 1; }
.poster-title { font-size: 1rem; font-weight: 600; margin: 0; }
.poster-title a { color: var(--text); text-decoration: none; } .poster-title a:hover { color: var(--gold-2); }

/* ---------- social ---------- */
.social-row { display: flex; gap: .3rem; }
.social-icon { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line-2); font-size: 1rem; text-decoration: none; position: relative; }
.social-icon.ready { color: var(--gold-2); border-color: rgba(201, 164, 76, .5); }
.social-icon.manual { color: #cfcad3; }
.social-icon.off { color: #5f5b66; border-style: dashed; }
.social-icon.warning { color: var(--warn); border-color: #6b5426; }
.social-icon.warning::after { content: ""; position: absolute; top: -3px; right: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
.social-icon.done::after { content: ""; position: absolute; top: -3px; right: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.publish-list { list-style: none; padding: 0; margin: 0; }
.publish-item { display: flex; gap: .7rem; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.publish-item:last-child { border-bottom: 0; }
.platform-glyph { font-size: 1.3rem; width: 1.6rem; text-align: center; color: var(--muted); }
.platform-glyph.lg { font-size: 1.7rem; }
.publish-item.ready .platform-glyph, .integration-card.ready .platform-glyph { color: var(--gold-2); }
.publish-item.connectionwarning .platform-glyph, .integration-card.connectionwarning .platform-glyph { color: var(--warn); }
.state-pill { font-size: .66rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: .1rem .45rem; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); margin-left: .3rem; }
.ready .state-pill { color: var(--ok); border-color: #2c5a40; } .connectionwarning .state-pill { color: var(--warn); border-color: #6b5426; }
.integration-card { height: 100%; border: 1px solid var(--line); border-radius: 10px; padding: .8rem; background: var(--panel-2); }
.text-gold { color: var(--gold-2); cursor: pointer; }
.yt-form { border: 1px solid var(--line); border-radius: 10px; padding: .7rem; background: var(--panel-2); }
.yt-approve-needed { border: 1px solid #6b5426; border-radius: 8px; padding: .4rem .5rem .4rem 2rem; background: rgba(224, 168, 58, .08); }
.yt-thumb { flex: 0 0 168px; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: #000; display: block; }
.yt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.logbox-studio { background: #07060a; border: 1px solid var(--line); border-radius: 10px; font: 12px/1.5 ui-monospace, Consolas, monospace; color: #9fe3a0; padding: .7rem; max-height: 320px; overflow: auto; white-space: pre-wrap; margin: 0; }
.studio-modal { background: var(--panel); border: 1px solid rgba(201, 164, 76, .35); }

/* ---------- alerts / auth / footer ---------- */
.alert-studio { background: rgba(79, 191, 127, .08); border: 1px solid #2c5a40; color: #b9ecd0; }
.alert-studio-error { background: rgba(224, 90, 82, .08); border: 1px solid #6a2d2a; color: #ffc3be; }
.auth-wrap { display: grid; place-items: center; min-height: 70vh; }
.auth-panel { width: min(420px, 100%); }
.studio-footer { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 1.5rem; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- ZuzuLand series plan ---------- */
.series-logo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--gold), 0 8px 24px rgba(0,0,0,.5); }
.series-tabs { border-color: var(--line); }
.series-tabs .nav-link { color: var(--muted); border: 0; border-bottom: 2px solid transparent; background: none; }
.series-tabs .nav-link.active, .series-tabs .nav-link:hover { color: var(--gold-2); border-bottom-color: var(--gold); background: none; }
.series-hero .meta-list { grid-template-columns: 11rem 1fr; }
.ratio-box { border: 2px solid var(--gold); border-radius: 8px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--gold-2); font-family: "Bebas Neue", Impact, sans-serif; font-size: 1.3rem; line-height: 1.1; background: var(--gold-dim); }
.ratio-box small { font-family: Inter, sans-serif; font-size: .7rem; color: var(--muted); }
.ratio-box.landscape { width: 192px; height: 108px; } .ratio-box.portrait { width: 70px; height: 124px; }
.ep-timeline { display: flex; height: 54px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line-2); }
.ep-seg { display: flex; flex-direction: column; justify-content: center; padding: 0 .4rem; min-width: 0; background: var(--panel-2); border-right: 1px solid var(--line-2); font-size: .72rem; }
.ep-seg.fixed { background: var(--gold-dim); color: var(--gold-2); }
.ep-seg-name { font-weight: 600; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-seg-time { color: var(--muted); }
.team-card { border: 1px solid var(--line-2); border-radius: 10px; padding: .75rem .85rem; background: var(--panel-2); }
.team-card h3 { font-family: "Bebas Neue", Impact, sans-serif; letter-spacing: .06em; font-size: 1.2rem; margin: 0 0 .2rem; color: var(--text); }
.swatch { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; border: 1px solid var(--line-2); border-radius: 20px; padding: .15rem .55rem .15rem .2rem; }
.swatch i { width: 18px; height: 18px; border-radius: 50%; display: inline-block; border: 1px solid rgba(255,255,255,.2); }
.dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; border: 1px solid rgba(255,255,255,.25); }
.char-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 2px var(--gold), 0 6px 18px rgba(0,0,0,.5); }
.char-avatar.placeholder { display: flex; align-items: center; justify-content: center; font-family: "Bebas Neue", Impact, sans-serif; font-size: 2.6rem; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.5); opacity: .85; }
.char-name { font-family: "Bebas Neue", Impact, sans-serif; letter-spacing: .06em; font-size: 1.5rem; margin: 0; }
.voice-row { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.voice-row audio, .sound-row audio { height: 32px; max-width: 100%; }
.prompt-preview { background: #0f0f13; border: 1px dashed var(--line-2); border-radius: 8px; padding: .5rem .65rem; color: #cfcad3; }
.loc-img { width: 100%; height: 190px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line-2); }
.loc-img.placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; color: var(--muted); background: repeating-linear-gradient(45deg, #15151b, #15151b 10px, #18181f 10px, #18181f 20px); font-size: .8rem; }
.loc-img.placeholder i { font-size: 1.8rem; }
.ep-row { padding: .55rem .9rem; }
.ep-row > summary { cursor: pointer; list-style: none; }
.ep-row > summary::-webkit-details-marker { display: none; }
.ep-next { border-color: var(--gold); }
.ep-num { font-family: "Bebas Neue", Impact, sans-serif; font-size: 1.4rem; color: var(--gold-2); min-width: 2.6rem; }
.ep-date { font-size: .8rem; color: var(--muted); min-width: 8.5rem; }
.ep-face { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.gem { display: inline-block; width: 12px; height: 12px; transform: rotate(45deg); border-radius: 2px; margin-right: .3rem; box-shadow: 0 0 8px currentColor; }
.gem-red { background: #ff4d4d; color: #ff4d4d; } .gem-orange { background: #ff9a3d; color: #ff9a3d; } .gem-yellow { background: #ffd23f; color: #ffd23f; }
.gem-green { background: #5bd16e; color: #5bd16e; } .gem-blue { background: #3ba9ff; color: #3ba9ff; } .gem-indigo { background: #5b5bd6; color: #5b5bd6; } .gem-violet { background: #b05bff; color: #b05bff; }
.gem-track { display: flex; flex-wrap: wrap; gap: .5rem; }
.gem-step { display: flex; flex-direction: column; align-items: center; min-width: 76px; padding: .45rem .5rem; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel-2); text-decoration: none; text-transform: capitalize; font-size: .85rem; color: var(--text); }
.gem-step .gem { width: 18px; height: 18px; margin: .2rem 0 .4rem; }
.gem-step small { color: var(--muted); font-size: .7rem; }
.sound-row { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .4rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }