/* Kickback: site chrome (late-night Web 2.0) + member-themed profile pages. */

@font-face { font-family: "Bungee"; src: url("/static/fonts/bungee.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "VT323"; src: url("/static/fonts/vt323.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Permanent Marker"; src: url("/static/fonts/permanent-marker.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Pacifico"; src: url("/static/fonts/pacifico.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Nunito Variable"; src: url("/static/fonts/nunito.woff2") format("woff2-variations"); font-weight: 200 1000; font-display: swap; }

:root {
  --ink: #090d26;
  --ink-2: #0f1538;
  --panel: #131a45;
  --panel-2: #1a2259;
  --line: rgba(255, 255, 255, 0.12);
  --line-2: rgba(255, 255, 255, 0.22);
  --text: #eef0ff;
  --muted: #a9b0d8;
  --hot: #ff3ea5;
  --hot-2: #ff7ac0;
  --blue: #3d7bff;
  --sky: #8fd0f2;
  --lime: #b6ff3b;
  --gold: #ffd23f;
  --danger: #ff4d5e;
  --radius: 14px;
  --body: Verdana, Tahoma, "DejaVu Sans", "Segoe UI", sans-serif;
  --round: "Nunito Variable", "Nunito", system-ui, sans-serif;
  --display: "Bungee", Impact, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--ink);
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, rgba(255, 255, 255, 0.55) 50%, transparent 52%),
    radial-gradient(1px 1px at 68% 42%, rgba(255, 255, 255, 0.4) 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 38% 76%, rgba(143, 208, 242, 0.5) 50%, transparent 52%),
    radial-gradient(1px 1px at 88% 88%, rgba(255, 122, 192, 0.45) 50%, transparent 52%),
    radial-gradient(900px 600px at 85% -10%, rgba(61, 123, 255, 0.18), transparent 70%),
    radial-gradient(700px 500px at -10% 30%, rgba(255, 62, 165, 0.1), transparent 70%);
  background-size: 260px 260px, 310px 310px, 370px 370px, 290px 290px, 100% 100%, 100% 100%;
  background-attachment: fixed;
  color: var(--text);
  font: 15px/1.55 var(--body);
}
img, video { max-width: 100%; display: block; }
a { color: var(--sky); text-underline-offset: 2px; }
a:hover { color: #fff; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--gold); color: #000; padding: 10px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 8px; }
.main { flex: 1; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }
.pad { padding-block: 32px 64px; }
.pad-xl { padding-block: 96px; }
.muted { color: var(--muted); }
.small { font-size: 0.86em; }
.kicker { margin: 0 0 10px; font: 800 0.78rem/1 var(--round); letter-spacing: 0.16em; text-transform: uppercase; color: var(--hot-2); }
.h1, .h2, .h3 { font-family: var(--round); font-weight: 900; letter-spacing: -0.01em; line-height: 1.08; margin: 0 0 14px; }
.h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.h3 { font-size: 1.2rem; }
.lede { font-size: 1.08rem; color: #d8dcff; max-width: 62ch; }
.hot { color: var(--hot); }
.empty { color: var(--muted); padding: 14px 0; }
.toast { background: linear-gradient(180deg, #2a8a4a, #1f6c39); color: #fff; border-radius: 10px; padding: 10px 14px; margin: 0 0 16px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); }
.toast a { color: #fff; font-weight: 700; }
.form-error { background: rgba(255, 77, 94, 0.14); border: 1px solid rgba(255, 77, 94, 0.5); color: #ffd6da; padding: 10px 14px; border-radius: 10px; }
.tag { display: inline-block; font: 700 0.7rem/1 var(--round); letter-spacing: 0.04em; padding: 4px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: var(--muted); margin-right: 4px; vertical-align: middle; }
.tag-ai { background: linear-gradient(90deg, rgba(143, 208, 242, 0.22), rgba(255, 122, 192, 0.22)); color: #fff; }
.linkish { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font-size: inherit; }
.inline { display: inline; }

/* ---------- Buttons ---------- */
.btn {
  --b1: rgba(255, 255, 255, 0.14); --b2: rgba(255, 255, 255, 0.06);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, var(--b1), var(--b2)); color: #fff;
  font: 800 0.95rem/1.1 var(--round); text-decoration: none; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.12s ease, filter 0.12s ease;
}
.btn:hover { color: #fff; filter: brightness(1.12); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-hot { --b1: #ff5cb4; --b2: #e01f86; border-color: rgba(255, 180, 220, 0.6); text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); }
.btn-ghost { --b1: rgba(255, 255, 255, 0.1); --b2: rgba(255, 255, 255, 0.03); }
.btn-danger { --b1: #ff6372; --b2: #c8273a; border-color: rgba(255, 160, 170, 0.5); }
.btn-sm { padding: 7px 13px; font-size: 0.85rem; }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 40;
  background: linear-gradient(180deg, #3a73ff 0%, #2453df 48%, #1a3fc0 52%, #1d43c6 100%);
  border-bottom: 1px solid #0d2a8a;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 8px 24px rgba(0, 0, 0, 0.35);
  font-family: var(--round);
}
.hdr-in { width: min(1180px, 100% - 24px); margin-inline: auto; display: flex; align-items: center; gap: 18px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; flex-shrink: 0; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; position: relative;
  background: linear-gradient(145deg, #ff7ac0, #ff3ea5 45%, #a21cff);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45), 0 3px 10px rgba(0, 0, 0, 0.35);
}
.logo-mark::before { content: ""; position: absolute; inset: 9px 10px 9px 11px; background: #fff; clip-path: polygon(0 0, 100% 50%, 0 100%); border-radius: 2px; }
.logo-word {
  font: 400 1.45rem/1 var(--display); letter-spacing: 0.02em;
  background: linear-gradient(180deg, #ffffff 0%, #e8f1ff 45%, #9fc0ff 52%, #ffffff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 40, 0.45));
}
.logo-sm .logo-word { font-size: 1.15rem; }
.logo-sm .logo-mark { width: 28px; height: 28px; }
.logo-sm .logo-mark::before { inset: 7px 8px 7px 9px; }
/* Signed-in headers carry seven links: the links stay whole and the search box and name give way. */
.hdr-nav { display: flex; gap: 2px; flex: 1; min-width: max-content; }
.hdr-nav a {
  position: relative; color: #fff; text-decoration: none; font-weight: 800; font-size: 0.93rem;
  padding: 8px 12px; border-radius: 999px; white-space: nowrap;
}
.hdr-nav a:hover { background: rgba(255, 255, 255, 0.14); }
.hdr-nav a.is-active { background: rgba(0, 10, 60, 0.35); box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35); }
.nav-badge {
  display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; margin-left: 5px;
  border-radius: 999px; background: var(--gold); color: #2a1a00; font: 900 0.7rem/1 var(--round); vertical-align: 1px;
}
.hdr-search { flex: 0 1 190px; min-width: 120px; }
.hdr-search input {
  width: 100%; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 10, 60, 0.3); color: #fff;
}
.hdr-search input::placeholder { color: rgba(255, 255, 255, 0.7); }
.hdr-right { display: flex; align-items: center; gap: 10px; }
.hdr-bell { position: relative; color: #fff; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; }
.hdr-bell:hover, .hdr-bell.is-active { background: rgba(255, 255, 255, 0.14); color: #fff; }
.hdr-bell .nav-badge { position: absolute; top: -2px; right: -4px; margin: 0; }
.hdr-me { position: relative; }
.hdr-me summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 3px 10px 3px 3px; border-radius: 999px; color: #fff; font-weight: 800; }
.hdr-me summary::-webkit-details-marker { display: none; }
.hdr-me summary:hover, .hdr-me[open] summary { background: rgba(255, 255, 255, 0.14); }
.hdr-me-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hdr-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; padding: 8px;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}
.hdr-menu a, .hdr-menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 9px; color: var(--text); text-decoration: none; background: none; border: 0; cursor: pointer; font-weight: 700; }
.hdr-menu a:hover, .hdr-menu button:hover { background: rgba(255, 255, 255, 0.08); }

/* ---------- Avatars & presence ---------- */
.av { border-radius: 50%; object-fit: cover; background: var(--panel-2); flex-shrink: 0; }
.av-square { border-radius: 8px; }
.av-initials { display: inline-grid; place-items: center; color: #fff; font-family: var(--round); font-weight: 900; background: linear-gradient(145deg, hsl(var(--hue) 75% 58%), hsl(calc(var(--hue) + 40) 70% 38%)); }
.online-dot { display: inline-block; width: 9px; height: 9px; margin-left: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 2px rgba(182, 255, 59, 0.25); vertical-align: 1px; }
.online-pill { display: inline-block; font: 800 0.66rem/1 var(--round); background: var(--lime); color: #142000; padding: 3px 6px; border-radius: 999px; margin-top: 4px; }

/* ---------- Boxes (the old-school module) ---------- */
.box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
.box-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 14px; background: linear-gradient(180deg, #2c3a91, #212c74); border-bottom: 1px solid var(--line); }
.box-hd h2 { margin: 0; font: 900 0.98rem/1.2 var(--round); color: #fff; }
.box-hd h2 a { color: inherit; }
.box-act { font: 800 0.8rem/1 var(--round); color: #fff; opacity: 0.85; }
.box-bd { padding: 14px; }
.box-danger .box-hd { background: linear-gradient(180deg, #8a2333, #6c1a27); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-family: var(--round); }
.form .hint, .hint { font-weight: 400; color: var(--muted); font-size: 0.85em; font-family: var(--body); }
input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="range"]):not([type="file"]), select, textarea {
  width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line-2);
  background: rgba(5, 8, 30, 0.55); color: var(--text); font-weight: 400; font-family: var(--body);
}
textarea { resize: vertical; min-height: 44px; }
input:focus, select:focus, textarea:focus { border-color: var(--sky); outline: none; box-shadow: 0 0 0 3px rgba(143, 208, 242, 0.25); }
.form .check, .check { display: flex !important; align-items: flex-start; gap: 9px; font-weight: 400; font-family: var(--body); }
.check input { margin-top: 4px; accent-color: var(--hot); width: 17px; height: 17px; flex-shrink: 0; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 14px; margin: 0; display: grid; gap: 10px; }
legend { font: 800 0.95rem/1 var(--round); padding: 0 6px; }
.radios { display: grid; gap: 8px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.input-prefix { display: flex; align-items: stretch; }
.input-prefix span { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line-2); border-right: 0; border-radius: 10px 0 0 10px; background: rgba(255, 255, 255, 0.06); font-weight: 800; }
.input-prefix input { border-radius: 0 10px 10px 0 !important; }
input[type="file"] { font-size: 0.9rem; color: var(--muted); }
input[type="file"]::file-selector-button { margin-right: 10px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.1); color: #fff; font-weight: 700; cursor: pointer; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }

/* ---------- Tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 20px; padding: 5px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); border-radius: 999px; }
.tabs a { padding: 8px 14px; border-radius: 999px; color: var(--text); text-decoration: none; font: 800 0.9rem/1 var(--round); }
.tabs a:hover { background: rgba(255, 255, 255, 0.08); }
.tabs a.is-active { background: linear-gradient(180deg, #ff5cb4, #e01f86); color: #fff; }
.tabs-note { margin-left: auto; padding: 0 10px; color: var(--muted); font-size: 0.8rem; }
.tabs-view { margin-left: auto; }

/* ---------- Landing ---------- */
.hero { position: relative; isolation: isolate; min-height: min(86vh, 760px); display: grid; align-items: center; overflow: hidden; }
.hero-art { position: absolute; inset: 0; z-index: -1; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9, 13, 38, 0.96) 0%, rgba(9, 13, 38, 0.82) 38%, rgba(9, 13, 38, 0.25) 70%, rgba(9, 13, 38, 0.1) 100%), linear-gradient(0deg, var(--ink) 0%, transparent 30%); }
.hero-in { padding-block: 72px; }
.hero-h { font: 400 clamp(2.6rem, 7vw, 5.4rem)/0.98 var(--display); margin: 0 0 22px; text-shadow: 0 4px 0 rgba(0, 0, 0, 0.35); }
.hero-h .hot { background: linear-gradient(180deg, #ffb3dc, #ff3ea5 60%, #c2127a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lede { max-width: 54ch; font-size: 1.12rem; color: #e3e6ff; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 16px; }
.hero-stats { color: var(--muted); font-size: 0.92rem; }
.hero-stats strong { color: #fff; }
.band { padding-block: 64px; }
.band-dark { background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.1)); border-block: 1px solid var(--line); }
.band-hd { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.band-manifesto { background: radial-gradient(800px 400px at 50% 0%, rgba(255, 62, 165, 0.16), transparent 70%); }
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.why-item { padding: 22px; border-radius: 18px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)); border: 1px solid var(--line); }
.why-item h2 { font: 900 1.2rem/1.15 var(--round); margin: 8px 0; }
.why-item p { margin: 0; color: #d4d8fb; }
.why-n { font: 400 1.6rem/1 var(--display); background: linear-gradient(180deg, #fff, var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.checks { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 10px; }
.checks li { padding-left: 32px; position: relative; font-weight: 700; }
.checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--lime); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); -webkit-mask: radial-gradient(circle, #000 60%, transparent 62%); }

/* ---------- Auth ---------- */
.auth { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; margin-block: 36px 64px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); background: var(--panel); }
.auth-art { position: relative; min-height: 100%; }
.auth-art img { width: 100%; height: 100%; object-fit: cover; }
.auth-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 50%, var(--panel)); }
.auth-card { padding: 36px clamp(22px, 4vw, 44px); }
/* Sign-in buttons follow Google's and Apple's own button rules: Google white with its G, Apple black with its logo. */
.sso-list { display: grid; gap: 12px; margin: 22px 0 18px; max-width: 360px; }
.sso { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 0 18px; border-radius: 999px; font: 600 1rem/1 "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif; text-decoration: none; transition: transform 0.12s ease, box-shadow 0.12s ease; }
.sso:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35); text-decoration: none; }
.sso:focus-visible { outline: 3px solid var(--hot-2); outline-offset: 3px; }
.sso svg { flex: none; }
.sso-google { background: #fff; color: #1f1f1f; border: 1px solid #747775; }
.sso-apple { background: #000; color: #fff; border: 1px solid #000; }
.dev-login { margin-top: 18px; padding: 14px; border: 1px dashed var(--line); border-radius: 12px; max-width: 360px; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: transform 0.15s ease, border-color 0.15s ease; }
.card:hover { transform: translateY(-2px); border-color: var(--line-2); }
.card-thumb { position: relative; display: block; aspect-ratio: 16 / 10; background: #05071a; overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-audio .card-thumb img { object-fit: cover; }
.card-ph { position: absolute; inset: 0; display: block; background: radial-gradient(circle at 30% 20%, rgba(255, 122, 192, 0.5), transparent 55%), radial-gradient(circle at 80% 90%, rgba(61, 123, 255, 0.55), transparent 55%), #0b0f2e; }
.card-ph-audio::after { content: ""; position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, #ff3ea5 0 9%, #111 10% 12%, transparent 13%), repeating-radial-gradient(circle, #151515 0 2px, #222 2px 4px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.card-ph-video::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1; transform: translate(-40%, -50%); background: rgba(255, 255, 255, 0.85); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.card-kind { position: absolute; left: 8px; top: 8px; font: 800 0.68rem/1 var(--round); text-transform: uppercase; letter-spacing: 0.08em; background: rgba(0, 0, 0, 0.6); color: #fff; padding: 5px 7px; border-radius: 6px; }
.card-dur { position: absolute; right: 8px; bottom: 8px; font: 800 0.75rem/1 var(--round); background: rgba(0, 0, 0, 0.7); color: #fff; padding: 4px 6px; border-radius: 6px; }
.card-play { position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(180deg, #ff5cb4, #e01f86); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4); }
.card-play::after { content: ""; position: absolute; inset: 11px 10px 11px 14px; background: #fff; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.card-meta { padding: 10px 12px 12px; }
.card-title { margin: 0 0 4px; font: 800 0.98rem/1.25 var(--round); }
.card-title a { color: #fff; text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.card-by { margin: 0; font-size: 0.8rem; color: var(--muted); }
.card-by a { color: var(--muted); }
.card-tags { margin: 6px 0 0; }
.card-tags:empty { display: none; }
.faces { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 14px; }
.faces a { display: grid; justify-items: center; gap: 6px; text-decoration: none; color: var(--text); text-align: center; }
.face-name { font: 700 0.82rem/1.2 var(--round); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pager { text-align: center; margin-top: 24px; }

/* ---------- Home / feed ---------- */
.home { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; align-items: start; }
.composer { display: flex; gap: 12px; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; }
.composer-bd { flex: 1; display: grid; gap: 10px; }
.composer-row { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.composer-row select { width: auto; padding: 7px 10px; }
.feed { display: grid; gap: 14px; }
.post { display: flex; gap: 12px; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.post-bd { flex: 1; min-width: 0; }
.post-hd { margin: 0 0 6px; }
.post-name { font: 900 1rem/1.2 var(--round); color: #fff; text-decoration: none; }
.post-text { overflow-wrap: anywhere; }
.post-embed .card { max-width: 460px; }
.post-actions { display: flex; align-items: center; gap: 14px; margin-top: 10px; font-size: 0.88rem; }
.post-comments { color: var(--muted); }
.empty-feed { padding: 34px; text-align: center; background: var(--panel); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.caught-up { text-align: center; color: var(--muted); padding: 22px; border-top: 1px dashed var(--line-2); margin-top: 18px; }
.me-card { display: flex; gap: 12px; align-items: center; }
.me-card p { margin: 2px 0; }
.side-alert { margin: 12px 0 0; padding: 8px 12px; border-radius: 10px; background: rgba(255, 210, 63, 0.14); font-weight: 700; }
.home-side .faces { grid-template-columns: repeat(3, 1fr); }
.home-side .faces .av { width: 72px !important; height: 72px !important; }

/* ---------- Likes ---------- */
.like-form { display: inline; }
.like { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.05); color: var(--text); cursor: pointer; font: 800 0.85rem/1 var(--round); text-decoration: none; }
.like-heart { width: 15px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 21.6 10.3 20C4.2 14.5.2 10.9.2 6.4.2 2.9 3 .1 6.5.1c2 0 3.9.9 5.5 2.4C13.6 1 15.5.1 17.5.1 21 .1 23.8 2.9 23.8 6.4c0 4.5-4 8.1-10.1 13.6z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 21.6 10.3 20C4.2 14.5.2 10.9.2 6.4.2 2.9 3 .1 6.5.1c2 0 3.9.9 5.5 2.4C13.6 1 15.5.1 17.5.1 21 .1 23.8 2.9 23.8 6.4c0 4.5-4 8.1-10.1 13.6z'/%3E%3C/svg%3E") center / contain no-repeat; }
.like.is-on { color: #fff; background: linear-gradient(180deg, #ff5cb4, #e01f86); border-color: transparent; }
.like:hover { border-color: var(--hot); }

/* ---------- Comments ---------- */
.comments { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 0; }
.comment { display: grid; grid-template-columns: 110px minmax(0, 1fr); border-top: 1px solid var(--line); }
.comment-av { display: grid; justify-items: center; align-content: start; gap: 6px; padding: 12px 8px; text-align: center; text-decoration: none; color: inherit; background: rgba(0, 0, 0, 0.12); }
.comment-name { font: 800 0.8rem/1.2 var(--round); overflow-wrap: anywhere; }
.comment-bd { padding: 12px 14px; min-width: 0; }
.comment-when { margin: 0 0 6px; font-size: 0.78rem; opacity: 0.7; }
.comment-text { overflow-wrap: anywhere; }
.comment-actions { margin: 8px 0 0; display: flex; gap: 12px; font-size: 0.8rem; opacity: 0.8; }
.comment-actions form { display: inline; }
.comment-form { display: grid; gap: 8px; justify-items: end; margin-bottom: 6px; }
.report-link { font-size: 0.8rem; color: var(--muted); }

/* ---------- Watch page ---------- */
.watch { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.player { background: #000; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.player-video { width: 100%; max-height: 72vh; background: #000; }
.player-image { width: 100%; max-height: 80vh; object-fit: contain; background: #000; }
.player-audio { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: center; padding: 22px; background: radial-gradient(600px 300px at 0% 0%, rgba(255, 62, 165, 0.25), transparent 70%), linear-gradient(180deg, #151b4c, #0b0f2e); }
.player-cover { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); }
.player-cover img { width: 100%; height: 100%; object-fit: cover; }
.player-audio audio { width: 100%; }
.watch-title { font: 900 clamp(1.4rem, 3vw, 1.9rem)/1.15 var(--round); margin: 18px 0 12px; overflow-wrap: anywhere; }
.watch-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.watch-by { display: flex; gap: 10px; align-items: center; color: var(--text); text-decoration: none; }
.watch-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.watch-actions form { display: inline; }
.watch-facts { margin: 12px 0; font-size: 0.88rem; }
.watch-desc { padding: 14px 16px; background: rgba(255, 255, 255, 0.05); border-radius: 12px; overflow-wrap: anywhere; }
.watch-comments { margin-top: 26px; }
.watch-side .grid { grid-template-columns: 1fr; }
.owner-tools { margin: 16px 0; padding: 12px 14px; border: 1px dashed var(--line-2); border-radius: 12px; }
.owner-tools summary { cursor: pointer; font-weight: 800; font-family: var(--round); }
.owner-tools .form { margin: 12px 0; }

/* ---------- Upload ---------- */
.drop { position: relative; border: 2px dashed var(--line-2); border-radius: 16px; padding: 34px 20px; text-align: center; background: rgba(255, 255, 255, 0.03); transition: border-color 0.15s, background 0.15s; }
.drop.is-over { border-color: var(--hot); background: rgba(255, 62, 165, 0.08); }
.drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop label { display: block !important; font-weight: 400 !important; pointer-events: none; }
.drop strong { color: var(--hot-2); }
.drop-name { margin: 8px 0 0; color: var(--muted); font-size: 0.9rem; }
.up-preview video, .up-preview img, .up-preview audio { max-height: 320px; border-radius: 12px; margin-inline: auto; }
.up-preview audio { width: 100%; }
.cover-pick img { width: 140px; height: 140px; object-fit: cover; border-radius: 10px; }
.progress { position: relative; height: 34px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; border: 1px solid var(--line-2); }
.progress-bar { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, #ff3ea5, #ff7ac0, #8fd0f2); transition: width 0.2s ease; }
.progress span { position: relative; display: grid; place-items: center; height: 100%; font: 800 0.85rem/1 var(--round); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }

/* ---------- People / friends / messages / notifications ---------- */
.people, .plain-list, .threads, .notes { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.person { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; }
.person:hover { background: rgba(255, 255, 255, 0.04); }
.person > div:nth-child(2) { flex: 1; min-width: 0; }
.person-name { font: 900 1rem/1.2 var(--round); color: #fff; text-decoration: none; }
.person p { margin: 2px 0 0; }
.person-act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.person-act form { display: inline; }
.search-big { display: flex; gap: 10px; margin-bottom: 22px; max-width: 560px; }
.threads a { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; color: var(--text); text-decoration: none; background: var(--panel); border: 1px solid var(--line); }
.threads a:hover { border-color: var(--line-2); }
.threads .is-unread a { border-color: var(--hot); }
.thread-meta { flex: 1; min-width: 0; display: grid; }
.thread-last { color: var(--muted); font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-hd { display: flex; gap: 12px; align-items: center; margin: 10px 0 18px; }
.thread-hd h1 { margin: 0; }
.thread-hd a { color: #fff; text-decoration: none; }
.chat { list-style: none; margin: 0 0 16px; padding: 16px; display: flex; flex-direction: column; gap: 8px; min-height: 260px; max-height: 60vh; overflow-y: auto; background: rgba(0, 0, 0, 0.2); border: 1px solid var(--line); border-radius: 16px; }
.msg { max-width: 78%; display: grid; gap: 3px; }
.msg-body { padding: 9px 13px; border-radius: 16px; overflow-wrap: anywhere; }
.msg-time { font-size: 0.72rem; color: var(--muted); padding: 0 6px; }
.msg-me { align-self: flex-end; justify-items: end; }
.msg-me .msg-body { background: linear-gradient(180deg, #ff5cb4, #e01f86); color: #fff; border-bottom-right-radius: 4px; }
.msg-me .msg-body a { color: #fff; }
.msg-them .msg-body { background: var(--panel-2); border-bottom-left-radius: 4px; }
.chat-empty { margin: auto; }
.chat-form { display: flex; gap: 10px; align-items: flex-end; }
.notes li { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; }
.notes li.is-unread { background: rgba(255, 62, 165, 0.08); }
.notes p { margin: 0; }

/* ---------- Edit pages ---------- */
.welcome { padding: 22px; border-radius: 18px; margin-bottom: 18px; background: radial-gradient(600px 220px at 0% 0%, rgba(255, 62, 165, 0.25), transparent 70%), var(--panel); border: 1px solid var(--line); }
.avatar-pick { display: flex; gap: 18px; align-items: center; }
.avatar-pick-img .av { width: 140px !important; height: 140px !important; }
.look-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 26px; align-items: start; }
.look-preview-wrap { position: sticky; top: 84px; }
.look-preview { position: relative; overflow: hidden; border-radius: 16px; padding: 22px; min-height: 360px; border: 1px solid var(--line-2); }
.look-preview .fx-layer { position: absolute; }
.presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.preset { display: grid !important; gap: 6px; cursor: pointer; font-weight: 700; font-size: 0.82rem; }
.preset input { position: absolute; opacity: 0; }
.preset-sw { position: relative; height: 58px; border-radius: 10px; background: var(--sw-bg); border: 2px solid var(--line-2); overflow: hidden; }
.preset-sw i { position: absolute; left: 10px; right: 10px; top: 10px; height: 10px; border-radius: 3px; background: var(--sw-head); }
.preset-sw b { position: absolute; left: 10px; right: 10px; top: 20px; bottom: 10px; border-radius: 0 0 4px 4px; background: var(--sw-box); box-shadow: inset 12px -8px 0 -6px var(--sw-link); }
.preset input:checked + .preset-sw { border-color: var(--hot); box-shadow: 0 0 0 3px rgba(255, 62, 165, 0.35); }
.preset input:focus-visible + .preset-sw { outline: 3px solid var(--gold); }
.colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.color-field { display: flex !important; align-items: center; gap: 10px; font-weight: 700; }
.color-field input { width: 42px; height: 34px; padding: 0; border: 1px solid var(--line-2); border-radius: 8px; background: none; cursor: pointer; }
input[type="range"] { accent-color: var(--hot); width: 100%; }
.contrast-warn { margin: 0; color: var(--gold); font-weight: 700; font-size: 0.9rem; }
.song-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; }
.song-list li { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.song-list li.is-current { border-color: var(--hot); }
.song-cover { position: relative; width: 54px; height: 54px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.song-cover img { width: 100%; height: 100%; object-fit: cover; }
.song-info { flex: 1; min-width: 0; }
.top-pick { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.top-pick label { display: flex !important; align-items: center; gap: 10px; }
.top-n { font: 400 1.1rem/1 var(--display); color: var(--hot-2); width: 34px; }

/* ---------- Docs ---------- */
.doc h2 { font: 900 1.25rem/1.2 var(--round); margin: 30px 0 10px; }
.doc li { margin-bottom: 6px; }

/* ---------- Admin ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stats div { padding: 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); display: grid; }
.stats strong { font: 900 1.5rem/1.1 var(--round); }
.stats span { color: var(--muted); font-size: 0.85rem; }
.reports { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.reports > li { padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.15); }
.reports > li.is-urgent { border-color: var(--danger); }
.reports blockquote { margin: 8px 0; padding: 8px 12px; border-left: 3px solid var(--line-2); background: rgba(255, 255, 255, 0.04); }
.report-details { font-style: italic; color: var(--muted); }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-users { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-users th, .admin-users td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }

/* ---------- Footer ---------- */
.ftr { margin-top: 40px; border-top: 1px solid var(--line); background: rgba(0, 0, 0, 0.3); font-family: var(--round); }
.ftr-in { width: min(1180px, 100% - 32px); margin-inline: auto; padding: 28px 0 36px; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.ftr-brand p { margin: 8px 0 0; color: var(--muted); }
.ftr-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.ftr-links a { color: var(--muted); font-weight: 700; text-decoration: none; }
.ftr-links a:hover { color: #fff; }

/* =====================================================================
   PROFILE PAGES. Everything below is driven by the member's theme:
   --p-bg, --p-box, --p-text, --p-link, --p-head, --p-head-text,
   --p-font, --p-head-font, --p-bg-image + pattern/fx/layout classes.
   ===================================================================== */
.pf { background-color: var(--p-bg); color: var(--p-text); font-family: var(--p-font); }
.pf .box { background: var(--p-box); border: 1px solid color-mix(in srgb, var(--p-head) 55%, transparent); box-shadow: 0 8px 26px rgba(0, 0, 0, 0.28); backdrop-filter: blur(2px); }
.pf .box-hd { background: var(--p-head); border-bottom: 0; }
.pf .box-hd h2, .pf .box-act { color: var(--p-head-text); font-family: var(--p-head-font); font-weight: 700; letter-spacing: 0.01em; }
.pf .box-bd, .pf .box-bd p { color: var(--p-text); }
.pf .box a, .pf .pf-id a { color: var(--p-link); }
.pf .muted, .pf .empty, .pf .comment-when, .pf .card-by, .pf .card-by a { color: color-mix(in srgb, var(--p-text) 65%, transparent); }
.pf .card { background: color-mix(in srgb, var(--p-box-solid) 85%, #000); border-color: color-mix(in srgb, var(--p-head) 50%, transparent); }
.pf .card-title a { color: var(--p-text); }
.pf .comment { border-top-color: color-mix(in srgb, var(--p-text) 18%, transparent); }
.pf .comment-av { background: color-mix(in srgb, var(--p-head) 22%, transparent); }
.pf .post { background: transparent; border: 0; padding: 8px 0; border-bottom: 1px solid color-mix(in srgb, var(--p-text) 15%, transparent); border-radius: 0; }
.pf .post-name { color: var(--p-link); }
.pf .like { color: var(--p-text); border-color: color-mix(in srgb, var(--p-text) 30%, transparent); }
.pf textarea, .pf input:not([type="checkbox"]):not([type="radio"]) { background: color-mix(in srgb, var(--p-box-solid) 70%, #fff 6%); color: var(--p-text); border-color: color-mix(in srgb, var(--p-text) 28%, transparent); }
.pf.cor-square .box, .pf.cor-square .card, .pf.cor-square .pf-song { border-radius: 0; }
.pf.cor-square .av-square { border-radius: 0; }

.pf-wrap { position: relative; width: min(1040px, 100% - 24px); margin: 24px auto 48px; }
.pf-cols { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr); gap: 18px; align-items: start; }
.pf.lay-flip .pf-left { order: 2; }
.pf-id { padding: 16px; }
.pf-name { margin: 0 0 12px; font: 400 clamp(1.5rem, 3vw, 2rem)/1.1 var(--p-head-font); color: var(--p-text); overflow-wrap: anywhere; }
.pf-id-row { display: flex; gap: 14px; align-items: flex-start; }
.pf-photo .av { width: 170px !important; height: 170px !important; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); }
.pf-photo .av-initials { font-size: 70px !important; }
.pf-blurb { min-width: 0; font-size: 0.92rem; }
.pf-blurb p { margin: 0 0 8px; }
.pf-headline { font-style: italic; overflow-wrap: anywhere; }
.pf-handle { opacity: 0.75; }
.online-blink { display: inline-block; font: 900 0.85rem/1 var(--round); color: #142000; background: var(--lime); padding: 4px 8px; border-radius: 4px; animation: blink 1.6s steps(2, start) infinite; }
@keyframes blink { 50% { opacity: 0.55; } }
.pf-view-links { margin: 12px 0 0; font-size: 0.85rem; }
.cgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cgrid form { display: contents; }
.cbtn { display: block; width: 100%; padding: 8px 10px; text-align: center; border-radius: 8px; font: 800 0.82rem/1.2 var(--round); text-decoration: none; cursor: pointer; color: var(--p-text) !important; background: color-mix(in srgb, var(--p-head) 30%, transparent); border: 1px solid color-mix(in srgb, var(--p-head) 70%, transparent); }
.cbtn:hover { background: color-mix(in srgb, var(--p-head) 55%, transparent); }
.cbtn-hot { background: var(--p-head); color: var(--p-head-text) !important; }
.cbtn.is-static { cursor: default; opacity: 0.8; }
.pf-url { margin: 0; overflow-wrap: anywhere; font-family: "Courier New", monospace; }
.pf-url button { color: var(--p-link); text-decoration: none; }
.pf-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.pf-table th { text-align: left; vertical-align: top; width: 38%; padding: 7px 8px; background: color-mix(in srgb, var(--p-head) 25%, transparent); font-weight: 700; }
.pf-table td { padding: 7px 8px; vertical-align: top; overflow-wrap: anywhere; }
.pf-table tr + tr th, .pf-table tr + tr td { border-top: 1px solid color-mix(in srgb, var(--p-text) 12%, transparent); }
.hits { font: 1.15rem/1 "VT323", monospace; letter-spacing: 0.12em; background: #000; color: var(--lime); padding: 2px 6px; border-radius: 3px; }
.pf-sub { margin: 0 0 6px; font: 700 1rem/1.2 var(--p-head-font); color: var(--p-link); }
.pf-text { margin-bottom: 16px; overflow-wrap: anywhere; }
.pf-friendcount { margin: 0 0 12px; }
.top8 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 10px; }
.top8-all { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.top-friend a { display: grid; justify-items: center; gap: 5px; text-align: center; text-decoration: none; }
.top-friend .av { width: 100% !important; height: auto !important; aspect-ratio: 1; max-width: 110px; }
.top-friend .av-initials { font-size: 2.2rem !important; }
.top-name { font: 700 0.8rem/1.2 var(--p-font); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--p-link); }
.pf .online-pill { margin-top: 0; }

/* Profile song player */
.pf-song { display: flex; gap: 14px; align-items: center; padding: 12px; margin-bottom: 18px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02)), #0b0b14; color: #fff; border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.pf-song a { color: #fff !important; }
.pf-song-yt { display: block; }
.pf-song-yt .pf-song-label { margin: 0 0 8px; }
.pf-yt-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.pf-yt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pf-song-empty { display: block; font-size: 0.9rem; }
.pf-song-empty p { margin: 0; }
.pf-song-cover { position: relative; width: 76px; height: 76px; border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.pf-song-cover img { width: 100%; height: 100%; object-fit: cover; }
.pf-song.is-playing .pf-song-cover img, .pf-song.is-playing .pf-song-cover .card-ph { animation: spin 6s linear infinite; border-radius: 50%; }
@keyframes spin { to { transform: rotate(360deg); } }
.pf-song-meta { flex: 1; min-width: 0; }
.pf-song-meta p { margin: 0; }
.pf-song-label { font: 800 0.68rem/1 var(--round); letter-spacing: 0.14em; text-transform: uppercase; color: var(--hot-2); margin-bottom: 4px !important; }
.pf-song-title { font: 900 1.05rem/1.2 var(--round); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-song-by { font-size: 0.8rem; opacity: 0.8; }
.pf-song-ctrl { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.pf-song-play { position: relative; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; background: linear-gradient(180deg, #ff5cb4, #e01f86); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 4px 12px rgba(0, 0, 0, 0.4); flex-shrink: 0; }
.pf-song-play span { position: absolute; inset: 12px 11px 12px 15px; background: #fff; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.pf-song.is-playing .pf-song-play span { inset: 12px 13px; clip-path: polygon(0 0, 35% 0, 35% 100%, 0 100%, 0 0, 65% 0, 100% 0, 100% 100%, 65% 100%, 65% 0); }
.pf-song-bar { flex: 1; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); cursor: pointer; overflow: hidden; }
.pf-song-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ff3ea5, #8fd0f2); }
.pf-song-time { font: 1rem/1 "VT323", monospace; min-width: 38px; text-align: right; }
.pf-song-nudge { font: 800 0.75rem/1 var(--round); color: var(--gold); margin-top: 6px !important; }

/* Background picture modes */
.pf.has-bgimg { background-image: var(--p-bg-image) !important; }
.pf.has-bgimg.bgm-cover { background-size: cover !important; background-position: center; background-repeat: no-repeat; }
.pf.has-bgimg.bgm-fixed { background-size: cover !important; background-position: center; background-repeat: no-repeat; background-attachment: fixed; }
.pf.has-bgimg.bgm-tile { background-size: auto !important; background-repeat: repeat; }
.look-preview.has-bgimg.bgm-fixed { background-attachment: scroll; }

/* Patterns (only when no background picture) */
.pf.pat-none:not(.has-bgimg) { background-image: none; }
.pf.pat-stars:not(.has-bgimg) {
  background-image:
    radial-gradient(1.5px 1.5px at 20px 30px, rgba(255, 255, 255, 0.9) 50%, transparent 52%),
    radial-gradient(1px 1px at 120px 80px, rgba(255, 255, 255, 0.7) 50%, transparent 52%),
    radial-gradient(2px 2px at 190px 160px, rgba(143, 208, 242, 0.9) 50%, transparent 52%),
    radial-gradient(1px 1px at 60px 190px, rgba(255, 255, 255, 0.6) 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 230px 40px, rgba(255, 210, 255, 0.8) 50%, transparent 52%);
  background-size: 260px 220px;
}
.pf.pat-glitter:not(.has-bgimg) {
  background-image:
    radial-gradient(2px 2px at 10px 14px, #ff9ad5 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 44px 70px, #fff 50%, transparent 52%),
    radial-gradient(2.5px 2.5px at 88px 30px, #ff3ea5 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 70px 104px, #ffd1ef 50%, transparent 52%),
    radial-gradient(1px 1px at 112px 92px, #fff 50%, transparent 52%),
    radial-gradient(500px 400px at 50% 0%, rgba(255, 62, 165, 0.25), transparent 70%);
  background-size: 120px 120px, 120px 120px, 120px 120px, 120px 120px, 120px 120px, 100% 100%;
}
.pf.pat-vapor:not(.has-bgimg) {
  background-image:
    linear-gradient(rgba(255, 95, 143, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 95, 143, 0.18) 1px, transparent 1px),
    radial-gradient(420px 420px at 50% 0%, rgba(255, 184, 107, 0.45), rgba(255, 95, 143, 0.25) 45%, transparent 70%);
  background-size: 44px 44px, 44px 44px, 100% 100%;
}
.pf.pat-lined:not(.has-bgimg) {
  background-image:
    linear-gradient(90deg, transparent 54px, rgba(229, 57, 53, 0.4) 54px, rgba(229, 57, 53, 0.4) 56px, transparent 56px),
    linear-gradient(transparent 27px, rgba(63, 81, 181, 0.22) 27px, rgba(63, 81, 181, 0.22) 28px);
  background-size: 100% 100%, 100% 28px;
}
.pf.pat-checker:not(.has-bgimg) { background-image: conic-gradient(rgba(255, 255, 255, 0.09) 25%, transparent 0 50%, rgba(255, 255, 255, 0.09) 0 75%, transparent 0); background-size: 56px 56px; }
.pf.pat-stripes:not(.has-bgimg) { background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0 14px, transparent 14px 28px); }
.pf.pat-dots:not(.has-bgimg) {
  background-image: radial-gradient(rgba(255, 255, 255, 0.7) 22%, transparent 23%), radial-gradient(rgba(255, 255, 255, 0.7) 22%, transparent 23%);
  background-size: 34px 34px; background-position: 0 0, 17px 17px;
}
.pf.pat-chrome:not(.has-bgimg) { background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, 0.55) 55%, rgba(0, 0, 0, 0.08) 75%, rgba(255, 255, 255, 0.4)); }
.pf.pat-grid:not(.has-bgimg) {
  background-image: linear-gradient(rgba(57, 255, 216, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(123, 44, 255, 0.18) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Effects overlay */
.fx-layer { position: fixed; inset: 0; pointer-events: none; z-index: 30; display: none; }
.pf.fx-sparkles .fx-layer, .pf.fx-snow .fx-layer, .pf.fx-hearts .fx-layer, .pf.fx-stars .fx-layer { display: block; }
.fx-sparkles .fx-layer {
  background-image:
    radial-gradient(2px 2px at 30px 40px, #fff 50%, transparent 52%),
    radial-gradient(3px 3px at 160px 120px, rgba(255, 200, 240, 0.95) 50%, transparent 52%),
    radial-gradient(2px 2px at 260px 60px, rgba(255, 255, 255, 0.9) 50%, transparent 52%),
    radial-gradient(2.5px 2.5px at 90px 220px, rgba(200, 230, 255, 0.95) 50%, transparent 52%);
  background-size: 320px 280px;
  animation: twinkle 2.4s ease-in-out infinite alternate;
}
.fx-stars .fx-layer {
  background-image:
    radial-gradient(1.5px 1.5px at 50px 60px, #fff 50%, transparent 52%),
    radial-gradient(2px 2px at 200px 30px, #ffe9a8 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 300px 180px, #fff 50%, transparent 52%);
  background-size: 380px 260px;
  animation: twinkle 3.4s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: 0.25; } to { opacity: 1; } }
.fx-snow .fx-layer {
  background-image:
    radial-gradient(3px 3px at 20px 30px, #fff 50%, transparent 52%),
    radial-gradient(2px 2px at 120px 90px, rgba(255, 255, 255, 0.9) 50%, transparent 52%),
    radial-gradient(4px 4px at 210px 160px, rgba(255, 255, 255, 0.8) 50%, transparent 52%),
    radial-gradient(2px 2px at 280px 40px, rgba(255, 255, 255, 0.9) 50%, transparent 52%);
  background-size: 300px 300px;
  animation: snow 14s linear infinite;
}
@keyframes snow { from { background-position: 0 0; } to { background-position: 60px 600px; } }
.fx-hearts .fx-layer {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='240'%3E%3Cg fill='%23ff5cb4' fill-opacity='.55'%3E%3Cpath transform='translate(30 40) scale(.7)' d='M12 21.6 10.3 20C4.2 14.5.2 10.9.2 6.4.2 2.9 3 .1 6.5.1c2 0 3.9.9 5.5 2.4C13.6 1 15.5.1 17.5.1 21 .1 23.8 2.9 23.8 6.4c0 4.5-4 8.1-10.1 13.6z'/%3E%3Cpath transform='translate(150 150) scale(.5)' d='M12 21.6 10.3 20C4.2 14.5.2 10.9.2 6.4.2 2.9 3 .1 6.5.1c2 0 3.9.9 5.5 2.4C13.6 1 15.5.1 17.5.1 21 .1 23.8 2.9 23.8 6.4c0 4.5-4 8.1-10.1 13.6z'/%3E%3Cpath transform='translate(110 70) scale(.35)' d='M12 21.6 10.3 20C4.2 14.5.2 10.9.2 6.4.2 2.9 3 .1 6.5.1c2 0 3.9.9 5.5 2.4C13.6 1 15.5.1 17.5.1 21 .1 23.8 2.9 23.8 6.4c0 4.5-4 8.1-10.1 13.6z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 220px 240px;
  animation: rise 16s linear infinite;
}
@keyframes rise { from { background-position: 0 0; } to { background-position: -40px -480px; } }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .hdr-me-name { display: none; }
}
@media (max-width: 1080px) {
  .hdr-search { display: none; }
  .hdr-nav a { padding-inline: 10px; }
  .why { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hdr-in { flex-wrap: wrap; gap: 8px 12px; padding-block: 8px; }
  .hdr-nav { order: 3; flex-basis: 100%; min-width: 0; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .hdr-nav::-webkit-scrollbar { display: none; }
  .hdr-right { margin-left: auto; }
  .hdr-me-name { display: none; }
  .home, .watch, .look-grid { grid-template-columns: 1fr; }
  .look-preview-wrap { position: static; order: -1; }
  /* One column: name box first, then the song, then everything else in page order. */
  .pf-cols { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .pf-left, .pf-right { display: contents; }
  .pf-cols .pf-id { order: -2; }
  .pf-cols .pf-song { order: -1; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { max-height: 200px; }
  .auth-art::after { background: linear-gradient(0deg, var(--panel), transparent 60%); }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .why { grid-template-columns: 1fr; }
  .row2, .top-pick { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero-art::after { background: linear-gradient(0deg, rgba(9, 13, 38, 0.98) 30%, rgba(9, 13, 38, 0.6) 70%, rgba(9, 13, 38, 0.35)); }
  .hero-in { padding-block: 120px 48px; }
  .band-hd { flex-direction: column; align-items: start; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pf-id-row { flex-direction: column; }
  .pf-photo .av { width: 140px !important; height: 140px !important; }
  .top8 { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .comment { grid-template-columns: 76px minmax(0, 1fr); }
  .comment-av .av { width: 44px !important; height: 44px !important; }
  .player-audio { grid-template-columns: 1fr; }
  .player-cover { max-width: 240px; margin-inline: auto; width: 100%; }
  .composer > .av { display: none; }
  .chat-form { flex-direction: column; align-items: stretch; }
  .msg { max-width: 92%; }
  .tabs-note { display: none; }
  .avatar-pick { flex-direction: column; align-items: start; }
  .cgrid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .fx-layer { display: none !important; }
}

/* ---------- Game Center (PC HUB Arcade from PC Shop Simulator) ---------- */
.arc-hub-hd { text-align: center; margin-bottom: 30px; }
.arc-hub-title { margin: 0 auto 8px; max-width: 760px; }
.arc-hub-title img { width: 100%; height: auto; filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.55)); }
.arc-hub-tag { margin: 0 0 14px; font: 900 0.95rem/1 var(--round); letter-spacing: 0.18em; text-transform: uppercase; color: #5cc0ff; }
.arc-hub .lede { margin-inline: auto; }
.arc-hub-note { text-align: center; margin-top: 22px; }
.arc-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.arc-card-link {
  display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; padding: 14px 14px 20px;
  border-radius: 16px; border: 2px solid var(--edge); background: linear-gradient(180deg, #070a1d, #03050e);
  color: var(--text); text-decoration: none; text-align: center;
  box-shadow: 0 0 30px color-mix(in srgb, var(--edge) 16%, transparent), 0 14px 34px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.arc-card-link:hover { color: var(--text); transform: translateY(-3px); box-shadow: 0 0 46px color-mix(in srgb, var(--edge) 32%, transparent), 0 18px 40px rgba(0, 0, 0, 0.45); }
.arc-card-art { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #05071a; }
.arc-card-art img { width: 100%; height: 100%; object-fit: cover; }
.arc-card-title { display: block; width: 92%; height: 54px; margin-top: 4px; }
.arc-card-title img { width: 100%; height: 100%; object-fit: contain; }
.arc-card-tagline { color: var(--muted); font: 700 0.86rem/1.2 var(--round); }
.arc-card-blurb { flex: 1; font-size: 0.9rem; color: #d8dcff; max-width: 34ch; }
.arc-card-hs { display: grid; gap: 2px; }
.arc-card-hs-label { font: 800 0.72rem/1 var(--round); letter-spacing: 0.1em; text-transform: uppercase; color: #6fb6ff; }
.arc-card-hs strong { font: 900 1.5rem/1.1 var(--round); color: #fff; }
.arc-card-play { margin-top: 6px; }

.arc-crumbs { display: flex; gap: 8px; align-items: center; margin: 0 0 14px; font: 800 0.9rem/1 var(--round); color: var(--muted); }
.arc-crumbs a { text-decoration: none; }
.arc-layout { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; align-items: flex-start; }
.arc-col { flex: 0 0 auto; width: min(100%, calc(max(320px, 100vh - 190px) * var(--lw) / var(--lh))); }
@supports (height: 100svh) {
  .arc-col { width: min(100%, calc(max(320px, 100svh - 190px) * var(--lw) / var(--lh))); }
}
.arc-stage {
  position: relative; width: 100%; aspect-ratio: var(--lw) / var(--lh); overflow: hidden; border-radius: 14px; background: #010104;
  border: 2px solid color-mix(in srgb, var(--edge) 60%, transparent);
  box-shadow: 0 0 44px color-mix(in srgb, var(--edge) 16%, transparent), 0 18px 50px rgba(0, 0, 0, 0.5);
}
.arc-stage canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.arc-stage canvas:focus { outline: none; }
.arc-stage canvas:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.arc-stage.is-playing canvas { cursor: none; }
.arc-stage:fullscreen { border: 0; border-radius: 0; aspect-ratio: auto; }
/* 3D games: the three.js world sits under the HUD canvas */
.arc-stage canvas.arc-gl { position: absolute; inset: 0; pointer-events: none; }
.arc-stage.is-3d canvas:not(.arc-gl) { position: relative; }
.arc-stage.is-3d.is-playing canvas { cursor: default; }
.arc-stage.is-3d.is-look.is-playing canvas { cursor: none; }
.arc-card-name { display: grid; place-items: center; width: 92%; height: 54px; margin-top: 4px; font: 400 1.7rem/1 var(--display); color: var(--edge); text-shadow: 0 0 18px color-mix(in srgb, var(--edge) 55%, transparent), 0 3px 0 rgba(0, 0, 0, 0.6); }
.arc-card-badge { position: absolute; top: 10px; left: 10px; padding: 4px 8px; border-radius: 6px; background: rgba(3, 5, 14, 0.82); border: 1px solid var(--edge); color: #fff; font: 900 0.72rem/1 var(--round); letter-spacing: 0.1em; }
.arc-card-art { position: relative; }
.arc-noscript { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 20px; color: #fff; text-align: center; }
.arc-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.arc-name { margin: 0; font: 900 1.2rem/1.2 var(--round); }
.arc-name .muted { margin-left: 6px; font-size: 0.85rem; font-weight: 700; }
.arc-bar-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.arc-pad { display: none; gap: 10px; margin-top: 12px; user-select: none; -webkit-user-select: none; }
@media (pointer: coarse) { .arc-pad { display: flex; } }
.arc-touch .arc-pad { display: flex; }
.arc-pad-btn {
  flex: 1 1 0; min-height: 62px; border-radius: 14px; border: 1px solid var(--line-2); color: #fff; cursor: pointer;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.04));
  font: 900 1.4rem/1 var(--round); touch-action: none; -webkit-tap-highlight-color: transparent;
}
.arc-pad-btn.is-wide { flex-grow: 1.6; font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; }
.arc-pad-btn.is-down { background: linear-gradient(180deg, #ff5cb4, #e01f86); border-color: rgba(255, 180, 220, 0.6); }
.arc-info { flex: 1 1 300px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 18px; align-content: start; }
.arc-keys { margin: 10px 0 0; padding-left: 18px; }
.arc-keys li { padding: 2px 0; }
.arc-board { margin: 0 0 8px; padding-left: 24px; }
.arc-board li { padding: 3px 0; }
.arc-board strong { font: 900 1.05rem/1.2 var(--round); }
.arc-board span { color: var(--muted); font-size: 0.85rem; }
.arc-board .arc-board-empty { list-style: none; margin-left: -24px; color: var(--muted); }
.arc-more { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 10px; }
.arc-more a { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.arc-more a:hover strong { text-decoration: underline; }
.arc-more img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.arc-more strong, .arc-more .small { display: block; }
@media (max-width: 640px) {
  .arc-hub-tag { font-size: 0.8rem; }
  .arc-bar { justify-content: center; text-align: center; }
  .arc-pad-btn { min-height: 56px; }
}