/* ==========================================================================
   Erikdalı Çek — tema ve düzen
   ========================================================================== */

/* ---------- Tokenlar ---------- */
:root {
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius-lg: 22px;
  --radius: 16px;
  --radius-sm: 11px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --accent: #ff3b3b;
  --accent-2: #ff8a5b;
  --accent-soft: color-mix(in srgb, var(--accent) 16%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 45%, transparent);
  --success: #22c55e;
  --danger: #ff5c7a;
  --container: 1240px;
  color-scheme: dark;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07090e;
  --bg-glow: rgba(255, 255, 255, .025);
  --surface: #0f131c;
  --surface-2: #161c29;
  --surface-3: #1d2535;
  --border: #222b3e;
  --text: #eef1f7;
  --muted: #98a2b8;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, .75);
  --glass: rgba(10, 13, 20, .72);
  --input-bg: #0b0f17;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f5f9;
  --bg-glow: rgba(15, 20, 36, .03);
  --surface: #ffffff;
  --surface-2: #f1f3f9;
  --surface-3: #e7eaf3;
  --border: #e1e5ef;
  --text: #0f1424;
  --muted: #5d6679;
  --shadow: 0 30px 50px -32px rgba(15, 20, 36, .28);
  --glass: rgba(255, 255, 255, .78);
  --input-bg: #ffffff;
}

/* Vurgu renkleri */
:root[data-accent="red"]    { --accent: #ff3b3b; --accent-2: #ff8a5b; }
:root[data-accent="violet"] { --accent: #8b5cf6; --accent-2: #ec4899; }
:root[data-accent="cyan"]   { --accent: #06b6d4; --accent-2: #3b82f6; }
:root[data-accent="green"]  { --accent: #22c55e; --accent-2: #a3e635; }
:root[data-accent="amber"]  { --accent: #f59e0b; --accent-2: #ef4444; }

/* ---------- Temel ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 10% -10%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%),
    radial-gradient(900px 500px at 110% 0%, color-mix(in srgb, var(--accent-2) 10%, transparent), transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 70%, white);
  outline-offset: 2px;
  border-radius: 8px;
}

.container {
  width: min(var(--container), 100% - 32px);
  margin-inline: auto;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 14px; border-radius: 10px; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Butonlar & ikonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem;
  cursor: pointer; transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); border-color: var(--accent-line); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent; color: #fff;
  box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--accent) 80%, transparent);
}
.btn-primary:hover { box-shadow: 0 14px 34px -12px color-mix(in srgb, var(--accent) 90%, transparent); }
.btn-ghost { background: transparent; }
.btn-sm { padding: 8px 14px; font-size: .88rem; }
.btn-block { width: 100%; }

.icon-btn {
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); display: inline-grid; place-items: center; cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.icon-btn:hover { border-color: var(--accent-line); transform: translateY(-1px); }
.icon-btn svg { width: 19px; height: 19px; }

.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Üst bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner { height: 70px; display: flex; align-items: center; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand strong { font-size: 1.02rem; letter-spacing: -0.01em; }
.brand small { color: var(--muted); font-size: .78rem; }
.logo {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 800; letter-spacing: -0.03em;
  box-shadow: 0 10px 24px -10px var(--accent);
}

.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a {
  text-decoration: none; color: var(--muted); padding: 8px 12px; border-radius: 10px; font-weight: 500; font-size: .95rem;
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }

.actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.settings { position: relative; }
.popover {
  position: absolute; right: 0; top: calc(100% + 10px); width: 280px; z-index: 60;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px;
  animation: pop .18s var(--ease);
}
.popover h4 { margin: 0 0 10px; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.popover + .popover, .popover .group + .group { margin-top: 16px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--surface-2); padding: 4px; border-radius: 12px; }
.seg button {
  border: 0; background: transparent; padding: 8px 6px; border-radius: 9px; cursor: pointer; color: var(--muted); font-size: .88rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch {
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0;
  background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: inset 0 0 0 2px var(--surface);
}
.swatch[aria-pressed="true"] { border-color: var(--text); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 64px 0 40px; overflow: hidden; overflow: clip; }
.hero::after {
  content: ""; position: absolute; inset: auto -10% -60% -10%; height: 90%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 18%, transparent), transparent);
  filter: blur(20px);
}
.hero-grid { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; position: relative; z-index: 1; }
.avatar {
  width: 148px; height: 148px; border-radius: 50%; object-fit: cover;
  border: 4px solid var(--surface); box-shadow: 0 0 0 2px var(--accent-line), 0 24px 50px -20px var(--accent);
  background: var(--surface-2);
}
.avatar-fallback { display: grid; place-items: center; font-size: 2.6rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 14px;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 var(--success); animation: ping 1.8s infinite; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
.hero h1 span { background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { color: var(--muted); font-size: 1.06rem; margin-top: 14px; max-width: 60ch; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border); padding: 6px 12px; border-radius: 999px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.stat {
  background: linear-gradient(180deg, var(--surface), var(--surface-2)); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow);
}
.stat-label { color: var(--muted); font-size: .85rem; font-weight: 600; }
.stat-value { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.03em; margin-top: 4px; font-variant-numeric: tabular-nums; }

/* ---------- Bölümler ---------- */
.section { padding: 48px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; }
.section-head p { color: var(--muted); margin-top: 6px; }

/* ---------- Öne çıkan video ---------- */
.featured { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 22px; align-items: stretch; }
.panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden;
}
.lite {
  position: relative; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; cursor: pointer; background: #000; display: block;
  border-radius: var(--radius-lg); overflow: hidden;
}
.lite img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s; }
.lite:hover img { transform: scale(1.03); filter: brightness(.85); }
.lite::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.55)); pointer-events: none; }
.play-btn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1;
  width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 25%, transparent);
  transition: transform .25s var(--ease);
}
.lite:hover .play-btn { transform: translate(-50%, -50%) scale(1.08); }
.play-btn svg { width: 30px; height: 30px; margin-left: 4px; fill: currentColor; }
.featured-info { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.featured-info h3 { font-size: 1.35rem; font-weight: 700; }
.featured-desc { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.featured-info .hero-meta { margin-top: auto; }
.featured-info .btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: .86rem; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.meta .ic { width: 15px; height: 15px; }

/* ---------- Video araçları & grid ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 22px; }
.search {
  flex: 1 1 280px; position: relative; display: flex; align-items: center;
}
.search .ic { position: absolute; left: 14px; color: var(--muted); }
.search input {
  width: 100%; padding: 13px 16px 13px 44px; border-radius: 14px; border: 1px solid var(--border);
  background: var(--input-bg); outline: none; transition: border-color .2s, box-shadow .2s;
}
.search input:focus { border-color: var(--accent-line); box-shadow: 0 0 0 4px var(--accent-soft); }
.select {
  padding: 12px 40px 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--input-bg);
  appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat;
}
.count { color: var(--muted); font-size: .9rem; margin-left: auto; font-variant-numeric: tabular-nums; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
  animation: rise .5s var(--ease) both;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent-line); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 16 / 9; border: 0; padding: 0; cursor: pointer; background: var(--surface-3); overflow: hidden; display: block; width: 100%; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-media .play-mini {
  position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .25s;
  background: rgba(0,0,0,.35);
}
.card-media .play-mini span { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; }
.card-media .play-mini svg { width: 24px; height: 24px; margin-left: 3px; fill: currentColor; }
.card:hover .play-mini, .card-media:focus-visible .play-mini { opacity: 1; }
.badge {
  position: absolute; left: 10px; top: 10px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: var(--accent); color: #fff; padding: 4px 9px; border-radius: 999px;
}
.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title {
  font-size: .98rem; font-weight: 650; line-height: 1.35; letter-spacing: -0.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em;
}
.card-title a { text-decoration: none; }
.card-title a:hover { color: var(--accent); }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; gap: 8px; align-items: center; }

.more { display: flex; justify-content: center; margin-top: 28px; }
.empty { text-align: center; padding: 56px 20px; color: var(--muted); border: 1px dashed var(--border); border-radius: var(--radius-lg); }
.skeleton { height: 290px; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface), var(--surface-2), var(--surface)); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; border: 1px solid var(--border); }

/* ---------- Sohbet bölümü ---------- */
.chat-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: 22px; align-items: start; }
.side-card { padding: 24px; }
.side-card h3 { font-size: 1.1rem; margin-bottom: 14px; }
.rules { display: grid; gap: 12px; }
.rule { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: .95rem; }
.rule b { color: var(--text); }
.rule .ic { color: var(--accent); margin-top: 3px; }
.mini-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.mini-list li button {
  width: 100%; display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; text-align: left;
  padding: 8px; border-radius: 12px; border: 0; background: transparent; cursor: pointer; transition: background .2s;
}
.mini-list li button:hover { background: var(--surface-2); }
.mini-list img { width: 96px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 9px; }
.mini-list span { font-size: .9rem; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-list small { display: block; color: var(--muted); font-weight: 500; margin-top: 3px; font-size: .8rem; }

.chat-layout { min-width: 0; }
.chat { min-width: 0; }
.chat-main, .chat-side { min-width: 0; }
.chat {
  position: sticky; top: 92px; height: min(720px, calc(100vh - 116px)); min-height: 520px;
  display: flex; flex-direction: column; padding: 0; overflow: visible;
}
.chat-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--border);
}
.chat-title { display: flex; align-items: center; gap: 10px; font-weight: 750; }
.chat-title small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status.ok .dot { background: var(--success); box-shadow: 0 0 0 0 var(--success); animation: ping 1.8s infinite; }
.status.err .dot { background: var(--danger); }
.chat-user { display: flex; align-items: center; gap: 10px; }
.chat-user .who { font-size: .9rem; font-weight: 650; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.messages {
  flex: 1; overflow-y: auto; padding: 16px 16px 8px; display: flex; flex-direction: column; gap: 6px;
  scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; overscroll-behavior: contain;
}
.msg { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 8px 8px; border-radius: 12px; animation: rise .3s var(--ease) both; }
.msg:hover { background: var(--surface-2); }
.msg.mine { background: var(--accent-soft); }
.msg-avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .9rem; flex: none;
}
.msg-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.msg-name { font-weight: 700; font-size: .9rem; }
.msg-time { color: var(--muted); font-size: .75rem; }
.msg-text { font-size: .95rem; overflow-wrap: anywhere; white-space: pre-wrap; }
.msg-text.emoji-only { font-size: 1.9rem; line-height: 1.25; }
.sys { text-align: center; color: var(--muted); font-size: .82rem; padding: 6px; }

