/* style.css */
:root {
    color-scheme: dark;
    --bg: #000000;
    --surface: #1c1c1e;
    --surface-2: #2c2c2e;
    --surface-3: #3a3a3c;
    --fill: rgba(120, 120, 128, .24);
    --fill-2: rgba(120, 120, 128, .16);
    --separator: rgba(84, 84, 88, .55);
    --text: #ffffff;
    --text-secondary: rgba(235, 235, 245, .62);
    --text-muted: rgba(235, 235, 245, .42);
    --text-dim: rgba(235, 235, 245, .28);
    --accent: #0a84ff;
    --accent-2: #64a8ff;
    --accent-soft: rgba(10, 132, 255, .16);
    --green: #30d158;
    --red: #ff453a;
    --orange: #ff9f0a;
    --purple: #bf5af2;
    --teal: #40c8e0;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --header-height: 52px;
    --bottom-nav-height: 56px;
    --tg-safe-top: env(safe-area-inset-top, 0px);
    --tg-safe-bottom: env(safe-area-inset-bottom, 0px);
    --tg-safe-left: env(safe-area-inset-left, 0px);
    --tg-safe-right: env(safe-area-inset-right, 0px);
    --tg-content-safe-top: var(--tg-safe-top);
    --tg-content-safe-bottom: var(--tg-safe-bottom);
    --nav-total: calc(var(--bottom-nav-height) + var(--tg-content-safe-bottom));
    --ease: cubic-bezier(.22, .8, .22, 1);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
        Inter, system-ui, "Segoe UI", Roboto, "Noto Sans Devanagari", Arial, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
    width: 100%;
    height: 100%;
    height: 100dvh;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    overflow: hidden;
}
body {
    font-size: 15px;
    line-height: 1.35;
    overscroll-behavior: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; }
