/* Yoyo Sunular */

/* Liste */
.ys-side #sl-new { justify-content: flex-start; }
.sl-list { padding: 18px 20px 28px; }
.sl-lhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; min-height: 34px; }
.sl-lhead h1 { margin: 0; font-size: 18px; font-weight: 700; }
.sl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.sl-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); min-width: 0; }
.sl-card:hover { border-color: #b6c4d8; }
.sl-cprev { display: block; border-bottom: 1px solid var(--line); background: #f8fafc; }
.sl-fitbox { position: relative; aspect-ratio: 16 / 9; overflow: hidden; pointer-events: none; }
.sl-cinfo { display: flex; align-items: center; gap: 6px; padding: 9px 6px 9px 12px; }
.sl-cname { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-cdate { font-size: 12.5px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-toast { display: flex; align-items: center; gap: 14px; }
.sl-toast button { border: 0; background: none; color: #93c5fd; font-weight: 700; padding: 0; }

/* Menuler */
.sl-menu { min-width: 200px; max-height: calc(100vh - 24px); overflow-y: auto; }
.sl-menu hr { border: 0; border-top: 1px solid var(--line); margin: 5px 4px; }
.sl-menu button:disabled { opacity: .4; cursor: default; background: none; }
.sl-menu kbd { margin-inline-start: auto; font: inherit; font-size: 12px; color: var(--mute); }
.sl-ck { width: 18px; height: 18px; flex: none; display: inline-block; color: var(--blue); }
.sl-thsw { position: relative; width: 34px; height: 22px; border: 1px solid var(--line); border-radius: 4px; flex: none; font-style: normal; font-size: 13px; font-weight: 700; line-height: 20px; padding-inline-start: 5px; }
.sl-thsw i { position: absolute; right: 4px; top: 6px; width: 8px; height: 8px; border-radius: 50%; }
.sl-shic { width: 20px; height: 20px; flex: none; display: inline-grid; align-items: center; }
.sl-shic svg { width: 20px; height: auto; fill: none; overflow: visible; }
.sl-colors { display: block; padding: 10px; min-width: 0; }
.sl-sw { display: grid; grid-template-columns: repeat(8, 24px); gap: 5px; }
.sl-sw button { width: 24px; height: 24px; padding: 0; border-radius: 5px; border: 1px solid rgba(15, 23, 42, .18); }
.sl-sw button.on { outline: 2px solid var(--blue); outline-offset: 1px; }
.sl-swx { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.sl-swx button, .sl-swx label { border: 1px solid var(--line); background: none; border-radius: 8px; padding: 5px 9px; font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.sl-swx input { width: 22px; height: 22px; padding: 0; border: 0; background: none; }

/* Duzenleyici */
body.sl-editing .ys-search { visibility: hidden; }
body.sl-editing .ys-main { overflow: hidden; }
.sl-ed { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.sl-bar { display: flex; align-items: center; gap: 4px; padding: 6px 10px; border-bottom: 1px solid var(--line); flex: none; overflow-x: auto; scrollbar-width: none; min-height: 47px; }
.sl-bar::-webkit-scrollbar { display: none; }
.sl-bar > * { flex: none; }
.sl-bar > .ys-grow { flex: 1 0 8px; }
.sl-name { border: 1px solid transparent; border-radius: 8px; padding: 6px 8px; font-size: 16px; font-weight: 600; width: 260px; max-width: 40vw; background: none; outline: 0; text-overflow: ellipsis; }
.sl-name:hover { border-color: var(--line); }
.sl-name:focus { border-color: var(--blue); }
.sl-status { font-size: 12.5px; color: var(--mute); white-space: nowrap; min-width: 86px; padding-inline-start: 4px; }
.sl-status.bad { color: var(--red); }
.sl-bt { border: 0; background: none; min-width: 32px; height: 32px; border-radius: 8px; display: inline-grid; place-items: center; color: #334155; padding: 0 6px; font-size: 15px; position: relative; }
.sl-bt:hover { background: #eef2f7; }
.sl-bt.on { background: var(--blue-l); color: var(--blue-d); }
.sl-bt:disabled { opacity: .35; cursor: default; background: none; }
.sl-bt svg { width: 19px; height: 19px; fill: currentColor; display: block; }
.sl-bt.txt { padding: 0 10px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.sl-sep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; flex: none; }
.sl-sel { height: 32px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 0 6px; font-size: 14px; outline: 0; max-width: 150px; }
.sl-sel:focus { border-color: var(--blue); }
.sl-ctx { display: flex; align-items: center; gap: 4px; }
.sl-sep:has(+ .sl-ctx:empty) { display: none; }
.sl-fsbox { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; height: 32px; }
.sl-fsbox .sl-bt { height: 30px; min-width: 26px; padding: 0; }
.sl-fs { width: 40px; height: 30px; border: 0; border-inline: 1px solid var(--line); text-align: center; outline: 0; font-size: 14px; padding: 0; background: none; }
.sl-col { grid-template-rows: 17px 4px; gap: 1px; align-content: center; }
.sl-col span { font-weight: 700; line-height: 17px; }
.sl-col svg { width: 17px; height: 17px; }
.sl-col i { width: 18px; height: 4px; border-radius: 1px; border: 1px solid rgba(15, 23, 42, .2); }
.sl-split { display: inline-flex; }
.sl-split .ys-btn:first-child { border-start-end-radius: 0; border-end-end-radius: 0; }
.sl-split .ys-btn:last-child { border-start-start-radius: 0; border-end-start-radius: 0; padding-inline: 6px; border-inline-start-color: rgba(255, 255, 255, .35); }

.sl-work { flex: 1; display: flex; min-height: 0; }
.sl-strip { width: 196px; flex: none; overflow-y: auto; border-inline-end: 1px solid var(--line); padding: 10px 10px 10px 4px; display: flex; flex-direction: column; gap: 8px; background: #fafbfd; }
.sl-th { display: flex; gap: 6px; align-items: flex-start; cursor: pointer; position: relative; flex: none; }
.sl-thn { width: 20px; text-align: end; font-size: 12px; color: var(--mute); padding-top: 2px; flex: none; }
.sl-thb { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #fff; outline: 2px solid transparent; outline-offset: 1px; }
.sl-th.on .sl-thb { outline-color: var(--blue); border-color: var(--blue); }
.sl-th.db::before, .sl-th.da::after { content: ""; position: absolute; left: 26px; right: 0; height: 2px; background: var(--blue); }
.sl-th.db::before { top: -5px; }
.sl-th.da::after { bottom: -5px; }
.sl-center { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sl-stage { flex: 1; min-height: 0; overflow: auto; display: flex; background: #eef1f6; padding: 24px; user-select: none; -webkit-user-select: none; }
.sl-wrap { position: relative; margin: auto; flex: none; background: #fff; box-shadow: 0 0 0 1px #d5dbe5; touch-action: none; }
.sl-canvas, .sl-ov { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; transform-origin: 0 0; }
.sl-canvas .sl-slide { overflow: visible; }
.sl-canvas .sl-el { cursor: move; }
.sl-canvas .sl-el.editing { cursor: text; }
.sl-canvas .sl-el.editing .sl-tx, .sl-canvas .sl-el.editing td { user-select: text; -webkit-user-select: text; cursor: text; }
.sl-canvas .sl-tx[data-ph]:empty::before { content: attr(data-ph); opacity: .4; }
.sl-canvas .sl-text:has(.sl-tx:empty) { outline: calc(1px * var(--k, 1)) dashed #b6c0cf; }
.sl-ov { pointer-events: none; --k: 1; }
.sl-sb { position: absolute; outline: calc(1.5px * var(--k)) solid var(--blue); }
.sl-sb.multi { outline-width: calc(1px * var(--k)); }
.sl-sb.group { outline: calc(1px * var(--k)) dashed var(--blue); }
.sl-h { position: absolute; width: calc(10px * var(--k)); height: calc(10px * var(--k)); background: #fff; border: calc(1.5px * var(--k)) solid var(--blue); pointer-events: auto; touch-action: none; left: calc(50% - 5px * var(--k)); top: calc(50% - 5px * var(--k)); }
.sl-h::after { content: ""; position: absolute; inset: calc(-7px * var(--k)); }
.sl-h-nw, .sl-h-w, .sl-h-sw, .sl-h-p1 { left: calc(-5px * var(--k)); }
.sl-h-ne, .sl-h-e, .sl-h-se, .sl-h-p2 { left: calc(100% - 5px * var(--k)); }
.sl-h-nw, .sl-h-n, .sl-h-ne { top: calc(-5px * var(--k)); }
.sl-h-sw, .sl-h-s, .sl-h-se { top: calc(100% - 5px * var(--k)); }
.sl-h-nw, .sl-h-se { cursor: nwse-resize; }
.sl-h-ne, .sl-h-sw { cursor: nesw-resize; }
.sl-h-n, .sl-h-s { cursor: ns-resize; }
.sl-h-e, .sl-h-w { cursor: ew-resize; }
.sl-h-p1, .sl-h-p2 { cursor: crosshair; border-radius: 50%; }
.sl-h-rot { top: calc(-30px * var(--k)); border-radius: 50%; cursor: grab; }
.sl-gv, .sl-gh { position: absolute; background: #e11d48; }
.sl-gv { top: 0; height: 720px; width: calc(1px * var(--k)); }
.sl-gh { left: 0; width: 1280px; height: calc(1px * var(--k)); }
.sl-mq { position: absolute; background: rgba(37, 99, 235, .08); outline: calc(1px * var(--k)) solid var(--blue); }
.sl-notes { flex: none; height: 84px; border: 0; border-top: 1px solid var(--line); padding: 10px 14px; resize: none; outline: 0; font-size: 14px; background: #fff; }

/* Sunum kipi */
.sl-show { position: fixed; inset: 0; z-index: 300; background: #000; outline: 0; cursor: default; }
.sl-shost, .sl-vhost { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; }
.sl-frame { position: relative; overflow: hidden; background: #000; }
.sl-layer { position: absolute; inset: 0; overflow: hidden; }
.sl-layer .sl-slide { position: absolute; left: 0; top: 0; }
.sl-snum { position: absolute; right: 14px; bottom: 10px; color: #fff; background: rgba(0, 0, 0, .45); font-size: 13px; padding: 2px 8px; border-radius: 6px; }

/* Paylasim baglantisiyla izleme */
.sl-view { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.sl-view header { display: flex; align-items: center; gap: 6px; padding: 8px 14px; flex: none; }
.sl-vname { font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sl-vnum { font-size: 13px; color: var(--mute); min-width: 52px; text-align: center; white-space: nowrap; }
.sl-view .sl-vhost { position: relative; flex: 1; min-height: 0; margin: 0 14px 14px; cursor: pointer; }
.sl-view .sl-frame { box-shadow: 0 0 0 1px var(--line); }
.sl-vhost:fullscreen { background: #000; margin: 0; }

/* Sunucu gorunumu */
.sl-pv { display: flex; flex-direction: column; height: 100vh; height: 100dvh; background: #111827; color: #e5e7eb; }
.sl-pv header { display: flex; align-items: center; gap: 14px; padding: 10px 16px; flex: none; }
.sl-pvt { font-size: 22px; font-variant-numeric: tabular-nums; }
.sl-pvn { color: #9ca3af; }
.sl-pvb { flex: 1; min-height: 0; display: flex; gap: 16px; padding: 0 16px 16px; }
.sl-pvcur { flex: 1.7; min-width: 0; }
.sl-pvside { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.sl-pvlbl { font-size: 13px; color: #9ca3af; }
.sl-pvnext { width: 70%; }
.sl-pvnotes { flex: 1; min-height: 0; overflow-y: auto; white-space: pre-wrap; font-size: 18px; line-height: 1.5; margin-top: 2px; }
.sl-pv .sl-fitbox { background: #000; }

.sl-print { display: none; }

@media (max-width: 760px) {
  .sl-list { padding: 14px 12px 24px; }
  .sl-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .sl-work { flex-direction: column-reverse; }
  .sl-strip { width: auto; flex-direction: row; overflow-x: auto; overflow-y: hidden; border-inline-end: 0; border-top: 1px solid var(--line); padding: 8px; }
  .sl-th { width: 104px; flex-direction: column; gap: 2px; }
  .sl-thn { text-align: start; width: auto; padding: 0; }
  .sl-thb { width: 100%; flex: none; }
  .sl-th.db::before, .sl-th.da::after { left: auto; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .sl-th.db::before { left: -5px; }
  .sl-th.da::after { right: -5px; }
  .sl-stage { padding: 12px; }
  .sl-notes { height: 56px; }
  .sl-name { width: 150px; }
  .sl-status { min-width: 0; }
  .sl-pvb { flex-direction: column; }
  .sl-pvcur { flex: none; }
  .sl-split .ys-btn:first-child { padding-inline: 10px; }
}

/* Yazdir / PDF: her slayt bir sayfa, yatay */
@page { size: 1280px 720px; margin: 0; }
@media print {
  html, body { height: auto; background: #fff; }
  body > *:not(.sl-print) { display: none !important; }
  .sl-print { display: block; }
  .sl-page { width: 1280px; height: 720px; overflow: hidden; break-after: page; page-break-after: always; break-inside: avoid; }
  .sl-page:last-child { break-after: auto; page-break-after: auto; }
  .sl-slide { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