.composer { border-top: 1px solid var(--border); padding: 12px; position: relative; }
.composer form { display: flex; gap: 8px; align-items: center; }
.composer input {
  flex: 1; min-width: 0; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--input-bg); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.composer input:focus { border-color: var(--accent-line); box-shadow: 0 0 0 4px var(--accent-soft); }
.composer .counter { position: absolute; right: 74px; bottom: 26px; font-size: .72rem; color: var(--muted); pointer-events: none; }
.send-btn {
  width: 46px; height: 46px; border-radius: 14px; border: 0; cursor: pointer; flex: none; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); transition: transform .2s var(--ease), opacity .2s;
}
.send-btn:hover { transform: translateY(-1px); }
.send-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.send-btn svg { width: 19px; height: 19px; }
.emoji-btn {
  width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; flex: none;
  display: grid; place-items: center; font-size: 1.25rem; transition: border-color .2s;
}
.emoji-btn:hover { border-color: var(--accent-line); }

.emoji-panel {
  position: absolute; left: 12px; right: 12px; bottom: calc(100% - 4px); z-index: 20;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 12px; animation: pop .18s var(--ease);
}
.emoji-tabs { display: flex; gap: 4px; margin-bottom: 10px; overflow-x: auto; scrollbar-width: none; }
.emoji-tabs::-webkit-scrollbar { display: none; }
.emoji-tabs button {
  border: 0; background: transparent; padding: 6px 10px; border-radius: 9px; cursor: pointer; color: var(--muted); font-size: .8rem; font-weight: 600; white-space: nowrap;
}
.emoji-tabs button[aria-selected="true"] { background: var(--surface-2); color: var(--text); }
.emoji-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 2px; max-height: 210px; overflow-x: hidden; overflow-y: auto; }
.emoji-grid button {
  aspect-ratio: 1; border: 0; background: transparent; border-radius: 9px; font-size: 1.35rem; cursor: pointer; display: grid; place-items: center;
  transition: background .15s, transform .15s;
}
.emoji-grid button:hover { background: var(--surface-2); transform: scale(1.12); }

