:root {
    color-scheme: dark;
    --bg: #0a080b;
    --panel: #151017;
    --panel-2: #1b131d;
    --ink: #fff8fb;
    --muted: #c1afb9;
    --line: #3b2631;
    --line-soft: #2c1d27;
    --accent: #ff526b;
    --accent-soft: #ff8aa0;
    --accent-2: #ffb15c;
    --ok: #6fe0b0;
    --danger: #ff7a8f;
    --container: 1180px;
    font-family: "Segoe UI", system-ui, sans-serif;
    font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body {
    min-width: 280px;
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background: radial-gradient(ellipse at 86% 7%, #241018, transparent 43%), var(--bg);
}
[hidden] { display: none !important; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
textarea { resize: vertical; }
:focus-visible { outline: 2px solid #ff8a9e; outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.dot { color: #6f5864; padding: 0 2px; }
.site { width: min(var(--container), calc(100% - clamp(28px, 7vw, 96px))); margin: 0 auto; }
.skip { position: fixed; z-index: 30; left: 16px; top: 10px; translate: 0 -200%; padding: 10px 14px; background: #fff; color: #120610; }
.skip:focus { translate: 0; }

/* ---- Üst çubuk ---- */
.topbar { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; flex: none; align-items: center; gap: 10px; font-weight: 800; font-size: 1.02rem; letter-spacing: .2em; text-decoration: none; }
.brand-mark { width: 37px; height: 37px; display: grid; place-items: center; border: 1px solid #ad4258; border-radius: 11px; background: #351322; box-shadow: 0 5px 22px #e638532b, inset 0 1px #ff99ad30; }
.brand-mark::before { content: ""; width: 15px; height: 15px; border: 2px solid #ff667e; border-right-color: transparent; border-radius: 50%; transform: rotate(-35deg); }
.hotbar { display: flex; align-items: center; justify-content: flex-end; gap: 4px; padding: 5px; border: 1px solid #38242e; border-radius: 12px; background: #151016db; max-width: 100%; overflow-x: auto; }
.hotbar a, .hotbar button { display: inline-flex; min-height: 39px; align-items: center; justify-content: center; padding: 8px 12px; border: 0; border-radius: 8px; font-size: .86rem; font-weight: 650; white-space: nowrap; text-decoration: none; background: transparent; color: var(--muted); transition: background .18s ease, color .18s ease; }
.nav-link:hover, .nav-link[aria-current] { color: var(--ink); background: #2d1e28; }
.nav-upload { color: #ffd2a8; }
.nav-upload:hover, .nav-upload[aria-current] { background: #3a2517; color: #ffe4c6; }
.hotbar .nav-action { margin-left: 3px; color: #ffc0ca; background: #5a2131; }
.hotbar .nav-action:hover, .hotbar .nav-action[aria-current] { background: #75293d; color: #fff2f5; }
.nav-form { display: inline-flex; margin: 0; }
.view { animation: page-in .42s cubic-bezier(.2,.75,.22,1) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 42px; padding: 20px 2px 8px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: .82rem; }
.footer strong { color: var(--ink); letter-spacing: .14em; }

/* ---- Ortak ---- */
.eyebrow { margin: 0 0 10px; color: var(--accent-soft); font-size: .76rem; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; }
.lede { margin: 12px 0 0; color: var(--muted); line-height: 1.55; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    min-height: 48px; padding: 12px 17px; border: 1px solid transparent; border-radius: 10px;
    font-weight: 720; font-size: .93rem; text-align: center; text-decoration: none;
    transition: translate .18s ease, background .18s ease, box-shadow .18s ease;
}
.button:hover { translate: 0 -2px; }
.button:active { translate: 0 1px; }
.button:disabled { cursor: wait; translate: 0; }
.button.small { min-height: 38px; padding: 7px 13px; font-size: .84rem; border-radius: 8px; }
.button.full { width: 100%; }
.primary { color: #2c0710; background: linear-gradient(109deg, #ff7386, #ff4562); border-color: #ff889d; box-shadow: 0 10px 25px #ff425632, inset 0 1px #ffc5ce63; }
.primary:hover { box-shadow: 0 13px 29px #ff43584d, inset 0 1px #ffbdcb85; }
.secondary { color: #faeaf1; background: #271a23; border-color: #56404d; }
.secondary:hover { background: #382430; }
.ghost { color: var(--muted); background: transparent; border-color: #4a3542; }
.ghost:hover { background: #241820; color: var(--ink); }
.danger { color: #ffd7de; background: #5a1f2e; border-color: #8f3a4e; }
.danger:hover { background: #74263a; }
.spinner { display: none; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
form[aria-busy="true"] .spinner { display: block; }
@keyframes spin { to { rotate: 360deg; } }
.badge { display: inline-flex; align-items: center; padding: 2px 7px; border: 1px solid #57414e; border-radius: 999px; color: var(--muted); font-size: .68rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; }
.badge.admin { color: #ffd3a6; border-color: #8a5a2c; background: #3b2614; }
.badge.you { color: #ffc0ca; border-color: #783849; background: #3b1a24; }
.avatar { display: inline-grid; flex: none; place-items: center; width: 46px; height: 46px; border-radius: 14px; border: 1px solid #73384c; background: linear-gradient(140deg, #3b1a29, #24101a); color: #ffb3c1; font-weight: 800; font-size: .92rem; letter-spacing: .02em; }
.avatar.small { width: 36px; height: 36px; border-radius: 11px; font-size: .76rem; }
.notice { margin: 0; padding: 10px 12px; color: #ffc2cd; background: #4a1a2a; border: 1px solid #96445a; border-radius: 8px; line-height: 1.45; font-size: .9rem; }
.rule { margin: 30px 0; border: 0; border-top: 1px solid var(--line-soft); }
.form-title { margin: 0 0 4px; font-size: 1.25rem; letter-spacing: -.02em; }
.empty-line { color: var(--muted); padding: 18px 0; }

/* ---- Ana sayfa ---- */
.hero {
    position: relative; isolation: isolate; overflow: hidden;
    min-height: clamp(470px, 46vw, 620px); display: grid; align-items: center;
    border: 1px solid #4a2836; border-radius: 28px;
    background: linear-gradient(130deg, #1d101a, #10080e); box-shadow: 0 30px 82px #0005;
}
.hero::after { content: ""; position: absolute; inset: 20px; border: 1px solid #ffc4d321; border-radius: 16px; pointer-events: none; }
.hero-art { position: absolute; inset: 0 0 0 34%; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 19%); }
.hero-art img, .auth-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 49%; transform: translate3d(var(--art-x, 0px), var(--art-y, 0px), 0) scale(1.04); transition: transform .55s cubic-bezier(.2,.7,.24,1); animation: art-in 1.2s ease both; }
.hero-art::after { content: ""; position: absolute; inset: -1px; background: linear-gradient(90deg, #1a0e18 0%, #1a0e18ab 18%, transparent 48%), linear-gradient(0deg, #12081096, transparent 34%); }
.hero-content { position: relative; z-index: 1; width: min(720px, 64%); padding: clamp(40px, 6vw, 82px); pointer-events: none; }
.hero-content .actions, .hero-content .eyebrow, .hero-content .hero-note { pointer-events: auto; }
.hero-content h1 { margin: 0; font-size: clamp(3rem, 6.4vw, 6.2rem); line-height: .98; letter-spacing: -.072em; font-weight: 780; }
.hero-content h1 em { display: block; color: #ff7085; font-style: normal; }
.hero-content p { max-width: 30rem; margin: 22px 0 26px; color: #e3d3dc; font-size: clamp(.98rem, 2.1vw, 1.14rem); line-height: 1.58; }
.hero-note { margin: 20px 0 0 !important; color: #b797a4 !important; font-size: .82rem !important; }
@keyframes art-in { from { opacity: .42; filter: saturate(.55); } to { opacity: 1; filter: saturate(1); } }
.quick-links { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 17px; }
.quick-link { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; padding: 17px 18px; border: 1px solid #3d2835; border-radius: 14px; background: #171118; text-decoration: none; transition: border-color .2s ease, background .2s ease; }
.quick-link:hover { border-color: #985369; background: #231620; }
.quick-link strong { display: block; margin-bottom: 4px; font-size: .99rem; }
.quick-link small { display: block; color: var(--muted); font-size: .86rem; line-height: 1.35; }
.tile-icon { position: relative; width: 39px; height: 39px; display: inline-grid; place-items: center; color: #ff90a4; border: 1px solid #73384c; border-radius: 10px; background: #3b1a29; }
.account-icon::before { content: ""; position: absolute; width: 8px; height: 8px; top: 8px; border: 1.5px solid currentColor; border-radius: 50%; }
.account-icon::after { content: ""; position: absolute; width: 16px; height: 8px; bottom: 8px; border: 1.5px solid currentColor; border-radius: 9px 9px 3px 3px; }
.play-icon::before { content: ""; width: 0; height: 0; margin-left: 3px; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 10px solid currentColor; }
.key-icon::before { content: ""; width: 11px; height: 11px; border: 1.5px solid currentColor; border-radius: 50%; }
.key-icon::after { content: ""; position: absolute; width: 12px; height: 1.5px; right: 6px; background: currentColor; transform: rotate(40deg); }

/* ---- Giriş / kayıt ---- */
.auth-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 650px; overflow: hidden; border: 1px solid #412936; border-radius: 24px; background: #151017; box-shadow: 0 30px 82px #0005; }
.auth-art { position: relative; min-height: 100%; background: #240c17; overflow: hidden; border-right: 1px solid #592a3d; }
.auth-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(140deg, #11070c6e, transparent 45%, #11070c85); }
.art-outline { position: absolute; z-index: 1; inset: 19px; border: 1px solid #ffc5d438; border-radius: 13px; pointer-events: none; }
.art-caption { position: absolute; z-index: 2; left: 34px; bottom: 32px; margin: 0; font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 780; line-height: 1.05; letter-spacing: -.04em; text-shadow: 0 4px 22px #000a; }
.auth-panel { display: grid; place-items: center; padding: 38px clamp(24px, 5.5vw, 72px); background: radial-gradient(ellipse at top right, #2b1622, transparent 57%), #151017; }
.auth-body { width: min(100%, 400px); }
.auth-body h1, .private-panel h1 { margin: 0; font-size: clamp(2.3rem, 4.8vw, 3.5rem); line-height: 1; letter-spacing: -.06em; }
form[data-enhanced], .upload-form, .comment-form { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-size: .92rem; font-weight: 680; }
.field small { font-size: .82rem; color: var(--muted); line-height: 1.4; }
.field input, .field textarea {
    display: block; width: 100%; min-height: 50px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px;
    color: var(--ink); background: #1f1721; transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { min-height: 120px; line-height: 1.55; }
.field input:focus, .field textarea:focus { outline: 0; border-color: #ff8498; box-shadow: 0 0 0 3px #ff45612f; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 56px; }
.reveal-password { position: absolute; display: grid; place-items: center; right: 4px; top: 4px; width: 42px; height: 42px; border: 0; border-radius: 7px; background: transparent; color: #d6aeba; }
.reveal-password:hover { background: #fff1; color: white; }
.eye { position: relative; display: grid; place-items: center; width: 15px; height: 15px; transform: rotate(45deg); border: 1.5px solid currentColor; border-radius: 78% 10% 78% 10%; }
.eye::before { content: ""; width: 5px; height: 5px; border: 1.5px solid currentColor; border-radius: 50%; }
.reveal-password[aria-pressed="true"] .eye::after { content: ""; position: absolute; width: 19px; height: 1.5px; background: currentColor; box-shadow: 0 -1px #24161f; transform: rotate(90deg); }
.auth-switch { margin: 19px 0 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.auth-switch a { margin-left: 3px; color: #ff9bad; font-weight: 690; text-underline-offset: 3px; }

/* ---- Hesap / profil ---- */
.private-panel { width: min(100%, 720px); margin: clamp(10px, 4vw, 48px) auto 0; padding: clamp(22px, 5vw, 50px); border: 1px solid #422a37; border-radius: 21px; background: radial-gradient(ellipse at right top, #2b1623, transparent 65%), var(--panel); }
.panel-top { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 26px; }
.panel-top .eyebrow { margin-bottom: 8px; }
.panel-top .lede { margin-top: 10px; }
.account-data { display: grid; gap: 0; margin: 0 0 24px; }
.account-data div { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid #3a2733; }
.account-data dt { color: var(--muted); }
.account-data dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin: 22px 0; }
.stat { padding: 14px; border: 1px solid #3a2733; border-radius: 12px; background: #1b131d; }
.stat strong { display: block; font-size: 1.5rem; letter-spacing: -.03em; }
.stat span { color: var(--muted); font-size: .78rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
.account-actions { align-items: flex-start; }
.account-actions form { display: grid; gap: 8px; }
.profile-form { display: grid; gap: 16px; }
.profile-form .actions { margin-top: 4px; }

/* ---- İçerik sayfası ---- */
.content-shell { width: min(100%, 1000px); margin: clamp(6px, 3vw, 30px) auto 0; }
.content-shell.narrow { width: min(100%, 760px); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-head h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.06em; line-height: 1; }
.page-head .lede { margin-top: 10px; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; padding: 5px; border: 1px solid #38242e; border-radius: 12px; background: #151016; width: fit-content; max-width: 100%; }
.filter-tab { padding: 8px 14px; border-radius: 8px; color: var(--muted); font-size: .86rem; font-weight: 680; text-decoration: none; }
.filter-tab:hover { color: var(--ink); background: #2a1c26; }
.filter-tab.active { color: #2c0710; background: linear-gradient(109deg, #ff7386, #ff4562); }
.empty-state { display: grid; place-items: center; gap: 10px; padding: clamp(36px, 8vw, 76px) 24px; border: 1px dashed #4a3140; border-radius: 18px; background: #130d14; text-align: center; }
.empty-state h2 { margin: 6px 0 0; font-size: 1.5rem; letter-spacing: -.03em; }
.empty-state p { margin: 0 0 12px; color: var(--muted); }
.empty-icon { width: 54px; height: 54px; border: 1px solid #73384c; border-radius: 16px; background: #3b1a29; position: relative; }
.empty-icon::before { content: ""; position: absolute; inset: 17px; border: 1.5px solid #ff90a4; border-radius: 6px; }
.thread-list { display: grid; gap: 10px; }
.thread-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 15px; padding: 16px 17px; border: 1px solid #3a2733; border-radius: 14px; background: #171118; text-decoration: none; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.thread-card:hover { border-color: #8a4a60; background: #1e1420; transform: translateY(-1px); }
.thread-body { min-width: 0; display: grid; gap: 5px; }
.thread-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.thread-title { font-size: 1.04rem; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-snippet { color: #b9a5b0; font-size: .9rem; line-height: 1.45; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.thread-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: .79rem; }
.chip { padding: 1px 7px; border-radius: 999px; border: 1px solid #4a3542; font-size: .7rem; font-weight: 680; }
.chip.video { color: #ffc6a0; border-color: #7d4a2a; background: #33200f; }
.chip.audio { color: #a8e7cf; border-color: #2f6a55; background: #102b22; }
.chip.comment { color: #cdb9c5; }
.thread-arrow { width: 9px; height: 9px; border-top: 2px solid #9a6b7d; border-right: 2px solid #9a6b7d; transform: rotate(45deg); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 24px 0 0; }
.page-link { padding: 8px 13px; border: 1px solid #453040; border-radius: 9px; color: #f0dce5; font-size: .86rem; font-weight: 660; text-decoration: none; }
.page-link:hover { background: #241820; }
.page-link.disabled { opacity: .38; pointer-events: none; }
.page-info { color: var(--muted); font-size: .86rem; }

/* ---- Yükleme ---- */
.upload-form { padding: clamp(20px, 4vw, 34px); border: 1px solid #422a37; border-radius: 18px; background: radial-gradient(ellipse at right top, #25141e, transparent 60%), var(--panel); }
.dropzone { display: grid; place-items: center; gap: 6px; padding: 28px 20px; border: 1.5px dashed #5c3a4a; border-radius: 14px; background: #1a111c; text-align: center; cursor: pointer; transition: border-color .18s ease, background .18s ease; }
.dropzone:hover, .dropzone.is-dragging { border-color: #ff7d93; background: #21141f; }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dropzone-icon { width: 44px; height: 44px; border: 1px solid #7c3f53; border-radius: 13px; background: #3b1a29; position: relative; }
.dropzone-icon::before { content: ""; position: absolute; left: 50%; top: 12px; width: 2px; height: 16px; background: #ff90a4; transform: translateX(-50%); }
.dropzone-icon::after { content: ""; position: absolute; left: 50%; top: 12px; width: 10px; height: 10px; border-left: 2px solid #ff90a4; border-top: 2px solid #ff90a4; transform: translate(-50%, 0) rotate(45deg); }
.dropzone-title { font-weight: 700; }
.dropzone-hint { max-width: 46ch; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.file-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.file-list:empty { display: none; }
.file-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border: 1px solid #3a2733; border-radius: 9px; background: #1b131d; font-size: .86rem; }
.file-item .file-kind { color: var(--accent-soft); font-size: .7rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.file-item .file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item .file-size { color: var(--muted); font-size: .78rem; }
.file-item.is-invalid { border-color: #a44057; background: #2a1219; }
.file-item.is-invalid .file-size { color: #ff9aac; }
.upload-note { color: var(--muted); font-size: .82rem; }

/* ---- İçerik detay ---- */
.back-link { display: inline-flex; margin: 0 0 16px; color: var(--muted); font-size: .86rem; font-weight: 660; text-decoration: none; }
.back-link:hover { color: var(--ink); }
.thread-hero { padding: clamp(20px, 4vw, 34px); border: 1px solid #422a37; border-radius: 18px; background: radial-gradient(ellipse at left top, #291521, transparent 62%), var(--panel); }
.thread-header { display: flex; align-items: flex-start; gap: 14px; }
.thread-byline { min-width: 0; flex: 1; }
.thread-byline h1 { margin: 0 0 8px; font-size: clamp(1.6rem, 3.6vw, 2.5rem); line-height: 1.12; letter-spacing: -.045em; overflow-wrap: anywhere; }
.thread-byline p { margin: 0; color: var(--muted); font-size: .86rem; }
.inline-form { margin: 0; }
.thread-text { margin: 22px 0 2px; color: #eadde4; font-size: 1.02rem; line-height: 1.7; overflow-wrap: anywhere; }
.media-grid { display: grid; gap: 16px; margin-top: 18px; }
.comments { margin-top: 30px; padding: clamp(18px, 4vw, 28px); border: 1px solid #3a2733; border-radius: 16px; background: #130e14; }
.comments h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; font-size: 1.2rem; letter-spacing: -.02em; }
.comments h2 .count { display: inline-grid; place-items: center; min-width: 26px; height: 24px; padding: 0 7px; border-radius: 999px; background: #2a1c26; color: var(--muted); font-size: .78rem; }
.comment-list { display: grid; gap: 14px; margin: 0 0 22px; padding: 0; list-style: none; }
.comment { display: flex; gap: 12px; }
.comment-body { min-width: 0; flex: 1; padding-top: 2px; }
.comment-meta { margin: 0 0 4px; color: var(--muted); font-size: .8rem; }
.comment-meta strong { color: var(--ink); }
.comment-text { margin: 0; color: #e4d5dd; font-size: .94rem; line-height: 1.6; overflow-wrap: anywhere; }
.comment-form { margin-top: 6px; }
.comment-form .button { justify-self: start; }

/* ---- Özel oynatıcı ---- */
.player { margin: 0; overflow: hidden; border: 1px solid #46303d; border-radius: 16px; background: #0d090f; box-shadow: 0 16px 40px #0004; }
.player-stage { position: relative; background: #050406; overflow: hidden; }
.player-video .player-stage { aspect-ratio: 16 / 9; }
.player-video video { display: block; width: 100%; height: 100%; object-fit: contain; background: #050406; }
.bigplay { position: absolute; z-index: 2; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: 68px; height: 68px; border: 1px solid #ff9aad; border-radius: 50%; background: #ff526bd9; color: #2c0710; box-shadow: 0 14px 40px #0008; transition: opacity .2s ease, scale .2s ease; }
.bigplay:hover { scale: 1.05; }
.player.is-playing .bigplay { opacity: 0; pointer-events: none; }
.player.is-buffering .bigplay { opacity: 1; pointer-events: none; }
.play-glyph { width: 0; height: 0; display: inline-block; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 11px solid currentColor; margin-left: 3px; }
.player.is-playing [data-play] .play-glyph { width: 10px; height: 13px; margin-left: 0; border: 0; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.audio-art { position: relative; min-height: 186px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(ellipse at 50% 120%, #401624, transparent 60%), linear-gradient(140deg, #1c0e18, #0c070e); }
.audio-disc { position: relative; width: 108px; height: 108px; border-radius: 50%; background: repeating-radial-gradient(circle at center, #2a1520 0 3px, #1a0d14 4px 7px); border: 1px solid #5b2e40; box-shadow: 0 15px 40px #0008, inset 0 0 0 16px #150b11; }
.audio-disc::before { content: ""; position: absolute; inset: 42%; border-radius: 50%; background: #ff526b; box-shadow: 0 0 18px #ff526b88; }
.audio-hole { position: absolute; inset: 47%; border-radius: 50%; background: #0b070d; }
.player.is-playing .audio-disc { animation: disc-spin 4.5s linear infinite; }
@keyframes disc-spin { to { transform: rotate(360deg); } }
.equalizer { position: absolute; left: 8%; right: 8%; bottom: 22px; height: 52px; display: flex; align-items: flex-end; justify-content: center; gap: 3px; opacity: .75; }
.equalizer i { flex: 1; max-width: 6px; height: 14%; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #ff7386, #7a2438); animation: eq-bounce .9s ease-in-out infinite alternate; animation-play-state: paused; }
.player.is-playing .equalizer i { animation-play-state: running; }
.equalizer i:nth-child(3n) { animation-duration: .7s; }
.equalizer i:nth-child(3n+1) { animation-duration: 1.1s; }
.equalizer i:nth-child(4n) { animation-duration: .55s; }
.equalizer i:nth-child(5n) { animation-duration: 1.35s; }
.equalizer i:nth-child(2n) { animation-delay: -.2s; }
.equalizer i:nth-child(3n) { animation-delay: -.42s; }
.equalizer i:nth-child(5n) { animation-delay: -.66s; }
@keyframes eq-bounce { from { height: 10%; opacity: .55; } to { height: 100%; opacity: 1; } }
.player-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid #2c1d27; background: #141017; }
.pc-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #f4e7ee; }
.pc-btn:hover { background: #2a1c26; border-color: #4a3542; }
.pc-time { color: var(--muted); font-size: .76rem; font-variant-numeric: tabular-nums; min-width: 38px; text-align: center; }
.pc-seek { flex: 1; min-width: 120px; height: 6px; margin: 0 2px; border-radius: 999px; appearance: none; -webkit-appearance: none; cursor: pointer;
    --progress: 0%; --buffered: 0%;
    background: linear-gradient(to right, var(--accent) 0 var(--progress), #6b4d5c var(--progress) var(--buffered), #2e2029 var(--buffered) 100%);
}
.pc-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff4f7; border: 2px solid #ff526b; box-shadow: 0 2px 8px #0008; }
.pc-seek::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff4f7; border: 2px solid #ff526b; }
.pc-seek::-webkit-slider-runnable-track { background: transparent; }
.pc-seek::-moz-range-track { background: transparent; }
.pc-volume { width: 72px; height: 5px; appearance: none; -webkit-appearance: none; border-radius: 999px; cursor: pointer; background: linear-gradient(to right, #c9b2bd 0 var(--volume, 100%), #332530 var(--volume, 100%) 100%); }
.pc-volume::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #f6e9ef; }
.pc-volume::-moz-range-thumb { width: 11px; height: 11px; border: 0; border-radius: 50%; background: #f6e9ef; }
.pc-volume::-webkit-slider-runnable-track { background: transparent; }
.pc-volume::-moz-range-track { background: transparent; }
.pc-speed { width: auto; min-width: 42px; padding: 0 7px; font-size: .76rem; font-weight: 720; color: #ffd9b0; }
.pc-download { display: inline-flex; align-items: center; height: 34px; padding: 0 10px; border: 1px solid #4a3542; border-radius: 8px; color: #e9d8e1; font-size: .76rem; font-weight: 680; text-decoration: none; }
.pc-download:hover { background: #2a1c26; }
.vol-glyph { position: relative; display: inline-block; width: 14px; height: 12px; border: 1.5px solid currentColor; border-right: 0; border-radius: 2px 0 0 2px; }
.vol-glyph::before { content: ""; position: absolute; right: -7px; top: 50%; translate: 0 -50%; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-right: 7px solid currentColor; }
.vol-glyph::after { content: ""; position: absolute; right: -10px; top: 50%; translate: 0 -50%; width: 4px; height: 4px; border: 1.5px solid currentColor; border-left: 0; border-radius: 0 8px 8px 0; opacity: .85; }
.player.is-muted .vol-glyph::after { width: 9px; height: 1.5px; border: 0; background: currentColor; border-radius: 0; transform: rotate(-45deg); }
.fs-glyph { width: 13px; height: 13px; border: 1.5px solid currentColor; border-radius: 2px; box-shadow: inset 0 0 0 2px #141017; }
.player-info { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 11px 13px; border-top: 1px solid #241822; background: #110d13; }
.player-info strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.player-info small { color: var(--muted); font-size: .76rem; }
.type-chip { padding: 2px 7px; border-radius: 999px; font-size: .66rem; font-weight: 780; letter-spacing: .07em; text-transform: uppercase; }
.type-chip.video { color: #ffc6a0; border: 1px solid #7d4a2a; background: #33200f; }
.type-chip.audio { color: #a8e7cf; border: 1px solid #2f6a55; background: #102b22; }
.player.is-error .player-stage::after { content: "Bu dosya tarayıcıda oynatılamıyor. İndirip deneyebilirsin."; position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; color: #ffc2cd; background: #160a10ee; font-size: .9rem; }

/* ---- Yönetim ---- */
.admin-stats { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.admin-links { margin-top: 22px; }
.invite-form { display: grid; gap: 16px; margin-bottom: 24px; padding: clamp(18px, 4vw, 28px); border: 1px solid #422a37; border-radius: 16px; background: radial-gradient(ellipse at right top, #25141e, transparent 60%), var(--panel); }
.form-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.form-row .grow { flex: 1 1 220px; }
.form-row .field { flex: 0 1 150px; }
.invite-form .button { justify-self: start; }
.invite-list { display: grid; gap: 10px; }
.invite-card { padding: 15px 17px; border: 1px solid #3a2733; border-radius: 13px; background: #171118; }
.invite-card.is-passive { opacity: .62; }
.invite-main { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.invite-code { padding: 5px 9px; border: 1px dashed #6a4556; border-radius: 7px; background: #0f0a11; color: #ffd9e2; font-size: .92rem; letter-spacing: .06em; }
.copy-btn { padding: 4px 9px; border: 1px solid #4a3542; border-radius: 7px; background: transparent; color: var(--muted); font-size: .74rem; font-weight: 680; }
.copy-btn:hover { background: #2a1c26; color: var(--ink); }
.status-pill { padding: 2px 8px; border-radius: 999px; font-size: .68rem; font-weight: 760; letter-spacing: .04em; }
.status-pill.ok { color: #a8e7cf; border: 1px solid #2f6a55; background: #102b22; }
.status-pill.off { color: #d3aeb9; border: 1px solid #5a3a46; background: #241820; }
.invite-meta { margin: 10px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.invite-card .inline-form { margin-top: 10px; }
.user-list { display: grid; gap: 10px; }
.user-card { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; padding: 14px 16px; border: 1px solid #3a2733; border-radius: 13px; background: #171118; }
.user-main { flex: 1 1 240px; min-width: 0; }
.user-name { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 0 0 4px; font-weight: 700; }
.user-meta { margin: 0; color: var(--muted); font-size: .8rem; }

/* ---- Hata / bildirim ---- */
.error-panel { text-align: center; }
.error-code { margin: 0 0 8px; color: #ff849b; font-size: .9rem; font-weight: 800; letter-spacing: .3em; }
.error-panel h1 { margin-bottom: 14px; }
.error-panel .lede { max-width: 34rem; margin-inline: auto; }
.error-panel .button { margin-top: 18px; }
.toast { position: fixed; z-index: 25; right: 20px; bottom: 20px; max-width: min(400px, calc(100vw - 40px)); padding: 13px 16px; border: 1px solid #885169; border-radius: 10px; background: #301d2b; box-shadow: 0 12px 35px #0007; color: var(--ink); font-weight: 650; line-height: 1.4; animation: page-in .22s ease both; }
.toast:empty { display: none; }

/* ---- Duyarlı ---- */
@media (max-width: 820px) {
    .site { width: calc(100% - 30px); }
    .topbar { flex-wrap: wrap; gap: 10px; padding: 10px 0; min-height: 0; }
    .hotbar { width: 100%; justify-content: flex-start; }
    .hero { min-height: 540px; }
    .hero-art { inset: 0 0 19%; mask-image: none; }
    .hero-art img { object-position: center 51%; }
    .hero-art::after { background: linear-gradient(0deg, #1a0e18 1%, #1a0e1885 53%, transparent 80%); }
    .hero-content { align-self: end; width: 100%; padding: 33px 27px; }
    .hero-content p { margin: 16px 0 20px; }
    .hero::after { inset: 11px; border-radius: 17px; }
    .auth-shell { width: min(100%, 540px); margin-inline: auto; grid-template-columns: 1fr; min-height: 0; }
    .auth-art { min-height: clamp(150px, 24svh, 230px); border-right: 0; border-bottom: 1px solid #592a3d; }
    .art-caption { left: 22px; bottom: 20px; }
    .art-outline { inset: 9px; }
    .auth-panel { padding-block: 28px 32px; }
    .page-head { flex-direction: column; align-items: flex-start; }
    .panel-top { flex-direction: row; }
    .pc-volume { display: none; }
    .pc-download { margin-left: auto; }
}
@media (max-width: 560px) {
    .brand { font-size: .86rem; gap: 7px; letter-spacing: .14em; }
    .brand-mark { width: 32px; height: 32px; border-radius: 9px; }
    .hotbar a, .hotbar button { padding: 7px 9px; font-size: .79rem; min-height: 37px; }
    .hero-content h1 { font-size: clamp(2.6rem, 11vw, 3.8rem); }
    .quick-links { grid-template-columns: 1fr; }
    .thread-card { grid-template-columns: auto 1fr; }
    .thread-arrow { display: none; }
    .thread-title { white-space: normal; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .account-data div { grid-template-columns: 1fr; gap: 2px; }
    .player-bar { gap: 6px; padding: 9px 10px; }
    .pc-volume { display: none; }
    .pc-seek { min-width: 90px; }
    .pc-download { margin-left: 0; }
    .player-info strong { flex-basis: 100%; }
    .footer { flex-direction: column; }
}
@media (max-width: 360px) {
    .brand > span:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .hero-art img, .auth-art img { transform: none; }
}

.profile-photo { object-fit: cover; border-radius: 50%; }

.profile-avatar-editor {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(.85rem, 3vw, 1.5rem);
    align-items: center;
    padding: clamp(.9rem, 3vw, 1.4rem);
    border: 1px solid #674357;
    border-radius: 18px;
    background: radial-gradient(ellipse at left top, #44253c, #1d151e 70%);
}
.avatar-editor-preview {
    display: grid;
    place-items: center;
    width: clamp(75px, 17vw, 110px);
    aspect-ratio: 1;
    overflow: hidden;
    border: 2px solid #c6759e;
    border-radius: 50%;
    color: #ffe1ef;
    background: #472740;
    font-size: 1.65rem;
    font-weight: 750;
}
.avatar-editor-preview > * { grid-area: 1 / 1; }
.avatar-editor-preview :is(canvas, img) { width: 100%; height: auto; object-fit: cover; }
.avatar-drop {
    display: block;
    padding: .5rem;
    border: 1px dashed #98617e;
    border-radius: 10px;
}
.avatar-drop:focus-within, .avatar-drop.is-dragging { border-color: #ffc2de; background: #40233a; }
.avatar-drop input { width: 100%; min-width: 0; cursor: pointer; }
.avatar-drop input::file-selector-button {
    margin-inline-end: .5rem;
    padding: .45rem .65rem;
    border: 0;
    border-radius: 7px;
    color: #ffe6f4;
    background: #6b3654;
    cursor: pointer;
}
.profile-avatar-editor [data-avatar-status]:empty { display: none; }
.profile-avatar-editor [data-avatar-remove] { justify-self: start; min-height: 44px; }
@media (max-width: 460px) {
    .profile-avatar-editor { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
    .profile-avatar-editor, .avatar-editor-preview canvas:not([hidden]),
    .community-thread:nth-child(-n+5), .room-console {
        animation: krnz-reveal .32s ease-out both;
    }
    .community-thread:nth-child(2) { animation-delay: 35ms; }
    .community-thread:nth-child(3) { animation-delay: 65ms; }
    .community-thread:nth-child(4) { animation-delay: 95ms; }
    .community-thread:nth-child(5) { animation-delay: 125ms; }
    @keyframes krnz-reveal {
        from { opacity: .35; translate: 0 6px; }
        to { opacity: 1; translate: 0 0; }
    }
}

.voice-dock {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 24;
    display: flex;
    align-items: center;
    gap: .55rem;
    max-width: calc(100vw - 2rem);
    padding: .6rem;
    border: 1px solid #82566f;
    border-radius: 15px;
    background: #281c29;
    box-shadow: 0 8px 32px #0009;
}
.voice-dock[hidden] { display: none; }
.voice-dock div { min-width: 0; padding-inline: .25rem; }
.voice-dock small, .voice-dock a { display: block; }
.voice-dock small { color: #b7ebcb; font-size: .73rem; }
.voice-dock a { color: #ffe2f2; font-weight: 700; overflow-wrap: anywhere; }
.voice-dock .button { min-height: 44px; }
body:has(.voice-dock:not([hidden])) .toast { margin-bottom: 76px; }
@media (max-width: 640px) {
    .voice-dock { bottom: calc(68px + env(safe-area-inset-bottom)); }
}

.voice-dock .button { display: inline-flex; gap: .4rem; align-items: center; }
.voice-dock .voice-dock-room { text-align: left; min-width: 0; color: #ffe2f2; }
.voice-dock-name { display: flex; align-items: center; gap: .25rem; overflow-wrap: anywhere; }
.voice-dock-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    overflow: hidden;
    border-radius: 50%;
    background: #59354f;
}
.voice-dock-avatar > * { grid-area: 1 / 1; }
.voice-dock-avatar img { object-fit: cover; }
.voice-icon { display: inline-block; flex: 0 0 14px; width: 14px; height: 14px; }
.voice-icon-room { background: currentColor; clip-path: polygon(0 34%, 28% 34%, 60% 7%, 60% 93%, 28% 66%, 0 66%, 0 34%, 80% 34%, 100% 50%, 80% 66%); }
.voice-icon-mic { position: relative; border: 1px solid currentColor; border-top: 0; border-radius: 0 0 7px 7px; }
.voice-icon-mic::before { content: ''; position: absolute; inset: 0 3px 3px; border: 1px solid currentColor; border-radius: 6px; }
.is-muted .voice-icon-mic::after { content: ''; position: absolute; left: 0; right: 0; top: 6px; border-top: 1px solid; transform: rotate(-45deg); }
.voice-icon-exit { background: currentColor; clip-path: polygon(0 0, 65% 0, 65% 17%, 15% 17%, 15% 83%, 65% 83%, 65% 100%, 0 100%, 0 0, 64% 42%, 64% 18%, 100% 50%, 64% 82%, 64% 58%, 28% 58%, 28% 42%); }
