/* THETRENDTUTOR STUDIO · panel teması (koyu, yayın masası tarzı). Yazı tipi: yerel Inter (overlay/fonts), simgeler: Lucide (ISC) çizgileri. */
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(/fonts/inter-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(/fonts/inter-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url(/fonts/inter-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: Inter; font-weight: 800; font-display: swap; src: url(/fonts/inter-latin-800-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(/fonts/inter-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(/fonts/inter-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url(/fonts/inter-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: Inter; font-weight: 800; font-display: swap; src: url(/fonts/inter-latin-ext-800-normal.woff2) format('woff2'); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: JBM; font-weight: 600; font-display: swap; src: url(/fonts/jetbrains-mono-latin-600-normal.woff2) format('woff2'); }

:root {
  --bg: #0A0E17; --panel: #111827; --panel2: #161F31; --panel3: #1C2840; --line: #1F2A3D; --line2: #2A3852;
  --text: #E8ECF3; --muted: #8C97AB; --dim: #5E6A80;
  --accent: #FFB020; --accent-d: #3A2A08; --danger: #FF3B5C; --danger-d: #3A0F1A; --ok: #00D68F; --ok-d: #072E22; --blue: #3B82F6;
  --r: 12px; --r2: 16px; --tb: 60px; --sbw: 232px; --shadow: 0 10px 30px rgba(0,0,0,.35);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 500 15px/1.45 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
i[data-i] { display: inline-flex; width: 18px; height: 18px; flex: none; } i[data-i] svg { width: 100%; height: 100%; }
.muted { color: var(--muted); } .small { font-size: 13px; }
h1 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.3px; }
h2 { margin: 26px 0 10px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; }
h3 { margin: 0; font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; } h3 i[data-i] { color: var(--accent); }
kbd { font: 600 11px JBM, ui-monospace, monospace; padding: 1px 5px; border-radius: 5px; border: 1px solid rgba(255,255,255,.25); opacity: .75; margin-left: 4px; }

/* form */
input, select { width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line2); background: var(--panel2); outline: none; min-height: 46px; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,176,32,.15); }
input.num { max-width: 100px; } input[type=checkbox] { width: 20px; height: 20px; min-height: 0; accent-color: var(--accent); }
input[type=range] { padding: 0; min-height: 36px; accent-color: var(--accent); background: transparent; border: 0; box-shadow: none; }
label { display: block; margin: 12px 0; } label > span { display: block; color: var(--muted); font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.lbl { color: var(--muted); font-size: 13px; font-weight: 600; margin: 14px 0 6px; }
.form2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; } .opts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.row { display: flex; gap: 10px; align-items: center; margin: 10px 0; } .row.wrap { flex-wrap: wrap; } .row.tight { margin: 0; }
.act { display: flex; gap: 10px; justify-content: flex-end; margin: 14px 0; flex-wrap: wrap; } .act.left { justify-content: flex-start; }
.chk { display: inline-flex; align-items: center; gap: 8px; margin: 6px 14px 6px 0; font-size: 14px; }

/* düğmeler */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line2); background: var(--panel3); cursor: pointer; font-weight: 700; touch-action: manipulation; transition: background .15s, border-color .15s, transform .08s, opacity .15s; white-space: nowrap; }
.btn:hover { border-color: #3a4b6b; } .btn:active { transform: scale(.98); } .btn:disabled { opacity: .4; cursor: default; transform: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #1A1204; } .btn.primary:hover { background: #ffbe45; }
.btn.live { background: var(--danger); border-color: var(--danger); color: #fff; } .btn.live:hover { background: #ff5574; }
.btn.ghost { background: transparent; } .btn.sm { min-height: 34px; padding: 5px 11px; font-size: 13px; border-radius: 8px; }
.btn.danger-o { border-color: var(--danger); color: var(--danger); background: transparent; }
.ib { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; border: 1px solid transparent; background: transparent; cursor: pointer; color: var(--muted); }
.ib:hover { background: var(--panel3); color: var(--text); } .ib.on { background: var(--accent-d); color: var(--accent); border-color: #6b4c0e; }
.lnk { border: 0; background: none; color: var(--accent); font-weight: 700; cursor: pointer; font-size: 13px; }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); } .seg.wrap { flex-wrap: wrap; }
.seg button { flex: 1; min-height: 38px; padding: 6px 10px; border-radius: 9px; border: 0; background: transparent; font-weight: 700; color: var(--muted); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.seg button:hover { color: var(--text); } .seg button.on { background: var(--panel3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line2), 0 0 0 0 transparent; } .seg button.on::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: 2px; }

/* üst çubuk */
.tb { position: sticky; top: 0; z-index: 30; height: var(--tb); display: flex; align-items: center; gap: 14px; padding: 0 16px; padding-top: env(safe-area-inset-top); background: rgba(10,14,23,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; border: 0; background: none; cursor: pointer; padding: 0; text-align: left; }
.badge-logo { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, #1C2840, #0E1525); border: 1px solid var(--line2); display: grid; place-items: center; } .badge-logo img { width: 26px; height: 22px; }
.brand-t { display: flex; flex-direction: column; line-height: 1.1; } .brand-t b { font-size: 15px; font-weight: 800; } .brand-t small { font-size: 11px; color: var(--accent); font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.live-badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 8px; font-size: 12px; font-weight: 800; letter-spacing: 1px; background: var(--panel2); color: var(--muted); border: 1px solid var(--line2); }
.live-badge.on { background: var(--danger); color: #fff; border-color: var(--danger); } .live-badge.on::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink 1.4s infinite; }
.live-badge.warn { background: var(--accent-d); color: var(--accent); border-color: #6b4c0e; }
@keyframes blink { 50% { opacity: .25; } }
.kbps { display: flex; gap: 6px; overflow: hidden; }
.kb { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); font: 600 12px JBM, ui-monospace, monospace; color: var(--text); white-space: nowrap; } .kb svg { width: 14px; height: 14px; } .kb.bad { color: var(--danger); border-color: #5a1a28; } .kb.off { color: var(--dim); }
.tb-sp { flex: 1; }
.clock { display: flex; align-items: center; gap: 7px; font: 600 15px JBM, ui-monospace, monospace; color: var(--text); } .clock i { color: var(--muted); width: 16px; height: 16px; } .clock small { font: 600 11px Inter, sans-serif; color: var(--muted); }
.um { position: relative; }
.um-btn { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--panel); border-radius: 22px; padding: 3px 10px 3px 3px; cursor: pointer; }
.av { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #1A1204; display: grid; place-items: center; } .av i { width: 16px; height: 16px; }
.um-n { font-weight: 700; font-size: 13px; } .um-ch { width: 14px; height: 14px; color: var(--muted); }
.um-menu { position: absolute; right: 0; top: 46px; min-width: 240px; background: var(--panel); border: 1px solid var(--line2); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; z-index: 40; }
.um-h { padding: 10px 10px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: flex; flex-direction: column; } .um-h small { color: var(--muted); font-size: 12px; }
.um-menu button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px; border: 0; background: none; border-radius: 8px; cursor: pointer; font-weight: 600; text-align: left; } .um-menu button:hover { background: var(--panel3); } .danger-t { color: var(--danger); }

/* yerleşim */
.shell { display: flex; min-height: calc(100vh - var(--tb)); }
.sb { position: sticky; top: var(--tb); height: calc(100vh - var(--tb)); width: var(--sbw); flex: none; overflow-y: auto; padding: 14px 10px 20px; border-right: 1px solid var(--line); background: #0C111B; }
.sb .grp { font-size: 11px; font-weight: 800; color: var(--dim); text-transform: uppercase; letter-spacing: 1px; margin: 16px 12px 6px; } .sb .grp:first-child { margin-top: 2px; }
.nav { width: 100%; display: flex; align-items: center; gap: 11px; padding: 9px 12px; margin: 1px 0; border: 0; border-radius: 10px; background: none; color: var(--muted); font-weight: 600; cursor: pointer; text-align: left; position: relative; }
.nav:hover { background: var(--panel); color: var(--text); } .nav.on { background: var(--panel3); color: var(--text); } .nav.on::before { content: ''; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); } .nav.on i { color: var(--accent); }
.nav .cnt { margin-left: auto; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 10px; background: var(--danger); color: #fff; }
main { flex: 1; min-width: 0; padding: 20px 26px 60px; max-width: 1640px; }
.page { display: none; animation: fade .2s ease; } .page.on { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }
.ph { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; } .ph p { margin: 0; color: var(--muted); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r2); padding: 16px; margin: 14px 0; }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; } .two > .card { margin: 14px 0 0; }
.info { padding: 12px 14px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); margin: 10px 0; }
.warn { padding: 10px 14px; border-radius: var(--r); background: var(--accent-d); border: 1px solid #6b4c0e; color: #ffd690; font-weight: 600; font-size: 14px; }
.pre { white-space: pre-wrap; font: 500 13px/1.6 JBM, ui-monospace, monospace; margin: 0; }
.setting { display: flex; gap: 20px; align-items: center; justify-content: space-between; } .setting .seg { flex: 0 0 210px; } .setting p { margin: 4px 0 0; }

/* sahne: CANLI + ÖNİZLEME */
.stage { display: grid; grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); gap: 14px; margin-bottom: 8px; align-items: start; }
.stage.solo { grid-template-columns: minmax(0, 1fr); }
.stage.solo .pane.pv { display: none; }
.stage.solo .pane.live .frame { max-height: calc(100vh - 230px); }
.pane { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r2); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.pane.pv { border-color: #3a2f12; }
.pane-h { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-bottom: 1px solid var(--line); min-height: 48px; }
.ph-t { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; letter-spacing: 1.2px; } .ph-t .rec { width: 9px; height: 9px; border-radius: 50%; background: var(--danger); animation: blink 1.4s infinite; } .pvt { color: var(--accent); } .pvt i { width: 15px; height: 15px; }
.ph-s { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ph-tools { margin-left: auto; display: flex; gap: 2px; }
.frame { position: relative; aspect-ratio: 16/9; background: #000; overflow: hidden; }
.fz { position: absolute; inset: 0; transform-origin: 50% 50%; transition: transform .25s ease; } .zoomed .fz { transform: scale(2); cursor: zoom-out; }
.fz img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.fz img:not([src]) { visibility: hidden; }
.safe-ov { position: absolute; inset: 0; pointer-events: none; display: none; } .safe .safe-ov { display: block; }
.safe-ov i { position: absolute; inset: 0.84% 0.84% 1.48% 0.84%; border: 1px dashed rgba(0,214,143,.85); } .safe-ov b { position: absolute; inset: 5%; border: 1px dashed rgba(255,176,32,.8); }
.safe-ov::after { content: 'kenar 16px · başlık güvenli alanı %90'; position: absolute; left: 6px; bottom: 6px; font-size: 10px; font-weight: 700; background: rgba(0,0,0,.7); padding: 1px 6px; border-radius: 4px; color: #cfe; }
.cmp-base { display: none; } .cmp .cmp-base { display: block; }
.cmp #pv-img { clip-path: inset(0 0 0 var(--cmp, 50%)); }
.cmp-line { display: none; position: absolute; top: 0; bottom: 0; left: var(--cmp, 50%); width: 2px; background: var(--accent); box-shadow: 0 0 0 1px rgba(0,0,0,.5); pointer-events: none; }
.cmp .cmp-line { display: block; } .cmp-line span { position: absolute; top: 8px; font-size: 10px; font-weight: 800; letter-spacing: 1px; padding: 2px 6px; border-radius: 4px; background: rgba(0,0,0,.75); white-space: nowrap; } .cmp-line span:first-child { right: 8px; color: #ffb3c0; } .cmp-line span:last-child { left: 8px; color: var(--accent); }
.cmp-r { display: none; position: absolute; left: 10px; right: 10px; bottom: 6px; width: auto; } .cmp .cmp-r { display: block; }
.pv-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 20px; color: var(--muted); background: repeating-linear-gradient(135deg, #0b101a 0 14px, #0d1320 14px 28px); }
.pv-empty i { width: 34px; height: 34px; color: var(--dim); } .pv-empty b { color: var(--text); } .pv-empty span { font-size: 13px; max-width: 360px; }
.has-pv .pv-empty { display: none; }
.pv-busy { position: absolute; right: 10px; top: 10px; display: none; } .busy .pv-busy { display: block; }
.spin { display: block; width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(255,176,32,.25); border-top-color: var(--accent); animation: rot .8s linear infinite; } @keyframes rot { to { transform: rotate(360deg); } }
.pv-foot { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.pv-info { flex: 1; min-width: 180px; display: flex; flex-direction: column; } .pv-info b { font-size: 14px; } .pv-info span { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.pv-act { display: flex; gap: 8px; }
.stage.pv-off .pane.pv .pv-empty b::after { content: ' (önizleme kapalı)'; }
.pane:fullscreen { border-radius: 0; border: 0; justify-content: center; } .pane:fullscreen .frame { aspect-ratio: auto; flex: 1; }
.sk-frame { position: absolute; inset: 0; } .live-ok .sk-frame { display: none; }

/* listeler, kartlar */
.list { display: flex; flex-direction: column; gap: 8px; }
.item { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 11px; background: var(--panel2); border: 1px solid var(--line); }
.item .grow { flex: 1; min-width: 0; } .item .t { font-weight: 700; overflow-wrap: anywhere; } .item .s { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; } .item .tm { color: var(--dim); font-size: 12px; white-space: nowrap; font-family: JBM, monospace; }
.tag { font-size: 11px; font-weight: 800; padding: 3px 7px; border-radius: 6px; background: var(--panel3); color: var(--text); flex: none; letter-spacing: .3px; }
.tag.y { background: var(--accent-d); color: var(--accent); } .tag.r { background: var(--danger-d); color: #ff8aa0; } .tag.g { background: var(--ok-d); color: var(--ok); } .tag.b { background: #0f2545; color: #93c0ff; }
.empty { color: var(--muted); font-size: 13px; padding: 14px; border: 1px dashed var(--line2); border-radius: 11px; text-align: center; }
.onair { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.chip { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 20px; background: var(--danger-d); color: #ffb3c0; border: 1px solid #5a1a28; } .chip.n { background: var(--ok-d); color: var(--ok); border-color: #0f4d39; }
.qa { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.qa-b { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; min-height: 104px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; text-align: left; transition: border-color .15s, background .15s, transform .08s; }
.qa-b:hover { border-color: var(--line2); background: var(--panel2); } .qa-b:active { transform: scale(.98); } .qa-b i { width: 22px; height: 22px; color: var(--accent); margin-bottom: 6px; } .qa-b b { font-size: 14px; } .qa-b small { color: var(--muted); font-size: 12px; }
.qa-b.danger { border-color: #5a1a28; background: linear-gradient(180deg, #2a0c14, var(--panel)); } .qa-b.danger i { color: var(--danger); } .qa-b.danger b { color: #ff8aa0; }
.hc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.hcard { padding: 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); min-height: 96px; display: flex; flex-direction: column; gap: 4px; position: relative; overflow: hidden; }
.hcard .k { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; } .hcard .k svg, .hcard .k i { width: 16px; height: 16px; }
.hcard .v { font: 700 24px JBM, ui-monospace, monospace; letter-spacing: -.5px; } .hcard .v small { font: 600 12px Inter, sans-serif; color: var(--muted); margin-left: 4px; } .hcard .s { font-size: 12px; color: var(--muted); }
.hcard::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--dim); } .hcard.ok::after { background: var(--ok); } .hcard.bad::after { background: var(--danger); } .hcard.warn::after { background: var(--accent); }
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.tile { text-align: left; padding: 12px; min-height: 120px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; gap: 6px; cursor: pointer; position: relative; transition: border-color .15s, background .15s; }
.tile:hover { border-color: var(--line2); } .tile .mini { height: 46px; border-radius: 7px; background: #0b111d; border: 1px solid var(--line); position: relative; overflow: hidden; } .tile .mini i { position: absolute; background: #23324f; border-radius: 2px; } .tile .mini i.c { background: #2c4a7a; } .tile .mini i.a { background: var(--accent); opacity: .8; }
.tile b { font-size: 14px; } .tile span { color: var(--muted); font-size: 12px; }
.tile.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); } .tile.live::after { content: 'YAYINDA'; position: absolute; right: 8px; top: 8px; font-size: 10px; font-weight: 800; letter-spacing: .8px; padding: 2px 6px; border-radius: 5px; background: var(--danger); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.chips button { min-height: 38px; padding: 6px 14px; border-radius: 20px; border: 1px solid var(--line2); background: var(--panel2); font-weight: 700; cursor: pointer; } .chips button:hover { border-color: #3a4b6b; } .chips button.on { background: var(--accent); border-color: var(--accent); color: #1A1204; }
.upload { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px; border: 2px dashed var(--line2); border-radius: 14px; text-align: center; cursor: pointer; background: var(--panel); } .upload i { width: 28px; height: 28px; color: var(--accent); } .upload span { color: var(--muted); font-size: 13px; } .upload input { display: none; }
.prog { height: 8px; border-radius: 4px; background: var(--panel2); overflow: hidden; margin-top: 8px; } .prog div { height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.lib .m { border-radius: 12px; overflow: hidden; background: var(--panel2); border: 1px solid var(--line); display: flex; flex-direction: column; }
.lib .m .th { aspect-ratio: 16/9; background: #000; display: flex; align-items: center; justify-content: center; } .lib .m .th img, .lib .m .th video { width: 100%; height: 100%; object-fit: contain; }
.lib .m .nm { font-size: 12px; padding: 7px 9px; color: var(--muted); overflow-wrap: anywhere; } .lib .m .bt2 { display: flex; gap: 6px; padding: 0 8px 8px; } .lib .m .bt2 .btn { flex: 1; }
.chat { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; max-height: 520px; overflow-y: auto; }
.msgc { display: flex; gap: 10px; align-items: flex-start; padding: 9px 11px; border-radius: 11px; background: var(--panel2); border: 1px solid var(--line); }
.msgc .pf { width: 20px; height: 20px; flex: none; margin-top: 2px; } .msgc .pf svg { width: 20px; height: 20px; } .msgc .u { font-weight: 800; } .msgc .tm { color: var(--dim); font-size: 12px; margin-left: 6px; }
.msgc .x { overflow-wrap: anywhere; } .msgc .grow { flex: 1; min-width: 0; } .msgc.bot { opacity: .55; } .msgc .bad { color: #ff8aa0; font-size: 12px; font-weight: 700; margin-top: 4px; }
.tr-box { padding: 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--accent); margin: 8px 0; } #tr-out { font-weight: 700; margin: 6px 0; overflow-wrap: anywhere; }
.src { font-size: 11px; font-weight: 800; padding: 3px 7px; border-radius: 6px; flex: none; } .src.telegram { background: #0f2c48; color: #8fcaff; } .src.web { background: #2a2208; color: var(--accent); } .src.auto, .src.schedule { background: var(--panel3); color: var(--muted); }

/* iskelet yükleyici */
.sk, .sk-inline, .sk-row { background: linear-gradient(90deg, #121a2a 0%, #1b2639 50%, #121a2a 100%); background-size: 200% 100%; animation: sh 1.3s linear infinite; }
.sk-inline { display: inline-block; min-width: 60px; border-radius: 6px; color: transparent; } .sk-row { height: 54px; border-radius: 11px; } .sk-card { height: 96px; border-radius: 14px; }
@keyframes sh { to { background-position: -200% 0; } }

/* bildirimler */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; min-width: 260px; max-width: 420px; padding: 12px 14px; border-radius: 12px; background: var(--panel3); border: 1px solid var(--line2); box-shadow: var(--shadow); font-weight: 600; font-size: 14px; animation: tin .25s ease; }
.toast i { width: 20px; height: 20px; } .toast.ok i { color: var(--ok); } .toast.err { border-color: #6b1d2c; } .toast.err i { color: var(--danger); } .toast.off i { color: var(--muted); } .toast.live { border-color: var(--danger); } .toast.live i { color: var(--danger); }
.toast.out { animation: tout .25s ease forwards; }
@keyframes tin { from { opacity: 0; transform: translateY(10px); } } @keyframes tout { to { opacity: 0; transform: translateY(10px); } }

/* alt sekmeler + menü sayfası (telefon) */
.bt { display: none; }
.sheet { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.6); display: flex; align-items: flex-end; }
.sheet-in { width: 100%; background: var(--panel); border-radius: 20px 20px 0 0; border-top: 1px solid var(--line2); padding: 14px 14px max(20px, env(safe-area-inset-bottom)); animation: up .2s ease; } @keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; } .sheet-g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sheet-g button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel2); font-weight: 600; font-size: 12px; cursor: pointer; } .sheet-g button i { width: 22px; height: 22px; color: var(--accent); } .sheet-g button.on { border-color: var(--accent); }

/* duyarlı */
.home-top { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.home-side h2 { margin-top: 14px; } .home-side .onair { margin-top: 0; } .home-side .qa { grid-template-columns: repeat(2, minmax(0, 1fr)); } .home-side .qa-b { min-height: 86px; } .home-side .qa-b.danger { grid-column: 1 / -1; }
.home-top .stage { margin-bottom: 0; }
@media (max-width: 1500px) { .home-top { grid-template-columns: minmax(0, 1fr); } .home-side .qa { grid-template-columns: repeat(4, minmax(0, 1fr)); } .home-side .qa-b.danger { grid-column: auto; } .qa { grid-template-columns: repeat(4, minmax(0, 1fr)); } .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1180px) { .stage { grid-template-columns: minmax(0, 1fr); } .kbps { display: none; } .hc { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .seg { flex-wrap: wrap; } .seg button { flex: 1 1 22%; padding: 6px; } .item { flex-wrap: wrap; } .item .grow { flex: 1 1 55%; } .item .tag { white-space: nowrap; flex: none; } .home-side .qa { grid-template-columns: repeat(2, minmax(0, 1fr)); } .home-side .qa-b.danger { grid-column: 1 / -1; }
  :root { --tb: 56px; }
  .sb { display: none; } main { padding: 14px 14px 100px; }
  .tb { gap: 10px; padding: 0 12px; } .brand-t { display: none; } .um-n, .um-ch, .clock small { display: none; } .clock { font-size: 14px; }
  .bt { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(12,17,27,.96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 6px 6px max(6px, env(safe-area-inset-bottom)); }
  .bt button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; border: 0; background: none; color: var(--muted); font-size: 11px; font-weight: 700; cursor: pointer; border-radius: 10px; } .bt button i { width: 22px; height: 22px; } .bt button.on { color: var(--accent); }
  .form2, .opts, .two { grid-template-columns: minmax(0, 1fr); } .qa { grid-template-columns: repeat(2, minmax(0, 1fr)); } .qa-b { min-height: 88px; padding: 12px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hc { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hcard .v { font-size: 20px; }
  h1 { font-size: 21px; } .ph { margin-bottom: 12px; } .ph p { font-size: 13px; width: 100%; }
  .toasts { left: 12px; right: 12px; bottom: 84px; align-items: stretch; } .toast { max-width: none; }
  .setting { flex-direction: column; align-items: stretch; } .setting .seg { flex: none; }
  .pv-act { width: 100%; } .pv-act .btn { flex: 1; } kbd { display: none; }
  .stage.solo .pane.live .frame { max-height: none; }
}

/* giriş sayfası */
body.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(1200px 600px at 20% -10%, #1a2440 0%, transparent 60%), radial-gradient(900px 500px at 110% 110%, #2a1d08 0%, transparent 55%), var(--bg); }
.login-card { width: 100%; max-width: 400px; background: rgba(17,24,39,.92); border: 1px solid var(--line2); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
.login-card .badge-logo { width: 54px; height: 54px; border-radius: 15px; margin-bottom: 14px; } .login-card .badge-logo img { width: 36px; height: 30px; }
.login-card h1 { font-size: 22px; } .login-card .sub { color: var(--muted); margin: 4px 0 18px; } .login-card .btn { width: 100%; margin-top: 6px; min-height: 48px; }
.steps { display: flex; gap: 6px; margin-bottom: 16px; } .steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--line2); } .steps i.on { background: var(--accent); }
.otp { font: 700 26px JBM, ui-monospace, monospace; letter-spacing: 10px; text-align: center; }
.msg { min-height: 22px; margin-top: 12px; color: #ff8aa0; font-weight: 600; font-size: 14px; } .msg.ok { color: var(--ok); }
.login-foot { margin-top: 16px; color: var(--dim); font-size: 12px; display: flex; gap: 8px; align-items: center; } .login-foot i { width: 14px; height: 14px; }
