/* ============================================================
   Cenk Bey Clipper — tasarım sistemi
   ============================================================ */
:root {
  --bg: #0b0b0d;
  --bg-elev: #111114;
  --surface: #17171a;
  --surface-2: #1e1e22;
  --surface-3: #26262b;
  --hover: #2d2d33;
  --border: rgba(255, 255, 255, 0.07);
  --border-2: rgba(255, 255, 255, 0.13);

  --text: #f4f4f5;
  --text-2: #a1a1aa;
  --text-3: #71717a;

  --accent: #e50914;
  --accent-hi: #ff1f2c;
  --accent-lo: #b3070f;
  --accent-soft: rgba(229, 9, 20, 0.14);
  --accent-line: rgba(229, 9, 20, 0.5);

  --ok: #22c55e;
  --ok-soft: rgba(34, 197, 94, 0.14);
  --warn: #f59e0b;
  --warn-soft: rgba(245, 158, 11, 0.14);
  --info: #60a5fa;
  --info-soft: rgba(96, 165, 250, 0.14);

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  --topbar-h: 64px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2a2a30; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #3a3a42; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.small { font-size: 12px; }
.mono { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
.row { display: flex; align-items: center; gap: 8px; }
.grow { flex: 1; min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Üst bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 24px;
  padding: 0 24px;
  background: rgba(11, 11, 13, 0.82);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 54px; width: auto; }
.nav { display: flex; gap: 4px; }
.nav a {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  color: var(--text-2); font-weight: 600;
  transition: color 0.15s, background-color 0.15s;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.active { color: var(--text); background: var(--surface-3); }
.nav a .count {
  font-size: 11px; background: var(--accent); color: #fff; border-radius: 999px; padding: 0 6px; font-weight: 700;
}
.topbar-search { flex: 1; max-width: 420px; margin-left: auto; position: relative; }
.topbar-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-size: 13px; }
.topbar-search input {
  width: 100%; height: 38px; padding: 0 14px 0 38px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  outline: none; transition: border-color 0.15s, background-color 0.15s;
}
.topbar-search input:focus { border-color: var(--border-2); background: var(--surface-2); }
.test-pill {
  font-size: 11px; font-weight: 700; color: var(--warn); background: var(--warn-soft);
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.user-menu { position: relative; }
.user-btn {
  display: flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px; cursor: pointer;
}
.user-btn:hover { background: var(--surface-2); }
.user-btn .name { font-weight: 600; font-size: 13px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px;
  background: var(--surface-2); border: 1px solid var(--border-2); border-radius: var(--r);
  box-shadow: var(--shadow); padding: 6px; z-index: 50;
  opacity: 0; transform: translateY(-4px) scale(0.98); pointer-events: none;
  transition: opacity 0.15s, transform 0.15s var(--ease);
}
.dropdown.open { opacity: 1; transform: none; pointer-events: auto; }
.dropdown a, .dropdown button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 12px; border-radius: var(--r-sm); border: 0; background: none; cursor: pointer;
  color: var(--text-2); font-weight: 500; text-align: left;
}
.dropdown a:hover, .dropdown button:hover { background: var(--hover); color: var(--text); }
.dropdown hr { border: 0; border-top: 1px solid var(--border); margin: 6px 0; }
.dropdown-head { padding: 8px 12px 10px; }
.dropdown-head b { display: block; }

.bottomnav { display: none; }

/* ---------- Sayfa ---------- */
.page { max-width: 1480px; margin: 0 auto; padding: 28px 24px 80px; }
.page-loading { display: grid; place-items: center; min-height: 50vh; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.page-head p { color: var(--text-2); margin-top: 4px; }

.section { margin-top: 40px; }
.section:first-child { margin-top: 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 12px; }
.section-head h2 { font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 10px; letter-spacing: -0.01em; }
.section-head h2 i { color: var(--accent); font-size: 16px; }
.section-head a { color: var(--text-2); font-weight: 600; font-size: 13px; }
.section-head a:hover { color: var(--text); }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: 999px;
  border: 1px solid transparent; background: var(--surface-3); color: var(--text);
  font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, transform 0.12s var(--ease), opacity 0.15s;
}
.btn:hover { background: var(--hover); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hi); }
.btn-primary:active { background: var(--accent-lo); }
.btn-ghost { background: transparent; border-color: var(--border-2); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: transparent; color: #f87171; border-color: rgba(248, 113, 113, 0.35); }
.btn-danger:hover { background: rgba(248, 113, 113, 0.12); }
.btn-lg { height: 46px; padding: 0 22px; font-size: 14px; }
.btn-sm { height: 30px; padding: 0 12px; font-size: 12px; }
.btn.is-on { background: var(--accent-soft); color: var(--accent-hi); border-color: var(--accent-line); }
.icon-btn {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 999px;
  border: 0; background: transparent; color: var(--text-2); cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.icon-btn:hover { background: var(--surface-3); color: var(--text); }

/* ---------- Form ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 12px; font-weight: 600; color: var(--text-2); }
.input, .select, .textarea {
  height: 40px; padding: 0 12px; width: 100%;
  background: var(--bg-elev); border: 1px solid var(--border-2); border-radius: var(--r-sm);
  outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.textarea { height: auto; min-height: 80px; padding: 10px 12px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input.invalid { border-color: var(--accent); animation: shake 0.3s; }
.select { appearance: none; padding-right: 32px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
/* Açılan liste de koyu temada görünsün (Windows'ta beyaz çıkıyordu) */
.select option { background: var(--surface-2); color: var(--text); }
.select option:checked { background: var(--accent); color: #fff; }

/* Durum seçici: renkli butonlar */
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; background: var(--bg-elev); border: 1px solid var(--border-2); border-radius: var(--r); }
.seg-btn {
  --sc: var(--text-2);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 8px; border: 1px solid transparent; border-radius: var(--r-sm);
  background: transparent; color: var(--text-3); font-weight: 600; font-size: 12.5px; cursor: pointer; white-space: nowrap;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.12s var(--ease);
}
.seg-btn:hover { color: var(--text); background: var(--surface-3); }
.seg-btn:active { transform: scale(0.96); }
.seg-new { --sc: var(--info); }
.seg-approved { --sc: var(--ok); }
.seg-published { --sc: var(--accent-hi); }
.seg-rejected { --sc: #f87171; }
.seg-btn.on { color: var(--sc); background: color-mix(in srgb, var(--sc) 16%, transparent); border-color: color-mix(in srgb, var(--sc) 45%, transparent); }
.seg-compact { display: inline-grid; grid-template-columns: repeat(4, auto); padding: 3px; border-radius: 999px; }
.seg-compact .seg-btn { height: 28px; padding: 0 10px; border-radius: 999px; font-size: 12px; }
.seg-compact .seg-btn:not(.on) span { display: none; }

.select-sm { height: 34px; font-size: 13px; border-radius: 999px; padding-left: 14px; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.tabs { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; }
.tabs button, .tabs a {
  border: 0; background: transparent; padding: 6px 14px; border-radius: 999px; cursor: pointer;
  color: var(--text-2); font-weight: 600; font-size: 13px; white-space: nowrap;
  transition: background-color 0.15s, color 0.15s;
}
.tabs button:hover, .tabs a:hover { color: var(--text); }
.tabs .active { background: var(--surface-3); color: var(--text); }

/* ---------- Avatar & rozetler ---------- */
.avatar {
  --c: var(--accent);
  flex-shrink: 0; display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: color-mix(in srgb, var(--c) 22%, #111);
  color: color-mix(in srgb, var(--c) 70%, #fff);
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  font-weight: 800; font-size: 13px; text-transform: uppercase;
}
.avatar-xs { width: 22px; height: 22px; font-size: 10px; }
.avatar-lg { width: 84px; height: 84px; font-size: 34px; border-width: 2px; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: var(--surface-3); color: var(--text-2); white-space: nowrap;
}
.badge-new { background: var(--info-soft); color: var(--info); }
.badge-approved { background: var(--ok-soft); color: var(--ok); }
.badge-published { background: var(--accent-soft); color: var(--accent-hi); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-err { background: rgba(248, 113, 113, 0.14); color: #f87171; }

/* ---------- Kartlar ---------- */
.grid { display: grid; gap: 22px 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-streams { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.hscroll {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 300px); gap: 18px;
  overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; scrollbar-width: thin;
}
.hscroll > * { scroll-snap-align: start; }

.thumb {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden;
  background: var(--surface-2); isolation: isolate;
}
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; }
.thumb video { position: absolute; inset: 0; z-index: 1; }
.thumb::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: box-shadow 0.3s;
}
.thumb-ph { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--text-3); font-size: 12px; font-weight: 600; }
.thumb-ph i { font-size: 22px; }
.badge-time {
  position: absolute; right: 8px; bottom: 8px; z-index: 3;
  background: rgba(0, 0, 0, 0.78); color: #fff; font-size: 11px; font-weight: 700;
  padding: 2px 6px; border-radius: 6px; font-variant-numeric: tabular-nums;
}
.badge-feat { position: absolute; left: 8px; top: 8px; z-index: 3; background: var(--warn); color: #111; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; }
.thumb .badge-status { position: absolute; right: 8px; top: 8px; z-index: 3; backdrop-filter: blur(6px); }
.thumb-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,0.15); z-index: 3; }
.thumb-bar i { display: block; height: 100%; background: var(--accent); transition: width 0.4s; }

.clip-card, .stream-card { display: block; min-width: 0; }
.clip-card .thumb, .stream-card .thumb { transition: transform 0.25s var(--ease); }
.clip-card:hover .thumb, .stream-card:hover .thumb { transform: translateY(-3px); }
.clip-card:hover .thumb::after, .stream-card:hover .thumb::after {
  box-shadow: inset 0 0 0 2px var(--accent), 0 10px 30px -10px rgba(229, 9, 20, 0.6);
}
.clip-meta { display: flex; gap: 10px; margin-top: 10px; }
.clip-text { min-width: 0; flex: 1; }
.clip-text h4 { font-size: 14px; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clip-text p { font-size: 12.5px; color: var(--text-2); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clip-text .stats { color: var(--text-3); display: flex; gap: 10px; }
.clip-text .stats i { font-size: 10px; margin-right: 3px; }

.stream-meta { margin-top: 10px; }
.stream-meta h4 { font-size: 15px; font-weight: 700; line-height: 1.35; }
.stream-meta p { font-size: 12.5px; color: var(--text-2); margin-top: 3px; display: flex; gap: 10px; flex-wrap: wrap; }
.sprite-anim { position: absolute; inset: 0; z-index: 1; background-repeat: no-repeat; opacity: 0; transition: opacity 0.2s; }
.stream-card:hover .sprite-anim.ready { opacity: 1; }
.thumb-overlay {
  position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 10px;
  background: rgba(0, 0, 0, 0.72); font-size: 12px; font-weight: 600; color: var(--text-2); text-align: center; padding: 12px;
}
.thumb-overlay .bar { width: 160px; height: 4px; border-radius: 4px; background: rgba(255,255,255,0.12); overflow: hidden; }
.thumb-overlay .bar i { display: block; height: 100%; background: var(--accent); transition: width 0.4s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 380px;
  display: flex; align-items: flex-end; background: var(--surface);
  border: 1px solid var(--border);
}
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.02); }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(11,11,13,0.96) 0%, rgba(11,11,13,0.75) 40%, rgba(11,11,13,0.1) 75%),
              linear-gradient(0deg, rgba(11,11,13,0.9) 0%, transparent 50%);
}
.hero-content { position: relative; z-index: 2; padding: 40px; max-width: 640px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-hi); }
.hero h1 { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin: 12px 0; }
.hero p { color: var(--text-2); font-size: 15px; }
.hero-actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }

/* ---------- Boş durum & yükleniyor ---------- */
.empty {
  display: grid; justify-items: center; text-align: center; gap: 10px;
  padding: 56px 24px; border: 1px dashed var(--border-2); border-radius: var(--r-lg); color: var(--text-2);
}
.empty i { font-size: 30px; color: var(--text-3); }
.empty h3 { color: var(--text); font-size: 17px; }
.empty p { max-width: 440px; }
.spinner {
  width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.12); border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
.spinner.sm { width: 18px; height: 18px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress { height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width 0.4s var(--ease); }

/* ---------- Toast ---------- */
#toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; justify-items: center; pointer-events: none; width: min(560px, calc(100vw - 32px)); }
.toast {
  display: flex; align-items: center; gap: 10px; pointer-events: auto;
  background: var(--surface-3); border: 1px solid var(--border-2); border-radius: 999px;
  padding: 10px 18px; box-shadow: var(--shadow); font-weight: 500; font-size: 13px;
  opacity: 0; transform: translateY(10px) scale(0.97); transition: opacity 0.2s, transform 0.25s var(--ease);
}
.toast.show { opacity: 1; transform: none; }
.toast a { color: var(--accent-hi); font-weight: 700; text-decoration: underline; }
.toast-success i { color: var(--ok); }
.toast-error i { color: #f87171; }
.toast-info i { color: var(--info); }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px;
  background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity 0.2s;
}
.modal-backdrop.show { opacity: 1; }
.modal {
  width: min(480px, 100%); max-height: calc(100vh - 40px); overflow: auto;
  background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--r-lg); box-shadow: var(--shadow);
  transform: translateY(10px) scale(0.98); transition: transform 0.25s var(--ease);
}
.modal-backdrop.show .modal { transform: none; }
.modal-wide { width: min(980px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 0 22px; }
.modal-head h3 { font-size: 17px; font-weight: 700; }
.modal-body { padding: 16px 22px 22px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.stack { display: grid; gap: 14px; }

/* ---------- Oynatıcı ---------- */
.player {
  position: relative; background: #000; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 9;
  outline: none; user-select: none;
}
.player-video { width: 100%; height: 100%; display: block; background: #000; }
.player:fullscreen { border-radius: 0; aspect-ratio: auto; }
.player-loading { position: absolute; inset: 0; display: none; place-items: center; pointer-events: none; }
.player.buffering .player-loading { display: grid; }
.player-bigplay {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(229, 9, 20, 0.92); color: #fff; font-size: 26px; padding-left: 5px;
  box-shadow: 0 0 0 10px rgba(229, 9, 20, 0.18); transition: transform 0.2s var(--ease), opacity 0.2s;
}
.player-bigplay:hover { transform: translate(-50%, -50%) scale(1.06); }
.player.playing .player-bigplay, .player.started .player-bigplay { opacity: 0; pointer-events: none; }
.player-flash {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 22px;
  opacity: 0; pointer-events: none;
}
.player-flash.go { animation: flash 0.6s ease-out; }
@keyframes flash { 0% { opacity: 1; transform: scale(0.8); } 100% { opacity: 0; transform: scale(1.35); } }
.player-controls {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 8px;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 55%, transparent 100%);
  transition: opacity 0.25s;
}
.player.idle.playing .player-controls { opacity: 0; }
.player.idle.playing { cursor: none; }

.scrub { position: relative; height: 18px; cursor: pointer; touch-action: none; }
.scrub-heat { position: absolute; left: 0; right: 0; bottom: 9px; width: 100%; height: 28px; pointer-events: none; opacity: 0.85; }
.scrub-track {
  position: absolute; left: 0; right: 0; top: 50%; height: 4px; transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.22); border-radius: 4px; transition: height 0.15s;
}
.scrub:hover .scrub-track, .scrub.dragging .scrub-track { height: 7px; }
.scrub-buffer, .scrub-fill, .scrub-sel { position: absolute; top: 0; bottom: 0; left: 0; border-radius: inherit; }
.scrub-buffer { background: rgba(255, 255, 255, 0.25); }
.scrub-fill { background: var(--accent); }
.scrub-sel { background: rgba(250, 204, 21, 0.55); display: none; box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.9); }
.scrub-sel.on { display: block; }
.scrub-knob {
  position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.3); transform: scale(0); transition: transform 0.15s;
  pointer-events: none;
}
.scrub:hover .scrub-knob, .scrub.dragging .scrub-knob { transform: scale(1); }
.scrub-tip {
  position: absolute; bottom: 26px; transform: translateX(-50%); display: none;
  flex-direction: column; align-items: center; gap: 6px; pointer-events: none;
}
.scrub:hover .scrub-tip, .scrub.dragging .scrub-tip { display: flex; }
.scrub-tip-img { width: 160px; height: 90px; border-radius: 8px; border: 2px solid rgba(255,255,255,0.9); background-color: #000; box-shadow: var(--shadow); }
.scrub-tip-img.none { display: none; }
.scrub-tip-time { background: rgba(0,0,0,0.85); padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }

.ctl-row { display: flex; align-items: center; gap: 2px; margin-top: 4px; }
.ctl {
  display: grid; place-items: center; height: 36px; min-width: 36px; padding: 0 8px; border: 0; border-radius: 8px;
  background: transparent; color: #fff; cursor: pointer; font-size: 15px; transition: background-color 0.15s;
}
.ctl:hover { background: rgba(255, 255, 255, 0.12); }
.ctl-text { font-size: 13px; font-weight: 700; }
.ctl-time { font-size: 13px; font-weight: 600; margin-left: 8px; font-variant-numeric: tabular-nums; color: rgba(255,255,255,0.9); }
.ctl-spacer { flex: 1; }
.vol { display: flex; align-items: center; }
.vol-range { width: 0; opacity: 0; transition: width 0.2s, opacity 0.2s; accent-color: var(--accent); }
.vol:hover .vol-range, .vol-range:focus { width: 80px; opacity: 1; }

/* ---------- İzleme sayfası ---------- */
.watch { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.watch-main { min-width: 0; }
.watch-info { margin-top: 16px; display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.watch-info h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.watch-info .meta { color: var(--text-2); margin-top: 4px; display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; }
.btn-clip { height: 46px; padding: 0 22px 0 18px; font-size: 15px; box-shadow: 0 8px 24px -8px rgba(229, 9, 20, 0.7); }
.btn-clip kbd { font: 700 11px/1 Inter, sans-serif; background: rgba(0,0,0,0.25); padding: 3px 6px; border-radius: 5px; }
.shortcut-hint { margin-top: 14px; display: flex; gap: 14px; flex-wrap: wrap; color: var(--text-3); font-size: 12px; }
kbd {
  font: 700 11px/1 ui-monospace, Consolas, monospace; background: var(--surface-3); border: 1px solid var(--border-2);
  border-bottom-width: 2px; padding: 2px 6px; border-radius: 5px; color: var(--text-2);
}

.side-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px; }
.side-card + .side-card { margin-top: 16px; }
.side-card h3 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.side-card h3 i { color: var(--accent); }
.side-card h3 .badge { margin-left: auto; }
.hot-list { display: grid; gap: 6px; }
.hot-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 0; cursor: pointer; text-align: left; width: 100%;
  transition: background-color 0.15s;
}
.hot-item:hover { background: var(--hover); }
.hot-item .flame { color: var(--accent); width: 16px; text-align: center; }
.hot-item .bar { flex: 1; height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.hot-item .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--warn), var(--accent)); }
.mini-clips { display: grid; gap: 4px; max-height: 620px; overflow: auto; margin: 0 -6px; padding: 0 6px; }
.mini-clip { display: flex; gap: 10px; padding: 6px; border-radius: var(--r-sm); align-items: center; transition: background-color 0.15s; }
.mini-clip:hover { background: var(--surface-2); }
.mini-clip .thumb { width: 120px; flex-shrink: 0; border-radius: 8px; }
.mini-clip .badge-time { font-size: 10px; right: 4px; bottom: 4px; }
.mini-clip h4 { font-size: 13px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-clip p { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.mini-clip .jump { font-size: 11px; color: var(--text-2); }

/* ---------- Klip editörü ---------- */
.editor {
  margin-top: 16px; background: var(--surface); border: 1px solid var(--accent-line); border-radius: var(--r-lg);
  padding: 16px 18px 18px; box-shadow: 0 0 0 4px var(--accent-soft);
  animation: editorIn 0.3s var(--ease);
}
@keyframes editorIn { from { opacity: 0; transform: translateY(-8px); } }
.editor-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.editor-head h3 { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.editor-head h3 i { color: var(--accent); }
.editor-len { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--text-2); font-size: 13px; }
.editor-len b { color: var(--text); font-size: 18px; }
.editor-len.over b { color: var(--warn); }

.timeline-wrap { display: flex; gap: 6px; align-items: stretch; }
.timeline-pan { width: 30px; border: 1px solid var(--border); background: var(--surface-2); border-radius: var(--r-sm); color: var(--text-2); cursor: pointer; }
.timeline-pan:hover { background: var(--hover); color: var(--text); }
.timeline-pan:disabled { opacity: 0.3; cursor: default; }
.timeline { position: relative; flex: 1; height: 84px; background: var(--bg-elev); border-radius: var(--r-sm); border: 1px solid var(--border); touch-action: none; cursor: pointer; overflow: hidden; }
.timeline canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.tl-sel {
  position: absolute; top: 0; bottom: 0; border: 2px solid var(--accent); border-radius: 6px;
  background: rgba(229, 9, 20, 0.08); cursor: grab; box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.35);
}
.tl-sel:active { cursor: grabbing; }
.tl-handle {
  position: absolute; top: -2px; bottom: -2px; width: 14px; background: var(--accent); cursor: ew-resize;
  display: grid; place-items: center;
}
.tl-handle::after { content: ''; width: 2px; height: 20px; border-radius: 2px; background: rgba(255,255,255,0.8); }
.tl-handle.start { left: -8px; border-radius: 6px 0 0 6px; }
.tl-handle.end { right: -8px; border-radius: 0 6px 6px 0; }
.tl-playhead { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 6px rgba(0,0,0,0.8); pointer-events: none; }
.tl-scale { display: flex; justify-content: space-between; color: var(--text-3); font-size: 11px; margin: 6px 36px 0; font-variant-numeric: tabular-nums; }

.editor-times { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.time-box { display: flex; align-items: center; gap: 4px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.time-box .label { font-size: 11px; font-weight: 700; color: var(--text-3); padding: 0 6px 0 10px; text-transform: uppercase; letter-spacing: 0.05em; }
.time-box .val { min-width: 84px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.time-box .icon-btn { width: 28px; height: 28px; font-size: 11px; }
.time-box .set { font-size: 11px; font-weight: 700; width: auto; padding: 0 8px; border-radius: 999px; }

.dupe {
  margin-top: 14px; padding: 12px 14px; border-radius: var(--r); background: var(--warn-soft); border: 1px solid rgba(245, 158, 11, 0.35);
  font-size: 13px;
}
.dupe b { color: var(--warn); }
.dupe-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.dupe-list a { background: rgba(0,0,0,0.3); padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.dupe-list a:hover { background: rgba(0,0,0,0.5); }
.editor-form { display: flex; gap: 10px; margin-top: 14px; }
.editor-form .input { height: 46px; font-size: 15px; border-radius: 999px; padding: 0 18px; }
.editor-hint { margin-top: 12px; display: flex; gap: 14px; flex-wrap: wrap; color: var(--text-3); font-size: 12px; }

/* ---------- Klip sayfası ---------- */
.clip-page { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.clip-player { position: relative; background: #000; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 9; }
.clip-player video { width: 100%; height: 100%; display: block; }
.clip-processing { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; background: radial-gradient(circle at center, #1a1a1f, #000); }
.clip-processing .progress { width: 260px; }
.clip-title { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin-top: 16px; line-height: 1.25; }
.clip-by { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.clip-by .who b { display: block; }
.clip-by .who span { font-size: 12.5px; color: var(--text-2); }
.clip-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.info-list { display: grid; gap: 10px; font-size: 13px; }
.info-list > div { display: flex; justify-content: space-between; gap: 12px; }
.info-list dt { color: var(--text-2); }
.info-list dd { margin: 0; font-weight: 600; text-align: right; }

/* ---------- Dikey çıktı penceresi ---------- */
.vx { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 20px; margin-top: 14px; }
.vx-src { position: relative; border-radius: var(--r); overflow: hidden; background: #000; align-self: start; }
.vx-src video { width: 100%; height: 100%; display: block; }
.vx-overlay { position: absolute; inset: 0; }
.vx-box { position: absolute; border: 2px solid #fff; border-radius: 4px; cursor: grab; touch-action: none; }
.vx-box:active { cursor: grabbing; }
.vx-box.game { border-color: var(--accent); box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55); }
.vx-box.cam { border-color: #facc15; z-index: 2; }
.vx-box .lbl { position: absolute; left: 4px; top: 4px; font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 4px; background: rgba(0,0,0,0.7); pointer-events: none; }
.vx-box.cam .lbl { color: #facc15; }
.vx-box.game .lbl { color: var(--accent-hi); }
.vx-resize { position: absolute; right: -7px; bottom: -7px; width: 14px; height: 14px; border-radius: 50%; background: #facc15; border: 2px solid #000; cursor: nwse-resize; }
.vx-preview { display: grid; justify-items: center; gap: 8px; }
.vx-preview canvas { width: 100%; max-width: 250px; aspect-ratio: 9 / 16; border-radius: var(--r); background: #000; border: 1px solid var(--border-2); }
.vx-preview span { font-size: 12px; color: var(--text-3); }
.vx-status { margin-top: 16px; }

/* ---------- Giriş ---------- */
.login-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(900px 500px at 20% 0%, rgba(229, 9, 20, 0.18), transparent 60%),
    radial-gradient(700px 500px at 100% 100%, rgba(88, 101, 242, 0.12), transparent 60%),
    var(--bg);
}
.login-card { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--border-2); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); }
.login-card .brand { justify-content: center; margin-bottom: 22px; }
.login-card .brand img { height: 96px; }
.login-card h1 { font-size: 22px; font-weight: 800; text-align: center; }
.login-card > p { text-align: center; color: var(--text-2); margin-top: 6px; }
.btn-discord { background: #5865f2; color: #fff; width: 100%; height: 48px; font-size: 15px; }
.btn-discord:hover { background: #6d78f5; }
.test-box { margin-top: 20px; padding: 16px; border-radius: var(--r); background: var(--warn-soft); border: 1px solid rgba(245, 158, 11, 0.3); }
.test-box > b { color: var(--warn); font-size: 12px; display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.role-pick label { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--bg-elev); border: 1px solid var(--border-2); cursor: pointer; font-weight: 600; font-size: 13px; }
.role-pick input { accent-color: var(--accent); }
.role-pick label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

/* ---------- Profil ---------- */
.profile-head { display: flex; align-items: center; gap: 20px; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); flex-wrap: wrap; }
.profile-head h1 { font-size: 26px; font-weight: 800; }
.stats { display: flex; gap: 12px; margin-left: auto; flex-wrap: wrap; }
.stat { background: var(--surface-2); border-radius: var(--r); padding: 12px 18px; min-width: 110px; }
.stat b { display: block; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--text-2); }

/* ---------- Filtre çubuğu ---------- */
.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }
.filters .input { height: 34px; border-radius: 999px; width: 220px; padding-left: 14px; font-size: 13px; }
.filters .select { width: auto; }
.load-more { display: flex; justify-content: center; margin-top: 28px; }

/* ---------- Yönetim ---------- */
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 24px; }
.admin-stats .stat { background: var(--surface); border: 1px solid var(--border); }
.add-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; margin-bottom: 24px; }
.add-card h2 { font-size: 16px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.add-card h2 i { color: var(--accent); }
.add-grid { display: grid; grid-template-columns: 2fr 1fr auto; gap: 12px; align-items: end; margin-top: 16px; }
.dropzone {
  display: grid; place-items: center; text-align: center; gap: 6px; padding: 28px; margin-top: 16px;
  border: 2px dashed var(--border-2); border-radius: var(--r); color: var(--text-2); cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone i { font-size: 26px; color: var(--accent); }
.dropzone b { color: var(--text); }
.add-modes { flex-wrap: wrap; border-radius: var(--r); }
.drive-help { margin-top: 14px; padding: 14px 16px; border-radius: var(--r); background: var(--surface-2); display: grid; gap: 8px; font-size: 13px; }
.drive-help > b i { color: var(--info); margin-right: 4px; }
.drive-help ol { margin: 0; padding-left: 20px; color: var(--text-2); display: grid; gap: 3px; }
.drive-help ol b { color: var(--text); }
.upload-job { margin-top: 14px; padding: 14px; border-radius: var(--r); background: var(--surface-2); display: grid; gap: 8px; }
.table { width: 100%; border-collapse: collapse; }
.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: auto; }
.table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); font-weight: 700; padding: 12px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: rgba(255, 255, 255, 0.015); }
.table .thumb { width: 112px; border-radius: 8px; }
.table .title-cell b { display: block; font-weight: 600; }
.table .title-cell span { font-size: 12px; color: var(--text-3); }
.table .actions { display: flex; gap: 4px; justify-content: flex-end; }
.table .select-sm { min-width: 130px; }
.table .title-cell { min-width: 200px; }
.status-cell { min-width: 170px; }
.status-cell .progress { margin-top: 6px; height: 4px; }
.err-text { color: #f87171; font-size: 12px; margin-top: 4px; max-width: 320px; }

/* ---------- Etiketler ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.tag {
  --tc: var(--accent);
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px;
  color: color-mix(in srgb, var(--tc) 75%, #fff);
  background: color-mix(in srgb, var(--tc) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--tc) 35%, transparent);
  white-space: nowrap;
}
a.tag:hover { background: color-mix(in srgb, var(--tc) 26%, transparent); }
.tag-btn { cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 700; padding: 5px 12px; opacity: 0.55; transition: opacity 0.15s, transform 0.12s var(--ease); }
.tag-btn:hover { opacity: 0.85; }
.tag-btn.on { opacity: 1; box-shadow: 0 0 0 2px color-mix(in srgb, var(--tc) 60%, transparent); }
.tag-btn:active { transform: scale(0.95); }
.tag-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }

/* ---------- Yorumlar ---------- */
.comments { margin-top: 28px; }
.comments h3 { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.comment-form { display: flex; gap: 10px; align-items: flex-start; }
.comment-form .textarea { min-height: 42px; height: 42px; border-radius: 21px; padding: 10px 16px; resize: none; line-height: 1.4; }
.comment-form .btn { width: 42px; height: 42px; padding: 0; flex-shrink: 0; }
.comment-list { display: grid; gap: 16px; margin-top: 20px; }
.comment { display: flex; gap: 12px; }
.comment p { margin-top: 3px; white-space: pre-wrap; word-break: break-word; }
.edit-grid { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Aralık düzenleme ---------- */
.trim { display: grid; gap: 10px; margin-top: 6px; }
.trim-video { background: #000; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 9; }
.trim-video video { width: 100%; height: 100%; display: block; }
.trim-bar { position: relative; height: 26px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 6px; cursor: pointer; overflow: hidden; }
.trim-sel { position: absolute; top: 0; bottom: 0; background: rgba(229, 9, 20, 0.35); border-left: 3px solid var(--accent); border-right: 3px solid var(--accent); }
.trim-ph { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; }
.trim-scale { display: flex; justify-content: space-between; margin-top: -4px; }
.trim-row { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.trim-row .label { width: 78px; font-size: 12px; font-weight: 700; color: var(--text-2); }
.trim-row .val { min-width: 92px; text-align: center; font-weight: 700; }
.trim-row .btn-sm { padding: 0 9px; }

/* ---------- Sıralama ---------- */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: end; }
.podium-card {
  display: grid; justify-items: center; gap: 8px; text-align: center; padding: 26px 16px 22px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  transition: transform 0.2s var(--ease), border-color 0.2s;
}
.podium-card:hover { transform: translateY(-4px); border-color: var(--border-2); }
.podium-card.place-1 { order: 2; padding-top: 40px; border-color: rgba(250, 204, 21, 0.45); background: linear-gradient(180deg, rgba(250, 204, 21, 0.1), var(--surface) 60%); }
.podium-card.place-2 { order: 1; }
.podium-card.place-3 { order: 3; }
.podium-card.me { box-shadow: 0 0 0 2px var(--accent); }
.podium-card .medal { font-size: 30px; line-height: 1; }
.podium-card b { font-size: 16px; }
.podium-card .score { font-size: 20px; font-weight: 800; color: var(--accent-hi); }
.row-me td { background: var(--accent-soft) !important; }

/* ---------- Yönetim: disk, kanal, etiket, geçmiş ---------- */
.disk-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px 18px; margin-bottom: 24px; display: grid; gap: 10px; }
.disk-card.low { border-color: rgba(245, 158, 11, 0.5); }
.disk-card.low .small { color: var(--warn); }
.disk-card b i { color: var(--accent); margin-right: 4px; }
.disk-bar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: var(--surface-3); }
.disk-bar i { display: block; height: 100%; min-width: 2px; }
.disk-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--text-2); }
.disk-legend span { display: inline-flex; align-items: center; gap: 6px; }
.disk-legend span > i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.disk-legend b { color: var(--text); }
.channel-list { display: grid; gap: 8px; margin-top: 14px; }
.channel-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); flex-wrap: wrap; }
.channel-item .grow { min-width: 200px; }
.tag-admin-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.tag-admin { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); }
.tag-admin .small { margin-left: auto; }
.color-input { width: 44px; height: 40px; padding: 2px; border: 1px solid var(--border-2); border-radius: var(--r-sm); background: var(--bg-elev); cursor: pointer; }
.audit { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 6px 0; }
.audit-row { display: flex; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--border); align-items: flex-start; }
.audit-row:last-child { border-bottom: 0; }
.audit-row a { color: var(--accent-hi); }
.audit-icon { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); flex-shrink: 0; font-size: 13px; }

/* ---------- Giriş sekmeleri ---------- */
.login-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
.login-tabs button { justify-content: center; display: flex; align-items: center; gap: 6px; }
.code-input { height: 56px; font: 700 26px/1 ui-monospace, Consolas, monospace; letter-spacing: 0.25em; text-align: center; }
.btn.loading { position: relative; color: transparent !important; }
.btn.loading::after {
  content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3); border-top-color: #fff; animation: spin 0.8s linear infinite;
}

/* ---------- Sunucular ---------- */
.queue-line { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-2); display: flex; gap: 8px; align-items: center; }
.server-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.server-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px; display: grid; gap: 14px; align-content: start; transition: opacity 0.2s, border-color 0.2s; }
.server-card.main { border-color: var(--accent-line); background: linear-gradient(180deg, var(--accent-soft), var(--surface) 55%); }
.server-card.is-paused { opacity: 0.7; }
.server-head { display: flex; align-items: center; gap: 10px; }
.server-head b { font-size: 16px; }
.server-head .badge { margin-left: auto; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; background: var(--text-3); }
.dot.on { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); animation: pulseDot 2s ease-in-out infinite; }
.dot.paused { background: var(--warn); }
.dot.off { background: #f87171; }
@keyframes pulseDot { 50% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0.05); } }
.server-info { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 0; font-size: 13px; }
.server-info dt { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }
.server-info dd { margin: 2px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.server-load { display: grid; gap: 6px; font-size: 13px; color: var(--text-2); }
.server-load b { color: var(--text); }
.server-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--border); }
.server-actions .icon-btn:last-child { margin-left: auto; }
.stepper { display: flex; align-items: center; gap: 2px; background: var(--surface-2); border-radius: 999px; padding: 2px; font-size: 12px; font-weight: 600; }
.stepper span { padding: 0 6px; white-space: nowrap; }
.stepper .icon-btn { width: 28px; height: 28px; font-size: 11px; }
.stepper .icon-btn:disabled { opacity: 0.3; cursor: default; }
.switch-row { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 13px; font-weight: 600; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch { width: 40px; height: 22px; border-radius: 999px; background: var(--surface-3); position: relative; flex-shrink: 0; transition: background-color 0.2s; }
.switch::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.2s var(--ease); }
.switch-row input:checked + .switch { background: var(--accent); }
.switch-row input:checked + .switch::after { transform: translateX(18px); }
.switch-row input:focus-visible + .switch { outline: 2px solid var(--accent); outline-offset: 2px; }

