
@font-face {
  font-family: "Sinistre";
  src: url("fonts/sinistre.otf") format("opentype");
  font-display: swap;
}

:root {
  --bg: #06080c;
  --card: rgba(255, 255, 255, 0.035);
  --card-border: rgba(255, 255, 255, 0.07);
  --card-hover: rgba(255, 255, 255, 0.06);
  --text: #f2f4f8;
  --muted: #8b919c;
  --faint: #5b606b;
  --blue: #1e50a0;
  --red: #c8102e;
  --online: #23a55a;
  --idle: #f0b232;
  --dnd: #f23f43;
  --offline: #80848e;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }
html { background: var(--bg); }

.bg-video {
  position: fixed; inset: 0; z-index: -1;
  width: 100%; height: 100%; object-fit: cover;
  pointer-events: none;
}
.glow, .stars { display: none; }

body {
  background: transparent;
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

.load-bar {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), #fff 50%, var(--red));
  z-index: 50;
  transform-origin: left;
  transition: opacity .5s ease;
}
.load-bar span {
  position: absolute; inset: 0; background: var(--bg);
  transform-origin: right; transform: scaleX(1);
  animation: load 1.1s cubic-bezier(.6,.05,.3,1) forwards;
}
@keyframes load { to { transform: scaleX(0); } }
.load-bar.done { opacity: 0; }

.glow {
  position: fixed; width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  border-radius: 50%; filter: blur(120px); opacity: .5; z-index: 0; pointer-events: none;
}
.glow-blue { top: -16vw; left: -14vw; background: var(--blue); }
.glow-red  { bottom: -18vw; right: -14vw; background: var(--red); opacity: .42; }

.stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.stars i {
  position: absolute; width: 2px; height: 2px; border-radius: 50%;
  background: #fff; opacity: .25; animation: twinkle 4s infinite ease-in-out;
}
@keyframes twinkle { 0%,100% { opacity: .08; } 50% { opacity: .4; } }

.wrap {
  position: relative; z-index: 1;
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 56px 20px;
}

.deck {
  display: flex; flex-wrap: wrap; gap: 24px;
  align-items: flex-start; justify-content: center;
  width: 100%; max-width: 1020px;
}
.side {
  flex: 1 1 380px; min-width: 300px; max-width: 560px;
  display: flex; flex-direction: column; gap: 24px;
}

.panel {
  color: var(--text);
  background: rgba(15, 17, 23, 0.55);
  border: 1px solid var(--card-border);
  border-radius: 20px; padding: 28px 30px;
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
  opacity: 0; transform: translateY(14px);
  animation: rise .8s .35s cubic-bezier(.2,.7,.2,1) forwards;
}
.deck.themed .panel { background: var(--theme-body); }

.panel-label {
  display: block; color: var(--faint);
  font-size: .76rem; font-weight: 600; letter-spacing: .02em;
  margin-bottom: 14px;
}
.panel-title { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; margin-bottom: 12px; color: var(--text); }
.panel-text { color: var(--muted); font-size: .92rem; line-height: 1.65; }

.software { display: flex; flex-wrap: wrap; gap: 9px; }
.sw {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--card-border);
  padding: 8px 13px; border-radius: 11px; font-size: .85rem; color: var(--text);
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
}
.sw:hover { background: var(--card-hover); transform: translateY(-2px); }
.sw img { width: 16px; height: 16px; flex: none; }

.work-card { display: block; text-decoration: none; transition: transform .18s ease, border-color .2s ease; }
.work-card:hover { transform: translateY(-3px); border-color: var(--card-border); }
.work-card .panel-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.work-arrow { font-weight: 700; opacity: .55; transition: transform .2s ease, opacity .2s ease; }
.work-card:hover .work-arrow { transform: translateX(4px); opacity: 1; }

:root { --cr-line: rgba(255,255,255,.09); --cr-line-2: rgba(255,255,255,.14); --cr-glass: rgba(20,22,28,.66); --ease: cubic-bezier(.22,.61,.36,1); }
.cr-loading { color: rgba(255,255,255,.55); font-size: .95rem; margin-top: 90px; letter-spacing: .02em; }

