/* 아트포엠 유튜브 관리툴 — 디자인 토큰 + 테마
   기본 테마 'white'(흰 바탕, 브랜드 네이비·옐로), 'youtube'(검정·빨강·흰색) 는 <html data-theme="youtube"> 로 전환 */
:root {
  color-scheme: light;
  --bg: #ffffff; --panel: #ffffff; --panel-2: #f7f7f8; --ink: #0f0f0f; --muted: #606060; --line: #e6e6ea; --line-strong: #cfcfd6;
  --primary: #1f1b3a; --primary-ink: #ffffff; --primary-hover: #2d2854; --primary-soft: #eeedf8;
  --accent: #f5c543; --accent-ink: #2b2300; --accent-hover: #efb92a;
  --ok: #1a8a57; --ok-bg: #e6f6ee; --warn: #a85b00; --warn-bg: #fff3df; --err: #c22b3d; --err-bg: #fdeaed; --info: #2554c7; --info-bg: #e8eefc;
  --side: #ffffff; --side-ink: #0f0f0f; --side-muted: #6b6b6b; --side-hover: #f2f2f4; --side-active: #eeedf8; --side-active-ink: #1f1b3a; --side-line: #e6e6ea;
  --mark-bg: #1f1b3a; --mark-ink: #f5c543;
  --thumb-bg: #111111; --thumb-ink: #9a9a9a;
  --code-bg: #f2f2f4; --chip-bg: #f2f2f4; --hover: #f7f7f8; --input-bg: #ffffff; --focus: rgba(31, 27, 58, .14);
  --tab-active: #1f1b3a; --shadow: 0 1px 2px rgba(0, 0, 0, .04); --shadow-lg: 0 16px 48px rgba(0, 0, 0, .18);
  --radius: 12px; --radius-sm: 8px;
  font-family: "Pretendard", "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
}
[data-theme="youtube"] {
  color-scheme: dark;
  --bg: #0f0f0f; --panel: #181818; --panel-2: #212121; --ink: #f1f1f1; --muted: #aaaaaa; --line: #2c2c2c; --line-strong: #3f3f3f;
  --primary: #ff0033; --primary-ink: #ffffff; --primary-hover: #e0002d; --primary-soft: rgba(255, 0, 51, .14);
  --accent: #ff0033; --accent-ink: #ffffff; --accent-hover: #e0002d;
  --ok: #2ba640; --ok-bg: rgba(43, 166, 64, .18); --warn: #ffb020; --warn-bg: rgba(255, 176, 32, .16); --err: #ff4e45; --err-bg: rgba(255, 78, 69, .18); --info: #3ea6ff; --info-bg: rgba(62, 166, 255, .16);
  --side: #0f0f0f; --side-ink: #f1f1f1; --side-muted: #aaaaaa; --side-hover: #272727; --side-active: #272727; --side-active-ink: #ffffff; --side-line: #2c2c2c;
  --mark-bg: #ff0033; --mark-ink: #ffffff;
  --thumb-bg: #000000; --thumb-ink: #8a8a8a;
  --code-bg: #272727; --chip-bg: #272727; --hover: #212121; --input-bg: #121212; --focus: rgba(255, 0, 51, .28);
  --tab-active: #f1f1f1; --shadow: none; --shadow-lg: 0 16px 48px rgba(0, 0, 0, .6);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.5; }
a { color: var(--info); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.3; letter-spacing: -.01em; }
h1 { font-size: 1.35rem; font-weight: 800; } h2 { font-size: 1.05rem; font-weight: 700; } h3 { font-size: .95rem; font-weight: 700; }
p { margin: 0 0 .6rem; }
code { background: var(--code-bg); padding: 1px 6px; border-radius: 5px; font-size: .9em; }
pre { background: var(--code-bg); padding: 10px 12px; border-radius: var(--radius-sm); overflow: auto; white-space: pre-wrap; word-break: break-all; }
hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
::selection { background: var(--primary-soft); }

/* ---------------------------------------------------------------- layout */
#app { min-height: 100%; }
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { background: var(--side); color: var(--side-ink); padding: 16px 12px; position: sticky; top: 0; height: 100vh; overflow: auto; border-right: 1px solid var(--side-line); display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 16px; color: var(--side-ink); }
.brand .mark { width: 34px; height: 34px; border-radius: 9px; background: var(--mark-bg); color: var(--mark-ink); display: grid; place-items: center; flex: none; }
.brand .mark svg { display: block; }
.brand > div:last-child { display: flex; flex-direction: column; justify-content: center; line-height: 1.25; }
.brand b { font-size: 1rem; display: block; } .brand small { color: var(--side-muted); font-size: .74rem; display: block; }
.nav { flex: 1; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--side-ink); margin-bottom: 2px; font-size: .9rem; }
.nav a span:first-child { width: 18px; text-align: center; color: var(--side-muted); font-size: .85rem; }
.nav a:hover { background: var(--side-hover); }
.nav a.active { background: var(--side-active); color: var(--side-active-ink); font-weight: 700; }
.nav a.active span:first-child { color: var(--side-active-ink); }
.nav .cnt { margin-left: auto; background: var(--chip-bg); color: var(--side-ink); border-radius: 999px; padding: 0 8px; font-size: .72rem; }
.nav .cnt.hot { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.nav .sec { font-size: .68rem; letter-spacing: .08em; color: var(--side-muted); padding: 14px 10px 6px; text-transform: uppercase; }
.side .user { margin-top: 12px; padding: 12px; border-radius: 10px; border: 1px solid var(--side-line); font-size: .82rem; color: var(--side-muted); }
.side .user b { color: var(--side-ink); display: block; }
.side .user .row-flex { margin-top: 8px; }
.theme-sw { display: flex; gap: 4px; margin-top: 10px; padding: 3px; border-radius: 9px; background: var(--chip-bg); }
.theme-sw button { flex: 1; border: 0; background: transparent; color: var(--side-muted); padding: 5px 4px; border-radius: 7px; cursor: pointer; font-size: .76rem; font-weight: 600; }
.theme-sw button.active { background: var(--panel); color: var(--side-ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.main { padding: 22px 28px 60px; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.topbar .actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- components */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.card + .card { margin-top: 14px; }
.card h2, .card h3 { display: flex; align-items: center; gap: 8px; }
.card h2 .sub, .card h3 .sub { font-weight: 400; color: var(--muted); font-size: .82rem; margin-left: auto; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-side { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-side { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .shell { grid-template-columns: 1fr; } .side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--side-line); } .g2, .g3, .g4 { grid-template-columns: 1fr; } .main { padding: 16px; } }

.kpi { display: flex; flex-direction: column; gap: 3px; }
a.kpi { color: var(--ink); } a.kpi:hover { border-color: var(--line-strong); }
.kpi .v { font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; }
.kpi .l { color: var(--muted); font-size: .8rem; }
.kpi .d { font-size: .76rem; } .kpi .d.up { color: var(--ok); } .kpi .d.down { color: var(--err); }

.btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--panel); color: var(--ink); cursor: pointer; font-weight: 600; font-size: .85rem; white-space: nowrap; line-height: 1.3; }
.btn:hover { background: var(--hover); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn.accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.danger { color: var(--err); } .btn.danger:hover { background: var(--err-bg); }
.btn.ok { color: var(--ok); } .btn.ok:hover { background: var(--ok-bg); }
.btn.sm { padding: 4px 9px; font-size: .78rem; border-radius: 7px; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--hover); }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: .73rem; font-weight: 700; background: var(--chip-bg); color: var(--ink); white-space: nowrap; }
.badge.s-submitted, .badge.s-in_review, .badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.s-changes_requested, .badge.s-rejected, .badge.err { background: var(--err-bg); color: var(--err); }
.badge.s-approved, .badge.s-published, .badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.s-scheduled, .badge.info { background: var(--info-bg); color: var(--info); }
.badge.s-draft, .badge.s-archived { background: var(--chip-bg); color: var(--muted); }
.badge.fmt-shorts { background: var(--primary-soft); color: var(--primary); } [data-theme="youtube"] .badge.fmt-shorts { color: #ff6b85; }
.badge.fmt-long { background: var(--info-bg); color: var(--info); }
.badge.campus { color: #fff; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

.table { width: 100%; border-collapse: collapse; font-size: .87rem; }
.table th, .table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { color: var(--muted); font-weight: 600; font-size: .76rem; letter-spacing: .02em; }
.table tr:hover td { background: var(--hover); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table tr.click { cursor: pointer; }

.form { display: grid; gap: 12px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
@media (max-width: 760px) { .form .row, .form .row3 { grid-template-columns: 1fr; } }
label.f { display: block; font-size: .8rem; color: var(--muted); font-weight: 600; line-height: 1.4; }
label.f > input, label.f > select, label.f > textarea { display: block; margin-top: 5px; font-weight: 400; color: var(--ink); }
label.f > .row-flex { margin-top: 5px; }
input[type=text], input[type=password], input[type=number], input[type=url], input[type=datetime-local], input[type=date], input[type=color], select, textarea {
  width: 100%; padding: 8px 11px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--input-bg); color: var(--ink); outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--focus); }
textarea { min-height: 84px; resize: vertical; }
input[type=color] { padding: 2px; height: 36px; }
input[type=range] { width: 100%; accent-color: var(--primary); }
input[type=checkbox] { accent-color: var(--primary); }
.check { display: flex; align-items: flex-start; gap: 8px; font-size: .87rem; cursor: pointer; }
.check input { margin-top: 3px; }
.hint { color: var(--muted); font-size: .78rem; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.right { text-align: right; } .center { text-align: center; }
.row-flex { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.mt { margin-top: 12px; } .mb { margin-bottom: 12px; }

.drop { border: 2px dashed var(--line-strong); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--muted); background: var(--panel-2); cursor: pointer; }
.drop.over { border-color: var(--primary); background: var(--primary-soft); }
.drop b { color: var(--ink); }

.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.vcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: transform .12s, box-shadow .12s, border-color .12s; }
.vcard:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: 0 8px 24px rgba(0, 0, 0, .08); }
.vcard .th { aspect-ratio: 16/9; background: var(--thumb-bg); display: grid; place-items: center; color: var(--thumb-ink); position: relative; overflow: hidden; }
.vcard .th img { width: 100%; height: 100%; object-fit: cover; }
.vcard .th .dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, .8); color: #fff; font-size: .72rem; padding: 1px 6px; border-radius: 5px; }
.vcard .th .nothumb { position: absolute; left: 8px; top: 8px; background: rgba(194, 43, 61, .92); color: #fff; font-size: .7rem; padding: 2px 7px; border-radius: 6px; }
.vcard .body { padding: 10px 12px 12px; }
.vcard .t { font-weight: 700; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.vcard .meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.thumb-empty { display: grid; place-items: center; color: var(--thumb-ink); font-size: .7rem; background: var(--thumb-bg); border-radius: 8px; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--panel); color: var(--ink); cursor: pointer; font-size: .8rem; font-weight: 600; }
.chip:hover { background: var(--hover); }
.chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 14px; cursor: pointer; font-weight: 600; color: var(--muted); white-space: nowrap; margin-bottom: -1px; }
.tabs button:hover { color: var(--ink); }
.tabs button.active { color: var(--tab-active); border-bottom-color: var(--tab-active); }

.list { display: flex; flex-direction: column; }
.list .item { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list .item:last-child { border-bottom: 0; }
.list .item .thumb { width: 96px; aspect-ratio: 16/9; border-radius: 8px; background: var(--thumb-bg); object-fit: cover; flex: none; }
.list .item .grow { flex: 1; min-width: 0; }
.list .item .t { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .item.click { cursor: pointer; }
.list .item.click:hover .t { color: var(--primary); } [data-theme="youtube"] .list .item.click:hover .t { color: var(--info); }

.issue { display: flex; gap: 8px; align-items: flex-start; padding: 7px 10px; border-radius: var(--radius-sm); margin-bottom: 6px; font-size: .85rem; }
.issue.error { background: var(--err-bg); color: var(--err); } .issue.warn { background: var(--warn-bg); color: var(--warn); } .issue.ok { background: var(--ok-bg); color: var(--ok); }

.player { width: 100%; max-height: 420px; background: #000; border-radius: 10px; }
.player.vert { max-height: 520px; }

/* thumbnail studio */
.frames { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.frame { position: relative; border-radius: 8px; overflow: hidden; border: 2px solid transparent; cursor: pointer; background: var(--thumb-bg); aspect-ratio: 16/10; }
.frame img { width: 100%; height: 100%; object-fit: contain; }
.frame.sel { border-color: var(--accent); }
.frame .n, .selframe .n { position: absolute; left: 5px; top: 5px; background: var(--accent); color: var(--accent-ink); font-size: .7rem; font-weight: 800; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; }
.frame .t { position: absolute; right: 5px; bottom: 5px; background: rgba(0, 0, 0, .7); color: #fff; font-size: .68rem; padding: 0 5px; border-radius: 4px; }
.frame .k { position: absolute; left: 5px; bottom: 5px; background: rgba(37, 84, 199, .85); color: #fff; font-size: .62rem; padding: 0 5px; border-radius: 4px; }
.frame .x, .selframe .x { position: absolute; right: 4px; top: 4px; background: rgba(0, 0, 0, .7); color: #fff; border: 0; border-radius: 50%; width: 20px; height: 20px; cursor: pointer; font-size: .7rem; }
.preview { width: 100%; aspect-ratio: 16/9; background: var(--thumb-bg); border-radius: 10px; overflow: hidden; display: grid; place-items: center; color: var(--thumb-ink); position: relative; }
.preview img { width: 100%; height: 100%; object-fit: contain; }
.preview .loading { position: absolute; inset: 0; background: rgba(0, 0, 0, .35); display: grid; place-items: center; color: #fff; font-weight: 700; }
.selframes { display: flex; gap: 8px; flex-wrap: wrap; }
.selframe { width: 150px; position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); cursor: crosshair; background: var(--thumb-bg); }
.selframe img { width: 100%; display: block; }
.selframe .fp { position: absolute; width: 14px; height: 14px; border: 2px solid var(--accent); border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 2px rgba(0, 0, 0, .5); pointer-events: none; }
.layouts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.layout { border: 1px solid var(--line-strong); border-radius: 9px; padding: 8px 10px; cursor: pointer; font-size: .8rem; }
.layout:hover { background: var(--hover); }
.layout b { display: block; font-size: .84rem; } .layout span { color: var(--muted); font-size: .74rem; }
.layout.active { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 1px var(--primary); }
.versions { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.version { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.version.active { border-color: var(--ok); box-shadow: 0 0 0 1px var(--ok); }
.version img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: var(--thumb-bg); }
.version .b { padding: 6px 8px; display: flex; justify-content: space-between; align-items: center; font-size: .76rem; }

.progress { height: 8px; background: var(--chip-bg); border-radius: 999px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--primary); transition: width .4s; }
.job { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--panel-2); border: 1px solid var(--line); font-size: .84rem; }
.job.error { background: var(--err-bg); border-color: transparent; color: var(--err); } .job.done { background: var(--ok-bg); border-color: transparent; color: var(--ok); }

.comment { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.comment:last-child { border-bottom: 0; }
.comment .who { font-weight: 700; } .comment .when { color: var(--muted); font-size: .74rem; margin-left: 6px; }
.comment.admin .who { color: var(--primary); } [data-theme="youtube"] .comment.admin .who { color: var(--info); }

.toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 50; }
.toast { background: #1b1d2a; color: #fff; padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow-lg); max-width: 420px; font-size: .87rem; white-space: pre-wrap; animation: pop .18s ease-out; }
.toast.err { background: #a61f38; } .toast.ok { background: #126b48; } .toast.warn { background: #9a5b00; }
[data-theme="youtube"] .toast { background: #f1f1f1; color: #0f0f0f; } [data-theme="youtube"] .toast.err { background: #ff4e45; color: #fff; } [data-theme="youtube"] .toast.ok { background: #2ba640; color: #fff; } [data-theme="youtube"] .toast.warn { background: #f5a623; color: #0f0f0f; }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }

.modal-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); display: grid; place-items: center; z-index: 40; padding: 20px; }
.modal { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; width: min(640px, 100%); max-height: 90vh; overflow: auto; box-shadow: var(--shadow-lg); }
.modal h2 { margin-bottom: 14px; }
.modal .foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

.login { min-height: 100vh; display: grid; place-items: center; background: var(--panel-2); }
[data-theme="youtube"] .login { background: radial-gradient(900px 500px at 15% -10%, rgba(255, 0, 51, .25), transparent), var(--bg); }
.login .card { width: min(400px, 92vw); padding: 28px; }
.login .brand { color: var(--ink); padding-bottom: 10px; }
.login .brand small { color: var(--muted); }

.banner { padding: 11px 14px; border-radius: 10px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: .87rem; }
.banner.info { background: var(--info-bg); color: var(--info); } .banner.warn { background: var(--warn-bg); color: var(--warn); } .banner.ok { background: var(--ok-bg); color: var(--ok); }
.banner .btn { margin-left: auto; }

.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal .h { text-align: center; color: var(--muted); font-size: .76rem; padding: 4px; }
.cal .d { min-height: 96px; border: 1px solid var(--line); border-radius: 8px; padding: 6px; background: var(--panel); font-size: .76rem; }
.cal .d.other { opacity: .4; } .cal .d.today { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.cal .d .n { font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.cal .ev { padding: 2px 6px; border-radius: 5px; margin-bottom: 3px; color: #fff; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal .slot { padding: 2px 6px; border: 1px dashed var(--line-strong); border-radius: 5px; color: var(--muted); margin-bottom: 3px; }

.bars { display: flex; flex-direction: column; gap: 6px; }
.bar { display: grid; grid-template-columns: 110px 1fr 70px; gap: 8px; align-items: center; font-size: .82rem; }
.bar i { display: block; height: 14px; border-radius: 4px; background: var(--primary); }
.sw { width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line); display: inline-block; vertical-align: middle; }
.empty { padding: 28px; text-align: center; color: var(--muted); }
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--line-strong); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 4px 10px; font-size: .85rem; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.tagline { display: flex; gap: 4px; flex-wrap: wrap; }
.tagline span { background: var(--chip-bg); padding: 1px 7px; border-radius: 6px; font-size: .76rem; }
.ytbox { background: #0f0f0f; color: #fff; padding: 12px 14px; border-radius: 10px; font-size: .87rem; border: 1px solid #2c2c2c; }
.ytbox .t { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.ytbox .d { white-space: pre-wrap; color: #cfcfcf; max-height: 180px; overflow: auto; font-size: .78rem; }
.logo-box { background: var(--thumb-bg); padding: 12px; border-radius: 8px; display: inline-block; }