/* Kimlik doğrulama formu */
.auth { padding: 22px; display: flex; flex-direction: column; gap: 16px; flex: 1; justify-content: center; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--surface-2); padding: 4px; border-radius: 13px; }
.auth-tabs button { border: 0; background: transparent; padding: 10px; border-radius: 10px; cursor: pointer; font-weight: 650; color: var(--muted); }
.auth-tabs button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.auth h3 { font-size: 1.25rem; }
.auth-sub { color: var(--muted); font-size: .92rem; margin-top: -8px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--muted); }
.field input {
  padding: 12px 14px; border-radius: 13px; border: 1px solid var(--border); background: var(--input-bg); outline: none; transition: border-color .2s, box-shadow .2s;
}
.field input:focus { border-color: var(--accent-line); box-shadow: 0 0 0 4px var(--accent-soft); }
.form-error { color: var(--danger); font-size: .88rem; min-height: 1.2em; }
.hint { color: var(--muted); font-size: .8rem; }

.logged-out-note { color: var(--muted); font-size: .85rem; text-align: center; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 40px 0 56px; background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 28px; }
.footer h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { color: var(--text); text-decoration: none; opacity: .85; }
.footer a:hover { color: var(--accent); opacity: 1; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--muted); font-size: .85rem; }

/* ---------- Modal ---------- */
.modal {
  width: min(1040px, calc(100vw - 24px)); max-height: calc(100vh - 24px); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 0; background: var(--surface); color: var(--text); box-shadow: 0 40px 100px -30px rgba(0,0,0,.8); overflow: hidden;
}
.modal[open] { animation: pop .25s var(--ease); }
.modal::backdrop { background: rgba(3, 5, 10, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal-inner { display: flex; flex-direction: column; max-height: calc(100vh - 24px); overflow-y: auto; }
.modal-video { position: relative; isolation: isolate; aspect-ratio: 16 / 9; background: #000; flex: none; }
.modal-video iframe { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; border: 0; }
.modal-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 14px; }
.modal-body h3 { font-size: 1.3rem; }
.modal-desc { color: var(--muted); white-space: pre-line; max-height: 140px; overflow-y: auto; font-size: .95rem; }
.modal-close {
  position: absolute; right: 14px; top: 14px; z-index: 5; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.28); cursor: pointer; background: #0b0d12; color: #fff;
  display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.45); transform: translateZ(0);
}
.modal-close:hover { background: var(--accent); }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 140%); z-index: 200;
  background: var(--surface-3); color: var(--text); border: 1px solid var(--border); padding: 12px 18px; border-radius: 14px;
  box-shadow: var(--shadow); font-weight: 600; font-size: .92rem; transition: transform .35s var(--ease); max-width: calc(100vw - 32px);
}
.toast.show { transform: translate(-50%, 0); }
.toast.error { border-color: color-mix(in srgb, var(--danger) 60%, transparent); }

/* ---------- Animasyonlar ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 9px transparent; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Duyarlı ---------- */
@media (max-width: 1080px) {
  .chat-layout { grid-template-columns: minmax(0, 1fr); }
  .chat { position: relative; top: 0; height: 640px; min-height: 0; }
  .chat-side { order: 2; }
  .chat-main { order: 1; }
}
@media (max-width: 960px) {
  .featured { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .hero { padding: 40px 0 24px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .hero-lead { margin-inline: auto; }
  .hero-meta, .hero-actions { justify-content: center; }
  .stats { gap: 10px; }
  .stat { padding: 14px; }
  .stat-label { font-size: .75rem; }
  .avatar { width: 112px; height: 112px; }
  .brand small { display: none; }
  .actions .btn-primary span.long { display: none; }
  .count { margin-left: 0; width: 100%; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 36px 0; }
  .chat { height: 580px; }
  .emoji-grid { grid-template-columns: repeat(7, 1fr); }
}
@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr 1fr 1fr; }
  .stat-value { font-size: 1.25rem; }
  .btn { padding: 10px 14px; }
}

/* ==========================================================================
   Erikdalı Çek — 2026 arayüz katmanı
   ========================================================================== */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("assets/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("assets/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 70px;
}

html { overflow-x: clip; }
body { overflow-x: clip; font-family: var(--font); }
h1, h2, h3, .brand strong, .stat-value { font-family: var(--display); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic-solid { fill: currentColor; stroke: none; }
.ic { stroke-width: 1.9; }

.page-glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--text) 4%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--text) 4%, transparent) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 0%, transparent 72%);
  opacity: .52;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, .footer { position: relative; z-index: 1; }
.topbar { z-index: 100; }

/* ---------- Marka ve üst bar ---------- */
.topbar-inner { height: var(--header-h); }
.brand .logo {
  position: relative; overflow: hidden;
  box-shadow: 0 12px 30px -12px var(--accent), inset 0 0 0 1px rgba(255,255,255,.18);
}
.brand .logo::after {
  content: ""; position: absolute; inset: -40% -10% auto; height: 80%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  transform: rotate(-18deg);
}
.brand strong { font-weight: 800; }
.actions .btn .ic { width: 17px; height: 17px; }
.actions { gap: 9px; }
.scroll-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: transparent; pointer-events: none; overflow: hidden;
}
.scroll-progress span {
  display: block; width: 0; height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 16px var(--accent);
}
.icon-btn.tiny { width: 32px; height: 32px; border-radius: 9px; }
.icon-btn.tiny svg { width: 15px; height: 15px; }
.settings .popover { width: 300px; }
.popover .seg button { padding-inline: 4px; }
.popover .seg .ic { width: 15px; height: 15px; }
.swatch { outline-offset: 3px; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 34px; overflow: clip; }
.hero::before {
  content: ""; position: absolute; z-index: -1; width: 760px; height: 560px;
  left: 50%; top: -220px; transform: translateX(-50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 18%, transparent), transparent 72%);
  filter: blur(40px); pointer-events: none;
}
.hero-grid { grid-template-columns: auto minmax(0, 1fr); gap: 38px; }
.hero-copy { min-width: 0; }
.hero h1 { font-size: clamp(2.7rem, 6vw, 4.55rem); line-height: .98; letter-spacing: -.045em; }
.hero h1 span { filter: drop-shadow(0 10px 32px color-mix(in srgb, var(--accent) 30%, transparent)); }
.hero-lead { max-width: 64ch; font-size: clamp(1rem, 1.5vw, 1.12rem); line-height: 1.65; }
.hero-meta { gap: 9px; margin-top: 21px; }
.chip { backdrop-filter: blur(10px); }
.chip .ic { width: 15px; height: 15px; }
.flag-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: linear-gradient(135deg, #ff3b3b, #ff8a5b);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.avatar-wrap { position: relative; width: 158px; height: 158px; flex: none; }
.avatar {
  position: relative; z-index: 2; width: 158px; height: 158px;
  border: 4px solid var(--surface);
  box-shadow: 0 0 0 2px var(--accent-line), 0 36px 70px -28px color-mix(in srgb, var(--accent) 75%, transparent);
}
.avatar-orbit {
  position: absolute; z-index: 1; inset: -9px; border-radius: 50%;
  background: conic-gradient(from 30deg, transparent 0 32%, var(--accent) 48%, var(--accent-2) 57%, transparent 72% 100%);
  filter: blur(.4px); opacity: .9;
  animation: spin 18s linear infinite;
}
.avatar-orbit::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--bg);
}
.avatar-badge {
  position: absolute; z-index: 3; right: -4px; bottom: 8px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #ff2d2d, #c40000);
  border: 3px solid var(--bg); box-shadow: 0 10px 24px -10px rgba(255,20,20,.8);
}
.avatar-badge .ic { width: 17px; height: 17px; }

