/* ============== Reji Director Console ==============
   StreamYard 10x — broadcaster studio CSS.
   Tema mevcut Manaliza Atelier (dark glass) ile uyumlu.
*/

/* Kabuk tonu ACILDI (2026-09-13). Kullanici: "sayfayi cok dark yapmissin,
   biraz daha acik tonlar olsun". Onceki #0a0d14 neredeyse saf siyahti; panel
   kenarlari ve metin hiyerarsisi kayboluyordu. Yeni zemin hafif mavi-gri bir
   koyu ton (slate): sahnenin siyahi yaninda panel artik AYRI bir yuzey olarak
   okunuyor, kontrast da WCAG'a rahat yetiyor. */
:root {
    --rdc-bg: #1b2030;
    --rdc-bg-2: #222839;
    --rdc-panel: #262d40;
    --rdc-panel-bd: rgba(255, 255, 255, 0.10);
    --rdc-text: #eef2f9;
    --rdc-mute: #a9b4c9;
    --rdc-accent: #5eead4;
    --rdc-accent-2: #a78bfa;
    --rdc-danger: #ef4444;
    --rdc-warn: #f59e0b;
    --rdc-stage: #0b0e16;
}

/* ============================================================================
   [hidden] GARANTISI
   ============================================================================
   `hidden` ozniteligi, CSS'te elemana ACIKCA display verilmisse ETKISIZ kalir:
   UA stylesheet'teki [hidden]{display:none} kuralini bizim kuralimiz eziyor.
   Bu dosyadaki bilesenlerin cogu display:flex/grid yaziyor, dolayisiyla
   JS `el.hidden = true` dedigi halde eleman EKRANDA KALIYORDU. Somut ornek:
   hedef ekleme penceresinde YouTube secili olsa bile "RTMP adresi" alani
   gorunuyordu (2026-09-12 tema gecisinde yakalandi).

   Ayni tuzak Editor Masasi'nda da yasanmisti (bkz. prep-board.css,
   .pb-news-results[hidden] notu) -- bu yuzden burada tek ve kapsayici bir
   kural koyuyoruz. */
.rdc-shell [hidden],
.atl-modal [hidden],
[class^="rdc-"][hidden],
[class*=" rdc-"][hidden] { display: none !important; }

/* ============================================================================
   RENK SOZLESMESI (--rdc-c-*)
   ============================================================================
   Paylasilan bilesenler (.rdc-input, .rdc-hint, .rdc-onb-field, .rdc-dest-pick,
   .rdc-toggle-row, .rdc-thumb-drop ...) IKI ayri baglamda kullaniliyor:

     1. Studyo kabugu (.rdc-shell)  -> HER ZAMAN koyu. Yayin yapilan ekranin
        aydinlik olmasi zaten istenmiyor; sahnenin yanindaki panel goz yormamali.
     2. Uygulama modallari (.atl-modal) -> kullanicinin TEMASINA uyar.

   Bilesenler eskiden rgba(255,255,255,...) gibi SABIT renkler yaziyordu; koyu
   kabukta dogru, acik temali modalda okunmuyordu (kullanici bildirdi: "bir
   metin yaziyorum okunmuyor"). Artik hicbiri dogrudan renk yazmiyor, hepsi
   asagidaki belirtecleri kullaniyor; baglam belirtecleri bagliyor.

   Atelier belirtecleri (--atl-*) temayla birlikte zaten donuyor (body.dark-mode),
   yani modal tarafinda tek bir tanim iki temayi da karsiliyor. */
.rdc-shell {
    --rdc-c-ink: #eef2f9;
    --rdc-c-mute: #a9b4c9;
    --rdc-c-faint: rgba(255, 255, 255, .46);
    --rdc-c-surface: rgba(255, 255, 255, .07);
    --rdc-c-surface-hi: rgba(255, 255, 255, .14);
    --rdc-c-field: rgba(12, 16, 26, .55);
    --rdc-c-stroke: rgba(255, 255, 255, .14);
    --rdc-c-stroke-hi: rgba(255, 255, 255, .34);
    --rdc-c-accent: var(--rdc-accent);
    --rdc-c-on-accent: #08131a;
}

.atl-modal {
    --rdc-c-ink: var(--atl-ink);
    --rdc-c-mute: var(--atl-mute);
    --rdc-c-faint: var(--atl-faint);
    --rdc-c-surface: var(--atl-surface-2);
    --rdc-c-surface-hi: var(--atl-surface-3);
    /* Form alanlari panelden AYRISMALI: acik temada panel beyaza yakin,
       alanin da beyaz olmasi kutunun sinirini gorunmez kiliyordu. */
    --rdc-c-field: var(--atl-surface-1);
    --rdc-c-stroke: var(--atl-glass-stroke);
    --rdc-c-stroke-hi: var(--atl-glass-stroke-strong);
    --rdc-c-accent: var(--atl-aurora-1);
    --rdc-c-on-accent: #fff;
}

.rdc-shell {
    position: fixed;
    inset: 0;
    background: var(--rdc-bg);
    color: var(--rdc-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    z-index: 9999;            /* mevcut Manaliza menü/theme toggle üstünde */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Director Console aktifken mevcut Manaliza UI elementleri gizle.
   Why: Atelier dock menü sol sidebar'ı, theme toggle "Yayını Başlat" butonunu kapatıyor. */
body.rdc-active #menu,
body.rdc-active #appThemeToggle,
body.rdc-active .atl-dock,
body.rdc-active .atl-topbar,
body.rdc-active .menu-card {
    display: none !important;
}
/* Why: atl-topbar Reji studyosu icinde anlamsiz (kendi rdc-topbar var) — eski Atelier
   "Search anything" + "Idle" rozeti screen'i gereksiz dolduruyordu. */

/* ---- TOP BAR ---- */
.rdc-topbar {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    background: rgba(10, 13, 20, 0.96);
    border-bottom: 1px solid var(--rdc-panel-bd);
    flex-shrink: 0;
}

.rdc-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rdc-livedot {
    color: #64748b;
    font-size: 12px;
    transition: color .3s;
}
.rdc-livedot.rdc-live { color: var(--rdc-danger); animation: rdcPulse 1.4s infinite; }
@keyframes rdcPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.rdc-broadcast-title {
    font-weight: 600;
    font-size: 14px;
}
.rdc-clock {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--rdc-mute);
    margin-left: 14px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
}

.rdc-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rdc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--rdc-panel-bd);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--rdc-text);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
}
.rdc-btn:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.18); }
.rdc-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.rdc-btn--small { padding: 5px 10px; font-size: 12px; }
.rdc-btn--ghost { background: transparent; }
.rdc-btn--primary { background: linear-gradient(135deg, var(--rdc-accent), var(--rdc-accent-2)); color: #0a0d14; font-weight: 700; border: 0; }
.rdc-btn--primary:hover { filter: brightness(1.1); }
.rdc-btn--danger { background: var(--rdc-danger); color: white; border: 0; }
.rdc-btn--danger:hover { background: #dc2626; }
.rdc-btn--ai { background: rgba(167, 139, 250, 0.12); border-color: rgba(167, 139, 250, 0.3); color: var(--rdc-accent-2); }
.rdc-btn--ai.rdc-ai-off { background: rgba(255, 255, 255, 0.04); color: var(--rdc-mute); border-color: var(--rdc-panel-bd); }

/* ---- MAIN GRID ---- */
.rdc-main {
    flex: 1;
    display: grid;
    /* Sag raf KALDIRILDI (2026-09-13): iki yandan iki ayri panel yerine
       sahneye yer aciyoruz; sag rafin isleri alt serit ve alt arac cubuguna
       tasindi. Sol panel biraz genisledi -- icindeki kartlar sıkısıyordu. */
    grid-template-columns: 308px 1fr;
    gap: 12px;
    padding: 12px;
    min-height: 0;
}

.rdc-sidebar {
    background: var(--rdc-panel);
    border: 1px solid var(--rdc-panel-bd);
    border-radius: 14px;
    padding: 14px 14px 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    min-height: 0;
}

/* ---- SEKMELER (iki oebek) ----------------------------------------------
   Eskiden 6 sekme tek sirada, 11px yaziyla yan yanaydi; "Katman" adi altinda
   alt bant + logo + muzik + intro/outro bir aradaydi ve kullanici ne nerede
   bulamiyordu. Artik sekmeler NE ISE YARADIKLARINA gore iki oebekte:
   "Yayında görünen" ve "Hazırlık". Oebek basligi kucuk ve sessiz; sekmeler
   ikon+etiket, dokunulabilir buyuklukte. */
.rdc-tabs { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.rdc-tabgroup { display: flex; flex-direction: column; gap: 6px; }
.rdc-tabgroup__label {
    font-size: 9.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--rdc-c-faint); padding-left: 2px;
}
.rdc-tabgroup__row {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
    background: rgba(0, 0, 0, .22); padding: 4px; border-radius: 10px;
}
.rdc-tab {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    padding: 9px 4px;
    background: transparent; border: 0; border-radius: 8px;
    color: var(--rdc-c-mute); font-size: 10.5px; font-weight: 600; font-family: inherit;
    cursor: pointer; transition: background .15s ease, color .15s ease;
}
.rdc-tab i { font-size: 14px; }
.rdc-tab:hover { color: var(--rdc-c-ink); background: var(--rdc-c-surface); }
.rdc-tab--active {
    background: color-mix(in oklab, var(--rdc-c-accent) 16%, transparent);
    color: var(--rdc-c-accent);
    box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--rdc-c-accent) 40%, transparent);
}

.rdc-tab-panel { display: none; }
.rdc-tab-panel--active { display: block; }

/* Panel basligi: eski .rdc-section-title'in daha okunur hali.
   Baslik + yanindaki tek eylem dugmesi ayni satirda. */
.rdc-panelhead {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    margin: 0 0 8px;
}
.rdc-panelhead__title {
    margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .04em;
    color: var(--rdc-c-ink);
}
.rdc-iconbtn {
    width: 26px; height: 26px; flex: none; border-radius: 8px; cursor: pointer;
    display: grid; place-items: center;
    background: var(--rdc-c-surface); border: 1px solid var(--rdc-c-stroke);
    color: var(--rdc-c-ink); font-size: 11px;
    transition: background .15s ease, border-color .15s ease;
}
.rdc-iconbtn:hover { background: var(--rdc-c-surface-hi); border-color: var(--rdc-c-accent); }

/* Kaydirma cubuklu satir: etiket + slider + deger */
.rdc-slider-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.rdc-slider-row > label { flex: none; min-width: 54px; font-size: 11.5px; color: var(--rdc-c-mute); }
.rdc-slider-row > input[type="range"] { flex: 1; accent-color: var(--rdc-c-accent); }
.rdc-slider-row > span { flex: none; min-width: 44px; text-align: right; font-size: 11px; color: var(--rdc-c-mute); font-variant-numeric: tabular-nums; }

/* Marka sekmesinin ust notu: "burada ne yaparsan kalici" */
.rdc-brandnote {
    display: flex; gap: 9px; align-items: flex-start;
    padding: 10px 12px; margin-bottom: 14px; border-radius: 10px;
    background: color-mix(in oklab, var(--rdc-c-accent) 12%, transparent);
    border: 1px solid color-mix(in oklab, var(--rdc-c-accent) 30%, transparent);
    font-size: 11.5px; line-height: 1.45; color: var(--rdc-c-ink);
}
.rdc-brandnote i { color: var(--rdc-c-accent); margin-top: 2px; }

.rdc-section-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--rdc-c-mute, var(--rdc-mute));
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 10px;
}