.setup { display: grid; gap: 12px; }
.setup-warn { padding: 12px 14px; border-radius: var(--r); background: var(--warn-soft); border: 1px solid rgba(245, 158, 11, 0.35); font-size: 13px; }
.setup-warn i { color: var(--warn); margin-right: 4px; }
.setup-steps { margin: 0; padding-left: 20px; display: grid; gap: 14px; font-size: 13.5px; }
.code-block { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 10px 12px; background: var(--bg); border: 1px solid var(--border-2); border-radius: var(--r-sm); }
.code-block pre { margin: 0; flex: 1; overflow-x: auto; font: 13px/1.5 ui-monospace, Consolas, monospace; color: #e5e7eb; }
code { font: 12.5px ui-monospace, Consolas, monospace; background: var(--surface-3); padding: 1px 6px; border-radius: 5px; }

/* ---------- Güvenlik ---------- */
.sec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 16px; align-items: start; }
.sec-grid .add-card { margin-bottom: 0; }
.sec-status { margin-top: 12px; padding: 10px 14px; border-radius: var(--r); font-size: 13px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sec-status.ok { background: var(--ok-soft); color: var(--ok); }
.sec-status.warn { background: var(--warn-soft); color: var(--warn); }
.howto { margin-top: 14px; font-size: 13px; color: var(--text-2); }
.howto summary { cursor: pointer; font-weight: 600; color: var(--text); }
.howto ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.sec-info ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 13px; color: var(--text-2); }
.sec-info b { color: var(--text); }

