/* Nunito (SIL Open Font License, see fonts/OFL.txt), hosted with the site so every visitor sees the same font.
   Each build puts this at the top of the site's stylesheet and copies the fonts/ folder next to it. */
@font-face { font-family: "Nunito"; font-style: normal; font-display: swap; font-weight: 200 1000; src: url(fonts/nunito-cyrillic-ext.woff2) format("woff2");
             unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Nunito"; font-style: normal; font-display: swap; font-weight: 200 1000; src: url(fonts/nunito-cyrillic.woff2) format("woff2");
             unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-style: normal; font-display: swap; font-weight: 200 1000; src: url(fonts/nunito-vietnamese.woff2) format("woff2");
             unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Nunito"; font-style: normal; font-display: swap; font-weight: 200 1000; src: url(fonts/nunito-latin-ext.woff2) format("woff2");
             unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-style: normal; font-display: swap; font-weight: 200 1000; src: url(fonts/nunito-latin.woff2) format("woff2");
             unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* kori.cat: berry and petal colours from Kori's banner. Dark by default, light when the visitor's system is light. */
:root {
    --bg: #3a0f20;
    --bg2: #5b1a33;
    --card: rgba(255, 236, 244, 0.07);
    --card-hover: rgba(255, 236, 244, 0.12);
    --line: rgba(255, 196, 222, 0.18);
    --text: #fff0f6;
    --muted: #e4b3c8;
    --pink: #ff8fc0;
    --pink-strong: #ff5fa2;
    --gold: #ffc58a;
    --ok: #5fe0a0;
    --idle: #ffc14d;
    --dnd: #ff5f7a;
    --off: #9c7a8a;
    --radius: 22px;
    --font: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
    color-scheme: dark;
}
@media (prefers-color-scheme: light) {
    :root {
        --bg: #fbe7ef;
        --bg2: #f3c9da;
        --card: rgba(255, 255, 255, 0.72);
        --card-hover: rgba(255, 255, 255, 0.92);
        --line: rgba(110, 31, 58, 0.14);
        --text: #4a1328;
        --muted: #8f4a66;
        --pink: #c2316f;
        --pink-strong: #b0245f;
        --gold: #b5651d;
        --ok: #1f9d63;
        --idle: #c98a12;
        --dnd: #c53b5f;
        --off: #9c7a8a;
        color-scheme: light;
    }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
    min-height: 100vh;
    color: var(--text);
    font: 16px/1.6 var(--font);
    background: radial-gradient(1200px 700px at 70% -10%, var(--bg2), transparent 70%), var(--bg);
    background-attachment: fixed;
    overflow-x: hidden;
}
a { color: var(--pink); }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }

/* falling petals, drawn by app.js; hidden for people who prefer less motion */
.petals { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.petal { position: absolute; top: -30px; width: 14px; height: 10px; border-radius: 80% 0 80% 0; background: var(--pink); opacity: 0.55; animation: fall linear infinite; }
@keyframes fall { to { transform: translate(var(--drift), 110vh) rotate(540deg); } }
@media (prefers-reduced-motion: reduce) { .petals { display: none; } }

.top, main, .foot { position: relative; z-index: 1; width: min(1280px, 100% - 32px); margin: 0 auto; }
.top { z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0 8px; }
.logo { font-size: 1.6rem; font-weight: 800; color: var(--text); text-decoration: none; letter-spacing: 0.3px; }
.logo b { color: var(--pink); }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: center 18%; background: var(--card); -webkit-mask-image: radial-gradient(circle, #000 62%, transparent 72%); mask-image: radial-gradient(circle, #000 62%, transparent 72%); }

/* top right: one bar with the tabs, the other sites in a row under the music (like nekobot.ca), then the language globe */
/* Header, the same on all our sites: logo and globe on the first line, the bar (tabs, links, player) under them, as wide as the page */
.top { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "logo lang" "nav nav"; align-items: center; gap: 12px 16px; }
.top .logo { grid-area: logo; justify-self: start; }
.top-right { display: contents; }
.top .lang { grid-area: lang; }
.top .nav { grid-area: nav; }


.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 5px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.tab-bar { display: contents; }
.tab-bar button { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border: 0; border-radius: 11px; background: none;
    color: var(--muted); font: 700 0.95rem var(--font); text-decoration: none; cursor: pointer; transition: background 0.15s, color 0.15s; }
.tab-bar button:hover { color: var(--text); background: var(--card-hover); }
.tab-bar button[aria-selected="true"] { color: #fff; background: linear-gradient(135deg, var(--pink-strong), #b03a8c); box-shadow: 0 6px 18px -8px var(--pink-strong); }
.tab-bar em { font-style: normal; font-size: 0.74rem; padding: 0 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); }
.tab-bar button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.sound { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; padding-left: 4px; }
.sound .controls { display: flex; align-items: center; gap: 6px; }
@media (max-width: 520px) { .volume { display: none; } .tab-bar em { display: none; } .tab-bar button { padding: 6px 9px; font-size: 0.86rem; } }
.music { width: 36px; height: 32px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font: 700 1rem var(--font); cursor: pointer; }
.music[aria-pressed="true"] { color: #fff; background: linear-gradient(135deg, var(--pink-strong), #b03a8c); border-color: transparent; }
.music.waiting { animation: hum 1.6s ease-in-out infinite; }
@keyframes hum { 50% { color: var(--pink); } }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .avatar { animation: none; } }
.volume { width: 78px; accent-color: var(--pink); cursor: pointer; }
.seek-wrap { display: flex; flex-direction: row; align-items: center; gap: 8px; align-self: stretch; }
.seek-wrap .seek { flex: 1 1 auto; min-width: 0; accent-color: var(--pink); cursor: pointer; }
.seek-wrap .seek:disabled { cursor: default; opacity: 0.45; }
.seek-remain, .seek-total { font-size: 0.68rem; color: var(--muted); font-variant-numeric: tabular-nums; line-height: 1.1; white-space: nowrap; min-width: 34px; }
.seek-remain { text-align: left; }
.seek-total { text-align: right; }
@media (max-width: 520px) { .seek-wrap { display: none; } }
.prev, .skip, .repeat { width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font: 700 0.85rem var(--font); cursor: pointer; }
.prev:hover, .skip:hover, .repeat:hover { color: var(--text); background: var(--card-hover); }
.np-time { font-size: 0.72rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; opacity: 0.85; }
.np-box { display: flex; flex-direction: column; justify-content: center; min-width: 0; line-height: 1.2; }

.np-time:empty { display: none; }

.np { max-width: 150px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 0.8rem; color: var(--muted); }
.np:empty { display: none; }

.credit { font-size: 0.82rem; }
@media (max-width: 640px) { .volume { width: 56px; } }

/* language picker: a globe that fans its flags out in an arc */
.lang { position: relative; z-index: 20; }
.globe { width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
         background: linear-gradient(135deg, var(--pink-strong), #b03a8c); box-shadow: 0 6px 22px -6px var(--pink-strong); transition: transform 0.3s; }
.globe svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.6; }
.globe:hover, .lang.open .globe { transform: rotate(-20deg) scale(1.06); }
.flags { position: absolute; top: 26px; right: 26px; width: 0; height: 0; }
.flags a { position: absolute; left: -17px; top: -17px; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; opacity: 0; pointer-events: none;
           box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35); border: 2px solid rgba(255, 255, 255, 0.85); transform: translate(0, 0) scale(0.3);
           transition: transform 0.35s cubic-bezier(.3, 1.4, .5, 1), opacity 0.25s; transition-delay: calc(var(--i) * 18ms); }
.flags a svg { width: 100%; height: 100%; display: block; }
.flags a[aria-current="page"] { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold); }
.lang.open .flags a { opacity: 1; pointer-events: auto; transform: translate(var(--x), var(--y)) scale(1); }
.flags a:hover, .flags a:focus-visible { transform: translate(var(--x), var(--y)) scale(1.25); z-index: 2; }
.flags a .tip { display: none; }
.lang-name { position: absolute; right: 64px; top: 12px; padding: 4px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line);
             font-size: 0.85rem; white-space: nowrap; opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.lang.open .lang-name.show { opacity: 1; }

/* hero */
.hero { margin-top: 10px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); overflow: hidden; backdrop-filter: blur(6px); }
.banner { height: clamp(170px, 30vw, 320px); overflow: hidden; }
.banner img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.me { display: grid; grid-template-columns: minmax(150px, 240px) minmax(0, 1fr); gap: 8px 28px; padding: 0 28px 26px; }
@media (min-width: 1101px) { .me:has(> .now:not([hidden])) { grid-template-columns: minmax(150px, 260px) minmax(0, 1fr) minmax(340px, 480px); } }
.me > .now { padding-top: 14px; min-width: 0; align-self: start; }
@media (max-width: 1100px) { .me > .now { grid-column: 1 / -1; } }
.avatar { margin-top: -150px; width: 100%; height: auto; align-self: start; animation: float 6s ease-in-out infinite;
          -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 46%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 60% 50% at 50% 46%, #000 62%, transparent 100%); }
.who { padding-top: 18px; min-width: 0; }
h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.1; letter-spacing: 0.5px;
     background: linear-gradient(90deg, var(--pink), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tagline { margin: 4px 0 12px; color: var(--muted); font-weight: 600; }
.facts { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { padding: 4px 13px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 0.9rem; }
.clock { font-variant-numeric: tabular-nums; font-weight: 700; }
.status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; padding: 10px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.status .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--off); flex: none; }
.status.online .dot { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.status.idle .dot { background: var(--idle); }
.status.dnd .dot { background: var(--dnd); }
.status.live .dot { background: #ff2d55; box-shadow: 0 0 12px #ff2d55; animation: pulse 1.4s infinite; }
.status .activity { color: var(--muted); overflow-wrap: anywhere; }
.status a { font-weight: 700; }
@keyframes pulse { 50% { opacity: 0.4; } }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-block; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text);
       font-weight: 700; text-decoration: none; transition: transform 0.15s, background 0.15s; }
.btn:hover { transform: translateY(-2px); background: var(--card-hover); }
.btn.primary { background: linear-gradient(135deg, var(--pink-strong), #b03a8c); color: #fff; border-color: transparent; }

/* sections */
.block { margin-top: 34px; }
h2 { font-size: 1.35rem; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.project, .social { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line);
                    color: var(--text); text-decoration: none; transition: transform 0.15s, background 0.15s, border-color 0.15s; }
.project:hover, .social:hover { transform: translateY(-3px); background: var(--card-hover); border-color: var(--pink); }
.p-icon { font-size: 2rem; line-height: 1; margin-bottom: 4px; }
.project b { font-size: 1.08rem; }
.project span { color: var(--muted); font-size: 0.92rem; }
.p-pic { width: 64px; height: 64px; object-fit: contain; margin-bottom: 6px; }
/* the bots' pictures fade out at every edge, so art that runs off the picture has no hard cut */
.p-pic { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%); mask-composite: intersect; }
.p-live { margin-top: auto; padding-top: 6px; color: var(--text); font-weight: 700; font-size: 0.9rem; }
.p-live::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.p-live.down::before { background: #ff5f7a; box-shadow: none; }
.socials { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.social { flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px; }
.s-mark { width: 38px; height: 38px; border-radius: 12px; flex: none; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--c); overflow: hidden; }
.s-mark svg { width: 20px; height: 20px; fill: #fff; }
.s-mark img { width: 100%; height: 100%; display: block; }
.social b { display: block; font-size: 0.98rem; }
.social small { display: block; color: var(--muted); overflow-wrap: anywhere; }
/* Activity panel (live from NekoBot), in the hero next to the name */
.panel { --panel: #1c0710; padding: 14px 16px 16px; border-radius: var(--radius); background: rgba(20, 4, 11, 0.55); border: 1px solid var(--line); }
@media (prefers-color-scheme: light) { .panel { --panel: #fff; background: rgba(255, 255, 255, 0.6); } }
.panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 14px; }
.panel-head h2 { margin: 0; text-transform: uppercase; letter-spacing: 1.5px; font-size: 1.15rem; }
.panel-head h2::after { display: none; }
.here-time { font: 600 0.9rem ui-monospace, Consolas, monospace; text-transform: uppercase; letter-spacing: 0.5px; }
.tz-name { color: var(--pink-strong); }
.slash, .here-diff { color: var(--muted); }
.row-discord, .row-spotify { display: block; position: relative; overflow: hidden; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--text); text-decoration: none; }
.row-spotify { margin-top: 12px; }
.row-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); position: relative; }
.brand svg { width: 17px; height: 17px; }
.brand.discord svg { fill: #5865f2; }
.brand.spotify svg { fill: #1db954; }
.d-state { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; }
.d-dot { width: 9px; height: 9px; border-radius: 2px; background: var(--off); }
.d-state.online .d-dot { background: var(--ok); }
.d-state.idle .d-dot { background: var(--idle); }
.d-state.dnd .d-dot { background: var(--dnd); }
.d-state.live .d-dot { background: #ff2d55; animation: pulse 1.4s infinite; }
.d-me { display: flex; align-items: center; gap: 10px; }
.d-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.d-custom { margin: 10px 0 0; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); font-style: italic; color: var(--muted); overflow-wrap: anywhere; }
.d-activity { display: flex; gap: 12px; align-items: center; margin-top: 10px; }
.d-art { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; }
.d-activity b, .d-activity small { display: block; overflow-wrap: anywhere; }
.d-activity small { color: var(--muted); }
.d-quiet { margin: 10px 0 0; color: var(--muted); font-style: italic; }
.s-blur { position: absolute; inset: -30px; background-size: cover; background-position: center; filter: blur(28px) saturate(1.2); opacity: 0.35; }
.row-spotify > :not(.s-blur) { position: relative; }
a.row-spotify[href]:hover { border-color: #1db954; }
.s-idle { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-top: 8px; }
.s-idle b { color: #1db954; }
.row-spotify.idle { padding-bottom: 12px; }
.s-main { display: flex; gap: 14px; align-items: center; margin-top: 10px; }
.s-art { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; flex: none; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.6); }
.s-info { min-width: 0; display: flex; flex-direction: column; }
.s-track { font-size: 1.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-artist { color: var(--text); opacity: 0.8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-album { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-bar { display: block; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.18); overflow: hidden; margin-top: 14px; }
.s-bar i { display: block; height: 100%; width: 0; background: var(--text); transition: width 0.9s linear; }
.s-times { display: flex; justify-content: space-between; margin-top: 4px; font: 600 0.8rem ui-monospace, Consolas, monospace; }

/* Tabs (their buttons live in the top bar) */
.tabs { scroll-margin-top: 16px; }
.tab-pane { animation: fadein 0.25s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .tab-pane { animation: none; } }

/* PC specs */
.rigs { display: grid; gap: 22px; }
.rig h3 { margin: 0 0 10px; font-size: 1.05rem; color: var(--pink); }
.specs { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.specs div { padding: 12px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.specs dt { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.8px; }
.specs dd { margin: 2px 0 0; font-weight: 700; }
.about p { max-width: 960px; margin: 0 0 12px; color: var(--text); opacity: 0.92; }
.weather .w-icon { font-size: 1.05rem; }
div.project:hover { transform: none; border-color: var(--line); background: var(--card); }
.moments { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.moments img { width: 100%; height: 260px; object-fit: cover; border-radius: 18px; border: 1px solid var(--line); }

.domain-list { display: flex; flex-wrap: wrap; gap: 10px; }
.domain-list .domain { padding: 8px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--text); font-weight: 700; font-size: 0.95rem; }

.foot { margin-top: 44px; padding: 22px 0 40px; border-top: 1px solid var(--line); text-align: center; font-size: 0.92rem; }
.foot p { margin: 6px 0; }
.langs a { margin: 0 6px; white-space: nowrap; }
.langs a[aria-current="page"] { font-weight: 800; color: var(--gold); }

@media (max-width: 640px) {
    .me { grid-template-columns: 1fr; padding: 0 18px 22px; justify-items: center; text-align: center; }
    .avatar { margin-top: -110px; width: 170px; }
    .facts, .actions, .status { justify-content: center; }
    .logo { font-size: 1.3rem; }
}

/* Compact activity panel in the hero: about as tall as the name, facts and buttons beside it. */
.me > .now .panel { padding: 12px 14px; }
.me > .now .panel-head { margin-bottom: 8px; }
.me > .now .panel-head h2 { font-size: 0.95rem; }
.me > .now .here-time { font-size: 0.78rem; }
.me > .now .row-discord, .me > .now .row-spotify { padding: 9px 12px; border-radius: 12px; }
.me > .now .row-spotify { margin-top: 8px; }
.me > .now .row-top { margin-bottom: 6px; }
.me > .now .d-me { gap: 8px; }
.me > .now .d-avatar { width: 26px; height: 26px; }
.me > .now .d-custom { margin-top: 6px; padding: 5px 10px; font-size: 0.86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me > .now .d-activity { margin-top: 6px; gap: 10px; }
.me > .now .d-art { width: 36px; height: 36px; border-radius: 8px; }
.me > .now .d-activity b { font-size: 0.92rem; }
.me > .now .d-activity small { font-size: 0.78rem; }
.me > .now .s-main { margin-top: 6px; gap: 10px; }
.me > .now .s-art { width: 48px; height: 48px; border-radius: 6px; }
.me > .now .s-track { font-size: 0.98rem; }
.me > .now .s-artist { font-size: 0.86rem; }
.me > .now .s-album { font-size: 0.76rem; }
.me > .now .s-bar { margin-top: 8px; }
.me > .now .s-times { font-size: 0.72rem; }
.me > .now .s-idle { margin-top: 4px; font-size: 0.9rem; }
.me > .now { margin-top: -64px; }
.me > .now .panel { background: rgba(28, 6, 16, 0.86); backdrop-filter: blur(10px); box-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.7); }
@media (prefers-color-scheme: light) { .me > .now .panel { background: rgba(255, 245, 250, 0.9); } }
.me > .now .row-discord { display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 8px; }
.me > .now .row-top { display: contents; }
.me > .now .brand.discord { grid-column: 1; grid-row: 1; font-size: 0; gap: 0; }
.me > .now .brand.discord svg { width: 18px; height: 18px; }
.me > .now .d-me { grid-column: 2; grid-row: 1; }
.me > .now .d-state { grid-column: 3; grid-row: 1; }
.me > .now .d-custom, .me > .now .d-activity, .me > .now .d-quiet { grid-column: 1 / -1; }
.me > .now .brand.spotify { position: absolute; top: 10px; right: 12px; font-size: 0; gap: 0; }
.me > .now .brand.spotify svg { width: 18px; height: 18px; }
.me > .now .s-main { margin-top: 0; }
.me > .now .s-album { display: none; }
.me > .now .s-info { padding-right: 24px; }
@media (max-width: 1100px) { .me > .now { margin-top: 0; } }

/* The player's song name opens a panel: the song playing, then Up next (newest pops in) */
.sound { position: relative; }
.np-box { border: 0; background: none; color: inherit; font: inherit; text-align: start; cursor: pointer; padding: 2px 8px; border-radius: 10px; }
.np-box:hover, .np-box[aria-expanded="true"] { background: var(--card-hover); }
.queue { position: absolute; right: 0; top: calc(100% + 10px); width: 300px; padding: 10px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line);
         box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.6); z-index: 40; text-align: start; }
[dir="rtl"] .queue { right: auto; left: 0; }
.queue ul { list-style: none; margin: 0; padding: 0; }
.q-head { display: flex; justify-content: space-between; gap: 8px; margin: 6px 6px; font-size: 0.72rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.q-time { font-variant-numeric: tabular-nums; letter-spacing: 0; text-transform: none; }
.queue li { padding: 7px 10px; border-radius: 12px; }
.queue li b { display: block; font-size: 0.9rem; color: var(--text); }
.queue li span { display: block; font-size: 0.78rem; color: var(--muted); }
.q-now li { background: var(--card); }
.q-list li { cursor: pointer; }
.q-list li:hover, .q-list li:focus-visible { background: var(--card-hover); outline: none; }
.q-list li.new { animation: pop 0.45s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(0.96); } }
@media (max-width: 1100px) {
    .np, .np-time { display: none; }
    .np-box::before { content: "\2630"; }
}
@media (max-width: 520px) { .queue { width: min(300px, calc(100vw - 32px)); } }

/* No selecting page text (guard.js), except inside boxes you type in */
.guarded body { -webkit-user-select: none; user-select: none; }
.guarded input, .guarded textarea { -webkit-user-select: text; user-select: text; }

/* The player sits in the middle of the top line, between the logo and the globe (on phones, on its own line) */
.top { grid-template-columns: 1fr auto 1fr; grid-template-areas: "logo player lang" "nav nav nav"; }
.top .lang { justify-self: end; }
.top .sound { grid-area: player; justify-self: center; display: inline-flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
@media (max-width: 760px) {
    .top { grid-template-columns: 1fr auto; grid-template-areas: "logo lang" "player player" "nav nav"; }
}
@media (max-width: 520px) { .top .volume { display: none; } }
.repeat[aria-pressed="true"] { color: #fff; background: var(--pink); border-color: transparent; }

/* The player's search box */
.q-search { width: 100%; margin: 0 0 6px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: 0.9rem var(--font); }
.q-src { display: block; margin-top: 2px; font-size: 0.74rem; color: var(--muted); }
.q-src a { color: var(--pink); }
.q-free { margin: 0 4px 8px; font-size: 0.74rem; line-height: 1.35; color: var(--muted); }
.q-me a { color: var(--pink); }
.q-face { width: 22px; height: 22px; border-radius: 50%; vertical-align: middle; margin-right: 6px; object-fit: cover; }
.q-search:focus { outline: 2px solid var(--pink); outline-offset: 1px; }
.q-list li.playing b { color: var(--pink); }

/* Account part of the player's panel */
.q-signin, .q-heart { display: block; width: 100%; margin: 8px 0 4px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--pink); font: 700 0.88rem var(--font); text-align: center; text-decoration: none; cursor: pointer; }
.q-signin:hover, .q-heart:hover { background: var(--card-hover); }
.q-me { margin: 8px 6px 2px; font-size: 0.8rem; color: var(--muted); }
.q-me button { border: 0; background: none; padding: 0; color: var(--pink); font: inherit; cursor: pointer; text-decoration: underline; }
.queue { max-height: min(70vh, 560px); overflow-y: auto; }

/* The other NekoWorld sites: a small row under the music player, so the main bar holds only this site's own tabs.
   The logo and the globe sit centred beside the player and this row. */
.top { grid-template-areas: "logo player lang" "logo sites lang" "nav nav nav"; }
.top .logo, .top .lang { align-self: center; }
.top .sites { grid-area: sites; justify-self: center; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; margin-top: -6px; padding: 3px;
    border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.top .sites a { padding: 3px 11px; border-radius: 9px; color: var(--muted); font-size: 0.82rem; font-weight: 700; text-decoration: none; }
.top .sites a:hover { color: var(--text); background: var(--card-hover); }
@media (max-width: 760px) {
    .top { grid-template-areas: "logo lang" "player player" "sites sites" "nav nav"; }
    .top .sites { margin-top: 0; }
}