.latest-strip {
  display: flex; align-items: center; gap: 13px; margin-top: 32px; padding: 12px 16px;
  border: 1px solid var(--border); border-radius: 15px;
  background: linear-gradient(100deg, color-mix(in srgb, var(--surface) 94%, transparent), color-mix(in srgb, var(--surface-2) 80%, transparent));
  color: var(--text); text-decoration: none; overflow: hidden;
  box-shadow: 0 18px 40px -36px rgba(0,0,0,.8);
  transition: border-color .2s, transform .2s var(--ease), background .2s;
}
.latest-strip:hover { border-color: var(--accent-line); transform: translateY(-1px); }
.strip-label {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .09em;
}
.strip-title {
  min-width: 0; flex: 1; font-weight: 650; font-size: .93rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.strip-date { flex: none; color: var(--muted); font-size: .8rem; }
.strip-arrow { flex: none; color: var(--muted); transform: rotate(-90deg); }

.stats { margin-top: 28px; }
.stat {
  display: flex; align-items: center; gap: 14px;
  position: relative; overflow: hidden; min-width: 0;
}
.stat::after {
  content: ""; position: absolute; right: -36px; bottom: -56px; width: 130px; height: 130px;
  border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 13%, transparent), transparent);
  pointer-events: none;
}
.stat-icon {
  width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center;
  color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line);
}
.stat-icon .ic { width: 18px; height: 18px; }
.stat-label { font-size: .78rem; letter-spacing: .02em; }
.stat-value { font-size: clamp(1.55rem, 2.6vw, 2.05rem); line-height: 1.1; }

/* ---------- Bölüm başlıkları ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 10px;
  color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.section-head { margin-bottom: 24px; }
.section-head h2 { letter-spacing: -.035em; }
.section-head p { max-width: 58ch; }
.section-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: .8rem; }
.status-badge {
  display: inline-flex; align-items: center; gap: 7px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 5px 11px;
  font-size: .78rem; font-weight: 650;
}
.status-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 var(--success); animation: ping 1.8s infinite; }
.text-link {
  display: inline-flex; align-items: center; gap: 7px; color: var(--text); text-decoration: none;
  font-size: .9rem; font-weight: 650; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.text-link:hover { color: var(--accent); border-color: var(--accent-line); }
.text-link .ic { width: 15px; height: 15px; }
.muted { color: var(--muted); }
.pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px;
  color: var(--accent); background: var(--accent-soft); font-size: .71rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}

/* ---------- Vitrin ---------- */
.featured { gap: 24px; }
.lite { border-radius: var(--radius-lg); isolation: isolate; }
.lite img { background: var(--surface-3); }
.lite::after {
  background: linear-gradient(180deg, rgba(0,0,0,.02) 30%, rgba(0,0,0,.72) 100%);
}
.lite .badge { z-index: 3; display: inline-flex; align-items: center; gap: 6px; }
.lite-meta {
  position: absolute; z-index: 2; left: 17px; right: 17px; bottom: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  color: #fff; font-size: .8rem; font-weight: 650;
}
.lite-duration {
  padding: 4px 8px; border-radius: 7px; background: rgba(0,0,0,.7); backdrop-filter: blur(8px);
}
.lite-channel { text-shadow: 0 2px 10px rgba(0,0,0,.8); }
.featured-info {
  padding: 30px; gap: 15px; justify-content: center;
  background: linear-gradient(155deg, var(--surface), color-mix(in srgb, var(--surface-2) 88%, var(--accent) 4%));
}
.featured-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.featured-info h3 { font-size: clamp(1.3rem, 2vw, 1.62rem); line-height: 1.22; letter-spacing: -.025em; }
.featured-desc { line-height: 1.65; -webkit-line-clamp: 4; }
.featured-info .meta { margin-top: 2px; }
.featured-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 3px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  padding: 4px 9px; border-radius: 7px; color: var(--muted); background: var(--surface-2);
  border: 1px solid var(--border); font-size: .74rem; font-weight: 600;
}
.featured-info .btn { padding: 10px 15px; }

/* ---------- Video kartları ---------- */
.card { box-shadow: 0 16px 34px -34px rgba(0,0,0,.9); }
.card-media img { background: var(--surface-3); }
.card-body { padding: 15px 16px 17px; }
.card-title { font-size: 1rem; min-height: 2.65em; }
.card-foot { color: var(--muted); font-size: .78rem; }
.card-foot .meta { font-size: .78rem; gap: 10px; }
.card-foot .meta .ic { width: 14px; height: 14px; }
.card-new { position: absolute; inset: auto auto 10px 10px; z-index: 2; }
.card-new .badge { position: static; backdrop-filter: blur(8px); }
.empty { display: grid; gap: 8px; justify-items: center; }
.empty strong { color: var(--text); font-size: 1.05rem; }
.empty .btn { margin-top: 8px; }
.skeleton { min-height: 240px; }
.toolbar .select { min-width: 150px; }