/* ---- SCENE GRID ---- */
.rdc-scene-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.rdc-scene-card {
    padding: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--rdc-panel-bd);
    border-radius: 8px;
    color: var(--rdc-text);
    font-size: 11px;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
}
.rdc-scene-card:hover { border-color: var(--rdc-accent); background: rgba(94, 234, 212, 0.06); }
.rdc-scene-card.rdc-scene-card--active { border-color: var(--rdc-accent); background: rgba(94, 234, 212, 0.12); }
.rdc-scene-card span { display: block; margin-top: 6px; }

.rdc-scene-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    overflow: hidden;
}
.rdc-scene-block {
    position: absolute;
    background: linear-gradient(135deg, #475569, #334155);
    top: 0; left: 0;
}

/* ---- UPLOAD ZONE ---- */
.rdc-upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 12px;
    border: 2px dashed var(--rdc-panel-bd);
    border-radius: 10px;
    cursor: pointer;
    transition: all .15s;
    margin-bottom: 12px;
}
.rdc-upload-zone:hover { border-color: var(--rdc-accent); background: rgba(94, 234, 212, 0.04); }
.rdc-upload-zone i { font-size: 26px; color: var(--rdc-accent); margin-bottom: 8px; }
.rdc-upload-zone span { font-weight: 600; font-size: 13px; }
.rdc-upload-zone small { color: var(--rdc-mute); margin-top: 4px; font-size: 11px; }

/* ---- ASSET LIST ---- */
.rdc-asset-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.rdc-asset-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--rdc-panel-bd);
    border-radius: 6px;
    font-size: 12px;
    cursor: grab;
}
.rdc-asset-item:hover { border-color: rgba(255, 255, 255, 0.18); }
.rdc-asset-item:active { cursor: grabbing; }
.rdc-asset-thumb {
    width: 36px; height: 36px;
    border-radius: 4px;
    background: #1e293b;
    flex-shrink: 0;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rdc-mute);
}
.rdc-asset-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rdc-asset-actions { display: flex; gap: 4px; }
.rdc-asset-actions button {
    background: transparent; border: 0;
    color: var(--rdc-mute);
    padding: 4px 6px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 11px;
}
.rdc-asset-actions button:hover { color: var(--rdc-accent); background: rgba(94, 234, 212, 0.1); }
.rdc-asset-actions .rdc-del:hover { color: var(--rdc-danger); background: rgba(239, 68, 68, 0.1); }

.rdc-empty {
    color: var(--rdc-c-mute, var(--rdc-mute));
    font-size: 12px;
    text-align: center;
    padding: 14px;
    margin: 0;
}

/* ---- INPUT ---- */
.rdc-input {
    width: 100%;
    padding: 9px 11px;
    background: var(--rdc-c-field, rgba(0, 0, 0, 0.4));
    border: 1px solid var(--rdc-c-stroke, var(--rdc-panel-bd));
    border-radius: 8px;
    color: var(--rdc-c-ink, var(--rdc-text));
    font-size: 13px;
    font-family: inherit;
    margin-bottom: 8px;
    transition: border-color .15s ease, background .15s ease;
}
.rdc-input:hover { border-color: var(--rdc-c-stroke-hi, rgba(255,255,255,.3)); }
.rdc-input:focus {
    outline: none;
    border-color: var(--rdc-c-accent, var(--rdc-accent));
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--rdc-c-accent, #7C5CFF) 18%, transparent);
}
.rdc-input::placeholder { color: var(--rdc-c-faint, var(--rdc-mute)); }
/* Tarih/saat alanlarinin takvim simgesi acik temada gorunmez oluyordu. */
.rdc-input::-webkit-calendar-picker-indicator { filter: none; opacity: .55; cursor: pointer; }
body.dark-mode .atl-modal .rdc-input::-webkit-calendar-picker-indicator,
.rdc-shell .rdc-input::-webkit-calendar-picker-indicator { filter: invert(1); opacity: .6; }

.rdc-row {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}
.rdc-row .rdc-btn { flex: 1; justify-content: center; }
.rdc-hint {
    font-size: 11.5px;
    color: var(--rdc-c-mute, var(--rdc-mute));
    display: block;
    margin: 6px 0 12px;
    line-height: 1.4;
}

/* ---- STAGE ---- */
/* Sahne + altindaki yerlesim seridi DIKEY yigilir. Eskiden flex satirdi ve
   sahneden sonra eklenen serit sahnenin YANINA dusuyordu. */
.rdc-stage-wrap {
    position: relative;
    background: var(--rdc-panel);
    border: 1px solid var(--rdc-panel-bd);
    border-radius: 12px;
    padding: 12px;
    overflow: hidden;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
/* Sahne bos alani doldursun ama en-boy oranini korusun. */
.rdc-stage-wrap > .rdc-stage { flex: 0 1 auto; width: 100%; }

.rdc-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--rdc-stage);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
    max-height: 100%;
}

/* Yerlesim seridi: sahnenin altinda, StreamYard'daki duzen seridideki gibi.
   Her buton kucuk bir sema cizer (kutular = slotlar), boylece isim okumadan
   hangi duzen oldugu anlasilir. */