/* ---------- Mobil ---------- */
@media (max-width: 1100px) {
  .watch, .clip-page { grid-template-columns: 1fr; }
  .mini-clips { max-height: none; }
}
@media (max-width: 760px) {
  :root { --topbar-h: 56px; }
  .topbar { padding: 0 16px; gap: 12px; }
  .brand img { height: 40px; }
  .nav, .topbar-search, .test-pill, .user-btn .name { display: none; }
  .user-menu { margin-left: auto; }
  .user-btn { padding: 3px; }
  .bottomnav {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: 60px;
    background: rgba(17, 17, 20, 0.95); backdrop-filter: blur(12px); border-top: 1px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .bottomnav a { display: grid; place-content: center; justify-items: center; gap: 3px; color: var(--text-3); font-size: 10.5px; font-weight: 600; }
  .bottomnav a i { font-size: 17px; }
  .bottomnav a.active { color: var(--text); }
  .bottomnav a.active i { color: var(--accent); }
  .page { padding: 18px 16px 96px; }
  .page-head h1 { font-size: 23px; }
  .hero { min-height: 300px; }
  .hero-content { padding: 22px; }
  .hero h1 { font-size: 26px; }
  .grid, .grid-streams { grid-template-columns: 1fr; }
  .player { border-radius: var(--r); }
  .ctl[data-a="back"], .ctl[data-a="fwd"], .vol-range { display: none; }
  .editor { padding: 14px; }
  .timeline-pan { width: 24px; }
  .tl-scale { margin: 6px 30px 0; }
  .editor-form { flex-direction: column; }
  .editor-hint, .shortcut-hint { display: none; }
  .vx { grid-template-columns: 1fr; }
  .add-grid { grid-template-columns: 1fr; }
  .filters .input { width: 100%; }
  .clip-actions { margin-left: 0; }
  .stats { margin-left: 0; width: 100%; }
  .podium { grid-template-columns: 1fr; }
  .sec-grid, .server-grid { grid-template-columns: 1fr; }
  .code-block { flex-direction: column; align-items: stretch; }
  .podium-card.place-1, .podium-card.place-2, .podium-card.place-3 { order: 0; padding-top: 22px; }
  .trim-row .label { width: 100%; }
  .stat { flex: 1; min-width: 0; }
  #toasts { bottom: 76px; }
}

/* ============================================================
   Yeni: bildirimler, duyuru, moderasyon, istekler, istatistik
   ============================================================ */
.min-w-0 { min-width: 0; }
.side-card .seg { grid-template-columns: repeat(2, 1fr); }
.page-head .tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.page-head .tabs::-webkit-scrollbar { display: none; }
.page-head .tabs > * { flex-shrink: 0; white-space: nowrap; }
.link { color: var(--info); font-weight: 600; }
.link:hover { text-decoration: underline; }

/* ---------- Bildirim zili ---------- */
.notif-menu { position: relative; margin-left: 4px; }
.notif-btn { position: relative; width: 40px; height: 40px; font-size: 16px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); }
.notif-dot {
  position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg);
}
.notif-drop { width: min(380px, calc(100vw - 24px)); padding: 0; right: -52px; }
.notif-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 12px 10px 16px; border-bottom: 1px solid var(--border); }
.notif-list { max-height: min(460px, 70vh); overflow: auto; padding: 6px; }
.dropdown .notif-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px; border-radius: 10px; color: var(--text-2); }
.notif-item .grow { display: grid; gap: 1px; }
.notif-item b { color: var(--text); font-weight: 600; font-size: 13px; }
.notif-item.unread { background: rgba(229, 9, 20, 0.07); }
.notif-item.unread b::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: 1px; }
.notif-ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--surface-3); color: var(--text-2); font-size: 13px; }
.notif-review { color: var(--ok); background: var(--ok-soft); }
.notif-feature { color: var(--warn); background: var(--warn-soft); }
.notif-warning { color: #f87171; background: rgba(248, 113, 113, 0.14); }
.notif-comment { color: var(--info); background: var(--info-soft); }
.notif-request_done { color: var(--accent-hi); background: var(--accent-soft); }

.nav a .count, .bottomnav .count { font-size: 10.5px; line-height: 16px; min-width: 16px; text-align: center; }
.bottomnav a { position: relative; }
.bottomnav .count { position: absolute; top: 6px; left: calc(50% + 6px); background: var(--accent); color: #fff; border-radius: 999px; padding: 0 5px; font-weight: 800; }

/* ---------- Duyuru bandı ---------- */
.announce {
  display: flex; align-items: center; gap: 12px; padding: 10px 24px; font-weight: 600; font-size: 13.5px;
  border-bottom: 1px solid var(--border); background: var(--info-soft); color: #bfdbfe;
}
.announce > i { font-size: 15px; }
.announce-warn { background: var(--warn-soft); color: #fde68a; }
.announce-success { background: var(--ok-soft); color: #bbf7d0; }
.announce .icon-btn { width: 30px; height: 30px; color: inherit; }

/* ---------- Genel uyarı kutusu ---------- */
.notice {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 14px; font-size: 13px;
  background: var(--surface-2); border: 1px solid var(--border-2); border-radius: var(--r);
}
.notice > i { color: var(--text-2); }
.notice-err { background: rgba(248, 113, 113, 0.1); border-color: rgba(248, 113, 113, 0.35); }
.notice-err > i { color: #f87171; }
.notice-warn { background: var(--warn-soft); border-color: rgba(245, 158, 11, 0.35); }
.notice-warn > i { color: var(--warn); }
.notice-req { background: var(--accent-soft); border-color: var(--accent-line); }
.notice-req > i { color: var(--accent-hi); }

/* ---------- Giriş / kayıt ---------- */
.seg-switch { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; margin-top: 18px; background: var(--bg-elev); border: 1px solid var(--border-2); border-radius: var(--r); }
.seg-switch button { height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); font-weight: 700; cursor: pointer; }
.seg-switch button.on { background: var(--surface-3); color: var(--text); }
.modal .seg-switch { margin-top: 0; }
.pw-wrap { position: relative; display: block; }
.pw-wrap .input { width: 100%; padding-right: 44px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; }
.ban-box { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; border-radius: var(--r); background: rgba(248, 113, 113, 0.12); color: #fecaca; font-size: 13px; }

/* ---------- Ret ---------- */
.reject-note { margin-top: 6px; font-size: 12px; color: #fca5a5; display: flex; gap: 6px; align-items: flex-start; }
.reason-list { display: grid; gap: 6px; }
.reason-btn {
  display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 12px; border-radius: 10px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border-2); color: var(--text); font-weight: 600;
}
.reason-btn:hover, .reason-btn:focus-visible { border-color: rgba(248, 113, 113, 0.6); background: rgba(248, 113, 113, 0.08); }

/* ---------- Profil ---------- */
.review-summary { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); font-size: 13px; color: var(--text-2); }
.review-summary b { color: var(--text); }
.profile-filter { flex-wrap: wrap; }

/* ---------- Klip sayfası ---------- */
.similar-list { display: grid; gap: 6px; }
.similar-list a { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 8px; background: var(--surface-2); font-size: 13px; min-width: 0; }
.similar-list a:hover { background: var(--surface-3); }
.similar-list img { width: 56px; aspect-ratio: 16/9; object-fit: cover; border-radius: 5px; flex-shrink: 0; }
.share-list { display: grid; gap: 8px; }
.share-item { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.share-item > i { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-3); flex-shrink: 0; }

/* ---------- Yayın sayfası ---------- */
.watch-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.play-note { margin-top: 8px; }

/* ---------- İstekler ---------- */
.req-tabs .count-pill:empty { display: none; }
.count-pill { background: var(--surface-3); border-radius: 999px; padding: 0 7px; font-size: 11px; margin-left: 4px; }
.tabs .active .count-pill { background: var(--accent); color: #fff; }
.req-list { display: grid; gap: 12px; }
.req-card { display: flex; gap: 16px; align-items: center; padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.req-card.mine { border-color: var(--accent-line); box-shadow: 0 0 0 1px var(--accent-line) inset; }
.req-card .thumb { width: 168px; flex-shrink: 0; border-radius: 10px; }
.req-note { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.req-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.req-mini { display: grid; gap: 8px; }
.req-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); }

/* ---------- Moderasyon ---------- */
.mod-tabs { flex-wrap: wrap; }
.review-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.review-keys { margin-left: auto; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.review-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.review-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.review-actions .btn { height: 44px; }
.btn-approve { background: var(--ok-soft); color: #86efac; border-color: rgba(34, 197, 94, 0.4); }
.btn-approve:hover { background: rgba(34, 197, 94, 0.24); }
.btn-reject { background: rgba(248, 113, 113, 0.12); color: #fca5a5; border-color: rgba(248, 113, 113, 0.4); }
.btn-reject:hover { background: rgba(248, 113, 113, 0.22); }
.btn kbd { background: rgba(0, 0, 0, 0.3); border-color: transparent; color: inherit; }
.review-info .review-title { font-size: 17px; font-weight: 800; margin: 0; display: block; }
.review-info .notice { margin-bottom: 8px; }

.bulk-bar {
  position: sticky; top: calc(var(--topbar-h) + 8px); z-index: 5; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 10px 14px; margin-bottom: 14px; background: var(--surface-2); border: 1px solid var(--border-2); border-radius: var(--r); box-shadow: var(--shadow);
}
.bulk-bar input[type="checkbox"], .sel-table input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; }
.bulk-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.bulk-actions .select-sm { height: 30px; min-width: 110px; font-size: 12px; }
.sel-table tbody tr { cursor: pointer; }
.sel-table tr.sel td { background: var(--accent-soft); }

.dupe-groups { display: grid; gap: 16px; }
.dupe-group { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px; }
.dupe-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.dupe-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.dupe-item { display: grid; gap: 4px; align-content: start; min-width: 0; }
.dupe-item .thumb { border-radius: 10px; margin-bottom: 4px; }
.dupe-item.is-rej { opacity: 0.45; }
.best-badge { position: absolute; left: 8px; top: 8px; z-index: 3; }
.dupe-item .btn { margin-top: 6px; }

.cal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.cal-dot { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin: 0 4px 0 10px; vertical-align: 0; }
.cal-dot.planned, .cal-item.planned { --cc: var(--warn); }
.cal-dot.done, .cal-item.done { --cc: var(--ok); }
.cal-dot { background: var(--cc); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.cal-day { min-height: 150px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 8px; display: grid; gap: 6px; align-content: start; }
.cal-day.today { border-color: var(--accent-line); }
.cal-day-head { display: flex; justify-content: space-between; color: var(--text-2); font-size: 12px; text-transform: capitalize; }
.cal-day.today .cal-day-head span { color: #fff; background: var(--accent); border-radius: 999px; padding: 0 7px; font-weight: 700; }
.cal-item { display: flex; align-items: center; gap: 5px; padding: 5px 6px; font-size: 12px; border-radius: 7px; background: var(--surface-2); border-left: 3px solid var(--cc); min-width: 0; }
.cal-item .icon-btn { width: 24px; height: 24px; font-size: 11px; flex-shrink: 0; }
.cal-overdue { display: grid; gap: 6px; margin-bottom: 14px; }
.cand-list { display: grid; gap: 8px; }
.cand { display: flex; align-items: center; gap: 12px; padding: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); }
.cand .thumb { width: 112px; flex-shrink: 0; border-radius: 8px; }

/* ---------- Yönetim: kullanıcı karnesi ---------- */
.icon-btn.on { color: var(--warn); background: var(--warn-soft); }
.card-head { display: flex; gap: 16px; align-items: flex-start; }
.card-head h2 { font-size: 20px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin-top: 18px; }
.card-stats .stat { min-width: 0; padding: 10px 12px; }
.card-stats .stat b { font-size: 18px; }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.card-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 20px; }
.card-cols h4 { font-size: 13px; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.05em; margin: 16px 0 8px; }
.card-cols h4:first-child { margin-top: 0; }
.card-clips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.card-clips a { display: grid; gap: 3px; min-width: 0; }
.card-clips img, .card-clips .card-ph { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; }
.card-ph { display: grid; place-items: center; background: var(--surface-3); color: var(--text-3); }
.card-clips .badge { justify-self: start; font-size: 10px; }
ul.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.sess-list { display: grid; gap: 6px; }
.sess { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--surface-2); border-radius: 10px; }
.sess > i { color: var(--text-2); width: 16px; text-align: center; }
.input-date { height: 34px; width: auto; border-radius: 999px; padding: 0 12px; font-size: 13px; }
.limits-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.notify-events { display: grid; gap: 8px; }
.maint-pill { color: var(--warn); }

/* ---------- İstatistik ---------- */
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 18px; }
.stat-tiles .stat { min-width: 0; }
.chart-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-bottom: 18px; }
.mini-chart { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px 16px; }
.mini-chart figcaption { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.chart-box svg { width: 100%; height: 120px; display: block; overflow: visible; }
.chart-base { stroke: var(--border-2); stroke-width: 0.4; vector-effect: non-scaling-stroke; }
.chart-hit { fill: transparent; }
.chart-hit:hover { fill: rgba(255, 255, 255, 0.05); }
.chart-axis { display: flex; justify-content: space-between; margin-top: 6px; }
.chart-tip {
  position: fixed; z-index: 90; pointer-events: none; padding: 6px 10px; border-radius: 8px; font-size: 12px; font-weight: 600;
  background: var(--surface-3); border: 1px solid var(--border-2); box-shadow: var(--shadow); white-space: nowrap;
}
.stats-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; align-items: start; }
.stats-cols .add-card { margin-bottom: 0; }
.bar-list { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 44px; align-items: center; gap: 10px; font-size: 13px; }
.bar-row b { text-align: right; }
.bar-track { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.bar-track i { display: block; height: 100%; border-radius: 4px; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .review-grid { grid-template-columns: 1fr; }
  .cal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-cols { grid-template-columns: 1fr; }
}

/* ---------- Telefon ---------- */
@media (max-width: 760px) {
  .notif-menu { margin-left: auto; }
  .user-menu { margin-left: 0; }
  .notif-drop { position: fixed; left: 12px; right: 12px; top: calc(var(--topbar-h) + 6px); width: auto; }
  .announce { padding: 10px 16px; font-size: 13px; }

  /* Yayın izleme: başlık küçük, düğmeler başlığın altında tam genişlik */
  .watch-info { flex-direction: column; align-items: stretch; gap: 12px; }
  .watch-info h1 { font-size: 18px; line-height: 1.3; overflow-wrap: anywhere; }
  .watch-info .meta { gap: 10px; }
  .watch-actions { width: 100%; }
  .watch-actions .btn-clip { flex: 1; height: 48px; }
  .watch-actions .btn-ghost span { display: none; }
  .btn-clip kbd, .btn kbd { display: none; }
  .clip-title { font-size: 19px; overflow-wrap: anywhere; }
  .notice { font-size: 12.5px; flex-wrap: wrap; }

  /* Oynatıcı: parmakla kullanılabilir düğmeler */
  .ctl { height: 40px; min-width: 40px; }
  .ctl-time { font-size: 12px; margin-left: 4px; }
  .player-controls { padding: 28px 8px 4px; }

  .req-card { flex-direction: column; align-items: stretch; }
  .req-card .thumb { width: 100%; }
  .req-actions { justify-content: flex-start; }
  .review-keys { display: none; }
  .review-actions .btn span { display: none; }
  .review-actions .btn-approve, .review-actions .btn-reject { flex: 1; }
  .bulk-bar { position: static; }
  .cal-grid { grid-template-columns: 1fr; }
  .cal-day { min-height: 0; }
  .cand { flex-wrap: wrap; }
  .card-head { flex-wrap: wrap; }
  .card-clips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mod-tabs button span { display: none; }
  .mod-tabs button.active span { display: inline; }
  .filters .input-date { width: 100%; }
  .bar-row { grid-template-columns: minmax(0, 1fr) 60px 40px; }
}

/* Orta boy ekran: üst menü sığsın (yönetim bağlantılarıyla 6 öğe olabiliyor) */
@media (max-width: 1280px) and (min-width: 761px) {
  .topbar { gap: 12px; padding: 0 16px; }
  .nav a { padding: 8px 10px; gap: 6px; }
  .topbar-search { min-width: 120px; }
}
@media (max-width: 1120px) and (min-width: 761px) {
  .nav a { font-size: 13px; padding: 8px 8px; }
  .nav a i { display: none; }
  .brand img { height: 44px; }
}
@media (max-width: 980px) and (min-width: 761px) {
  .topbar-search { display: none; }
  .notif-menu { margin-left: auto; }
}

/* ============================================================
   Sunucu paneli: liste kartları + gösterge paneli
   ============================================================ */
.srv-open { font: inherit; color: inherit; text-align: left; width: 100%; cursor: pointer; }
.srv-open:hover { border-color: var(--border-2); transform: translateY(-2px); }
.srv-open { transition: transform 0.2s var(--ease), border-color 0.2s, opacity 0.2s; }
.srv-open .server-head .badge { margin-left: 0; }
.meters { display: grid; gap: 8px; }
.meter { display: grid; grid-template-columns: 38px 1fr 42px; align-items: center; gap: 10px; font-size: 12px; }
.meter-label { color: var(--text-2); font-weight: 700; }
.meter-track { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.meter-track i { display: block; height: 100%; border-radius: 4px; background: var(--info); transition: width 0.6s var(--ease); }
.meter.warn .meter-track i { background: var(--warn); }
.meter.crit .meter-track i { background: #f87171; }
.meter b { text-align: right; }
.srv-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-2); padding-top: 12px; border-top: 1px solid var(--border); }
.srv-foot b { color: var(--text); }
.power-badge { margin-left: auto; }
.power-auto { background: var(--accent-soft); color: var(--accent-hi); }
.power-max, .power-fast { background: var(--warn-soft); color: var(--warn); }
.power-eco { background: var(--ok-soft); color: var(--ok); }
.power-manual { background: var(--info-soft, rgba(96,165,250,.14)); color: var(--info); }
.srv-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.conc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.conc-row > span i { margin-right: 4px; }
.conc-step { display: inline-flex; align-items: center; gap: 2px; padding: 3px; background: var(--bg-elev); border: 1px solid var(--border-2); border-radius: 999px; }
.conc-step b { min-width: 26px; text-align: center; font-size: 15px; color: var(--text); }
.conc-step button {
  width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: var(--surface-3); color: var(--text); cursor: pointer; font-size: 12px;
}
.conc-step button:hover:not(:disabled) { background: var(--accent); color: #fff; }
.conc-step button:disabled { opacity: 0.35; cursor: not-allowed; }
.fleet { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.fleet > div { display: grid; gap: 2px; }
.fleet b { font-size: 16px; }

.srv-detail { display: grid; gap: 16px; }
.srv-detail .add-card { margin-bottom: 0; }
.srv-detail-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.srv-detail-head h2 { font-size: 22px; font-weight: 800; }
.srv-detail .notice { margin-bottom: 0; }
.gauges { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)) minmax(260px, 1.4fr); gap: 14px; }
.gauge { position: relative; display: grid; justify-items: center; align-content: start; gap: 6px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); text-align: center; }
.gauge svg { width: 132px; height: 132px; transform: rotate(-90deg); }
.gauge-bg { fill: none; stroke: var(--surface-3); stroke-width: 9; }
.gauge-fg { fill: none; stroke: var(--info); stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset 0.8s var(--ease); }
.gauge.warn .gauge-fg { stroke: var(--warn); }
.gauge.crit .gauge-fg { stroke: #f87171; }
.gauge-val { position: absolute; top: 16px; width: 132px; height: 132px; display: grid; place-content: center; }
.gauge-val b { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.gauge-val span { font-size: 12px; color: var(--text-2); font-weight: 700; letter-spacing: 0.05em; }
.gauge-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); align-content: center; }
.gauge-stats > div { display: grid; gap: 2px; }
.gauge-stats b { font-size: 16px; }
.power-seg { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 4px; background: var(--bg-elev); border: 1px solid var(--border-2); border-radius: var(--r); }
.power-seg button {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border: 1px solid transparent; border-radius: 9px;
  background: transparent; color: var(--text-2); font-weight: 700; cursor: pointer;
}
.power-seg button:hover { color: var(--text); background: var(--surface-3); }
.power-seg button.on { color: var(--accent-hi); background: var(--accent-soft); border-color: var(--accent-line); }
.chart-grid-line { stroke: var(--border); stroke-width: 0.3; vector-effect: non-scaling-stroke; stroke-dasharray: 2 2; }
.job-list { display: grid; gap: 6px; }
.job { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--surface-2); border-radius: 9px; font-size: 13px; min-width: 0; }
.job > i { color: var(--ok); width: 14px; }
.job-err > i, .job-err .small { color: #f87171; }
.srv-actions .switch-row { margin: 0; }

@media (max-width: 1100px) {
  .gauges { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gauge-stats { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .gauges { grid-template-columns: 1fr 1fr; }
  .gauge svg, .gauge-val { width: 110px; height: 110px; }
  .gauge-stats { grid-template-columns: 1fr 1fr; }
  .power-seg { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .power-seg button span { font-size: 12px; }
}

/* Kullanıcı silme onayı */
.radio-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border-2); border-radius: var(--r); cursor: pointer; }
.radio-row:has(input:checked) { border-color: var(--accent-line); background: var(--accent-soft); }
.radio-row input { margin-top: 3px; accent-color: var(--accent); }
.job-detail { display: block; margin-top: 1px; }