/* ---------- Sohbet ---------- */
.section-chat { position: relative; }
.section-chat::before {
  content: ""; position: absolute; z-index: -1; inset: 8% 0 18%;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, color-mix(in srgb, var(--accent) 6%, transparent), transparent 75%);
  pointer-events: none;
}
.chat-head-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.online-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-size: .8rem; font-weight: 650;
}
.online-pill .ic { width: 14px; height: 14px; color: var(--success); }
.chat-side { display: grid; gap: 18px; align-content: start; }
.chat {
  height: min(760px, calc(100dvh - 110px)); min-height: 590px;
  background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 92%, var(--accent) 3%));
  border-color: color-mix(in srgb, var(--border) 82%, var(--accent) 18%);
}
.chat-head { min-height: 68px; padding: 14px 18px; }
.chat-title { gap: 11px; font-size: .98rem; font-weight: 800; }
.chat-title small { margin-top: 2px; }
.chat-mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none;
  color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line);
}
.chat-mark .ic { width: 18px; height: 18px; }
.chat-live {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  color: var(--muted); font-size: .72rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase;
}
.chat-user { margin-left: auto; }
.chat-user .who { display: flex; flex-direction: column; line-height: 1.15; }
.chat-user .who small { color: var(--muted); font-size: .68rem; font-weight: 550; }
.msg-avatar.small { width: 32px; height: 32px; font-size: .78rem; }
.messages { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--surface-2) 32%, transparent)); padding: 16px 15px 10px; }
.msg { padding: 7px 9px; gap: 10px; border-radius: 10px; }
.msg-body { min-width: 0; }
.msg-head { gap: 6px; }
.msg-name { font-size: .86rem; }
.msg-badge {
  padding: 1px 6px; border-radius: 5px; color: var(--muted); background: var(--surface-2);
  border: 1px solid var(--border); font-size: .62rem; font-weight: 750; text-transform: uppercase; letter-spacing: .04em;
}
.msg-time { font-size: .7rem; }
.msg-text { font-size: .93rem; line-height: 1.45; }
.msg.sys { font-size: .78rem; }
.msg.sys span { background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px; }
.chat-empty { display: grid; place-items: center; align-content: center; gap: 7px; min-height: 100%; color: var(--muted); text-align: center; padding: 30px 16px; }
.chat-empty .ic { width: 28px; height: 28px; color: var(--accent); }
.chat-empty strong { color: var(--text); font-size: .98rem; }
.chat-empty span { font-size: .82rem; max-width: 34ch; }
.skeleton-msg {
  height: 48px; margin: 2px 0; border-radius: 10px; border: 0;
  background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2));
  background-size: 200% 100%; animation: shimmer 1.4s infinite linear;
}
.skeleton-msg:nth-child(2) { width: 82%; }
.skeleton-msg:nth-child(3) { width: 64%; }

.join { padding: 16px 18px 14px; border-top: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 92%, transparent); }
.join-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.join-head strong { display: block; font-size: .95rem; }
.join-head span:not(.join-secure) { display: block; color: var(--muted); font-size: .78rem; margin-top: 2px; }
.join-secure { display: inline-flex; align-items: center; gap: 5px; color: var(--success); font-size: .7rem; font-weight: 750; flex: none; }
.join-secure .ic { width: 13px; height: 13px; }
.join .auth-tabs { margin-top: 12px; }
.join .auth-tabs button { font-size: .78rem; padding: 8px 6px; }
.join-form { display: grid; gap: 9px; margin-top: 11px; }
.join-form .field { gap: 5px; }
.join-form .field label { font-size: .76rem; }
.join-form .field input { padding: 10px 12px; font-size: .9rem; }
.join-form .btn { padding: 10px 14px; font-size: .88rem; }
.join-form .form-error { font-size: .78rem; }
.join-form .hint { line-height: 1.45; }
.input-row { display: flex; gap: 7px; align-items: stretch; }
.input-row input { flex: 1; min-width: 0; }
.mini-btn {
  flex: none; padding: 0 11px; border-radius: 11px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--muted); font-size: .76rem; font-weight: 650; cursor: pointer;
  transition: color .2s, border-color .2s;
}
.mini-btn:hover { color: var(--text); border-color: var(--accent-line); }
.account-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 3px; border-radius: 10px; background: var(--surface-2); }
.account-switch button {
  border: 0; background: transparent; border-radius: 8px; padding: 6px; cursor: pointer;
  color: var(--muted); font-size: .76rem; font-weight: 650;
}
.account-switch button[aria-pressed="true"] { background: var(--surface); color: var(--text); }
.form-error:empty { display: none; }
.composer { background: var(--surface); }
.composer-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 3px 8px; color: var(--muted); font-size: .72rem; }
.composer-top #composerLabel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.composer-hint { flex: none; }
.composer input { padding-right: 66px; }
.composer .counter { bottom: 27px; font-size: .68rem; }
.composer .send-btn { width: 46px; height: 46px; }
.composer .emoji-btn { width: 46px; height: 46px; }
.emoji-panel { left: 12px; right: 12px; }
.emoji-tabs { padding-bottom: 2px; }
.emoji-grid { grid-template-columns: repeat(9, 1fr); }
.emoji-grid button { font-size: 1.3rem; }
.status.ok .dot { background: var(--success); }

