:root {
  --bg: #f4f5fa;
  --panel: #ffffff;
  --text: #1c1f2e;
  --muted: #6b7088;
  --line: #e4e6ef;
  --brand: #4f46e5;
  --brand-2: #6366f1;
  --brand-soft: #eef0ff;
  --accent: #f97316;
  --accent-soft: #fff1e6;
  --ok: #16a34a;
  --ok-soft: #e8f7ee;
  --warn: #d97706;
  --warn-soft: #fff6e0;
  --bad: #dc2626;
  --bad-soft: #fdecec;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20, 22, 40, .06), 0 4px 16px rgba(20, 22, 40, .05);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  font-size: 14px;
  color: var(--text);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
a { color: var(--brand); }
h1, h2, h3 { margin: 0; font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- Yerleşim */
.kabuk { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.yan {
  background: #151833; color: #c9cbe3; padding: 18px 12px; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 4px;
}
.logo { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; color: #fff; font-weight: 700; font-size: 17px; }
.logo .ikon { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--brand-2), var(--accent)); display: grid; place-items: center; }
.yan a.menu {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; color: inherit; text-decoration: none;
}
.yan a.menu:hover { background: rgba(255,255,255,.06); color: #fff; }
.yan a.menu.secili { background: rgba(99,102,241,.22); color: #fff; }
.yan a.menu svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.yan .alt { margin-top: auto; padding: 12px; font-size: 12px; color: #8e91b3; border-top: 1px solid rgba(255,255,255,.08); }
.yan .alt button { background: none; border: 0; color: #c9cbe3; padding: 0; cursor: pointer; text-decoration: underline; }

.icerik { padding: 24px 28px 60px; min-width: 0; }
.ust { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.ust h1 { font-size: 22px; }
.ust .bosluk { flex: 1; }
.altbaslik { color: var(--muted); margin-top: 2px; }

.mobil-ust { display: none; }

@media (max-width: 860px) {
  .kabuk { grid-template-columns: 1fr; }
  .yan { position: fixed; z-index: 40; width: 240px; transform: translateX(-100%); transition: transform .2s; }
  .yan.acik { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.35); }
  .mobil-ust { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #151833; color: #fff; position: sticky; top: 0; z-index: 30; }
  .mobil-ust button { background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; }
  .icerik { padding: 16px 16px 60px; }
}

/* ---------- Bileşenler */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel.dolgu { padding: 18px; }
.panel h2 { font-size: 15px; margin-bottom: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: #fff;
  border-radius: 9px; padding: 8px 14px; cursor: pointer; font-weight: 500; white-space: nowrap; text-decoration: none; color: var(--text);
}
.btn:hover { border-color: #c9ccdb; background: #fafbff; }
.btn:disabled { opacity: .55; cursor: default; }
.btn.ana { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.ana:hover { background: #4338ca; }
.btn.turuncu { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.tehlike { color: var(--bad); }
.btn.tehlike:hover { background: var(--bad-soft); border-color: #f5c2c2; }
.btn.kucuk { padding: 5px 10px; font-size: 13px; border-radius: 7px; }
.btn.ikon { padding: 6px 8px; }
.btn svg { width: 16px; height: 16px; }

.rozet { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; background: #eef0f5; color: var(--muted); white-space: nowrap; }
.rozet.ok { background: var(--ok-soft); color: var(--ok); }
.rozet.uyari { background: var(--warn-soft); color: var(--warn); }
.rozet.kotu { background: var(--bad-soft); color: var(--bad); }
.rozet.marka { background: var(--brand-soft); color: var(--brand); }
.rozet.turuncu { background: var(--accent-soft); color: var(--accent); }

table.tablo { width: 100%; border-collapse: collapse; }
.tablo th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fafbfd; }
.tablo td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tablo tr:last-child td { border-bottom: 0; }
.tablo tr:hover td { background: #fbfbfe; }
.tablo .islem { text-align: right; white-space: nowrap; }
.tablo .soluk { color: var(--muted); font-size: 13px; }
.tablo-kap { overflow-x: auto; }
.bos { padding: 40px 20px; text-align: center; color: var(--muted); }
.bos strong { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }

.alan { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.alan > label, .etiket { font-size: 13px; font-weight: 600; color: #3a3e55; }
.alan .ipucu { font-size: 12px; color: var(--muted); }
input[type=text], input[type=password], input[type=number], input[type=date], input[type=time], input[type=search], select, textarea {
  width: 100%; border: 1px solid #d6d9e6; border-radius: 8px; padding: 8px 10px; background: #fff; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(99,102,241,.15); }
textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.satir { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0 14px; }
.onay { display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.onay input { width: 16px; height: 16px; accent-color: var(--brand); }
.bolum-baslik { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; margin: 6px 0 10px; padding-top: 12px; border-top: 1px dashed var(--line); }
.bolum-baslik:first-child { border-top: 0; padding-top: 0; }

.segment { display: inline-flex; border: 1px solid #d6d9e6; border-radius: 9px; overflow: hidden; flex-wrap: wrap; }
.segment button { border: 0; background: #fff; padding: 8px 14px; cursor: pointer; border-right: 1px solid #d6d9e6; }
.segment button:last-child { border-right: 0; }
.segment button.secili { background: var(--brand); color: #fff; }

.gunler { display: flex; gap: 6px; flex-wrap: wrap; }
.gunler label { display: inline-flex; }
.gunler input { display: none; }
.gunler span { padding: 6px 10px; border: 1px solid #d6d9e6; border-radius: 8px; cursor: pointer; min-width: 44px; text-align: center; }
.gunler input:checked + span { background: var(--brand); color: #fff; border-color: var(--brand); }

.secim-listesi { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px; max-height: 180px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 10px; }

/* ---------- Modal */
.modal-arka { position: fixed; inset: 0; background: rgba(15, 17, 35, .45); display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; z-index: 100; overflow-y: auto; }
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 560px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal.genis { max-width: 860px; }
.modal-baslik { display: flex; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-baslik h3 { font-size: 16px; flex: 1; }
.modal-baslik button { border: 0; background: none; font-size: 22px; cursor: pointer; color: var(--muted); line-height: 1; }
.modal-govde { padding: 18px 20px; }
.modal-alt { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); background: #fafbfd; border-radius: 0 0 14px 14px; }

/* ---------- Bildirim */
.bildirimler { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 200; }
.bildirim { background: #1c1f2e; color: #fff; padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow); max-width: 380px; animation: gir .2s ease-out; }
.bildirim.hata { background: var(--bad); }
.bildirim.uyari { background: var(--warn); }
.bildirim.ok { background: var(--ok); }
@keyframes gir { from { transform: translateY(8px); opacity: 0; } }

/* ---------- Canlı yayın */
.istatistik { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.istatistik .panel { padding: 14px 16px; }
.istatistik .deger { font-size: 24px; font-weight: 700; }
.istatistik .ad { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }

.subeler-izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 14px; }
.sube-kart { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.sube-kart .bas { display: flex; align-items: center; gap: 8px; }
.sube-kart .bas h3 { font-size: 16px; flex: 1; }
.canli-nokta { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(22,163,74,.5); animation: nabiz 1.6s infinite; }
.canli-nokta.kapali { background: #a3a7bb; animation: none; }
@keyframes nabiz { 70% { box-shadow: 0 0 0 8px rgba(22,163,74,0); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } }
.calan { background: #f7f8fc; border-radius: 10px; padding: 12px; }
.calan.anons { background: var(--accent-soft); }
.calan .tur { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.calan.anons .tur { color: var(--accent); }
.calan .baslik { font-weight: 600; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calan .sanatci { color: var(--muted); font-size: 13px; }
.ilerleme { height: 5px; background: #e3e5ef; border-radius: 9px; overflow: hidden; margin-top: 10px; }
.ilerleme div { height: 100%; background: var(--brand); width: 0; transition: width .5s linear; }
.calan.anons .ilerleme div { background: var(--accent); }
.zaman { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 4px; font-variant-numeric: tabular-nums; }
.kucuk-liste { font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.kucuk-liste .s { display: flex; justify-content: space-between; gap: 10px; }
.kucuk-liste .s span:first-child { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sube-kart .islemler { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Kampanya kartları */
.kampanyalar { display: grid; gap: 10px; }
.kampanya { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; }
.kampanya .oynat { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--accent-soft); color: var(--accent); cursor: pointer; display: grid; place-items: center; }
.kampanya .oynat:disabled { opacity: .4; cursor: default; }
.kampanya .oynat svg { width: 18px; height: 18px; }
.kampanya .ad { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kampanya .metin { color: var(--muted); font-size: 13px; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kampanya .bilgiler { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; font-size: 12.5px; color: #4b5068; }
.kampanya .bilgiler span { display: inline-flex; align-items: center; gap: 4px; }
.kampanya .islemler { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 700px) {
  .kampanya { grid-template-columns: auto 1fr; }
  .kampanya .islemler { grid-column: 1 / -1; justify-content: flex-start; }
}

/* ---------- Müzik yükleme */
.yukleme-alani { border: 2px dashed #c9cde0; border-radius: var(--radius); padding: 22px; text-align: center; color: var(--muted); background: #fbfbfe; cursor: pointer; transition: .15s; }
.yukleme-alani.uzerinde { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.yukleme-alani strong { color: var(--text); }
.yukleme-durum { margin-top: 10px; }
.arac-cubugu { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.arac-cubugu input[type=search] { max-width: 300px; }

/* ---------- Liste düzenleyici */
.liste-duzen { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.liste-duzen .kolon { border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; min-height: 360px; max-height: 52vh; }
.liste-duzen .kolon-bas { padding: 10px; border-bottom: 1px solid var(--line); display: flex; gap: 8px; align-items: center; }
.liste-duzen .kolon-govde { overflow-y: auto; flex: 1; }
.parca { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-bottom: 1px solid #f0f1f6; font-size: 13px; }
.parca .no { color: var(--muted); width: 22px; text-align: right; font-variant-numeric: tabular-nums; }
.parca .ad { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.parca .sure { color: var(--muted); font-variant-numeric: tabular-nums; }
.parca button { border: 0; background: none; cursor: pointer; padding: 2px 5px; border-radius: 5px; color: var(--muted); }
.parca button:hover { background: #eef0f5; color: var(--text); }
.parca.ekli { opacity: .45; }
@media (max-width: 700px) { .liste-duzen { grid-template-columns: 1fr; } }

.sayfalama { display: flex; gap: 8px; align-items: center; justify-content: flex-end; padding: 12px; }
.sekmeler { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.sekmeler button { border: 0; background: none; padding: 10px 14px; cursor: pointer; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 600; }
.sekmeler button.secili { color: var(--brand); border-color: var(--brand); }

.okunacak { margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: var(--brand-soft); color: #3730a3; font-size: 13px; line-height: 1.5; }
.ayar-bolum[hidden] { display: none; }
.kaydirici { display: flex; align-items: center; gap: 12px; }
.kaydirici input[type=range] { flex: 1; accent-color: var(--brand); }
.kaydirici output { min-width: 52px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.secenek-kart { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 12px; cursor: pointer; margin-bottom: 8px; }
.secenek-kart:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.secenek-kart input { margin-top: 3px; accent-color: var(--brand); }
.secenek-kart b { display: block; margin-bottom: 2px; }
.secenek-kart span { color: var(--muted); font-size: 13px; }
.kisma-onizleme { display: flex; align-items: flex-end; gap: 3px; height: 54px; padding: 8px 10px; background: #f7f8fc; border-radius: 10px; margin: 6px 0 14px; }
.kisma-onizleme i { flex: 1; background: var(--brand); border-radius: 2px 2px 0 0; opacity: .8; transition: height .3s; }
.kisma-onizleme i.a { background: var(--accent); }
.uyari-kutu { background: var(--warn-soft); color: #8a5300; border: 1px solid #f5dca6; border-radius: 9px; padding: 10px 12px; margin-bottom: 12px; font-size: 13px; }
.kod { font-family: Consolas, monospace; background: #f1f2f7; padding: 2px 6px; border-radius: 5px; font-size: 12.5px; white-space: nowrap; }
.tablo th { white-space: nowrap; }
.tablo td.tek { white-space: nowrap; }
.iki-kolon { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 900px) { .iki-kolon { grid-template-columns: 1fr; } }

/* ---------- Giriş */
.giris-kap { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(1200px 600px at 10% -10%, #c7c9ff 0%, transparent 60%), radial-gradient(900px 500px at 110% 110%, #ffd6b8 0%, transparent 55%), var(--bg); }
.giris { width: 100%; max-width: 380px; padding: 28px; }
.giris .logo { color: var(--text); padding: 0 0 18px; }
.giris .logo .ikon { color: #fff; }
.giris .hata { color: var(--bad); background: var(--bad-soft); padding: 8px 10px; border-radius: 8px; margin-bottom: 12px; display: none; }
