/* Jammy web: ortak stiller */

@font-face {
	font-family: 'Figtree';
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url('/fonts/figtree-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Figtree';
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url('/fonts/figtree-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;
}

:root {
	color-scheme: dark;
	--bg: #09080c;
	--surface: #121016;
	--surface-2: #18151e;
	--surface-3: #1f1b27;
	--surface-4: #221e2a;
	--border: #241f2c;
	--border-2: #2a2533;
	--border-3: #3a3444;
	--text: #f4f2f7;
	--text-2: #d0c6dc;
	--muted: #a39cb0;
	--accent: #c58cff;
	--accent-2: #e042d8;
	--accent-soft: #e8a6ff;
	--success: #34d399;
	--danger: #fb7185;
	--gradient: linear-gradient(135deg, #8b5cf6, #d946ef);
	--gradient-text: linear-gradient(90deg, #a46bff, #e042d8);
	--radius: 14px;
	--gutter: clamp(16px, 5vw, 64px);
	--font: 'Figtree', system-ui, -apple-system, 'Segoe UI', 'Hiragino Sans', 'Yu Gothic UI', 'Malgun Gothic', 'Apple SD Gothic Neo', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
	--mono: ui-monospace, 'Cascadia Code', Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
	background: var(--bg);
	color: var(--text);
	font: 400 16px/1.5 var(--font);
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* --- İkonlar (assets/icons) --- */
.icon { width: 20px; height: 20px; flex-shrink: 0; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 28px; height: 28px; }
/* Tek renk ikon: SVG maske + currentColor (gradyan buton üstünde beyaz ikon için) */
.glyph {
	display: inline-block;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	background: currentColor;
	-webkit-mask: var(--glyph) center / contain no-repeat;
	mask: var(--glyph) center / contain no-repeat;
}

/* --- Butonlar --- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border: 0;
	border-radius: 999px;
	padding: 11px 22px;
	font-weight: 700;
	font-size: 14px;
	white-space: nowrap;
	transition: transform 0.15s, background 0.15s, border-color 0.15s, opacity 0.15s;
}
.btn:hover:not(:disabled) { transform: scale(1.03); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 10px 40px -10px rgba(217, 70, 239, 0.6); }
.btn-primary:hover { color: #fff; }
.btn-light { background: var(--text); color: var(--bg); }
.btn-light:hover { color: var(--bg); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border-3); }
.btn-ghost:hover { color: var(--text); border-color: var(--text); }
.btn-quiet { background: none; color: var(--muted); padding: 8px 4px; }
.btn-quiet:hover:not(:disabled) { color: var(--text); transform: none; }
.btn-danger:hover:not(:disabled) { color: var(--danger); }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* --- Site başlığı --- */
.site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	padding: 20px var(--gutter);
	flex-wrap: wrap;
	position: relative;
	z-index: 5;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; color: var(--text); }
.brand:hover { color: var(--text); }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; flex-wrap: wrap; }
.site-nav a { color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current='page'] { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 10px; }

.user-chip {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--surface);
	border: 0;
	border-radius: 999px;
	padding: 4px 14px 4px 4px;
	font-weight: 600;
	font-size: 14px;
	position: relative;
}
.user-chip img, .avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.menu {
	position: absolute;
	right: 0;
	top: calc(100% + 8px);
	background: var(--surface-3);
	border: 1px solid var(--border-2);
	border-radius: 10px;
	padding: 6px;
	min-width: 180px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
	z-index: 20;
}
.menu a, .menu button {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	background: none;
	border: 0;
	border-radius: 6px;
	padding: 9px 10px;
	color: var(--text);
	font-size: 14px;
	font-weight: 600;
	text-align: left;
}
.menu a:hover, .menu button:hover { background: var(--surface-4); color: var(--text); }

/* --- Sayfa düzeni --- */
.page { min-height: 100vh; display: flex; flex-direction: column; }
.page-glow {
	background:
		radial-gradient(1200px 600px at 75% -10%, rgba(157, 92, 255, 0.22), transparent 60%),
		radial-gradient(900px 500px at 10% 20%, rgba(217, 70, 239, 0.1), transparent 60%),
		var(--bg);
}
.page-fade { background: linear-gradient(180deg, #1d1428 0%, var(--bg) 420px); }
.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 1000px; }
.section { padding-bottom: 72px; }
.section-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.section-title { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.03em; }
.section-text { color: var(--muted); font-size: 16px; max-width: 620px; }
.eyebrow { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: 0.06em; text-transform: uppercase; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.badge {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border-radius: 999px;
	background: rgba(157, 92, 255, 0.14);
	border: 1px solid rgba(157, 92, 255, 0.35);
	color: #d6bcff;
	font-size: 13px;
	font-weight: 600;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); flex-shrink: 0; }
.dot-live { background: var(--success); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }

/* --- Ana sayfa --- */
.hero {
	flex: 1;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
	gap: 56px;
	align-items: center;
	padding-top: clamp(32px, 6vw, 88px);
	padding-bottom: clamp(32px, 6vw, 88px);
}
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.hero h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; text-wrap: balance; }
.gradient-text { background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 520px; text-wrap: pretty; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

.preview { padding: 20px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 40px 100px -30px rgba(139, 92, 246, 0.45); }
.preview-head {
	display: flex;
	gap: 18px;
	align-items: flex-end;
	padding: 18px;
	border-radius: 14px;
	background: linear-gradient(180deg, #5b2a8c, #1a1522);
}
.preview-head .art { width: 120px; height: 120px; border-radius: 10px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5); }
.preview-head .label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #e8dcff; }
.preview-head .title { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.preview-head .sub { color: var(--text-2); font-size: 14px; }

.art {
	background: var(--gradient) center / cover no-repeat;
	flex-shrink: 0;
	display: grid;
	place-items: center;
	overflow: hidden;
}
.art img { width: 100%; height: 100%; object-fit: cover; }
.art .glyph { color: rgba(255, 255, 255, 0.85); width: 40%; height: 40%; }
.art-1 { background-image: linear-gradient(135deg, #a46bff, #e042d8); }
.art-2 { background-image: linear-gradient(135deg, #e042d8, #ff7ab6); }
.art-3 { background-image: linear-gradient(135deg, #5b6cff, #a46bff); }
.art-4 { background-image: linear-gradient(135deg, #7c3aed, #2b1640); }
.art-5 { background-image: linear-gradient(135deg, #c026d3, #4c1d95); }
.art-6 { background-image: linear-gradient(135deg, #9d5cff, #2a1a3f); }

.track-row {
	display: grid;
	grid-template-columns: 24px 40px minmax(0, 1fr) auto;
	gap: 14px;
	align-items: center;
	padding: 8px 10px;
	border-radius: 8px;
}
.track-row:hover { background: var(--surface-3); }
.track-row .num { color: var(--muted); font-size: 14px; text-align: right; }
.track-row .art { width: 40px; height: 40px; border-radius: 6px; }
.track-meta { display: flex; flex-direction: column; min-width: 0; }
.track-title { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-sub { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-row .end { color: var(--muted); font-size: 13px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.feature { padding: 26px; display: flex; flex-direction: column; gap: 10px; transition: background 0.2s; }
.feature:hover { background: var(--surface-2); }
.feature .icon-lg { margin-bottom: 6px; }
.feature h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.feature p { color: var(--muted); font-size: 15px; line-height: 1.55; }

.stats-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.stat { background: var(--surface-2); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.stat-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.stat-value { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }

.cta-band {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	padding: clamp(24px, 4vw, 40px);
	border-radius: 20px;
	background: linear-gradient(135deg, #4c1d95, #701a75);
}
.cta-band h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -0.02em; }
.cta-band p { color: #f0e6ff; margin-top: 6px; }

.site-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	padding: 28px var(--gutter);
	border-top: 1px solid var(--border);
	color: var(--muted);
	font-size: 14px;
}
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* --- Komutlar sayfası --- */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 24px; }
.search {
	flex: 1 1 260px;
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--surface);
	border: 1px solid var(--border-2);
	border-radius: 999px;
	padding: 0 18px;
}
.search input { flex: 1; background: none; border: 0; outline: 0; padding: 12px 0; font-size: 15px; min-width: 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
	background: var(--surface);
	border: 1px solid var(--border-2);
	border-radius: 999px;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 600;
	color: var(--muted);
}
.chip:hover { color: var(--text); }
.chip[aria-pressed='true'] { background: var(--surface-3); color: var(--text); border-color: var(--accent); }

.command-group { margin-bottom: 36px; }
.command-group-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.command-group-head h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.command-group-head p { color: var(--muted); font-size: 14px; }
.command-list { display: flex; flex-direction: column; }
.command {
	display: grid;
	grid-template-columns: minmax(150px, 220px) 1fr;
	gap: 6px 20px;
	padding: 14px 12px;
	border-radius: 8px;
	align-items: baseline;
}
.command:hover { background: var(--surface-3); }
.command code { font: 700 14px var(--mono); color: #d6bcff; }
.command .desc { color: var(--muted); font-size: 15px; }
.command .aliases { grid-column: 2; display: flex; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.command .aliases code { font-size: 12px; font-weight: 600; color: var(--text-2); background: var(--surface-3); padding: 2px 8px; border-radius: 999px; }
.command.sub code { padding-left: 16px; }
.command.sub code { color: var(--accent-soft); font-weight: 600; }

/* --- Sunucu seçimi --- */
.server-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.server-card {
	background: var(--surface);
	border-radius: var(--radius);
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	color: var(--text);
	transition: background 0.2s;
}
.server-card:hover { background: var(--surface-3); color: var(--text); }
.server-card .server-icon { aspect-ratio: 1; border-radius: 10px; font-size: 44px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); }
.server-card .name { font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.server-card .sub { color: var(--muted); font-size: 13px; }
.server-card .pill { align-self: flex-start; padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--gradient); color: #fff; }
.server-card .pill.muted { background: var(--border-2); }
.server-card.no-bot .server-icon { filter: grayscale(0.6) brightness(0.7); }
.server-icon {
	display: grid;
	place-items: center;
	font-weight: 800;
	color: rgba(255, 255, 255, 0.92);
	background: linear-gradient(135deg, #7c3aed, #c026d3);
	overflow: hidden;
	flex-shrink: 0;
}
.server-icon img { width: 100%; height: 100%; object-fit: cover; }

.empty { padding: 56px 20px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty .icon-lg { width: 44px; height: 44px; opacity: 0.9; }
.empty h2 { color: var(--text); font-size: 20px; }

.skeleton { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-3) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* --- Panel --- */
.app {
	height: 100vh;
	height: 100dvh;
	display: grid;
	grid-template-rows: minmax(0, 1fr) auto;
	gap: 8px;
	padding: 8px;
	background: #000;
}
.app-body { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 8px; min-height: 0; }
.sidebar { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.panel-box { background: var(--surface); border-radius: 10px; }
.sidebar-nav { padding: 18px 16px; display: flex; flex-direction: column; gap: 4px; }
.sidebar-nav .brand { font-size: 19px; padding: 0 8px 14px; }
.sidebar-nav .brand img { width: 30px; height: 30px; }
.tab {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--muted);
	font-weight: 700;
	font-size: 15px;
	text-align: left;
	position: relative;
}
.tab .icon { opacity: 0.7; }
.tab:hover { color: var(--text); }
.tab[aria-selected='true'], .tab[aria-current='page'] { background: var(--surface-3); color: var(--text); }
.tab[aria-selected='true'] .icon, .tab[aria-current='page'] .icon { opacity: 1; }
.tab[aria-selected='true']::before, .tab[aria-current='page']::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 2px; background: var(--gradient); }
.side-servers { padding: 16px; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; overflow: auto; }
.side-servers-head { display: flex; justify-content: space-between; align-items: center; padding: 0 6px 6px; font-size: 14px; }
.side-servers-head span { font-weight: 700; color: var(--muted); }
.side-servers-head a { color: var(--muted); font-size: 13px; }
.side-servers-head a:hover { color: var(--text); }
.side-server { display: flex; align-items: center; gap: 12px; padding: 6px; border-radius: 8px; color: var(--text); }
.side-server:hover { background: var(--surface-3); color: var(--text); }
.side-server[aria-current='page'] { background: var(--surface-3); }
.side-server[aria-current='page'] .name { color: var(--accent-soft); }
.side-server .server-icon { width: 44px; height: 44px; border-radius: 8px; font-size: 16px; }
.side-server .name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-server .sub { color: var(--muted); font-size: 12px; }

.main { overflow: auto; min-height: 0; position: relative; }
.topbar {
	position: sticky;
	top: 0;
	z-index: 4;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 14px 24px;
	background: rgba(18, 16, 22, 0.85);
	backdrop-filter: blur(12px);
	border-radius: 10px 10px 0 0;
}
.topbar-server { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar-server .server-icon { width: 30px; height: 30px; border-radius: 7px; font-size: 12px; }
.topbar-server .name { font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 999px;
	white-space: nowrap;
	background: var(--surface-3);
	color: var(--muted);
}
.status-pill.on { background: rgba(52, 211, 153, 0.12); color: #b9f5cf; }
.status-pill .dot { width: 6px; height: 6px; background: var(--muted); }
.status-pill.on .dot { background: var(--success); }
.topbar-actions { display: flex; align-items: center; gap: 8px; }

.view { padding: 20px 28px 48px; display: flex; flex-direction: column; gap: 32px; }
.view-head { display: flex; flex-direction: column; gap: 6px; }
.view-head h1 { font-size: clamp(28px, 3.4vw, 36px); font-weight: 800; letter-spacing: -0.03em; }
.view-head span { color: var(--muted); font-size: 15px; }
.subhead { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }

.now-banner {
	display: flex;
	align-items: center;
	gap: 18px;
	border-radius: 12px;
	padding: 14px;
	background: linear-gradient(90deg, #5b2a8c, var(--surface-2));
	color: var(--text);
	border: 0;
	text-align: left;
	width: 100%;
	transition: filter 0.2s;
}
.now-banner:hover { filter: brightness(1.1); }
.now-banner .art { width: 72px; height: 72px; border-radius: 8px; }
.now-banner .label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #e8dcff; }
.now-banner .title { font-size: 20px; font-weight: 800; }
.now-banner .sub { color: var(--text-2); font-size: 14px; }
.now-banner .go { font-weight: 700; font-size: 14px; padding-right: 10px; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.idle-banner { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 12px; background: var(--surface-2); color: var(--muted); }
.idle-banner strong { color: var(--text); display: block; }

.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.tile { background: var(--surface-2); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 10px; color: var(--text); }
a.tile:hover { background: var(--surface-4); color: var(--text); }
.tile .art { aspect-ratio: 1; border-radius: 6px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); }
.tile .track-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.now-hero { padding: 86px 28px 32px; margin-top: -58px; background: linear-gradient(180deg, #5b2a8c 0%, var(--surface) 100%); }
.now-hero-inner { display: flex; gap: 26px; align-items: flex-end; flex-wrap: wrap; }
.now-hero .art { width: clamp(140px, 18vw, 220px); aspect-ratio: 1; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55); }
.now-hero h1 { font-size: clamp(30px, 4.6vw, 64px); line-height: 1.02; font-weight: 800; letter-spacing: -0.04em; text-wrap: balance; overflow-wrap: anywhere; }
.now-hero .meta { font-size: 15px; color: #e8e2f0; }
.now-hero .label { font-size: 13px; font-weight: 700; }
.now-actions { display: flex; align-items: center; gap: 16px 20px; flex-wrap: wrap; }
.round-play {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: 0;
	background: var(--gradient);
	color: #fff;
	display: grid;
	place-items: center;
	box-shadow: 0 8px 24px rgba(217, 70, 239, 0.35);
	transition: transform 0.15s;
}
.round-play:hover:not(:disabled) { transform: scale(1.05); }
.round-play:disabled { opacity: 0.45; cursor: not-allowed; }
.round-play .glyph { width: 22px; height: 22px; }
.toggle-btn[aria-pressed='true'] { color: var(--accent-2); }

.add-form { display: flex; gap: 10px; flex-wrap: wrap; }
.add-form .search { flex: 1 1 280px; }

.queue-table { display: flex; flex-direction: column; }
.queue-head, .queue-row { display: grid; grid-template-columns: 32px minmax(0, 2fr) minmax(0, 1fr) 60px 36px; gap: 16px; align-items: center; padding: 8px 14px; }
.queue-head { color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--border-2); margin-bottom: 8px; }
.queue-head span:first-child, .queue-row .num { text-align: right; }
.queue-head span:nth-child(4), .queue-row .dur { text-align: right; }
.queue-row { border-radius: 6px; }
.queue-row:hover { background: var(--surface-4); }
.queue-row.current { background: rgba(157, 92, 255, 0.12); }
.queue-row.current .track-title { color: var(--accent-soft); }
.queue-row .num { color: var(--muted); font-size: 15px; }
.queue-row.current .num { color: var(--accent-2); }
.queue-row .who, .queue-row .dur { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-row .art { width: 42px; height: 42px; border-radius: 4px; }
.queue-track { display: flex; align-items: center; gap: 12px; min-width: 0; background: none; border: 0; padding: 0; text-align: left; color: var(--text); }
.queue-track:disabled { cursor: default; }
.row-action { background: none; border: 0; border-radius: 6px; padding: 6px; color: var(--muted); opacity: 0; display: grid; place-items: center; }
.queue-row:hover .row-action, .row-action:focus-visible { opacity: 1; }
.row-action:hover { color: var(--danger); background: var(--surface-3); }
.queue-more { color: var(--muted); font-size: 14px; padding: 14px; text-align: center; }

.notice { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 10px; background: rgba(224, 66, 216, 0.1); border: 1px solid rgba(224, 66, 216, 0.3); color: #f5d0fe; font-size: 14px; }

.settings-list { display: flex; flex-direction: column; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.setting-row .text { display: flex; gap: 14px; align-items: flex-start; }
.setting-row .label { font-weight: 700; font-size: 16px; display: block; }
.setting-row .desc { color: var(--muted); font-size: 14px; }
.switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; border: 0; border-radius: 999px; background: var(--border-3); padding: 0; transition: background 0.2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left 0.2s; }
.switch[aria-checked='true'] { background: linear-gradient(90deg, #8b5cf6, #d946ef); }
.switch[aria-checked='true']::after { left: 23px; }
.switch:disabled { opacity: 0.5; }
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; background: var(--surface-2); border-radius: 10px; padding: 16px; }
.field-label { font-weight: 700; font-size: 14px; }
.field-hint { color: var(--muted); font-size: 13px; }

.effect-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.effect {
	border-radius: 12px;
	padding: 18px;
	height: 120px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: flex-start;
	background: var(--surface-2);
	border: 1px solid var(--border-2);
	color: var(--text);
	text-align: left;
	transition: transform 0.2s, background 0.2s;
}
.effect:hover:not(:disabled) { transform: translateY(-2px); }
.effect:disabled { opacity: 0.5; cursor: not-allowed; }
.effect .state { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }
.effect .name { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.effect[aria-pressed='true'] { border-color: transparent; }
.effect[aria-pressed='true'] .state { color: #fff; }

/* Alt oynatıcı çubuğu */
.player-bar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: center; padding: 6px 10px; min-height: 76px; }
.player-track { display: flex; align-items: center; gap: 12px; min-width: 0; }
.player-track .art { width: 54px; height: 54px; border-radius: 6px; }
.player-center { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.player-controls { display: flex; align-items: center; gap: 18px; }
.ctrl { background: none; border: 0; padding: 4px; color: var(--muted); display: grid; place-items: center; border-radius: 6px; }
.ctrl:hover:not(:disabled) { color: var(--text); }
.ctrl:disabled { opacity: 0.35; cursor: not-allowed; }
.ctrl[aria-pressed='true'] { color: var(--accent-2); }
.ctrl .glyph { width: 18px; height: 18px; }
.ctrl-main { width: 34px; height: 34px; border-radius: 50%; background: var(--text); color: var(--bg); transition: transform 0.15s; }
.ctrl-main:hover:not(:disabled) { color: var(--bg); transform: scale(1.06); }
.ctrl-main .glyph { width: 14px; height: 14px; }
.progress { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 560px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.progress span { min-width: 36px; }
.progress span:first-child { text-align: right; }
.bar { flex: 1; height: 4px; border-radius: 2px; background: var(--border-3); position: relative; cursor: pointer; padding: 0; border: 0; }
.bar::before { content: ''; position: absolute; inset: -6px 0; }
.bar:disabled { cursor: default; }
.bar-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: linear-gradient(90deg, #8b5cf6, #d946ef); width: 0; }
.player-side { display: flex; align-items: center; justify-content: flex-end; gap: 10px; color: var(--muted); }
.player-side input { width: 110px; }
.player-side .vol { font-size: 12px; min-width: 34px; font-variant-numeric: tabular-nums; }

/* Bildirim */
.toasts { position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 50; width: min(92vw, 420px); pointer-events: none; }
.toast { background: var(--surface-3); border: 1px solid var(--border-2); border-radius: 10px; padding: 12px 16px; font-size: 14px; font-weight: 600; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); animation: toast-in 0.2s ease-out; display: flex; gap: 10px; align-items: center; }
.toast.error { border-color: rgba(251, 113, 133, 0.45); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* --- Mobil --- */

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Metinler yüklenene kadar boş iskelet görünmesin */
body[data-loading] main, body[data-loading] .app { visibility: hidden; }
.glyph.icon-sm { width: 16px; height: 16px; }

/* --- Ortak küçük parçalar --- */
.muted { color: var(--muted); }
.icon-btn { background: none; border: 0; border-radius: 8px; padding: 8px; color: var(--muted); display: grid; place-items: center; }
.icon-btn:hover:not(:disabled) { color: var(--text); background: var(--surface-3); }
.icon-btn.danger:hover:not(:disabled) { color: var(--danger); }
.icon-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.btn-danger-solid { background: rgba(251, 113, 133, 0.14); color: #fecdd3; border: 1px solid rgba(251, 113, 133, 0.4); }
.btn-danger-solid:hover { background: rgba(251, 113, 133, 0.24); color: #fff; }
.xp-bar { height: 10px; border-radius: 999px; background: var(--border-3); overflow: hidden; }
.xp-bar.small { height: 6px; }
.xp-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8b5cf6, #d946ef); }
.section-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.role-pill { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(157, 92, 255, 0.14); color: #d6bcff; white-space: nowrap; cursor: help; }

/* --- Yasal metinler --- */
.prose { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; line-height: 1.7; }
.prose h1 { font-size: clamp(32px, 4vw, 44px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.prose h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; margin: 22px 0 6px; scroll-margin-top: 20px; }
.prose p, .prose li { color: var(--text-2); font-size: 16px; }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.prose .lead { font-size: 18px; color: var(--text); }
.prose section { display: flex; flex-direction: column; gap: 10px; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; }
.toc a { color: var(--text-2); }
.toc a:hover { color: var(--accent); }

/* --- Profilim --- */
#profile { display: flex; flex-direction: column; gap: 32px; }
.profile-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; padding: clamp(20px, 3vw, 32px); background: linear-gradient(135deg, rgba(91, 42, 140, 0.55), var(--surface) 70%); }
.profile-hero h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.03em; }
.profile-hero .grow { gap: 10px; }
.profile-avatar { width: clamp(84px, 12vw, 120px); height: clamp(84px, 12vw, 120px); border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px #1d1428, 0 0 0 7px #a855f7; }
.profile-stats { grid-column: 1 / -1; }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.badge-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; align-items: center; padding: 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.badge-card .icon-lg { grid-row: span 2; filter: grayscale(1) opacity(0.35); }
.badge-card.earned { border-color: rgba(197, 140, 255, 0.45); background: linear-gradient(135deg, rgba(139, 92, 246, 0.16), var(--surface)); }
.badge-card.earned .icon-lg { filter: none; }
.badge-card .grow { gap: 2px; }
.badge-card .muted { font-size: 13px; }
.earned-mark { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--accent-soft); }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px; }
.two-col .subhead { margin-bottom: 10px; }
.library-toolbar .target { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-weight: 600; }
.library-list { display: flex; flex-direction: column; }
.library-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 8px 10px; border-radius: 8px; }
.library-row:hover { background: var(--surface-3); }
.library-row .art { width: 44px; height: 44px; border-radius: 6px; }
.library-row a.track-title { color: var(--text); }
.library-row a.track-title:hover { color: var(--accent-soft); }
.library-row .end { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.row-buttons { display: flex; align-items: center; gap: 4px; }
.playlist { padding: 10px; margin-bottom: 10px; }
.playlist-head { display: flex; align-items: center; gap: 10px; }
.playlist-toggle { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; background: none; border: 0; padding: 6px; border-radius: 8px; color: var(--text); text-align: left; }
.playlist-toggle:hover { background: var(--surface-3); }
.playlist-toggle .art { width: 48px; height: 48px; border-radius: 8px; }
.playlist .library-list { margin-top: 8px; border-top: 1px solid var(--border); padding-top: 8px; }
.data-card { padding: 24px; display: flex; flex-direction: column; gap: 12px; }

/* --- Panel: kuyruk sürükleme --- */
.queue-row .num { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.drag-handle { background: none; border: 0; padding: 4px 2px; color: var(--muted); cursor: grab; touch-action: none; display: grid; place-items: center; border-radius: 4px; opacity: 0; }
.queue-row:hover .drag-handle, .drag-handle:focus-visible { opacity: 1; }
.queue-row:hover .num .index { display: none; }
.drag-handle:active { cursor: grabbing; }
.queue-row { transition: transform 0.15s; }
.queue-row.dragging { transition: none; position: relative; z-index: 3; background: var(--surface-3); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5); }
.queue-head, .queue-row { grid-template-columns: 44px minmax(0, 2fr) minmax(0, 1fr) 60px 36px; }

/* --- Panel: sözler --- */
.lyrics-view { min-height: 100%; position: relative; isolation: isolate; overflow: clip; }
/* Şarkı kapağından bulanık arka plan (Spotify gibi) */
.lyrics-backdrop {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--surface) center / cover no-repeat;
	filter: blur(70px) saturate(1.4) brightness(0.45);
	opacity: 0.55;
	pointer-events: none;
}
.lyrics-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.lyrics-lines { display: flex; flex-direction: column; gap: 10px; padding: 8px 0 30vh; }

.lyric-line {
	background: none;
	border: 0;
	padding: 4px 0;
	text-align: left;
	font-size: clamp(24px, 2.8vw, 36px);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.25;
	color: rgba(244, 242, 247, 0.3);
	transition: transform 0.3s, opacity 0.3s;
	transform-origin: left center;
	/* Aktif satır %3 büyür: büyüyünce de kapsayıcıya sığsın */
	max-width: calc(100% / 1.03);
}
.lyric-line:disabled { cursor: default; }
.lyric-line .w { color: inherit; position: relative; }
.lyric-line:hover:not(:disabled) { color: rgba(244, 242, 247, 0.6); }
.lyric-line.past { color: rgba(244, 242, 247, 0.55); }
.lyric-line.active { color: rgba(244, 242, 247, 0.45); transform: scale(1.03); filter: drop-shadow(0 0 22px rgba(217, 70, 239, 0.35)); }
.lyric-line.active .w.sung { color: #fff; }
/* Söylenen kelime soldan sağa dolar: üstteki renkli kopya dolum oranı kadar açılır */
.lyric-line.active .w.singing::after {
	content: attr(data-text);
	position: absolute;
	left: 0;
	top: 0;
	color: #fff;
	clip-path: inset(0 calc(100% - var(--fill, 0%)) 0 0);
	pointer-events: none;
}
/* Karaoke açıkken dolum rengi mor-fuşya */
.sing-along .lyric-line.active .w.sung { color: #f0abfc; }
.sing-along .lyric-line.active .w.singing::after { color: #f0abfc; }
.sing-along .lyric-line { font-size: clamp(28px, 3.4vw, 44px); }

/* Müzik arası: noktalar sırayla yanar */
.lyric-gap { display: flex; gap: 12px; padding: 10px 2px; height: 0; overflow: hidden; opacity: 0; transition: height 0.3s, opacity 0.3s; }
.lyric-gap.active:not(.over) { height: 44px; opacity: 1; }
.lyric-gap span { width: 14px; height: 14px; border-radius: 50%; background: rgba(244, 242, 247, 0.3); transition: background 0.3s, transform 0.3s; }
.lyric-gap span.on { background: #fff; transform: scale(1.2); }
.sing-along .lyric-gap span.on { background: #f0abfc; }

.lyric-skeleton { height: 34px; width: 70%; }
.lyric-skeleton:nth-child(even) { width: 48%; }
.lyrics-plain { white-space: pre-wrap; font-size: 18px; line-height: 1.8; color: var(--text-2); }
.lyrics-source { font-size: 13px; }

/* Karaoke kutusu */
.karaoke-card { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding: 16px 18px; border-radius: 14px; background: rgba(18, 16, 22, 0.6); border: 1px solid var(--border-2); backdrop-filter: blur(10px); }
.karaoke-card:empty { display: none; }
.karaoke-card.on { border-color: rgba(240, 171, 252, 0.45); }
.karaoke-toggle { display: flex; align-items: center; gap: 16px; flex: 1 1 320px; }
.karaoke-toggle .grow { gap: 2px; }
.karaoke-toggle .muted { font-size: 13px; }
.vocals { display: flex; align-items: center; gap: 12px; flex: 1 1 260px; }
.vocals-label { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.vocals input { flex: 1; }
.vocals input:disabled { opacity: 0.4; }
.vocals-value { min-width: 40px; text-align: right; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.vocals-hint { flex-basis: 100%; font-size: 12px; margin: 0; }
#karaoke-controls:empty { display: none; }

/* Tam ekran: birlikte söyle */
.lyrics-view:fullscreen { overflow: auto; padding: 6vh 8vw; background: var(--bg); }
.lyrics-view:fullscreen .lyrics-backdrop { opacity: 1; }
.lyrics-view:fullscreen .lyric-line { font-size: clamp(32px, 4.6vw, 64px); text-align: center; align-self: center; transform-origin: center; }
.lyrics-view:fullscreen .lyrics-lines { align-items: center; }
.lyrics-view:fullscreen .lyric-gap { justify-content: center; }
.lyrics-view:fullscreen .view-head { text-align: center; align-items: center; width: 100%; }
.lyrics-view:fullscreen #karaoke-controls { max-width: 760px; margin: 0 auto; width: 100%; }

/* --- Panel: istatistikler --- */
.stats-card { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.chart { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 4px; height: 180px; align-items: end; }
.chart-col { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.chart-bar { width: 100%; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, #d946ef, #8b5cf6); min-height: 2px; }
.chart-bar:hover { filter: brightness(1.25); }
.chart-label { font-size: 11px; color: var(--muted); height: 14px; font-variant-numeric: tabular-nums; }
.artist-row { display: flex; flex-direction: column; gap: 6px; }
.artist-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.rank-row { display: grid; grid-template-columns: 28px 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 6px 4px; }
.rank-row .avatar { width: 32px; height: 32px; background: var(--surface-3); }
.rank-row .num { color: var(--muted); text-align: center; font-weight: 700; }
.rank-row .end { color: var(--muted); font-size: 13px; white-space: nowrap; }

/* --- Sunucuda (EJS) üretilen parçalar --- */
.user-menu { position: relative; }
/* Tek renk ikonlar: CSP satır içi stile izin vermediği için her ikon bir sınıf */
.glyph-music { --glyph: url('/icons/music.svg'); }
.glyph-play { --glyph: url('/icons/play.svg'); }
.glyph-mic { --glyph: url('/icons/mic.svg'); }
.glyph-quiz { --glyph: url('/icons/quiz.svg'); }
.tab-list { display: flex; flex-direction: column; gap: 4px; }
.side-server-text { min-width: 0; }
.profile-skeleton { height: 260px; }
.command-item[hidden], .command-group[hidden] { display: none; }

/* --- Panel kabuğu: hesap sayfaları (sunucular, profil, çalma listeleri) --- */
.app-no-player { grid-template-rows: minmax(0, 1fr); }
a.tab { color: var(--muted); }
a.tab:hover { color: var(--text); }
.nav-heading { margin: 14px 10px 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-heading:empty { display: none; }
.main .card { background: var(--surface-2); }
.main .server-card { background: var(--surface-2); }
.main .server-card:hover { background: var(--surface-4); }
.player-side .ctrl { margin-right: 4px; }
.playlist-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.playlist-tile { display: flex; align-items: center; gap: 14px; padding: 12px; color: var(--text); }
.playlist-tile:hover { background: var(--surface-4); color: var(--text); }
.playlist-tile .art { width: 48px; height: 48px; border-radius: 8px; }

/* --- Çalma listelerim --- */
.pl-layout { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 24px; align-items: start; }
.pl-list { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 70px; }
.pl-list .add-form .search { flex: 1 1 180px; }
.pl-items { display: flex; flex-direction: column; gap: 4px; }
.pl-item { display: flex; align-items: center; gap: 12px; padding: 8px; border: 0; border-radius: 10px; background: none; color: var(--text); text-align: left; }
.pl-item:hover { background: var(--surface-3); }
.pl-item[aria-current='true'] { background: var(--surface-3); box-shadow: inset 3px 0 0 #c04ce8; }
.pl-item .art { width: 44px; height: 44px; border-radius: 8px; }
.pl-editor { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.pl-head { display: flex; gap: 20px; align-items: flex-end; flex-wrap: wrap; padding: 20px; border-radius: 16px; background: linear-gradient(180deg, #5b2a8c, var(--surface-2)); }
.pl-cover { width: clamp(96px, 12vw, 150px); aspect-ratio: 1; border-radius: 10px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); }
.pl-head .grow { gap: 8px; }
.pl-name { background: transparent; border: 1px solid transparent; border-radius: 8px; padding: 2px 6px; margin-left: -7px; font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.03em; width: 100%; }
.pl-name:hover { border-color: var(--border-3); }
.pl-name:focus { border-color: var(--accent); background: rgba(0, 0, 0, 0.25); outline: none; }
.pl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
.pl-search { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.pl-track { grid-template-columns: 44px 44px minmax(0, 1fr) auto auto; }
.pl-index { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; }
.pl-track:hover .pl-index .index { display: none; }
.pl-track:hover .drag-handle, .pl-track .drag-handle:focus-visible { opacity: 1; }
.pl-track { transition: transform 0.15s; }
.pl-track.dragging { transition: none; position: relative; z-index: 3; background: var(--surface-3); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5); }

/* --- Panel: Listelerim --- */
.library-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.library-card { padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.library-card-head { display: flex; align-items: center; gap: 14px; color: var(--text); min-width: 0; border-radius: 8px; }
.library-card-head:hover { color: var(--text); }
.library-card-head:hover .track-title { color: var(--accent-soft); }
.library-card-head .art { width: 64px; height: 64px; border-radius: 10px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35); }
.library-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.idle-banner .grow { gap: 2px; }
.idle-banner .btn { flex-shrink: 0; }

/* ==========================================================================
   Form denetimleri: select, açılır liste, metin kutusu, kaydırıcı
   ========================================================================== */
:root {
	--chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a39cb0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	--focus-ring: 0 0 0 3px rgba(197, 140, 255, 0.22);
}

select {
	appearance: none;
	min-height: 40px;
	padding: 8px 36px 8px 14px;
	border: 1px solid var(--border-2);
	border-radius: 10px;
	background-color: var(--surface-2);
	background-image: var(--chevron);
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 14px;
	color: var(--text);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}
select:hover:not(:disabled) { border-color: var(--border-3); background-color: var(--surface-3); }
select:focus-visible { outline: none; border-color: var(--accent); box-shadow: var(--focus-ring); }
select:disabled { opacity: 0.5; cursor: not-allowed; }
/* Klasik açılır liste (tarayıcı desteklemiyorsa): koyu seçenekler */
select option, select optgroup { background-color: var(--surface-3); color: var(--text); }

/* Dil seçici: bayraklı açılır menü (popover; core.js butonun altına konumlar). Dar ekranda alttan açılan panel. */
.lang-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 36px;
	max-width: 100%;
	padding: 6px 12px 6px 10px;
	border: 1px solid var(--border-2);
	border-radius: 999px;
	background: var(--surface);
	color: var(--text-2);
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}
.lang-button:hover { border-color: var(--border-3); background: var(--surface-3); color: var(--text); }
.lang-button:focus-visible { outline: none; border-color: var(--accent); box-shadow: var(--focus-ring); }
.lang-button[aria-expanded='true'] { border-color: var(--accent); color: var(--text); }
.lang-button[aria-expanded='true'] .chip-chevron { transform: rotate(180deg); }
.lang-button-name { min-width: 0; max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flag {
	width: 22px;
	height: 16px;
	flex-shrink: 0;
	border-radius: 3px;
	object-fit: cover;
	background: var(--surface-4);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.lang-menu {
	position: fixed;
	inset: auto;
	top: var(--lang-top, 64px);
	left: var(--lang-left, 8px);
	width: 248px;
	max-height: min(580px, calc(100dvh - 16px));
	margin: 0;
	padding: 6px;
	overflow-y: auto;
	overscroll-behavior: contain;
	border: 1px solid var(--border-2);
	border-radius: 12px;
	background: var(--surface-3);
	color: var(--text);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}
.lang-menu::backdrop { background: transparent; }
.lang-menu-title { display: none; }
.lang-menu-list { display: flex; flex-direction: column; gap: 2px; }
.lang-option {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 40px;
	padding: 8px 10px;
	border-radius: 8px;
	color: var(--text-2);
	font-size: 14px;
	font-weight: 600;
}
.lang-option-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang-option:hover, .lang-option:focus-visible { outline: none; background: var(--surface-4); color: var(--text); }
.lang-option[aria-checked='true'] { background: rgba(157, 92, 255, 0.16); color: var(--text); }
/* Seçili dilin tik işareti */
.lang-check { flex-shrink: 0; width: 12px; height: 7px; margin: 0 3px 4px; border: solid var(--accent); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); }
@media (max-width: 599px) {
	.lang-menu {
		top: auto;
		right: 0;
		bottom: 0;
		left: 0;
		width: 100%;
		max-height: 82dvh;
		padding: 8px 16px calc(16px + env(safe-area-inset-bottom));
		border-width: 1px 0 0;
		border-radius: 20px 20px 0 0;
		transition: transform 0.22s ease;
	}
	@starting-style {
		.lang-menu:popover-open { transform: translateY(100%); }
	}
	.lang-menu::backdrop { background: rgba(0, 0, 0, 0.6); }
	.lang-menu-title { display: block; margin: 0 0 12px; padding-top: 14px; position: relative; text-align: center; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
	/* Tutamaç */
	.lang-menu-title::before { content: ''; position: absolute; top: 0; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--border-3); }
	.lang-menu-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.lang-option { min-height: 48px; padding: 10px 12px; border: 1px solid var(--border-2); background: var(--surface-2); }
	.lang-option[aria-checked='true'] { border-color: var(--accent); }
}
.add-form select, .library-toolbar select, .pl-actions select { border-radius: 999px; }
.field select { background-color: var(--surface-4); width: 100%; }
.pl-actions select { background-color: rgba(0, 0, 0, 0.3); border-color: var(--border-3); max-width: 280px; font-size: 13px; min-height: 36px; }
.library-toolbar select { max-width: 100%; }

/* Özelleştirilebilir açılır liste (Chrome 135+): listenin kendisi de temalı */
@supports (appearance: base-select) {
	select, ::picker(select) { appearance: base-select; }
	select { background-image: none; display: inline-flex; align-items: center; gap: 8px; }
	/* Tarayıcının üçgeni yerine her yerde aynı ok (kullanıcı menüsüyle aynı) */
	select::picker-icon { content: ''; width: 14px; height: 14px; background: var(--chevron) center / contain no-repeat; transition: rotate 0.2s; }
	select:open::picker-icon { rotate: 180deg; }
	select:open { border-color: var(--accent); box-shadow: var(--focus-ring); }

	::picker(select) {
		margin-top: 6px;
		padding: 6px;
		max-height: min(360px, 60vh);
		border: 1px solid var(--border-2);
		border-radius: 12px;
		background: var(--surface-3);
		box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
		color: var(--text);
		opacity: 0;
		transform: translateY(-4px);
		transition: opacity 0.15s, transform 0.15s, overlay 0.15s allow-discrete, display 0.15s allow-discrete;
	}
	select:open::picker(select) { opacity: 1; transform: none; }
	@starting-style {
		select:open::picker(select) { opacity: 0; transform: translateY(-4px); }
	}

	option {
		display: flex;
		align-items: center;
		gap: 10px;
		padding: 9px 12px;
		border-radius: 8px;
		background: transparent;
		color: var(--text-2);
		font-size: 14px;
		cursor: pointer;
	}
	option:hover, option:focus-visible { background: var(--surface-4); color: var(--text); outline: none; }
	option:checked { background: rgba(157, 92, 255, 0.16); color: var(--text); font-weight: 600; }
	option::checkmark { order: 1; margin-left: auto; color: var(--accent-2); font-weight: 800; }
	option:disabled { opacity: 0.45; cursor: not-allowed; }
	optgroup { padding: 4px 0; background: transparent; }
	optgroup legend { padding: 8px 12px 4px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
}

/* Metin kutuları */
.search { transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s; }
.search:hover { border-color: var(--border-3); }
.search:focus-within { border-color: var(--accent); box-shadow: var(--focus-ring); }
.search input::placeholder, .input::placeholder { color: var(--muted); opacity: 1; }
.search input::-webkit-search-cancel-button { appearance: none; width: 14px; height: 14px; cursor: pointer; background: var(--muted); -webkit-mask: url('/icons/error.svg') center / contain no-repeat; mask: url('/icons/error.svg') center / contain no-repeat; }
.input {
	min-height: 40px;
	padding: 8px 14px;
	border: 1px solid var(--border-2);
	border-radius: 10px;
	background: var(--surface-2);
	color: var(--text);
	font-size: 14px;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.input:hover { border-color: var(--border-3); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus-ring); }

/* Kaydırıcı: dolu kısım mor-fuşya (--fill, core.js günceller) */
input[type='range'] {
	appearance: none;
	width: 100%;
	height: 20px;
	background: transparent;
	cursor: pointer;
	accent-color: #c04ce8;
}
input[type='range']:disabled { cursor: not-allowed; opacity: 0.45; }
input[type='range']::-webkit-slider-runnable-track {
	height: 5px;
	border-radius: 999px;
	background: linear-gradient(90deg, #8b5cf6, #d946ef) 0 0 / var(--fill, 0%) 100% no-repeat, var(--border-3);
}
input[type='range']::-webkit-slider-thumb {
	appearance: none;
	width: 15px;
	height: 15px;
	margin-top: -5px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
	transition: transform 0.15s, box-shadow 0.15s;
}
input[type='range']:hover:not(:disabled)::-webkit-slider-thumb { transform: scale(1.15); box-shadow: 0 0 0 5px rgba(217, 70, 239, 0.22); }
input[type='range']:focus-visible { outline: none; }
input[type='range']:focus-visible::-webkit-slider-thumb { box-shadow: var(--focus-ring); }
input[type='range']::-moz-range-track { height: 5px; border-radius: 999px; background: var(--border-3); }
input[type='range']::-moz-range-progress { height: 5px; border-radius: 999px; background: linear-gradient(90deg, #8b5cf6, #d946ef); }
input[type='range']::-moz-range-thumb { width: 15px; height: 15px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); }

/* --- Açılır menü (kaydet) --- */
.popover {
	position: fixed;
	z-index: 60;
	width: min(300px, calc(100vw - 16px));
	padding: 6px;
	border: 1px solid var(--border-2);
	border-radius: 12px;
	background: var(--surface-3);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
	animation: popover-in 0.14s ease-out;
}
@keyframes popover-in { from { opacity: 0; transform: translateY(-4px); } }
.popover-title { padding: 8px 10px 6px; font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.popover-heading { padding: 8px 10px 4px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.popover-divider { height: 1px; margin: 4px 6px; background: var(--border-2); }
.popover-note { padding: 8px 10px; color: var(--muted); font-size: 13px; }
.popover-scroll { max-height: 220px; overflow: auto; }
.popover-create { display: flex; gap: 6px; padding: 6px 4px 2px; }
.popover-create .input { flex: 1; min-width: 0; min-height: 36px; padding: 6px 10px; font-size: 13px; }
.menu-item {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 9px 10px;
	border: 0;
	border-radius: 8px;
	background: none;
	color: var(--text-2);
	font-size: 14px;
	font-weight: 600;
	text-align: left;
}
.menu-item span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-item .glyph { color: var(--accent); }
.menu-item:hover:not(:disabled), .menu-item:focus-visible { background: var(--surface-4); color: var(--text); outline: none; }
.menu-item.danger .glyph { color: var(--danger); }
.menu-item:disabled { opacity: 0.45; cursor: not-allowed; }

/* Kalp (favori) ve kaydet butonları */
.heart[aria-pressed='true'] { color: var(--accent-2); }
.heart[aria-pressed='true']:hover { color: var(--accent-soft); }
.ctrl-lg .glyph { width: 24px; height: 24px; }
.player-track .heart { flex-shrink: 0; }
.queue-head, .queue-row { grid-template-columns: 44px minmax(0, 2fr) minmax(0, 1fr) 60px 72px; }
.row-actions { display: flex; justify-content: flex-end; gap: 2px; }
.row-action[aria-expanded='true'] { opacity: 1; color: var(--text); background: var(--surface-3); }
.row-action:not(.danger):hover { color: var(--text); }

/* --- Favorilerim --- */
.fav-toolbar { display: flex; flex-direction: column; gap: 18px; }
.fav-hero { display: flex; gap: 20px; align-items: flex-end; flex-wrap: wrap; padding: 20px; border-radius: 16px; background: linear-gradient(180deg, #7a1f5c, var(--surface-2)); }
.fav-hero h1 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; letter-spacing: -0.03em; }
.fav-hero .grow { gap: 6px; }
.fav-toolbar .toolbar { margin: 0; }
.fav-toolbar .toolbar .search { flex: 1 1 260px; }
.fav-row { grid-template-columns: 32px 44px minmax(0, 1fr) auto auto; }

/* --- Müziği başlat (bot boştayken) --- */
.start-hero { display: flex; align-items: center; gap: 20px; padding: 22px; border-radius: 16px; background: linear-gradient(135deg, var(--surface-3), var(--surface-2)); border: 1px solid var(--border-2); }
.start-hero.ready { background: linear-gradient(135deg, #5b2a8c, #3b1a5e 55%, var(--surface-2)); border-color: rgba(197, 140, 255, 0.35); }
.start-hero h1 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.03em; }
.start-hero .grow { gap: 4px; }
.start-icon { width: 72px; height: 72px; border-radius: 50%; box-shadow: 0 10px 30px rgba(217, 70, 239, 0.35); }
.start-hero:not(.ready) .start-icon { background-image: none; background-color: var(--surface-4); box-shadow: none; }
.start-status { color: var(--text-2); font-size: 15px; }
.start-card { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.start-form .search { flex: 1 1 320px; }
.start-row { grid-template-columns: 44px minmax(0, 1fr) auto auto; }
.start-section { display: flex; flex-direction: column; gap: 14px; }
.start-section .section-row { margin: 0; }
.start-tile { border: 0; text-align: left; color: var(--text); }
.start-tile:hover:not(:disabled) { background: var(--surface-4); }
.start-tile:disabled { cursor: not-allowed; opacity: 0.6; }
.start-tile-art { position: relative; display: block; }
.start-tile-art .art { aspect-ratio: 1; width: 100%; border-radius: 6px; }
.start-tile-play { position: absolute; right: 8px; bottom: 8px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--gradient); color: #fff; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45); opacity: 0; transform: translateY(6px); transition: opacity 0.15s, transform 0.15s; }
.start-tile:hover:not(:disabled) .start-tile-play, .start-tile:focus-visible .start-tile-play { opacity: 1; transform: none; }

/* --- Site panel düzeninde: ana sayfa, komutlar, yasal sayfalar --- */
.side-login { padding: 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.side-login strong { font-size: 15px; }
.side-login p { color: var(--muted); font-size: 13px; line-height: 1.5; }
.side-login .btn { width: 100%; }
.main .hero { padding: 8px 0 12px; gap: 32px; }
.main .hero h1 { font-size: clamp(36px, 4.6vw, 64px); }
.view.home { gap: 48px; }
.home-section { display: flex; flex-direction: column; }
.commands-view { max-width: 1000px; }
.commands-view .section-head, .commands-view .toolbar { margin-bottom: 0; }

/* Kenar çubuğu: gezinme uzarsa kendi içinde kayar, sunucu listesine her zaman yer kalır */
.sidebar-nav { flex: 0 1 auto; min-height: 0; overflow-y: auto; }
/* İç öğeler sıkışmasın (başlıklar overflow:hidden ile sıfır yüksekliğe ezilirdi); sadece kenar çubuğu kayar */
.sidebar-nav > * { flex-shrink: 0; }
.side-servers { flex: 1 0 150px; }

/* Kullanıcı menüsü: açılabildiği belli olsun (ok + kenarlık), açılınca ok döner */
.user-chip { border: 1px solid var(--border-2); padding: 4px 12px 4px 4px; transition: border-color 0.15s, background-color 0.15s; }
.user-chip:hover, .user-chip[aria-expanded='true'] { border-color: var(--border-3); background: var(--surface-3); }
.user-chip[aria-expanded='true'] { border-color: var(--accent); box-shadow: var(--focus-ring); }
.user-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-chevron { width: 14px; height: 14px; flex-shrink: 0; background: var(--chevron) center / contain no-repeat; transition: transform 0.2s; }
.user-chip[aria-expanded='true'] .chip-chevron { transform: rotate(180deg); }

/* ==========================================================================
   Duyarlı tasarım
   Yukarıdaki stiller masaüstüdür (≥1200px). Aşağıda daralan ekranlar için ayarlar:
     1199px ve altı  dar masaüstü / yatay tablet: kenar çubuğu daralır
     899px ve altı   dikey tablet / telefon: kenar çubuğu çekmece olur, oynatıcı mini oynatıcıya döner
     599px ve altı   telefon: tek / iki sütun, alt alta formlar, daha küçük başlıklar
   Dokunmatik ekranlarda (hover: none / pointer: coarse) üzerine gelince görünen öğeler hep görünür,
   dokunma hedefleri en az 44px olur.
   ========================================================================== */

/* --- Tüm genişlikler: erişilebilirlik ve yeni parçalar --- */
.skip-link {
	position: fixed;
	left: 12px;
	top: -80px;
	z-index: 100;
	padding: 10px 16px;
	border-radius: 10px;
	background: var(--text);
	color: var(--bg);
	font-weight: 700;
	transition: top 0.15s;
}
.skip-link:focus { top: 12px; color: var(--bg); }
#content:focus { outline: none; }
.nav-toggle, .topbar-logo, .drawer-close, .drawer-lang { display: none; }
.volume-block { display: flex; align-items: center; gap: 10px; }
.now-transport { display: none; }
.player-track-link { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--text); border-radius: 8px; }
.player-track-link:hover { color: var(--text); }
.player-track-link:hover .track-title { text-decoration: underline; }
.status-pill { flex-shrink: 0; }

/* --- Dokunmatik ekranlar --- */
@media (hover: none) {
	.row-action, .drag-handle { opacity: 1; }
	.queue-row .num .index, .pl-track .pl-index .index { display: none; }
	.start-tile-play { opacity: 1; transform: none; }
}
@media (pointer: coarse) {
	.ctrl { min-width: 44px; min-height: 44px; }
	.icon-btn, .row-action { min-width: 40px; min-height: 40px; }
	.drag-handle { min-width: 32px; min-height: 40px; }
	.tab, .menu-item, .menu a, .menu button { min-height: 44px; }
	.chip { min-height: 40px; }
	input[type='range'] { height: 32px; }
	input[type='range']::-webkit-slider-thumb { width: 20px; height: 20px; margin-top: -7.5px; }
	input[type='range']::-moz-range-thumb { width: 20px; height: 20px; }
}

/* --- Dar masaüstü / yatay tablet --- */
@media (max-width: 1199px) {
	.app-body { grid-template-columns: 228px minmax(0, 1fr); }
	.view { padding: 20px 22px 40px; }
	.topbar { padding: 12px 22px; }
	.now-hero { padding-left: 22px; padding-right: 22px; }
	.site-footer { margin: 0 22px; }
	.queue-head span:nth-child(3), .queue-row .who { display: none; }
	.queue-head, .queue-row { grid-template-columns: 44px minmax(0, 1fr) 60px 72px; }
	.pl-layout { grid-template-columns: 1fr; }
	.pl-list { position: static; }
	.player-bar { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 0.9fr); }
	.player-side input { width: 84px; }
}

/* --- Dikey tablet ve telefon: çekmece + mini oynatıcı --- */
@media (max-width: 899px) {
	.app { display: block; height: auto; min-height: 100dvh; padding: 0; background: var(--surface); }
	.app-body { display: block; }
	.main { min-height: 100dvh; border-radius: 0; overflow: visible; }
	.app:not(.app-no-player) .main { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }

	/* Üst çubuk: menü butonu, logo, başlık, kullanıcı */
	.topbar { gap: 8px; padding: calc(8px + env(safe-area-inset-top)) 12px 8px; border-radius: 0; }
	.nav-toggle {
		display: grid;
		place-items: center;
		flex-shrink: 0;
		width: 44px;
		height: 44px;
		border: 0;
		border-radius: 10px;
		background: none;
		color: var(--text);
	}
	.nav-toggle:hover { background: var(--surface-3); }
	.nav-toggle-bars { display: flex; flex-direction: column; gap: 4px; width: 20px; }
	.nav-toggle-bars span { height: 2px; border-radius: 2px; background: currentColor; }
	.topbar-logo { display: grid; place-items: center; flex-shrink: 0; }
	.topbar-logo img { width: 28px; height: 28px; object-fit: contain; }
	.topbar-server { flex: 1 1 auto; min-width: 0; }
	.topbar-server .name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.role-pill, .topbar-lang, .user-name { display: none; }
	.topbar-actions .user-chip { gap: 6px; padding: 3px 8px 3px 3px; }

	/* Çekmece */
	.sidebar {
		position: fixed;
		top: 0;
		bottom: 0;
		left: 0;
		z-index: 40;
		width: min(320px, 86vw);
		padding: calc(8px + env(safe-area-inset-top)) 8px calc(8px + env(safe-area-inset-bottom));
		overflow-y: auto;
		overscroll-behavior: contain;
		background: var(--bg);
		box-shadow: 20px 0 60px rgba(0, 0, 0, 0.5);
		transform: translateX(-105%);
		visibility: hidden;
		transition: transform 0.25s ease, visibility 0s linear 0.25s;
	}
	.drawer-open .sidebar { transform: none; visibility: visible; transition: transform 0.25s ease; }
	.drawer-open { overflow: hidden; }
	.drawer-backdrop { position: fixed; inset: 0; z-index: 39; background: rgba(0, 0, 0, 0.6); }
	.drawer-backdrop[hidden] { display: none; }
	.sidebar-nav, .side-servers { flex: none; overflow: visible; }
	.drawer-close {
		display: grid;
		place-items: center;
		position: absolute;
		top: calc(16px + env(safe-area-inset-top));
		right: 16px;
		z-index: 1;
		width: 40px;
		height: 40px;
		border: 0;
		border-radius: 10px;
		background: var(--surface-3);
		color: var(--text);
	}
	.drawer-close span { position: relative; width: 16px; height: 16px; }
	.drawer-close span::before, .drawer-close span::after { content: ''; position: absolute; top: 7px; left: 0; width: 16px; height: 2px; border-radius: 2px; background: currentColor; transform: rotate(45deg); }
	.drawer-close span::after { transform: rotate(-45deg); }
	.drawer-lang { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; color: var(--muted); font-size: 14px; font-weight: 600; }

	/* Mini oynatıcı (kapak + ad, kalp, oynat/duraklat, sonraki; üst kenarda ince ilerleme) */
	.player-bar {
		position: fixed;
		left: 8px;
		right: 8px;
		bottom: calc(8px + env(safe-area-inset-bottom));
		z-index: 20;
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 4px;
		min-height: 64px;
		padding: 8px 6px 10px 8px;
		overflow: hidden;
		border: 1px solid var(--border-2);
		border-radius: 14px;
		background: rgba(31, 27, 39, 0.97);
		backdrop-filter: blur(14px);
		box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
	}
	.player-track { min-width: 0; gap: 4px; }
	.player-track .art { width: 44px; height: 44px; }
	.player-center { flex-direction: row; align-items: center; }
	.player-bar .player-controls { gap: 0; }
	.player-bar .ctrl-shuffle, .player-bar .ctrl-previous, .player-bar .ctrl-loop, .player-bar .ctrl-loop_one { display: none; }
	.player-bar .ctrl-main { width: 40px; height: 40px; }
	.player-bar .progress { position: absolute; left: 12px; right: 12px; bottom: 3px; width: auto; max-width: none; gap: 0; }
	.player-bar .progress span { display: none; }
	.player-bar .progress .bar { height: 3px; pointer-events: none; }
	.player-bar .progress .bar::before { content: none; }
	.player-side { display: none; }

	/* Şimdi Çalan: mini oynatıcıda olmayan tam kontroller */
	.now-transport { display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: 14px; background: var(--surface-2); }
	.now-transport .progress { max-width: none; font-size: 12px; }
	.now-transport .player-controls { justify-content: space-between; }
	.now-transport .ctrl-main { width: 56px; height: 56px; }
	.now-transport .ctrl-main .glyph { width: 22px; height: 22px; }
	.now-transport .volume-block { color: var(--muted); font-size: 12px; }
	.now-transport .volume-block input { flex: 1; }
	.now-actions .round-play { display: none; }

	/* İçerik */
	.view { gap: 24px; padding: 16px 16px 32px; }
	.now-hero { margin-top: 0; padding: 20px 16px 24px; }
	.now-hero .art { width: 120px; }
	.site-footer { margin: 0 16px; }
	.toasts { bottom: calc(92px + env(safe-area-inset-bottom)); }
	.queue-head, .queue-row { grid-template-columns: 36px minmax(0, 1fr) 48px auto; gap: 10px; padding: 8px 6px; }
	.library-row, .start-row, .fav-row { grid-template-columns: 40px minmax(0, 1fr) auto; }
	.library-row .end, .start-row .end, .fav-row .pl-index, .fav-row .end { display: none; }
	.pl-track { grid-template-columns: 36px 40px minmax(0, 1fr) auto; }
	.pl-track .end { display: none; }
	.command { grid-template-columns: 1fr; gap: 4px; }
	.command .aliases { grid-column: 1; }
	.command.sub { padding-left: 24px; }
	.command.sub code { padding-left: 0; }
	/* Sarma kapalı: açıkken her satır en geniş öğe (kayan çipler) kadar genişler, arama kutusu taşar */
	.toolbar { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
	/* Alt alta dizilince flex-basis yükseklik olur (260px'lik dev kutu); sıfırla */
	.toolbar .search, .fav-toolbar .toolbar .search { flex: none; }
	/* Yatay kayan çipler araç çubuğunu genişletmesin */
	.toolbar, .chips { min-width: 0; }
	/* Kategori çipleri yatay kayar */
	.chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; }
	.chips::-webkit-scrollbar { display: none; }
	.chip { flex-shrink: 0; }
	.chart { gap: 2px; }

	/* Açılır menüler alttan açılan panel olur */
	.popover {
		left: 8px !important;
		right: 8px;
		top: auto !important;
		bottom: calc(8px + env(safe-area-inset-bottom));
		width: auto;
		max-height: 70vh;
		overflow-y: auto;
		border-radius: 16px;
		animation: sheet-in 0.2s ease-out;
	}
	@keyframes sheet-in { from { opacity: 0; transform: translateY(24px); } }
}

/* --- Telefon --- */
@media (max-width: 599px) {
	.view-head h1, .section-title { font-size: 26px; }
	.subhead { font-size: 19px; }

	/* Üst çubuk: sunucu sayfasında yer açmak için logo gizlenir, durum sadece nokta */
	.app:not(.app-no-player) .topbar-logo { display: none; }
	.topbar .status-pill { padding: 6px; font-size: 0; gap: 0; }
	.topbar .status-pill .dot { width: 8px; height: 8px; }

	/* Ana sayfa */
	.main .hero { gap: 24px; }
	.main .hero h1 { font-size: clamp(32px, 9vw, 42px); }
	.hero p { font-size: 16px; }
	.hero .actions .btn { flex: 1 1 100%; }
	.preview { padding: 12px; }
	.preview-head { gap: 14px; padding: 14px; }
	.preview-head .art { width: 72px; height: 72px; }
	.preview-head .title { font-size: 18px; }
	.features { grid-template-columns: 1fr; }
	.feature { padding: 20px; }
	.cta-band { flex-direction: column; align-items: stretch; }

	/* Izgaralar */
	.stats-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.stat { padding: 14px; }
	.stat-value { font-size: 24px; }
	.tile-grid, .server-grid, .effect-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.server-card { gap: 10px; padding: 12px; }
	.server-card .server-icon { font-size: 32px; }
	.effect { height: 96px; padding: 14px; }
	.effect .name { font-size: 16px; }
	.library-grid, .badge-grid, .stats-grid, .two-col, .field-grid { grid-template-columns: 1fr; }

	/* Şimdi çalan ve kuyruk */
	.now-hero-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
	.now-hero .art { width: 140px; }
	.now-hero h1 { font-size: 30px; }
	.now-actions { gap: 6px; }
	.now-actions .btn-quiet { padding: 8px 10px; }
	.queue-head span:nth-child(4), .queue-row .dur { display: none; }
	.queue-head, .queue-row { grid-template-columns: 36px minmax(0, 1fr) auto; }

	/* Formlar alt alta */
	.add-form { flex-direction: column; align-items: stretch; }
	.add-form .search, .pl-list .add-form .search { flex: none; }
	.add-form select, .add-form .btn { width: 100%; }
	.pl-actions select, .library-toolbar select { width: 100%; max-width: 100%; }
	.setting-row { gap: 14px; }
	.setting-row .desc { font-size: 13px; }

	/* Başlık kartları alt alta */
	.profile-hero { grid-template-columns: 1fr; }
	.pl-head, .fav-hero, .start-hero { flex-direction: column; align-items: flex-start; }
	.pl-cover { width: 96px; }
	.start-icon { width: 56px; height: 56px; }

	/* Sözler */
	.lyric-line { font-size: 22px; }
	.sing-along .lyric-line { font-size: 24px; }
	.karaoke-toggle, .vocals { flex-basis: 100%; }

	/* Diğer */
	.prose h1 { font-size: 30px; }
	.toc { padding: 14px 16px; }
	.rank-row { grid-template-columns: 24px 28px minmax(0, 1fr) auto; gap: 8px; }
	.command-group-head h2 { font-size: 18px; }
}

/* ==========================================================================
   Dar ekranda Spotify tarzı oynatıcı: kapak renginde mini oynatıcı ve Şimdi Çalan
   --tint: çalan şarkının kapağından (dashboard.js applyTint); yoksa mor
   ========================================================================== */
:root { --tint: hsl(275 50% 30%); }
.now-mobile { display: none; }

@media (max-width: 899px) {
	/* --- Mini oynatıcı --- */
	.player-bar {
		min-height: 58px;
		padding: 8px 6px 10px 8px;
		border: 0;
		border-radius: 8px;
		background: color-mix(in srgb, var(--tint) 78%, #0b0a0e);
		box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
		transition: background-color 0.6s ease;
	}
	.player-bar.is-idle { display: none; }
	.app:has(.player-bar.is-idle) .main { padding-bottom: 24px; }
	.player-bar .art { width: 42px; height: 42px; border-radius: 4px; }
	.player-bar .track-title { font-size: 14px; }
	.player-bar .track-sub { color: rgba(255, 255, 255, 0.72); font-size: 13px; }
	.player-bar .heart { color: rgba(255, 255, 255, 0.8); }
	.player-bar .heart[aria-pressed='true'] { color: #fff; }
	.player-bar .ctrl-skip { color: #fff; }
	.player-bar .ctrl-skip .glyph { width: 20px; height: 20px; }
	/* Butonlar dışında her yere dokununca Şimdi Çalan açılır (dashboard.js) */
	.player-bar:not(.is-idle) { cursor: pointer; }
	/* Dairesiz, sade oynat/duraklat */
	.player-bar .ctrl-main { width: 44px; height: 44px; background: none; color: #fff; }
	.player-bar .ctrl-main:hover:not(:disabled) { color: #fff; transform: none; }
	.player-bar .ctrl-main .glyph { width: 24px; height: 24px; }
	.player-bar .progress { left: 8px; right: 8px; bottom: 0; }
	.player-bar .progress .bar { height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.22); }
	.player-bar .progress .bar-fill { background: #fff; }

	/* --- Şimdi Çalan (Spotify düzeni) --- */
	.now-hero, .now-transport, .now-actions { display: none; }
	.now-mobile {
		display: flex;
		flex-direction: column;
		gap: 22px;
		padding: 20px 22px 26px;
		background: linear-gradient(180deg, color-mix(in srgb, var(--tint) 90%, #000) 0%, color-mix(in srgb, var(--tint) 45%, var(--surface)) 55%, var(--surface) 100%);
		transition: background 0.6s ease;
	}
	.nm-art { align-self: center; width: 100%; max-width: 440px; aspect-ratio: 1; overflow: hidden; border-radius: 8px; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5); }
	.nm-art .art { width: 100%; height: 100%; border-radius: 0; }
	.nm-art .art .glyph { width: 30%; height: 30%; }
	.nm-meta { display: flex; align-items: center; gap: 4px; }
	.nm-meta .grow { gap: 2px; }
	.nm-title { overflow: hidden; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
	.nm-artist { overflow: hidden; color: rgba(255, 255, 255, 0.7); font-size: 15px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
	.nm-meta .ctrl { color: rgba(255, 255, 255, 0.8); }
	.nm-meta .heart .glyph { width: 26px; height: 26px; }
	.nm-meta .heart[aria-pressed='true'] { color: var(--accent-2); }
	.nm-save { display: none; }
	.nm-dots { display: flex; gap: 3px; }
	.nm-dots span { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

	/* İlerleme: ince beyaz çubuk + tutamaç, süreler altta */
	.now-mobile .progress { display: grid; grid-template-columns: 1fr 1fr; max-width: none; gap: 8px 0; color: rgba(255, 255, 255, 0.7); font-size: 12px; }
	.now-mobile .progress .bar { grid-column: 1 / -1; grid-row: 1; height: 4px; background: rgba(255, 255, 255, 0.25); }
	.now-mobile .progress .bar-fill { background: #fff; }
	.now-mobile .progress .bar-fill::after { content: ''; position: absolute; top: 50%; right: -6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transform: translateY(-50%); }
	.now-mobile .progress .bar:disabled .bar-fill::after { display: none; }
	.now-mobile .progress span { min-width: 0; grid-row: 2; }
	.now-mobile .progress span:first-child { text-align: left; }
	.now-mobile .progress span:last-child { text-align: right; }

	/* Kontroller: kenarlarda karıştır/döngü, ortada büyük beyaz oynat */
	.now-mobile .player-controls { justify-content: space-between; margin-top: -6px; }
	.now-mobile .ctrl { color: #fff; }
	.now-mobile .ctrl:disabled { color: rgba(255, 255, 255, 0.35); }
	.now-mobile .ctrl-previous .glyph, .now-mobile .ctrl-skip .glyph { width: 30px; height: 30px; }
	.now-mobile .ctrl-shuffle .glyph, .now-mobile .ctrl-loop .glyph, .now-mobile .ctrl-loop_one .glyph { width: 22px; height: 22px; }
	.now-mobile .ctrl[aria-pressed='true'] { position: relative; color: var(--accent-2); }
	.now-mobile .ctrl[aria-pressed='true']::after { content: ''; position: absolute; bottom: 2px; left: 50%; width: 4px; height: 4px; border-radius: 50%; background: currentColor; transform: translateX(-50%); }
	.now-mobile .ctrl-main { width: 66px; height: 66px; background: #fff; color: #000; }
	.now-mobile .ctrl-main:hover:not(:disabled) { color: #000; }
	.now-mobile .ctrl-main:disabled { background: rgba(255, 255, 255, 0.4); color: #000; }
	.now-mobile .ctrl-main .glyph { width: 26px; height: 26px; }

	/* Alt satır: ses ve sözler */
	.nm-bottom { display: flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, 0.75); }
	.nm-bottom .volume-block { flex: 1; font-size: 12px; }
	.nm-bottom .volume-block input { flex: 1; }
	.nm-bottom .ctrl { color: rgba(255, 255, 255, 0.8); }

	/* Söz kartı: şarkıyla akan satırlar */
	.nm-lyrics {
		display: flex;
		flex-direction: column;
		gap: 12px;
		padding: 18px;
		border-radius: 12px;
		background: color-mix(in srgb, var(--tint) 70%, #fff 6%);
		color: #fff;
		box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	}
	.nm-lyrics:hover { color: #fff; }
	.nm-lyrics-title { font-size: 16px; font-weight: 800; }
	.nm-lyrics-lines { display: flex; flex-direction: column; gap: 6px; min-height: 84px; font-size: 20px; font-weight: 800; line-height: 1.3; color: rgba(0, 0, 0, 0.55); }
	.nm-lyrics-lines .current { color: #fff; }
	.nm-lyrics-more { align-self: flex-start; padding: 8px 14px; border-radius: 999px; background: rgba(0, 0, 0, 0.3); font-size: 13px; font-weight: 700; }

	/* Altındaki içerik (kuyruk, ekle) arka planla bütünleşsin */
	.now-mobile ~ .view { padding-top: 8px; }
}

@media (max-width: 899px) {
	/* Spotify gibi beyaz kaydırıcı */
	.now-mobile input[type='range']::-webkit-slider-runnable-track { background: linear-gradient(#fff, #fff) 0 0 / var(--fill, 0%) 100% no-repeat, rgba(255, 255, 255, 0.25); }
	.now-mobile input[type='range']::-moz-range-progress { background: #fff; }
	.now-mobile input[type='range'] { accent-color: #fff; }
}

/* --- Kenar çubuğu: kitaplık (favoriler + çalma listeleri, kapaklarıyla) --- */
.side-library { padding: 16px; flex: 0 1 auto; min-height: 112px; display: flex; flex-direction: column; gap: 6px; overflow: auto; }
.side-library > * { flex-shrink: 0; }
.side-servers { flex: 1 1 0; min-height: 112px; }
.sidebar > .sidebar-nav { flex-shrink: 0; }
.sidebar { overflow-y: auto; scrollbar-width: none; }
.side-cover { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; overflow: hidden; border-radius: 6px; background-color: var(--surface-4); color: #fff; }
.side-cover.art-2, .side-cover.art-3 { background-repeat: no-repeat; background-size: cover; }
.side-cover img { width: 100%; height: 100%; object-fit: cover; }
.side-cover .glyph { width: 18px; height: 18px; }
.side-create .side-cover { background: none; border: 1px dashed var(--border-3); color: var(--muted); }
.side-create .name { color: var(--muted); }
.glyph-heart { --glyph: url('/icons/heart.svg'); }
.glyph-queue { --glyph: url('/icons/queue.svg'); }
.glyph-add { --glyph: url('/icons/add.svg'); }
@media (max-width: 899px) {
	/* Çekmecede kutular içerikleri kadar uzar, çekmecenin kendisi kayar (sıkışıp üst üste binmesinler) */
	.sidebar > .panel-box { flex: none; }
	.side-library, .side-servers { overflow: visible; min-height: 0; }
}

/* --- Çalma listesi kapağı yükleme --- */
.pl-cover-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pl-cover-btn { position: relative; padding: 0; border: 0; border-radius: 10px; background: none; cursor: pointer; }
.pl-cover-btn .pl-cover { margin: 0; }
.pl-cover-btn .art img { width: 100%; height: 100%; object-fit: cover; }
.pl-cover-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	opacity: 0;
	transition: opacity 0.15s;
}
.pl-cover-overlay .glyph { width: 28px; height: 28px; }
.pl-cover-btn:hover .pl-cover-overlay, .pl-cover-btn:focus-visible .pl-cover-overlay, .pl-cover-btn[aria-busy='true'] .pl-cover-overlay { opacity: 1; }
.pl-cover-btn[aria-busy='true'] { cursor: progress; }
.pl-cover-remove { padding: 4px 8px; font-size: 12px; }
.pl-item .art img, .library-card-head .art img, .playlist-tile .art img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none) {
	/* Dokunmatikte üzerine gelme yok: kapağın altında küçük bir ipucu */
	.pl-cover-overlay { opacity: 1; inset: auto 0 0 0; height: 34px; flex-direction: row; border-radius: 0 0 10px 10px; font-size: 12px; }
	.pl-cover-overlay .glyph { width: 16px; height: 16px; }
}

/* --- Ana sayfa: anahtar kelime başlığı, kurulum adımları, SSS --- */
.hero h1 .hero-kicker {
	display: block;
	margin-bottom: 14px;
	font-size: 17px;
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: 0.02em;
	color: var(--accent-soft);
}
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step { display: flex; flex-direction: column; gap: 10px; padding: 24px; }
.step h3 { font-size: 18px; }
.step p { color: var(--muted); line-height: 1.55; }
.step-num {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--accent), #d946ef);
	color: #fff;
	font-weight: 800;
	font-size: 17px;
}
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 12px; }
.faq-item { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; }
.faq-item[open] { border-color: var(--border-2); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 16px; font-weight: 700; }
.faq-item summary::after {
	content: '';
	flex: none;
	width: 10px;
	height: 10px;
	border-right: 2px solid var(--muted);
	border-bottom: 2px solid var(--muted);
	transform: rotate(45deg) translateY(-3px);
	transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(225deg) translate(-3px, 0); }
.faq-item summary:hover h3 { color: var(--accent-soft); }
.faq-item summary:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 12px; }
.faq-item p { padding: 0 20px 18px; color: var(--muted); line-height: 1.6; }
@media (max-width: 899px) {
	.steps { grid-template-columns: 1fr; }
	.faq { grid-template-columns: 1fr; }
	.hero h1 .hero-kicker { font-size: 13px; margin-bottom: 10px; }
}

/* --- Çalma listesi: bağlantıdan içe aktar --- */
.pl-import { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.pl-import summary { display: flex; align-items: center; gap: 8px; padding: 12px 14px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--muted); list-style: none; }
.pl-import summary::-webkit-details-marker { display: none; }
.pl-import summary:hover, .pl-import[open] summary { color: var(--text); }
.pl-import summary:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 12px; }
.pl-import .add-form { padding: 0 14px; }
.pl-import .field-hint { padding: 8px 14px 14px; margin: 0; font-size: 12px; }
.btn[aria-busy='true'] { cursor: progress; opacity: 0.8; }

/* --- Sıralama sekmesi --- */
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.leader-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.leader-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.leader-row { border-radius: 8px; padding: 8px 6px; }
.leader-row .track-meta { min-width: 0; }
.leader-row.is-you { background: rgba(168, 85, 247, 0.14); box-shadow: inset 3px 0 0 var(--accent); }
.you-tag { margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; vertical-align: middle; }
.leaderboard-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); align-items: start; }
.stat-sub { font-size: 13px; }

/* --- Yönetici durum sayfası --- */
.view-head.admin-head { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.admin-head > div { display: flex; flex-direction: column; gap: 8px; }
.health-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; background: var(--surface-2); }
.health-ok { color: #b9f5cf; background: rgba(52, 211, 153, 0.12); }
.health-degraded { color: #fde68a; background: rgba(251, 191, 36, 0.12); }
.health-down { color: #fecaca; background: rgba(248, 113, 113, 0.14); }
.health-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; vertical-align: middle; }
.health-dot.ok { background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2); }
.health-dot.bad { background: #f87171; box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.2); }
.admin-stale { padding: 10px 14px; border-radius: 10px; background: rgba(251, 191, 36, 0.12); color: #fde68a; font-size: 14px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { text-align: left; color: var(--muted); font-size: 12px; font-weight: 600; padding: 0 8px 8px; }
.admin-table td { padding: 8px; border-top: 1px solid var(--border); white-space: nowrap; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 16px; margin: 0; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.admin-players { display: flex; flex-direction: column; gap: 4px; }
.admin-player { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 4px; border-top: 1px solid var(--border); }
.admin-player:first-child { border-top: 0; }
.admin-player .art, .admin-player .server-icon { width: 44px; height: 44px; border-radius: 8px; }
.admin-player-end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 13px; }
.admin-logs-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.log-row { border-top: 1px solid var(--border); }
.log-row summary { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 10px 4px; cursor: pointer; list-style: none; font-size: 13px; }
.log-row summary::-webkit-details-marker { display: none; }
.log-row summary:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 6px; }
.log-row time { color: var(--muted); font-variant-numeric: tabular-nums; }
.log-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, Consolas, monospace; }
.log-row[open] .log-text { white-space: normal; overflow-wrap: anywhere; }
.log-level { padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.log-error .log-level { background: rgba(248, 113, 113, 0.16); color: #fecaca; }
.log-warn .log-level { background: rgba(251, 191, 36, 0.14); color: #fde68a; }
.log-row pre { margin: 0 4px 12px; padding: 12px; border-radius: 8px; background: var(--bg); color: var(--muted); font-size: 12px; line-height: 1.5; overflow-x: auto; white-space: pre; }
@media (max-width: 599px) {
	.view-head.admin-head { flex-direction: column; align-items: flex-start; }
	.admin-player { grid-template-columns: 40px minmax(0, 1fr); }
	.admin-player-end { grid-column: 2; align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 8px; }
	.facts { grid-template-columns: 1fr; gap: 2px; }
	.facts dd { margin-bottom: 8px; }
	.admin-table { font-size: 13px; }
	.log-row summary { grid-template-columns: auto minmax(0, 1fr); }
	.log-row time { display: none; }
}

/* --- Çince, Japonca, Korece: satır sonları --- */
/* Japonca başlıklar kelime ortasından bölünmesin; küçük kana (ッ, ャ) satır başına düşmesin */
:lang(ja) :is(h1, h2, h3), :lang(zh) :is(h1, h2, h3) { word-break: auto-phrase; }
:lang(ja), :lang(zh) { line-break: strict; }
/* Korece kelimeler boşlukla ayrılır: kelime içinden bölme */
:lang(ko) { word-break: keep-all; overflow-wrap: anywhere; }

/* --- Onay penceresi (confirmDialog) --- */
.confirm-dialog {
	width: min(420px, calc(100vw - 32px));
	max-width: none;
	padding: 0;
	border: 1px solid var(--border-2);
	border-radius: 18px;
	background: var(--surface-2);
	color: var(--text);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.confirm-dialog::backdrop { background: rgba(5, 4, 8, 0.66); backdrop-filter: blur(4px); }
.confirm-dialog[open] { animation: confirm-in 0.18s ease-out; }
html:has(.confirm-dialog[open]) { overflow: hidden; }
.confirm-body { display: flex; flex-direction: column; gap: 10px; padding: 24px; }
.confirm-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 4px; border-radius: 12px; background: rgba(168, 85, 247, 0.16); }
.confirm-icon img { width: 22px; height: 22px; }
.is-danger .confirm-icon { background: rgba(251, 113, 133, 0.14); }
.confirm-dialog h2 { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.confirm-dialog p { color: var(--muted); font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.confirm-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
@keyframes confirm-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
/* Telefonda alttan açılan sayfa: büyük, başparmakla ulaşılır butonlar */
@media (max-width: 599px) {
	.confirm-dialog { width: 100%; margin: auto 0 0; border-bottom: 0; border-radius: 20px 20px 0 0; }
	.confirm-dialog[open] { animation: confirm-sheet-in 0.22s ease-out; }
	.confirm-body { padding: 22px 16px calc(16px + env(safe-area-inset-bottom)); }
	.confirm-actions { flex-direction: column-reverse; }
	.confirm-actions .btn { width: 100%; min-height: 48px; justify-content: center; }
	@keyframes confirm-sheet-in { from { transform: translateY(100%); } }
}
@media (prefers-reduced-motion: reduce) {
	.confirm-dialog[open] { animation: none; }
}

/* --- Alt bilgi --- */
.site-footer { margin: 0 28px; padding: 36px 0 28px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.footer-top { display: grid; grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-brand .brand { color: var(--text); font-size: 18px; }
.footer-brand .brand img { width: 28px; height: 28px; }
.footer-brand p { max-width: 34ch; line-height: 1.55; }
.footer-status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.footer-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.footer-status.is-online .dot { background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2); }
.footer-col h2 { margin-bottom: 12px; color: var(--text); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
:lang(tr) .footer-col h2 { text-transform: none; letter-spacing: 0; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 13px; }
.footer-langs { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.footer-langs a[aria-current='true'] { color: var(--text); font-weight: 700; }
.footer-langs a { display: inline-flex; align-items: center; gap: 6px; }
.footer-langs .flag { width: 18px; height: 13px; border-radius: 2px; }
.footer-note { flex-basis: 100%; font-size: 12px; opacity: 0.8; }
@media (max-width: 1199px) {
	.footer-top { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
	.footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
	.footer-col ul { gap: 4px; }
	/* Dokunmatikte rahat basılacak bağlantılar */
	.footer-col a { display: inline-block; padding: 6px 0; }
	.footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* --- Yasal sayfalar --- */
.legal { gap: 28px; }
.legal-head { display: flex; flex-direction: column; gap: 10px; max-width: 780px; }
.legal-head h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; letter-spacing: -0.02em; }
.legal-head .lead { font-size: 17px; line-height: 1.6; color: var(--text-2); }
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 780px); gap: 40px; align-items: start; }
.legal-aside { position: sticky; top: 76px; }
.legal-toc summary { cursor: pointer; margin-bottom: 10px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; list-style: none; }
.legal-toc summary::-webkit-details-marker { display: none; }
.legal-toc ol { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.legal-toc li { counter-increment: toc; }
.legal-toc a { display: flex; gap: 8px; padding: 6px 10px; border-radius: 8px; color: var(--muted); font-size: 14px; line-height: 1.35; }
.legal-toc a::before { content: counter(toc) '.'; min-width: 1.4em; color: var(--faint, var(--muted)); font-variant-numeric: tabular-nums; }
.legal-toc a:hover { background: var(--surface-2); color: var(--text); }
.legal-body { display: flex; flex-direction: column; gap: 28px; }
.legal-summary { padding: 20px 22px; border: 1px solid var(--border-2); border-radius: 14px; background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(217, 70, 239, 0.05)); }
.legal-summary h2 { margin: 0 0 12px; font-size: 16px; }
.legal-summary ul { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.legal-summary li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.legal-summary .glyph { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--accent-soft); }
.legal-section { scroll-margin-top: 80px; }
.legal-section h2 { display: flex; align-items: baseline; gap: 8px; }
.legal-num { color: var(--accent-soft); font-variant-numeric: tabular-nums; }
.legal-section .anchor { margin-left: 2px; color: var(--muted); font-weight: 400; opacity: 0; transition: opacity 0.15s; }
.legal-section h2:hover .anchor, .legal-section .anchor:focus-visible { opacity: 1; }
.legal-related { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border: 1px solid var(--border-2); border-radius: 14px; color: var(--text); }
.legal-related strong { flex: 1; }
.legal-related .glyph { width: 18px; height: 18px; }
.legal-related:hover { border-color: var(--accent); color: var(--text); }
.glyph-check { --glyph: url('/icons/check.svg'); }
.glyph-chevron_right { --glyph: url('/icons/chevron_right.svg'); }
@media (max-width: 899px) {
	.legal-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.legal-aside { position: static; }
	.legal-toc { padding: 14px 16px; border: 1px solid var(--border-2); border-radius: 12px; background: var(--surface); }
	.legal-toc summary { margin: 0; }
	.legal-toc[open] summary { margin-bottom: 10px; }
	.legal-toc summary::after { content: '+'; float: right; font-size: 16px; line-height: 1; }
	.legal-toc[open] summary::after { content: '–'; }
}
/* Alt bilgi düzeltmeleri: sütun başlığı listenin üstünde; butonun yazısı genel bağlantı renginden etkilenmez */
.site-footer .footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.site-footer .btn-primary, .site-footer .btn-primary:hover { color: #fff; }