.side-card { position: relative; padding: 21px 22px; }
.side-card h3 { display: flex; align-items: center; gap: 8px; font-size: 1.02rem; margin-bottom: 12px; }
.side-card h3 .ic { width: 16px; height: 16px; color: var(--accent); }
.rules-card .rule { font-size: .86rem; line-height: 1.48; gap: 9px; }
.rules-card .rule .ic { width: 15px; height: 15px; margin-top: 2px; }
.online-card {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px;
  overflow: hidden; background: linear-gradient(145deg, var(--surface), color-mix(in srgb, var(--surface-2) 85%, var(--accent) 5%));
}
.online-card > div { position: relative; z-index: 1; }
.online-card h3 { display: block; font-size: 1.18rem; margin: 2px 0 3px; }
.online-card p { color: var(--muted); font-size: .82rem; }
.online-card .btn { position: relative; z-index: 1; }
.side-eyebrow { color: var(--accent); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.online-orbit { position: absolute; right: -50px; top: -55px; width: 170px; height: 170px; border-radius: 50%; border: 1px solid var(--accent-line); opacity: .55; z-index: 0; }
.online-orbit::before, .online-orbit::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid var(--accent-line); }
.online-orbit::before { inset: 22px; }
.online-orbit::after { inset: 46px; }
.online-orbit span { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.online-orbit span:nth-child(1) { left: 12px; top: 58px; }
.online-orbit span:nth-child(2) { right: 26px; top: 30px; }
.online-orbit span:nth-child(3) { right: 6px; bottom: 58px; }
.mini-list { gap: 6px; }
.mini-list li button { grid-template-columns: 88px 1fr; padding: 7px; }
.mini-list img { width: 88px; }
.mini-list span { font-size: .83rem; }
.mini-list small { font-size: .72rem; }
.mini-placeholder { height: 64px; border-radius: 11px; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
.feed-card { display: flex; gap: 14px; align-items: flex-start; }
.feed-icon { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.feed-icon .ic { width: 17px; height: 17px; }
.feed-card h3 { margin-bottom: 4px; }
.feed-card p { color: var(--muted); font-size: .82rem; margin-bottom: 7px; }

/* ---------- Hakkında ---------- */
.about-section { padding-top: 62px; }
.about-grid {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 34px; align-items: center;
  padding: clamp(24px, 4vw, 44px); border: 1px solid var(--border); border-radius: calc(var(--radius-lg) + 4px);
  background:
    radial-gradient(ellipse 80% 100% at 0% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 62%),
    linear-gradient(145deg, var(--surface), var(--surface-2));
  box-shadow: var(--shadow);
}
.about-copy h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -.04em; }
.about-copy > p { color: var(--muted); margin-top: 12px; max-width: 62ch; line-height: 1.7; }
.about-points { display: grid; gap: 14px; margin-top: 23px; }
.about-point { display: flex; gap: 12px; align-items: flex-start; }
.point-icon { width: 34px; height: 34px; flex: none; border-radius: 9px; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.point-icon .ic { width: 16px; height: 16px; }
.about-point strong { display: block; font-size: .9rem; }
.about-point span:not(.point-icon) { display: block; color: var(--muted); font-size: .82rem; line-height: 1.5; margin-top: 1px; }
.about-card { padding: 23px; text-align: center; background: var(--surface); }
.about-avatar { position: relative; width: 108px; height: 108px; margin: 0 auto 12px; }
.about-avatar img { width: 108px; height: 108px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--accent-line); }
.verified {
  position: absolute; right: 2px; bottom: 3px; width: 25px; height: 25px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: #fff; border: 3px solid var(--surface);
}
.verified .ic { width: 11px; height: 11px; stroke-width: 3; }
.about-card h3 { font-size: 1.18rem; }
.about-card > p { font-size: .82rem; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 17px 0 16px; padding: 13px 6px; border-radius: 13px; background: var(--surface-2); }
.about-stats strong { display: block; font-size: 1.15rem; letter-spacing: -.03em; }
.about-stats span { color: var(--muted); font-size: .68rem; }
.about-card .hint { margin-top: 10px; }
.center { text-align: center; }

/* ---------- Footer ---------- */
.footer { background: color-mix(in srgb, var(--surface) 86%, transparent); }
.footer-brand p { color: var(--muted); font-size: .86rem; max-width: 34ch; margin-top: 13px; line-height: 1.6; }
.footer-social { display: flex; gap: 8px; margin-top: 14px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
}
.footer-social a:hover { color: var(--accent); border-color: var(--accent-line); }
.footer-social .ic { width: 15px; height: 15px; }
.footer li a .ic { width: 13px; height: 13px; display: inline; margin-left: 3px; }
.footer-badge { display: inline-flex; align-items: center; gap: 7px; }

/* ---------- Modal & toast ---------- */
.modal-video #modalFrame { position: absolute; inset: 0; }
.modal-video #modalFrame iframe { width: 100%; height: 100%; border: 0; }
.modal-close { z-index: 6; }
.modal-body .meta { font-size: .82rem; }
.modal-desc { max-height: 180px; }
body.modal-open { overflow: hidden; }
.toast { display: flex; align-items: center; gap: 8px; }
.toast::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); flex: none; }
.toast.error::before { background: var(--danger); }
.noscript {
  position: fixed; inset: auto 16px 16px; z-index: 300; padding: 14px 18px; border-radius: 13px;
  background: var(--surface-3); border: 1px solid var(--border); color: var(--text); box-shadow: var(--shadow);
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1080px) {
  .chat { position: relative; top: 0; height: 710px; min-height: 0; }
  .chat-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feed-card { align-items: center; }
}
@media (max-width: 960px) {
  .hero-grid { gap: 28px; }
  .avatar-wrap, .avatar { width: 136px; height: 136px; }
  .featured-info { padding: 24px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-card { max-width: 420px; width: 100%; margin-inline: auto; }
}
@media (max-width: 820px) {
  .section-meta { align-items: flex-start; }
  .chat-side { grid-template-columns: 1fr; }
  .online-card { grid-template-columns: 1fr auto; }
  .emoji-grid { grid-template-columns: repeat(8, 1fr); }
}
@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .container { width: min(var(--container), 100% - 24px); }
  .hero { padding: 42px 0 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 22px; text-align: center; justify-items: center; }
  .hero-copy { width: 100%; }
  .hero-lead { margin-inline: auto; }
  .hero-meta, .hero-actions { justify-content: center; }
  .latest-strip { text-align: left; }
  .strip-date { display: none; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; }
  .stat-icon { width: 34px; height: 34px; border-radius: 10px; }
  .stat-value { font-size: 1.35rem; }
  .stat-label { font-size: .7rem; }
  .section { padding: 38px 0; }
  .section-head { margin-bottom: 18px; }
  .featured-info { padding: 22px; }
  .featured-desc { -webkit-line-clamp: 3; }
  .chat { height: min(680px, calc(100dvh - 86px)); min-height: 560px; }
  .chat-head { padding: 12px 14px; }
  .chat-title small { display: none; }
  .chat-live { display: none; }
  .join { padding: 14px; }
  .messages { padding: 13px 10px 8px; }
  .composer { padding: 10px; }
  .composer .counter { bottom: 25px; }
  .about-grid { padding: 24px 20px; }
  .footer-bottom { flex-direction: column; }
  .section-chat .section-head { align-items: flex-start; }
}
@media (max-width: 540px) {
  .topbar-inner { gap: 10px; }
  .actions { gap: 6px; }
  .actions > .icon-btn, .actions .settings > .icon-btn { width: 38px; height: 38px; }
  .actions .btn-sm { padding: 9px 12px; }
  .actions .btn .long { display: none; }
  .settings .popover { width: min(300px, calc(100vw - 24px)); right: -45px; }
  .hero h1 { font-size: clamp(2.45rem, 13vw, 3.5rem); }
  .hero-actions .btn { flex: 1 1 auto; }
  .latest-strip { gap: 9px; padding: 11px 12px; }
  .strip-label { font-size: .64rem; letter-spacing: .06em; }
  .strip-title { font-size: .84rem; }
  .grid { grid-template-columns: 1fr; }
  .toolbar .search { flex-basis: 100%; }
  .toolbar .select { flex: 1; min-width: 0; }
  .toolbar .count { width: auto; margin-left: auto; }
  .chat { height: min(650px, calc(100dvh - 78px)); min-height: 540px; }
  .chat-user .who { display: none; }
  .join-head { align-items: center; }
  .join-secure { display: none; }
  .auth-tabs button { font-size: .74rem; }
  .emoji-grid { grid-template-columns: repeat(7, 1fr); }
  .emoji-grid button { font-size: 1.2rem; }
  .about-stats strong { font-size: 1rem; }
  .modal-body { padding: 18px; }
  .modal { width: calc(100vw - 12px); }
}
@media (max-width: 390px) {
  .brand .logo { width: 38px; height: 38px; }
  .brand strong { font-size: .94rem; }
  .actions .btn-sm { padding-inline: 10px; }
  .stat { padding: 11px 9px; }
  .stat-value { font-size: 1.16rem; }
  .stat-label { font-size: .64rem; }
  .composer-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .avatar-orbit { animation: none; }
}


