/* Layout: full-bleed TV player per /N.ekran/ page, and a PIN-gated admin board of four screen cards at /yonetim/ */
:root {
  --bg: #0b1f12;
  --panel: #12301c;
  --line: #24512f;
  --fg: #eef3e8;
  --muted: #a9bba6;
  --accent: #ffffff;
  --leaf: #5cd17f;
  --ink: #0b2a16;
  --off: #e25b4b;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Barlow", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 15px; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--leaf); outline-offset: 2px; }
img { max-width: 100%; }

/* ---------- TV player ---------- */
.tv { position: fixed; inset: 0; background: #000; overflow: hidden; cursor: none; }
.tv.cursor { cursor: default; }
.tv .layer { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; opacity: 0; transition: opacity 1.5s cubic-bezier(.45, 0, .55, 1); will-change: opacity; transform: translateZ(0); backface-visibility: hidden; }
.tv .layer.on { opacity: 1; }
.tv .fs { position: absolute; right: 20px; bottom: 20px; z-index: 2; border: 1px solid rgba(255,255,255,.5); background: rgba(0,0,0,.6); color: #fff; border-radius: 8px; padding: 12px 20px; font-size: 18px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .3s; }
.tv.cursor .fs { opacity: 1; pointer-events: auto; }
.tv .empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; font-family: var(--display); font-size: clamp(22px, 4vw, 40px); color: var(--muted); }
.tv .empty b { display: block; color: var(--fg); font-size: 1.4em; }


/* PIN gate */
.gate { min-height: 100%; display: grid; place-items: center; padding: 24px 16px; }
.gate form { width: min(100%, 340px); display: flex; flex-direction: column; gap: 14px; text-align: center; }
.gate h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 38px; }
.gate h1 span { color: var(--leaf); }
.gate input { text-align: center; font-size: 34px; letter-spacing: .5em; padding: 12px 0 12px .5em; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; font-variant-numeric: tabular-nums; }
.gate .msg { min-height: 1.4em; color: var(--off); font-size: 14px; }

/* landing */
.land { max-width: 560px; margin: 0 auto; padding: 48px 16px; display: flex; flex-direction: column; gap: 12px; }
.land h1 { font-family: var(--display); font-size: 40px; margin: 0 0 8px; }
.land a { display: block; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; color: var(--fg); text-decoration: none; font-family: var(--display); font-size: 24px; font-weight: 600; }
.land a:hover { border-color: var(--leaf); }

/* library + playlists */
.block { margin-top: 28px; }
.block h2 { margin: 0 0 4px; font-family: var(--display); font-weight: 800; font-size: 28px; }
.hint { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tile .th { width: 100%; }
.tile .nm { background: transparent; border: 0; border-bottom: 1px dashed var(--line); padding: 2px 0; font-weight: 600; min-width: 0; }
.tile.add { justify-content: center; align-items: center; text-align: center; color: var(--muted); border-style: dashed; cursor: pointer; min-height: 220px; }
.tile.add:hover { border-color: var(--leaf); color: var(--leaf); }
.tile.add input { display: none; }
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.chip { border: 1px solid var(--line); background: var(--bg); border-radius: 6px; padding: 6px 0; font-weight: 700; color: var(--muted); }
.chip.on { background: var(--leaf); border-color: var(--leaf); color: var(--ink); }
.btn.sm { padding: 4px 8px; font-size: 13px; }
.rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.row { display: grid; grid-template-columns: 24px 40px 1fr auto auto; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
.row .ord { position: static; }
.row .mini { width: 40px; aspect-ratio: 9 / 16; border-radius: 4px; overflow: hidden; background: #000; }
.row .mini img, .row .mini video { width: 100%; height: 100%; object-fit: cover; display: block; }
.row .rn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .sec { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; }
.row .sec input { width: 64px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; }
.row .vlen { color: var(--muted); font-size: 12px; }
.row .rb { display: flex; gap: 4px; }
.rows .none { color: var(--muted); font-size: 14px; padding: 10px; border: 1px dashed var(--line); border-radius: 8px; }
.ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); }
@media (max-width: 520px) { .row { grid-template-columns: 24px 36px 1fr; } .row .sec, .row .rb { grid-column: 2 / -1; } }