.cr-eyebrow { display: block; color: rgba(255,255,255,.42); font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 9px; }
.cr-title { font-size: 2.1rem; font-weight: 800; letter-spacing: -.025em; color: #fff; margin: 0; }

.cr-card {
  width: 100%; max-width: 420px; margin-top: 9vh; padding: 38px 34px;
  background: var(--cr-glass); border: 1px solid var(--cr-line);
  border-radius: 22px; backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.05);
  animation: rise .7s var(--ease) both;
}
.cr-sub { color: rgba(255,255,255,.55); font-size: .92rem; line-height: 1.65; margin: 12px 0 24px; }
.btn-discord {
  display: inline-flex; align-items: center; gap: 10px;
  background: #5865f2; color: #fff; text-decoration: none; font-weight: 600; font-size: .92rem;
  padding: 13px 20px; border-radius: 13px;
  box-shadow: 0 8px 24px rgba(88,101,242,.35);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .15s ease;
}
.btn-discord:hover { background: #4f5bda; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(88,101,242,.45); }
.btn-discord:active { transform: translateY(0); }
.btn-discord.disabled { pointer-events: none; opacity: .5; box-shadow: none; }
.btn-discord svg { width: 20px; height: 20px; }
.cr-error { color: #ff8585; font-size: .85rem; margin-top: 15px; }

.cr-admin { width: 100%; max-width: 980px; animation: rise .6s var(--ease) both; }
.cr-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--cr-line); }
.cr-head-actions { display: flex; gap: 8px; flex: none; }
.cr-link {
  color: rgba(255,255,255,.6); text-decoration: none; font-size: .82rem; font-weight: 500;
  padding: 7px 12px; border-radius: 9px; transition: background .15s ease, color .15s ease;
}
.cr-link:hover { color: #fff; background: rgba(255,255,255,.06); }

.cr-newcat {
  display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 28px;
  padding: 9px; border: 1px solid var(--cr-line); border-radius: 15px; background: rgba(255,255,255,.02);
}
.cr-input {
  background: rgba(255,255,255,.04); border: 1px solid var(--cr-line); color: #fff;
  padding: 11px 14px; border-radius: 10px; font-size: .9rem; font-family: inherit; outline: none;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.cr-input:focus { border-color: var(--cr-line-2); background: rgba(255,255,255,.06); box-shadow: 0 0 0 3px rgba(255,255,255,.05); }
.cr-input::placeholder { color: rgba(255,255,255,.38); }
#catName { flex: 1; min-width: 200px; }

.cr-dd { position: relative; }
.cr-dd-btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 178px; cursor: pointer; }
.cr-dd-chev { width: 11px; height: 7px; flex: none; opacity: .55; transition: transform .2s var(--ease); }
.cr-dd.open .cr-dd-chev { transform: rotate(180deg); }
.cr-dd-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 100%; z-index: 40;
  display: none; flex-direction: column; gap: 2px; padding: 6px;
  background: rgba(255,255,255,.04); backdrop-filter: blur(26px) saturate(1.4);
  border: 1px solid var(--cr-line); border-radius: 10px;
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
}
.cr-dd.open .cr-dd-menu { display: flex; animation: ddIn .16s var(--ease); }
@keyframes ddIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.cr-dd-menu button {
  text-align: left; background: none; border: 0; cursor: pointer; color: rgba(255,255,255,.78);
  padding: 9px 13px; border-radius: 9px; font-size: .88rem; font-weight: 500; font-family: inherit;
  white-space: nowrap; transition: background .12s ease, color .12s ease;
}
.cr-dd-menu button:hover { background: rgba(255,255,255,.1); color: #fff; }
.cr-dd-menu button.sel { color: #fff; background: rgba(255,255,255,.08); }

.cr-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: #14161b; border: 1px solid transparent; cursor: pointer;
  padding: 11px 17px; border-radius: 10px; font-size: .88rem; font-weight: 600; font-family: inherit;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .15s ease, opacity .15s ease;
}
.cr-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.4); }
.cr-btn:active { transform: translateY(0); }
.cr-btn:disabled { opacity: .45; cursor: default; transform: none; box-shadow: none; }
.cr-btn-ghost { background: rgba(255,255,255,.06); color: #fff; border-color: var(--cr-line); }
.cr-btn-ghost:hover { background: rgba(255,255,255,.1); }
.cr-btn-sm { padding: 8px 13px; font-size: .8rem; border-radius: 9px; }
.cr-btn.busy { opacity: .55; pointer-events: none; }
.cr-icon-btn {
  width: 32px; height: 32px; padding: 0; justify-content: center; border-radius: 9px;
  background: rgba(255,255,255,.06); color: rgba(255,255,255,.7); border: 1px solid var(--cr-line); cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .15s var(--ease);
}
.cr-icon-btn:hover { background: rgba(255,255,255,.12); color: #fff; transform: translateY(-1px); }
.cr-icon-btn.danger:hover { background: rgba(239,68,68,.14); color: #ff8a8a; border-color: rgba(239,68,68,.3); }
.cr-icon-btn svg { width: 16px; height: 16px; }

.cr-empty { color: rgba(255,255,255,.45); margin-top: 14px; font-size: .92rem; }

.cr-catlist { display: flex; flex-direction: column; gap: 18px; }
.cr-cat {
  background: var(--cr-glass); border: 1px solid var(--cr-line); border-radius: 18px; padding: 20px 22px;
  backdrop-filter: blur(16px); box-shadow: 0 18px 50px rgba(0,0,0,.35);
  animation: rise .55s var(--ease) both;
}
.cr-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.cr-cat-head h3 { margin: 0; font-size: 1.12rem; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.cr-cat-meta { font-size: .74rem; color: rgba(255,255,255,.4); margin-top: 3px; }
.cr-cat-actions { display: flex; align-items: center; gap: 8px; flex: none; }

.cr-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 22px; margin-bottom: 14px; cursor: pointer;
  border: 1.5px dashed var(--cr-line-2); border-radius: 13px; background: rgba(255,255,255,.015);
  color: rgba(255,255,255,.5); font-size: .85rem; text-align: center;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.cr-drop:hover, .cr-drop.drag { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.05); color: rgba(255,255,255,.8); }
.cr-drop.drag { transform: scale(1.005); }
.cr-drop svg { width: 22px; height: 22px; opacity: .7; }
.cr-drop strong { color: #fff; font-weight: 600; }
.cr-drop.busy { opacity: .6; pointer-events: none; }

.cr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); gap: 13px; --tile-aspect: 16 / 6; }
.cr-grid-empty { color: rgba(255,255,255,.35); font-size: .84rem; grid-column: 1 / -1; padding: 4px 0; }
.cr-tile { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--cr-line); background: #0d0f13; }
.cr-tile-img { width: 100%; aspect-ratio: var(--tile-aspect); background-size: cover; background-position: center; }
.cr-tile-overlay {
  position: absolute; inset: 0; padding: 9px; display: flex; align-items: flex-start; justify-content: flex-end;
  background: linear-gradient(180deg, rgba(0,0,0,.45), transparent 40%, transparent 65%, rgba(0,0,0,.5));
  opacity: 0; transition: opacity .2s var(--ease);
}
.cr-tile:hover .cr-tile-overlay { opacity: 1; }
.cr-tile-del {
  width: 30px; height: 30px; border-radius: 9px; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10,12,16,.75); color: #fff; backdrop-filter: blur(6px);
  transition: background .15s ease, transform .15s var(--ease);
}
.cr-tile-del:hover { background: rgba(239,68,68,.85); transform: scale(1.08); }
.cr-tile-del svg { width: 15px; height: 15px; }
.cr-tile-title { position: absolute; left: 11px; bottom: 9px; color: #fff; font-size: .82rem; font-weight: 600; text-shadow: 0 1px 8px rgba(0,0,0,.8); }

.cr-section-title { margin: 34px 0 14px; font-size: 1.25rem; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.cr-newsong { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; padding: 9px; border: 1px solid var(--cr-line); border-radius: 15px; background: rgba(255,255,255,.02); }
#songTitle { flex: 1; min-width: 150px; }
#songArtist { flex: 1; min-width: 130px; }
.cr-file { display: inline-flex; align-items: center; cursor: pointer; }
.cr-file span { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-songlist { display: flex; flex-direction: column; gap: 9px; }
.cr-song { display: flex; align-items: center; gap: 13px; padding: 10px 12px; background: var(--cr-glass); border: 1px solid var(--cr-line); border-radius: 13px; }
.cr-song-art { width: 46px; height: 46px; border-radius: 9px; flex: none; background: rgba(255,255,255,.06) center/cover no-repeat; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.4); }
.cr-song-art svg { width: 20px; height: 20px; }
.cr-song-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.cr-song-title { font-size: .92rem; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-song-artist { font-size: .8rem; color: rgba(255,255,255,.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.cr-modal {
  position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(6,8,12,.62); backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .2s var(--ease);
}
.cr-modal.open { opacity: 1; pointer-events: auto; }
.cr-modal-box {
  width: 100%; max-width: 420px; padding: 26px 26px 22px;
  background: var(--cr-glass); border: 1px solid var(--cr-line-2); border-radius: 18px;
  backdrop-filter: blur(20px) saturate(1.2); box-shadow: 0 30px 80px rgba(0,0,0,.6);
  transform: scale(.95) translateY(8px); transition: transform .22s var(--ease);
}
.cr-modal.open .cr-modal-box { transform: none; }
.cr-modal-box h3 { margin: 0 0 8px; font-size: 1.2rem; font-weight: 700; color: #fff; }
.cr-modal-box p { margin: 0 0 22px; color: rgba(255,255,255,.6); font-size: .92rem; line-height: 1.55; }
.cr-modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
.cr-btn-danger { background: rgba(239,68,68,.14); color: #ff8a8a; border: 1px solid rgba(239,68,68,.32); }
.cr-btn-danger:hover { background: rgba(239,68,68,.24); color: #ffb0b0; }

.cr-toast-wrap { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 400; display: flex; flex-direction: column; gap: 9px; align-items: center; }
.cr-toast {
  padding: 11px 18px; border-radius: 11px; font-size: .88rem; font-weight: 500; color: #fff;
  background: var(--cr-glass); border: 1px solid var(--cr-line-2); backdrop-filter: blur(16px);
  box-shadow: 0 14px 40px rgba(0,0,0,.5);
  opacity: 0; transform: translateY(14px); transition: opacity .28s var(--ease), transform .28s var(--ease);
}
.cr-toast.show { opacity: 1; transform: none; }
.cr-toast.error { border-color: rgba(239,68,68,.4); color: #ffb3b3; }

.wrap-top { justify-content: flex-start; }
.work-page { width: 100%; max-width: 1020px; display: flex; flex-direction: column; align-items: stretch; }
.work-page .panel { width: 100%; animation-delay: .2s; padding: 34px 36px; }
.work-page .panel-title { font-size: 2.6rem; }
.back-link {
  align-self: flex-start; margin-bottom: 16px; text-decoration: none;
  color: #fff; font-size: .8rem; font-weight: 500;
  background: rgba(0,0,0,.4); padding: 7px 13px; border-radius: 999px;
  backdrop-filter: blur(6px); transition: background .15s ease;
}
.back-link:hover { background: rgba(0,0,0,.6); }

.work-gallery { width: 100%; margin-top: 30px; }
.work-cat { margin-bottom: 36px; }
.cat-label {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; font-size: .85rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  margin: 0 0 16px; text-shadow: 0 1px 12px rgba(0,0,0,.5);
}
.cat-icon { color: rgba(255,255,255,.55); font-size: .95em; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); gap: 18px; --tile-aspect: 16 / 6; }
.work-item {
  display: block; position: relative; width: 100%; padding: 0; cursor: pointer; text-align: left;
  background: #14171d; border-radius: 13px; overflow: hidden; border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 16px 40px rgba(0,0,0,.4); transition: transform .18s ease, border-color .2s ease;
}
.work-item:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.25); }
.work-item-img { width: 100%; aspect-ratio: var(--tile-aspect); background-size: cover; background-position: center; }
.work-item-title { position: absolute; left: 14px; bottom: 12px; color: #fff; font-weight: 700; font-size: 1rem; text-shadow: 0 2px 8px rgba(0,0,0,.6); }

.lightbox {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  padding: 5vh 5vw; background: rgba(6,8,12,.82); backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none; transition: opacity .22s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lb-stage { display: flex; flex-direction: column; align-items: center; gap: 14px; transform: scale(.97); transition: transform .22s cubic-bezier(.22,.61,.36,1); }
.lightbox.open .lb-stage { transform: scale(1); }
.lb-img { max-width: 90vw; max-height: 82vh; border-radius: 12px; box-shadow: 0 30px 90px rgba(0,0,0,.7); }
.lb-link {
  display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-size: .88rem; font-weight: 600;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); padding: 9px 16px; border-radius: 999px;
  transition: background .15s ease;
}
.lb-link:hover { background: rgba(255,255,255,.18); }
.lb-close {
  position: fixed; top: 22px; right: 26px; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: #fff; font-size: 1.5rem; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s ease, transform .15s ease;
}
.lb-close:hover { background: rgba(255,255,255,.18); transform: rotate(90deg); }

.card {
  position: relative;
  width: 100%; max-width: 420px;
  background: rgba(18, 20, 26, 0.72);
  border: 1px solid var(--card-border);
  border-radius: 20px; overflow: hidden;
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
  opacity: 0; transform: translateY(14px);
  animation: rise .8s .25s cubic-bezier(.2,.7,.2,1) forwards;
}
.deck.themed .card { background: var(--theme-body); }

.profile-effect {
  position: absolute; inset: 0; overflow: hidden;
  pointer-events: none; border-radius: 20px; z-index: 6;
}
.profile-effect .fx-layer {
  position: absolute; top: 0; left: 0; width: 100%; height: auto;
  will-change: opacity;
}
@keyframes rise { to { opacity: 1; transform: none; } }

.banner {
  height: 120px;
  background-color: #14171d;
  background: #14171d linear-gradient(120deg, var(--blue), #20242c 60%, var(--red));
  background-size: cover; background-position: center;
}
.card-body { padding: 0 20px 22px; display: flex; flex-direction: column; gap: 14px; }

.top-row { display: flex; align-items: flex-end; justify-content: space-between; margin-top: -32px; }

.avatar-wrap { position: relative; flex: none; }
.avatar {
  width: 78px; height: 78px; border-radius: 50%;
  object-fit: cover; background: #14171d;
  border: 5px solid var(--avatar-ring, rgba(18, 20, 26, 0.95));
  box-shadow: 0 6px 24px rgba(0,0,0,.5), 0 0 0 3px var(--accent, transparent), 0 0 26px -2px var(--accent, transparent);
}
.status-dot {
  position: absolute; right: 2px; bottom: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--offline); border: 4px solid var(--avatar-ring, rgba(18, 20, 26, 0.98));
  transition: background .3s ease;
}
.status-dot.online { background: var(--online); }
.status-dot.idle   { background: var(--idle); }
.status-dot.dnd    { background: var(--dnd); }
.status-dot.offline{ background: var(--offline); }

.names { text-align: left; }
.display-name {
  font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em;
  display: flex; align-items: center; gap: 8px; line-height: 1.1;
}
.badges {
  display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; justify-content: flex-end;
  padding: 4px 8px; border-radius: 10px; max-width: 60%;
  background: var(--card); min-height: 30px;
}
.badges:empty { display: none; }
.badges img { width: 20px; height: 20px; display: block; }
.badges a, .badges span { display: inline-flex; line-height: 0; border-radius: 4px; transition: transform .15s ease; }
.badges a:hover { transform: scale(1.18); }
.pronouns { font-size: .8rem; font-weight: 500; color: var(--faint); }
.handle { color: var(--faint); font-size: .85rem; margin-top: 2px; }

.bio { font-size: .86rem; line-height: 1.5; color: var(--muted); white-space: pre-wrap; word-break: break-word; }

.section { display: flex; flex-direction: column; gap: 8px; }
.section-title { font-size: .78rem; font-weight: 600; color: var(--faint); }
.section-val { font-size: .88rem; color: var(--text); }

.connections { display: flex; flex-direction: column; gap: 1px; }
.conn {
  display: flex; align-items: center; gap: 12px;
  padding: 7px 6px; border-radius: 7px;
  color: var(--text); text-decoration: none;
  transition: background .15s ease;
}
a.conn:hover { background: var(--card); }
.conn-ico { flex: none; width: 22px; display: inline-flex; align-items: center; justify-content: center; }
.conn-ico svg, .conn-ico .conn-logo { width: 20px; height: 20px; }
.conn-ico .conn-logo { object-fit: contain; }
.conn-ico .letter { width: 21px; height: 21px; font-size: .8rem; color: var(--muted); }
.conn-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.conn-name { display: inline-flex; align-items: center; gap: 5px; font-size: .9rem; font-weight: 500; color: var(--text); }
.conn-meta { font-size: .73rem; color: var(--faint); }
.conn-arrow { width: 12px; height: 12px; opacity: .55; flex: none; }
.note { color: var(--faint); font-size: .78rem; text-align: center; }

.custom-status {
  position: absolute; top: 50px; left: 98px; z-index: 8;
  display: inline-flex; align-items: center; gap: 6px;
  max-width: 230px;
  background: var(--bubble, rgba(26,28,34,.94));
  color: var(--bubble-text, #f4f5f8);
  padding: 8px 13px; border-radius: 16px;
  font-size: .82rem; font-weight: 500;
  box-shadow: 0 6px 18px rgba(0,0,0,.22);
}
.custom-status::before, .custom-status::after {
  content: ""; position: absolute; background: var(--bubble, rgba(26,28,34,.94));
  border-radius: 50%; box-shadow: 0 4px 10px rgba(0,0,0,.18);
}
.custom-status::after  { width: 11px; height: 11px; left: 2px;  bottom: -7px; }
.custom-status::before { width: 6px;  height: 6px;  left: -5px; bottom: -15px; }
.cs-emoji { font-size: 1rem; line-height: 1; display: inline-flex; }
.cs-emoji img { width: 18px; height: 18px; }
.cs-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.activity-card {
  display: flex; flex-direction: column; gap: 11px;
  width: 100%;
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 12px; padding: 13px 15px; text-align: left;
}
.act-header { display: flex; align-items: center; gap: 6px; }
.act-kind { font-size: .8rem; font-weight: 500; color: var(--muted); }
.act-kind-icon { display: inline-flex; line-height: 0; }
.act-kind-icon svg { width: 15px; height: 15px; }
.act-kind-icon:empty { display: none; }
.act-menu-wrap { margin-left: auto; position: relative; }
.act-menu {
  background: none; border: 0; cursor: pointer; padding: 2px 4px;
  color: var(--faint); font-size: 1.1rem; letter-spacing: 1px; line-height: 1;
  border-radius: 6px; transition: color .15s ease, background .15s ease;
}
.act-menu:hover { color: var(--text); background: var(--card-hover); }
.act-dropdown {
  position: absolute; right: 0; top: 150%; z-index: 40; min-width: 168px;
  background: var(--bubble, #1b1e25); border: 1px solid var(--card-border);
  border-radius: 10px; padding: 5px; box-shadow: 0 12px 32px rgba(0,0,0,.4);
}
.act-listen {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: 7px;
  color: var(--bubble-text, var(--text)); text-decoration: none;
  font-size: .86rem; font-weight: 500;
}
.act-listen:hover { background: var(--card-hover); }
.act-listen svg { width: 17px; height: 17px; flex: none; }

.act-body { display: flex; align-items: center; gap: 14px; }
.act-art-wrap { position: relative; flex: none; }
.act-art {
  width: 64px; height: 64px; border-radius: 7px; object-fit: cover;
  background: rgba(0,0,0,.12); display: block;
}
.act-small {
  position: absolute; right: -7px; bottom: -7px;
  width: 24px; height: 24px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--avatar-ring, #14171d); background: rgba(0,0,0,.2);
}
.act-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.act-state, .act-elapsed { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-elapsed { color: var(--faint); font-variant-numeric: tabular-nums; }
.act-title { font-weight: 700; font-size: .95rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-sub { font-size: .85rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.act-progress { display: flex; align-items: center; gap: 9px; margin-top: 5px; }
.act-t { font-size: .68rem; color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.act-bar { position: relative; flex: 1; height: 4px; border-radius: 4px; background: var(--card-border); }
.act-bar span {
  position: absolute; left: 0; top: 0; height: 100%; width: 0;
  border-radius: 4px; background: var(--text); transition: width .4s linear;
}
.act-bar span::after {
  content: ""; position: absolute; right: -4px; top: 50%;
  width: 9px; height: 9px; border-radius: 50%; background: var(--text);
  transform: translateY(-50%);
}

.platforms { display: flex; gap: 8px; color: var(--muted); }
.platforms svg { width: 16px; height: 16px; opacity: .8; }

.links, .tech {
  display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px;
  width: 100%;
}
.tech { gap: 6px; }
.names { text-align: left; }

.badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--card); border: 1px solid var(--card-border);
  color: var(--text); text-decoration: none;
  padding: 8px 14px; border-radius: 12px;
  font-size: .85rem; font-weight: 500;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
  cursor: pointer;
}
.badge:hover { background: var(--card-hover); border-color: rgba(255,255,255,.16); transform: translateY(-2px); }
.badge svg, .badge img { width: 16px; height: 16px; flex: none; }
.badge .letter {
  width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .7rem; color: var(--muted);
}
.tech .badge { padding: 6px 12px; font-size: .8rem; color: var(--muted); }

.offline-note { margin-top: 22px; color: var(--faint); font-size: .8rem; }

.foot {
  position: relative; z-index: 1;
  text-align: center; padding: 22px; color: var(--faint);
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
}

.mp { position: fixed; right: 22px; bottom: 22px; z-index: 120; font-family: inherit; animation: mpIn .55s var(--ease) both; }
@keyframes mpIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.mp-launch, .mp-card { position: absolute; right: 0; bottom: 0; transform-origin: bottom right; }

.mp-launch {
  display: flex; width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  align-items: center; justify-content: center; color: #fff;
  background: rgba(20,22,28,.72); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(16px);
  box-shadow: 0 14px 40px rgba(0,0,0,.5);
  opacity: 0; transform: scale(0); pointer-events: none;
  transition: opacity .2s ease, transform .35s cubic-bezier(.34,1.56,.64,1), background .15s ease;
}
.mp-launch svg { width: 24px; height: 24px; }
.mp-launch:hover { background: rgba(28,30,38,.85); }
.mp.collapsed .mp-launch { opacity: 1; transform: scale(1); pointer-events: auto; transition-delay: .08s; }
.mp.collapsed .mp-launch:hover { transform: scale(1.07); }

.mp-card {
  width: 320px; padding: 15px 16px 16px;
  background: rgba(16,18,24,.72); border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px; backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 22px 60px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.05);
  opacity: 1; transform: none;
  transition: opacity .22s ease, transform .28s var(--ease);
}
.mp.collapsed .mp-card { opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none; }
.mp-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.mp-label { font-size: .66rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.42); }
.mp-collapse { width: 26px; height: 26px; padding: 0; display: flex; align-items: center; justify-content: center; border: 0; cursor: pointer; border-radius: 8px; background: rgba(255,255,255,.05); color: rgba(255,255,255,.6); transition: background .15s ease, color .15s ease; }
.mp-collapse:hover { background: rgba(255,255,255,.12); color: #fff; }
.mp-collapse svg { width: 15px; height: 15px; }

.mp-now { display: flex; align-items: center; gap: 13px; margin-bottom: 13px; }
.mp-art { width: 58px; height: 58px; border-radius: 10px; object-fit: cover; flex: none; background: #0d0f13; box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.mp-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mp-title { font-size: .98rem; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-artist { font-size: .82rem; color: rgba(255,255,255,.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mp-progress { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.mp-t { font-size: .66rem; color: rgba(255,255,255,.45); font-variant-numeric: tabular-nums; flex: none; }
.mp-bar { position: relative; flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.14); cursor: pointer; }
.mp-bar:hover { height: 5px; }
.mp-fill { position: absolute; left: 0; top: 0; height: 100%; width: 0; border-radius: 4px; background: #fff; }
.mp-fill::after { content: ""; position: absolute; right: -5px; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: #fff; transform: translateY(-50%); opacity: 0; transition: opacity .15s ease; }
.mp-bar:hover .mp-fill::after { opacity: 1; }

.mp-controls { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 12px; }
.mp-ctl { width: 36px; height: 36px; padding: 0; display: flex; align-items: center; justify-content: center; border: 0; cursor: pointer; border-radius: 50%; background: none; color: rgba(255,255,255,.62); transition: color .15s ease, background .15s ease, transform .15s var(--ease); }
.mp-ctl:hover { color: #fff; background: rgba(255,255,255,.07); }
.mp-ctl svg { width: 18px; height: 18px; }
.mp-ctl.on { color: #1ed760; }
.mp-play { width: 46px; height: 46px; padding: 0; display: flex; align-items: center; justify-content: center; border: 0; cursor: pointer; border-radius: 50%; background: #fff; color: #14161b; transition: transform .15s var(--ease); }
.mp-play:hover { transform: scale(1.06); }
.mp-play svg { width: 22px; height: 22px; }

.mp-vol { display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.5); }
.mp-vol svg { width: 17px; height: 17px; flex: none; }
.mp-vol input[type=range] { -webkit-appearance: none; appearance: none; flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.14); cursor: pointer; outline: none; }
.mp-vol input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 0; }
.mp-vol input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 0; }

@media (max-width: 760px) {
  .wrap { padding: 36px 14px; }
  .deck { gap: 16px; }
  .panel { padding: 22px 22px; }
  .panel-title { font-size: 1.7rem; }

  .work-page .panel { padding: 24px 22px; }
  .work-page .panel-title { font-size: 2rem; }
  .cat-grid { gap: 13px; }

  .cr-admin, .cr-card { max-width: 100%; }
  .cr-card { margin-top: 5vh; padding: 28px 22px; }
  .cr-title { font-size: 1.7rem; }
  .cr-head { flex-wrap: wrap; align-items: flex-start; gap: 10px; }
  .cr-newcat { flex-direction: column; align-items: stretch; }
  .cr-newcat .cr-btn, #catName, .cr-dd, .cr-dd-btn { width: 100%; }
  .cr-dd-btn { justify-content: space-between; }
  .cr-cat { padding: 16px 15px; }
  .cr-cat-head { gap: 10px; }
  .cr-newsong { flex-direction: column; align-items: stretch; }
  .cr-newsong .cr-input, .cr-newsong .cr-btn, .cr-file { width: 100%; }
  .cr-file { justify-content: center; }

  .mp { right: 12px; bottom: 12px; left: 12px; }
  .mp-card { width: auto; }
  .mp.collapsed { left: auto; }
}

@media (max-width: 480px) {
  .display-name { font-size: 1.3rem; }
  .avatar { width: 62px; height: 62px; }
  .banner { height: 104px; }
  .top-row { margin-top: -28px; }
  .custom-status { max-width: 170px; top: 46px; left: 92px; }
  .act-art, .act-art-wrap { width: 56px; }
  .act-art { height: 56px; }
  .panel-title, .work-page .panel-title { font-size: 1.6rem; }
  .work-page-title { font-size: 1.9rem; }
  .lb-close { top: 14px; right: 16px; width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .load-bar span, .profile, .stars i { animation: none !important; }
  .profile { opacity: 1; transform: none; }
}