/* ---------- Uygulama durumları ---------- */
.icon-btn.spinning .ic { animation: spin .85s linear infinite; }
.counter.limit { color: var(--danger); }
.messages { min-height: 0; }
.chat-empty { overflow-y: auto; }
.chat-empty .btn { margin-top: 6px; }
.chat-empty .ic { width: 32px; height: 32px; }

@media (max-width: 720px) {
  .chat { height: min(720px, calc(100dvh - 96px)); min-height: 520px; }
  .emoji-grid { grid-template-columns: repeat(8, 1fr); max-height: 180px; }
}

@media (max-width: 540px) {
  .chat-empty { padding: 20px 10px; }
}

/* Emoji ızgarası taşmasız ölçeklenir (genişlikten bağımsız sütunlar). */
.emoji-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); overflow-x: hidden; }
.emoji-grid button { min-width: 0; }
@media (max-width: 720px) {
  .emoji-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* ==========================================================================
   Menü, kütüphane ve klavye katmanı
   ========================================================================== */


.menu-trigger {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.menu-trigger:hover { border-color: var(--accent-line); background: var(--surface-2); transform: translateY(-1px); }
.menu-trigger .ic { width: 19px; height: 19px; }

.menu-layer {
  position: fixed; inset: 0; z-index: 250; display: flex; justify-content: flex-end;
}
.menu-backdrop {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0;
  background: rgba(3, 5, 10, .68); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  cursor: pointer; animation: menuFade .24s ease both;
}
.menu-sheet {
  position: relative; z-index: 1; width: min(430px, 100%); height: 100%;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border-left: 1px solid var(--border);
  box-shadow: -30px 0 90px -32px rgba(0, 0, 0, .85);
  animation: menuSlide .3s var(--ease) both;
}
.menu-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 19px 20px; border-bottom: 1px solid var(--border); flex: none;
}
.menu-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.menu-brand .logo { width: 40px; height: 40px; border-radius: 12px; font-size: .95rem; }
.menu-brand > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.menu-brand strong { font-size: 1rem; letter-spacing: -.015em; }
.menu-brand small { color: var(--muted); font-size: .75rem; }
.menu-body {
  overflow-y: auto; overscroll-behavior: contain; padding: 18px 20px 24px;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.menu-body::-webkit-scrollbar { width: 6px; }
.menu-body::-webkit-scrollbar-track { background: transparent; }
.menu-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
.menu-kicker {
  display: block; margin: 18px 0 8px; color: var(--muted);
  font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.menu-kicker:first-child { margin-top: 0; }
.menu-nav { display: grid; gap: 3px; }
.menu-nav a {
  display: flex; align-items: center; gap: 11px; padding: 10px; border-radius: 12px;
  color: var(--text); text-decoration: none; border: 1px solid transparent;
  transition: background .18s, border-color .18s, transform .18s var(--ease);
}
.menu-nav a:hover { background: var(--surface-2); border-color: var(--border); transform: translateX(2px); }
.menu-nav-icon {
  width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface-3));
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
}
.menu-nav-icon .ic { width: 17px; height: 17px; }
.menu-nav a > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.menu-nav strong { font-size: .89rem; line-height: 1.25; }
.menu-nav small { color: var(--muted); font-size: .73rem; line-height: 1.35; }
.menu-chevron { width: 16px; height: 16px; margin-left: auto; opacity: .42; flex: none; }
.menu-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.menu-tile {
  display: flex; align-items: center; gap: 9px; min-width: 0; padding: 11px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2);
  color: var(--text); text-align: left; cursor: pointer; transition: border-color .18s, background .18s;
}
.menu-tile:hover { border-color: var(--accent-line); background: var(--surface-3); }
.menu-tile-icon {
  width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 9px;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.menu-tile-icon .ic { width: 16px; height: 16px; }
.menu-tile > span:nth-child(2) { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.menu-tile strong { font-size: .78rem; line-height: 1.25; }
.menu-tile small { color: var(--muted); font-size: .69rem; }
.menu-actions { display: grid; gap: 3px; }
.menu-row {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 9px;
  border: 1px solid transparent; border-radius: 10px; background: transparent;
  color: var(--text); font: inherit; font-size: .84rem; text-align: left; cursor: pointer;
  transition: background .18s, border-color .18s;
}
.menu-row:hover { background: var(--surface-2); border-color: var(--border); }
.menu-row .ic { width: 17px; height: 17px; color: var(--muted); flex: none; }
.menu-row kbd { margin-left: auto; }
.menu-links { display: grid; gap: 2px; }
.menu-links a {
  display: flex; align-items: center; gap: 9px; padding: 9px; border-radius: 9px;
  color: var(--muted); text-decoration: none; font-size: .82rem;
  transition: color .18s, background .18s;
}
.menu-links a:hover { color: var(--text); background: var(--surface-2); }
.menu-links a .ic { width: 16px; height: 16px; }
.menu-links a .ic:last-child { margin-left: auto; opacity: .5; }
.menu-foot {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 20px; border-top: 1px solid var(--border); flex: none;
}
.menu-foot small { color: var(--muted); font-size: .7rem; }
body.menu-open { overflow: hidden; }

kbd {
  display: inline-grid; place-items: center; min-width: 25px; height: 22px; padding: 0 6px;
  border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px;
  background: var(--surface-3); color: var(--muted); font-family: var(--font-mono, ui-monospace, monospace);
  font-size: .7rem; font-weight: 700; line-height: 1;
}

@keyframes menuFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes menuSlide { from { opacity: .65; transform: translateX(28px); } to { opacity: 1; transform: none; } }

/* Kütüphane filtresi */
.filter-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 42px; padding: 0 13px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); color: var(--text); font: inherit; font-size: .86rem; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: border-color .2s, background .2s, color .2s;
}
.filter-btn:hover { border-color: var(--accent-line); background: var(--surface-2); }
.filter-btn .ic { width: 16px; height: 16px; }
.filter-btn.is-active { color: var(--accent); border-color: var(--accent-line); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.filter-count {
  display: inline-grid; place-items: center; min-width: 21px; height: 21px; padding: 0 6px;
  border-radius: 999px; background: var(--surface-3); color: var(--muted); font-size: .7rem; font-weight: 800;
}
.filter-btn.is-active .filter-count { background: var(--accent); color: #fff; }

/* Kart kaydetme */
.card { position: relative; }
.card-save {
  position: absolute; top: 10px; right: 10px; z-index: 4; width: 36px; height: 36px;
  display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .24); background: rgba(7, 9, 14, .64); color: #fff;
  -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px);
  opacity: 0; transform: translateY(-3px); transition: opacity .2s, transform .2s, background .2s, border-color .2s;
}
.card:hover .card-save, .card-save:focus-visible, .card-save.is-saved { opacity: 1; transform: none; }
.card-save:hover { background: rgba(7, 9, 14, .9); border-color: rgba(255, 255, 255, .55); }
.card-save .ic { width: 17px; height: 17px; }
.card-save.is-saved { background: var(--accent); border-color: transparent; box-shadow: 0 6px 18px -6px var(--accent); }
.card-save.is-saved .ic { fill: currentColor; }
@media (hover: none) { .card-save { opacity: 1; transform: none; } }

