/* ============================================================
   OKUL ANONS — Panel ana stil dosyası
   Koyu glassmorphism tema — kontrattaki değişkenlerle
   ============================================================ */

:root {
  /* Çentik/durum çubuğu payları — iPhone'da içerik kamera çubuğunun altında kalmasın.
     Değişken üzerinden verilir ki testte de zorlanabilsin. */
  --guvenli-ust: env(safe-area-inset-top, 0px);
  --guvenli-alt: env(safe-area-inset-bottom, 0px);
  --guvenli-sol: env(safe-area-inset-left, 0px);
  --guvenli-sag: env(safe-area-inset-right, 0px);
  --bg-void: #06070d;
  --bg-deep: #0a0d18;
  --bg-surface: #10141f;
  --glass: rgba(255, 255, 255, .045);
  --glass-border: rgba(255, 255, 255, .09);
  --accent: #6366f1;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --live: #f43f5e;
  --text-hi: #f1f5f9;
  --text-mid: #94a3b8;
  --text-low: #64748b;
  --radius: 18px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Monaco, "Cascadia Mono", monospace;
  --nav-genislik: 232px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-void);
  color: var(--text-hi);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
}

/* ---------- Aurora arka plan (GPU dostu: yalnız transform/opacity) ---------- */
/* Arka plan ışıması.
   ESKİDEN: iki dev daire + filter:blur(90px) + sonsuz animasyon. GPU'su olmayan
   okul bilgisayarlarında her karede yeniden çiziliyor ve kare hızını YARIYA
   düşürüyordu (ölçüm: 31 fps → 60 fps). Aynı görünüm, tek seferlik boyamayla
   elde edilir: yumuşak geçişli radyal degradeler zaten bulanık görünür,
   blur süzgecine ve animasyona gerek yoktur. */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(62vmax 56vmax at 6% -10%,  rgba(67, 56, 202, .20) 0%, transparent 70%),
    radial-gradient(60vmax 54vmax at 98% 108%, rgba(14, 116, 144, .20) 0%, transparent 70%),
    radial-gradient(ellipse at 50% -20%, #101430 0%, var(--bg-void) 60%);
}

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

/* ---------- Genel yerleşim ---------- */
.uygulama { display: flex; min-height: 100vh; }

.icerik {
  flex: 1;
  min-width: 0;
  padding: calc(16px + var(--guvenli-ust)) calc(16px + var(--guvenli-sag))
           88px calc(16px + var(--guvenli-sol)); /* alt: mobil nav payı */
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.sayfa-baslik {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 20px;
}
.sayfa-baslik h1 { margin: 0; font-size: 1.45rem; font-weight: 700; letter-spacing: -.02em; }

/* ---------- Kenar nav (masaüstü) ---------- */
.kenar-nav {
  display: none;
  flex-direction: column;
  width: var(--nav-genislik);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: calc(18px + var(--guvenli-ust)) 12px calc(18px + var(--guvenli-alt));
  background: rgba(10, 13, 24, .6);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-right: 1px solid var(--glass-border);
}
.marka {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 18px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -.01em;
}
.marka .marka-ikon { font-size: 1.5rem; }
.kenar-nav a.nav-oge {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  min-height: 44px;
  border-radius: 12px;
  color: var(--text-mid);
  text-decoration: none;
  font-weight: 600;
  font-size: .93rem;
  transition: background .15s, color .15s;
}
.kenar-nav a.nav-oge:hover { background: var(--glass); color: var(--text-hi); }
.kenar-nav a.nav-oge.aktif {
  background: linear-gradient(135deg, rgba(99, 102, 241, .22), rgba(99, 102, 241, .08));
  color: var(--text-hi);
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, .35);
}
.kenar-nav .nav-alt { margin-top: auto; }

.kullanici-kutu {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
}
.kullanici-kutu .avatar {
  width: 34px; height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  font-weight: 800; font-size: .85rem; color: #fff;
}
.kullanici-kutu .k-ad { font-size: .85rem; font-weight: 700; line-height: 1.2; }
.kullanici-kutu .k-rol { font-size: .72rem; color: var(--text-low); }
.kullanici-kutu form { margin-left: auto; }

/* ---------- Alt nav (mobil) ---------- */
.alt-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  justify-content: space-around;
  gap: 2px;
  padding: 6px max(6px, var(--guvenli-sol)) max(8px, var(--guvenli-alt));
  background: rgba(10, 13, 24, .82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--glass-border);
  overflow-x: auto;
}
.alt-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 52px;
  min-height: 48px;
  padding: 4px 6px;
  border-radius: 12px;
  color: var(--text-low);
  text-decoration: none;
  font-size: .62rem;
  font-weight: 700;
}
.alt-nav a .n-ikon { font-size: 1.25rem; line-height: 1; }
.alt-nav a.aktif { color: var(--text-hi); background: rgba(99, 102, 241, .18); }

@media (min-width: 900px) {
  .kenar-nav { display: flex; }
  .alt-nav { display: none; }
  .icerik {
    padding: calc(24px + var(--guvenli-ust)) calc(28px + var(--guvenli-sag))
             24px calc(28px + var(--guvenli-sol));
  }
  .acil-ac { display: none; }   /* masaüstünde şerit hep açık */
}