button:disabled { cursor: not-allowed; }
img { display: block; max-width: 100%; }
svg { width: 20px; height: 20px; stroke-width: 1.9; flex: none; }
.hidden { display: none !important; }
::selection { background: rgba(10, 132, 255, .4); }
::-webkit-scrollbar { width: 0; height: 0; }
button:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.app-container {
    width: 100%;
    max-width: 560px;
    min-height: 100dvh;
    margin: 0 auto;
    position: relative;
}
.desktop-sidebar { display: none !important; }
.top-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    height: calc(var(--header-height) + var(--tg-content-safe-top));
    padding: var(--tg-content-safe-top) max(16px, var(--tg-safe-right)) 0 max(16px, var(--tg-safe-left));
    display: flex;
    align-items: center;
    justify-content: space-between;
    isolation: isolate;
}
.top-bar::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(0, 0, 0, .72);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
}
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 10px; min-width: 0; }
.top-bar-center {
    position: absolute;
    left: 50%;
    top: var(--tg-content-safe-top);
    height: var(--header-height);
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: min(60vw, 280px);
}
.app-brand { display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.app-brand-icon, .join-logo-icon {
    width: 30px; height: 30px;
    display: grid; place-items: center;
    border-radius: 8px;
    background: linear-gradient(180deg, #ff5e7a, #ff2d55);
    color: #fff;
}
.app-brand-icon svg { width: 17px; height: 17px; }
.app-title { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.room-meta { display: flex; align-items: center; }
.badge {
    height: 26px; padding: 0 10px;
    display: inline-flex; align-items: center; gap: 6px;
    border-radius: 99px;
    background: var(--fill-2);
    color: var(--text-secondary);
    font-size: 12px; font-weight: 600;
}
.badge.admin { color: var(--accent-2); background: var(--accent-soft); }
.badge-dot, .connection-dot {
    width: 6px; height: 6px; border-radius: 50%;
    display: inline-block;
    background: var(--green);
}
.badge.admin .badge-dot { background: var(--accent); }
.connection-dot { margin-right: 4px; }
.header-avatar-btn {
    width: 34px; height: 34px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: var(--fill-2);
}
.header-avatar-btn:active { opacity: .6; }
.avatar-container { width: 100%; height: 100%; position: relative; }
.user-avatar {
    width: 100%; height: 100%;
    display: grid; place-items: center;
    border-radius: 50%;
    background: linear-gradient(180deg, #6e6e73, #48484a);
    color: #fff; font-weight: 600;
    overflow: hidden; object-fit: cover;
}
.premium-badge {
    position: absolute; right: -3px; bottom: -3px;
    width: 15px; height: 15px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--orange);
    border: 2px solid var(--bg);
}
.premium-badge svg { width: 8px; height: 8px; }
.dynamic-island {
    height: 34px; min-width: 150px; max-width: 270px; width: 100%;
    padding: 0 12px;
    display: inline-flex; align-items: center;
    border-radius: 99px;
    background: #000;
    border: 1px solid rgba(255, 255, 255, .1);
    cursor: pointer; user-select: none; overflow: hidden;
    transition: transform .3s var(--ease), border-color .3s ease;
}
.dynamic-island:active { transform: scale(.96); }
.dynamic-island.island-active-glow { border-color: rgba(255, 255, 255, .22); }
.dynamic-island.island-vc-active { border-color: rgba(48, 209, 88, .55); }
.dynamic-island-content { display: flex; align-items: center; gap: 8px; width: 100%; }
.dynamic-island-left { display: flex; align-items: center; flex: none; }
.dynamic-island-left svg { color: var(--text); }
.dynamic-island-text { flex: 1; min-width: 0; display: flex; flex-direction: column; text-align: left; }
.dynamic-island-title, .dynamic-island-subtitle {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.15;
}
.dynamic-island-title { font-size: 12px; font-weight: 600; }
.dynamic-island-subtitle { font-size: 10px; color: var(--text-secondary); }
.dynamic-island-right { display: flex; align-items: center; gap: 6px; flex: none; }
.island-vc-btn {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 9px;
    border-radius: 99px;
    background: rgba(48, 209, 88, .18);
    color: var(--green);
    font-size: 11px; font-weight: 600;
}
.dynamic-eq-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.dynamic-eq-bars span {
    width: 3px; height: 100%; border-radius: 2px;
    background: var(--green);
    animation: eq .8s ease-in-out infinite alternate;
}
.dynamic-eq-bars span:nth-child(2) { animation-delay: .25s; }
.dynamic-eq-bars span:nth-child(3) { animation-delay: .5s; }
@keyframes eq { from { height: 3px; } to { height: 12px; } }
.main-content {
    width: 100%;
    height: 100dvh;
    padding: calc(var(--header-height) + var(--tg-content-safe-top)) 20px calc(var(--nav-total) + 8px);
    display: flex;
    flex-direction: column;
}
.player-card {
    flex: 1;
    min-height: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}
.ambient-glow, .player-background-grid, .artwork-mode-toggle { display: none !important; }
.idle-container {
    width: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center;
    padding: 0 12px;
}
.idle-art {
    width: min(220px, 30dvh); height: min(220px, 30dvh);
    margin-bottom: 28px;
    display: grid; place-items: center;
    border-radius: 22%;
    background: linear-gradient(160deg, #2c2c2e, #1c1c1e);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .6);
}
.idle-art-inner { display: grid; place-items: center; }
.idle-art-inner svg { width: 56px; height: 56px; color: var(--text-dim); stroke-width: 1.5; }
.idle-title { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.idle-subtitle { max-width: 300px; margin-top: 8px; color: var(--text-secondary); font-size: 15px; }
.cmd-chip {
    padding: 1px 7px; border-radius: 6px;
    background: var(--fill); color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px;
}
.idle-search-btn { margin-top: 24px; }
.active-player-view {
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: space-evenly;
    gap: 8px;
}
.artwork-container {
    width: min(86vw, 40dvh, 340px);
    aspect-ratio: 1;
    position: relative;
    display: grid; place-items: center;
    flex: 0 1 auto;
}
.artwork-wrapper {
    width: 100%; height: 100%;
    position: relative; z-index: 2;
    overflow: hidden;
    border-radius: 14px;
    background: var(--surface);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .65);
    transition: transform .5s var(--ease), border-radius .35s ease;
}
.artwork-wrapper.round { border-radius: 50%; width: 88%; height: 88%; }
.artwork-wrapper:not(.playing) { transform: scale(.92); }
.artwork-img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.progress-ring-svg {
    position: absolute; inset: 0; width: 100%; height: 100%;
    transform: rotate(-90deg); opacity: 0; pointer-events: none;
    transition: opacity .3s ease;
}
.progress-ring-svg.visible { opacity: 1; }
.progress-ring-bg, .progress-ring-circle { fill: none; stroke-width: 4; }
.progress-ring-bg { stroke: rgba(255, 255, 255, .12); }
.progress-ring-circle {
    stroke: #fff; stroke-linecap: round;
    stroke-dasharray: 628.3; stroke-dashoffset: 628.3;
    transition: stroke-dashoffset .15s linear;
}
.track-info, .track-header-row {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.track-text { flex: 1; min-width: 0; text-align: left; }
.track-title {
    margin: 0;
    font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.track-artist {
    margin-top: 2px;
    font-size: 17px; color: var(--text-secondary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.track-badges { margin-top: 4px; font-size: 13px; color: var(--text-muted); display: flex; gap: 6px; }
.platform-badge, .requester-badge { color: var(--text-muted); }
.btn-fav-track {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--fill);
    color: #fff;
    transition: transform .15s ease, background .2s ease;
}
.btn-fav-track svg { width: 22px; height: 22px; }
.btn-fav-track:active { transform: scale(.9); }
.btn-ctrl.in-playlist, .btn-fav-track.in-playlist { color: var(--red); }
.btn-fav-track.is-animated { animation: pop .4s ease; color: var(--red) !important; }
@keyframes pop { 50% { transform: scale(1.3); } }
.progress-wrapper { width: 100%; }
.slider-container { height: 22px; display: flex; align-items: center; }
.slider, .volume-slider {
    width: 100%;
    -webkit-appearance: none; appearance: none;
    height: 6px; border-radius: 99px; outline: none; cursor: pointer;
    transition: height .15s ease;
}
.slider {
    background: linear-gradient(to right, #fff 0, #fff var(--seek-fill, 0%),
        rgba(255, 255, 255, .22) var(--seek-fill, 0%), rgba(255, 255, 255, .22) 100%);
}
.volume-slider {
    height: 5px;
    background: linear-gradient(to right, #fff 0, #fff var(--vol-fill, 100%),
        rgba(255, 255, 255, .22) var(--vol-fill, 100%), rgba(255, 255, 255, .22) 100%);
}
.slider:active:not(:disabled) { height: 10px; }
.slider:disabled { cursor: default; opacity: .6; }
.slider::-webkit-slider-thumb, .volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 0; height: 0; background: #fff; border: 0;
}
.slider:active::-webkit-slider-thumb { width: 14px; height: 14px; border-radius: 50%; }
.slider::-moz-range-thumb, .volume-slider::-moz-range-thumb { width: 0; height: 0; border: 0; background: #fff; }
.time-labels {
    margin-top: 4px;
    display: flex; justify-content: space-between;
    font-size: 12px; font-weight: 500; color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}
.controls {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 4px;
}
.btn-ctrl {
    width: 48px; height: 48px;
    position: relative;
    display: grid; place-items: center;
    border-radius: 50%;
    color: #fff;
    transition: transform .15s var(--ease), opacity .2s ease, background .2s ease;
}
.btn-ctrl svg { width: 24px; height: 24px; }
.btn-ctrl:active:not(:disabled) { transform: scale(.88); opacity: .7; }
.btn-ctrl:disabled { opacity: .3; }
.btn-ctrl.active { color: var(--accent); background: var(--accent-soft); }
.btn-ctrl.control-secondary svg { width: 22px; height: 22px; color: var(--text-secondary); }
.btn-ctrl.control-secondary:hover:not(:disabled) svg { color: #fff; }
.btn-ctrl.active svg { color: var(--accent); }
.control-secondary#btn-prev svg, .control-secondary#btn-skip svg {
    width: 32px; height: 32px; fill: currentColor; color: #fff;
}
.btn-play { width: 72px; height: 72px; background: #fff; color: #000; }
.btn-play svg { width: 30px; height: 30px; fill: currentColor; stroke-width: 2; }
.btn-play:active:not(:disabled) { opacity: 1; }
.btn-play .pause-icon, .mini-control-btn .pause-icon { display: none !important; }
.btn-play .play-icon, .mini-control-btn .play-icon { display: inline-block !important; }
.btn-play.playing .pause-icon, .mini-control-btn.playing .pause-icon { display: inline-block !important; }
.btn-play.playing .play-icon, .mini-control-btn.playing .play-icon { display: none !important; }
.ctrl-badge {
    position: absolute; top: 2px; right: 0;
    min-width: 16px; height: 16px; padding: 0 4px;
    display: grid; place-items: center;
    border-radius: 99px;
    background: var(--accent); color: #fff;
    font-size: 10px; font-weight: 700;
}
.btn-sleep-timer { width: auto; min-width: 48px; padding: 0 8px; gap: 4px; display: inline-flex; align-items: center; justify-content: center; }
.btn-sleep-timer.timer-active { color: var(--accent); }
.btn-sleep-timer.timer-active svg { color: var(--accent); }
.sleep-timer-badge { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.secondary-controls {
    width: 100%;
    display: flex; align-items: center; justify-content: center; gap: 14px;
}
.volume-container { flex: 1; display: flex; align-items: center; gap: 12px; padding: 0 4px; }
.volume-button { width: 28px; height: 28px; display: grid; place-items: center; color: var(--text-secondary); }
.volume-button svg { width: 20px; height: 20px; }
.volume-slider-container { flex: 1; display: flex; align-items: center; }
.btn-chat-trigger {
    width: 40px; height: 40px;
    position: relative;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--fill);
}
.btn-chat-trigger svg { width: 19px; height: 19px; }
.btn-action {
    min-height: 44px; padding: 0 18px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border-radius: 12px;
    background: var(--fill);
    color: var(--accent);
    font-size: 15px; font-weight: 600;
    transition: transform .15s ease, opacity .15s ease;
}
.btn-action svg { width: 18px; height: 18px; }
.btn-action:active { transform: scale(.96); opacity: .75; }
.btn-action.primary { background: var(--accent); color: #fff; }
.btn-action.secondary { color: var(--accent); }
.btn-action.danger { background: rgba(255, 69, 58, .16); color: var(--red); }
.btn-action.small { min-height: 34px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn-action.full { width: 100%; }
.icon-button {
    width: 34px; height: 34px;
    display: grid; place-items: center;
    border-radius: 50%; background: var(--fill);
}
.icon-button.danger { color: var(--red); }
.btn-action.is-loading, .btn-ctrl.is-loading, .btn-song-action.is-loading { pointer-events: none; opacity: .6; position: relative; }
.btn-action.is-loading::after, .btn-song-action.is-loading::after {
    content: ""; position: absolute; inset: 0; margin: auto;
    width: 16px; height: 16px;
    border: 2px solid rgba(255, 255, 255, .3); border-top-color: #fff; border-radius: 50%;
    animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1700;
    width: 100%; max-width: 560px; margin: 0 auto;
    height: var(--nav-total);
    padding: 0 8px var(--tg-content-safe-bottom);
    display: grid; grid-template-columns: repeat(5, 1fr);
    isolation: isolate;
    border-top: .5px solid var(--separator);
}
.bottom-nav::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: rgba(18, 18, 18, .78);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    backdrop-filter: saturate(180%) blur(24px);
}
.nav-item {
    position: relative; min-width: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    color: rgba(235, 235, 245, .56);
    font-size: 10px; font-weight: 500;
    transition: color .2s ease;
}
.nav-item svg { width: 24px; height: 24px; }
.nav-item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-item:active { opacity: .6; }
.nav-item.active { color: var(--accent); }
.nav-badge {
    position: absolute; top: 4px; left: calc(50% + 6px);
    min-width: 17px; height: 17px; padding: 0 5px;
    display: grid; place-items: center;
    border-radius: 99px;
    background: var(--red); color: #fff;
    font-size: 11px; font-weight: 600; line-height: 1;
}
.nav-avatar-container { width: 26px; height: 26px; border-radius: 50%; overflow: hidden; }
.nav-avatar-container .user-avatar { font-size: 12px; }
.nav-item.active .nav-avatar-container { box-shadow: 0 0 0 2px var(--accent); }
.mini-player {
    position: fixed; z-index: 1800;
    left: 8px; right: 8px;
    bottom: calc(var(--nav-total) + 8px);
    max-width: 544px; margin: 0 auto;
    height: 60px; padding: 6px 10px 6px 6px;
    display: flex; align-items: center; gap: 10px;
    border-radius: 14px; overflow: hidden; isolation: isolate;
    transition: transform .28s var(--ease), opacity .25s ease;
}
.mini-player::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: rgba(44, 44, 46, .88);
    -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
}
.mini-player.hidden { display: flex !important; opacity: 0; pointer-events: none; transform: translateY(16px); }
.mini-progress { display: none; }
.mini-thumb { width: 48px; height: 48px; flex: none; object-fit: cover; border-radius: 8px; background: var(--surface); }
.mini-info { flex: 1; min-width: 0; cursor: pointer; }
.mini-title { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-artist { font-size: 13px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-controls { display: flex; align-items: center; gap: 2px; }
.mini-control-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: #fff; }
.mini-control-btn svg { width: 22px; height: 22px; fill: currentColor; }
.mini-control-btn:active { opacity: .5; }
.modal-backdrop {
    position: fixed; inset: 0; z-index: 1900;
    display: none; opacity: 0;
    background: rgba(0, 0, 0, .5);
    transition: opacity .28s ease;
}
.modal-drawer {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 2000;
    width: min(560px, 100%); margin: 0 auto;
    min-height: 260px; max-height: min(92dvh, 820px);
    display: flex; flex-direction: column;
    background: var(--surface);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, .5);
    transform: translateY(100%);
    overflow: hidden; touch-action: pan-y;
}
.drawer-handle { width: 36px; height: 5px; flex: none; margin: 8px auto 2px; border-radius: 99px; background: rgba(255, 255, 255, .3); touch-action: none; }
.modal-header {
    min-height: 56px; padding: 4px 16px 8px 20px;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    touch-action: none;
}
.modal-title { min-width: 0; display: flex; align-items: center; }
.modal-title > svg { display: none; }
.modal-title > div { min-width: 0; display: flex; flex-direction: column; }
.modal-title strong { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.modal-title span { font-size: 13px; color: var(--text-muted); }
.modal-header-actions { display: flex; align-items: center; gap: 8px; }
.modal-close-btn {
    width: 30px; height: 30px; display: grid; place-items: center;
    border-radius: 50%; background: var(--fill); color: var(--text-secondary);
}
.modal-close-btn svg { width: 16px; height: 16px; }
.modal-close-btn:active { opacity: .6; }
.modal-content {
    flex: 1 1 auto; min-height: 0;
    padding: 4px 16px max(24px, var(--tg-content-safe-bottom));
    overflow-y: auto; overscroll-behavior: contain;
}
.search-input-wrapper { position: relative; width: 100%; margin-bottom: 8px; }
.search-input-wrapper.large { margin-top: 2px; }
.search-input-field {
    width: 100%; height: 40px; padding: 0 70px 0 36px;
    border: 0; outline: none; border-radius: 12px;
    background: var(--fill); font-size: 17px;
}
.search-input-field::placeholder { color: var(--text-muted); }
.search-icon-inside { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-muted); pointer-events: none; }
.search-clear-btn { position: absolute; right: 44px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: var(--text-muted); }
.search-clear-btn svg { width: 16px; height: 16px; }
.search-inline-submit-btn {
    position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
    width: 32px; height: 30px; display: grid; place-items: center;
    border-radius: 9px; background: var(--accent); color: #fff;
}
.search-inline-submit-btn svg { width: 16px; height: 16px; }
.search-results-container { margin-top: 8px; }
.search-tabs { display: flex; gap: 8px; margin-bottom: 12px; overflow-x: auto; }
.search-tab { height: 32px; padding: 0 14px; border-radius: 99px; background: var(--fill-2); color: var(--text-secondary); font-size: 14px; font-weight: 600; }
.search-tab.active { background: #fff; color: #000; }
.song-row {
    width: 100%; min-height: 64px; padding: 8px 0;
    display: flex; align-items: center; gap: 12px;
    border-bottom: .5px solid var(--separator);
}
.song-row:last-child { border-bottom: 0; }
.song-thumb { width: 48px; height: 48px; flex: none; object-fit: cover; border-radius: 8px; background: var(--surface-2); }
.song-info { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.song-title { font-size: 16px; font-weight: 500; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-sub { font-size: 14px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.btn-song-action {
    width: 34px; height: 34px; display: grid; place-items: center;
    border-radius: 50%; background: var(--fill); color: var(--accent);
    transition: transform .15s ease, opacity .15s ease;
}
.btn-song-action svg { width: 17px; height: 17px; }
.btn-song-action.primary { background: var(--accent); color: #fff; }
.btn-song-action.primary svg { fill: currentColor; }
.btn-song-action:active, .btn-icon-danger:active { transform: scale(.88); }
.song-row .btn-action.danger { min-height: 32px; padding: 0 12px; font-size: 14px; border-radius: 99px; }
.playlist-card { margin-bottom: 12px; padding: 4px 14px; border-radius: var(--radius-md); background: var(--surface-2); }
.playlist-card-header { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.playlist-title-group { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; }
.playlist-icon-badge { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 9px; background: linear-gradient(180deg, #ff5e7a, #ff2d55); color: #fff; }
.playlist-icon-badge svg { width: 19px; height: 19px; }
.playlist-meta { min-width: 0; display: flex; flex-direction: column; }
.playlist-name { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.playlist-song-count { font-size: 13px; color: var(--text-secondary); }
.playlist-header-actions { display: flex; gap: 6px; flex: none; }
.playlist-accordion-chevron { width: 16px; height: 16px; color: var(--text-dim); transition: transform .2s ease; }
.playlist-songs-container { padding: 8px 0 6px; border-top: .5px solid var(--separator); flex-direction: column; align-items: stretch; width: 100%; }
.playlist-songs-top-bar { margin-bottom: 4px; }
.playlist-empty-state { padding: 22px 12px; text-align: center; color: var(--text-secondary); font-size: 15px; }
.btn-icon-danger { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 69, 58, .16); color: var(--red); }
.profile-content { padding-top: 6px; }
.modal-drawer.profile-drawer { background: #000; }
.profile-drawer .modal-header { background: #000; }
.profile-card { display: flex; flex-direction: column; align-items: center; padding: 8px 0 18px; text-align: center; }
.profile-avatar { width: 84px; height: 84px; position: relative; margin-bottom: 10px; }
.profile-avatar .user-avatar { font-size: 32px; }
.profile-online { position: absolute; right: 2px; bottom: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--green); border: 3px solid #000; }
.profile-card > strong { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.profile-card > span { margin-top: 2px; color: var(--text-secondary); font-size: 15px; }
#write-perm-warning { background: rgba(255, 69, 58, .12) !important; border: 0 !important; border-radius: var(--radius-md) !important; }
#write-perm-warning p { color: var(--red) !important; }
.profile-section { margin-top: 24px; }
.profile-section-title {
    margin: 0; padding: 0 16px 6px;
    color: var(--text-muted); font-size: 13px; font-weight: 500;
    text-transform: uppercase; letter-spacing: .02em;
}
.profile-group { border-radius: var(--radius-md); background: var(--surface); }
.profile-group > :first-child { border-radius: var(--radius-md) var(--radius-md) 0 0; }
.profile-group > :last-child { border-radius: 0 0 var(--radius-md) var(--radius-md); }
.profile-group > :only-child { border-radius: var(--radius-md); }
.profile-row, .profile-row-button {
    position: relative; width: 100%; min-height: 56px; padding: 8px 16px;
    display: flex; align-items: center; gap: 12px;
    text-align: left; background: transparent;
}
.profile-row + .profile-row, .profile-row + .profile-row-button,
.profile-row-button + .profile-row, .profile-row-button + .profile-row-button { border-top: .5px solid var(--separator); }
.profile-row-button:active { background: var(--fill-2); }
.profile-row-icon {
    width: 30px; height: 30px; flex: none;
    display: grid; place-items: center;
    border-radius: 7px; background: var(--accent); color: #fff;
}
.profile-row-icon svg { width: 18px; height: 18px; }
.profile-group > :nth-child(2) .profile-row-icon { background: var(--green); }
.profile-group > :nth-child(3) .profile-row-icon { background: var(--orange); }
.profile-group > :nth-child(4) .profile-row-icon { background: var(--purple); }
.profile-row.stacked { flex-wrap: wrap; }
.profile-row.stacked .segmented { width: 100%; margin-top: 2px; }
.profile-row.timer-active .profile-row-icon { background: var(--orange); }
.profile-row-info { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.profile-row-info strong { font-size: 16px; font-weight: 500; }
.profile-row-info span { font-size: 13px; color: var(--text-secondary); line-height: 1.3; }
.profile-row.timer-active #sleep-timer-status { color: var(--orange); }
.profile-arrow { width: 16px; height: 16px; color: var(--text-dim); }
.profile-footer { padding: 26px 0 8px; text-align: center; color: var(--text-dim); font-size: 13px; }
.toggle-switch {
    width: 51px; height: 31px; flex: none; position: relative;
    border-radius: 99px; background: rgba(120, 120, 128, .4);
    transition: background .25s ease;
}
.toggle-switch .toggle-thumb {
    position: absolute; top: 2px; left: 2px; width: 27px; height: 27px;
    border-radius: 50%; background: #fff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .35);
    transition: transform .25s var(--ease);
}
.toggle-switch.active { background: var(--green); }
.toggle-switch.active .toggle-thumb { transform: translateX(20px); }
.toggle-switch:disabled { opacity: .4; }
.segmented { display: flex; padding: 2px; border-radius: 9px; background: var(--fill-2); gap: 2px; }
.segmented button { flex: 1; height: 28px; padding: 0 12px; border-radius: 7px; color: var(--text); font-size: 13px; font-weight: 500; white-space: nowrap; }
.segmented button.active { background: #636366; font-weight: 600; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.custom-select-container { position: relative; flex: none; }
.custom-select-trigger {
    min-width: 76px; height: 32px; padding: 0 10px;
    display: flex; align-items: center; justify-content: space-between; gap: 6px;
    border-radius: 8px; background: var(--fill);
    font-size: 14px; font-weight: 500; user-select: none;
}
.select-chevron { width: 14px; height: 14px; color: var(--text-muted); transition: transform .2s ease; }
.custom-select-container.open .select-chevron { transform: rotate(180deg); }
.custom-select-dropdown {
    position: absolute; right: 0; top: calc(100% + 6px); z-index: 100;
    min-width: 140px; max-height: 240px; overflow-y: auto; padding: 4px;
    border-radius: 12px; background: #2c2c2e;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .6);
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(-6px) scale(.97);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.custom-select-container.open .custom-select-dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.custom-select-option { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 8px; font-size: 15px; cursor: pointer; }
.custom-select-option:active { background: var(--fill); }
.custom-select-option .option-check { width: 16px; height: 16px; opacity: 0; color: var(--accent); }
.custom-select-option.active { font-weight: 600; }
.custom-select-option.active .option-check { opacity: 1; }
.sleep-timer-header { justify-content: center; position: relative; }
.modal-centered-title { margin: 0; font-size: 17px; font-weight: 600; }
.sleep-timer-header .modal-close-btn { position: absolute; right: 16px; top: 10px; }
.sleep-timer-options-list { display: flex; flex-direction: column; padding-top: 8px; }
.sleep-timer-option-btn {
    width: 100%; padding: 15px 4px;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: .5px solid var(--separator);
    font-size: 17px; text-align: left;
}
.sleep-timer-option-btn:last-child { border-bottom: 0; }
.sleep-timer-option-btn:active { opacity: .5; }
.sleep-timer-option-btn .option-check-icon { width: 20px; height: 20px; opacity: 0; color: var(--accent); }
.sleep-timer-option-btn.active .option-check-icon { opacity: 1; }
.sleep-timer-option-btn.active { color: var(--accent); font-weight: 600; }
.sleep-timer-option-btn.danger-off { color: var(--red); }
.modal-drawer.listeners-drawer { min-height: 240px; }
.modal-content.listeners-content { display: flex; flex-direction: column; }
.listeners-footer { padding: 10px 16px max(16px, var(--tg-content-safe-bottom)); }
.btn-end-session {
    width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px;
    border-radius: 12px; background: rgba(255, 69, 58, .16); color: var(--red);
    font-size: 16px; font-weight: 600;
}
.btn-end-session:active { opacity: .6; }
.overlay {
    position: fixed; inset: 0; z-index: 2500;
    display: flex; align-items: center; justify-content: center;
    padding: max(24px, var(--tg-safe-top)) 20px max(24px, var(--tg-safe-bottom));
    background: #000;
    transition: opacity .3s ease, visibility .3s ease;
}
.state-overlay { background: rgba(0, 0, 0, .86); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.state-card, .confirm-card {
    width: min(340px, 100%);
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 28px 22px 22px; border-radius: 22px; background: var(--surface-2);
    animation: pop-in .3s var(--ease);
}
@keyframes pop-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.state-icon { width: 60px; height: 60px; display: grid; place-items: center; margin-bottom: 16px; border-radius: 16px; background: var(--accent); color: #fff; }
.state-icon.warning-icon { background: var(--orange); }
.state-icon i, .state-icon svg { width: 28px; height: 28px; }
.state-title { margin: 0 0 8px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.state-description { margin: 0 0 4px; font-size: 15px; color: var(--text-secondary); }
.state-subdescription { margin: 0 0 22px; font-size: 15px; color: var(--text-muted); }
.btn-state-action {
    width: 100%; height: 50px; display: flex; align-items: center; justify-content: center; gap: 8px;
    border-radius: 14px; background: var(--accent); color: #fff; font-size: 17px; font-weight: 600;
}
.btn-state-action:active { opacity: .75; }
.confirm-card { padding: 22px 16px 16px; }
.confirm-actions { display: flex; gap: 8px; width: 100%; margin-top: 18px; }
.btn-confirm-cancel, .btn-confirm-danger { flex: 1; height: 46px; border-radius: 12px; font-size: 16px; font-weight: 600; }
.btn-confirm-cancel { background: var(--fill); }
.btn-confirm-danger { background: var(--red); color: #fff; }
.btn-confirm-cancel:active, .btn-confirm-danger:active { opacity: .7; }
.join-content, .welcome-content { width: min(380px, 100%); display: flex; flex-direction: column; align-items: center; text-align: center; }
.join-logo { margin-bottom: 18px; }
.join-logo-icon { width: 76px; height: 76px; border-radius: 20px; box-shadow: 0 14px 40px rgba(255, 45, 85, .35); }
.join-logo-icon svg { width: 38px; height: 38px; }
.join-logo-glow { display: none; }
.join-brand { display: flex; flex-direction: column; gap: 4px; margin-bottom: 26px; }
.join-brand-title { font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.join-brand-subtitle { font-size: 16px; color: var(--text-secondary); }
.user-info-text { min-width: 0; display: flex; flex-direction: column; }
.user-display-name { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-handle { font-size: 13px; color: var(--text-secondary); }
.btn-join {
    width: 100%; height: 52px; display: flex; align-items: center; justify-content: center; gap: 8px;
    border-radius: 14px; background: #fff; color: #000; font-size: 17px; font-weight: 600;
}
.btn-join svg { width: 18px; height: 18px; }
.btn-join:active { opacity: .75; transform: scale(.98); }
.welcome-content .join-brand { margin-bottom: 8px; }
.welcome-lead { margin: 0 0 24px; font-size: 16px; color: var(--text-secondary); max-width: 300px; }
.lang-list { width: 100%; margin-bottom: 22px; border-radius: var(--radius-md); background: var(--surface); overflow: hidden; text-align: left; }
.lang-option { width: 100%; min-height: 54px; padding: 8px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 17px; }
.lang-option + .lang-option { border-top: .5px solid var(--separator); }
.lang-option small { display: block; font-size: 13px; color: var(--text-secondary); }
.lang-option { text-align: left; }
.lang-option > span { display: block; text-align: left; }
.lang-option .lang-check { width: 22px; height: 22px; color: var(--accent); opacity: 0; }
.lang-option.active .lang-check { opacity: 1; }
.lang-option:active { background: var(--fill-2); }
.toast {
    position: fixed; z-index: 5000; left: 50%; transform: translateX(-50%);
    top: calc(var(--header-height) + var(--tg-content-safe-top) + 6px);
    max-width: min(92vw, 420px); width: max-content;
    display: none; pointer-events: none;
}
.toast-card {
    display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px;
    border-radius: 99px; background: rgba(58, 58, 60, .94);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
    font-size: 15px; font-weight: 500;
    animation: toast-in .3s var(--ease) forwards;
}
.toast-card.toast-exit { animation: toast-out .22s ease forwards; }
.toast-icon { width: 24px; height: 24px; display: grid; place-items: center; flex: none; border-radius: 50%; background: var(--fill); }
.toast-icon svg { width: 14px; height: 14px; }
.toast-text { min-width: 0; word-break: break-word; }
.toast-success .toast-icon { background: rgba(48, 209, 88, .22); color: var(--green); }
.toast-error .toast-icon { background: rgba(255, 69, 58, .22); color: var(--red); }
.toast-warning .toast-icon { background: rgba(255, 159, 10, .22); color: var(--orange); }
.toast-info .toast-icon { background: rgba(10, 132, 255, .22); color: var(--accent-2); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-12px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-8px) scale(.97); } }
.modal-drawer.chat-drawer { min-height: 420px; }
.chat-content { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 8px 14px; }
.chat-empty-state { display: flex; flex-direction: column; align-items: center; padding: 40px 16px; text-align: center; color: var(--text-muted); }
.chat-empty-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 12px; border-radius: 50%; background: var(--fill-2); }
.chat-empty-state strong { font-size: 17px; color: var(--text-secondary); }
.chat-empty-state span { font-size: 14px; }
.chat-messages-list { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.chat-msg-row { display: flex; gap: 8px; width: fit-content; max-width: 80%; align-self: flex-start; animation: pop-in .2s ease; }
.chat-msg-row.self { flex-direction: row-reverse; align-self: flex-end; }
.chat-msg-row.grouped .chat-msg-avatar { visibility: hidden; }
.chat-msg-row.grouped .chat-msg-meta { display: none; }
.chat-msg-avatar { width: 28px; height: 28px; flex: none; border-radius: 50%; object-fit: cover; margin-top: 2px; }
.chat-msg-avatar.placeholder { display: grid; place-items: center; background: var(--surface-3); font-size: 12px; font-weight: 600; }
.chat-msg-content { display: flex; flex-direction: column; min-width: 0; }
.chat-msg-row.self .chat-msg-content { align-items: flex-end; }
.chat-msg-bubble { position: relative; min-width: 64px; padding: 7px 12px 17px; border-radius: 18px 18px 18px 5px; background: var(--surface-2); font-size: 16px; line-height: 1.3; word-break: break-word; }
.chat-msg-row.self .chat-msg-bubble { border-radius: 18px 18px 5px 18px; background: var(--accent); color: #fff; }
.chat-msg-row.grouped .chat-msg-bubble { border-radius: 18px; }
.chat-bubble-header { display: flex; align-items: center; gap: 8px; margin-bottom: 1px; }
.chat-msg-sender { font-size: 12px; font-weight: 600; color: var(--orange); }
.chat-admin-pill { padding: 1px 6px; border-radius: 99px; background: rgba(48, 209, 88, .2); color: var(--green); font-size: 10px; font-weight: 600; }
.chat-bubble-text { white-space: pre-wrap; word-break: break-word; }
.chat-bubble-time { position: absolute; right: 10px; bottom: 3px; font-size: 10px; color: rgba(255, 255, 255, .5); pointer-events: none; }
.chat-scroll-bottom-btn {
    position: sticky; bottom: 10px; left: 50%; z-index: 10; margin: 0 auto;
    display: flex; align-items: center; gap: 6px; padding: 7px 14px;
    border-radius: 99px; background: rgba(58, 58, 60, .95); font-size: 13px; font-weight: 600;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .5);
}
.chat-scroll-bottom-btn svg { width: 14px; height: 14px; }
.chat-input-bar { padding: 8px 14px max(12px, var(--tg-content-safe-bottom)); border-top: .5px solid var(--separator); background: var(--surface); }
.chat-input-wrapper { display: flex; align-items: flex-end; gap: 8px; }
.chat-input-field {
    flex: 1; min-height: 38px; max-height: 120px; padding: 8px 14px;
    border: .5px solid var(--separator); border-radius: 19px; outline: none; resize: none;
    background: #000; font-size: 16px; line-height: 1.3;
}
.chat-input-field:focus { border-color: var(--accent); }
.btn-send-chat { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; }
.btn-send-chat:disabled { background: var(--fill); color: var(--text-muted); }
.btn-send-chat svg { width: 18px; height: 18px; }
.cooldown-counter { font-size: 12px; font-weight: 700; }
.chat-composer-footer { display: flex; justify-content: space-between; padding: 4px 6px 0; font-size: 12px; }
.chat-char-counter { margin-left: auto; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.chat-char-counter.near-limit { color: var(--orange); }
.chat-char-counter.over-limit, .chat-char-warning { color: var(--red); }
.vc-mini-bar {
    position: fixed; z-index: 1750; left: 8px; right: 8px; max-width: 544px; margin: 0 auto;
    bottom: calc(var(--nav-total) + 8px); height: 56px; padding: 0 10px 0 8px;
    display: flex; align-items: center; justify-content: space-between;
    border-radius: 14px; background: rgba(44, 44, 46, .94);
    -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s;
}
.vc-mini-bar.hidden { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(16px); }
.vc-mini-info { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.vc-mini-icon { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(48, 209, 88, .2); color: var(--green); }
.vc-mini-icon svg { width: 18px; height: 18px; }
.pulse-active { animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(48, 209, 88, .4); } 70%, 100% { box-shadow: 0 0 0 10px rgba(48, 209, 88, 0); } }
.vc-mini-text { display: flex; flex-direction: column; min-width: 0; }
.vc-mini-title { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-mini-subtitle { font-size: 13px; color: var(--text-secondary); }
.vc-mini-controls { display: flex; gap: 6px; }
.vc-mini-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--fill); }
.vc-mini-btn svg { width: 17px; height: 17px; }
.vc-mini-btn.muted, .vc-mini-btn.danger { background: rgba(255, 69, 58, .2); color: var(--red); }
.vc-mini-btn:active { opacity: .6; }
.vc-drawer { min-height: 420px; }
.vc-header-icon { display: none; }
.vc-settings-panel { padding: 0 16px 8px; }
.vc-settings-menu { display: flex; flex-direction: column; border-radius: var(--radius-md); background: var(--surface-2); overflow: hidden; }
.vc-settings-item { width: 100%; padding: 13px 16px; display: flex; align-items: center; gap: 12px; font-size: 16px; text-align: left; }
.vc-settings-item + .vc-settings-item { border-top: .5px solid var(--separator); }
.vc-settings-item:active { background: var(--fill-2); }
.vc-settings-item svg { width: 18px; height: 18px; color: var(--accent); }
.vc-content { padding: 4px 16px; min-height: 200px; }
.vc-empty-state { display: flex; flex-direction: column; align-items: center; padding: 40px 16px; text-align: center; color: var(--text-secondary); }
.vc-empty-state strong { font-size: 17px; }
.vc-empty-state span { font-size: 14px; color: var(--text-muted); }
.vc-empty-icon { width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 12px; border-radius: 50%; background: var(--fill-2); }
.vc-participants-list { display: flex; flex-direction: column; }
.participant-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: .5px solid var(--separator); }
.participant-item:last-child { border-bottom: 0; }
.participant-left { min-width: 0; display: flex; align-items: center; gap: 12px; }
.participant-avatar-wrapper { position: relative; width: 44px; height: 44px; flex: none; }
.participant-avatar-wrapper .user-avatar { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.participant-avatar-placeholder { width: 100%; height: 100%; display: grid; place-items: center; border-radius: 50%; background: var(--surface-3); font-size: 17px; font-weight: 600; }
.participant-speaking-ring { position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--green); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.participant-item.is-speaking .participant-speaking-ring { opacity: 1; animation: ring 1.2s infinite ease-in-out; }
@keyframes ring { 50% { transform: scale(1.06); } }
.participant-info { display: flex; flex-direction: column; min-width: 0; }
.participant-name-row { display: flex; align-items: center; gap: 6px; }
.participant-name { font-size: 16px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.participant-badge { padding: 1px 7px; border-radius: 99px; background: var(--fill); color: var(--text-secondary); font-size: 11px; font-weight: 600; }
.participant-badge.admin { background: rgba(255, 159, 10, .2); color: var(--orange); }
.participant-badge.self { background: var(--accent-soft); color: var(--accent-2); }
.participant-subtext { font-size: 13px; color: var(--text-secondary); }
.participant-right { display: flex; align-items: center; gap: 8px; }
.mic-status-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--fill-2); color: var(--text-secondary); }
.mic-status-icon.active { background: rgba(48, 209, 88, .2); color: var(--green); }
.mic-status-icon.muted { background: rgba(255, 69, 58, .18); color: var(--red); }
.mic-status-icon.disabled { color: var(--text-dim); }
.mic-status-icon svg { width: 16px; height: 16px; }
.vc-controls-bar { display: flex; justify-content: space-around; gap: 8px; padding: 12px 16px max(14px, var(--tg-content-safe-bottom)); border-top: .5px solid var(--separator); }
.vc-action-btn {
    flex: 1; min-height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    border-radius: 14px; background: var(--fill-2); color: var(--text-secondary); font-size: 12px; font-weight: 500;
}
.vc-action-btn svg { width: 22px; height: 22px; }
.vc-action-btn:active { opacity: .6; }
.vc-action-btn.muted { color: var(--red); }
.vc-action-btn.danger { background: rgba(255, 69, 58, .18); color: var(--red); }
.vc-action-btn.disabled { opacity: .4; }
@media (min-width: 700px) {
    .main-content { padding-left: 32px; padding-right: 32px; }
    .modal-drawer { border-radius: 20px; bottom: 24px; max-height: min(88dvh, 820px); }
    .bottom-nav { border-radius: 20px 20px 0 0; overflow: hidden; }
}
@media (max-height: 700px) {
    .artwork-container { width: min(70vw, 34dvh, 280px); }
    .btn-play { width: 62px; height: 62px; }
    .track-title { font-size: 20px; }
    .track-artist { font-size: 15px; }
}
@media (max-width: 699px) {
    .top-bar-left, .top-bar-right { display: none; }
}
@media (max-width: 360px) {
    .btn-ctrl { width: 42px; height: 42px; }
    .nav-item { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.brand-logo { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.app-brand-icon, .join-logo-icon { overflow: hidden; background: #000 !important; box-shadow: 0 0 0 1px rgba(255,255,255,.14); }
.join-logo-icon { box-shadow: 0 0 0 1px rgba(255,255,255,.16), 0 18px 50px rgba(155,211,220,.22) !important; }
.state-icon.logo-icon { width: 84px; height: 84px; border-radius: 24px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 18px 50px rgba(155,211,220,.2); }
.state-icon.logo-icon .brand-logo { border-radius: 0; }
.state-card { background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.09); }
.state-title { letter-spacing: -.03em; }
.btn-state-action { background: #9bd3dc; color: #04282e; font-weight: 700; }
em, i:not([data-lucide]), .lead { font-style: normal; }
/* ios.css */
:root {
    --bg: #05060a;
    --surface: #14161b;
    --surface-2: #1d2026;
    --surface-3: #282c33;
    --fill: rgba(255, 255, 255, .09);
    --fill-2: rgba(255, 255, 255, .06);
    --separator: rgba(255, 255, 255, .085);
    --text-secondary: rgba(236, 240, 250, .68);
    --text-muted: rgba(236, 240, 250, .5);
    --text-dim: rgba(236, 240, 250, .32);
    --accent: #7ee0ee;
    --accent-2: #9aa8ff;
    --accent-soft: rgba(126, 224, 238, .15);
    --accent-grad: linear-gradient(135deg, #82e6f2 0%, #9aa8ff 100%);
    --on-accent: #04222b;
    --red: #ff5a52;
    --glass: rgba(26, 29, 36, .58);
    --glass-strong: rgba(20, 22, 28, .82);
    --glass-border: rgba(255, 255, 255, .13);
    --glass-blur: saturate(190%) blur(28px);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 26px;
    --bottom-nav-height: 76px;
    --spring: cubic-bezier(.32, .72, 0, 1);
    --ease: cubic-bezier(.32, .72, 0, 1);
    --art-glow: 126, 224, 238;
}
html, body { background: var(--bg); }
body {
    background:
        radial-gradient(120% 55% at 50% -8%, rgba(126, 224, 238, .09), transparent 60%),
        radial-gradient(90% 50% at 100% 100%, rgba(154, 168, 255, .07), transparent 60%),
        var(--bg);
}
body::before {
    content: "";
    position: fixed; inset: -12% -25%;
    z-index: 0; pointer-events: none;
    background: var(--art-bg, none) center / cover no-repeat;
    filter: blur(60px) saturate(1.7) brightness(.62);
    opacity: 0;
    transform: translateZ(0) scale(1.15);
    transition: opacity 1s var(--spring);
}
body.has-art::before { opacity: .55; }
body::after {
    content: "";
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(5, 6, 10, .35) 0%, rgba(5, 6, 10, .1) 40%, rgba(5, 6, 10, .78) 100%);
}
.app-container { position: relative; z-index: 1; }
.top-bar::before {
    background: linear-gradient(180deg, rgba(5, 6, 10, .78), rgba(5, 6, 10, 0));
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
    mask-image: linear-gradient(180deg, #000 55%, transparent);
}
.dynamic-island {
    background: rgba(8, 9, 12, .86);
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .07);
    transition: transform .45s var(--spring), border-color .3s ease, box-shadow .3s ease;
}
.dynamic-island.island-active-glow { border-color: rgba(var(--art-glow), .55); box-shadow: 0 8px 30px rgba(var(--art-glow), .22), inset 0 1px 0 rgba(255, 255, 255, .08); }
.dynamic-island-title { font-size: 12.5px; letter-spacing: -.01em; }
.dynamic-eq-bars span { background: var(--accent); }
.island-vc-btn { background: rgba(48, 209, 88, .16); }
.artwork-container { width: min(84vw, 40dvh, 360px); }
.artwork-wrapper {
    border-radius: 30px;
    background: var(--surface-2);
    box-shadow: 0 30px 70px -10px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .09), 0 22px 90px -24px rgba(var(--art-glow), .55);
    transition: transform .7s var(--spring), border-radius .5s var(--spring), box-shadow .7s var(--spring);
}
.artwork-wrapper:not(.playing) { transform: scale(.86); box-shadow: 0 14px 34px -8px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .07); }
.artwork-wrapper.round { border-radius: 50%; }
.track-title { font-size: 25px; letter-spacing: -.028em; }
.track-artist { font-size: 17px; font-weight: 500; color: var(--text-secondary); }
.track-badges { font-size: 12.5px; }
.btn-fav-track, .btn-chat-trigger {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
    transition: transform .35s var(--spring), background .25s ease;
}
.btn-fav-track:active, .btn-chat-trigger:active { transform: scale(.88); }
.btn-chat-trigger { display: grid; place-items: center; padding: 0; }
.btn-chat-trigger svg { margin: 0; }
.slider, .volume-slider { height: 5px; transition: height .25s var(--spring); }
.slider { background: linear-gradient(to right, #fff 0, #fff var(--seek-fill, 0%), rgba(255, 255, 255, .2) var(--seek-fill, 0%), rgba(255, 255, 255, .2) 100%); }
.slider:active:not(:disabled), .slider:hover:not(:disabled) { height: 9px; }
.slider::-webkit-slider-thumb { width: 0; height: 0; transition: width .2s var(--spring), height .2s var(--spring); box-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.slider:active::-webkit-slider-thumb { width: 16px; height: 16px; border-radius: 50%; }
.time-labels { font-size: 12px; color: var(--text-muted); }
.btn-ctrl { transition: transform .35s var(--spring), opacity .2s ease, background .25s ease; }
.btn-ctrl:active:not(:disabled) { transform: scale(.82); opacity: 1; }
.btn-ctrl.active { background: var(--accent-soft); color: var(--accent); }
.btn-play {
    width: 76px; height: 76px;
    background: #fff; color: #05060a;
    box-shadow: 0 14px 40px -6px rgba(var(--art-glow), .55), 0 0 0 1px rgba(255, 255, 255, .5) inset;
}
.btn-play:active:not(:disabled) { transform: scale(.9); }
.ctrl-badge { background: var(--accent-grad); color: var(--on-accent); }
.bottom-nav {
    z-index: 2100;
    border-top: 0;
    padding: 4px 16px calc(var(--tg-content-safe-bottom) + 6px);
    pointer-events: none;
}
.bottom-nav::before {
    inset: 4px 12px calc(var(--tg-content-safe-bottom) + 6px);
    border-radius: 34px;
    background: var(--glass-strong);
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: 0 18px 44px -8px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .08);
    pointer-events: none;
}
.nav-item {
    pointer-events: auto;
    color: var(--text-muted);
    font-size: 10.5px; font-weight: 600; letter-spacing: .005em;
    gap: 3px;
    isolation: isolate;
    transition: color .3s ease, transform .4s var(--spring);
}
.nav-item::before {
    content: "";
    position: absolute; inset: 4px 3px; z-index: -1;
    border-radius: 28px;
    background: var(--accent-soft);
    box-shadow: inset 0 0 0 1px rgba(126, 224, 238, .18);
    opacity: 0; transform: scale(.7);
    transition: opacity .35s ease, transform .5s var(--spring);
}
.nav-item.active { color: var(--accent); }
.nav-item.active::before { opacity: 1; transform: scale(1); }
.nav-item:active { opacity: 1; transform: scale(.92); }
.nav-item span { line-height: 1.1; }
.nav-badge { top: 7px; background: var(--accent-grad); color: var(--on-accent); font-weight: 700; box-shadow: 0 0 0 2px var(--glass-strong); }
.nav-avatar-container { width: 24px; height: 24px; }
.mini-player {
    z-index: 1800;
    left: 14px; right: 14px; height: 62px;
    bottom: calc(var(--nav-total) + 6px);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .7);
    transition: transform .5s var(--spring), opacity .3s ease;
}
.mini-player::before { background: var(--glass-strong); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.mini-thumb { border-radius: 14px; }
.modal-backdrop {
    background: rgba(2, 3, 6, .5);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    transition: opacity .4s var(--spring);
}
.modal-drawer {
    background: var(--glass-strong);
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border); border-bottom: 0;
    border-radius: 30px 30px 0 0;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, .55);
}
#queue-drawer, #search-drawer, #related-drawer, #profile-drawer, #playlist-drawer { max-height: calc(100dvh - var(--tg-content-safe-top) - 24px); }
#queue-drawer .modal-content, #search-drawer .modal-content, #related-drawer .modal-content,
#profile-drawer .modal-content, #playlist-drawer .modal-content { padding-bottom: calc(var(--nav-total) + 20px); }
#chat-drawer, #vc-drawer, #listeners-drawer, #sleep-timer-drawer { z-index: 2300; }
#chat-backdrop, #vc-backdrop, #listeners-backdrop, #sleep-timer-backdrop { z-index: 2200; }
.drawer-handle { width: 40px; height: 5px; background: rgba(255, 255, 255, .26); }
.modal-title strong { font-size: 24px; letter-spacing: -.03em; }
.modal-close-btn { background: var(--fill); width: 32px; height: 32px; transition: transform .3s var(--spring); }
.modal-close-btn:active { transform: scale(.85); }
.song-row { padding: 9px 6px; margin: 0 -6px; width: calc(100% + 12px); border-radius: 16px; border-bottom: 0; transition: background .2s ease, transform .35s var(--spring); animation: rowIn .5s var(--spring) both; }
.song-row:active { background: var(--fill-2); }
.song-row:nth-child(2) { animation-delay: .03s; } .song-row:nth-child(3) { animation-delay: .06s; }
.song-row:nth-child(4) { animation-delay: .09s; } .song-row:nth-child(5) { animation-delay: .12s; }
.song-row:nth-child(n+6) { animation-delay: .15s; }
@keyframes rowIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.song-thumb { width: 52px; height: 52px; border-radius: 13px; box-shadow: 0 6px 16px -4px rgba(0, 0, 0, .55); }
.song-title { font-weight: 600; letter-spacing: -.01em; }
.btn-song-action { background: var(--fill); transition: transform .35s var(--spring), opacity .2s ease; }
.btn-song-action.primary { background: var(--accent-grad); color: var(--on-accent); }
.search-input-field { height: 44px; border-radius: 15px; background: var(--fill); border: 1px solid transparent; transition: border-color .25s ease, background .25s ease; }
.search-input-field:focus { background: var(--fill-2); border-color: rgba(126, 224, 238, .45); }
.search-inline-submit-btn { background: var(--accent-grad); color: var(--on-accent); border-radius: 11px; }
.search-tab.active { background: var(--accent-grad); color: var(--on-accent); font-weight: 700; }
.btn-action { border-radius: 15px; font-weight: 650; transition: transform .35s var(--spring), opacity .2s ease; }
.btn-action:active { transform: scale(.95); opacity: .85; }
.btn-action.primary { background: var(--accent-grad); color: var(--on-accent); box-shadow: 0 10px 26px -10px rgba(126, 224, 238, .6); }
.btn-action.secondary { color: var(--accent); }
.playlist-card { border-radius: 20px; background: var(--surface-2); border: 1px solid var(--separator); }
.toast-card { background: var(--glass-strong); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-border); box-shadow: 0 18px 44px -10px rgba(0, 0, 0, .7); }
.state-card, .join-card { border-radius: 30px; background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-border); }
.btn-state-action { background: var(--accent-grad); color: var(--on-accent); }
.idle-art { border-radius: 30%; background: linear-gradient(160deg, #23262d, #14161b); box-shadow: 0 30px 70px -12px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08), 0 20px 80px -30px rgba(126, 224, 238, .5); animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-6px); } }
button, .nav-item, .btn-ctrl { -webkit-user-select: none; user-select: none; touch-action: manipulation; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.overlay:not(.state-overlay) {
    background:
        radial-gradient(70% 42% at 50% 0%, rgba(126, 224, 238, .22), transparent 70%),
        radial-gradient(60% 40% at 100% 100%, rgba(154, 168, 255, .18), transparent 70%),
        var(--bg);
}
.join-content, .welcome-content { animation: gateIn .8s var(--spring) both; }
@keyframes gateIn { from { opacity: 0; transform: translateY(22px) scale(.98); } to { opacity: 1; transform: none; } }
.join-logo-icon { width: 92px !important; height: 92px !important; border-radius: 26px !important; animation: floaty 6s ease-in-out infinite; }
.join-brand-title { letter-spacing: -.045em; background: linear-gradient(180deg, #fff 35%, rgba(255, 255, 255, .62)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lang-list { background: var(--glass); border: 1px solid var(--glass-border); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border-radius: 20px; }
.btn-join, .btn-welcome, .welcome-content .btn-primary {
    height: 56px; border-radius: 19px; color: var(--on-accent);
    background: var(--accent-grad);
    box-shadow: 0 18px 40px -12px rgba(126, 224, 238, .6), inset 0 1px 0 rgba(255, 255, 255, .5);
    font-weight: 700; letter-spacing: -.01em;
    transition: transform .4s var(--spring);
}
.btn-join:active { transform: scale(.95); opacity: 1; }
.lang-option { transition: background .2s ease; }
.lang-option.active { background: var(--accent-soft); }
.join-logo-icon { overflow: hidden; padding: 0; }
.join-logo-icon .brand-logo { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
/* peak.css */
.modal-drawer { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14); }
.modal-backdrop[style*="block"] + .modal-drawer { box-shadow: 0 -20px 70px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .14); }
.modal-backdrop:not([style*="block"]) + .modal-drawer { visibility: hidden; }
.app-container { transition: transform .55s var(--spring), border-radius .55s var(--spring), filter .55s ease; transform-origin: 50% 0; }
body.sheet-open .app-container {
    transform: scale(.94) translateY(calc(var(--tg-content-safe-top, 0px) + 6px));
    border-radius: 28px; filter: brightness(.62) saturate(.9);
}
.song-row { animation: peak-rise .5s var(--spring) both; border-radius: 16px; transition: background .2s ease, transform .3s var(--spring); }
.song-row:active { background: rgba(255, 255, 255, .07); transform: scale(.985); }
.song-row:nth-child(2) { animation-delay: .03s; } .song-row:nth-child(3) { animation-delay: .06s; }
.song-row:nth-child(4) { animation-delay: .09s; } .song-row:nth-child(5) { animation-delay: .12s; }
.song-row:nth-child(n+6) { animation-delay: .15s; }
@keyframes peak-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.is-marquee { text-overflow: clip; animation: peak-mq 11s ease-in-out infinite alternate; }
@keyframes peak-mq { 0%, 18% { text-indent: 0; } 82%, 100% { text-indent: var(--mq, 0px); } }
.btn-action, .btn-song-action, .modal-close-btn, .nav-item { transition-timing-function: var(--spring); }
.btn-action:active, .btn-song-action:active { transform: scale(.9); }
@media (prefers-reduced-motion: reduce) {
    .is-marquee, .song-row { animation: none !important; }
    .app-container { transition: none !important; }
    .is-marquee { text-overflow: ellipsis; }
}
/* polish.css */
:root {
    --ease-out: cubic-bezier(.22, 1, .36, 1);
    --accent-glow: 126, 224, 238;
}
html { -webkit-text-size-adjust: 100%; }
body { text-rendering: optimizeLegibility; }
* { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .18) transparent; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); border-radius: 99px; }
::selection { background: rgba(var(--accent-glow), .35); }
.dynamic-island {
    min-width: 176px;
    max-width: min(320px, calc(100vw - 32px));
    width: auto;
    height: 40px;
    padding: 0 8px 0 14px;
    gap: 8px;
}
.dynamic-island-content { gap: 10px; }
.dynamic-island-title {
    font-size: 13px; font-weight: 650; letter-spacing: -.01em; max-width: 150px;
}
.dynamic-island-subtitle { font-size: 11px; letter-spacing: 0; }
.dynamic-island-text { flex: 1 1 auto; min-width: 0; }
.island-vc-btn {
    width: 28px; height: 28px; padding: 0; gap: 0;
    justify-content: center; border-radius: 50%;
    background: rgba(48, 209, 88, .16);
    transition: transform .35s var(--spring), background .2s ease;
}
.island-vc-btn:active { transform: scale(.88); }
.island-vc-btn #header-vc-text {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.island-vc-btn svg { width: 14px !important; height: 14px !important; }
.dynamic-island.island-vc-active .island-vc-btn { background: rgba(48, 209, 88, .3); box-shadow: 0 0 0 4px rgba(48, 209, 88, .12); }
.artwork-container { width: min(82vw, 42dvh, 360px); }
.artwork-container::before {
    content: ""; position: absolute; z-index: 0; inset: 10% 6% -4%;
    background: var(--art-bg, none) center / cover no-repeat;
    border-radius: 32px;
    filter: blur(34px) saturate(1.7);
    opacity: .6;
    transform: translateY(8%) scale(.94);
    transition: opacity .6s ease, transform .8s var(--spring);
    pointer-events: none;
}
.artwork-container:has(.artwork-wrapper:not(.playing))::before { opacity: .25; transform: translateY(4%) scale(.8); }
.artwork-wrapper { border-radius: 28px; }
.artwork-img { transition: transform 1.2s var(--ease-out), opacity .4s ease; }
.artwork-wrapper.playing .artwork-img { transform: scale(1.015); }
.artwork-wrapper::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
    background: linear-gradient(155deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 38%, rgba(0, 0, 0, .12));
}
.track-title { font-size: 26px; font-weight: 750; letter-spacing: -.03em; line-height: 1.15; }
.track-artist { margin-top: 3px; font-size: 17px; font-weight: 500; }
.track-badges { margin-top: 6px; }
.requester-badge {
    display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 99px;
    background: var(--fill-2); border: 1px solid var(--separator); font-size: 12px; color: var(--text-secondary);
}
.slider-container { height: 26px; }
.slider, .volume-slider { border-radius: 99px; }
.slider { height: 6px; }
.slider {
    background: linear-gradient(to right,
        #fff 0, #fff var(--seek-fill, 0%),
        rgba(255, 255, 255, .18) var(--seek-fill, 0%), rgba(255, 255, 255, .18) 100%);
    box-shadow: 0 0 0 .5px rgba(255, 255, 255, .06);
}
.slider:hover:not(:disabled), .slider:active:not(:disabled) { height: 10px; }
.slider::-webkit-slider-thumb { background: #fff; }
.slider:hover::-webkit-slider-thumb { width: 14px; height: 14px; border-radius: 50%; }
.slider:active::-webkit-slider-thumb { width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 2px 12px rgba(var(--art-glow), .7); }
.slider::-moz-range-thumb { background: #fff; }
.slider:active::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; }
.volume-slider { height: 4px; background: linear-gradient(to right, rgba(255,255,255,.92) 0, rgba(255,255,255,.92) var(--vol-fill, 100%), rgba(255,255,255,.16) var(--vol-fill, 100%), rgba(255,255,255,.16) 100%); }
.volume-slider:hover { height: 7px; }
.time-labels { margin-top: 2px; font-size: 12px; letter-spacing: .01em; }
.controls { padding: 0 2px; }
.btn-ctrl { width: 50px; height: 50px; }
.btn-ctrl.active { box-shadow: inset 0 0 0 1px rgba(var(--accent-glow), .28); }
.btn-play {
    width: 78px; height: 78px; position: relative;
    transition: transform .4s var(--spring), box-shadow .4s ease;
}
.btn-play.playing::after {
    content: ""; position: absolute; inset: -6px; border-radius: 50%;
    border: 1.5px solid rgba(var(--art-glow), .45);
    animation: beat-ring 2.4s var(--ease-out) infinite;
    pointer-events: none;
}
@keyframes beat-ring {
    0% { transform: scale(.92); opacity: .9; }
    80%, 100% { transform: scale(1.28); opacity: 0; }
}
.btn-fav-track, .btn-chat-trigger { width: 44px; height: 44px; }
.btn-fav-track.in-playlist { background: rgba(255, 90, 82, .16); border-color: rgba(255, 90, 82, .35); }
.active-player-view:not([style*="display: none"]) .artwork-container,
.active-player-view:not([style*="display: none"]) .track-header-row,
.active-player-view:not([style*="display: none"]) .progress-wrapper,
.active-player-view:not([style*="display: none"]) .controls,
.active-player-view:not([style*="display: none"]) .secondary-controls {
    animation: rise-in .65s var(--ease-out) both;
}
.active-player-view .track-header-row { animation-delay: .06s; }
.active-player-view .progress-wrapper { animation-delay: .1s; }
.active-player-view .controls { animation-delay: .14s; }
.active-player-view .secondary-controls { animation-delay: .18s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.idle-art { position: relative; overflow: visible; }
.idle-art::before, .idle-art::after {
    content: ""; position: absolute; inset: -14%; border-radius: 30%;
    border: 1px solid rgba(var(--accent-glow), .22);
    animation: idle-ring 3.6s var(--ease-out) infinite;
    pointer-events: none;
}
.idle-art::after { animation-delay: 1.8s; }
@keyframes idle-ring { 0% { transform: scale(.86); opacity: .8; } 100% { transform: scale(1.35); opacity: 0; } }
.idle-title { letter-spacing: -.03em; }
.idle-search-btn { box-shadow: 0 14px 36px -10px rgba(var(--accent-glow), .6); }
.nav-item { transition: transform .4s var(--spring), color .25s ease, background .3s ease; }
.nav-item:active { transform: scale(.92); }
.modal-drawer {
    border-top-left-radius: 30px; border-top-right-radius: 30px;
    background: linear-gradient(180deg, rgba(26, 28, 36, .96), rgba(14, 15, 20, .98));
    -webkit-backdrop-filter: saturate(180%) blur(30px); backdrop-filter: saturate(180%) blur(30px);
}
.modal-backdrop { transition: opacity .35s ease; }
.song-row { padding-block: 8px; }
.song-row img, .song-thumb { border-radius: 12px; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .6); }
.btn-action, .btn-join, .btn-state-action, .btn-song-action { transition: transform .35s var(--spring), box-shadow .3s ease, opacity .2s ease, background .2s ease; }
.btn-join:hover, .btn-state-action:hover { box-shadow: 0 16px 44px -12px rgba(var(--accent-glow), .7); }
.state-card, .join-card, .welcome-card { animation: pop-in .6s var(--ease-out) both; }
@keyframes pop-in { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
:focus-visible { outline: 2px solid rgba(var(--accent-glow), .9); outline-offset: 2px; }
.nav-item:focus-visible, .btn-ctrl:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(var(--accent-glow), .7); }
@media (max-width: 360px) {
    .track-title { font-size: 22px; }
    .btn-play { width: 68px; height: 68px; }
    .dynamic-island { min-width: 150px; }
}
@media (min-width: 900px) {
    .dynamic-island { max-width: 360px; }
}
@media (prefers-reduced-motion: reduce) {
    .btn-play.playing::after, .idle-art::before, .idle-art::after { animation: none !important; }
    .active-player-view .artwork-container, .active-player-view .track-header-row,
    .active-player-view .progress-wrapper, .active-player-view .controls,
    .active-player-view .secondary-controls, .state-card, .join-card, .welcome-card { animation: none !important; }
}
/* video.css */
#audio-element {
    position: absolute; left: 0; top: 0;
    width: 1px; height: 1px; opacity: 0; pointer-events: none;
}
.video-fs-btn { display: none; }
body.has-video #audio-element {
    inset: 0; z-index: 3;
    width: 100%; height: 100%;
    opacity: 1; pointer-events: auto;
    object-fit: contain; background: #000;
}
body.has-video .artwork-container {
    width: min(94vw, 720px, calc(48dvh * 16 / 9)) !important;
    aspect-ratio: 16 / 9 !important;
}
body.has-video .artwork-wrapper,
body.has-video .artwork-wrapper.round {
    width: 100% !important; height: 100% !important;
    border-radius: 16px !important;
}
body.has-video .artwork-wrapper:not(.playing) { transform: none !important; }
body.has-video .progress-ring-svg { display: none !important; }
body.has-video .video-fs-btn {
    display: grid; place-items: center;
    position: absolute; right: 8px; bottom: 8px; z-index: 5;
    width: 36px; height: 36px; padding: 0;
    border: 0; border-radius: 50%;
    color: #fff; background: rgba(0, 0, 0, .55);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    cursor: pointer;
}
body.has-video .video-fs-btn svg { width: 18px; height: 18px; }
.vp-anc {
    transform: none !important; filter: none !important;
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
    perspective: none !important; animation: none !important;
    contain: none !important; will-change: auto !important;
    z-index: 2147482000 !important;
}
body.vp-fs { overflow: hidden !important; }
body.vp-fs .video-fs-btn { display: none !important; }
body.vp-fs .artwork-wrapper {
    position: fixed !important; inset: 0 !important;
    width: 100vw !important; height: 100vh !important; height: 100dvh !important;
    max-width: none !important; max-height: none !important; margin: 0 !important;
    z-index: 2147483000 !important;
    border-radius: 0 !important; background: #000 !important;
    transform: none !important; box-shadow: none !important;
}
@media (orientation: portrait) {
    body.vp-fs .artwork-wrapper.vp-rot {
        inset: auto !important; top: 0 !important; left: 0 !important;
        width: 100vh !important; width: 100dvh !important;
        height: 100vw !important; height: 100dvw !important;
        transform-origin: 0 0 !important;
        transform: translateX(100vw) rotate(90deg) !important;
        transform: translateX(100dvw) rotate(90deg) !important;
    }
}
.vp-ui, .vp-cues { display: none; }
body.vp-fs .vp-ui { display: block; }
body.has-video .vp-cues { display: block; }
.vp-ui {
    position: absolute; inset: 0; z-index: 4; color: #fff;
    font-family: inherit; touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none; user-select: none;
}
.vp-ui button {
    appearance: none; -webkit-appearance: none;
    border: 0; background: none; color: #fff; padding: 0;
    width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center; cursor: pointer;
}
.vp-ui button:active { background: rgba(255, 255, 255, .18); }
.vp-ui svg { width: 26px; height: 26px; display: block; }
.vp-ui svg.fill * { fill: currentColor; }
.vp-zone { position: absolute; top: 0; bottom: 0; z-index: 1; }
.vp-zone-l { left: 0; width: 38%; }
.vp-zone-m { left: 38%; width: 24%; }
.vp-zone-r { right: 0; width: 38%; }
.vp-bar, .vp-center { position: absolute; z-index: 2; transition: opacity .25s ease; }
.vp-ui:not(.on) .vp-bar,
.vp-ui:not(.on) .vp-center { opacity: 0; pointer-events: none; }
.vp-ui.locked .vp-bar,
.vp-ui.locked .vp-center { display: none; }
.vp-top {
    top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 4px;
    padding: 14px max(12px, env(safe-area-inset-right)) 28px max(12px, env(safe-area-inset-left));
    background: linear-gradient(rgba(0, 0, 0, .75), transparent);
}
.vp-title {
    flex: 1; min-width: 0; font-size: 15px; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 6px;
}
.vp-top button.active { color: #7dd3fc; }
.vp-center {
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    display: flex; align-items: center; gap: clamp(8px, 4vmin, 28px);
}
.vp-center .vp-big { width: 68px; height: 68px; background: rgba(0, 0, 0, .45); }
.vp-center .vp-big svg { width: 34px; height: 34px; }
.vp-center button.dim { opacity: .35; }
.vp-bottom {
    left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px;
    padding: 28px max(16px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    background: linear-gradient(transparent, rgba(0, 0, 0, .8));
    font-size: 13px; font-variant-numeric: tabular-nums;
}
.vp-cur, .vp-dur { min-width: 44px; text-align: center; }
.vp-seek {
    -webkit-appearance: none; appearance: none; flex: 1; min-width: 0; height: 28px;
    background: transparent; margin: 0; cursor: pointer;
}
.vp-seek::-webkit-slider-runnable-track {
    height: 4px; border-radius: 2px;
    background: linear-gradient(to right, #fff var(--vp-pct, 0%), rgba(255, 255, 255, .3) var(--vp-pct, 0%));
}
.vp-seek::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .3); }
.vp-seek::-moz-range-progress { height: 4px; border-radius: 2px; background: #fff; }
.vp-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; background: #fff; border: 0; }
.vp-seek::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 0; }
.vp-seek:disabled { opacity: .5; }
.vp-flash {
    position: absolute; top: 50%; z-index: 3; opacity: 0; pointer-events: none;
    transform: translateY(-50%); padding: 12px 18px; border-radius: 999px;
    background: rgba(0, 0, 0, .55); font-weight: 700; font-size: 17px;
}
.vp-flash-l { left: 12%; }
.vp-flash-r { right: 12%; }
.vp-flash.show { animation: vp-flash .65s ease-out; }
@keyframes vp-flash { 0% { opacity: 0; } 15% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; } }
.vp-spin {
    display: none; position: absolute; top: 50%; left: 50%; z-index: 3; pointer-events: none;
    width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, .25); border-top-color: #fff;
    animation: vp-turn .9s linear infinite;
}
.vp-ui.buffering .vp-spin { display: block; }
@keyframes vp-turn { to { transform: rotate(360deg); } }
.vp-toast {
    position: absolute; left: 50%; top: 16%; z-index: 6; transform: translateX(-50%);
    max-width: 80%; padding: 8px 14px; border-radius: 10px; font-size: 14px;
    background: rgba(0, 0, 0, .72); opacity: 0; pointer-events: none;
    transition: opacity .2s ease; text-align: center;
}
.vp-toast.show { opacity: 1; }
.vp-unlock { display: none !important; }
.vp-ui.locked.on .vp-unlock {
    display: flex !important; align-items: center; gap: 8px;
    position: absolute; left: 50%; bottom: 16%; z-index: 6; transform: translateX(-50%);
    width: auto !important; height: auto !important; padding: 10px 16px !important;
    border-radius: 999px !important; background: rgba(0, 0, 0, .65) !important; font-size: 14px;
}
.vp-unlock svg { width: 18px; height: 18px; }
.vp-menu {
    display: none; position: absolute; z-index: 5; top: 64px;
    right: max(12px, env(safe-area-inset-right));
    width: min(300px, 72%); max-height: calc(100% - 110px); overflow-y: auto;
    padding: 6px; border-radius: 14px; background: rgba(20, 20, 24, .95);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .5);
}
.vp-menu.open { display: block; }
.vp-menu-head { padding: 8px 10px 6px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; opacity: .6; }
.vp-ui .vp-menu .vp-row {
    width: 100%; height: auto; min-height: 42px; padding: 8px 10px; border-radius: 10px;
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    text-align: left; font-size: 15px;
}
.vp-menu .vp-row.sel { background: rgba(255, 255, 255, .12); }
.vp-menu .vp-row svg { width: 18px; height: 18px; flex: none; }
.vp-tools { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .12); }
.vp-tool { display: flex; align-items: center; gap: 8px; padding: 4px 6px; font-size: 14px; }
.vp-tool > span { flex: 1; }
.vp-tool > b { min-width: 52px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.vp-ui .vp-tool button { width: 36px; height: 36px; background: rgba(255, 255, 255, .12); font-size: 20px; line-height: 1; }
.vp-cues {
    position: absolute; left: 5%; right: 5%; bottom: 6%; z-index: 3;
    pointer-events: none; text-align: center; line-height: 1.3;
    font-size: calc(var(--vp-sub-scale, 1) * clamp(10px, 2.8vmin, 16px));
    transition: bottom .2s ease;
}
body.vp-fs .vp-cues { font-size: calc(var(--vp-sub-scale, 1) * clamp(14px, 4.4vmin, 36px)); }
body.vp-fs .vp-ui.on ~ .vp-cues { bottom: 88px; }
.vp-cue {
    display: table; margin: 3px auto 0; padding: 2px 10px; border-radius: 6px;
    color: #fff; background: rgba(0, 0, 0, .62); white-space: pre-wrap;
    text-shadow: 0 1px 2px #000;
}
.vp-cue i { font-style: italic; }
.vp-zone { touch-action: none; }
.vp-dim {
    display: none; position: absolute; inset: 0; z-index: 2;
    background: #000; opacity: 0; pointer-events: none;
}
body.has-video .vp-dim { display: block; }
.vp-hud {
    position: absolute; top: 50%; z-index: 6; transform: translateY(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 12px 10px; border-radius: 16px; color: #fff;
    background: rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    opacity: 0; pointer-events: none; transition: opacity .18s ease;
}
.vp-hud.show { opacity: 1; }
.vp-hud-b { left: max(7%, env(safe-area-inset-left)); }
.vp-hud-v { right: max(7%, env(safe-area-inset-right)); }
.vp-hud-ic svg { width: 22px; height: 22px; display: block; }
.vp-hud-track {
    position: relative; width: 6px; height: min(34vh, 150px); overflow: hidden;
    border-radius: 3px; background: rgba(255, 255, 255, .3);
}
.vp-hud-track i { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; background: #fff; border-radius: 3px; }
.vp-hud-val { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 40px; text-align: center; }
body.vp-fs .vp-top {
    padding-top: calc(var(--tg-safe-top, 0px) + var(--tg-content-safe-top, 0px) + 8px);
}
body.vp-fs .vp-menu {
    top: calc(var(--tg-safe-top, 0px) + var(--tg-content-safe-top, 0px) + 56px);
}
@media (orientation: portrait) {
    body.vp-fs .artwork-wrapper.vp-rot .vp-top { padding-top: 14px; }
    body.vp-fs .artwork-wrapper.vp-rot .vp-menu { top: 64px; }
    body.vp-fs .artwork-wrapper.vp-rot .vp-top,
    body.vp-fs .artwork-wrapper.vp-rot .vp-bottom {
        padding-left: calc(var(--tg-safe-top, 0px) + var(--tg-content-safe-top, 0px) + 12px);
        padding-right: calc(var(--tg-safe-bottom, 0px) + 12px);
    }
}
.vp-hud.boost .vp-hud-track i { background: #ffb020; }
.vp-hud.boost .vp-hud-val { color: #ffb020; }
/* wow.css */
:root { --wow-spring: cubic-bezier(.34, 1.56, .64, 1); --wow-rgb: 126, 224, 238; }
button, .btn, [role="button"] { transition: transform .22s var(--wow-spring), background-color .2s, opacity .2s; -webkit-tap-highlight-color: transparent; }
button:active, [role="button"]:active { transform: scale(.92); }
#btn-play { box-shadow: 0 8px 32px rgba(var(--wow-rgb), .35); transition: transform .25s var(--wow-spring), box-shadow .4s; }
#btn-play:active { transform: scale(.88); }
.artwork-wrapper { transition: transform .5s var(--wow-spring), box-shadow .8s ease; will-change: transform; }
body.is-playing .artwork-wrapper { box-shadow: 0 24px 80px rgba(var(--wow-rgb), .38), 0 0 0 1px rgba(255,255,255,.06); animation: wow-pulse 2.4s ease-in-out infinite; }
.artwork-img { transition: opacity .45s ease, filter .45s ease; }
.artwork-img.wow-swap { opacity: 0; filter: blur(10px); }
@keyframes wow-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.018); } }
body::before { content: ""; position: fixed; inset: -20%; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 30%, rgba(var(--wow-rgb), .22), transparent 70%);
  transition: background 1.2s ease; filter: blur(30px); }
#seek-slider::-webkit-slider-thumb { transition: transform .2s var(--wow-spring); }
#seek-slider:active::-webkit-slider-thumb { transform: scale(1.5); }
.wow-toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); opacity: 0;
  padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #fff; z-index: 9999; pointer-events: none;
  background: rgba(20,20,24,.72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.12); transition: opacity .3s, transform .4s var(--wow-spring); max-width: 86vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wow-toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
:root { --chat-rgb: 126, 224, 238; }
.chat-msg-row { animation: none; }
.chat-msg-row:last-child { animation: pop-in .22s ease; }
.chat-msg-row.self .chat-msg-bubble { background: linear-gradient(135deg, #8ff0fb, #6dd5e8); color: #04222a; }
.chat-msg-row.self .chat-bubble-time { color: rgba(4, 34, 42, .55); }
.chat-reply-quote { position: relative; display: flex; flex-direction: column; gap: 1px; min-width: 150px; margin: 1px 0 6px; padding: 5px 10px 5px 12px; border-radius: 10px; background: rgba(255, 255, 255, .07); cursor: pointer; overflow: hidden; }
.chat-reply-quote::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: rgb(var(--chat-rgb)); }
.chat-reply-quote b:empty { display: none; }
.chat-reply-quote b { font-size: 12px; font-weight: 650; color: rgb(var(--chat-rgb)); }
.chat-reply-quote span { font-size: 13px; line-height: 1.25; opacity: .78; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.chat-msg-row.self .chat-reply-quote { background: rgba(0, 0, 0, .1); }
.chat-msg-row.self .chat-reply-quote::before { background: rgba(4, 34, 42, .55); }
.chat-msg-row.self .chat-reply-quote b { color: #04222a; }
.chat-msg-row.flash .chat-msg-bubble { animation: cw-flash 1.1s ease; }
@keyframes cw-flash { 0%, 60% { box-shadow: 0 0 0 3px rgba(var(--chat-rgb), .6); } 100% { box-shadow: 0 0 0 0 transparent; } }
.chat-reply-btn { align-self: center; flex: none; width: 26px; height: 26px; opacity: .55; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .07); color: rgba(255, 255, 255, .6); }
.chat-reply-btn:active { background: rgba(var(--chat-rgb), .25); color: rgb(var(--chat-rgb)); }
#chat-reply-bar { position: relative; display: flex; align-items: center; gap: 10px; margin: 0 2px 8px; padding: 8px 6px 8px 14px; border-radius: 14px; background: rgba(255, 255, 255, .07); overflow: hidden; animation: cw-in .22s cubic-bezier(.34, 1.56, .64, 1); }
#chat-reply-bar::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: rgb(var(--chat-rgb)); }
#chat-reply-bar .chat-reply-ico { color: rgb(var(--chat-rgb)); display: grid; place-items: center; }
#chat-reply-bar .chat-reply-info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
#chat-reply-bar .chat-reply-info b { font-size: 12px; font-weight: 650; color: rgb(var(--chat-rgb)); }
#chat-reply-bar .chat-reply-info span { font-size: 13px; opacity: .72; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#chat-reply-bar .chat-reply-cancel { flex: none; width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: inherit; opacity: .8; }
@keyframes cw-in { from { opacity: 0; transform: translateY(8px); } }
.chat-input-bar { padding: 8px 12px max(12px, var(--tg-content-safe-bottom, 0px)); border-top: 0; background: linear-gradient(to top, rgba(10, 10, 14, .94), rgba(10, 10, 14, .6)); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4); }
.chat-input-bar .chat-input-wrapper { align-items: flex-end; gap: 6px; padding: 4px 4px 4px 8px; border-radius: 26px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); transition: border-color .25s, box-shadow .25s, background .25s; }
.chat-input-bar .chat-input-wrapper:focus-within { border-color: rgba(var(--chat-rgb), .5); box-shadow: 0 0 0 3px rgba(var(--chat-rgb), .12); background: rgba(255, 255, 255, .09); }
.chat-input-bar .chat-input-field { background: transparent; border: 0; border-radius: 0; box-shadow: none; min-height: 36px; padding: 8px 8px; color: inherit; }
.chat-input-bar .chat-input-field:focus,
.chat-input-bar .chat-input-field:focus-visible { border: 0; box-shadow: none; outline: none !important; }
.chat-input-bar .chat-input-field { border-radius: 20px; }
.chat-input-bar .chat-input-field::placeholder { color: rgba(255, 255, 255, .38); }
.chat-input-bar .btn-send-chat { width: 38px; height: 38px; border: 0; background: linear-gradient(135deg, #8ff0fb, #4fc3d9); color: #04222a; box-shadow: 0 4px 14px rgba(var(--chat-rgb), .35); transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), opacity .2s, background .2s, box-shadow .2s; }
.chat-input-bar .btn-send-chat:not(:disabled):active { transform: scale(.86); }
.chat-input-bar .chat-input-wrapper.is-empty .btn-send-chat:not(:disabled) { background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .45); box-shadow: none; }
.chat-input-bar .btn-send-chat:disabled { background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .35); box-shadow: none; }
.chat-composer-footer { display: none; }
.chat-composer-footer.show { display: flex; }
#owner-fab { position: fixed; right: 14px; top: calc(70px + env(safe-area-inset-top, 0px)); z-index: 9000; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); background: rgba(20,20,24,.7); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); font-size: 18px; color: #fff; display: none; }
.chat-msg-row { position: relative; touch-action: pan-y; }
.chat-swipe-ind { position: absolute; top: 50%; right: -44px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(var(--chat-rgb), .2); color: rgb(var(--chat-rgb)); opacity: 0; transform: translateY(-50%) scale(.5); pointer-events: none; transition: background .15s; }
.chat-swipe-ind.armed { background: rgba(var(--chat-rgb), .5); color: #04222a; }
/* peak2.css */
.p2-ripple {
    position: absolute; z-index: 5; pointer-events: none; transform: translate(-50%, -50%);
    padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; color: #fff;
    background: rgba(var(--wow-rgb, 126, 224, 238), .55);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    animation: p2-pop .7s cubic-bezier(.34, 1.56, .64, 1) both;
}
@keyframes p2-pop {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(.6); }
    25% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
    100% { opacity: 0; transform: translate(-50%, -80%) scale(1); }
}
.p2-menu { position: fixed; inset: 0; z-index: 10000; visibility: hidden; pointer-events: none; }
.p2-menu.open { visibility: visible; pointer-events: auto; }
.p2-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity .3s ease; }
.p2-menu.open .p2-backdrop { opacity: 1; }
.p2-sheet {
    position: absolute; left: 0; right: 0; bottom: 0; max-width: 520px; margin: 0 auto;
    padding: 10px 18px calc(22px + env(safe-area-inset-bottom, 0px));
    border-radius: 26px 26px 0 0; color: #fff;
    background: rgba(24, 25, 32, .82);
    backdrop-filter: blur(28px) saturate(1.5); -webkit-backdrop-filter: blur(28px) saturate(1.5);
    border: 1px solid rgba(255, 255, 255, .1); border-bottom: 0;
    transform: translateY(105%); transition: transform .45s cubic-bezier(.32, 1.2, .4, 1);
}
.p2-menu.open .p2-sheet { transform: none; }
.p2-grab { width: 38px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .28); margin: 0 auto 12px; }
.p2-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; min-width: 0; }
.p2-head b { font-size: 18px; letter-spacing: .3px; color: rgb(var(--wow-rgb, 126, 224, 238)); }
.p2-head span { font-size: 12px; opacity: .6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p2-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.p2-stats div { background: rgba(255, 255, 255, .06); border-radius: 14px; padding: 10px 6px; text-align: center; }
.p2-stats b { display: block; font-size: 17px; }
.p2-stats span { font-size: 11px; opacity: .6; }
.p2-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; opacity: .55; margin: 4px 2px 8px; }
.p2-vibes { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.p2-vibe {
    border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: #fff;
    border-radius: 999px; padding: 7px 13px; font-size: 13px; font-weight: 600;
    border-left: 10px solid rgb(var(--c, 150, 150, 160));
}
.p2-vibe.on { background: rgba(var(--c, 255, 255, 255), .28); border-color: rgba(var(--c, 255, 255, 255), .8); }
.p2-row { display: flex; gap: 8px; margin-bottom: 12px; }
.p2-row button {
    flex: 1; border: 0; border-radius: 14px; padding: 12px 8px; font-size: 14px; font-weight: 700; color: #fff;
    background: rgba(var(--wow-rgb, 126, 224, 238), .22);
}
.p2-toggles label { display: flex; align-items: center; gap: 10px; padding: 8px 2px; font-size: 14px; }
.p2-toggles input { width: 18px; height: 18px; accent-color: rgb(var(--wow-rgb, 126, 224, 238)); }
.p2-tip { margin-top: 8px; font-size: 11.5px; opacity: .5; text-align: center; }
@media (prefers-reduced-motion: reduce) {
    .p2-sheet, .p2-backdrop { transition: none !important; }
    .p2-ripple { animation-duration: .01s; }
}
.p2-sheet { background: rgba(28, 28, 30, .78); border-radius: 38px 38px 0 0; border: 0; }
.p2-stats div, .p2-toggles { background: #1c1c1e; border-radius: 12px; }
.p2-toggles { padding: 2px 14px; }
.p2-row button { background: rgba(120, 120, 128, .24); color: #0a84ff; border-radius: 14px; font-weight: 600; }
.p2-head b { color: #fff; font-size: 20px; }
/* peak3.css */
:root {
    --ios-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Inter, Roboto, system-ui, sans-serif;
    --ios-bg: #000; --ios-grouped: #1c1c1e; --ios-fill: rgba(120, 120, 128, .24); --ios-sep: rgba(84, 84, 88, .55);
    --ios-label2: rgba(235, 235, 245, .6); --ios-blue: #0a84ff; --ios-green: #30d158;
    --glass: rgba(40, 40, 46, .55); --glass-line: rgba(255, 255, 255, .14);
    --ios-spring: cubic-bezier(.32, .72, 0, 1);
}
html, body, button, input, textarea, select { font-family: var(--ios-font) !important; -webkit-font-smoothing: antialiased; letter-spacing: -.01em; }
body { background: var(--ios-bg) !important; }
body::before {
    background: radial-gradient(70% 45% at 50% 0%, rgba(var(--wow-rgb), .5), transparent 72%),
                radial-gradient(60% 40% at 90% 100%, rgba(var(--wow-rgb), .22), transparent 70%) !important;
    filter: blur(40px) saturate(1.4) !important; animation: none !important;
}
.artwork-wrapper { border-radius: 22px !important; overflow: hidden; box-shadow: 0 22px 50px -12px rgba(0, 0, 0, .75) !important; animation: none !important; transition: transform .6s var(--ios-spring) !important; }
body:not(.is-playing) .artwork-wrapper { transform: scale(.88); }
body.is-playing .artwork-wrapper { transform: scale(1); box-shadow: 0 30px 70px -14px rgba(var(--wow-rgb), .55) !important; }
#track-title { font-size: 22px !important; font-weight: 700 !important; letter-spacing: -.02em; }
#track-artist { font-size: 18px !important; color: var(--ios-label2) !important; opacity: 1; }
#btn-play { background: transparent !important; color: #fff !important; box-shadow: none !important; border: 0 !important; transform-origin: center; }
#btn-play:active { transform: scale(.86) !important; opacity: .7; }
.btn-ctrl, .btn-ctrl.control-secondary { background: transparent !important; border: 0 !important; backdrop-filter: none !important; box-shadow: none !important; color: #fff; }
.btn-ctrl:disabled, .btn-ctrl[disabled] { opacity: .35; }
#seek-slider, #volume-slider { height: 5px !important; border-radius: 3px !important; transition: height .25s var(--ios-spring); }
#seek-slider:active, #volume-slider:active { height: 10px !important; }
.slider::-webkit-slider-thumb { opacity: 0; }
.slider:active::-webkit-slider-thumb { opacity: 1; }
.profile-group { background: var(--ios-grouped) !important; border-radius: 12px !important; border: 0 !important; overflow: hidden; margin: 0 0 22px !important; }
.profile-row, .profile-row-button { background: transparent !important; min-height: 44px; padding: 11px 16px !important; border: 0 !important; border-bottom: .5px solid var(--ios-sep) !important; border-radius: 0 !important; }
.profile-row:last-child, .profile-row-button:last-child { border-bottom: 0 !important; }
.profile-row-button:active { background: var(--ios-fill) !important; }
.profile-section-title, .sidebar-heading { text-transform: uppercase; font-size: 13px !important; letter-spacing: -.01em; font-weight: 400 !important; color: var(--ios-label2) !important; padding-left: 16px; }
.profile-arrow { color: rgba(235, 235, 245, .3); }
.profile-row-icon { border-radius: 8px !important; }
.toggle-switch { background: rgba(120, 120, 128, .32) !important; border-radius: 16px !important; transition: background .3s var(--ios-spring); }
.toggle-switch.active, .toggle-switch.on, input:checked + .toggle-switch { background: var(--ios-green) !important; }
.toggle-thumb { background: #fff !important; box-shadow: 0 3px 8px rgba(0, 0, 0, .3), 0 1px 1px rgba(0, 0, 0, .16); }
.song-row { background: transparent !important; border: 0 !important; border-radius: 0 !important; border-bottom: .5px solid var(--ios-sep) !important; margin: 0; }
.song-row:active { background: var(--ios-fill) !important; transform: none !important; }
.song-row img, .song-thumb { border-radius: 8px; }
.modal-drawer { background: rgba(28, 28, 30, .72) !important; backdrop-filter: blur(40px) saturate(1.8); -webkit-backdrop-filter: blur(40px) saturate(1.8); border-radius: 38px 38px 0 0 !important; border: 0 !important; box-shadow: 0 -1px 0 var(--glass-line) inset; }
.drawer-handle { width: 36px !important; height: 5px !important; background: rgba(235, 235, 245, .3) !important; border-radius: 3px !important; }
.modal-title { font-size: 17px !important; font-weight: 600 !important; }
.modal-close-btn { background: var(--ios-fill) !important; border-radius: 50% !important; color: var(--ios-label2) !important; }
.modal-backdrop { background: rgba(0, 0, 0, .4) !important; }
.search-input-field { background: var(--ios-fill) !important; border: 0 !important; border-radius: 12px !important; color: #fff; }
.btn-join, .btn-state-action, .btn-action.primary { background: var(--ios-blue) !important; color: #fff !important; border: 0 !important; border-radius: 14px !important; font-weight: 600 !important; box-shadow: none !important; }
.btn-action:not(.primary) { background: var(--ios-fill) !important; border: 0 !important; border-radius: 14px !important; }
.state-card, .welcome-content { background: rgba(28, 28, 30, .7) !important; backdrop-filter: blur(30px) saturate(1.6); -webkit-backdrop-filter: blur(30px) saturate(1.6); border: .5px solid var(--glass-line) !important; border-radius: 28px !important; }
.bottom-nav { left: 16px !important; right: 16px !important; width: auto !important; bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important; border-radius: 34px !important; background: var(--glass) !important; backdrop-filter: blur(30px) saturate(1.9); -webkit-backdrop-filter: blur(30px) saturate(1.9); border: .5px solid var(--glass-line) !important; box-shadow: 0 12px 36px -8px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .12); padding: 6px !important; }
.nav-item { border-radius: 28px !important; color: var(--ios-label2) !important; font-size: 10px; font-weight: 500; }
.nav-item.active { background: rgba(120, 120, 128, .3) !important; color: var(--ios-blue) !important; }
#mini-player { border-radius: 22px !important; background: var(--glass) !important; border: .5px solid var(--glass-line) !important; backdrop-filter: blur(30px) saturate(1.9); -webkit-backdrop-filter: blur(30px) saturate(1.9); }
.wow-toast { background: var(--glass) !important; border: .5px solid var(--glass-line) !important; border-radius: 20px; font-weight: 500; }
@media (min-width: 900px) { .bottom-nav { left: 50% !important; right: auto !important; width: 420px !important; transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { * { transition-duration: .01s !important; } }
/* peak4.css */
html[data-theme="light"] { filter: invert(1) hue-rotate(180deg); background: #fff; }
html[data-theme="light"] img, html[data-theme="light"] video, html[data-theme="light"] canvas,
html[data-theme="light"] .artwork-wrapper, html[data-theme="light"] .brand-logo, html[data-theme="light"] .user-avatar { filter: invert(1) hue-rotate(180deg); }
html[data-theme="light"] * { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
html[data-theme="light"] .modal-drawer, html[data-theme="light"] .bottom-nav, html[data-theme="light"] #mini-player { background: rgba(40, 40, 46, .96) !important; }
.pk-seg { display: flex; padding: 3px; margin: 10px; border-radius: 10px; background: rgba(120, 120, 128, .24); }
.pk-seg button { flex: 1; border: 0; background: transparent; color: inherit; padding: 7px 0; border-radius: 8px; font-size: 14px; font-weight: 500; }
.pk-seg button.on { background: #636366; color: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.pk-bar { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 16px 10px; }
.pk-bar > button, .pk-panel button { border: 0; border-radius: 999px; padding: 8px 18px; font-size: 14px; font-weight: 600; background: rgba(120, 120, 128, .24); color: #0a84ff; }
.pk-panel { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px; }
.pk-panel input { flex: 1 1 100%; border: 0; border-radius: 12px; padding: 11px 14px; font-size: 15px; background: rgba(120, 120, 128, .24); color: inherit; outline: none; }
/* peak5.css */
.pk-tabs { display: flex; width: 190px; margin: 4px auto 14px; padding: 3px; border-radius: 999px; background: rgba(120, 120, 128, .28); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.pk-tabs button { flex: 1; border: 0; background: transparent; color: rgba(235, 235, 245, .7); padding: 7px 0; border-radius: 999px; font-size: 14px; font-weight: 600; transition: background .25s, color .25s; }
.pk-tabs button.on { background: rgba(255, 255, 255, .92); color: #000; }
.pk-lyrics { display: none; height: min(46vh, 420px); margin: 0 4px 10px; overflow-y: auto; padding: 38% 12px; text-align: left; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); }
.pk-lyrics::-webkit-scrollbar { display: none; }
body.pk-lyr .pk-lyrics { display: block; }
body.pk-lyr .artwork-container { display: none !important; }
.pk-line { font-size: 26px; line-height: 1.25; font-weight: 800; letter-spacing: -.02em; padding: 9px 0; color: rgba(255, 255, 255, .32); filter: blur(.6px); transform-origin: left center; transition: color .35s, transform .35s, filter .35s; }
.pk-line.on { color: #fff; filter: none; transform: scale(1.04); }
.pk-biglyr .pk-line { font-size: 31px; }
.pk-plain { white-space: pre-wrap; font-size: 20px; line-height: 1.5; font-weight: 700; color: rgba(255, 255, 255, .85); padding-bottom: 30%; }
.pk-lmsg { text-align: center; opacity: .6; font-size: 16px; padding: 20% 0; }
.pk-row { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 12px 16px; border: 0; background: transparent; color: inherit; font-size: 16px; border-bottom: .5px solid rgba(84, 84, 88, .55); text-align: left; }
.pk-row:last-child { border-bottom: 0; }
.pk-act:active { background: rgba(120, 120, 128, .24); }
.pk-act em { font-style: normal; opacity: .4; font-size: 22px; }
.pk-red span { color: #ff453a; }
.pk-sw { appearance: none; -webkit-appearance: none; width: 51px; height: 31px; border-radius: 16px; background: rgba(120, 120, 128, .32); position: relative; transition: background .3s; flex: none; }
.pk-sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .3); transition: transform .3s cubic-bezier(.32, .72, 0, 1); }
.pk-sw:checked { background: #30d158; }
.pk-sw:checked::after { transform: translateX(20px); }
.pk-accents { display: flex; gap: 12px; padding: 14px 16px; flex-wrap: wrap; }
.pk-dot { width: 34px; height: 34px; border-radius: 50%; border: 0; outline: 2px solid transparent; outline-offset: 3px; }
.pk-dot.on { outline-color: #fff; }
.pk-lretry { display: block; margin: 14px auto 0; border: 0; border-radius: 999px; padding: 10px 20px; font-size: 15px; font-weight: 600; color: inherit; background: rgba(120,120,128,.28); }
.pk-lretry:active { transform: scale(.96); }
/* peak9.css */
.pk9-pill { position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 8px); padding: 6px 14px; border-radius: 999px;
    font-size: 13px; font-weight: 700; letter-spacing: .01em; color: #fff; background: rgba(20, 20, 24, .55);
    backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
    border: .5px solid rgba(255, 255, 255, .18); opacity: 0; pointer-events: none; z-index: 5; white-space: nowrap;
    transition: opacity .25s ease, transform .25s cubic-bezier(.32, .72, 0, 1); }
body.pk9-paused .pk9-pill { opacity: 1; transform: translate(-50%, 0); }
body.pk9-paused #art-wrapper img { filter: brightness(.82) saturate(.9); transition: filter .3s ease; }
:root[data-theme="light"] .pk9-pill { color: #111; background: rgba(255, 255, 255, .7); border-color: rgba(0, 0, 0, .1); }
@media (prefers-reduced-motion: reduce) { .pk9-pill, body.pk9-paused #art-wrapper img { transition: none; } }
/* peak10.css */
@property --pk10-accent { syntax: '<color>'; inherits: true; initial-value: #8ab4ff; }
:root { --pk10-accent: #8ab4ff; --pk10-accent-soft: rgba(138, 180, 255, .16); transition: --pk10-accent .6s ease; }
#seek-slider:not(:disabled) {
    background: linear-gradient(to right, var(--pk10-accent) 0, var(--pk10-accent) var(--seek-fill, 0%),
        rgba(255, 255, 255, .22) var(--seek-fill, 0%), rgba(255, 255, 255, .22) 100%) !important;
}
.nav-item.active svg { color: var(--pk10-accent) !important; }
.btn-play.playing { box-shadow: 0 8px 30px -6px var(--pk10-accent); }
.pk9-pill { border-color: var(--pk10-accent-soft) !important; }
.pk10-next {
    display: none; align-items: center; gap: 8px; max-width: 86%; padding: 4px 12px 4px 4px;
    position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 6;
    border-radius: 999px; cursor: pointer; border: .5px solid rgba(255, 255, 255, .16);
    background: rgba(10, 10, 11, .72); backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%);
    color: #fff; font-size: 12.5px; line-height: 1;
    animation: pk10-in .35s cubic-bezier(.32, .72, 0, 1);
    -webkit-tap-highlight-color: transparent; transition: opacity .15s ease;
}
.pk10-next.on { display: flex; }
.pk10-next:active { opacity: .7; }
.pk10-next img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex: none; }
.pk10-next b { font-weight: 700; opacity: .65; letter-spacing: .04em; text-transform: uppercase; font-size: 10px; flex: none; }
.pk10-next span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; font-weight: 600; }
@keyframes pk10-in { from { opacity: 0; margin-top: -6px; } to { opacity: 1; margin-top: 0; } }
.pk10-react-btn {
    position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%; z-index: 6;
    display: none; align-items: center; justify-content: center; font-size: 19px; cursor: pointer; padding: 0;
    border: .5px solid rgba(255, 255, 255, .2); background: rgba(20, 20, 24, .5); color: #fff;
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: transform .2s cubic-bezier(.32, .72, 0, 1);
}
.pk10-react-btn.on { display: flex; }
.pk10-react-btn:active { transform: scale(.88); }
.pk10-tray {
    position: absolute; right: 8px; bottom: 56px; z-index: 7; display: flex; gap: 2px; padding: 5px 6px; border-radius: 999px;
    background: rgba(24, 24, 28, .78); border: .5px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
    opacity: 0; transform: translateY(8px) scale(.92); transform-origin: right bottom; pointer-events: none;
    transition: opacity .2s ease, transform .25s cubic-bezier(.32, .72, 0, 1);
}
.pk10-tray.open { opacity: 1; transform: none; pointer-events: auto; }
.pk10-tray button { width: 36px; height: 36px; border: 0; background: none; font-size: 22px; padding: 0; cursor: pointer; transition: transform .15s ease; }
.pk10-tray button:active { transform: scale(1.35); }
#pk10-floaters { position: fixed; inset: 0; pointer-events: none; z-index: 70; overflow: hidden; }
.pk10-float { position: absolute; bottom: 120px; display: flex; flex-direction: column; align-items: center; font-size: 34px; will-change: transform, opacity;
    animation: pk10-rise 2.6s cubic-bezier(.2, .6, .3, 1) forwards; text-shadow: 0 4px 18px rgba(0, 0, 0, .4); }
.pk10-float small { font-size: 10px; font-weight: 700; margin-top: 2px; padding: 2px 7px; border-radius: 99px; color: #fff; background: rgba(0, 0, 0, .45); max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes pk10-rise {
    0% { opacity: 0; transform: translate(0, 0) scale(.5); }
    12% { opacity: 1; transform: translate(calc(var(--dx) * .2), -40px) scale(1.15); }
    100% { opacity: 0; transform: translate(var(--dx), -420px) scale(.9); }
}
.pk10-qhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 4px 10px; font-size: 12.5px; color: var(--text-muted, rgba(255,255,255,.6)); }
.pk10-qhead b { color: #fff; font-weight: 700; }
.pk10-qhead button { border: .5px solid rgba(255, 255, 255, .16); background: var(--pk10-accent-soft); color: #fff; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.pk10-qhead button:disabled { opacity: .4; cursor: default; }
.pk10-qrow { position: relative; transition: transform .18s cubic-bezier(.32, .72, 0, 1), box-shadow .18s ease, background .18s ease; }
.pk10-qrow.pk10-can { cursor: pointer; }
.pk10-qrow.pk10-can:active { background: rgba(255, 255, 255, .06); }
.pk10-grip { flex: none; width: 22px; align-self: stretch; display: flex; align-items: center; justify-content: center; margin-right: 2px; touch-action: none; cursor: grab; color: rgba(255, 255, 255, .35); }
.pk10-grip::before { content: ''; width: 10px; height: 16px; background:
    radial-gradient(circle, currentColor 1.4px, transparent 1.6px) 0 0 / 5px 5.4px; }
.pk10-qrow.pk10-dragging { z-index: 5; transition: box-shadow .18s ease; box-shadow: 0 14px 36px rgba(0, 0, 0, .55); background: rgba(40, 40, 46, .96); border-radius: 14px; cursor: grabbing; }
@media (prefers-reduced-motion: reduce) { .pk10-next, .pk10-float, .pk10-tray, .pk10-qrow { animation: none; transition: none; } }
body.vp-fs .pk9-pill, body.vp-fs .pk10-react-btn, body.vp-fs .pk10-tray { display: none !important; }
.pk10-sec { margin: 4px 4px 8px; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--text-secondary); }
.pk10-nowrow { display: flex; align-items: center; gap: 12px; padding: 6px 4px 12px; }
.pk10-nowrow img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; background: var(--fill); }
.pk10-nowrow div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pk10-nowrow b { color: var(--accent); font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk10-nowrow span { color: var(--text-secondary); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk10-nowrow i { font-style: normal; color: var(--text-secondary); font-size: 13px; }
.playlist-card { display: block; width: 100%; box-sizing: border-box; }
.playlist-songs-container { flex-direction: column !important; flex-wrap: nowrap !important; align-items: stretch !important; width: 100%; }
.playlist-songs-container .song-row { width: 100% !important; margin: 0 !important; box-sizing: border-box; flex: none; }
.playlist-songs-container .song-info { flex: 1 1 auto; min-width: 0; }
.playlist-songs-container .song-title { display: block; }
.pl-tools { padding: 2px 0 12px; }
.pl-filter { width: 100%; box-sizing: border-box; height: 42px; border-radius: 14px; border: .5px solid rgba(255,255,255,.14); background: rgba(255,255,255,.07); color: inherit; padding: 0 14px; font-size: 15px; outline: none; }
.pl-filter:focus { border-color: var(--accent, #0a84ff); }
.playlist-songs-top-bar { display: flex; gap: 8px; }
.playlist-songs-top-bar .btn-action { flex: 1; justify-content: center; }
.playlist-songs-container .song-thumb { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; flex: none; background: rgba(255,255,255,.08); }
@property --tg-safe-top { syntax: '<length>'; inherits: true; initial-value: 0px; }
@property --tg-safe-bottom { syntax: '<length>'; inherits: true; initial-value: 0px; }
@property --tg-content-safe-top { syntax: '<length>'; inherits: true; initial-value: 0px; }
@property --tg-content-safe-bottom { syntax: '<length>'; inherits: true; initial-value: 0px; }
:root {
  transition: --tg-safe-top .28s cubic-bezier(.2,.8,.2,1), --tg-safe-bottom .28s cubic-bezier(.2,.8,.2,1),
              --tg-content-safe-top .28s cubic-bezier(.2,.8,.2,1), --tg-content-safe-bottom .28s cubic-bezier(.2,.8,.2,1);
}
.pk-fsrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 12px 10px; }
.pk-fsrow span { font-size: 16px; }
.pk-fsrow button { border: 0; border-radius: 12px; padding: 12px 18px; font-size: 15px; font-weight: 600; color: inherit; background: rgba(120, 120, 128, .24); transition: transform .12s ease, background .2s ease; }
.pk-fsrow button:active { transform: scale(.96); }
/* layout.css */
.st-topbar, .st-home { display: none; }
html.st-layout .top-bar { display: none !important; }
html.st-layout .st-topbar {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    position: fixed; top: 0; left: 0; right: 0; z-index: 1900;
    height: calc(var(--tg-content-safe-top, 0px) + var(--header-height, 52px) + 8px);
    padding: calc(var(--tg-content-safe-top, 0px) + 6px) 16px 0;
    background: linear-gradient(180deg, var(--bg) 55%, transparent);
    pointer-events: none;
}
.st-topbar > * { pointer-events: auto; }
.st-left { display: flex; align-items: center; gap: 7px; min-width: 96px; padding: 6px 0; border: 0; background: none; color: var(--text-secondary); font-size: 13px; font-family: inherit; }
.st-left u { text-underline-offset: 3px; }
.st-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.st-left-back { display: none; min-width: 96px; color: var(--text); }
.st-left-back svg { width: 24px; height: 24px; }
.st-topbar[data-back="1"] .st-left-home { display: none; }
.st-topbar[data-back="1"] .st-left-back { display: flex; }
.st-title { position: absolute; left: 50%; transform: translateX(-50%); font-size: 17px; font-weight: 700; letter-spacing: -.01em; color: var(--text); white-space: nowrap; pointer-events: none; }
.st-avatar { width: 34px; height: 34px; border-radius: 50%; padding: 0; overflow: hidden; border: 0; background: var(--fill); color: var(--text); font-weight: 700; font-size: 14px; display: grid; place-items: center; font-family: inherit; }
.st-avatar img { width: 100%; height: 100%; object-fit: cover; }
html.st-layout body[data-st-page="home"] #st-home { display: block; }
html.st-layout body:not([data-st-page="player"]) .player-card {
    position: fixed !important; left: -200vw; top: 0; width: 100vw; visibility: hidden; pointer-events: none;
}
.st-home { padding: 4px 0 calc(var(--nav-total, 88px) + 96px); }
.st-h1 { margin: 6px 2px 16px; font-size: 32px; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; color: var(--text); }
.st-card { background: var(--ios-grouped, var(--surface)); border-radius: 22px; overflow: hidden; margin-bottom: 14px; }
.st-now { padding: 14px; }
.st-now-top { display: flex; gap: 14px; align-items: center; }
.st-art { width: 96px; height: 96px; border-radius: 16px; object-fit: cover; flex: none; background: var(--fill); }
.st-meta { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.st-t { font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: var(--text); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.st-status { font-size: 13px; font-weight: 600; color: var(--accent); }
.st-a { font-size: 15px; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-by { font-size: 12.5px; color: var(--text-muted, var(--text-secondary)); }
.st-actions { display: flex; gap: 10px; margin-top: 14px; }
.st-actions .btn-action { flex: 1; justify-content: center; padding: 13px 10px; border-radius: 14px; font-size: 15px; font-weight: 600; }
.st-empty { display: flex; flex-direction: column; gap: 4px; padding: 6px 4px; color: var(--text-secondary); font-size: 14px; }
.st-empty b { font-size: 19px; color: var(--text); letter-spacing: -.02em; }
.st-rows { margin-bottom: 0; }
.st-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 0; border-bottom: .5px solid var(--ios-sep, var(--separator)); background: none; color: var(--text); text-align: left; font-family: inherit; }
.st-row:last-child { border-bottom: 0; }
.st-row:active { background: var(--fill); }
.st-ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--fill); color: var(--accent); flex: none; }
.st-ico svg { width: 22px; height: 22px; }
.st-row b { flex: 1; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.st-row em { font-style: normal; font-size: 24px; color: var(--text-dim, var(--text-secondary)); }
.st-count-pill { min-width: 24px; padding: 2px 8px; border-radius: 99px; background: var(--fill); color: var(--text-secondary); font-size: 13px; text-align: center; }
.st-count-pill:empty { display: none; }
html.st-layout #queue-drawer, html.st-layout #search-drawer, html.st-layout #related-drawer,
html.st-layout #playlist-drawer, html.st-layout #profile-drawer {
    top: calc(var(--tg-content-safe-top, 0px) + var(--header-height, 52px) + 4px) !important;
    bottom: 0 !important; left: 0 !important; right: 0 !important;
    height: auto !important; max-height: none !important; width: auto !important; max-width: none !important;
    border-radius: 0 !important; border: 0 !important; box-shadow: none !important;
    background: var(--bg) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
html.st-layout #queue-backdrop, html.st-layout #search-backdrop, html.st-layout #related-backdrop,
html.st-layout #playlist-backdrop, html.st-layout #profile-backdrop { display: none !important; }
html.st-layout #queue-drawer .drawer-handle, html.st-layout #search-drawer .drawer-handle, html.st-layout #related-drawer .drawer-handle,
html.st-layout #playlist-drawer .drawer-handle, html.st-layout #profile-drawer .drawer-handle,
html.st-layout #queue-drawer .modal-close-btn, html.st-layout #search-drawer .modal-close-btn, html.st-layout #related-drawer .modal-close-btn,
html.st-layout #playlist-drawer .modal-close-btn, html.st-layout #profile-drawer .modal-close-btn { display: none !important; }
html.st-layout #queue-drawer .modal-title strong, html.st-layout #search-drawer .modal-title strong, html.st-layout #related-drawer .modal-title strong,
html.st-layout #playlist-drawer .modal-title strong, html.st-layout #profile-drawer .modal-title strong { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
html.st-layout #queue-scroll-list, html.st-layout #playlist-scroll-list, html.st-layout #related-scroll-list,
html.st-layout #search-results, html.st-layout #profile-scroll { padding-bottom: calc(var(--nav-total, 88px) + 96px) !important; }
html.st-layout .mini-player { z-index: 2090 !important; }
.st-recent { padding: 8px 0 4px; }
.st-sub { margin: 18px 4px 8px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.st-muted { padding: 6px 4px; color: var(--text-secondary); font-size: 14px; }
.st-recent-row { cursor: pointer; }
/* peak11.css */
* { -webkit-tap-highlight-color: transparent; }
button, .nav-item, .song-row, .profile-row, .custom-select-option { touch-action: manipulation; }
.nav-item, .profile-row, .song-row, .custom-select-option, .btn-ctrl, .mini-control-btn,
.vc-action-btn, .btn-action, .btn-song-action, .sleep-timer-option-btn, .lang-option {
  transition: transform .16s cubic-bezier(.2, .8, .2, 1), background-color .22s ease, color .22s ease, opacity .22s ease;
}
.nav-item:active, .profile-row:active, .custom-select-option:active, .btn-ctrl:active, .mini-control-btn:active,
.vc-action-btn:active, .btn-song-action:active, .sleep-timer-option-btn:active, .lang-option:active {
  transform: scale(.965);
}
.song-row:active { transform: scale(.985); }
.song-row { content-visibility: auto; contain-intrinsic-size: auto 64px; }
.modal-content, .search-results-container, #playlist-scroll-list {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}
.drawer-handle { transition: width .2s ease, opacity .2s ease; }
.drawer-handle:active { width: 56px; opacity: .9; }
@keyframes pk11-row-in {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
.modal-backdrop[style*="block"] .song-row,
.modal-backdrop[style*="block"] .playlist-card,
.modal-backdrop[style*="block"] .profile-group {
  animation: pk11-row-in .34s cubic-bezier(.2, .8, .2, 1) both;
}
.modal-backdrop[style*="block"] .song-row:nth-child(2), .modal-backdrop[style*="block"] .playlist-card:nth-child(2) { animation-delay: .03s; }
.modal-backdrop[style*="block"] .song-row:nth-child(3), .modal-backdrop[style*="block"] .playlist-card:nth-child(3) { animation-delay: .06s; }
.modal-backdrop[style*="block"] .song-row:nth-child(4), .modal-backdrop[style*="block"] .playlist-card:nth-child(4) { animation-delay: .09s; }
.modal-backdrop[style*="block"] .song-row:nth-child(5), .modal-backdrop[style*="block"] .playlist-card:nth-child(5) { animation-delay: .12s; }
.modal-backdrop[style*="block"] .song-row:nth-child(6), .modal-backdrop[style*="block"] .playlist-card:nth-child(6) { animation-delay: .15s; }
.modal-backdrop[style*="block"] .song-row:nth-child(n+7) { animation-delay: .18s; }
@keyframes pk11-pop {
  0%   { transform: scale(.94); opacity: .55; filter: blur(6px); }
  60%  { transform: scale(1.015); opacity: 1; filter: blur(0); }
  100% { transform: scale(1); }
}
#track-thumb.pk11-pop, #mini-thumb.pk11-pop { animation: pk11-pop .5s cubic-bezier(.2, .9, .3, 1.1); }
.toast-card { animation-timing-function: cubic-bezier(.2, 1.15, .3, 1); }
@keyframes pk11-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.pk11-skel {
  min-height: 54px; border-radius: 14px;
  background: linear-gradient(100deg, rgba(255,255,255,.05) 30%, rgba(255,255,255,.12) 50%, rgba(255,255,255,.05) 70%);
  background-size: 200% 100%; animation: pk11-shimmer 1.3s linear infinite;
}
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent, #0a84ff); outline-offset: 2px; border-radius: 10px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.pk11-home {
  position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(5, 6, 10, .78); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  opacity: 0; transition: opacity .3s ease;
}
.pk11-home.on { opacity: 1; }
.pk11-home-card {
  width: 100%; max-width: 380px; text-align: center; padding: 30px 22px 22px; border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.05)); border: .5px solid rgba(255,255,255,.14);
  transform: translateY(18px) scale(.97); transition: transform .38s cubic-bezier(.2, .9, .3, 1.1);
}
.pk11-home.on .pk11-home-card { transform: none; }
.pk11-home-logo { width: 84px; height: 84px; border-radius: 24px; object-fit: cover; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.pk11-home-card h2 { margin: 18px 0 8px; font-size: 24px; line-height: 1.2; letter-spacing: -.3px; }
.pk11-home-card p { margin: 0 0 22px; font-size: 15px; line-height: 1.45; opacity: .66; }
.pk11-home-btn {
  width: 100%; border: 0; border-radius: 999px; padding: 16px 18px; font-size: 16px; font-weight: 650; color: #06141a;
  background: linear-gradient(180deg, #8fd6df, #6fb9c4); transition: transform .14s ease;
}
.pk11-home-btn:active { transform: scale(.97); }
.pk11-home-skip { width: 100%; margin-top: 8px; border: 0; background: transparent; color: inherit; opacity: .6; font-size: 15px; padding: 12px; }
.p6-tile svg { width: 24px; height: 24px; stroke-width: 1.8; }
.p6-tile i { display: flex; }
.track-badges { flex-wrap: wrap; }
.track-loading { flex-basis: 100%; margin-top: 8px; font-size: 13px; font-weight: 500; opacity: .7; animation: pk11-pulse 1.2s ease-in-out infinite; }
@keyframes pk11-pulse { 0%, 100% { opacity: .35; } 50% { opacity: .85; } }
/* discover.css */
.discover-block { padding: 2px 0 6px; }
.discover-shelf { margin: 0 0 18px; }
.discover-shelf-title { margin: 0 0 10px; font-size: 17px; font-weight: 700; letter-spacing: -.02em; color: var(--text, #fff); }
.discover-row { display: flex; gap: 12px; overflow-x: auto; padding: 2px 18px 6px; margin: 0 -18px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.discover-row::-webkit-scrollbar { display: none; }
.discover-card { flex: 0 0 124px; width: 124px; padding: 0; border: 0; background: transparent; text-align: left; color: inherit; font: inherit; scroll-snap-align: start; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.discover-card:active { transform: scale(.97); }
.discover-cover { display: block; width: 124px; height: 124px; object-fit: cover; border-radius: 14px; background: var(--surface-2, #2c2c2e); }
.discover-card-title { display: block; margin-top: 7px; font-size: 13px; font-weight: 600; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.discover-card-sub { display: block; margin-top: 2px; font-size: 12px; color: var(--text-muted, rgba(235,235,245,.42)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.discover-status { padding: 22px 8px; text-align: center; font-size: 13px; color: var(--text-muted, rgba(235,235,245,.42)); }
.discover-retry { border: 0; background: transparent; color: var(--accent, #0a84ff); font: inherit; font-weight: 600; cursor: pointer; }
.discover-head { display: flex; align-items: center; gap: 12px; padding: 4px 0 14px; }
.discover-back { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 99px; background: var(--surface-2, #2c2c2e); color: inherit; cursor: pointer; }
.discover-back i, .discover-back svg { width: 18px; height: 18px; }
.discover-head-cover { flex: none; width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--surface-2, #2c2c2e); }
.discover-head-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.discover-head-info strong { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.discover-head-info span { font-size: 12px; color: var(--text-muted, rgba(235,235,245,.42)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.discover-play[disabled] { opacity: .4; pointer-events: none; }
/* peak12.css */
:root {
  --pk12-ease: cubic-bezier(.2, .8, .2, 1);
  --pk12-card: rgba(255, 255, 255, .055);
  --pk12-card-2: rgba(255, 255, 255, .085);
  --pk12-line: rgba(255, 255, 255, .09);
}
:root[data-theme="light"] {
  --pk12-card: rgba(0, 0, 0, .045);
  --pk12-card-2: rgba(0, 0, 0, .07);
  --pk12-line: rgba(0, 0, 0, .09);
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.track-title {
  font-size: clamp(24px, 6.6vw, 31px);
  font-weight: 760;
  letter-spacing: -.028em;
  line-height: 1.14;
}
.track-artist { font-size: 17px; font-weight: 500; opacity: .62; letter-spacing: -.012em; }
.requester-badge {
  display: inline-flex; align-items: center; font-size: 13px; font-weight: 500; opacity: .82;
  padding: 6px 13px; border-radius: 999px; background: var(--pk12-card); border: .5px solid var(--pk12-line);
}
.artwork-wrapper {
  border-radius: 30px;
  box-shadow: 0 34px 64px -26px rgba(0, 0, 0, .7), 0 10px 26px rgba(0, 0, 0, .32);
}
.time-labels { font-size: 13px; font-weight: 500; letter-spacing: 0; font-variant-numeric: tabular-nums; opacity: .6; }
.nav-item { font-size: 11.5px; font-weight: 600; letter-spacing: -.005em; }
.song-row { border-radius: 18px; }
.song-thumb { border-radius: 13px; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
.song-title { font-size: 16px; font-weight: 640; letter-spacing: -.015em; }
.song-sub { font-size: 13px; opacity: .58; font-weight: 500; }
.playlist-card, .profile-group {
  border-radius: 22px; background: var(--pk12-card); border: .5px solid var(--pk12-line);
}
.profile-row { min-height: 52px; font-size: 16px; font-weight: 520; }
.profile-section > h2, .profile-section-title, .section-title {
  font-size: 13px; font-weight: 650; letter-spacing: .02em; opacity: .55; text-transform: none;
}
.btn-action {
  border-radius: 14px; font-weight: 640; letter-spacing: -.01em;
}
.btn-action.secondary, .btn-song-action.secondary { background: var(--pk12-card-2); }
.modal-content { border-radius: 30px 30px 0 0; }
.drawer-handle { height: 5px; border-radius: 99px; opacity: .45; }
.toast-card {
  border-radius: 18px; font-weight: 560; letter-spacing: -.01em;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .55);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
input[type="text"], input[type="search"], input[type="url"], .search-input {
  border-radius: 14px; font-size: 16px; letter-spacing: -.01em;
}
input::placeholder { opacity: .45; }
.pk-line { font-size: clamp(22px, 6vw, 28px); font-weight: 720; letter-spacing: -.02em; line-height: 1.25; }
.pk-plain { font-size: 18px; line-height: 1.6; font-weight: 500; }
.pk-lmsg { font-size: 16px; opacity: .65; font-weight: 500; text-align: center; padding: 40px 0; }
/* themes.css */
.pk-theme-host { padding: 4px 0 6px; }
.bt-label { padding: 8px 16px 6px; font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--text-muted); }
.bt-note { padding: 0 16px 8px; font-size: 13px; color: var(--text-muted); }
.bt-themes { display: flex; gap: 10px; padding: 4px 16px 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.bt-themes::-webkit-scrollbar { display: none; }
.bt-theme { flex: 0 0 auto; width: 92px; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 6px 8px; border: 2px solid transparent; border-radius: 16px; background: var(--fill-2); color: var(--text); font: inherit; cursor: pointer; transition: border-color .18s, transform .12s; }
.bt-theme:active { transform: scale(.96); }
.bt-theme.on { border-color: var(--accent); background: var(--accent-soft); }
.bt-theme-name { font-size: 12px; font-weight: 600; line-height: 1.2; text-align: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-sample { position: relative; display: block; width: 100%; height: 64px; border-radius: 11px; background: var(--pv-canvas); overflow: hidden; box-shadow: inset 0 0 0 .5px rgba(128, 128, 128, .35); }
.bt-sample-art { position: absolute; left: 8px; top: 8px; width: 26px; height: 26px; border-radius: 7px; background: var(--pv-surface); box-shadow: inset 0 0 0 .5px rgba(128, 128, 128, .3); }
.bt-sample-line { position: absolute; left: 40px; top: 15px; width: 30px; height: 6px; border-radius: 3px; background: var(--pv-text); opacity: .75; }
.bt-sample-dot { position: absolute; right: 8px; bottom: 8px; width: 18px; height: 18px; border-radius: 50%; background: var(--pv-accent); }
.bt-accents { display: flex; flex-wrap: wrap; gap: 12px; padding: 4px 16px 12px; }
.bt-accent { width: 32px; height: 32px; border-radius: 50%; border: 0; padding: 0; background: var(--sw); cursor: pointer; box-shadow: inset 0 0 0 .5px rgba(128, 128, 128, .4); transition: transform .12s; }
.bt-accent.default { background: conic-gradient(from 200deg, var(--sw), var(--sw) 50%, rgba(128, 128, 128, .5) 50%); }
.bt-accent:active { transform: scale(.9); }
.bt-accent.on { outline: 2px solid var(--text); outline-offset: 3px; }
.bt-row { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 12px 16px; border: 0; border-top: .5px solid var(--separator); background: transparent; color: var(--text); font: inherit; font-size: 16px; text-align: left; cursor: pointer; }
.bt-row em { font-style: normal; font-size: 22px; color: var(--text-muted); transition: transform .2s; }
.bt-row[aria-expanded="true"] em { transform: rotate(90deg); }
.bt-row:active { background: var(--fill-2); }
.bt-editor { display: flex; flex-direction: column; gap: 10px; padding: 4px 16px 14px; }
.bt-field { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; }
.bt-field input[type="text"] { flex: 1; max-width: 190px; min-width: 0; padding: 9px 12px; border: 0; border-radius: 10px; background: var(--fill); color: var(--text); font: inherit; outline: none; }
.bt-field input[type="color"] { width: 46px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.bt-actions { display: flex; gap: 8px; justify-content: flex-end; padding-top: 4px; }
.bt-btn { border: 0; border-radius: 12px; padding: 10px 16px; font: inherit; font-size: 15px; font-weight: 600; background: var(--fill); color: var(--text); cursor: pointer; }
.bt-btn.primary { background: var(--accent); color: var(--on-accent, #fff); }
.bt-btn.danger { color: var(--red); }
.bt-btn:active { transform: scale(.96); }
#chat-cooldown-dropdown { max-height: 260px; overflow-y: auto; overscroll-behavior: contain; }
#chat-cooldown-counter { min-width: 36px; white-space: nowrap; }
#vc-btn-noise[aria-pressed="false"] { opacity: .7; }
#vc-btn-noise[aria-pressed="false"] svg { color: var(--text-muted); }
@media (prefers-reduced-motion: reduce) { .bt-theme, .bt-accent, .bt-row em { transition: none; } }
.vc-join-bar { display: flex; gap: 10px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px)); }
.vc-join-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 14px; border: 0; border-radius: 16px; background: var(--fill); color: var(--text); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.vc-join-btn svg { width: 18px; height: 18px; }
.vc-join-btn.primary { flex: 1.6; background: var(--accent); color: var(--on-accent, #05070b); }
.vc-join-btn:active { transform: scale(.97); }
.vc-join-btn:disabled { opacity: .55; pointer-events: none; }
.vc-join-btn { white-space: nowrap; font-size: 15px; padding: 0 10px; }
.vc-join-btn.primary { flex: 1.25; }
.track-info .track-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.track-info .track-badges .track-artist { display: inline-flex; align-items: center; max-width: 100%; margin: 0; padding: 7px 14px; border-radius: 999px; background: var(--fill); color: var(--text); font-size: 15px; font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-info .track-badges .requester-badge { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 5px 14px 5px 6px; border-radius: 999px; background: var(--fill); color: var(--text); font-size: 15px; font-weight: 600; }
.requester-badge #requester-name { display: inline-flex; align-items: center; gap: 8px; }
.requester-badge #requester-name::before { content: attr(data-initial); display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; }
.controls { justify-content: space-between; gap: 0; }
.controls .btn-ctrl.control-secondary { width: 42px; height: 42px; min-width: 0; }
.controls .btn-seek10 { width: 46px; height: 46px; }
.controls .btn-seek10 svg { width: 30px; height: 30px; }
.player-pills { display: flex; gap: 12px; padding: 8px 4px 14px; }
.pp-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; border: 1px solid var(--separator); border-radius: 26px; background: transparent; color: var(--text); font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; transition: background .15s, transform .12s; }
.pp-btn:active { transform: scale(.97); background: var(--fill-2); }
.pp-btn b { min-width: 28px; padding: 3px 9px; border-radius: 999px; background: var(--fill); font-size: 14px; font-weight: 700; text-align: center; }
#track-artist.track-artist { color: var(--text) !important; font-weight: 600 !important; }
.player-pills { width: 100%; box-sizing: border-box; }
.artwork-container { width: min(76vw, 34dvh, 320px) !important; }
.controls .btn-play { width: 76px; height: 76px; border-radius: 50%; background: var(--accent) !important; color: var(--on-accent, #05070b) !important; box-shadow: 0 10px 28px -8px var(--accent); }
.controls .btn-play svg { width: 32px; height: 32px; }
#btn-play.btn-play { width: 76px !important; height: 76px !important; border-radius: 50% !important; background: var(--accent) !important; color: var(--on-accent, #05070b) !important; box-shadow: 0 10px 28px -8px var(--accent) !important; }
#btn-play.btn-play svg { width: 32px; height: 32px; }
/* explore.css */
.bx-sug { margin: 8px 0 4px; border-radius: 18px; background: var(--surface, #1c1c1e); overflow: hidden; }
.bx-sug[hidden] { display: none; }
.bx-sug-row { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: none; color: inherit; font: inherit; font-size: 16px; padding: 13px 14px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.bx-sug-row:last-child { border-bottom: 0; }
.bx-sug-row:active { background: rgba(255, 255, 255, .06); }
.bx-sug-row svg { flex: none; width: 18px; height: 18px; opacity: .55; }
.bx-sug-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bx-sug-typed { opacity: .6; }
.bx-sug-t b { font-weight: 700; }
html.st-layout body[data-st-page="home"] .main-content { overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; touch-action: pan-y; }
html.st-layout body[data-st-page="home"] .main-content > .st-home { flex: none; }
/* picks.css */
.pk { margin: 18px 0 6px; }
.pk[hidden], .pk-shelf[hidden] { display: none; }
.pk-shelf { margin-top: 14px; }
.pk-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 2px 6px; }
.pk-tw h3 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.pk-tw span { display: block; margin-top: 2px; font-size: 13px; color: var(--text-muted, rgba(235, 235, 245, .5)); }
.pk-row { display: flex; gap: 14px; overflow-x: auto; overflow-y: hidden; margin: 0 -18px; padding: 8px 18px 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scroll-snap-type: x proximity; }
.pk-row::-webkit-scrollbar { display: none; }
.pk-card { flex: 0 0 132px; width: 132px; scroll-snap-align: start; cursor: pointer; }
.pk-card:active { transform: scale(.97); }
.pk-cover { position: relative; width: 132px; height: 132px; border-radius: 20px; overflow: hidden; background: var(--surface, #1c1c1e); box-shadow: 0 10px 22px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .06); }
.pk-art { display: block; width: 100%; height: 100%; object-fit: cover; }
.pk-play { position: absolute; right: 8px; bottom: 8px; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--accent, #0a84ff); color: #04121f; box-shadow: 0 5px 14px rgba(0, 0, 0, .45); }
.pk-play svg { width: 14px; height: 14px; fill: currentColor; margin-left: 2px; }
.pk-t { margin-top: 8px; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-a { margin-top: 2px; font-size: 13px; color: var(--text-secondary, rgba(235, 235, 245, .62)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-shuffle { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--surface, #1c1c1e); color: var(--accent, #0a84ff); }
.pk-shuffle svg { width: 18px; height: 18px; }
.pk-shuffle:active { transform: rotate(180deg); transition: transform .25s; }
.pk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 6px; }
.pk-pick { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px; border-radius: 16px; background: var(--surface, #1c1c1e); cursor: pointer; }
.pk-pick:active { background: rgba(255, 255, 255, .08); }
.pk-pc { flex: none; width: 46px; height: 46px; border-radius: 11px; overflow: hidden; background: rgba(255, 255, 255, .06); }
.pk-pt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pk-pt b { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-pt em { font-style: normal; margin-top: 2px; font-size: 12px; color: var(--text-secondary, rgba(235, 235, 245, .62)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-add { flex: none; width: 28px; height: 28px; border: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .08); color: inherit; padding: 0; }
.pk-add svg { width: 15px; height: 15px; }
@media (max-width: 340px) { .pk-grid { grid-template-columns: 1fr; } }
.pk-hero { margin: 0 2px 2px; }
.pk-hi { font-size: 28px; font-weight: 800; letter-spacing: -.03em; background: linear-gradient(90deg, var(--text, #fff), var(--accent, #0a84ff)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pk-hs { margin-top: 2px; font-size: 14px; color: var(--text-muted, rgba(235, 235, 245, .5)); }
@keyframes pk-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.pk-card, .pk-pick { animation: pk-in .4s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 45ms); }
.pk-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255, 255, 255, .16), transparent 45%); pointer-events: none; }
.pk-card, .pk-pick { transition: transform .15s ease, background .15s ease; }
.pk-on .pk-cover, .pk-on.pk-pick { box-shadow: 0 0 0 2px var(--accent, #0a84ff), 0 10px 26px rgba(0, 0, 0, .5); }
.pk-on .pk-t, .pk-on .pk-pt b { color: var(--accent, #0a84ff); }
.pk-eq { display: none; position: absolute; left: 8px; bottom: 8px; height: 16px; align-items: flex-end; gap: 2px; }
.pk-on .pk-eq { display: flex; }
.pk-eq i { width: 3px; border-radius: 2px; background: var(--accent, #0a84ff); animation: pk-bar .9s ease-in-out infinite; height: 40%; }
.pk-eq i:nth-child(2) { animation-delay: .2s; } .pk-eq i:nth-child(3) { animation-delay: .4s; }
@keyframes pk-bar { 50% { height: 100%; } }
.pf-bg .pk-eq i, .pf-bg .pk-card, .pf-bg .pk-pick { animation: none; }
@media (prefers-reduced-motion: reduce) { .pk-card, .pk-pick, .pk-eq i { animation: none; } }
/* perf.css */
.modal-backdrop, .overlay, .state-overlay, .state-card, .welcome-content, .lang-list, .dynamic-island,
.pk-tabs, .vp-hud, .pk9-pill, .pk10-next, .pk10-tray, .pk10-react-btn, .btn-fav-track, .chat-input-bar,
.modal-drawer, .listeners-drawer, .chat-drawer, .sleep-timer-drawer, .vc-drawer, .vc-mini-bar,
#owner-fab, .mini-player, .bottom-nav {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}
.bottom-nav, .mini-player { background-color: rgba(26, 28, 34, .96) !important; }
.listeners-drawer, .chat-drawer, .sleep-timer-drawer, .vc-drawer { background-color: rgb(28, 28, 30) !important; }
.vc-mini-bar, .chat-input-bar { background-color: rgba(28, 28, 30, .97) !important; }
#owner-fab { background-color: rgba(22, 22, 26, .94) !important; }
.modal-backdrop { background-color: rgba(0, 0, 0, .55); }
html.st-layout .idle-art, html.st-layout .idle-art::before, html.st-layout .idle-art::after { animation: none !important; }
body[data-st-page]:not([data-st-page="player"]) .player-card *,
body[data-st-page]:not([data-st-page="player"]) .player-card *::before,
body[data-st-page]:not([data-st-page="player"]) .player-card *::after { animation: none !important; }
html.pf-bg *, html.pf-bg *::before, html.pf-bg *::after { animation-play-state: paused !important; }
.song-row { content-visibility: auto; contain-intrinsic-size: auto 68px; }
.song-thumb { background-color: #1c1c1e; }
.modal-content, .search-results-container, .main-content { overscroll-behavior: contain; }
button, a, .song-row, .nav-item, .st-row, .bx-card { touch-action: manipulation; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}