/* Son izlenenler */
.recent-rail {
  margin: 0 0 20px; padding: 13px 14px 14px; border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 5%, var(--surface)), var(--surface));
}
.recent-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; min-width: 0; }
.recent-kicker {
  flex: none; color: var(--accent); font-size: .62rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
}
.recent-head strong { font-size: .86rem; letter-spacing: -.01em; }
.recent-clear {
  margin-left: auto; display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px;
  border: 0; border-radius: 7px; background: transparent; color: var(--muted);
  font: inherit; font-size: .72rem; cursor: pointer;
}
.recent-clear:hover { color: var(--text); background: var(--surface-2); }
.recent-clear .ic { width: 14px; height: 14px; }
.recent-list { display: flex; gap: 9px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding-bottom: 2px; }
.recent-list::-webkit-scrollbar { height: 5px; }
.recent-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
.recent-item {
  flex: 0 0 240px; min-width: 0; display: flex; align-items: center; gap: 9px; padding: 7px;
  border: 1px solid var(--border); border-radius: 11px; background: var(--surface);
  color: var(--text); text-align: left; cursor: pointer; scroll-snap-align: start;
  transition: border-color .18s, background .18s, transform .18s var(--ease);
}
.recent-item:hover { border-color: var(--accent-line); background: var(--surface-2); transform: translateY(-1px); }
.recent-item img { width: 76px; height: 43px; flex: none; border-radius: 7px; object-fit: cover; background: var(--surface-3); }
.recent-item > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.recent-item strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .77rem; line-height: 1.3; }
.recent-item small { color: var(--muted); font-size: .68rem; }

/* Kısayollar penceresi */
.shortcuts-modal { width: min(560px, calc(100vw - 24px)); }
.shortcuts-inner { padding: 22px 24px 20px; display: flex; flex-direction: column; gap: 14px; }
.shortcuts-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.shortcuts-head h3 { margin-top: 4px; font-size: 1.28rem; }
.shortcuts-head .icon-btn { flex: none; width: 38px; height: 38px; }
.shortcut-list { display: grid; border-top: 1px solid var(--border); }
.shortcut-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--border); color: var(--muted); font-size: .88rem; }
.shortcut-row:hover { color: var(--text); }
.shortcut-keys { display: flex; gap: 5px; flex: none; }
.shortcut-row kbd { color: var(--text); }

/* Başa dön */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 44px; height: 44px;
  display: grid; place-items: center; border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface); color: var(--text); box-shadow: var(--shadow); cursor: pointer;
  transition: transform .2s var(--ease), border-color .2s, background .2s;
}
.to-top:hover { border-color: var(--accent-line); background: var(--surface-2); transform: translateY(-2px); }
.to-top .ic { width: 19px; height: 19px; }

@media (max-width: 1100px) {
  .menu-trigger { width: 42px; padding: 0; }
  .menu-trigger span { display: none; }
}
@media (max-width: 860px) {
  .nav { display: none; }
}
@media (max-width: 720px) {
  .menu-sheet { width: min(400px, 100%); }
  .menu-head { padding: 16px; }
  .menu-body { padding: 16px 16px 20px; }
  .menu-foot { padding: 12px 16px; }
  .recent-item { flex-basis: 216px; }
  .to-top { right: 14px; bottom: 14px; width: 42px; height: 42px; }
}
@media (max-width: 540px) {
  .menu-trigger { width: 38px; height: 38px; border-radius: 11px; }
  .menu-trigger .ic { width: 18px; height: 18px; }
  .actions #refreshBtn { display: none; }
  .filter-label { display: none; }
  .filter-btn { padding: 0 10px; }
  .menu-foot small { display: none; }
  .menu-foot { justify-content: flex-start; }
  .recent-rail { margin-bottom: 16px; padding: 12px; }
  .recent-kicker { display: none; }
  .recent-item { flex-basis: 205px; }
  .to-top { right: 12px; bottom: 12px; }
  .shortcuts-inner { padding: 20px 18px 18px; }
}
@media (max-width: 380px) {
  .menu-tiles { grid-template-columns: 1fr; }
  .menu-brand small { display: none; }
  .recent-item { flex-basis: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  .menu-sheet, .menu-backdrop { animation: none; }
}