/* ---------- Cam kart ---------- */
.cam {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 18px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .25);
}
.cam h2 {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-hi);
}
.cam h2 .h-not { margin-left: auto; font-size: .75rem; font-weight: 600; color: var(--text-low); }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.kart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 13px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--text-hi);
  font: inherit;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: transform .12s, background .15s, box-shadow .15s, opacity .15s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn:hover { background: rgba(255, 255, 255, .08); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-birincil {
  background: linear-gradient(135deg, var(--accent), #4f46e5);
  border-color: rgba(99, 102, 241, .5);
  box-shadow: 0 4px 18px rgba(99, 102, 241, .35);
}
.btn-birincil:hover { background: linear-gradient(135deg, #747aff, #5a51f0); }
.btn-basari { background: linear-gradient(135deg, var(--success), #059669); border-color: rgba(16, 185, 129, .5); }
.btn-tehlike { background: linear-gradient(135deg, var(--danger), #dc2626); border-color: rgba(239, 68, 68, .5); }
.btn-hayalet { background: transparent; border-color: transparent; color: var(--text-mid); }
.btn-hayalet:hover { color: var(--text-hi); background: var(--glass); }
.btn-kucuk { min-height: 36px; padding: 6px 12px; font-size: .8rem; border-radius: 10px; }
.btn-blok { width: 100%; }

/* ---------- Formlar ---------- */
label.etiket {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-mid);
  margin: 0 0 6px;
  letter-spacing: .02em;
}
.girdi, input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="time"], input[type="date"], input[type="datetime-local"], input[type="search"], input[type="tel"],
select, textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border-radius: 13px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, .3);
  color: var(--text-hi);
  font: inherit;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 110px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-mid) 50%), linear-gradient(135deg, var(--text-mid) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.girdi:focus, input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .25);
}
input::placeholder, textarea::placeholder { color: var(--text-low); }
.form-satir { margin-bottom: 14px; }
.form-yatay { display: flex; gap: 10px; flex-wrap: wrap; }
.form-yatay > * { flex: 1; min-width: 140px; }

/* Karakter sayacı */
.sayac { font-size: .75rem; color: var(--text-low); text-align: right; font-family: var(--font-mono); }
.sayac.uyari { color: var(--warning); font-weight: 700; }

/* ---------- Toggle (anahtar) ---------- */
.toggle { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle .tg-iz {
  width: 46px; height: 26px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid var(--glass-border);
  transition: background .2s;
  flex-shrink: 0;
}
.toggle .tg-iz::after {
  content: "";
  display: block;
  width: 20px; height: 20px;
  margin: 2px;
  border-radius: 50%;
  background: var(--text-mid);
  transition: transform .2s, background .2s;
}
.toggle input:checked + .tg-iz { background: rgba(16, 185, 129, .45); }
.toggle input:checked + .tg-iz::after { transform: translateX(20px); background: #fff; }
.toggle input:focus-visible + .tg-iz { box-shadow: 0 0 0 3px rgba(99, 102, 241, .35); }

/* ---------- Slider ---------- */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  min-height: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), #8b5cf6);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  margin-top: -8px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--accent), #8b5cf6); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); }

/* ---------- Tablo ---------- */
.tablo-sarici { overflow-x: auto; border-radius: var(--radius); }
table.tablo { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 560px; }
table.tablo th {
  text-align: left;
  padding: 11px 14px;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-low);
  border-bottom: 1px solid var(--glass-border);
  white-space: nowrap;
}
table.tablo td { padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, .05); color: var(--text-mid); }
table.tablo tr:hover td { background: rgba(255, 255, 255, .025); }
table.tablo td:first-child, table.tablo th:first-child { padding-left: 18px; }

/* ---------- Rozet / durum ---------- */
.rozet {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text-mid);
}
.rozet-basari { background: rgba(16, 185, 129, .15); color: #34d399; border-color: rgba(16, 185, 129, .3); }
.rozet-uyari { background: rgba(245, 158, 11, .15); color: #fbbf24; border-color: rgba(245, 158, 11, .3); }
.rozet-tehlike { background: rgba(239, 68, 68, .15); color: #f87171; border-color: rgba(239, 68, 68, .3); }
.rozet-bilgi { background: rgba(99, 102, 241, .15); color: #a5b4fc; border-color: rgba(99, 102, 241, .3); }

/* Canlı nokta + nabız */
.nokta {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--text-low);
  flex-shrink: 0;
  position: relative;
}
.nokta.cevrimici { background: var(--success); }
.nokta.cevrimdisi { background: var(--danger); }
.nokta.cevrimici::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--success);
  animation: nabiz 1.8s ease-out infinite;
}
.nokta.canli { background: var(--live); }
.nokta.canli::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--live);
  animation: nabiz 1.2s ease-out infinite;
}
@keyframes nabiz {
  0%   { transform: scale(.6); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ---------- Modal ---------- */
.modal-fon {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(3, 4, 10, .7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 0;
}
.modal-fon.acik { display: flex; }
.modal {
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: 22px 22px 0 0;
  padding: 22px 20px calc(22px + var(--guvenli-alt));
  animation: modal-gir .22s ease-out;
}
@media (min-width: 640px) {
  .modal-fon { align-items: center; padding: 24px; }
  .modal { border-radius: 22px; }
}
@keyframes modal-gir {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.modal-baslik { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.modal-baslik h3 { margin: 0; font-size: 1.05rem; }
.modal-kapat { background: none; border: none; color: var(--text-low); font-size: 1.4rem; cursor: pointer; min-width: 44px; min-height: 44px; border-radius: 12px; }
.modal-kapat:hover { color: var(--text-hi); background: var(--glass); }
.modal-alt { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }

/* ---------- Toast ---------- */
.toast-alan {
  position: fixed;
  top: calc(14px + var(--guvenli-ust));
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(94vw, 420px);
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 14px;
  background: rgba(16, 20, 31, .92);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  font-size: .88rem;
  font-weight: 600;
  animation: toast-gir .25s ease-out;
  pointer-events: auto;
}
.toast.cikis { animation: toast-cik .25s ease-in forwards; }
.toast-basari { border-left: 3px solid var(--success); }
.toast-hata { border-left: 3px solid var(--danger); }
.toast-uyari { border-left: 3px solid var(--warning); }
.toast-bilgi { border-left: 3px solid var(--accent); }
@keyframes toast-gir { from { transform: translateY(-12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes toast-cik { to { transform: translateY(-12px); opacity: 0; } }

/* ---------- ACİL DURUM şeridi ---------- */
.acil-serit {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 12px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: rgba(239, 68, 68, .07);
  border: 1px solid rgba(239, 68, 68, .25);
}
.acil-serit .acil-etiket {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .05em;
  color: #f87171;
  margin-right: 4px;
  white-space: nowrap;
}
.acil-buton {
  position: relative;
  overflow: hidden;
  min-height: 40px;
  padding: 7px 13px;
  border-radius: 11px;
  border: 1px solid rgba(239, 68, 68, .35);
  background: rgba(239, 68, 68, .12);
  color: #fca5a5;
  font: inherit;
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  touch-action: none;
}
.acil-buton .doldurma {
  position: absolute;
  inset: 0;
  background: rgba(239, 68, 68, .5);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}
.acil-buton.basili .doldurma { transform: scaleX(1); transition: transform 3s linear; }
.acil-buton span { position: relative; }
.acil-serit .tatbikat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-size: .76rem;
  font-weight: 700;
  color: var(--text-mid);
  cursor: pointer;
  min-height: 40px;
}
.acil-serit .tatbikat input { width: 18px; height: 18px; accent-color: var(--warning); }

/* Aktif acil bandı */
.acil-bant {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(239, 68, 68, .85), rgba(190, 18, 60, .85));
  border: 1px solid var(--danger);
  font-weight: 800;
  animation: acil-yanip 1.2s ease-in-out infinite;
}
.acil-bant.acik { display: flex; }
.acil-bant .btn { background: #fff; color: var(--danger); border-color: #fff; }
@keyframes acil-yanip {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .6); }
  50%      { box-shadow: 0 0 24px 4px rgba(239, 68, 68, .55); }
}

/* ---------- Sekmeler ---------- */
.sekmeler {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 5px;
  border-radius: 14px;
  background: rgba(0, 0, 0, .25);
  border: 1px solid var(--glass-border);
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
}
.sekme {
  min-height: 38px;
  padding: 7px 15px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-mid);
  font: inherit;
  font-size: .84rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.sekme.aktif { background: var(--accent); color: #fff; }

/* ---------- Geri sayım (mono) ---------- */
.geri-sayim {
  font-family: var(--font-mono);
  font-size: clamp(2.2rem, 8vw, 3.6rem);
  font-weight: 700;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
  color: var(--text-hi);
  text-shadow: 0 0 30px rgba(99, 102, 241, .5);
  line-height: 1.1;
}
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- Cihaz kartı ---------- */
.cihaz-kart { padding: 14px; border-radius: 14px; background: rgba(0, 0, 0, .22); border: 1px solid var(--glass-border); }
.cihaz-kart .c-ust { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.cihaz-kart .c-ad { font-weight: 700; font-size: .92rem; }
.cihaz-kart .c-detay { font-size: .75rem; color: var(--text-low); display: flex; flex-direction: column; gap: 2px; }

/* ---------- Kütüphane / kart listeleri ---------- */
.medya-kart { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 14px; background: rgba(0, 0, 0, .22); border: 1px solid var(--glass-border); }
.medya-kart .m-baslik { font-weight: 700; font-size: .9rem; word-break: break-word; }
.medya-kart .m-meta { font-size: .74rem; color: var(--text-low); }
.medya-kart audio { width: 100%; height: 36px; }
.medya-kart .m-eylemler { display: flex; gap: 6px; margin-top: auto; }

/* Sürükle-bırak alanı */
.birak-alani {
  border: 2px dashed var(--glass-border);
  border-radius: var(--radius);
  padding: 28px 16px;
  text-align: center;
  color: var(--text-low);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.birak-alani.surukleniyor, .birak-alani:hover { border-color: var(--accent); background: rgba(99, 102, 241, .08); color: var(--text-mid); }

/* İlerleme çubuğu */
.ilerleme { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.ilerleme > div { height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--accent), #8b5cf6); transition: width .2s; }

/* ---------- Kenar çubuğu listesi (kütüphane kategorileri) ---------- */
.kategori-liste { display: flex; flex-direction: column; gap: 4px; }
.kategori-liste button {
  display: flex; align-items: center; gap: 9px;
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 11px;
  border: none;
  background: transparent;
  color: var(--text-mid);
  font: inherit; font-size: .86rem; font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.kategori-liste button:hover { background: var(--glass); color: var(--text-hi); }
.kategori-liste button.aktif { background: rgba(99, 102, 241, .18); color: var(--text-hi); }
.kategori-liste .adet { margin-left: auto; font-size: .72rem; color: var(--text-low); font-family: var(--font-mono); }

/* ---------- Hafta görünümü ---------- */
.hafta-grid { display: grid; grid-template-columns: repeat(7, minmax(130px, 1fr)); gap: 10px; overflow-x: auto; }
.hafta-gun { min-width: 130px; }
.hafta-gun .g-baslik { font-size: .78rem; font-weight: 800; color: var(--text-mid); text-align: center; padding: 6px; }
.hafta-oge { padding: 8px 10px; margin-bottom: 6px; border-radius: 10px; background: rgba(99, 102, 241, .12); border: 1px solid rgba(99, 102, 241, .25); font-size: .76rem; }
.hafta-oge .saat { font-family: var(--font-mono); font-weight: 700; color: #a5b4fc; }

/* ---------- Eşleşme kodu ---------- */
.eslesme-kodu {
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 10vw, 4rem);
  font-weight: 800;
  letter-spacing: .35em;
  text-align: center;
  color: var(--text-hi);
  text-shadow: 0 0 30px rgba(99, 102, 241, .6);
  padding: 18px 0 8px 0.35em;
}

/* ---------- Kod bloğu (otpauth, yedek kodlar) ---------- */
.kod-blok {
  font-family: var(--font-mono);
  font-size: .8rem;
  background: rgba(0, 0, 0, .4);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 13px 15px;
  word-break: break-all;
  white-space: pre-wrap;
  color: #a5b4fc;
}

/* ---------- Canlı akış listesi ---------- */
.akis { display: flex; flex-direction: column; gap: 8px; max-height: 380px; overflow-y: auto; }
.akis-oge {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  background: rgba(0, 0, 0, .2);
  border: 1px solid rgba(255, 255, 255, .05);
  font-size: .82rem;
}
.akis-oge .a-zaman { font-family: var(--font-mono); font-size: .72rem; color: var(--text-low); white-space: nowrap; }
.akis-oge .a-baslik { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.akis-oge.yeni { animation: akis-gir .35s ease-out; }
@keyframes akis-gir { from { transform: translateX(-8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Sayfalama ---------- */
.sayfalama { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; }
.sayfalama .s-bilgi { font-size: .8rem; color: var(--text-low); font-family: var(--font-mono); }

/* ---------- Boş durum ---------- */
.bos-durum { text-align: center; padding: 36px 16px; color: var(--text-low); font-size: .9rem; }
.bos-durum .b-ikon { font-size: 2.2rem; display: block; margin-bottom: 8px; }

/* ---------- Giriş / Kiosk / hata sayfaları ---------- */
.tek-kart-sayfa {
  min-height: 100vh;
  min-height: 100dvh;              /* mobil tarayıcı çubuklarıyla doğru yükseklik */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(20px + var(--guvenli-ust)) calc(20px + var(--guvenli-sag))
           calc(20px + var(--guvenli-alt)) calc(20px + var(--guvenli-sol));
}
.tek-kart { width: 100%; max-width: 400px; }
.tek-kart .logo-alan { text-align: center; margin-bottom: 22px; }
.tek-kart .logo-alan .l-ikon { font-size: 3rem; display: block; margin-bottom: 6px; }
.tek-kart .logo-alan h1 { margin: 0; font-size: 1.3rem; letter-spacing: -.02em; }
.tek-kart .logo-alan p { margin: 4px 0 0; color: var(--text-low); font-size: .84rem; }

/* Yardımcılar */
.gizli { display: none !important; }
.metin-orta { text-align: center; }
.metin-kucuk { font-size: .78rem; color: var(--text-low); }
.dikey-bosluk { height: 12px; }
.satir { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.esnek-bosluk { flex: 1; }
audio { border-radius: 10px; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

/* ── Ayarlar sayfası ─────────────────────────────────────────── */
.ayar-grup {
  font-size: .85rem;
  color: var(--accent-glow, #818cf8);
  margin: 1.6rem 0 .4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
}
.ayar-grup:first-of-type { border-top: 0; padding-top: 0; margin-top: .4rem; }
.ayar-ozet {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm, 12px);
  padding: .9rem 1rem;
  margin-bottom: .6rem;
}
.ayar-ozet .ozet-baslik { font-size: .85rem; color: var(--text-mid); margin-bottom: .5rem; }
.ozet-cubuk {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
}
.ozet-dolu {
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
  transition: width .4s var(--ease, ease);
}
.ozet-dolu.tehlike { background: var(--danger); }
.ozet-detay { margin-top: .45rem; }

/* ═══════════════════════════════════════════════════════════════
   MOBİL UYUM (telefon/tablet) — 900 px altı
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 899px) {

  /* iOS, 16 px'ten küçük yazılı alana odaklanınca sayfayı ZOOMLAR.
     Taban kuraldaki `font: inherit` (15 px) bunu tetikliyordu; aynı seçici
     listesiyle ezilir (özgüllük eşit olmalı, !important gerekmez). */
  .girdi, input[type="text"], input[type="email"], input[type="password"], input[type="number"],
  input[type="time"], input[type="date"], input[type="datetime-local"], input[type="search"], input[type="tel"],
  select, textarea, input:not([type]) {
    font-size: 16px;
  }

  /* Dokunma hedefleri: Apple/Google kılavuzları en az 44 px önerir */
  .btn { min-height: 46px; }
  .btn-kucuk { min-height: 42px; padding: 9px 14px; font-size: .85rem; }
  .sekme { min-height: 42px; padding: 9px 14px; }
  .kategori-liste button { min-height: 44px; }
  .modal-kapat { min-width: 44px; min-height: 44px; }

  /* Kaydırılabilir tabloların kenarında "devamı var" gölgesi */
  .tablo-sarici {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    background:
      linear-gradient(to right, var(--bg-surface) 30%, rgba(16, 20, 31, 0)) left / 28px 100% no-repeat,
      linear-gradient(to left,  var(--bg-surface) 30%, rgba(16, 20, 31, 0)) right / 28px 100% no-repeat;
    background-attachment: local, local;
  }
  .tablo-sarici::after {
    content: '↔ kaydırın';
    display: block;
    padding: 6px 2px 0;
    font-size: .7rem;
    color: var(--text-low);
    text-align: right;
  }

  /* Alt nav görünürken içerik altta kalmasın */
  .icerik { padding-bottom: calc(86px + var(--guvenli-alt)); }

  /* Yan yana sığmayan form satırları alt alta */
  .form-yatay { grid-template-columns: 1fr; }
  .satir { flex-wrap: wrap; }
  .sayfa-baslik { flex-wrap: wrap; gap: 10px; }
  .sayfa-baslik h1 { font-size: 1.2rem; }

  /* Acil durum şeridi: telefonda katlanır (ekranın üçte birini kaplamasın),
     açıldığında 2 sütun ve parmakla basılabilir boyut */
  .acil-ac {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 46px;
    margin-bottom: 12px;
    padding: 10px 16px;
    border-radius: 14px;
    border: 1px solid rgba(239, 68, 68, .45);
    background: rgba(239, 68, 68, .12);
    color: #fca5a5;
    font: inherit;
    font-weight: 800;
    font-size: .9rem;
    letter-spacing: .04em;
    cursor: pointer;
  }
  .acil-ac-ok { transition: transform .18s; }
  .acil-ac.acik .acil-ac-ok { transform: rotate(180deg); }
  .acil-serit { display: none; flex-wrap: wrap; }
  .acil-serit.acik { display: flex; }
  .acil-serit .acil-buton { flex: 1 1 calc(50% - 8px); min-height: 52px; }

  /* Modal telefonda alttan açılan sayfa gibi davransın */
  .modal { max-height: 88vh; border-radius: 20px 20px 0 0; }

  /* Uzun başlık/isimler taşmasın */
  .m-baslik, .c-ad { overflow-wrap: anywhere; }

  /* İş akışı: telefonda başlık kırpılınca "(3 cihaz)" rozeti görünmez oluyordu.
     Satır sarmalı, başlık iki satıra kadar açılır. */
  .akis-oge { flex-wrap: wrap; align-items: flex-start; row-gap: 4px; }
  .akis-oge .a-baslik {
    flex: 1 1 100%;
    order: 3;
    white-space: normal;
    overflow: visible;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .akis-oge .rozet { margin-left: auto; }

  /* Denetim kaydı: "detay" sütunu telefonda tek satıra sıkışıp okunmuyordu */
  table.tablo td { white-space: normal; }
  table.tablo td[title] {
    max-width: 220px !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere;
  }
}

/* Çok dar ekranlar (küçük telefonlar) */
@media (max-width: 400px) {
  .icerik { padding-left: 12px; padding-right: 12px; }
  .cam { padding: 14px; }
  .kart-grid { grid-template-columns: 1fr; }
}

/* ── Alt nav: 5+ öğede "Daha" sayfası ────────────────────────── */
.alt-nav a.nav-daha { color: var(--text-low); }
.daha-sayfa {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: flex-end;
  background: rgba(3, 5, 12, .72);
  backdrop-filter: blur(6px);
}
.daha-sayfa.acik { display: flex; }
.daha-sayfa .daha-kutu {
  width: 100%;
  background: var(--bg-surface);
  border-top: 1px solid var(--glass-border);
  border-radius: 22px 22px 0 0;
  padding: 18px 16px calc(22px + var(--guvenli-alt));
  animation: modal-gir .2s ease-out;
}
.daha-sayfa .daha-kutu h3 { margin: 0 0 12px; font-size: 1rem; }
.daha-sayfa .daha-liste { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.daha-sayfa .daha-liste a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text-hi);
  text-decoration: none;
  font-weight: 700;
  font-size: .92rem;
}
.daha-sayfa .daha-liste a.aktif { background: rgba(99, 102, 241, .2); }

/* ── Ayarlar: logo önizleme ──────────────────────────────────── */
.logo-onizleme {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
}
.logo-onizleme img {
  width: 64px; height: 64px;
  border-radius: 14px;
  object-fit: contain;
  background: rgba(0, 0, 0, .35);
}

/* ═══ Stüdyo · YouTube bağlantı alanı ═══ */
.yt-girdi {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 4px 14px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, .3);
  transition: border-color .15s, box-shadow .15s;
}
.yt-girdi:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99, 102, 241, .25); }
.yt-girdi.gecerli { border-color: var(--success); box-shadow: 0 0 0 3px rgba(16, 185, 129, .18); }
.yt-girdi.gecersiz { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(239, 68, 68, .18); }
.yt-girdi .yt-ikon {
  display: grid; place-items: center;
  width: 30px; height: 22px;
  border-radius: 6px;
  background: #ff0033;
  color: #fff; font-size: .72rem;
  flex-shrink: 0;
}
.yt-girdi input {
  flex: 1; min-width: 0;
  border: 0; background: transparent; box-shadow: none;
  padding: 10px 0; min-height: 42px;
}
.yt-girdi input:focus,
.yt-girdi input[type="url"]:focus { box-shadow: none; border: 0; outline: none; }
.yt-btn {
  flex-shrink: 0;
  min-width: 40px; min-height: 40px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--text-mid);
  font-size: .95rem;
  cursor: pointer;
}
.yt-btn:hover { color: var(--text-hi); background: rgba(255, 255, 255, .09); }

.yt-onizleme {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  animation: akis-gir .25s ease-out;
}
.yt-onizleme img {
  width: 132px; height: 74px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(0, 0, 0, .4);
  flex-shrink: 0;
}
.yt-onizleme .yt-bilgi { min-width: 0; display: flex; flex-direction: column; gap: 4px; justify-content: center; }
.yt-onizleme .yt-baslik { font-weight: 700; color: var(--text-hi); overflow-wrap: anywhere; }
.yt-onizleme a { color: var(--accent); text-decoration: none; }

.yt-secenekler { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.yt-secenekler button {
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--text-mid);
  font: inherit; font-size: .8rem; font-weight: 700;
  cursor: pointer;
}
.yt-secenekler button.aktif { background: rgba(99, 102, 241, .22); border-color: var(--accent); color: var(--text-hi); }

.yt-uyari {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(245, 158, 11, .1);
  border: 1px solid rgba(245, 158, 11, .35);
  color: #fcd34d;
  line-height: 1.5;
}

@media (max-width: 899px) {
  .yt-onizleme img { width: 104px; height: 58px; }
  .yt-secenekler button { min-height: 40px; }
}

/* ═══ Stüdyo · hedef cihaz seçimi ═══ */
.hedef-liste {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}
.hedef-kart {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--text-mid);
  transition: border-color .15s, background .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.hedef-kart:hover { background: rgba(255, 255, 255, .07); }
.hedef-kart:active { transform: scale(.985); }
.hedef-kart.secili {
  border-color: var(--accent);
  background: rgba(99, 102, 241, .18);
  color: var(--text-hi);
}
.hedef-kart.cevrimdisi { opacity: .62; }
.hedef-kart .h-ikon { font-size: 1.15rem; line-height: 1; flex-shrink: 0; }
.hedef-kart .h-govde { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.hedef-kart .h-ad { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hedef-kart .h-alt {
  font-size: .72rem; color: var(--text-low);
  display: flex; align-items: center; gap: 5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;   /* kartlar eşit yükseklikte kalsın */
}
.hedef-kart.secili .h-alt { color: var(--text-mid); }
.hedef-kart .h-onay {
  width: 22px; height: 22px;
  border-radius: 7px;
  border: 1.5px solid var(--glass-border);
  display: grid; place-items: center;
  font-size: .72rem; color: transparent;
  flex-shrink: 0;
}
.hedef-kart.secili .h-onay { background: var(--accent); border-color: var(--accent); color: #fff; }
.hedef-kart.tumu { grid-column: 1 / -1; }
.hedef-liste .bos-durum { grid-column: 1 / -1; }

@media (max-width: 899px) {
  .hedef-liste { grid-template-columns: 1fr; }
  .hedef-kart { min-height: 62px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   AÇIK TEMA — YÖNETİM PANELİ
   ══════════════════════════════════════════════════════════════════════════
   KAPSAM: yalnız `body[data-page]` (panel sayfaları) ve `body.acik-tema`
   (giriş ekranı). Hoparlör (kiosk) sayfasında data-page YOKTUR → o ekran
   koyu kalır; karanlık bir sınıfta duran ekran için doğrusu budur.

   YÖNTEM: Bu bir KATMANDIR, yeniden yazım değil. Yukarıdaki kuralların
   hiçbiri silinmedi; yalnız görünüm özellikleri (renk, gölge, kenarlık,
   köşe) daha yüksek özgüllükle eziliyor. Yerleşim (display/grid/flex/
   position/padding) ve davranış sınıfları (.gizli, .acik, .aktif …)
   DEĞİŞTİRİLMEDİ. Bu blok silinirse sistem eski görünümüne döner.
   ══════════════════════════════════════════════════════════════════════════ */

body[data-page],
body.acik-tema {
  --bg-void: #f4f6fb;
  --bg-deep: #ffffff;
  --bg-surface: #ffffff;
  --glass: #ffffff;
  --glass-border: rgba(15, 23, 42, .07);

  --accent: #4f46e5;
  --accent-yumusak: #eef2ff;
  --accent-koyu: #4338ca;
  --success: #059669;
  --success-yumusak: #ecfdf5;
  --warning: #d97706;
  --warning-yumusak: #fffbeb;
  --danger: #dc2626;
  --danger-yumusak: #fef2f2;
  --live: #e11d48;

  --text-hi: #0f172a;
  --text-mid: #475569;
  --text-low: #64748b;   /* beyaz üstünde 4.76:1 — WCAG AA */

  --cizgi: rgba(15, 23, 42, .07);
  --cizgi-koyu: rgba(15, 23, 42, .12);
  --golge-kk: 0 1px 2px rgba(16, 24, 40, .05);
  --golge-orta: 0 1px 3px rgba(16, 24, 40, .06), 0 8px 24px -10px rgba(16, 24, 40, .14);
  --golge-buyuk: 0 2px 6px rgba(16, 24, 40, .06), 0 24px 48px -16px rgba(16, 24, 40, .22);
  --radius: 16px;

  background: var(--bg-void);
  color: var(--text-hi);
  -webkit-font-smoothing: antialiased;
}

/* Arka plan ışıması: tek seferlik boyama, animasyon/blur yok (performans) */
body[data-page] .aurora,
body.acik-tema .aurora {
  background:
    radial-gradient(60vmax 46vmax at 12% -12%, rgba(99, 102, 241, .10) 0%, transparent 68%),
    radial-gradient(52vmax 44vmax at 96% 4%, rgba(6, 182, 212, .09) 0%, transparent 66%),
    var(--bg-void);
}

/* ── Kenar menü ───────────────────────────────────────────────────────── */
body[data-page] .kenar-nav {
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-right: 1px solid var(--cizgi);
}
body[data-page] .kenar-nav a.nav-oge {
  color: var(--text-mid);
  font-weight: 550;
  position: relative;
}
body[data-page] .kenar-nav a.nav-oge:hover {
  background: #f1f5f9;
  color: var(--text-hi);
}
body[data-page] .kenar-nav a.nav-oge.aktif {
  background: var(--accent-yumusak);
  color: var(--accent-koyu);
  box-shadow: none;
  font-weight: 650;
}
/* Etkin sayfayı belirten ince şerit */
body[data-page] .kenar-nav a.nav-oge.aktif::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 20px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
}
body[data-page] .marka { color: var(--text-hi); }
body[data-page] .kullanici-kutu {
  background: #f8fafc;
  border: 1px solid var(--cizgi);
}

/* ── Kartlar ──────────────────────────────────────────────────────────── */
body[data-page] .cam,
body.acik-tema .cam {
  background: #ffffff;
  border: 1px solid var(--cizgi);
  border-radius: var(--radius);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: var(--golge-orta);
}
body[data-page] .cihaz-kart,
body[data-page] .medya-kart,
body[data-page] .hedef-kart,
body[data-page] .akis-oge,
body[data-page] .hafta-oge,
body[data-page] .ayar-ozet,
body[data-page] .kod-blok,
body[data-page] .logo-onizleme,
body[data-page] .yt-onizleme {
  background: #ffffff;
  border: 1px solid var(--cizgi);
  box-shadow: var(--golge-kk);
}
body[data-page] .cihaz-kart:hover,
body[data-page] .medya-kart:hover {
  border-color: var(--cizgi-koyu);
  box-shadow: var(--golge-orta);
}
body[data-page] .bos-durum {
  background: #f8fafc;
  border: 1px dashed var(--cizgi-koyu);
  color: var(--text-mid);
}

/* ── Sayfa başlığı ve metin ───────────────────────────────────────────── */
body[data-page] .sayfa-baslik h1 { color: var(--text-hi); letter-spacing: -.02em; }
body[data-page] .metin-kucuk { color: var(--text-mid); }
body[data-page] .etiket { color: var(--text-mid); font-weight: 600; }
body[data-page] .ayar-grup {
  color: var(--text-hi);
  border-bottom: 1px solid var(--cizgi);
}
body[data-page] .mono, body[data-page] .kod-blok { color: var(--text-hi); }

/* ── Düğmeler ─────────────────────────────────────────────────────────── */
body[data-page] .btn,
body.acik-tema .btn {
  background: #ffffff;
  border: 1px solid var(--cizgi-koyu);
  color: var(--text-hi);
  border-radius: 12px;
  box-shadow: var(--golge-kk);
  font-weight: 600;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .06s;
}
body[data-page] .btn:hover,
body.acik-tema .btn:hover {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, .2);
  box-shadow: var(--golge-orta);
}
body[data-page] .btn:active, body.acik-tema .btn:active { transform: translateY(1px); }
body[data-page] .btn:disabled, body.acik-tema .btn:disabled {
  background: #f1f5f9;
  color: var(--text-low);
  border-color: var(--cizgi);
  box-shadow: none;
}
body[data-page] .btn-birincil,
body.acik-tema .btn-birincil {
  background: linear-gradient(180deg, #4f46e5, #4338ca);
  border-color: #4338ca;
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(67, 56, 202, .3), 0 8px 20px -8px rgba(79, 70, 229, .5);
}
body[data-page] .btn-birincil:hover,
body.acik-tema .btn-birincil:hover {
  background: linear-gradient(180deg, #4338ca, #3730a3);
  border-color: #3730a3;
}
body[data-page] .btn-tehlike, body.acik-tema .btn-tehlike {
  background: linear-gradient(180deg, #dc2626, #b91c1c);
  border-color: #b91c1c;
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(185, 28, 28, .3), 0 8px 20px -8px rgba(220, 38, 38, .45);
}
body[data-page] .btn-tehlike:hover { background: linear-gradient(180deg, #b91c1c, #991b1b); }
body[data-page] .btn-basari {
  background: linear-gradient(180deg, #059669, #047857);
  border-color: #047857;
  color: #ffffff;
}
body[data-page] .btn-hayalet {
  background: transparent;
  border-color: transparent;
  color: var(--text-mid);
  box-shadow: none;
}
body[data-page] .btn-hayalet:hover { background: #f1f5f9; color: var(--text-hi); }

/* ── Form alanları ────────────────────────────────────────────────────── */
/* Tüm metin benzeri alanlar tek seçicide: datetime-local, url, tel gibi
   türler de kapsansın (tek tek saymak birini atlamaya açıktı). */
body[data-page] .girdi,
body[data-page] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
body[data-page] select, body[data-page] textarea,
body.acik-tema .girdi,
body.acik-tema input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
body.acik-tema select {
  /* DİKKAT: `background` kısayolu select'in ok görselini (background-image) siler.
     Bu yüzden yalnız background-color verilir. */
  background-color: #ffffff;
  border: 1px solid var(--cizgi-koyu);
  color: var(--text-hi);
  border-radius: 12px;
  box-shadow: var(--golge-kk);
  transition: border-color .15s, box-shadow .15s;
}
body[data-page] .girdi:focus, body[data-page] input:focus,
body[data-page] select:focus, body[data-page] textarea:focus,
body.acik-tema .girdi:focus, body.acik-tema input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .15);
}
body[data-page] ::placeholder, body.acik-tema ::placeholder { color: var(--text-low); }
body[data-page] input[type="range"] { accent-color: var(--accent); }
body[data-page] input[type="checkbox"], body[data-page] input[type="radio"] { accent-color: var(--accent); }
body[data-page] .birak-alani {
  background: #f8fafc;
  border: 2px dashed var(--cizgi-koyu);
  color: var(--text-mid);
}
body[data-page] .birak-alani.surukleniyor {
  background: var(--accent-yumusak);
  border-color: var(--accent);
}
body[data-page] .girdi.gecersiz, body[data-page] input.gecersiz { border-color: var(--danger); }
body[data-page] .girdi.gecerli, body[data-page] input.gecerli { border-color: var(--success); }

/* ── Sekmeler ─────────────────────────────────────────────────────────── */
body[data-page] .sekmeler { border-bottom: 1px solid var(--cizgi); }
body[data-page] .sekme {
  background: transparent;
  border: none;
  color: var(--text-mid);
  font-weight: 600;
}
body[data-page] .sekme:hover { color: var(--text-hi); background: #f8fafc; }
body[data-page] .sekme.aktif {
  color: var(--accent-koyu);
  background: var(--accent-yumusak);
  box-shadow: inset 0 -2px 0 var(--accent);
}

/* ── Tablolar ─────────────────────────────────────────────────────────── */
body[data-page] .tablo-sarici {
  background: #ffffff;
  border: 1px solid var(--cizgi);
  border-radius: var(--radius);
  box-shadow: var(--golge-kk);
}
body[data-page] .tablo th {
  background: #f8fafc;
  color: var(--text-mid);
  border-bottom: 1px solid var(--cizgi);
  font-weight: 650;
  letter-spacing: .01em;
}
body[data-page] .tablo td { border-bottom: 1px solid var(--cizgi); color: var(--text-hi); }
body[data-page] .tablo tbody tr:hover td { background: #f8fafc; }

/* ── Rozetler ─────────────────────────────────────────────────────────── */
body[data-page] .rozet {
  border: 1px solid transparent;
  font-weight: 650;
  border-radius: 999px;
}
body[data-page] .rozet-basari  { background: var(--success-yumusak); color: #047857; border-color: rgba(5, 150, 105, .2); }
body[data-page] .rozet-uyari   { background: var(--warning-yumusak); color: #b45309; border-color: rgba(217, 119, 6, .22); }
body[data-page] .rozet-tehlike { background: var(--danger-yumusak);  color: #b91c1c; border-color: rgba(220, 38, 38, .2); }
body[data-page] .rozet-bilgi   { background: var(--accent-yumusak);  color: var(--accent-koyu); border-color: rgba(79, 70, 229, .2); }

/* ── Acil durum şeridi: dikkat çekiciliği korunur ─────────────────────── */
body[data-page] .acil-serit, body[data-page] .acil-bant {
  background: linear-gradient(180deg, #fff5f5, #fef2f2);
  border: 1px solid rgba(220, 38, 38, .22);
  box-shadow: var(--golge-kk);
}
body[data-page] .acil-buton {
  background: #ffffff;
  border: 1px solid rgba(220, 38, 38, .3);
  color: #b91c1c;
  font-weight: 700;
  box-shadow: var(--golge-kk);
}
body[data-page] .acil-buton:hover {
  background: #dc2626;
  border-color: #b91c1c;
  color: #ffffff;
  box-shadow: 0 8px 20px -8px rgba(220, 38, 38, .55);
}

/* ── Modal ────────────────────────────────────────────────────────────── */
body[data-page] .modal-fon, body.acik-tema .modal-fon {
  background: rgba(15, 23, 42, .45);
}
body[data-page] .modal, body.acik-tema .modal {
  background: #ffffff;
  border: 1px solid var(--cizgi);
  box-shadow: var(--golge-buyuk);
  border-radius: 20px;
}
body[data-page] .modal-baslik { border-bottom: 1px solid var(--cizgi); }
body[data-page] .modal-baslik h3 { color: var(--text-hi); }
body[data-page] .modal-alt { border-top: 1px solid var(--cizgi); background: #f8fafc; }
body[data-page] .modal-kapat { color: var(--text-mid); background: transparent; border: none; }
body[data-page] .modal-kapat:hover { background: #f1f5f9; color: var(--text-hi); }

/* ── Bildirimler ──────────────────────────────────────────────────────── */
body[data-page] .toast, body.acik-tema .toast {
  background: #ffffff;
  border: 1px solid var(--cizgi);
  color: var(--text-hi);
  box-shadow: var(--golge-buyuk);
}
body[data-page] .toast-basari { border-left: 4px solid var(--success); }
body[data-page] .toast-hata   { border-left: 4px solid var(--danger); }
body[data-page] .toast-uyari  { border-left: 4px solid var(--warning); }
body[data-page] .toast-bilgi  { border-left: 4px solid var(--accent); }

/* ── Durum noktaları ve ilerleme ──────────────────────────────────────── */
body[data-page] .nokta { box-shadow: 0 0 0 3px rgba(15, 23, 42, .05); }
body[data-page] .ilerleme, body[data-page] .ozet-cubuk { background: #eef2f7; }
body[data-page] .doldurma, body[data-page] .ozet-dolu {
  background: linear-gradient(90deg, #6366f1, #4f46e5);
}
body[data-page] .ozet-dolu.tehlike { background: linear-gradient(90deg, #f87171, #dc2626); }
body[data-page] .sayac { color: var(--text-hi); }
body[data-page] .geri-sayim { color: var(--text-hi); letter-spacing: -.01em; }
body[data-page] .eslesme-kodu {
  background: var(--accent-yumusak);
  color: var(--accent-koyu);
  border: 1px solid rgba(79, 70, 229, .2);
}

/* ── Mobil alt menü ───────────────────────────────────────────────────── */
body[data-page] .alt-nav {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--cizgi);
  box-shadow: 0 -4px 20px rgba(16, 24, 40, .06);
}
body[data-page] .alt-nav a, body[data-page] .alt-nav .nav-daha { color: var(--text-low); }
body[data-page] .alt-nav a.aktif, body[data-page] .alt-nav .nav-daha.aktif { color: var(--accent); }
body[data-page] .daha-sayfa { background: #ffffff; border-top: 1px solid var(--cizgi); }

/* ── YouTube alanı ────────────────────────────────────────────────────── */
body[data-page] .yt-girdi { background: #ffffff; border: 1px solid var(--cizgi-koyu); }
body[data-page] .yt-btn { background: #ffffff; border: 1px solid var(--cizgi-koyu); color: var(--text-hi); }
body[data-page] .yt-uyari { background: var(--warning-yumusak); color: #b45309; border: 1px solid rgba(217, 119, 6, .2); }
body[data-page] .yt-secenekler { background: #f8fafc; border: 1px solid var(--cizgi); }

/* ── Kaydırma çubuğu ──────────────────────────────────────────────────── */
body[data-page] *::-webkit-scrollbar { width: 10px; height: 10px; }
body[data-page] *::-webkit-scrollbar-track { background: transparent; }
body[data-page] *::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, .16);
  border-radius: 999px;
  border: 2px solid var(--bg-void);
}
body[data-page] *::-webkit-scrollbar-thumb:hover { background: rgba(15, 23, 42, .28); }

/* ── Erişilebilirlik: klavye odağı her yerde görünür ──────────────────── */
body[data-page] :focus-visible, body.acik-tema :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Açık temada düzeltilen koyu-tema kalıntıları ──────────────────────── */
/* Işıma (glow) koyu zemin içindi; beyazda rakamları konturlu gösteriyordu. */
body[data-page] .geri-sayim,
body[data-page] .eslesme-kodu { text-shadow: none; }

/* Anahtar (toggle) izi: beyaz üstü beyaz görünmezdi */
body[data-page] .toggle .tg-iz {
  background: #e2e8f0;
  border: 1px solid var(--cizgi-koyu);
}
body[data-page] .toggle input:checked + .tg-iz {
  background: var(--success);      /* temel tasarımdaki "açık = yeşil" anlamı korunur */
  border-color: #047857;
}

/* Etkinlik akışı satırları */
body[data-page] .akis-oge {
  background: #f8fafc;
  border: 1px solid var(--cizgi);
}

/* Sekme şeridi: temel tasarımdaki koyu zemin açık temada ağır gri görünüyordu */
body[data-page] .sekmeler {
  background: #f1f5f9;
  border: 1px solid var(--cizgi);
  border-radius: 14px;
}
body[data-page] .sekme.aktif {
  background: #ffffff;
  color: var(--accent-koyu);
  box-shadow: var(--golge-kk);
}

/* Liste içindeki küçük yıkıcı eylemler sakin görünsün; tam boy tehlike
   düğmeleri (onay/acil) dolu kırmızı kalır. Bir listede yedi dolu kırmızı
   düğme, asıl önemli olanı görünmez kılıyordu. */
body[data-page] .btn-tehlike.btn-kucuk {
  background: #ffffff;
  border-color: rgba(220, 38, 38, .28);
  color: #b91c1c;
  box-shadow: var(--golge-kk);
}
body[data-page] .btn-tehlike.btn-kucuk:hover {
  background: var(--danger-yumusak);
  border-color: rgba(220, 38, 38, .5);
  color: #991b1b;
}

/* ══════════════════════════════════════════════════════════════════════════
   MOBİL STÜDYO — telefonda bambaşka bir yerleşim
   ══════════════════════════════════════════════════════════════════════════
   SORUN: Telefonda stüdyo tek uzun bir kaydırmaydı. Metni yazıp yayınlamak
   için ses, hız, perde, jingle, hedef, tekrar, ses seviyesi alanlarının
   tamamını geçmek gerekiyordu; "Yayınla" ekranın çok altında kalıyordu.

   ÇÖZÜM: Yazma yüzeyi tam ekran; ayarlar tek dokunuşla açılan bir sayfada;
   Ön İzle/Yayınla her zaman başparmak menzilinde yapışkan çubukta.

   MASAÜSTÜ ETKİLENMEZ: sarmalayıcı `display: contents` olduğu için masaüstü
   DOM akışı ve yerleşimi bire bir aynı kalır.
   ══════════════════════════════════════════════════════════════════════════ */

/* Masaüstü: sarmalayıcı yokmuş gibi davranır */
#studyoAyarSayfasi { display: contents; }
.m-sayfa-baslik { display: none; }
#studyoAyarAcBtn { display: none; }

@media (max-width: 899px) {
  body[data-page="studyo"] .sayfa-baslik { margin-bottom: 8px; }

  /* Izgara öğesinin varsayılan `min-width: auto` değeri, tek satıra alınan
     sekmelerin en-küçük genişliği kadar BÜYÜMESİNE yol açıyordu (yatay taşma).
     `min-width: 0` ile bölüm sütuna sığar, sekmeler kendi içinde kayar. */
  body[data-page="studyo"] .grid > .cam { min-width: 0; }

  /* ── Kaynak sekmeleri: üstte yapışkan, yatay kaydırmalı ── */
  body[data-page="studyo"] #studyoSekmeler {
    position: sticky;
    top: calc(var(--guvenli-ust) - 4px);
    z-index: 30;
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    background: #f1f5f9;
    margin: 0 0 12px;
  }
  body[data-page="studyo"] #studyoSekmeler::-webkit-scrollbar { display: none; }
  body[data-page="studyo"] .sekme {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 10px 14px;
    white-space: nowrap;
  }

  /* ── Yazma yüzeyi büyür ── */
  body[data-page="studyo"] #studyoMetin {
    min-height: 42vh;
    font-size: 16px;          /* iOS'ta odaklanınca yakınlaştırmayı önler */
    line-height: 1.6;
  }

  /* ── Eylem çubuğu: her zaman başparmak menzilinde ── */
  body[data-page="studyo"] #studyoEylemler {
    position: fixed;
    left: 0; right: 0;
    bottom: calc(58px + var(--guvenli-alt));   /* alt menünün üstünde */
    z-index: 55;
    margin: 0;
    padding: 10px max(10px, var(--guvenli-sol)) 10px max(10px, var(--guvenli-sag));
    gap: 8px;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--cizgi);
    box-shadow: 0 -6px 24px rgba(16, 24, 40, .10);
  }
  body[data-page="studyo"] #studyoEylemler .btn { min-height: 50px; }
  body[data-page="studyo"] #studyoAyarAcBtn {
    display: inline-flex;
    flex: 0 0 auto;
    width: 52px;
    padding: 0;
    font-size: 1.2rem;
  }
  body[data-page="studyo"] #studyoOnizleBtn { flex: 0 0 auto; }
  /* Sabit çubuğun içeriği örtmemesi için sayfa altına pay */
  body[data-page="studyo"] .icerik { padding-bottom: 150px; }

  /* ── Ayar sayfası: tam ekran, aşağıdan gelir ── */
  body[data-page="studyo"] #studyoAyarSayfasi {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 90;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--bg-void);
    padding: calc(12px + var(--guvenli-ust)) 14px calc(28px + var(--guvenli-alt));
    transform: translateY(100%);
    transition: transform .22s ease;
    visibility: hidden;
  }
  body[data-page="studyo"] #studyoAyarSayfasi.acik {
    transform: translateY(0);
    visibility: visible;
  }
  body[data-page="studyo"] .m-sayfa-baslik {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: sticky;
    top: calc(var(--guvenli-ust) - 12px);
    z-index: 2;
    margin: -4px -14px 14px;
    padding: 12px 14px;
    background: var(--bg-void);
    border-bottom: 1px solid var(--cizgi);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-hi);
  }
  body[data-page="studyo"] .m-sayfa-baslik .btn { min-height: 42px; padding: 0 18px; font-weight: 700; }

  /* Ayar sayfasındaki her blok kendi kartında — okunması kolay olsun */
  body[data-page="studyo"] #studyoAyarSayfasi > .form-satir,
  body[data-page="studyo"] #studyoAyarSayfasi > #studyoTekrarAlani > .form-satir {
    background: #ffffff;
    border: 1px solid var(--cizgi);
    border-radius: 14px;
    box-shadow: var(--golge-kk);
    padding: 14px;
    margin-bottom: 12px;
  }
  /* Telefonda yan yana alan sıkışıyor — hepsi alt alta */
  body[data-page="studyo"] #studyoAyarSayfasi .form-yatay { grid-template-columns: 1fr; display: grid; gap: 12px; }
  body[data-page="studyo"] #studyoAyarSayfasi select,
  body[data-page="studyo"] #studyoAyarSayfasi input { width: 100%; max-width: 100%; }
  body[data-page="studyo"] #studyoAyarSayfasi input[type="range"] { min-height: 44px; }
  body[data-page="studyo"] #studyoAyarSayfasi .hedef-liste { max-height: none; }
  body[data-page="studyo"] #studyoAyarSayfasi .hedef-kart { min-height: 56px; }

  /* Ayar sayfası açıkken arkadaki sayfa kaymasın */
  body.m-ayar-acik { overflow: hidden; }
  body.m-ayar-acik .alt-nav { display: none; }
}

/* ══════════════════════════════════════════════════════════════════════════
   DİJİTAL PANO — /kiosk?pano=1
   ══════════════════════════════════════════════════════════════════════════
   Hoparlör sayfası bir pano yazılımına gömüldüğünde kullanılır. Yalnız
   GÖRÜNÜM katmanıdır: ses, zil zamanlayıcısı ve eşleşme mantığı aynıdır.
   Pano kipi kapalıyken (?pano=1 yoksa) bant gizlidir → normal hoparlör
   ekranı hiç değişmez.
   ══════════════════════════════════════════════════════════════════════════ */

/* Normal hoparlörde bant asla görünmez */
#panoBant { display: none; }

body.pano-kipi { background: #06070d; }

/* Pano kipinde kart arayüzü küçülür, ekran bandı öne çıkar */
body.pano-kipi .tek-kart-sayfa { padding: 2vmin; }
body.pano-kipi .tek-kart { max-width: 92vw; }

body.pano-kipi #panoBant[hidden] { display: none; }
body.pano-kipi #panoBant {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 4vmin;
  background: linear-gradient(150deg, #111a3f 0%, #0a0d18 60%);
  animation: pano-gir .35s ease;
}
body.pano-kipi #panoBant.acil {
  background: linear-gradient(150deg, #7f1d1d 0%, #450a0a 65%);
  animation: pano-gir .35s ease, pano-nabiz 1.4s ease-in-out infinite;
}
@keyframes pano-gir { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
@keyframes pano-nabiz {
  0%, 100% { box-shadow: inset 0 0 0 0 rgba(248, 113, 113, 0); }
  50%      { box-shadow: inset 0 0 14vmin 0 rgba(248, 113, 113, .28); }
}

body.pano-kipi .pano-ic {
  display: flex;
  align-items: center;
  gap: 5vmin;
  max-width: 92vw;
}
body.pano-kipi .pano-ikon { font-size: 16vmin; line-height: 1; flex-shrink: 0; }
body.pano-kipi .pano-ust {
  font-size: 4.2vmin;
  font-weight: 800;
  letter-spacing: .18em;
  color: #a5b4fc;
  text-transform: uppercase;
}
body.pano-kipi #panoBant.acil .pano-ust { color: #fecaca; }
body.pano-kipi .pano-baslik {
  font-size: 8.5vmin;
  font-weight: 800;
  line-height: 1.12;
  color: #f8fafc;
  margin-top: 1.4vmin;
  /* Uzun başlık taşmasın: en çok üç satır */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Küçük pano bölgelerinde (ör. ekranın köşesi) dikey yerleşime düşer */
@media (max-aspect-ratio: 3/4) {
  body.pano-kipi .pano-ic { flex-direction: column; text-align: center; gap: 3vmin; }
  body.pano-kipi .pano-baslik { font-size: 7vmin; }
}

/* Hareket duyarlılığı ayarı açıksa yanıp sönme olmasın */
@media (prefers-reduced-motion: reduce) {
  body.pano-kipi #panoBant, body.pano-kipi #panoBant.acil { animation: none; }
}

/* ═══ 📺 Pano ekranları kartı ve listesi ═══════════════════════════════════
   Pano ekranları cihaz DEĞİLDİR: seçilmezler, "tüm cihazlar" yayınını her
   zaman çalarlar. Kart bu yüzden seçim kutusu yerine "›" ile ayrıntı açar.
   YALNIZ EKLEME: mevcut .hedef-kart kuralları değişmedi.                    */
.hedef-kart.pano {
  border-color: rgba(139, 92, 246, .45);
  background: linear-gradient(180deg, rgba(139, 92, 246, .14), rgba(139, 92, 246, .05));
}
.hedef-kart.pano:hover { border-color: rgba(139, 92, 246, .75); }
.hedef-kart.pano .h-ad { color: var(--text-hi); }
.hedef-kart.pano .h-onay.pano-ok {
  border: none; background: none; font-size: 1.3rem; line-height: 1;
  color: var(--text-low); display: flex; align-items: center; justify-content: center;
}
.hedef-kart.pano.cevrimdisi { opacity: .75; }

.pano-ekran-liste { display: flex; flex-direction: column; gap: 8px; max-height: 46vh; overflow-y: auto; }
.pano-satir {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--glass-border); background: var(--glass);
}
.pano-satir.kapali { opacity: .65; }
.pano-satir .p-govde { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.pano-satir .p-ad { font-weight: 700; color: var(--text-hi); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pano-satir .p-alt { font-size: .72rem; color: var(--text-low); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pano-satir .btn-kucuk { flex-shrink: 0; }
@media (max-width: 560px) {
  .pano-satir { flex-wrap: wrap; }
  .pano-satir .p-govde { flex-basis: 100%; }
}

/* Pano ekranı teşhis satırı (son zil / saat sapması) — satır sonuna sarılabilir */
.pano-satir .p-teshis { white-space: normal; color: var(--text-mid); }

/* ═══ 🕘 ANONS GEÇMİŞİ ═══════════════════════════════════════════════════════
   YALNIZ EKLEME — tüm sınıflar "g-" önekli ve bu sayfaya özgü.
   Tür renkleri (WCAG AA metin kontrastı ≥ 4.5:1, açık zeminde):
     Program   amber   · Anons  mavi · Kütüphane  yeşil · TTS  mor           */
body[data-page="gecmis"] {
  --g-program: #b45309;  --g-program-zemin: #fef3c7;
  --g-anons: #0369a1;    --g-anons-zemin: #e0f2fe;
  --g-kutuphane: #047857; --g-kutuphane-zemin: #d1fae5;
  --g-tts: #6d28d9;      --g-tts-zemin: #ede9fe;
  --g-cizgi: rgba(15, 23, 42, .08);
}

.g-alt-baslik { margin: 4px 0 0; }

/* ── Araç çubuğu ─────────────────────────────────────────────────────────── */
.g-arac {
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 22px;
}
.g-arac-satir { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.g-segment {
  display: inline-flex; padding: 3px; gap: 2px;
  background: var(--glass); border: 1px solid var(--g-cizgi); border-radius: 12px;
}
.g-seg {
  min-height: 34px; padding: 6px 13px; border: 0; border-radius: 9px;
  background: transparent; color: var(--text-mid);
  font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s;
}
.g-seg:hover { color: var(--text-hi); }
.g-seg.aktif { background: var(--text-hi); color: #fff; }

.g-gun-gezin {
  display: inline-flex; align-items: center;
  background: var(--glass); border: 1px solid var(--g-cizgi); border-radius: 12px; overflow: hidden;
}
.g-ok {
  width: 36px; height: 40px; border: 0; background: transparent; cursor: pointer;
  font-size: 1.25rem; line-height: 1; color: var(--text-mid);
}
.g-ok:hover:not(:disabled) { color: var(--text-hi); background: rgba(15, 23, 42, .04); }
.g-ok:disabled { opacity: .35; cursor: default; }
body[data-page="gecmis"] .g-tarih {
  min-height: 40px; border: 0; border-left: 1px solid var(--g-cizgi); border-right: 1px solid var(--g-cizgi);
  border-radius: 0; background-color: transparent; padding: 0 10px; font: inherit; font-size: .85rem;
  color: var(--text-hi); box-shadow: none; width: auto;
}
body[data-page="gecmis"] .g-ara {
  flex: 1 1 220px; min-width: 0; min-height: 40px; border-radius: 12px;
}

.g-turler { display: flex; flex-wrap: wrap; gap: 8px; }
.g-tur {
  --renk: var(--text-mid); --zemin: transparent;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 34px; padding: 5px 12px 5px 10px;
  border: 1px solid var(--g-cizgi); border-radius: 999px; background: var(--glass);
  color: var(--text-low); font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.g-tur b { font-weight: 700; font-variant-numeric: tabular-nums; opacity: .75; }
.g-tur .g-nokta { width: 8px; height: 8px; border-radius: 50%; background: var(--renk); opacity: .45; }
.g-tur.aktif { background: var(--zemin); border-color: transparent; color: var(--renk); }
.g-tur.aktif .g-nokta { opacity: 1; }
.g-tur:not(.aktif) { text-decoration: line-through; text-decoration-color: rgba(15, 23, 42, .25); }

.t-program   { --renk: var(--g-program);   --zemin: var(--g-program-zemin); }
.t-anons     { --renk: var(--g-anons);     --zemin: var(--g-anons-zemin); }
.t-kutuphane { --renk: var(--g-kutuphane); --zemin: var(--g-kutuphane-zemin); }
.t-tts       { --renk: var(--g-tts);       --zemin: var(--g-tts-zemin); }

/* ── Akış: gün → saat → kayıt ────────────────────────────────────────────── */
.g-akis { display: flex; flex-direction: column; gap: 28px; }
.g-gun-baslik {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 10px 2px; margin-bottom: 6px;
  background: var(--bg-void); border-bottom: 1px solid var(--g-cizgi);
}
.g-gun-ad { font-size: .95rem; font-weight: 700; color: var(--text-hi); letter-spacing: -.01em; }
.g-gun-adet { font-size: .78rem; color: var(--text-low); font-variant-numeric: tabular-nums; }

.g-saat { display: grid; grid-template-columns: 58px 1fr; gap: 12px; padding: 8px 0; }
.g-saat + .g-saat { border-top: 1px dashed var(--g-cizgi); }
.g-saat-etiket {
  padding-top: 13px; font-family: var(--font-mono); font-size: .78rem; font-weight: 600;
  color: var(--text-low); font-variant-numeric: tabular-nums;
}
.g-saat-liste { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

.g-kayit {
  position: relative; border-radius: 12px; background: var(--glass);
  border: 1px solid var(--g-cizgi); cursor: pointer; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.g-kayit::before {
  content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--renk);
}
.g-kayit:hover { border-color: rgba(15, 23, 42, .16); }
.g-kayit:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--renk) 30%, transparent); }
.g-kayit.acik { border-color: color-mix(in srgb, var(--renk) 40%, transparent); }

.g-kayit-ana { display: flex; align-items: center; gap: 14px; padding: 11px 14px 11px 16px; min-width: 0; }
.g-zaman {
  flex-shrink: 0; font-family: var(--font-mono); font-size: .9rem; font-weight: 700;
  color: var(--text-hi); font-variant-numeric: tabular-nums;
}
.g-zaman small { font-size: .72rem; font-weight: 500; color: var(--text-low); }
.g-govde { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.g-kayit .g-baslik {
  display: flex; align-items: center; gap: 6px; min-width: 0;
  font-weight: 600; color: var(--text-hi); font-size: .92rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.g-meta { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: .76rem; color: var(--text-low); }
.g-tur-etiket {
  flex-shrink: 0; padding: 1px 8px; border-radius: 999px;
  background: var(--zemin); color: var(--renk); font-weight: 600;
}
.g-icerik { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.g-rozet {
  flex-shrink: 0; padding: 1px 6px; border-radius: 5px;
  font-size: .64rem; font-weight: 800; letter-spacing: .04em;
}
.r-acil { background: #fee2e2; color: #b91c1c; }
.r-test { background: #f1f5f9; color: #475569; }

.g-durum { flex-shrink: 0; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.g-durum small { font-weight: 500; opacity: .8; font-variant-numeric: tabular-nums; }
.d-caldi    { color: #047857; }
.d-bekliyor { color: #4338ca; }
.d-hata     { color: #b91c1c; }
.d-iptal    { color: var(--text-low); }

/* Ayrıntı (satıra tıklayınca) */
.g-detay { display: none; padding: 0 16px 14px 16px; }
.g-kayit.acik .g-detay { display: block; }
.g-detay dl {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 18px;
  margin: 0; padding-top: 12px; border-top: 1px solid var(--g-cizgi);
}
.g-detay dt { font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-low); }
.g-detay dd { margin: 2px 0 0; font-size: .85rem; color: var(--text-hi); overflow-wrap: anywhere; }
.g-detay-genis { grid-column: 1 / -1; }
.g-detay .g-hata { color: #b91c1c; }

.g-bos {
  padding: 56px 16px; text-align: center; color: var(--text-low); font-size: .9rem;
  border: 1px dashed var(--g-cizgi); border-radius: 16px;
}
.g-bos-ikon { display: block; font-size: 1.6rem; margin-bottom: 8px; opacity: .6; }
.g-dipnot { margin-top: 26px; line-height: 1.6; }

/* ── Telefon ─────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .g-arac-satir { gap: 8px; }
  .g-segment { width: 100%; }
  .g-seg { flex: 1; padding: 6px 8px; }
  .g-gun-gezin { flex: 1; }
  body[data-page="gecmis"] .g-tarih { flex: 1; min-width: 0; }
  body[data-page="gecmis"] .g-ara { flex-basis: 100%; }
  .g-saat { grid-template-columns: 1fr; gap: 4px; }
  .g-saat-etiket { padding-top: 0; }
  .g-kayit-ana { flex-wrap: wrap; gap: 4px 12px; }
  .g-govde { flex-basis: calc(100% - 70px); order: 2; }
  .g-zaman { order: 1; }
  .g-durum { order: 3; margin-left: auto; }
}

/* Anons Geçmişi — çalıcı listesi (yayın ayrıntısında) */
.g-alt-tur { flex-shrink: 0; color: var(--text-mid); }
.g-soluk { color: var(--text-low); }
.g-oyuncular { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.g-oyuncular li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 72px; align-items: baseline; gap: 2px 12px;
  padding: 6px 10px; border-radius: 8px; background: rgba(15, 23, 42, .03); font-size: .82rem;
}
.g-o-ad { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-hi); }
.g-o-durum { font-weight: 600; white-space: nowrap; color: var(--text-low); }
.g-oyuncular .o-caldi .g-o-durum { color: #047857; }
.g-oyuncular .o-hata .g-o-durum { color: #b91c1c; }
.g-oyuncular .o-bekleyen .g-o-durum { color: #4338ca; }
.g-o-saat { font-family: var(--font-mono); font-size: .76rem; color: var(--text-low); text-align: right; font-variant-numeric: tabular-nums; }
.g-o-hata { grid-column: 1 / -1; color: #b91c1c; font-size: .76rem; overflow-wrap: anywhere; }
