/* Yeni sekmeler: Tema, Seviye, En İyi Veren, İstatistik, TTS */
.h3 { margin: 18px 0 6px; font-size: 14px; font-weight: 800; }
.themegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-top: 12px; }
.tcard { display: flex; flex-direction: column; gap: 8px; padding: 10px; text-align: left; border: 2px solid var(--line); border-radius: 12px; background: var(--bg); }
.tcard.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.tcard b { font-size: 13.5px; }
.tprev { position: relative; height: 128px; border-radius: 8px; background: #22242e; padding: 8px; display: flex; flex-direction: column; gap: 6px; overflow: hidden; font-family: var(--th-font, inherit); color: var(--th-ink, #fff); }
.tprev .tclock { font-size: 24px; font-weight: 700; padding: 0 10px 2px; text-align: center; background: var(--th-bg, rgba(12,12,18,.72)); border: var(--th-bw, 3px) solid #ff4f8b; border-radius: var(--th-radius, 8px); box-shadow: var(--th-shadow, none); width: 96px; }
.tprev .tbar { height: 14px; width: 60%; border-radius: calc(var(--th-radius, 8px) * .6); background: rgba(255,255,255,.14); overflow: hidden; border: 1px solid var(--th-border, transparent); }
.tprev .tbar i { display: block; height: 100%; width: 65%; background: linear-gradient(90deg, var(--th-a, #ff4f8b), var(--th-b, #2dd4ff)); }
.tprev .trow { display: flex; gap: 6px; align-items: center; font-size: 11px; width: 60%; padding: 3px 6px; background: var(--th-bg, rgba(12,12,18,.72)); border-radius: calc(var(--th-radius, 8px) * .6); box-shadow: var(--th-shadow, none); }
.tprev .trow em { margin-left: auto; font-style: normal; color: #4ade80; }
.tprev canvas { position: absolute; right: 6px; top: 22px; width: 76px; height: 76px; }
.slotgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin-top: 8px; }
.slotgrid label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }

.frames { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 10px; }
.frame { position: relative; border: 2px solid var(--line); border-radius: 12px; background: #1b1d24; overflow: hidden; padding: 0; height: 170px; text-align: left; }
.frame.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.frame iframe { border: 0; width: 640px; height: 420px; transform: scale(.4); transform-origin: 0 0; pointer-events: none; }
.frame span { position: absolute; left: 8px; bottom: 6px; font-size: 12px; background: rgba(0,0,0,.6); padding: 2px 8px; border-radius: 99px; }

/* İstatistik */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.tile { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.tile small { color: var(--muted); font-size: 12px; display: block; }
.tile b { white-space: nowrap; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; display: block; line-height: 1.2; }
.tile.wide { grid-column: span 2; } .tile.wide b { font-size: 32px; }
.tile .sub { color: var(--muted); font-size: 12px; }
.livedot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #ff3b5c; margin-right: 6px; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.gtable { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13.5px; }
.gtable th:first-child, .gtable td:first-child { width: 34px; }
.gtable th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; padding: 4px 6px; }
.gtable td { padding: 5px 6px; border-top: 1px solid var(--line); }
.gtable td.n { text-align: right; font-variant-numeric: tabular-nums; }
.gtable .who { display: flex; align-items: center; gap: 8px; }
.gbar { height: 5px; border-radius: 3px; background: linear-gradient(90deg, #ff4f8b, #2dd4ff); margin-top: 3px; }
.hist { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.hrow { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr auto; gap: 8px; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); cursor: pointer; text-align: left; }
.hrow:hover, .hrow.on { border-color: var(--accent); }
.hrow small { color: var(--muted); display: block; font-size: 11.5px; }
@media (max-width: 760px) { .hrow { grid-template-columns: 1fr 1fr; } .tile.wide { grid-column: span 1; } }
.banner { margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: #14301f; border: 1px solid #21603a; color: #b7f3cb; display: none; align-items: center; gap: 10px; flex-wrap: wrap; }
.banner.on { display: flex; }

/* TTS */
.ttsbox { background: #1b1d24; border: 1px solid var(--line); border-radius: 12px; padding: 14px; min-height: 130px; }
.ttsnow { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 700; min-height: 44px; }
.ttsnow .ico { font-size: 26px; } .ttsnow.on .ico { animation: blink .8s infinite; }
.ttslog { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; max-height: 150px; overflow: auto; font-size: 13px; color: var(--muted); }
.ttslog div { padding: 3px 0; border-bottom: 1px solid var(--line); }
input[type=range] { padding: 0; }
.rangev { display: inline-block; min-width: 42px; text-align: right; color: var(--muted); font-size: 12.5px; }

/* Ekran başına tema seçici (küçük önizlemeler) */
.themepick { margin-top: 14px; padding-top: 4px; border-top: 1px dashed var(--line); }
.themegrid.mini { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.tcard.mini { padding: 8px; gap: 6px; } .tcard.mini b { font-size: 12.5px; }
.tcard.mini .tprev { height: 92px; align-items: center; justify-content: center; padding: 6px; }
.tcard.mini .tprev canvas { position: static; width: 74px; height: 74px; }
.tcard.mini .tclock { font-size: 26px; width: auto; }
.tprev .pv-lb { width: 78%; } .pv-lb small { font-size: 9px; font-weight: 800; letter-spacing: .08em; display: block; margin-bottom: 3px; }
.pv-track { height: 16px; border-radius: calc(var(--th-radius, 8px) * .6); background: rgba(255,255,255,.14); overflow: hidden; border: 1px solid var(--th-border, transparent); }
.pv-track i { display: block; height: 100%; width: 64%; background: linear-gradient(90deg, var(--th-a, #ff4f8b), var(--th-b, #2dd4ff)); }
.tprev .pv-list { width: 88%; display: flex; flex-direction: column; gap: 4px; } .tcard.mini .pv-list { width: 94%; }
.pv-row { display: flex; gap: 6px; font-size: 11px; align-items: center; padding: 3px 7px; background: var(--th-bg, rgba(12,12,18,.72)); border-radius: calc(var(--th-radius, 8px) * .6); box-shadow: var(--th-shadow, none); }
.pv-row em { margin-left: auto; font-style: normal; color: #4ade80; }
.pv-pill { display: flex; align-items: center; gap: 7px; padding: 7px 12px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--th-bg, rgba(18,19,26,.85)); border: var(--th-bw, 0px) solid var(--th-border, transparent); border-radius: var(--th-radius, 12px); box-shadow: var(--th-shadow, none); }
.pv-ava { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--th-a, #ff4f8b), var(--th-b, #2dd4ff)); flex: none; }
.pv-card { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 12px; font-size: 12px; background: var(--th-bg, rgba(18,19,26,.85)); border: var(--th-bw, 0px) solid var(--th-border, transparent); border-radius: var(--th-radius, 12px); box-shadow: var(--th-shadow, none); }
.pv-card small { font-size: 8.5px; font-weight: 800; letter-spacing: .1em; opacity: .85; } .pv-card span { font-size: 22px; line-height: 1.1; } .pv-card em { font-style: normal; font-size: 11px; opacity: .85; }

/* Kendi görselim / videom düzenleyicisi */
.mline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.mline input[data-l="text"] { flex: 1 1 260px; min-width: 200px; }
.mline input[type=color] { width: 40px; height: 32px; padding: 2px; }
.mprev { position: relative; height: 290px; overflow: hidden; border: 2px solid var(--line); border-radius: 12px; background: #1b1d24; }
.mprev iframe { border: 0; width: 1000px; height: 580px; transform: scale(.5); transform-origin: 0 0; pointer-events: none; }
.pv-disc { width: 76px; height: 76px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--th-bg, radial-gradient(circle at 32% 28%, #232232, #100f18 72%)); border: 4px solid var(--th-border, #a855f7); box-shadow: var(--th-shadow, 0 0 14px rgba(168,85,247,.6)); color: var(--th-ink, #fff); font-family: var(--th-font, inherit); }
.pv-disc small { font-size: 13px; line-height: 1; } .pv-disc b { font-size: 17px; line-height: 1.1; }

/* Tema: palet seçici + açılır ekran temaları */
.palrow { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.palchip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border: 2px solid var(--line); border-radius: 99px; background: var(--bg); font-size: 13px; }
.palchip.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.palchip .sw { display: inline-flex; } .palchip .sw i { width: 14px; height: 22px; display: block; } .palchip .sw i:first-child { border-radius: 6px 0 0 6px; } .palchip .sw i:last-child { border-radius: 0 6px 6px 0; }
.tpd { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.tpd > summary { cursor: pointer; list-style: none; padding: 11px 14px; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; user-select: none; }
.tpd > summary::-webkit-details-marker { display: none; }
.tpd > summary::after { content: '▾'; margin-left: auto; color: var(--muted); transition: transform .2s; }
.tpd[open] > summary::after { transform: rotate(180deg); }
.tpd .tpcur { font-style: normal; font-weight: 600; font-size: 12px; color: var(--accent); background: rgba(255,255,255,.06); padding: 2px 10px; border-radius: 99px; }
.tpd > .hint, .tpd > .themegrid { margin-left: 14px; margin-right: 14px; } .tpd > .themegrid { margin-bottom: 14px; }
.tprev .pv-chip { font-size: 11px; padding: 3px 9px; font-weight: 700; background: var(--th-bg, rgba(12,12,18,.72)); position: absolute; left: 6px; bottom: 6px; }
.tcard.mini .tprev .pv-chip { position: static; margin-top: 4px; }
.tcard.mini .tprev:has(canvas) { flex-direction: column; gap: 2px; } .tcard.mini .tprev canvas { width: 60px; height: 60px; }
#themeGrid .tprev { height: 156px; }

/* Ceza-Koruma sekmesi */
.vsctl { display: grid; grid-template-columns: minmax(280px, 520px) 1fr; gap: 16px; align-items: start; margin-top: 8px; }
@media (max-width: 760px) { .vsctl { grid-template-columns: 1fr; } }
.vsprev { height: 150px; } .vsprev iframe { width: 1000px; height: 300px; transform: scale(.52); }
.vsbtns { display: flex; flex-direction: column; gap: 10px; }
.vsbtns .row { margin: 0; }
.vsstatus { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.25; }
.vsstatus small { display: block; color: var(--muted); font-size: 13px; font-weight: 600; margin-top: 2px; }
.vssides { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10px; }
@media (max-width: 760px) { .vssides { grid-template-columns: 1fr; } }
.vsside { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.vsside label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.vsside .row { margin: 0; align-items: center; }
.vsside input[type=color] { width: 44px; height: 38px; padding: 2px; }
.colist { display: flex; flex-direction: column; gap: 10px; margin: 10px 0; }
.coitem { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.coitem .row { margin: 4px 0; align-items: center; }
.coitem input[type=color] { width: 40px; height: 32px; padding: 2px; }
.pv-vs { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 12px; width: 124px; background: var(--th-bg, rgba(12,12,18,.78)); border: var(--th-bw, 2px) solid var(--th-border, rgba(255,255,255,.2)); border-radius: var(--th-radius, 10px); color: var(--th-ink, #fff); font-family: var(--th-font, inherit); }
.pv-vs small { font-size: 11px; font-weight: 800; }
.pv-vsbar { position: relative; width: 100%; height: 14px; border-radius: 8px; overflow: hidden; background: rgba(255,255,255,.12); }
.pv-vsbar i { position: absolute; inset: 0 auto 0 0; width: 58%; background: #ef4444; } .pv-vsbar b { position: absolute; inset: 0 0 0 58%; background: #22c55e; }

/* ---------- Eylemler - Olaylar ---------- */
.acttools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.acttools input[type=search] { flex: 1 1 220px; max-width: 360px; }
.acttools .chk { display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.acttable { margin: 0; min-width: 640px; } .acttable th { white-space: nowrap; } .acttable td { vertical-align: middle; }
.acttable .icons span { font-size: 18px; margin-right: 6px; } .acttable .empty { text-align: center; color: var(--muted); padding: 22px; }
.acttable .rowbtn { white-space: nowrap; text-align: right; } .acttable .rowbtn button { margin-left: 4px; }
.st-on { color: #4ade80; } .st-off { color: #ff5a7a; }
.copyurl { cursor: pointer; word-break: break-all; font-size: 12.5px; } .copyurl:hover { color: var(--cyan); }
/* pencereler */
dialog.adlg { width: min(720px, 94vw); max-height: 90vh; padding: 0; border: 1px solid var(--line); border-radius: 18px; background: #14102a; color: var(--text); box-shadow: 0 20px 70px rgba(0, 0, 0, .65), 0 0 40px rgba(139, 92, 246, .25); overflow: hidden; }
dialog.adlg[open] { display: flex; flex-direction: column; }
dialog.adlg::backdrop { background: rgba(4, 3, 12, .72); backdrop-filter: blur(4px); }
.adlg-h { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line); background: rgba(139, 92, 246, .1); }
.adlg-h h3 { margin: 0; font-size: 19px; } .adlg-x { background: transparent; border: 0; font-size: 18px; padding: 4px 8px; }
.adlg-b { padding: 16px 20px; overflow-y: auto; flex: 1; }
.adlg-f { display: flex; gap: 10px; align-items: center; padding: 12px 20px; border-top: 1px solid var(--line); background: rgba(10, 8, 22, .8); } .adlg-f .grow { flex: 1; }
.ah { margin: 18px 0 8px; font-weight: 700; font-size: 14.5px; } .ah small { color: var(--muted); font-weight: 500; }
.arow { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; font-size: 14px; } .arow small { color: var(--muted); }
.arow input { width: 18px; height: 18px; flex: none; } .arow.off { opacity: .45; cursor: not-allowed; }
.asub { margin: 0 0 8px 28px; padding: 10px 12px; border-left: 2px solid var(--violet); background: rgba(139, 92, 246, .07); border-radius: 0 10px 10px 0; display: flex; flex-direction: column; gap: 8px; }
.frow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .rrow { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13.5px; } .rrow label { display: flex; align-items: center; gap: 6px; }
.fld { display: flex; flex-direction: column; gap: 5px; font-size: 14px; margin: 6px 0; } .fld.inl { flex-direction: row; align-items: center; gap: 12px; } .fld.inl > :first-child { min-width: 0; }
.soonact { margin: 10px 0; color: var(--muted); } .soonact summary { cursor: pointer; font-size: 13.5px; }
.ainfo { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: rgba(34, 211, 238, .08); border: 1px solid rgba(34, 211, 238, .25); font-size: 13px; line-height: 1.6; }
.rlist { display: flex; flex-direction: column; } .alist { display: flex; flex-direction: column; max-height: 260px; overflow-y: auto; padding-right: 6px; }
.acttable td:first-child { white-space: nowrap; }