.rdc-layoutbar {
    display: flex; align-items: center; justify-content: center;
    gap: 6px; flex-wrap: wrap; flex: none;
    width: 100%; padding: 0 2px;
}
.rdc-layoutbar:empty { display: none; }
.rdc-layoutbtn {
    position: relative;
    width: 46px; height: 30px; flex: none;
    border-radius: 5px; cursor: pointer; padding: 3px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.10);
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.rdc-layoutbtn:hover { background: rgba(255,255,255,.12); transform: translateY(-1px); }
.rdc-layoutbtn.is-active { border-color: var(--rdc-accent, #7c6cf0); background: rgba(124,108,240,.22); }
.rdc-layoutbtn__box { position: absolute; background: rgba(255,255,255,.55); border-radius: 1.5px; }
.rdc-layoutbtn.is-active .rdc-layoutbtn__box { background: #fff; }

/* Sahne onizlemesi: live/stage.html iframe olarak. Yayina giden goruntuyle
   AYNI sayfa -- studyo artik kendi kompozitini cizmiyor (bkz. reji-stage-bridge.js). */
.rdc-stage-frame {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    border: 0; display: block;
    background: #000;
}
/* Eski studyo-ici overlay DOM'u: sahne motoruna tasindi, artik cizilmiyor.
   Markup'ta duruyor (kayitli sahneler/handler'lar referans veriyor) ama
   iframe'in ustune binmesin diye kalici gizli. */
#rdcLowerThird, #rdcLogo, #rdcTicker { display: none !important; }

.rdc-stage-empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--rdc-mute);
    background: linear-gradient(135deg, #0f172a, #1e293b);
}
.rdc-stage-empty i { font-size: 56px; margin-bottom: 16px; color: var(--rdc-accent); opacity: 0.6; }
.rdc-stage-empty p { margin: 4px 0; font-size: 14px; }
.rdc-empty-sub { font-size: 12px !important; color: var(--rdc-mute); }

/* Stage layer'lari (JS dinamik olusturur) */
.rdc-stage-layer {
    position: absolute;
    overflow: hidden;
    background: #1e293b;
}
.rdc-stage-layer video,
.rdc-stage-layer img,
.rdc-stage-layer canvas {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.rdc-stage-layer--camera { background: #1e293b; }
.rdc-stage-layer--media { background: #0a0d14; }
/* Why: cover ile letterbox siyah bantlar yok; profesyonel yayin gorunumu. */
.rdc-stage-layer--media img,
.rdc-stage-layer--media video { object-fit: cover; }
.rdc-stage-layer--media.rdc-fit-contain img,
.rdc-stage-layer--media.rdc-fit-contain video { object-fit: contain; }

/* Aktif asset (stage'de su an gosterilen) gorsel vurgu */
.rdc-asset-item { position: relative; }
.rdc-asset-item.rdc-asset-item--active {
    border-color: var(--rdc-accent) !important;
    box-shadow: 0 0 0 1px var(--rdc-accent), 0 0 12px rgba(99,102,241,0.35);
}
.rdc-asset-item.rdc-asset-item--active::after {
    content: '● SAHNEDE';
    position: absolute;
    top: 4px; right: 6px;
    font-size: 9px;
    font-weight: 700;
    color: var(--rdc-accent);
    background: rgba(15, 23, 42, 0.92);
    padding: 2px 6px;
    border-radius: 4px;
    pointer-events: none;
    letter-spacing: 0.5px;
}

/* Sahnedeki Medya — kucuk thumbnail */
.rdc-stage-media-item img.rdc-sm-thumb {
    width: 36px; height: 28px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

/* Yayinda olmadigimiz surece AI Direktor + Klip-Anlar bolumlerini gizle.
   Why: ekran her satirda "—" gosteriyor, kullanici icin gurultu. Yayina basinca anlam kazanir. */
body:not(.rdc-broadcasting) .rdc-section-ai-director,
body:not(.rdc-broadcasting) .rdc-section-clip-anlar {
    display: none;
}

/* ==== BRIEF tab — Editör Masası ==== */
.rdc-input-label {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==== Konular Widget — stage uzerinde floating sticky ==== */
.rdc-topic-widget {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 260px;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 10px;
    overflow: hidden;
    z-index: 50;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    color: white;
    font-size: 12px;
    transition: max-height 0.3s ease;
    max-height: 500px;
}
.rdc-topic-widget.rdc-topic-widget--collapsed { max-height: 36px; }
.rdc-topic-widget.rdc-topic-widget--collapsed .rdc-topic-list,
.rdc-topic-widget.rdc-topic-widget--collapsed .rdc-topic-foot { display: none; }
.rdc-topic-head {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 12px;
    background: linear-gradient(90deg, rgba(99,102,241,0.2), transparent);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.3px;
}
.rdc-topic-head i { color: var(--rdc-accent); }
.rdc-topic-head span { flex: 1; }
.rdc-topic-collapse {
    background: transparent; border: 0; color: rgba(255,255,255,0.6);
    cursor: pointer; padding: 2px 6px;
}
.rdc-topic-list {
    list-style: none;
    margin: 0; padding: 8px;
    max-height: 380px;
    overflow-y: auto;
}
.rdc-topic-item {
    display: flex; align-items: flex-start; gap: 8px;
    padding: 6px 8px;
    margin-bottom: 4px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    transition: all 0.2s;
    cursor: pointer;
}
.rdc-topic-item:hover { background: rgba(255, 255, 255, 0.08); }
.rdc-topic-status {
    flex-shrink: 0;
    width: 16px; height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    margin-top: 1px;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px;
}
.rdc-topic-text { flex: 1; line-height: 1.35; }
.rdc-topic-item--done .rdc-topic-status { background: #10b981; border-color: #10b981; color: white; }
.rdc-topic-item--done .rdc-topic-status::before { content: '✓'; }
.rdc-topic-item--done .rdc-topic-text { text-decoration: line-through; opacity: 0.5; }
.rdc-topic-item--partial .rdc-topic-status { background: #f59e0b; border-color: #f59e0b; }
.rdc-topic-item--partial .rdc-topic-status::before { content: '◐'; color: white; }
.rdc-topic-item--pending .rdc-topic-status { background: transparent; }
.rdc-topic-foot {
    padding: 6px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.55);
    display: flex; justify-content: space-between;
}
.rdc-topic-foot .rdc-topic-warn {
    color: #f59e0b;
    font-weight: 600;
}

/* ==== Voice command confirm modal ==== */
.rdc-voice-confirm {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    animation: rdcFadeIn 0.2s ease-out;
}
@keyframes rdcFadeIn { from { opacity: 0; } to { opacity: 1; } }
.rdc-voice-confirm-card {
    background: linear-gradient(180deg, #1e293b, #0f172a);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 14px;
    padding: 32px;
    max-width: 420px;
    text-align: center;
    color: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.rdc-voice-confirm-card i {
    font-size: 36px;
    color: #ef4444;
    margin-bottom: 12px;
    animation: rdcVoicePulse 1.2s infinite;
}
@keyframes rdcVoicePulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
.rdc-voice-confirm-card h4 { margin: 0 0 6px; font-size: 18px; }
.rdc-voice-confirm-card p { margin: 0 0 18px; color: rgba(255,255,255,0.7); font-size: 13px; }
.rdc-voice-confirm-actions { display: flex; gap: 10px; justify-content: center; }

/* ==== Broadcast picker modal ==== */
.rdc-bcast-picker {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    z-index: 10001;
    display: flex; align-items: center; justify-content: center;
    animation: rdcFadeIn 0.2s ease-out;
}
.rdc-bcast-picker-card {
    background: linear-gradient(180deg, #1e293b, #0f172a);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 14px;
    padding: 28px 32px;
    max-width: 520px;
    width: 90%;
    color: white;
    max-height: 80vh;
    overflow-y: auto;
}
.rdc-bcast-picker-card h3 { margin: 0 0 8px; font-size: 18px; }
.rdc-bcast-picker-card h3 i { color: var(--rdc-accent); }
.rdc-bcast-picker-card h4 { margin: 0 0 8px; font-size: 13px; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.5px; }
.rdc-bcast-picker-card p { margin: 0 0 16px; color: rgba(255,255,255,0.7); font-size: 13px; }
.rdc-bcast-picker-actions { display: flex; gap: 10px; }
.rdc-bcast-list {
    list-style: none; padding: 0; margin: 0;
    max-height: 200px; overflow-y: auto;
}
.rdc-bcast-list li.rdc-bcast-empty {
    padding: 12px; text-align: center;
    color: rgba(255,255,255,0.4); font-size: 12px;
}
.rdc-bcast-list li.rdc-bcast-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: background 0.15s;
}
.rdc-bcast-list li.rdc-bcast-item:hover { background: rgba(99,102,241,0.15); }
.rdc-bcast-list li.rdc-bcast-item .rdc-bcast-status { font-size: 10px; padding: 2px 6px; border-radius: 4px; }
.rdc-bcast-list li.rdc-bcast-item .rdc-bcast-status--live { background: #ef4444; color: white; }
.rdc-bcast-list li.rdc-bcast-item .rdc-bcast-status--created { background: #3b82f6; color: white; }
.rdc-bcast-list li.rdc-bcast-item .rdc-bcast-name { flex: 1; font-size: 13px; }
.rdc-bcast-list li.rdc-bcast-item .rdc-bcast-time { font-size: 10px; color: rgba(255,255,255,0.5); }
.rdc-bcast-list li.rdc-bcast-readonly { opacity: 0.5; cursor: default; }

/* === Gecmis Yayinlarim — anasayfa listesi === */
.rdc-past-bcasts {
    max-width: 100%;
    margin: 40px auto 60px;
    padding: 24px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255,255,255,0.02) inset;
}
.rdc-past-bcasts-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 12px;
}
.rdc-past-bcasts-head h3 {
    margin: 0; font-size: 14px;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    letter-spacing: 0.7px;
}
.rdc-past-bcasts-head h3 i { color: var(--rdc-accent); margin-right: 6px; }
.rdc-pb-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
    margin-bottom: 6px;
    transition: background 0.15s;
}
.rdc-pb-item:hover { background: rgba(99,102,241,0.10); }
.rdc-pb-name { flex: 1; font-size: 13px; color: rgba(255,255,255,0.9); }
.rdc-pb-meta { font-size: 11px; color: rgba(255,255,255,0.5); }
.rdc-pb-del {
    background: transparent; border: 0;
    color: rgba(255,255,255,0.4); cursor: pointer;
    padding: 4px 8px; border-radius: 4px;
}
.rdc-pb-del:hover { color: white; background: #ef4444; }

/* Past broadcast grid cards */
.rdc-pb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}
.rdc-pb-card {
    position: relative;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.rdc-pb-card:hover {
    background: rgba(99,102,241,0.08);
    border-color: rgba(99,102,241,0.3);
    transform: translateY(-2px);
}
.rdc-pb-card--readonly { cursor: default; }
.rdc-pb-card--readonly:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.06); transform: none; }
.rdc-pb-card--resumable { border-color: rgba(34,197,94,0.4); box-shadow: 0 0 0 1px rgba(34,197,94,0.15) inset; }
.rdc-pb-card--resumable:hover { background: rgba(34,197,94,0.10); border-color: rgba(34,197,94,0.6); }
.rdc-pb-card-thumb {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.rdc-pb-play {
    background: rgba(99, 102, 241, 0.9);
    border: 0; color: white;
    width: 56px; height: 56px;
    border-radius: 50%;
    font-size: 22px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.15s, background 0.15s;
}
.rdc-pb-play:hover { transform: scale(1.1); background: var(--rdc-accent); }
.rdc-pb-no-rec {
    color: rgba(255,255,255,0.4);
    font-size: 11px;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.rdc-pb-no-rec i { font-size: 24px; opacity: 0.5; }
.rdc-pb-card-body { padding: 12px 14px; }
.rdc-pb-card-body h4 { margin: 6px 0 4px; font-size: 13px; color: #f1f5f9; line-height: 1.3; }
.rdc-pb-card-body small { color: rgba(255,255,255,0.5); font-size: 10px; }
.rdc-pb-card .rdc-pb-del {
    position: absolute; top: 6px; right: 6px;
    background: rgba(15,23,42,0.7); border: 0;
    color: rgba(255,255,255,0.5);
    width: 26px; height: 26px;
    border-radius: 6px; cursor: pointer;
    opacity: 0; transition: opacity 0.15s, background 0.15s, color 0.15s;
}
.rdc-pb-card:hover .rdc-pb-del { opacity: 1; }
.rdc-pb-card .rdc-pb-del:hover { background: #ef4444; color: white; }

/* Recording player modal -- sagdan+animasyonlu (kullanici talebi, 2026-08-24),
   video icerigi icin standart 420px cekmeceden daha genis tutuldu. */
.rdc-rec-player {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(6px);
    z-index: 11000;
    display: flex; align-items: stretch; justify-content: flex-end;
    animation: rdcFadeIn 0.15s;
}
.rdc-rec-player-card {
    background: #0a0d14;
    max-width: min(680px, 92vw); width: 100%; height: 100%;
    overflow-y: auto;
    box-shadow: -24px 0 60px -20px rgba(0,0,0,0.6);
    animation: atl-drawer-in .28s cubic-bezier(.16,1,.3,1);
}
@media (max-width: 700px) { .rdc-rec-player-card { max-width: 100%; } }
.rdc-rec-player-card header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 16px;
    background: rgba(15,23,42,0.6);
}
.rdc-rec-player-card h4 { margin: 0; color: white; font-size: 14px; }
.rdc-rec-player-close {
    background: transparent; border: 0;
    color: rgba(255,255,255,0.6); cursor: pointer;
    font-size: 16px; padding: 4px 8px;
}
.rdc-rec-player-close:hover { color: #ef4444; }
.rdc-rec-player-card small { display: block; padding: 8px 16px; color: rgba(255,255,255,0.5); }
.rdc-rec-player-card small a { color: var(--rdc-accent); text-decoration: none; }
.rdc-rec-player-card small a:hover { text-decoration: underline; }

/* ==== Stage controls — kompakt floating sag-ust kose ====
   Why: Onceden stage altinda full-width bar olarak vardi; ekrani gereksiz tutuyordu.
   Simdi floating sag-ust kosede ikonlar + minimal aspect toggle. */
.rdc-stage-wrap { position: relative; }
.rdc-stage-controls {
    position: absolute;
    top: 8px; right: 8px;
    z-index: 60;
    display: flex; align-items: center; gap: 4px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 4px;
}
.rdc-stage-controls-aspect {
    display: flex; align-items: center;
    background: rgba(255,255,255,0.04);
    border-radius: 5px;
    padding: 2px;
    margin-right: 4px;
}
.rdc-stage-aspect {
    background: transparent;
    border: 0;
    color: rgba(255,255,255,0.65);
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.rdc-stage-aspect:hover { color: white; background: rgba(99,102,241,0.18); }
.rdc-stage-aspect--active {
    background: var(--rdc-accent) !important;
    color: white !important;
}
.rdc-stage-iconbtn {
    background: transparent;
    border: 0;
    color: rgba(255,255,255,0.7);
    width: 28px; height: 28px;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s;
}
.rdc-stage-iconbtn:hover {
    background: rgba(99,102,241,0.18);
    color: white;
}
.rdc-stage-iconbtn.rdc-stage-iconbtn--active {
    background: #f59e0b;
    color: #0a0d14;
}

/* Aspect ratio container — stage'e width/height oran kuralini uygula */
.rdc-stage[data-aspect="16:9"] { aspect-ratio: 16 / 9; }
.rdc-stage[data-aspect="1:1"] { aspect-ratio: 1 / 1; max-width: 80vh; margin: 0 auto; }
.rdc-stage[data-aspect="9:16"] { aspect-ratio: 9 / 16; max-width: 50vh; margin: 0 auto; }

/* === STREAMYARD-STYLE LAYER EDITOR === */
.rdc-stage-layer {
    cursor: move;
    outline: 0 solid transparent;
    transition: outline 0.1s;
}
.rdc-stage-layer:hover { outline: 2px solid rgba(99, 102, 241, 0.5); outline-offset: -2px; }
.rdc-stage-layer.rdc-layer--selected {
    outline: 2px solid var(--rdc-accent) !important;
    outline-offset: -2px;
    z-index: 200 !important;
}
/* img/video element'leri mousedown'i yutmasin — wrapper layer event'i alsin */
.rdc-stage-layer img,
.rdc-stage-layer video,
.rdc-stage-layer iframe {
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}
/* Per-layer fit override: default contain (orijinal aspect), .rdc-fit-cover ile stretch */
.rdc-stage-layer--media img,
.rdc-stage-layer--media video {
    object-fit: contain;
}
.rdc-stage-layer--media.rdc-fit-cover img,
.rdc-stage-layer--media.rdc-fit-cover video {
    object-fit: cover;
}

/* 8 resize handle — yuvarlak beyaz daireler (StreamYard tarzi) */
.rdc-rh {
    position: absolute;
    width: 12px; height: 12px;
    background: white;
    border: 2px solid var(--rdc-accent);
    border-radius: 50%;
    z-index: 250;
    display: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.rdc-stage-layer.rdc-layer--selected .rdc-rh { display: block; }
.rdc-rh--nw { top: -6px;    left: -6px;   cursor: nwse-resize; }
.rdc-rh--n  { top: -6px;    left: 50%;    transform: translateX(-50%); cursor: ns-resize; }
.rdc-rh--ne { top: -6px;    right: -6px;  cursor: nesw-resize; }
.rdc-rh--e  { top: 50%;     right: -6px;  transform: translateY(-50%); cursor: ew-resize; }
.rdc-rh--se { bottom: -6px; right: -6px;  cursor: nwse-resize; }
.rdc-rh--s  { bottom: -6px; left: 50%;    transform: translateX(-50%); cursor: ns-resize; }
.rdc-rh--sw { bottom: -6px; left: -6px;   cursor: nesw-resize; }
.rdc-rh--w  { top: 50%;     left: -6px;   transform: translateY(-50%); cursor: ew-resize; }

/* Layer toolbar — seçili layer'in ustunde floating */
.rdc-layer-toolbar {
    position: absolute;
    display: none;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 4px;
    gap: 2px;
    z-index: 300;
    box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}
.rdc-lt-btn {
    background: transparent;
    border: 0;
    color: rgba(255,255,255,0.85);
    width: 30px; height: 30px;
    border-radius: 5px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
    transition: all 0.12s;
}
.rdc-lt-btn:hover { background: rgba(99, 102, 241, 0.3); color: white; }
.rdc-lt-btn--danger:hover { background: #ef4444; color: white; }

/* === KJ stage layer (draggable lower-third) === */
.rdc-stage-layer--kj {
    background: transparent;
    pointer-events: auto;
}
.rdc-kj-inner {
    width: 100%; height: 100%;
    display: flex; flex-direction: column; justify-content: center;
    padding: 12px 18px;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.92), rgba(168, 85, 247, 0.85));
    color: white;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    border-left: 4px solid #fbbf24;
    overflow: hidden;
}
.rdc-kj-title {
    font-size: clamp(14px, 2.3vw, 22px);
    font-weight: 800;
    letter-spacing: 0.4px;
    line-height: 1.15;
    text-shadow: 0 1px 3px rgba(0,0,0,0.35);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* === Saving overlay — yayin bitince acik kalan kayit indicator === */
.rdc-saving-overlay {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 11000;
    display: flex; align-items: center; justify-content: center;
    animation: rdcFadeIn 0.2s ease-out;
}
.rdc-saving-card {
    background: linear-gradient(180deg, #1e293b, #0f172a);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 16px;
    padding: 36px 44px;
    max-width: 460px;
    text-align: center;
    color: white;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.rdc-saving-card h3 { margin: 16px 0 8px; font-size: 18px; }
.rdc-saving-card p { margin: 0 0 12px; color: rgba(255,255,255,0.7); font-size: 13px; }
.rdc-saving-card small { color: rgba(255,255,255,0.5); font-size: 11px; }
.rdc-saving-spinner {
    width: 56px; height: 56px;
    border: 5px solid rgba(99,102,241,0.2);
    border-top-color: var(--rdc-accent);
    border-radius: 50%;
    margin: 0 auto;
    animation: rdcSpin 0.8s linear infinite;
}
@keyframes rdcSpin { to { transform: rotate(360deg); } }

.rdc-kj-sub {
    font-size: clamp(11px, 1.5vw, 14px);
    font-weight: 500;
    opacity: 0.92;
    margin-top: 3px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ==== Right sidebar collapse ==== */
.rdc-sidebar-toggle {
    position: absolute;
    right: 320px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px; height: 48px;
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px 0 0 6px;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    z-index: 100;
    transition: right 0.3s ease;
}
.rdc-sidebar-toggle:hover { color: white; background: rgba(99,102,241,0.3); }
body.rdc-right-collapsed .rdc-sidebar--right { display: none; }
body.rdc-right-collapsed .rdc-sidebar-toggle { right: 0; }
body.rdc-right-collapsed .rdc-sidebar-toggle i { transform: rotate(180deg); }

/* ==== Scene preset modal -- sagdan+animasyonlu (kullanici talebi, 2026-08-24) ==== */
.rdc-scene-modal {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    z-index: 10001;
    display: flex; align-items: stretch; justify-content: flex-end;
    animation: rdcFadeIn 0.15s ease-out;
}
.rdc-scene-modal-card {
    background: linear-gradient(180deg, #1e293b, #0f172a);
    border-left: 1px solid rgba(99,102,241,0.3);
    padding: 24px 28px;
    max-width: 420px; width: 100%;
    color: white;
    height: 100%; overflow-y: auto;
    box-shadow: -24px 0 60px -20px rgba(0,0,0,0.5);
    animation: atl-drawer-in .28s cubic-bezier(.16,1,.3,1);
}
@media (max-width: 480px) { .rdc-scene-modal-card { max-width: 100%; } }
.rdc-scene-modal-card h3 { margin: 0 0 12px; font-size: 16px; }
.rdc-scene-list {
    list-style: none; padding: 0; margin: 12px 0;
}
.rdc-scene-list li {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.04);
    border-radius: 6px;
    margin-bottom: 4px;
    cursor: pointer;
}
.rdc-scene-list li:hover { background: rgba(99,102,241,0.15); }
.rdc-scene-list li .rdc-scene-name { flex: 1; }
.rdc-scene-list li .rdc-scene-del {
    background: transparent; border: 0;
    color: rgba(255,255,255,0.4); cursor: pointer;
    padding: 2px 6px;
}
.rdc-scene-list li .rdc-scene-del:hover { color: #ef4444; }

/* === MEDIA: kullanicinin yukledigi gorsellerin orijinal aspect oranı korunsun ===
   Onceden 'cover' yapiyorduk — kare image 16:9 layer'da kirpiliyordu.
   'contain' ile orijinal gorulur, etrafi seffaf kalir, kullanici composition kurar. */
.rdc-stage-layer--media img,
.rdc-stage-layer--media video { object-fit: contain !important; background: #0a0d14; }
.rdc-stage-layer--media.rdc-fit-cover img,
.rdc-stage-layer--media.rdc-fit-cover video { object-fit: cover !important; }

/* === Sahne kartina hover'da Duzenle butonu === */
.rdc-scene-card { position: relative; }
.rdc-scene-edit {
    position: absolute;
    top: 4px; right: 4px;
    background: rgba(15,23,42,0.85);
    border: 1px solid rgba(99,102,241,0.4);
    color: var(--rdc-accent);
    width: 22px; height: 22px;
    border-radius: 4px;
    font-size: 10px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s;
    display: flex; align-items: center; justify-content: center;
}
.rdc-scene-card:hover .rdc-scene-edit { opacity: 1; }
.rdc-scene-edit:hover { background: var(--rdc-accent); color: white; }

/* === Sahnelerim bolumu === */
.rdc-section-add {
    float: right;
    background: rgba(99,102,241,0.18);
    border: 1px solid rgba(99,102,241,0.4);
    color: var(--rdc-accent);
    width: 22px; height: 22px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    margin-top: -2px;
}
.rdc-section-add:hover { background: var(--rdc-accent); color: white; }
.rdc-my-scenes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.rdc-my-scene-item {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 8px;
    cursor: pointer;
    position: relative;
    font-size: 11px;
}
.rdc-my-scene-item:hover { background: rgba(99,102,241,0.12); border-color: var(--rdc-accent); }
.rdc-my-scene-item .rdc-my-scene-name { display: block; font-weight: 600; }
.rdc-my-scene-item .rdc-my-scene-actions {
    position: absolute; top: 4px; right: 4px;
    display: flex; gap: 4px; opacity: 0;
    transition: opacity 0.15s;
}
.rdc-my-scene-item:hover .rdc-my-scene-actions { opacity: 1; }
.rdc-my-scene-item .rdc-my-scene-actions button {
    background: rgba(15,23,42,0.85);
    border: 0;
    color: rgba(255,255,255,0.6);
    width: 18px; height: 18px;
    border-radius: 3px;
    font-size: 9px;
    cursor: pointer;
}
.rdc-my-scene-item .rdc-my-scene-actions button:hover { color: white; background: var(--rdc-accent); }
.rdc-my-scene-item .rdc-my-scene-actions button.rdc-my-scene-del:hover { background: #ef4444; }

/* === Custom Dialog (alert/confirm/prompt yerine) -- sagdan+animasyonlu
   (kullanici talebi, 2026-08-24) === */
.rdc-dialog-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(6px);
    z-index: 11000;
    display: flex; align-items: center; justify-content: flex-end;
    animation: rdcFadeIn 0.15s ease-out;
    padding: 16px;
}
.rdc-dialog-card {
    background: linear-gradient(180deg, #1e293b, #0f172a);
    border: 1px solid rgba(99,102,241,0.3);
    border-radius: 12px;
    padding: 22px 26px;
    max-width: 400px; width: 100%;
    color: white;
    box-shadow: -20px 0 50px -10px rgba(0,0,0,0.5);
    animation: atl-drawer-in .24s cubic-bezier(.16,1,.3,1);
}
.rdc-dialog-card h4 {
    margin: 0 0 8px;
    font-size: 16px;
    display: flex; align-items: center; gap: 8px;
}
.rdc-dialog-card h4 i { color: var(--rdc-accent); }
.rdc-dialog-card.rdc-dialog-card--danger h4 i { color: #ef4444; }
.rdc-dialog-card p { margin: 0 0 14px; font-size: 13px; color: rgba(255,255,255,0.75); line-height: 1.4; }
.rdc-dialog-input {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: white;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 14px;
}
.rdc-dialog-input:focus { outline: none; border-color: var(--rdc-accent); }
.rdc-dialog-actions {
    display: flex; gap: 8px; justify-content: flex-end;
}

/* Lower-third overlay */
.rdc-lower-third {
    position: absolute;
    bottom: 12%;
    left: 5%;
    right: 5%;
    pointer-events: none;
    z-index: 100;
    /* SABIT — fade-in olur, sonra opacity:1'de KALIR (forwards). Ticker gibi kaymaz. */
    animation: rdcLtIn .4s ease-out forwards;
    opacity: 0;
}
.rdc-lower-third .rdc-lt-title {
    background: linear-gradient(90deg, rgba(94, 234, 212, .95), rgba(167, 139, 250, .85));
    color: #0a0d14;
    padding: 12px 24px;
    font-weight: 800;
    font-size: 28px;
    display: inline-block;
    border-radius: 4px 4px 0 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .6);
}
.rdc-lower-third .rdc-lt-sub {
    background: rgba(0, 0, 0, .85);
    color: #e2e8f0;
    padding: 8px 24px;
    font-size: 16px;
    display: inline-block;
    border-radius: 0 4px 4px 4px;
    backdrop-filter: blur(8px);
}
@keyframes rdcLtIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Logo overlay */
.rdc-logo {
    position: absolute;
    max-width: 120px;
    max-height: 60px;
    z-index: 90;
    opacity: 0.92;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .5));
}
.rdc-logo--tl { top: 18px; left: 18px; }
.rdc-logo--tr { top: 18px; right: 18px; }
.rdc-logo--bl { bottom: 18px; left: 18px; }
.rdc-logo--br { bottom: 18px; right: 18px; }

/* Ticker */
.rdc-ticker {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(0, 0, 0, .85);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    overflow: hidden;
    z-index: 95;
    border-top: 2px solid var(--rdc-accent);
}
.rdc-ticker-text {
    white-space: nowrap;
    color: white;
    font-weight: 600;
    font-size: 16px;
    animation: rdcTickerScroll 25s linear infinite;
    padding-left: 100%;
}
@keyframes rdcTickerScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

/* Self-view PiP */
.rdc-selfview {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 180px;
    height: 100px;
    background: #000;
    border: 2px solid var(--rdc-accent);
    border-radius: 8px;
    overflow: hidden;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .8);
}
.rdc-selfview video {
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scaleX(-1); /* Mirror — selfie cam gibi */
}
.rdc-selfview-label {
    position: absolute;
    bottom: 4px; left: 6px;
    color: white;
    font-size: 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .8);
    font-weight: 700;
}

/* ---- RIGHT SIDEBAR ---- */
.rdc-participants {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.rdc-participant {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--rdc-panel-bd);
    border-radius: 8px;
    font-size: 13px;
}
.rdc-participant.rdc-participant--speaking {
    border-color: var(--rdc-accent);
    background: rgba(94, 234, 212, 0.08);
    box-shadow: 0 0 0 2px rgba(94, 234, 212, .15);
}
.rdc-pavatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #ec4899);
}
.rdc-pname { flex: 1; font-weight: 500; }
.rdc-pmic { color: var(--rdc-accent); font-size: 12px; }
.rdc-pmic.rdc-pmic--off { color: var(--rdc-danger); }

/* Katilimci satirinda action butonlari (Stage'e al, Mute) */
.rdc-paction {
    background: transparent;
    border: 0;
    color: var(--rdc-mute);
    width: 26px; height: 26px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all .15s;
    margin-left: 2px;
}
.rdc-paction:hover { background: rgba(255, 255, 255, 0.08); color: var(--rdc-text); }
.rdc-pstage:hover { color: var(--rdc-accent); background: rgba(94, 234, 212, 0.12); }
.rdc-pmute.rdc-pmic--off { color: var(--rdc-danger); }
.rdc-pmute.rdc-pmic--off:hover { background: rgba(239, 68, 68, 0.12); }

/* Sahnedeki katilimci icin sol cizgi vurgusu */
.rdc-participant--staged {
    border-left-width: 3px;
    border-left-color: var(--rdc-accent);
    background: rgba(94, 234, 212, 0.06);
}

/* Sag paneldeki "Sahnedeki Medya" listesi */
.rdc-stage-media {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.rdc-stage-media-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
    background: rgba(167, 139, 250, 0.08);
    border-left: 3px solid var(--rdc-accent-2);
    border-radius: 4px;
    font-size: 12px;
}
.rdc-stage-media-item i { color: var(--rdc-accent-2); flex-shrink: 0; }
.rdc-sm-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rdc-sm-remove { width: 22px; height: 22px; }
.rdc-sm-remove:hover { color: var(--rdc-danger); background: rgba(239, 68, 68, 0.1); }

.rdc-director-info {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 8px;
    font-size: 12px;
}
.rdc-director-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.rdc-director-row:last-child { border-bottom: 0; }
.rdc-director-row span { color: var(--rdc-mute); }
.rdc-director-row strong { color: var(--rdc-text); }

.rdc-clips {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
}
.rdc-clips li:not(.rdc-empty) {
    padding: 8px 10px;
    background: rgba(167, 139, 250, 0.08);
    border-left: 3px solid var(--rdc-accent-2);
    border-radius: 4px;
}
.rdc-clips li time { color: var(--rdc-mute); font-family: 'JetBrains Mono', monospace; font-size: 11px; }

/* ---- BOTTOM BAR ---- */
.rdc-bottombar {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    background: rgba(10, 13, 20, 0.96);
    border-top: 1px solid var(--rdc-panel-bd);
    flex-shrink: 0;
}
.rdc-destinations {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: var(--rdc-mute);
}
.rdc-dest {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: var(--rdc-text);
}
.rdc-dest input { accent-color: var(--rdc-accent); }
.rdc-slide-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--rdc-mute);
    font-family: 'JetBrains Mono', monospace;
}

/* ============== ONBOARDING (pre-stream check) ============== */

.rdc-onboarding {
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at center, #0e1422 0%, #060810 100%);
    z-index: 9998;            /* rdcShell'in altinda ama digerlerinin ustunde */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    overflow-y: auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--rdc-text);
}

.rdc-onb-card {
    width: 100%;
    max-width: 1100px;
    background: var(--rdc-panel);
    border: 1px solid var(--rdc-panel-bd);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7), 0 0 1px rgba(94, 234, 212, .1);
    animation: rdcOnbIn .4s cubic-bezier(.16, 1, .3, 1);
}

@keyframes rdcOnbIn {
    from { opacity: 0; transform: translateY(20px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.rdc-onb-head {
    padding: 28px 32px 20px;
    border-bottom: 1px solid var(--rdc-panel-bd);
}
.rdc-onb-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--rdc-accent);
    margin-bottom: 10px;
}
.rdc-onb-eyebrow .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--rdc-accent);
    animation: rdcPulse 1.4s infinite;
}
.rdc-onb-head h2 {
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -.5px;
}
.rdc-onb-head p {
    margin: 0;
    font-size: 14px;
    color: var(--rdc-mute);
    line-height: 1.5;
    max-width: 600px;
}

.rdc-onb-body {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 0;
    min-height: 460px;
}

.rdc-onb-preview {
    position: relative;
    background: #000;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}
.rdc-onb-preview video {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.rdc-onb-preview video.rdc-mirror { transform: scaleX(-1); }

.rdc-onb-preview-empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: var(--rdc-mute);
    text-align: center;
    padding: 20px;
}
.rdc-onb-preview-empty i { font-size: 48px; opacity: .5; }
.rdc-onb-preview-empty p { margin: 0; font-size: 16px; font-weight: 600; }
.rdc-onb-preview-empty small { font-size: 12px; opacity: .7; }

.rdc-onb-mirror-toggle {
    position: absolute;
    top: 14px; right: 14px;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(8px);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
}
.rdc-onb-mirror-toggle label { display: flex; align-items: center; gap: 6px; cursor: pointer; }

.rdc-onb-controls {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-left: 1px solid var(--rdc-panel-bd);
    background: rgba(15, 18, 28, .6);
}

.rdc-onb-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.rdc-onb-field label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--rdc-c-mute, var(--rdc-mute));
    text-transform: uppercase;
    letter-spacing: 1px;
}
.rdc-onb-field small {
    font-size: 11.5px;
    color: var(--rdc-c-mute, var(--rdc-mute));
    margin-top: 2px;
    line-height: 1.45;
}

/* Mikrofon seviyesi: DIKEY cubuk, onizlemenin sag kenarinda.
   Yatay cubuk ayri bir satir yiyordu ve goz "kamera goruntusu <-> ses" baglantisini
   kurmuyordu; dikey cubuk onizlemenin uzerinde durunca bakisin zaten oldugu yerde. */
.rdc-onb-vmeter {
    position: absolute; right: 12px; top: 12px; bottom: 12px;
    width: 8px; border-radius: 999px;
    background: rgba(0, 0, 0, .55);
    border: 1px solid rgba(255, 255, 255, .08);
    overflow: hidden;
    display: flex; align-items: flex-end;
}
.rdc-onb-vmeter-fill {
    width: 100%; height: 0%;
    background: linear-gradient(0deg, #22c55e 0%, #facc15 65%, #ef4444 100%);
    transition: height 60ms linear;
}
.rdc-onb-mic-hint { margin: 10px 2px 0; font-size: 12px; color: var(--rdc-text-dim, rgba(255,255,255,.55)); }

/* Sol sutun: onizleme + hizli anahtarlar */
.rdc-onb-stagecol { display: flex; flex-direction: column; min-width: 0; }

/* Sustur / kamerayi kapat / aynala */
.rdc-onb-quick { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.rdc-onb-qbtn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 13px; border-radius: 999px; cursor: pointer;
    font-size: 12.5px; font-family: inherit;
    color: #fff; background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.rdc-onb-qbtn:hover { background: rgba(255, 255, 255, .14); }
.rdc-onb-qbtn.is-off {
    background: rgba(239, 68, 68, .18);
    border-color: rgba(239, 68, 68, .55);
    color: #fca5a5;
}
.rdc-onb-qbtn--check { cursor: pointer; }
.rdc-onb-qbtn--check input { accent-color: var(--rdc-c-accent, var(--rdc-accent)); }
/* Modal icinde bu "hizli anahtar" gorunumu koyu kabuk icin yazilmisti. */
.atl-modal .rdc-onb-qbtn {
    color: var(--rdc-c-ink);
    background: var(--rdc-c-surface);
    border-color: var(--rdc-c-stroke);
}
.atl-modal .rdc-onb-qbtn:hover { background: var(--rdc-c-surface-hi); }

/* Hoparlor testi */
.rdc-onb-testbtn {
    /* .rdc-onb-field bir flex sutun; inline-flex tek basina daraltmiyor,
       align-self olmadan buton tum genisligi kapliyor. */
    align-self: flex-start;
    margin-top: 7px; display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 999px; cursor: pointer;
    font-size: 12px; font-family: inherit; color: #fff;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
}
.rdc-onb-testbtn:hover { background: rgba(255, 255, 255, .13); }

/* Izin/cihaz hatasi: ne oldugunu VE ne yapilacagini soyler, yaninda tekrar dene. */
.rdc-onb-error {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 12px 14px; margin-bottom: 14px;
    border-radius: 10px;
    background: rgba(239, 68, 68, .12);
    border: 1px solid rgba(239, 68, 68, .38);
    color: #fecaca; font-size: 12.5px; line-height: 1.5;
}
.rdc-onb-error[hidden] { display: none; }
.rdc-onb-error > i { margin-top: 2px; color: #f87171; }
.rdc-onb-error strong { display: block; color: #fff; font-size: 13px; margin-bottom: 2px; }
.rdc-onb-error .rdc-btn { flex: none; align-self: center; }

/* Action row */
.rdc-onb-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.rdc-onb-actions .rdc-btn { flex: 1; justify-content: center; padding: 12px 16px; font-size: 14px; }

/* Checklist */
.rdc-onb-checklist {
    list-style: none;
    margin: 14px 0 0;
    padding: 14px;
    background: rgba(0, 0, 0, .3);
    border-radius: 8px;
    font-size: 12px;
}
.rdc-onb-checklist li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    color: var(--rdc-mute);
    transition: color .2s;
}
.rdc-onb-checklist li::before {
    content: '○';
    font-size: 14px;
    color: var(--rdc-mute);
    width: 16px;
    text-align: center;
}
.rdc-onb-checklist li.rdc-check-ok {
    color: #22c55e;
}
.rdc-onb-checklist li.rdc-check-ok::before {
    content: '●';
    color: #22c55e;
}

@media (max-width: 900px) {
    .rdc-onb-body { grid-template-columns: 1fr; min-height: 0; }
    .rdc-onb-controls { border-left: 0; border-top: 1px solid var(--rdc-panel-bd); }
}

/* ============== TOAST (custom, Director theme) ==============
   Director Console'un kendi neon-glass toast'i. DevExpress.ui.notify yerine. */

.rdc-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100000;            /* her seyin ustunde */
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    pointer-events: none;
    max-width: 380px;
}

.rdc-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(20, 24, 36, 0.96);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--rdc-accent);
    border-radius: 10px;
    color: var(--rdc-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    line-height: 1.45;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 24px rgba(94, 234, 212, 0.08);
    cursor: pointer;
    animation: rdcToastIn .28s cubic-bezier(.2, 1, .32, 1);
    min-width: 280px;
    position: relative;
    overflow: hidden;
}

.rdc-toast:hover { background: rgba(28, 32, 46, 0.98); }

.rdc-toast--info    { border-left-color: var(--rdc-accent); }
.rdc-toast--success { border-left-color: #22c55e; box-shadow: 0 8px 32px rgba(0, 0, 0, .6), 0 0 24px rgba(34, 197, 94, .12); }
.rdc-toast--warning { border-left-color: var(--rdc-warn); box-shadow: 0 8px 32px rgba(0, 0, 0, .6), 0 0 24px rgba(245, 158, 11, .12); }
.rdc-toast--error   { border-left-color: var(--rdc-danger); box-shadow: 0 8px 32px rgba(0, 0, 0, .6), 0 0 24px rgba(239, 68, 68, .12); }

.rdc-toast__icon {
    flex-shrink: 0;
    width: 22px; height: 22px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    font-weight: 800;
}
.rdc-toast--info .rdc-toast__icon    { background: rgba(94, 234, 212, .15); color: var(--rdc-accent); }
.rdc-toast--success .rdc-toast__icon { background: rgba(34, 197, 94, .18); color: #22c55e; }
.rdc-toast--warning .rdc-toast__icon { background: rgba(245, 158, 11, .18); color: var(--rdc-warn); }
.rdc-toast--error .rdc-toast__icon   { background: rgba(239, 68, 68, .18); color: var(--rdc-danger); }

.rdc-toast__body {
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
}

.rdc-toast__close {
    flex-shrink: 0;
    background: transparent;
    border: 0;
    color: var(--rdc-mute);
    padding: 0;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: .6;
    transition: opacity .15s;
}
.rdc-toast__close:hover { opacity: 1; }

/* Progress bar — auto-dismiss countdown */
.rdc-toast__bar {
    position: absolute;
    bottom: 0; left: 0;
    height: 2px;
    background: var(--rdc-accent);
    transform-origin: left;
    animation: rdcToastBar linear forwards;
    opacity: .4;
}
.rdc-toast--success .rdc-toast__bar { background: #22c55e; }
.rdc-toast--warning .rdc-toast__bar { background: var(--rdc-warn); }
.rdc-toast--error .rdc-toast__bar   { background: var(--rdc-danger); }

@keyframes rdcToastIn {
    from { opacity: 0; transform: translateX(40px) scale(.96); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes rdcToastOut {
    from { opacity: 1; transform: translateX(0) scale(1); max-height: 200px; margin-top: 0; padding: 14px 16px; }
    to   { opacity: 0; transform: translateX(40px) scale(.96); max-height: 0; margin-top: -10px; padding: 0 16px; }
}
@keyframes rdcToastBar { from { transform: scaleX(1); } to { transform: scaleX(0); } }

.rdc-toast--leaving { animation: rdcToastOut .25s cubic-bezier(.4, 0, 1, 1) forwards; pointer-events: none; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1100px) {
    .rdc-main { grid-template-columns: 1fr; }
    .rdc-sidebar { display: none; }
    .rdc-sidebar--left { display: none; }
}


/* ===================== YAYIN HEDEFLERI =====================
   Alt cubuktaki hedef listesi + "hedef ekle". Hedefler kullanicinin kayitli
   RTMP hedefleri (live_destinations); anahtarlar sunucuda kalir, burada
   yalnizca maskeli hali (title) gorunur. */
/* Alt cubuk artik hedef SECMIYOR, yalnizca bu yayinin nereye gittigini ozetliyor.
   Yayin sirasinda hedef degistirmek egress'i yeniden baslatmak demek -- sessiz
   bir yayin kesintisi. Secim stüdyoya girmeden once yapiliyor. */
.rdc-dest-summary {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; color: rgba(255, 255, 255, .62);
}
.rdc-dest-summary i { color: var(--rdc-accent, #7c6cf0); font-size: 11px; }

/* Yayin olusturma: hedef secici */
.rdc-dest-picker { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; }
.rdc-dest-pick {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 13px; border-radius: 10px; cursor: pointer;
    color: var(--rdc-c-ink);
    background: var(--rdc-c-surface);
    border: 1px solid var(--rdc-c-stroke);
    transition: border-color .15s ease, background .15s ease;
}
.rdc-dest-pick:hover { border-color: var(--rdc-c-stroke-hi); }
.rdc-dest-pick.is-on {
    border-color: var(--rdc-c-accent);
    background: color-mix(in oklab, var(--rdc-c-accent) 12%, transparent);
}
.rdc-dest-pick input { accent-color: var(--rdc-c-accent); width: 16px; height: 16px; flex: none; }
.rdc-dest-pick__name { flex: 1; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rdc-dest-pick__key {
    font-family: var(--rdc-font-mono, ui-monospace, monospace);
    font-size: 11px; color: var(--rdc-c-faint); flex: none;
}

.rdc-dest-add {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 13px; border-radius: 999px; cursor: pointer;
    font-size: 12px; font-family: inherit;
    color: var(--rdc-c-ink);
    background: var(--rdc-c-surface);
    border: 1px dashed var(--rdc-c-stroke-hi);
    transition: background .15s ease, border-color .15s ease;
}
.rdc-dest-add:hover { background: var(--rdc-c-surface-hi); border-color: var(--rdc-c-accent); }

/* Hedef ekleme modali: platform secimi */
.rdc-dest-platforms { display: flex; flex-wrap: wrap; gap: 8px; }
.rdc-dest-plat {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 14px; border-radius: 10px; cursor: pointer;
    font-size: 13px; font-family: inherit;
    color: var(--rdc-c-ink);
    background: var(--rdc-c-surface);
    border: 1px solid var(--rdc-c-stroke);
    transition: border-color .15s ease, background .15s ease;
}
.rdc-dest-plat:hover { border-color: var(--rdc-c-stroke-hi); }
.rdc-dest-plat.is-active {
    border-color: var(--rdc-c-accent);
    background: color-mix(in oklab, var(--rdc-c-accent) 14%, transparent);
}


/* ===================== STIL PANELI ===================== */
.rdc-color {
    width: 46px; height: 36px; flex: none; padding: 0;
    border-radius: 8px; cursor: pointer;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .14);
}
.rdc-color::-webkit-color-swatch-wrapper { padding: 3px; }
.rdc-color::-webkit-color-swatch { border: 0; border-radius: 5px; }

.rdc-style-themes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.rdc-style-theme {
    padding: 10px 8px; border-radius: 8px; cursor: pointer;
    font-size: 12.5px; font-family: inherit; color: #fff;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    transition: background .15s ease, border-color .15s ease;
}
.rdc-style-theme:hover { background: rgba(255, 255, 255, .12); }
.rdc-style-theme.is-active {
    border-color: var(--rdc-accent, #7c6cf0);
    background: rgba(124, 108, 240, .22);
}

.rdc-toggle-row {
    display: flex; align-items: center; gap: 9px;
    padding: 8px 2px; cursor: pointer;
    font-size: 12.5px; color: var(--rdc-c-ink, rgba(255, 255, 255, .82));
}
.rdc-toggle-row input {
    accent-color: var(--rdc-c-accent, var(--rdc-accent));
    width: 15px; height: 15px; flex: none;
}


/* ===================== ALT BANT KUTUPHANESI ===================== */
.rdc-banner-lib { display: flex; flex-direction: column; gap: 12px; max-height: 340px; overflow-y: auto; }
.rdc-banner-folder { display: flex; flex-direction: column; gap: 5px; }
.rdc-banner-folder__head {
    display: flex; align-items: center; gap: 7px;
    font-size: 11px; letter-spacing: .05em; text-transform: uppercase;
    color: rgba(255, 255, 255, .48);
}
.rdc-banner-folder__count {
    margin-left: auto; font-size: 10px; padding: 1px 7px; border-radius: 999px;
    background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .6);
}
.rdc-banner-item {
    position: relative;
    display: flex; align-items: center; gap: 8px;
    padding: 9px 30px 9px 12px; border-radius: 8px; cursor: pointer;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .09);
    border-left: 3px solid transparent;
    transition: background .15s ease, border-color .15s ease;
}
.rdc-banner-item:hover { background: rgba(255, 255, 255, .1); }
/* Yayinda olan bant: solda renkli serit -- listeyi tararken hangisi acik belli olsun. */
.rdc-banner-item.is-on {
    border-left-color: var(--rdc-accent, #7c6cf0);
    background: rgba(124, 108, 240, .18);
}
.rdc-banner-item__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rdc-banner-item__text strong {
    font-size: 12.5px; font-weight: 600; color: #fff;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rdc-banner-item__text span {
    font-size: 11px; color: rgba(255, 255, 255, .55);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rdc-banner-item__del {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 18px; height: 18px; border-radius: 50%;
    display: grid; place-items: center;
    background: transparent; border: 0; cursor: pointer;
    color: rgba(255, 255, 255, .35); font-size: 10px;
    opacity: 0; transition: opacity .15s ease, background .15s ease, color .15s ease;
}
.rdc-banner-item:hover .rdc-banner-item__del { opacity: 1; }
.rdc-banner-item__del:hover { background: rgba(239, 68, 68, .3); color: #fff; }


/* ===================== DAVET KUTUSU ===================== */
.rdc-invite { display: flex; gap: 7px; align-items: center; }
.rdc-invite__url {
    flex: 1; min-width: 0; font-size: 11.5px;
    font-family: var(--rdc-font-mono, ui-monospace, monospace);
    cursor: text;
}

/* ===================== NOTLAR / TELEPROMPTER =====================
   Notlar YALNIZCA sunucuya gorunur. Sahne motoru ayri bir iframe oldugu icin
   bu katman hicbir kosulda yayina giremez -- teleprompter'in tek dogru yeri. */
.rdc-notes-foot {
    display: flex; justify-content: flex-end;
    font-size: 11px; color: rgba(255, 255, 255, .4); margin-top: 5px;
}
.rdc-prompter {
    position: absolute; left: 50%; top: 0; transform: translateX(-50%);
    width: min(760px, 82%); max-height: 46%;
    z-index: 40; border-radius: 0 0 14px 14px;
    background: rgba(6, 8, 14, .88);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .12); border-top: 0;
    box-shadow: 0 18px 50px -20px rgba(0, 0, 0, .8);
    overflow: hidden;
}
.rdc-prompter[hidden] { display: none; }
.rdc-prompter__scroll {
    max-height: 100%; overflow-y: auto;
    padding: 22px 46px 22px 26px;
    font-size: 26px; line-height: 1.55; color: #f2f4ff;
    white-space: pre-wrap; word-break: break-word;
    scrollbar-width: thin;
}
.rdc-prompter__close {
    position: absolute; right: 8px; top: 8px;
    width: 26px; height: 26px; border-radius: 50%;
    display: grid; place-items: center; cursor: pointer;
    background: rgba(255, 255, 255, .1); border: 0; color: #fff; font-size: 11px;
}
.rdc-prompter__close:hover { background: rgba(255, 255, 255, .2); }


/* ===================== YAYIN BASLATMA KARTLARI =====================
   Iki ayri niyet, iki ayri kart: canli yayin mi, sadece kayit mi. Tek bir
   "stüdyoyu ac" butonu kullaniciyi once iceri alip sonra "nereye?" diye
   sormak demekti. */
.rdc-create {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px; margin: 48px 0;
}
.rdc-create-card {
    display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
    padding: 26px 24px; border-radius: 18px; cursor: pointer; text-align: left;
    font-family: inherit; color: var(--atl-ink, #fff);
    background: var(--atl-surface-2, rgba(255,255,255,.05));
    border: 1px solid var(--atl-glass-stroke, rgba(255,255,255,.12));
    transition: transform .18s cubic-bezier(.16,1,.3,1), border-color .18s ease, background .18s ease;
}
.rdc-create-card:hover {
    transform: translateY(-3px);
    border-color: var(--atl-glass-stroke-strong, rgba(255,255,255,.3));
    background: var(--atl-surface-3, rgba(255,255,255,.08));
}
.rdc-create-card strong { font-size: 17px; font-weight: 600; }
.rdc-create-card small { font-size: 12.5px; line-height: 1.5; color: var(--atl-mute, rgba(255,255,255,.55)); }
.rdc-create-card__icon {
    width: 44px; height: 44px; border-radius: 13px; margin-bottom: 4px;
    display: grid; place-items: center; font-size: 17px;
    background: rgba(127, 127, 127, .12);
}
.rdc-create-card--live .rdc-create-card__icon {
    background: linear-gradient(135deg, var(--atl-aurora-1, #7c6cf0), var(--atl-aurora-2, #22d3ee));
    color: #fff;
}
.rdc-create-card--live:hover { border-color: var(--atl-aurora-1, #7c6cf0); }

/* Sekme seridi: 6 sekme 280px'lik panelde tek sirada sigmiyordu, sonuncusu
   kirpiliyordu. Sarmasina izin veriyoruz. */
.rdc-tabs { flex-wrap: wrap; }
.rdc-tab { flex: 1 1 auto; min-width: 68px; white-space: nowrap; }


/* ===================== YAYIN OLUSTURMA FORMU ===================== */
.rdc-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .rdc-field-row { grid-template-columns: 1fr; } }

.rdc-onb-field label { display: flex; align-items: center; gap: 8px; }
.rdc-counter {
    margin-left: auto; font-size: 11px; font-weight: 400;
    color: var(--rdc-c-faint, rgba(255, 255, 255, .35));
    font-variant-numeric: tabular-nums;
}

/* Kapak secici: secilince onizleme kutuyu doldurur. */
.rdc-thumb-drop {
    /* 16:9 + panel genisligi = cok uzun bir kutu; formun yarisini yiyordu.
       Ustten sinirlayip ortaliyoruz. */
    position: relative; display: block; cursor: pointer;
    aspect-ratio: 16 / 9; max-height: 150px; max-width: 267px;
    border-radius: 10px; overflow: hidden;
    background: var(--rdc-c-field, rgba(255, 255, 255, .04));
    border: 1px dashed var(--rdc-c-stroke-hi, rgba(255, 255, 255, .2));
    transition: border-color .15s ease, background .15s ease;
}
.rdc-thumb-drop:hover {
    border-color: var(--rdc-c-accent, rgba(255, 255, 255, .4));
    background: var(--rdc-c-surface-hi, rgba(255, 255, 255, .07));
}
.rdc-thumb-drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rdc-thumb-drop img[hidden] { display: none; }
.rdc-thumb-drop__hint {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    color: var(--rdc-c-mute, rgba(255, 255, 255, .5)); font-size: 12.5px;
}
.rdc-thumb-drop__hint i { font-size: 20px; }
.rdc-thumb-drop img:not([hidden]) + .rdc-thumb-drop__hint { opacity: 0; }
.rdc-thumb-drop:hover img:not([hidden]) + .rdc-thumb-drop__hint {
    opacity: 1; background: rgba(0, 0, 0, .55);
}

/* YouTube hedefi: anahtar ELLE girilmiyor, API'den geliyor. */
.rdc-dest-pick--yt i { color: #ff0033; }
.rdc-dest-pick--yt .rdc-dest-pick__key {
    /* Rozet metni her iki temada da okunmali: zeminle ayni renk ailesinden
       %18 dolgu + tam kontrastli metin yerine, ana metin rengini kullaniyoruz. */
    font-family: inherit; font-size: 11px; font-weight: 600;
    padding: 3px 9px; border-radius: 999px;
    background: color-mix(in oklab, var(--rdc-c-accent) 22%, transparent);
    color: var(--rdc-c-ink);
}


/* ===================== ALT SERIT (filmstrip) =====================
   StreamYard'daki alt sira. Kendini burada gorursun, mikrofon/kamerani buradan
   acip kapatirsin, ⋮ ile adini degistirirsin. Onceden kose bir "selfview"
   kutusu vardi ve kamerayi geri ACMANIN arayuzde karsiligi yoktu. */
.rdc-filmstrip {
    display: flex; align-items: flex-end; gap: 12px;
    padding: 10px 12px 0;
    flex: none; min-height: 0;
}
/* flex:1 idi -> eylem butonlari ekranin en saginda kaliyordu; StreamYard'da
   "Present or invite" kutusu kartlarin HEMEN yanında. */
.rdc-film-list { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; flex: 0 1 auto; min-width: 0; }
.rdc-film-list::-webkit-scrollbar { height: 6px; }
.rdc-film-list::-webkit-scrollbar-thumb { background: var(--rdc-c-stroke); border-radius: 3px; }

.rdc-film {
    position: relative; flex: none;
    width: 168px; border-radius: 10px; overflow: hidden; cursor: pointer;
    background: #11131c;
    border: 1px solid var(--rdc-c-stroke);
    transition: border-color .15s ease, transform .15s ease;
}
.rdc-film:hover { transform: translateY(-2px); }
/* Sahnede olan ve konusan kisi seritte de belli olmali: sunucu asagiya bakip
   "su an kim yayinda" sorusunu cevaplayabilsin. */
.rdc-film.is-on-stage { border-color: var(--rdc-c-accent); }
.rdc-film.is-speaking { box-shadow: 0 0 0 2px var(--rdc-c-accent); }

.rdc-film__video {
    position: relative; aspect-ratio: 16 / 9; background: #0d0f17;
    display: grid; place-items: center;
}
.rdc-film__video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rdc-film__initials {
    width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center;
    font-size: 15px; font-weight: 700; color: #fff;
    background: color-mix(in oklab, var(--rdc-c-accent) 35%, #1b1e2b);
}
.rdc-film__bar {
    display: flex; align-items: center; gap: 4px;
    padding: 5px 6px; background: rgba(0, 0, 0, .45);
}
.rdc-film__name {
    flex: 1; min-width: 0; font-size: 11.5px; color: #e8ecf5;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rdc-film__mic, .rdc-film__cam, .rdc-film__more {
    width: 22px; height: 22px; flex: none; border-radius: 50%;
    display: grid; place-items: center; cursor: pointer;
    background: transparent; border: 0; color: #cfd6e6; font-size: 10px;
    transition: background .15s ease, color .15s ease;
}
.rdc-film__mic:hover, .rdc-film__cam:hover, .rdc-film__more:hover { background: rgba(255, 255, 255, .16); }
.rdc-film__mic.is-off, .rdc-film__cam.is-off { color: #fca5a5; background: rgba(239, 68, 68, .22); }

.rdc-film-actions { display: flex; gap: 8px; flex: none; padding-bottom: 4px; }
.rdc-film-action {
    width: 92px; height: 76px; border-radius: 10px; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    font-size: 11.5px; font-family: inherit;
    color: var(--rdc-c-ink);
    background: var(--rdc-c-surface);
    border: 1px dashed var(--rdc-c-stroke-hi);
    transition: background .15s ease, border-color .15s ease;
}
.rdc-film-action i { font-size: 15px; }
.rdc-film-action:hover { background: var(--rdc-c-surface-hi); border-color: var(--rdc-c-accent); }
.rdc-film-action.is-on { border-style: solid; border-color: var(--rdc-c-accent); background: color-mix(in oklab, var(--rdc-c-accent) 16%, transparent); }

/* Baglam menusu (⋮) */
.rdc-ctxmenu {
    position: fixed; z-index: 10050; min-width: 172px; padding: 5px;
    border-radius: 10px;
    background: var(--atl-surface-3, #171a26);
    border: 1px solid var(--atl-glass-stroke, rgba(255,255,255,.12));
    box-shadow: 0 20px 50px -18px rgba(0, 0, 0, .6);
}
.rdc-ctxmenu button {
    display: flex; align-items: center; gap: 9px; width: 100%;
    padding: 9px 11px; border: 0; border-radius: 7px; cursor: pointer;
    background: transparent; color: var(--atl-ink, #fff);
    font-size: 13px; font-family: inherit; text-align: left;
}
.rdc-ctxmenu button:hover { background: var(--atl-surface-2, rgba(255,255,255,.09)); }
.rdc-ctxmenu i { width: 14px; text-align: center; color: var(--atl-mute, #94a3b8); }

/* Eski kose selfview'i: yerini alt serit aldi. */
.rdc-selfview { display: none !important; }


/* ===================== DEVAM EDEN YAYINLAR =====================
   StreamYard'daki "Enter studio" karsiligi. Beklemede/canli yayinlar eskiden
   "Gecmis Yayinlarim" listesinin icinde bitmislerle karisik duruyordu;
   kullanici kurdugu ya da zamanladigi yayina nereden geri girecegini
   goremiyordu. */
.rdc-open-bcasts { margin: 0 0 34px; }
/* Bu bolum SAYFA zemininde duruyor (koyu .rdc-past-bcasts karti degil);
   baslik rengi sayfanin temasina uymali, yoksa acik temada beyaz-uzeri-beyaz
   kaliyordu. */
.rdc-open-bcasts .rdc-past-bcasts-head h3 { color: var(--atl-ink, #fff); }
.rdc-open-bcasts .rdc-past-bcasts-head h3 i { color: var(--atl-aurora-1, var(--rdc-accent)); }
.rdc-open-bcasts[hidden] { display: none; }
.rdc-open-list { display: flex; flex-direction: column; gap: 10px; }
.rdc-open-card {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px; border-radius: 14px; cursor: pointer;
    background: var(--atl-surface-2, rgba(255,255,255,.05));
    border: 1px solid var(--atl-glass-stroke, rgba(255,255,255,.12));
    transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.rdc-open-card:hover {
    transform: translateY(-2px);
    border-color: var(--atl-aurora-1, #7c6cf0);
    background: var(--atl-surface-3, rgba(255,255,255,.08));
}
.rdc-open-card__status {
    flex: none; font-size: 10px; font-weight: 700; letter-spacing: .08em;
    padding: 4px 10px; border-radius: 999px;
    background: rgba(127, 127, 127, .18); color: var(--atl-mute, #94a3b8);
}
.rdc-open-card.is-live .rdc-open-card__status {
    background: color-mix(in oklab, #ef4444 22%, transparent); color: #ff6b6b;
}
.rdc-open-card__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rdc-open-card__text strong {
    font-size: 15px; font-weight: 600; color: var(--atl-ink, #fff);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rdc-open-card__text small { font-size: 12px; color: var(--atl-mute, #94a3b8); }
.rdc-open-card__go { flex: none; }


/* YouTube: hesap bagli ama kanalda canli yayin kapali. */
.rdc-yt-blocked {
    display: flex; align-items: flex-start; gap: 10px;
    margin-top: 8px; padding: 11px 13px; border-radius: 10px;
    background: color-mix(in oklab, #f59e0b 14%, transparent);
    border: 1px solid color-mix(in oklab, #f59e0b 42%, transparent);
    font-size: 12.5px; line-height: 1.5; color: var(--rdc-c-ink);
}
.rdc-yt-blocked > i { margin-top: 2px; color: #f59e0b; }
.rdc-yt-blocked strong { display: block; margin-bottom: 2px; }
.rdc-yt-blocked span { display: block; color: var(--rdc-c-mute); }
.rdc-yt-blocked a { display: inline-block; margin-top: 6px; color: var(--rdc-c-accent); text-decoration: none; font-weight: 600; }
.rdc-yt-blocked a:hover { text-decoration: underline; }
.rdc-dest-pick.is-disabled { opacity: .5; cursor: not-allowed; }

/* Yayinin kendi kapagi. Kapak artik YouTube'a degil BIZE ait: yuklenince
   hem bekleyen yayin kartinda hem gecmis kartinda gorunur. */
.rdc-open-card__thumb {
    width: 64px; height: 36px; object-fit: cover;
    border-radius: 6px; flex: 0 0 auto;
    border: 1px solid var(--rdc-c-border, rgba(128, 128, 128, .25));
}
.rdc-pb-card-thumb { position: relative; }
.rdc-pb-cover {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
}
.rdc-pb-card-thumb .rdc-pb-play,
.rdc-pb-card-thumb .rdc-pb-no-rec { position: relative; z-index: 1; }
/* Kapak varken oynat/“kayit yok” rozetleri okunur kalsin. */
.rdc-pb-card-thumb:has(.rdc-pb-cover) .rdc-pb-play,
.rdc-pb-card-thumb:has(.rdc-pb-cover) .rdc-pb-no-rec {
    background: rgba(0, 0, 0, .45);
    border-radius: 8px;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}

/* ============================================================================
   2026-09-13 — STUDYO YENIDEN DUZENI
   ============================================================================ */

/* ---- ALT SERIT: kutunun uzerinde "Sahneye al" / "Çıkar" -------------------
   StreamYard'daki davranisin aynisi: goruntunun uzerine gelince tek bir
   buton cikiyor. Eskiden kutuya tiklamak sahneye aliyordu -- yanlislikla
   tiklayinca konuk yayindan dusuyordu ve geri alma yolu belirsizdi. */
.rdc-film__stage {
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%) scale(.92);
    padding: 7px 14px; border-radius: 8px; border: 0; cursor: pointer;
    font-family: inherit; font-size: 11.5px; font-weight: 700;
    background: rgba(255, 255, 255, .94); color: #10131c;
    opacity: 0; pointer-events: none;
    transition: opacity .14s ease, transform .14s ease;
    white-space: nowrap; z-index: 3;
}
.rdc-film:hover .rdc-film__stage,
.rdc-film__stage:focus-visible { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.rdc-film.is-on-stage .rdc-film__stage { background: rgba(239, 68, 68, .95); color: #fff; }
.rdc-film:hover .rdc-film__initials { opacity: .25; }
.rdc-film__initials { transition: opacity .14s ease; }

/* "Davet et" kutusu — StreamYard'daki "Present or invite" karsiligi */
.rdc-film-add {
    flex: none; width: 120px; height: 116px; border-radius: 10px; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    font-size: 11.5px; font-family: inherit; font-weight: 600;
    color: var(--rdc-c-ink);
    background: var(--rdc-c-surface);
    border: 1px dashed var(--rdc-c-stroke-hi);
    transition: background .15s ease, border-color .15s ease;
}
.rdc-film-add:hover { background: var(--rdc-c-surface-hi); border-color: var(--rdc-c-accent); }
.rdc-film-add__icons {
    width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
    background: var(--rdc-c-surface-hi); font-size: 14px;
}

/* ---- ALT ARAC CUBUGU ---------------------------------------------------- */
.rdc-bottombar {
    height: 60px;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 0 16px;
    background: var(--rdc-bg-2);
    border-top: 1px solid var(--rdc-panel-bd);
    flex-shrink: 0;
}
.rdc-toolbar { display: flex; align-items: center; gap: 6px; }
.rdc-tool {
    width: 40px; height: 40px; border-radius: 11px; cursor: pointer;
    display: grid; place-items: center;
    background: var(--rdc-c-surface);
    border: 1px solid var(--rdc-c-stroke);
    color: var(--rdc-c-ink); font-size: 15px;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.rdc-tool:hover { background: var(--rdc-c-surface-hi); border-color: var(--rdc-c-accent); }
.rdc-tool.is-on { background: color-mix(in oklab, var(--rdc-c-accent) 22%, transparent); border-color: var(--rdc-c-accent); color: var(--rdc-c-accent); }
.rdc-tool.is-off { background: rgba(239, 68, 68, .20); border-color: rgba(239, 68, 68, .55); color: #fca5a5; }
.rdc-tool-sep { width: 1px; height: 24px; background: var(--rdc-c-stroke); margin: 0 4px; }

/* Sahnede su an ne var */
.rdc-nowplaying {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 10px 6px 12px; border-radius: 999px;
    background: color-mix(in oklab, var(--rdc-c-accent) 14%, transparent);
    border: 1px solid color-mix(in oklab, var(--rdc-c-accent) 34%, transparent);
    font-size: 11.5px; color: var(--rdc-c-ink); max-width: 320px;
}
.rdc-nowplaying > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rdc-nowplaying__x {
    width: 20px; height: 20px; flex: none; border-radius: 50%; cursor: pointer;
    display: grid; place-items: center; border: 0; font-size: 10px;
    background: rgba(0, 0, 0, .28); color: var(--rdc-c-ink);
}
.rdc-nowplaying__x:hover { background: var(--rdc-danger); color: #fff; }

.rdc-bottombar__right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.rdc-aichip {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 12px; border-radius: 999px;
    background: var(--rdc-c-surface); border: 1px solid var(--rdc-c-stroke);
    font-size: 11.5px; color: var(--rdc-c-mute);
}
.rdc-aichip i { color: var(--rdc-accent-2); }
.rdc-aichip em { font-style: normal; color: var(--rdc-c-ink); font-weight: 600; }

/* ---- GERI SAYIM PERDESI -------------------------------------------------- */
.rdc-countdown {
    position: absolute; inset: 0; z-index: 60;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
    background: rgba(8, 11, 18, .82);
    backdrop-filter: blur(6px);
}
.rdc-countdown__num {
    font-size: clamp(64px, 14vw, 148px); font-weight: 800; line-height: 1;
    color: #fff; font-variant-numeric: tabular-nums;
    text-shadow: 0 10px 50px rgba(0, 0, 0, .6);
}
.rdc-countdown__num.is-beat { animation: rdc-beat .55s cubic-bezier(.16, 1, .3, 1); }
@keyframes rdc-beat { from { transform: scale(1.28); opacity: .35; } to { transform: scale(1); opacity: 1; } }
.rdc-countdown__label { font-size: 15px; color: #dfe5f2; letter-spacing: .02em; }
@media (prefers-reduced-motion: reduce) { .rdc-countdown__num.is-beat { animation: none; } }

/* ---- OZEL DUZEN EDITORU -------------------------------------------------- */
.rdc-layout-editor { position: absolute; inset: 0; z-index: 40; }
body.rdc-editing-layout .rdc-stage-frame { pointer-events: none; }
.rdc-lbox {
    position: absolute; cursor: move;
    border: 2px solid var(--rdc-accent);
    background: color-mix(in oklab, var(--rdc-accent) 10%, transparent);
    border-radius: 6px;
}
.rdc-lbox.is-media { border-color: var(--rdc-accent-2); background: color-mix(in oklab, var(--rdc-accent-2) 12%, transparent); }
.rdc-lbox.is-dragging { border-style: dashed; }
.rdc-lbox__tag {
    position: absolute; left: 6px; top: 6px;
    padding: 2px 8px; border-radius: 5px; font-size: 10.5px; font-weight: 700;
    background: var(--rdc-accent); color: #08131a; pointer-events: none;
}
.rdc-lbox.is-media .rdc-lbox__tag { background: var(--rdc-accent-2); color: #140d24; }
.rdc-lbox__size {
    position: absolute; left: 6px; bottom: 6px;
    font-size: 10px; color: #fff; background: rgba(0, 0, 0, .55);
    padding: 1px 6px; border-radius: 4px; pointer-events: none;
    font-variant-numeric: tabular-nums;
}
.rdc-lbox__handle {
    position: absolute; right: -7px; bottom: -7px;
    width: 16px; height: 16px; border-radius: 4px; cursor: nwse-resize;
    background: #fff; border: 2px solid var(--rdc-accent);
}
.rdc-lbox__role, .rdc-lbox__del {
    position: absolute; top: 5px; width: 22px; height: 22px; border-radius: 6px;
    display: grid; place-items: center; cursor: pointer; border: 0; font-size: 10px;
    background: rgba(0, 0, 0, .55); color: #fff;
}
.rdc-lbox__role { right: 31px; }
.rdc-lbox__del { right: 5px; }
.rdc-lbox__role:hover { background: var(--rdc-accent); color: #08131a; }
.rdc-lbox__del:hover { background: var(--rdc-danger); }
.rdc-lbox-add {
    position: absolute; right: 10px; bottom: 10px;
    width: 34px; height: 34px; border-radius: 10px; cursor: pointer;
    display: grid; place-items: center; border: 0;
    background: var(--rdc-accent); color: #08131a; font-size: 14px;
}

.rdc-layoutbar-wrap { display: flex; flex-direction: column; gap: 8px; }
.rdc-editor-actions {
    display: flex; align-items: center; gap: 10px; justify-content: center;
    padding: 8px 12px; border-radius: 10px;
    background: var(--rdc-c-surface); border: 1px solid var(--rdc-c-stroke);
}
.rdc-editor-hint { flex: 1; font-size: 11.5px; color: var(--rdc-c-mute); }

/* ---- BRIEF: KART ARAYUZU ------------------------------------------------- */
.rdc-brief-hero {
    padding: 14px; border-radius: 12px; margin-bottom: 16px;
    background: linear-gradient(140deg, color-mix(in oklab, var(--rdc-accent-2) 20%, var(--rdc-panel)), var(--rdc-panel));
    border: 1px solid var(--rdc-c-stroke);
}
.rdc-brief-hero__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.rdc-brief-hero__top strong { font-size: 26px; font-weight: 800; color: var(--rdc-c-ink); font-variant-numeric: tabular-nums; }
.rdc-brief-hero__top span { font-size: 15px; color: var(--rdc-c-mute); font-variant-numeric: tabular-nums; }
.rdc-brief-hero__top small { display: block; font-size: 10.5px; color: var(--rdc-c-mute); letter-spacing: .03em; }
.rdc-brief-hero__time { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--rdc-c-mute); }
.rdc-brief-hero__bar {
    height: 5px; border-radius: 999px; margin-top: 10px; overflow: hidden;
    background: rgba(0, 0, 0, .3);
}
.rdc-brief-hero__bar > span {
    display: block; height: 100%; width: 0;
    background: linear-gradient(90deg, var(--rdc-accent), var(--rdc-accent-2));
    transition: width .5s cubic-bezier(.16, 1, .3, 1);
}
.rdc-brief-hero__ai { margin: 10px 0 0; font-size: 11px; line-height: 1.5; color: var(--rdc-c-mute); }

.rdc-brief-cards { display: flex; flex-direction: column; gap: 6px; }
.rdc-bcard {
    display: flex; align-items: flex-start; gap: 8px;
    padding: 9px 8px 9px 6px; border-radius: 10px;
    background: var(--rdc-c-surface); border: 1px solid var(--rdc-c-stroke);
    transition: border-color .15s ease, background .15s ease;
}
.rdc-bcard:hover { border-color: var(--rdc-c-stroke-hi); }
.rdc-bcard--done { background: color-mix(in oklab, #10b981 12%, transparent); border-color: color-mix(in oklab, #10b981 34%, transparent); }
.rdc-bcard--done .rdc-bcard__text { color: var(--rdc-c-mute); text-decoration: line-through; text-decoration-thickness: 1px; }
.rdc-bcard__tick, .rdc-bcard__banner, .rdc-bcard__del {
    flex: none; width: 24px; height: 24px; border-radius: 7px; cursor: pointer;
    display: grid; place-items: center; border: 0; font-size: 12px;
    background: transparent; color: var(--rdc-c-faint);
    transition: color .15s ease, background .15s ease;
}
.rdc-bcard--done .rdc-bcard__tick { color: #34d399; }
.rdc-bcard__tick:hover, .rdc-bcard__banner:hover { color: var(--rdc-c-accent); background: var(--rdc-c-surface-hi); }
.rdc-bcard__del:hover { color: #fca5a5; background: rgba(239, 68, 68, .18); }
.rdc-bcard__body { flex: 1; min-width: 0; }
.rdc-bcard__text {
    display: block; font-size: 12.5px; line-height: 1.45; color: var(--rdc-c-ink);
    outline: none; word-break: break-word;
}
.rdc-bcard__text:focus { box-shadow: 0 0 0 2px color-mix(in oklab, var(--rdc-c-accent) 50%, transparent); border-radius: 4px; }
.rdc-bcard__by { display: block; margin-top: 3px; font-size: 10px; color: #34d399; }

/* ---- MEDYA LISTESI: sahnede olani belli et ------------------------------- */
.rdc-asset-item--active { border-color: var(--rdc-c-accent) !important; background: color-mix(in oklab, var(--rdc-c-accent) 12%, transparent); }

/* Devam eden yayın kartı: kapak + sil butonu */
.rdc-open-card { position: relative; }
.rdc-open-card__del {
    width: 30px; height: 30px; flex: none; border-radius: 8px; cursor: pointer;
    display: grid; place-items: center; font-size: 12px;
    background: transparent; border: 1px solid var(--rdc-c-stroke);
    color: var(--rdc-c-faint);
    transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.rdc-open-card__del:hover { color: #fff; background: var(--rdc-danger); border-color: var(--rdc-danger); }

/* Biten yayın kartı tıklanabilir olduğunu göstersin */
.rdc-pb-card--playable { cursor: pointer; }
.rdc-pb-card--playable:hover .rdc-pb-play { transform: scale(1.12); }
.rdc-pb-card.is-resolving { opacity: .6; pointer-events: none; }
.rdc-pb-play { transition: transform .15s ease; }
