/* accounts, settings, shoutbox — loaded after main.css */
.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; }

/* top-right account chip */
.status a, .status button { color: #fff; text-decoration: none; font: inherit; background: none; border: 0; padding: 0; }
.status a:hover, .status button:hover { color: var(--pink-soft); }
.status .sep { color: var(--muted); }
.status form.inline { display: inline; margin: 0; }
.status .dot.off { background: var(--muted); box-shadow: none; animation: none; }

/* flash toasts */
.toasts { position: fixed; top: 64px; right: 14px; z-index: 60; display: grid; gap: 8px; max-width: min(380px, calc(100vw - 28px)); transition: opacity .6s, transform .6s; }
.toasts.gone { opacity: 0; transform: translateY(-10px); pointer-events: none; }
.toast { margin: 0; padding: 8px 14px; font-family: var(--pixel); font-size: 20px; background: var(--panel); border: 2px solid; box-shadow: 4px 4px 0 #000; }
.toast.ok { border-color: #39ff88; color: #c9ffe0; }
.toast.err { border-color: #ff5470; color: #ffd0d8; }

/* auth cards */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 100px 0 40px; }
.auth-wrap { display: grid; place-items: center; }
.auth-card { width: min(520px, 100%); }
.auth-title { margin-bottom: 14px; }
.auth-lede { margin: 0 0 18px; color: #e9d5df; }
.auth-page footer { margin-top: 0; }
.muted-link { color: var(--muted); font-size: 13px; }
.muted-link:hover { color: #fff; }
.hint { color: var(--muted); font-size: 12px; }
.form-errors { margin: 0 0 16px; padding: 10px 14px 10px 30px; border: 2px solid #ff5470; background: rgba(255, 84, 112, .08); color: #ffd0d8; font-size: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: #e9d5df; }
.check input { accent-color: var(--pink); width: 18px; height: 18px; margin-top: 1px; flex: none; }
.prefix-input { display: flex; align-items: stretch; border: 2px solid var(--line); background: #000; }
.prefix-input:focus-within { border-color: var(--pink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pink) 25%, transparent); }
.prefix-input span { display: grid; place-items: center; padding: 0 4px 0 12px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.field .prefix-input input { border: 0; box-shadow: none; padding-left: 2px; min-width: 0; }
.field .prefix-input input:focus { box-shadow: none; }

/* settings */
.settings { padding: 100px 0 30px; }
.settings .wrap { max-width: 860px; }
.notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; margin-bottom: 22px; border: 2px dashed #ffd23f; background: rgba(255, 210, 63, .07); }
.notice p, .notice form { margin: 0; }
.settings-top { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 22px; }
.mypage { font-family: var(--pixel); font-size: 22px; color: var(--pink-soft); padding: 2px 10px; border: 1px dashed var(--line); overflow-wrap: anywhere; }
.tabs { position: sticky; top: 56px; z-index: 30; display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 0; margin-bottom: 18px; background: linear-gradient(var(--bg) 70%, transparent); }
.tabs a { font-family: var(--pixel); font-size: 21px; color: #fff; text-decoration: none; padding: 2px 12px; border: 1px solid var(--line); background: var(--panel); }
.tabs a:hover { border-color: var(--pink); }
.set-card { margin-bottom: 28px; scroll-margin-top: 70px; padding: 0; }
.field-row.three { grid-template-columns: repeat(3, 1fr); }
.field input[type=color] { height: 44px; padding: 4px; }
.checks { display: grid; gap: 10px; }
.link-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.link-row { display: grid; grid-template-columns: 1fr 1.6fr 120px auto; gap: 8px; align-items: center; }
.link-row input, .link-row select { width: 100%; font: inherit; font-size: 13px; color: #fff; padding: 8px 10px; background: #000; border: 2px solid var(--line); border-radius: 0; }
.link-row input:focus, .link-row select:focus { outline: none; border-color: var(--pink); }
.row-btns { display: flex; gap: 4px; }
.row-btns button { width: 32px; height: 36px; font-family: var(--pixel); font-size: 20px; color: #fff; background: var(--panel); border: 1px solid var(--line); }
.row-btns button:hover { border-color: var(--pink); color: var(--pink-soft); }
.avatar-box { display: grid; grid-template-columns: 140px 1fr; gap: 22px; align-items: start; }
.avatar-preview img, .avatar-empty { width: 128px; height: 128px; display: grid; place-items: center; border: 3px solid var(--pink); background: color-mix(in srgb, var(--pink) 8%, transparent); object-fit: cover; }
.avatar-empty i { font-size: 50px; color: var(--pink); }
.field input[type=file] { padding: 8px; }
.security-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.security-grid h3 { margin: 0; font-family: var(--pixel); font-weight: 400; font-size: 26px; color: var(--pink-soft); }
.security-grid form + form { margin-top: 28px; }
form.danger { padding: 16px; border: 2px dashed #ff5470; }
.btn.danger-btn { background: linear-gradient(180deg, #ff5470, #b0001e); border-color: #ff5470; }

/* shoutbox */
.shoutbox .win-body { display: grid; gap: 12px; }
.sb-list { list-style: none; margin: 0; padding: 4px 6px 4px 0; height: 380px; overflow-y: auto; display: grid; align-content: start; gap: 10px; scrollbar-color: var(--pink) #000; }
.sb-empty { color: var(--muted); font-family: var(--pixel); font-size: 20px; padding: 10px; }
.sb-msg { display: grid; grid-template-columns: 36px 1fr; gap: 10px; padding: 8px 10px; background: rgba(255, 255, 255, .025); border-left: 2px solid var(--line); }
.sb-msg:hover { border-left-color: var(--pink); background: color-mix(in srgb, var(--pink) 5%, transparent); }
.sb-av { position: relative; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--pink); background: color-mix(in srgb, var(--pink) 10%, transparent); color: var(--pink); font-family: var(--pixel); font-size: 22px; text-decoration: none; overflow: hidden; }
.sb-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sb-main { min-width: 0; }
.sb-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.sb-who { color: #fff; font-weight: 700; text-decoration: none; }
.sb-who:hover { color: var(--pink-soft); }
.sb-who.admin::after { content: " \2726 admin"; font-family: var(--pixel); font-weight: 400; color: var(--pink); }
.sb-user, .sb-head time { color: var(--muted); font-size: 12px; }
.sb-act { margin-left: auto; font-family: var(--pixel); font-size: 17px; color: var(--muted); background: none; border: 1px solid transparent; padding: 0 6px; }
.sb-act + .sb-act { margin-left: 0; }
.sb-act:hover { color: #ff5470; border-color: #ff5470; }
.sb-body { margin: 2px 0 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.sb-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.sb-form input { font: inherit; color: #fff; padding: 10px 12px; background: #000; border: 2px solid var(--line); min-width: 0; }
.sb-form input:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pink) 25%, transparent); }
.sb-form .btn { min-width: 96px; justify-content: center; }
.sb-hint { margin: 0; color: var(--muted); font-size: 12px; }
.sb-gate { margin: 0; padding: 12px; text-align: center; border: 1px dashed var(--line); font-family: var(--pixel); font-size: 21px; }
.sb-gate a { color: var(--pink-soft); }
.shoutbox .form-status { font-size: 19px; }

@media (max-width: 700px) {
    .link-row { grid-template-columns: 1fr auto; }
    .link-row input[name="link_url[]"] { grid-column: 1 / -1; }
    .security-grid, .avatar-box { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .status { display: flex; top: auto; bottom: 12px; right: 12px; font-size: 18px; }
}
.h2-handle { font-family: var(--pixel); font-weight: 400; font-size: .7em; -webkit-text-fill-color: var(--pink-soft); filter: none; }

/* discord */
.discord-box { display: grid; grid-template-columns: 70px 1fr; gap: 18px; align-items: start; }
.discord-box p { margin: 0 0 12px; }
.discord-logo { font-size: 54px; color: #8a8dff; text-shadow: 0 0 18px rgba(138, 141, 255, .6); }
.inline-form { margin: 0 0 10px; }
.btn.discord-btn { background: linear-gradient(180deg, #8a8dff 0%, #5865f2 50%, #3c45c4 55%, #5865f2 100%); border-color: #8a8dff; box-shadow: inset 0 2px 0 rgba(255,255,255,.5), 4px 4px 0 #1e2170; text-shadow: 1px 1px 0 #1e2170; }
.sb-dc { color: #8a8dff; font-size: 13px; }
.linkish { font: inherit; color: #8a8dff; background: none; border: 0; padding: 0; text-decoration: underline; }
.linkish:hover { color: #fff; }
form.sb-gate { display: block; }

/* avatar frame (animated gifs are cropped inside it) + cropper */
.av-frame { position: relative; display: block; width: 128px; height: 128px; overflow: hidden; border: 3px solid var(--pink); background: color-mix(in srgb, var(--pink) 8%, transparent); }
.av-frame img { width: 100%; height: 100%; object-fit: cover; display: block; border: 0; }
.cropper { display: grid; gap: 8px; justify-items: start; }
.cropper[hidden] { display: none; }
.crop-stage {
    position: relative; width: 256px; height: 256px; max-width: 100%; overflow: hidden; touch-action: none; cursor: grab;
    border: 2px solid var(--pink); background: #000; box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0) inset;
}
.crop-stage:active { cursor: grabbing; }
.crop-stage img { position: absolute; max-width: none; user-select: none; pointer-events: none; }
.crop-zoom { display: flex; align-items: center; gap: 10px; font-family: var(--pixel); font-size: 18px; color: var(--pink-soft); }
.crop-zoom input { accent-color: var(--pink); width: 200px; }

/* section order */
.order-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-width: 360px; }
.order-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 10px; border: 1px solid var(--line); background: #000; font-family: var(--pixel); font-size: 19px; }
.order-list li::before { content: "≡"; color: var(--muted); margin-right: 8px; }
.order-list li span:first-child { flex: 1; }

/* background card */
.bg-previews { display: flex; flex-wrap: wrap; gap: 14px; margin: 10px 0 16px; }
.bg-thumb { margin: 0; width: 220px; border: 2px solid var(--pink); background: #000; }
.bg-thumb.pending { border-style: dashed; border-color: #ffd23f; }
.bg-thumb img { display: block; width: 100%; height: 124px; object-fit: cover; }
.bg-thumb figcaption { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 8px; font-family: var(--pixel); font-size: 17px; }
.bg-thumb .inline-form { margin: 0; }
.field input[type=range] { accent-color: var(--pink); padding: 0; box-shadow: none; border: 0; background: none; }

/* admin panel */
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 24px; }
.admin-stats div { padding: 12px 14px; border: 1px solid var(--line); background: var(--panel); display: grid; }
.admin-stats b { font-family: var(--pixel); font-weight: 400; font-size: 36px; line-height: 1; color: #fff; }
.admin-stats span { font-family: var(--pixel); font-size: 17px; color: var(--muted); }
.admin-queue { display: grid; gap: 18px; }
.admin-item { display: grid; grid-template-columns: 260px 1fr; grid-template-rows: auto 1fr; gap: 6px 18px; padding-bottom: 18px; border-bottom: 1px dashed var(--line); }
.admin-item > a { grid-row: span 2; }
.admin-item img { display: block; width: 100%; height: 160px; object-fit: cover; border: 2px dashed #ffd23f; background: #000; }
.admin-item p { margin: 0; display: grid; gap: 2px; }
.admin-item p a { color: #fff; font-weight: 700; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.admin-actions form { margin: 0; }
.admin-reject { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-reject input { font: inherit; font-size: 13px; color: #fff; padding: 8px 10px; background: #000; border: 2px solid var(--line); min-width: 220px; }
@media (max-width: 700px) { .admin-item { grid-template-columns: 1fr; } .admin-item > a { grid-row: auto; } }
.av-pending { display: grid; justify-items: start; gap: 4px; margin-top: 12px; }
.av-pending small { font-family: var(--pixel); font-size: 16px; color: #ffd23f; }
.av-frame.pending { border-style: dashed; border-color: #ffd23f; }
.admin-item img.av-sq { width: 160px; height: 160px; }
.admin-item .av-frame { width: 160px; height: 160px; border-color: #ffd23f; border-style: dashed; }

/* status dots */
.status .dot.dnd { background: #ff3b5c; box-shadow: 0 0 10px #ff3b5c; animation: none; }
.vbadge { color: #39ff88; font-size: .78em; margin-left: 4px; vertical-align: .05em; filter: drop-shadow(0 0 4px rgba(57, 255, 136, .5)); }

/* shoutbox + online panel */
.wall-grid { display: grid; grid-template-columns: 1fr 260px; gap: 22px; align-items: start; }
.online-panel .win-body { padding: 10px; }
.online-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 470px; overflow-y: auto; }
.online-list a { display: grid; grid-template-columns: 30px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 6px 8px; color: #fff; text-decoration: none; border: 1px solid transparent; }
.online-list a:hover { border-color: var(--pink); background: color-mix(in srgb, var(--pink) 8%, transparent); }
.on-av { grid-row: span 2; position: relative; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--pink); background: color-mix(in srgb, var(--pink) 10%, transparent); color: var(--pink); font-family: var(--pixel); font-size: 18px; }
.on-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.on-av-img { position: absolute; inset: 0; overflow: hidden; }
.on-dot { position: absolute; right: -4px; bottom: -4px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--panel); z-index: 2; }
.on-dot.online { background: #39ff88; box-shadow: 0 0 6px #39ff88; }
.on-dot.afk { background: #ffd23f; }
.on-dot.dnd { background: #ff3b5c; }
.on-name { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.on-status { font-family: var(--pixel); font-size: 15px; color: var(--muted); line-height: 1; }
.online-empty { color: var(--muted); font-family: var(--pixel); font-size: 18px; padding: 8px; }
@media (max-width: 860px) { .wall-grid { grid-template-columns: 1fr; } }
.admin-verify { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 8px; }
.admin-verify .prefix-input { min-width: 240px; }
.admin-verified-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.admin-verified-list li { display: flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line); background: #000; font-size: 14px; }
.admin-verified-list a { color: #fff; }
.admin-verified-list .inline-form { margin: 0 0 0 8px; }
.pf-admin-btn { font: inherit; color: #ff5470; background: none; border: 1px dashed #ff5470; padding: 0 6px; cursor: pointer; }
.admin-num { width: 110px; font: inherit; color: #fff; padding: 8px 10px; background: #000; border: 2px solid var(--line); }
.admin-reason { flex: 1; min-width: 220px; font: inherit; font-size: 13px; color: #fff; padding: 8px 10px; background: #000; border: 2px solid var(--line); }
.admin-verify label { font-family: var(--pixel); font-size: 19px; color: var(--pink-soft); }
.admin-ban-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.admin-ban-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 6px 10px; border: 1px solid #ff5470; background: rgba(255, 84, 112, .06); font-size: 14px; }
.admin-ban-list a { color: #fff; font-weight: 700; }

/* banned profile */
.banned-card .win-body { display: grid; justify-items: center; text-align: center; gap: 6px; }
.banned-av { width: 110px; height: 110px; display: grid; place-items: center; border: 3px solid #ff5470; background: rgba(255, 84, 112, .08); }
.banned-av i { font-size: 54px; color: #ff5470; }
.banned-handle { margin: 8px 0 0; font-family: var(--pixel); font-size: 30px; color: var(--muted); text-decoration: line-through; }
.banned-stamp {
    margin: 0; padding: 2px 18px; font-family: var(--gothic); font-size: 46px; line-height: 1.1; color: #ff3b5c;
    border: 3px solid #ff3b5c; transform: rotate(-4deg); text-shadow: 0 0 12px rgba(255, 59, 92, .6);
}
.banned-dc { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.banned-dc a { color: #8a8dff; }
.banned-dc i { color: #8a8dff; }
.lastfm-logo { color: #d51007 !important; text-shadow: 0 0 18px rgba(213, 16, 7, .55) !important; }
.btn.lastfm-btn { background: linear-gradient(180deg, #ff4b3e 0%, #d51007 50%, #a00c05 55%, #d51007 100%); border-color: #ff4b3e; box-shadow: inset 0 2px 0 rgba(255,255,255,.45), 4px 4px 0 #4a0602; text-shadow: 1px 1px 0 #4a0602; }

/* realmeye card */
.re-list { list-style: none; margin: 10px 0 16px; padding: 0; display: grid; gap: 6px; }
.re-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--line); background: #000; }
.re-list a { color: #fff; font-weight: 700; }
.re-list .inline-form { margin: 0 0 0 auto; }
.re-pending { display: grid; gap: 12px; padding: 14px; border: 2px dashed #ffd23f; background: rgba(255, 210, 63, .05); }
.re-pending p { margin: 0; }
.re-pending a { color: var(--pink-soft); }
.re-pending .form-foot { justify-content: flex-end; gap: 10px; }
.ap-code { display: flex; align-items: stretch; gap: 8px; }
.ap-code code { flex: 1; padding: 12px 14px; font-family: var(--mono); font-size: 20px; letter-spacing: 1px; color: #fff; background: #000; border: 2px dashed var(--pink); user-select: all; overflow-wrap: anywhere; }
.ap-copy { padding: 0 16px; font-family: var(--pixel); font-size: 20px; color: #fff; background: var(--panel); border: 2px solid var(--pink); cursor: pointer; }
.re-add { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.re-add .field { flex: 1; min-width: 200px; }
.online-total { margin: 0 0 8px; padding: 4px 8px 8px; border-bottom: 1px dashed var(--line); font-family: var(--pixel); font-size: 18px; color: var(--muted); }
.online-total b { font-weight: 400; color: #fff; font-size: 22px; }

/* floating jump-to-shoutbox button (homepage) */
.jump-wall {
    position: fixed; right: 18px; bottom: 18px; z-index: 45;
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
    font-family: var(--pixel); font-size: 20px; color: #fff; text-decoration: none;
    background: linear-gradient(180deg, color-mix(in srgb, var(--pink) 78%, #fff) 0%, var(--pink) 45%, color-mix(in srgb, var(--pink) 77%, #000) 55%, var(--pink) 100%);
    border: 2px solid var(--pink); box-shadow: inset 0 2px 0 rgba(255,255,255,.5), 4px 4px 0 var(--deep), 0 0 22px color-mix(in srgb, var(--pink) 50%, transparent);
    transition: transform .2s, opacity .2s;
}
.jump-wall:hover { transform: translate(-2px, -2px); }
.jump-wall.gone { opacity: 0; transform: translateY(14px); pointer-events: none; }
.jump-wall:focus-visible { outline: 2px dashed #fff; outline-offset: 4px; }
@media (max-width: 560px) {
    .jump-wall { right: auto; left: 12px; bottom: 12px; padding: 8px 12px; }
    .jump-wall span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .jump-wall { transition: none; } }

/* standalone /shoutbox page */
.wall-only { min-height: 100vh; padding: 96px 0 40px; }
.wall-only .reveal { opacity: 1; transform: none; }
.wall-only .sb-list { height: min(60vh, 560px); }
.wall-only .online-list { max-height: min(60vh, 560px); }
.wall-back { margin: 18px 0 0; font-family: var(--pixel); font-size: 20px; }
.wall-back a { color: var(--pink-soft); }

/* section heading with a button on the right (shoutbox "open in new tab") */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 28px; }
.section-head .h2 { margin: 0; }
.pop-out { font-size: 20px; padding: 6px 14px; margin-bottom: 6px; }
.av-msg { display: block; margin-top: 6px; color: #ff6b8a; }
.av-msg[hidden] { display: none; }

/* release editor (account/releases + account/release) */
.rel-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rel-list li { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 14px; padding: 8px; border: 1px solid var(--line); background: #000; }
.rel-list .rel-cover { width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid var(--pink); color: var(--pink); font-size: 26px; overflow: hidden; }
.rel-list .rel-cover img { width: 100%; height: 100%; object-fit: cover; }
.rel-main { display: grid; min-width: 0; }
.rel-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rel-main small { font-family: var(--pixel); font-size: 17px; color: var(--muted); }
.rel-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rel-actions .btn, .rel-status .btn { font-size: 18px; padding: 4px 12px; }
.rel-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0 22px; }
.pill { padding: 3px 10px; border: 1px solid var(--line); background: #000; font-family: var(--pixel); font-size: 18px; color: var(--muted); }
.pill.on { border-color: #39ff88; color: #39ff88; }
.svc-row { border: 1px solid var(--line); padding: 8px 12px 12px; margin: 0 0 12px; }
.svc-row legend { padding: 0 6px; font-family: var(--pixel); font-size: 20px; }
.cover-thumb img { height: 124px; width: 124px; }
.cover-thumb { width: auto; }
.check-inline { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-family: var(--pixel); font-size: 18px; }
.credit-list { display: grid; gap: 8px; margin-bottom: 10px; }
.credit-row { display: grid; grid-template-columns: minmax(120px, 220px) 1fr auto; gap: 8px; align-items: start; }
.credit-row textarea { min-height: 42px; }
.credit-del { font-size: 18px; padding: 8px; }
.snippet-row { display: grid; gap: 10px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.sn-top { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; }
.sn-top audio { width: 100%; height: 36px; }
.sn-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) 80px auto; gap: 10px; align-items: end; }
.check-inline input { width: auto; height: auto; margin: 0; accent-color: var(--pink); }
.snippet-row .field, .lock-field { margin: 0; }
.lock-field { display: grid; gap: 4px; }
.lock-field input[type="datetime-local"]:disabled { opacity: .4; }
.snippet-state { font-family: var(--pixel); font-size: 17px; color: var(--muted); white-space: nowrap; align-self: center; }
.snippet-btns { display: flex; gap: 6px; }
.snippet-btns .btn { font-size: 17px; padding: 4px 10px; }
.snippet-new { margin-top: 18px; }
@media (max-width: 900px) {
    .sn-fields { grid-template-columns: 1fr 1fr; }
    .credit-row { grid-template-columns: 1fr auto; }
    .credit-row textarea { grid-column: 1 / 2; }
    .rel-list li { grid-template-columns: 56px 1fr; }
    .rel-actions { grid-column: 1 / -1; }
}
.cron-hint code { display: block; padding: 6px 8px; margin: 6px 0; background: #000; border: 1px solid var(--line); word-break: break-all; }

/* DD/MM/YYYY date picker (scripts/datepicker.js) */
.dtp { position: relative; display: grid; grid-template-columns: minmax(118px, 1fr) auto 84px; gap: 6px; align-items: stretch; max-width: 360px; }
.dtp input { min-width: 0; font-variant-numeric: tabular-nums; }
.dtp.off { opacity: .45; }
.dtp-open { display: grid; place-items: center; width: 42px; border: 1px solid var(--pink); background: color-mix(in srgb, var(--pink) 10%, transparent); color: var(--pink); font-size: 18px; }
.dtp-open:hover, .dtp-open[aria-expanded="true"] { background: var(--pink); color: #000; }
.dtp-open:disabled { pointer-events: none; }
.dtp-pop {
    position: absolute; top: calc(100% + 6px); left: 0; z-index: 50; width: 280px; padding: 10px;
    background: var(--panel-dark); border: 2px solid var(--pink); box-shadow: 6px 6px 0 var(--deep), 0 0 30px color-mix(in srgb, var(--pink) 35%, transparent);
    font-family: var(--pixel);
}
.dtp-head { display: grid; grid-template-columns: 32px 1fr 32px; align-items: center; margin-bottom: 6px; }
.dtp-month { text-align: center; font-size: 21px; color: #fff; }
.dtp-nav { height: 30px; border: 1px solid var(--line); background: #000; color: var(--pink); font-size: 22px; line-height: 1; }
.dtp-nav:hover { border-color: var(--pink); }
.dtp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.dtp-dow { text-align: center; font-size: 15px; color: var(--muted); }
.dtp-day { height: 32px; border: 1px solid transparent; background: rgba(255, 255, 255, .03); color: var(--ink); font-family: var(--pixel); font-size: 19px; }
.dtp-day:hover:not(:disabled), .dtp-day:focus-visible { border-color: var(--pink); outline: none; }
.dtp-day.today { border-color: var(--lilac); }
.dtp-day.picked { background: var(--pink); color: #000; }
.dtp-day:disabled { opacity: .25; }
.dtp-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 16px; color: var(--muted); }
.dtp-today { border: 1px solid var(--lilac); background: none; color: var(--lilac); font-family: var(--pixel); font-size: 17px; padding: 2px 10px; }
.dtp-today:disabled { opacity: .3; }
.out-toggle { display: flex; }
.rel-views { color: var(--lilac) !important; }

/* notifications: bell + dropdown (account bar) and the inbox page */
.notif { position: relative; display: inline-flex; }
.status a.notif-bell { position: relative; display: inline-grid; place-items: center; width: 24px; color: var(--muted); }
.status a.notif-bell:hover, .notif.has-unread a.notif-bell { color: #fff; }
.notif.has-unread .notif-bell i { animation: notif-ring 2.4s ease-in-out infinite; color: var(--pink); }
@keyframes notif-ring { 0%, 86%, 100% { transform: rotate(0); } 89% { transform: rotate(14deg); } 93% { transform: rotate(-12deg); } 96% { transform: rotate(6deg); } }
.notif-count { position: absolute; top: -9px; right: -11px; min-width: 18px; height: 18px; padding: 0 4px; display: grid; place-items: center;
    background: var(--pink); color: #000; font-family: var(--mono); font-size: 11px; font-weight: 700; line-height: 1; border: 1px solid #fff; }
.notif-count[hidden] { display: none; }
.notif-panel {
    position: absolute; top: calc(100% + 12px); right: -10px; z-index: 200; width: min(360px, calc(100vw - 24px));
    background: var(--panel-dark); border: 2px solid var(--pink); box-shadow: 6px 6px 0 var(--deep), 0 0 30px color-mix(in srgb, var(--pink) 35%, transparent);
    font-family: var(--mono); font-size: 13px; text-align: left;
}
.notif-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; background: linear-gradient(90deg, var(--pink), var(--pink-dark) 70%, var(--pink-dusk)); font-family: var(--pixel); font-size: 19px; color: #fff; }
.status .notif-readall { font-family: var(--pixel); font-size: 16px; color: #fff; text-decoration: underline; }
.status .notif-readall:disabled { opacity: .4; text-decoration: none; }
.notif-drop, .notif-list { list-style: none; margin: 0; padding: 0; }
.notif-drop { max-height: 360px; overflow: auto; }
.notif-drop li + li, .notif-list li + li { border-top: 1px dashed var(--line); }
.notif-drop a, .notif-list a { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: start; padding: 9px 10px; color: var(--ink) !important; text-decoration: none; }
.notif-drop a:hover, .notif-list a:hover { background: color-mix(in srgb, var(--pink) 10%, transparent); }
.notif-drop li.unread a, .notif-list li.unread a { background: color-mix(in srgb, var(--pink) 7%, transparent); box-shadow: inset 3px 0 0 var(--pink); }
.notif-ico { font-size: 16px; text-align: center; padding-top: 2px; color: var(--pink); }
.notif-ico.notif-release { color: #39ff88; }
.notif-ico.notif-update { color: var(--lilac); }
.notif-text { display: grid; gap: 2px; min-width: 0; }
.notif-text b { font-weight: 700; color: #fff; overflow-wrap: anywhere; }
.notif-text span { color: var(--muted); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notif-drop time, .notif-list time { font-family: var(--pixel); font-size: 15px; color: var(--muted); white-space: nowrap; }
.notif-empty { margin: 0; padding: 14px 10px; color: var(--muted); font-family: var(--pixel); font-size: 18px; }
.status a.notif-all { display: block; padding: 7px 10px; border-top: 1px solid var(--line); text-align: right; font-family: var(--pixel); font-size: 17px; color: var(--pink-soft); }
.notif-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 18px; }
.notif-tabs > a { padding: 4px 12px; border: 1px solid var(--line); background: #000; color: var(--ink); text-decoration: none; font-family: var(--pixel); font-size: 19px; }
.notif-tabs > a[aria-current="page"] { border-color: var(--pink); background: color-mix(in srgb, var(--pink) 15%, transparent); color: #fff; }
.notif-tabs form { margin-left: auto; }
.notif-tabs .btn { font-size: 18px; padding: 4px 12px; }
.notif-list li.read a { opacity: .75; }
.notif-prefs label { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: start; }
.notif-prefs label small { grid-column: 2; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .notif.has-unread .notif-bell i { animation: none; } }

/* shoutbox @mentions + autocomplete */
.sb-form { position: relative; }
.sb-mention { color: var(--pink-soft); font-weight: 700; text-decoration: none; }
.sb-mention:hover { text-decoration: underline; }
.sb-mention.me { color: #000; background: var(--pink); padding: 0 3px; }
.sb-msg.sb-me { background: color-mix(in srgb, var(--pink) 8%, transparent); box-shadow: inset 3px 0 0 var(--pink); }
.sb-msg.sb-flash { animation: sb-flash 2.4s ease-out; }
@keyframes sb-flash { 0%, 30% { background: color-mix(in srgb, var(--pink) 35%, transparent); } 100% { background: transparent; } }
.sb-suggest {
    position: absolute; left: 0; bottom: calc(100% + 6px); z-index: 30; width: min(320px, 100%); margin: 0; padding: 4px; list-style: none;
    background: var(--panel-dark); border: 2px solid var(--pink); box-shadow: 4px 4px 0 var(--deep);
}
.sb-suggest li { display: grid; grid-template-columns: 26px auto 1fr; align-items: center; gap: 8px; padding: 5px 8px; cursor: pointer; }
.sb-suggest li.on, .sb-suggest li:hover { background: color-mix(in srgb, var(--pink) 18%, transparent); }
.sb-suggest b { color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-suggest span:last-child { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-sug-av { position: relative; width: 26px; height: 26px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--pink); color: var(--pink); font-family: var(--pixel); }
.sb-sug-av img { width: 100%; height: 100%; object-fit: cover; }

/* fifty player (scripts/player.js): custom controls for <audio> / <video>, tinted by the release accent */
.fp {
    --fp-accent: var(--rel-accent, var(--pink));
    --fp-track: rgba(255, 255, 255, .12);
    position: relative; width: 100%; min-width: 0; color: #fff; font-family: var(--pixel);
}
.fp-bar { display: grid; grid-template-columns: auto auto minmax(60px, 1fr) auto auto; align-items: center; gap: 10px; }
.fp-audio .fp-bar { padding: 6px 10px 6px 6px; border: 1px solid color-mix(in srgb, var(--fp-accent) 55%, transparent); background: rgba(0, 0, 0, .65); }
.fp-audio.fp-playing .fp-bar { border-color: var(--fp-accent); box-shadow: 0 0 14px color-mix(in srgb, var(--fp-accent) 35%, transparent); }
.fp-btn {
    display: grid; place-items: center; width: 32px; height: 32px; padding: 0; flex: none;
    border: 1px solid color-mix(in srgb, var(--fp-accent) 60%, transparent); background: rgba(0, 0, 0, .5); color: #fff; font-size: 14px;
    transition: background .12s, border-color .12s, transform .12s;
}
.fp-btn:hover { border-color: var(--fp-accent); background: color-mix(in srgb, var(--fp-accent) 25%, #000); }
.fp-btn:focus-visible, .fp-big:focus-visible, .fp-video:focus-visible { outline: 2px dashed #fff; outline-offset: 2px; }
.fp-play { width: 38px; height: 38px; font-size: 16px; background: var(--fp-accent); border-color: #fff; color: #000; box-shadow: 3px 3px 0 color-mix(in srgb, var(--fp-accent) 35%, #000); }
.fp-play:hover { background: var(--fp-accent); transform: translate(-1px, -1px); }
.fp-play:active { transform: translate(2px, 2px); box-shadow: none; }
.fp-playing .fp-play i { animation: none; }
.fp-loading .fp-play i::before { content: "\f110"; }   /* spinner while buffering */
.fp-loading .fp-play i { animation: fp-spin 1s linear infinite; }
@keyframes fp-spin { to { transform: rotate(360deg); } }
.fp-error .fp-play { background: var(--line); color: #ff5470; }
.fp-time { font-size: 17px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 38px; }
.fp-cur { color: #fff; text-align: right; }
.fp-volbox { display: inline-flex; align-items: center; gap: 6px; }
.fp-vol { width: 70px; }
.fp-msg { display: block; font-size: 16px; color: #ff5470; }
.fp-msg:empty { display: none; }
.fp-audio .fp-msg { margin-top: 4px; }

/* range inputs: filled part = accent, buffered = dim, rest = track */
.fp-range { -webkit-appearance: none; appearance: none; width: 100%; height: 18px; margin: 0; padding: 0; background: none; cursor: pointer; }
.fp-range:focus { outline: none; }
.fp-range:focus-visible { outline: 2px dashed #fff; outline-offset: 2px; }
.fp-range::-webkit-slider-runnable-track {
    height: 6px; border: 1px solid rgba(255, 255, 255, .18);
    background: linear-gradient(to right, var(--fp-accent) var(--pct, 0%), rgba(255, 255, 255, .28) var(--pct, 0%), rgba(255, 255, 255, .28) var(--buf, 0%), var(--fp-track) var(--buf, 0%));
}
.fp-range::-moz-range-track {
    height: 6px; border: 1px solid rgba(255, 255, 255, .18);
    background: linear-gradient(to right, var(--fp-accent) var(--pct, 0%), rgba(255, 255, 255, .28) var(--pct, 0%), rgba(255, 255, 255, .28) var(--buf, 0%), var(--fp-track) var(--buf, 0%));
}
.fp-range::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 16px; margin-top: -6px; background: #fff; border: 2px solid var(--fp-accent); box-shadow: 0 0 8px var(--fp-accent); }
.fp-range::-moz-range-thumb { width: 10px; height: 14px; border-radius: 0; background: #fff; border: 2px solid var(--fp-accent); box-shadow: 0 0 8px var(--fp-accent); }
.fp-seek { min-width: 60px; }

/* video */
.fp-video { display: block; background: #000; border: 2px solid var(--fp-accent); box-shadow: 6px 6px 0 color-mix(in srgb, var(--fp-accent) 35%, #000); overflow: hidden; }
.fp-video video { display: block; width: 100%; max-height: 80vh; background: #000; cursor: pointer; }
.fp-video .fp-bar {
    position: absolute; left: 0; right: 0; bottom: 0; grid-template-columns: auto auto minmax(60px, 1fr) auto auto auto;
    padding: 28px 10px 8px; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); transition: opacity .25s, transform .25s;
}
.fp-video.fp-idle .fp-bar { opacity: 0; transform: translateY(8px); pointer-events: none; }
.fp-video.fp-idle { cursor: none; }
.fp-big {
    position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; display: grid; place-items: center;
    background: var(--fp-accent); color: #000; font-size: 30px; border: 3px solid #fff; box-shadow: 5px 5px 0 color-mix(in srgb, var(--fp-accent) 35%, #000), 0 0 30px var(--fp-accent);
    transition: opacity .2s, transform .2s;
}
.fp-big:hover { transform: scale(1.06); }
.fp-video.fp-playing .fp-big { opacity: 0; transform: scale(.8); pointer-events: none; }
.fp-video .fp-msg { position: absolute; left: 12px; top: 10px; padding: 2px 8px; background: rgba(0, 0, 0, .8); }
.fp-video.fp-fs { border: 0; box-shadow: none; }
.fp-video.fp-fs video { max-height: none; height: 100vh; }

@media (max-width: 520px) {
    .fp-vol { display: none; }   /* phones: hardware volume buttons, keep the mute toggle */
    .fp-bar { gap: 7px; }
    .fp-time { min-width: 0; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .fp-loading .fp-play i { animation: none; } }

/* admin: event banners (/admin/events/) */
.ev-admin { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.ev-admin li { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 14px; padding: 10px 14px; border: 1px solid var(--line); background: #000; }
.ev-admin li.is-over { opacity: .55; }
.ev-admin-date { display: grid; justify-items: center; font-family: var(--pixel); font-size: 15px; color: var(--muted); line-height: 1; }
.ev-admin-date b { font-size: 26px; font-weight: 400; color: #fff; }
.ev-admin-info { display: grid; min-width: 0; }
.ev-admin-info a { color: #fff; font-weight: 700; }
.ev-admin-info small { color: var(--muted); overflow-wrap: anywhere; }
.ev-admin-state { font-family: var(--pixel); font-size: 18px; color: var(--muted); }
.ev-admin-state.on { color: #39ff88; }
.ev-admin form { margin: 0; }
.ev-admin .btn { font-size: 19px; padding: 5px 14px; }
@media (max-width: 640px) {
    .ev-admin li { grid-template-columns: auto 1fr; }
    .ev-admin-state, .ev-admin form { grid-column: 1 / -1; }
}

/* admin: merch status (/admin/merch/) */
.mx-checks { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; }
.mx-checks li { display: grid; grid-template-columns: 220px 1fr; gap: 12px; padding: 8px 12px; border: 1px solid var(--line); background: #000; }
.mx-checks b { font-family: var(--pixel); font-size: 19px; font-weight: 400; }
.mx-checks .ok b { color: #39ff88; }
.mx-checks .bad b { color: #ff5470; }
.mx-checks span { color: var(--ink); overflow-wrap: anywhere; }
@media (max-width: 640px) { .mx-checks li { grid-template-columns: 1fr; gap: 2px; } }

/* admin layout: sidebar with every tool + content (partials/admin_nav.php) */
.settings.adm .adm-wrap { max-width: 1180px; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.adm-side { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow: auto; border: 2px solid var(--line); background: rgba(0, 0, 0, .78); }
.adm-side summary { display: none; }
.adm-side nav { padding: 10px 8px 14px; }
.adm-group { margin: 12px 8px 4px; font-family: var(--pixel); font-size: 16px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.adm-side ul { list-style: none; margin: 0; padding: 0; }
.adm-side a { display: flex; align-items: center; gap: 10px; padding: 6px 8px; color: var(--ink); text-decoration: none; font-size: 14px; border-left: 3px solid transparent; }
.adm-side a i { width: 18px; text-align: center; color: var(--pink); }
.adm-side a span { flex: 1; min-width: 0; }
.adm-side a:hover { background: color-mix(in srgb, var(--pink) 12%, transparent); color: #fff; }
.adm-side a[aria-current] { border-left-color: var(--pink); background: color-mix(in srgb, var(--pink) 18%, #000); color: #fff; font-weight: 700; }
.adm-badge { min-width: 22px; padding: 0 6px; text-align: center; font-family: var(--pixel); font-size: 16px; font-weight: 400; line-height: 20px; }
.adm-badge.alert { background: var(--pink); color: #000; }
.adm-badge.info { background: #000; color: var(--muted); border: 1px solid var(--line); }
.adm-main { min-width: 0; }
.adm-main > .h2 { margin-bottom: 18px; }

/* dashboard */
.adm-dir { padding: 0; }   /* the homepage gives every <section> big vertical padding */
.adm-todo ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.adm-todo a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--pink); background: color-mix(in srgb, var(--pink) 8%, #000); color: #fff; text-decoration: none; }
.adm-todo a i { color: var(--pink); width: 18px; text-align: center; }
.adm-todo a span { margin-left: auto; color: var(--pink-soft); }
.adm-todo a:hover { background: color-mix(in srgb, var(--pink) 20%, #000); }
.adm-clear { margin: 0; font-family: var(--pixel); font-size: 22px; color: #39ff88; }
.adm-find { display: flex; align-items: center; gap: 10px; padding: 8px 12px; margin-bottom: 8px; border: 2px solid var(--line); background: #000; }
.adm-find:focus-within { border-color: var(--pink); }
.adm-find i { color: var(--pink); }
.adm-find input { flex: 1; min-width: 0; font: inherit; color: #fff; background: none; border: 0; outline: none; }
.adm-dir-group .adm-group { margin: 16px 0 8px; }
.adm-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.adm-cards a, .adm-card-nolink { display: flex; align-items: center; gap: 12px; height: 100%; padding: 12px 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, .7); color: #fff; text-decoration: none; transition: border-color .12s, transform .12s; }
.adm-cards a:hover { border-color: var(--pink); transform: translateY(-2px); }
.adm-cards a:focus-visible { outline: 2px dashed #fff; outline-offset: 2px; }
.adm-cards i { font-size: 20px; width: 26px; text-align: center; color: var(--pink); }
.adm-cards span { display: grid; flex: 1; min-width: 0; }
.adm-cards small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.adm-card-nolink { opacity: .75; }

@media (max-width: 900px) {
    .settings.adm .adm-wrap { grid-template-columns: 1fr; gap: 14px; }
    .adm-side { position: static; max-height: none; }
    .adm-side summary { display: block; padding: 10px 14px; cursor: pointer; font-family: var(--pixel); font-size: 20px; color: #fff; list-style: none; }
    .adm-side summary::-webkit-details-marker { display: none; }
    .adm-side summary b { font-weight: 400; color: var(--pink-soft); }
    .adm-side[open] summary { border-bottom: 1px dashed var(--line); }
}
