﻿:root {
    --bg: #000000;
    --surface: #0a0a0a;
    --surface-hi: #141414;
    --line: #1c1c1c;
    --line-hi: #2e2e2e;
    --text: #ededed;
    --text-2: #a1a1a1;
    --text-3: #6b6b6b;
    --radius: 5px;
    --radius-sm: 3px;
    --font: "Unbounded", "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Unbounded", "Geist", system-ui, sans-serif;
    --mono: "Unbounded", ui-monospace, "SFMono-Regular", Consolas, monospace;
    --bar_color_start: #ededed;
    --bar_color_end: #262626;
    --bar_color_marker: #ededed;
    --bar_color_marker_cur: #ffffff;
    --bar_color_value_bg: #000000;
    --bar_color_value: #ededed;
    color-scheme: dark;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

button,
input {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

a {
    color: var(--text);
    text-decoration: none;
}

:focus-visible {
    outline: 1px solid #ffffff;
    outline-offset: 2px;
}

.body-wrap {
    position: relative;
    min-height: 100%;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.animated-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: var(--bg);
}

.gradient-orbs {
    display: none;
}

.floating-particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    bottom: -8vh;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: #6a6a6a;
    animation-name: particleUp;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: transform, opacity;
}

.particle:nth-child(3n) {
    background: #4f4f4f;
}

.particle:nth-child(4n) {
    background: #8a8a8a;
}

#app-cover {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 430px;
}

#bg-artwork {
    display: none;
}

#player {
    width: 100%;
}

#player-content {
    width: 100%;
}

.grid-container {
    display: grid;
    grid-template-columns: 55% auto;
    grid-template-rows: 116px 52px 42px auto;
    grid-template-areas:
        "t-display t-display"
        "t-player t-invite"
        "t-volume t-apps"
        "t-menu t-menu";
    gap: 8px;
    width: 100%;
    padding: 10px;
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.g-display {
    grid-area: t-display;
    height: 100%;
    min-width: 0;
}

#box-play {
    position: relative;
    height: 100%;
    overflow: hidden;
    background: #000000;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

#box-play::after {
    content: none;
}

#player-info-box {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
    padding: 8px;
}

#player-info-box::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.46) 52%, rgba(0, 0, 0, 0.74) 100%);
}

#album-art-bg {
    display: block;
    position: absolute;
    inset: -35%;
    z-index: 0;
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    filter: blur(22px) saturate(150%) brightness(0.52);
    opacity: 0.9;
    pointer-events: none;
}

#album-art {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: 98px;
    height: 98px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-hi);
    background-color: #111111;
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
}

#player-info-live {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    padding-right: 62px;
}

#album-name {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text);
    background: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#track-name {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-3);
    background: none;
    padding: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.badges {
    position: absolute;
    top: 7px;
    right: 7px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 3px;
    pointer-events: none;
}

.badge {
    display: flex;
    align-items: baseline;
    gap: 3px;
    padding: 1px 4px;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.6);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.badge__label {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-3);
}

.badge__value {
    font-size: 11px;
    color: #ffffff;
    transition: color 0.2s ease;
}

#idfm {
    color: #ffffff;
}

#err {
    display: none;
}

.g-player {
    grid-area: t-player;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.button {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #000000;
    color: var(--text);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    display: block;
}

.button:hover {
    background: var(--surface-hi);
    border-color: var(--line-hi);
}

.button:active {
    background: #1c1c1c;
}

#play-pause-button {
    flex: 1 1 0;
    background: #000000;
    border-color: var(--line);
    color: var(--text);
}

#play-pause-button svg {
    fill: var(--text);
}

#play-pause-button:hover {
    background: var(--surface-hi);
    border-color: var(--line-hi);
}

.g-invite {
    grid-area: t-invite;
    display: flex;
    min-width: 0;
}

.buttonlink {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 6px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #000000;
    color: var(--text-2);
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.buttonlink:hover {    background: var(--surface-hi);
    border-color: var(--line-hi);
    color: var(--text);
}

.conn {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-width: 0;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #000000;
    color: var(--text-3);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    transition: color 0.2s ease;
}

.conn__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    min-width: 0;
    line-height: 1.15;
    text-align: center;
}

.conn__label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conn__code {
    display: none;
    width: 100%;
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--text-3);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.conn[data-state="offline"] .conn__code {
    display: block;
}

.conn[data-state="connecting"] {
    color: var(--text-2);
}

.conn[data-state="connecting"] .conn__label {
    animation: connPulse 1.1s ease-in-out infinite;
}

.conn[data-state="online"] {
    color: var(--text);
}

.conn[data-state="connected"] {
    color: var(--text-2);
}

.conn[data-state="offline"] {
    color: var(--text-2);
}

@keyframes connPulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.2;
    }
}

.g-volume {
    grid-area: t-volume;
    display: flex;
    min-width: 0;
}

.range-input {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 100%;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #000000;
}

#range {
    flex: 1 1 auto;
    min-width: 0;
    height: 5px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--bar_color_end);
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    cursor: pointer;
}

#range::-webkit-slider-runnable-track {
    height: 5px;
    border-radius: 999px;
    background: transparent;
}

#range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    margin-top: -5.5px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--bar_color_marker);
    cursor: pointer;
    transition: background 0.15s ease;
}

#range:hover::-webkit-slider-thumb,
#range::-webkit-slider-thumb:hover {
    background: var(--bar_color_marker_cur);
}

#range::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--bar_color_marker);
    cursor: pointer;
    transition: background 0.15s ease;
}

#range:hover::-moz-range-thumb {
    background: var(--bar_color_marker_cur);
}

#range::-moz-range-track {
    height: 5px;
    border-radius: 999px;
    background: transparent;
}

.value {
    flex: 0 0 auto;
    min-width: 44px;
    padding: 3px 6px;
    border: 1px solid var(--line-hi);
    border-radius: var(--radius-sm);
    background: #000000;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.g-apps {
    grid-area: t-apps;
    display: flex;
    min-width: 0;
}

.g-apps:empty {
    display: none;
}

.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    background-color: transparent;
    background-image: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.03) 0,
        rgba(255, 255, 255, 0.03) 5px,
        transparent 5px,
        transparent 10px
    );
    opacity: 0.7;
    user-select: none;
    pointer-events: none;
}

#downloads {
    border-color: var(--line);
    color: var(--text-2);
    padding: 0 5px;
    font-size: 10px;
    line-height: 1.15;
    white-space: normal;
}

.g-menu {
    grid-area: t-menu;
    min-width: 0;
}

.btn2 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #000000;
    color: var(--text-2);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn2:hover {
    background: var(--surface-hi);
    border-color: var(--line-hi);
    color: var(--text);
}

.selectmenu {
    display: none;
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 68px;
    z-index: 20;
    grid-template-columns: 106px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    grid-template-areas: "real-box list";
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

.selectmenu.show {
    display: grid;
}

.real-box {
    grid-area: real-box;
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 8px;
    padding: 8px;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #000000;
}

.real-box__count {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
    align-self: end;
    min-width: 0;
    padding-top: 8px;
    border-top: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-3);
}

.real-box__value {
    color: var(--text);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

#album-art2 {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-hi);
    background-color: #111111;
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
}

#album-name2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
    text-align: center;
    color: var(--text-2);
    overflow-wrap: anywhere;
}

.dropdown {
    grid-area: list;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #333333 transparent;
}

.dropdown::-webkit-scrollbar {
    width: 3px;
}

.dropdown::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #333333;
}

.dropdown a {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    grid-template-rows: 1fr;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 5px 7px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--text-2);
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.dropdown a:hover {
    background: var(--surface-hi);
    border-color: var(--line);
    color: var(--text);
}

.dropdown a.PlaySelect {
    background: #141414;
    border-color: #2a2a2a;
    color: var(--text);
}

#immm {
    grid-row: 1;
    grid-column: 1;
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: #111111;
}

#names {
    grid-row: 1;
    grid-column: 2;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#stat {
    display: none;
}

#nums {
    grid-row: 1;
    grid-column: 3;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-3);
    font-variant-numeric: tabular-nums;
}

.dropdown a.PlaySelect #nums {
    color: var(--text-2);
}

.selectmenu.show .dropdown a {
    animation: itemIn 0.3s ease both;
    animation-delay: calc(var(--i, 0) * 18ms);
}

#album-name.is-fresh,
#track-name.is-fresh {
    animation: textIn 0.4s ease both;
}

#album-art.is-fresh,
#album-art2.is-fresh {
    animation: artIn 0.45s ease both;
}

#app-cover.is-playing #album-art {
    border-color: #3a3a3a;
}

#grid-ads {
    display: none;
}

@keyframes particleUp {
    0% {
        transform: translate3d(0, 0, 0);
        opacity: 0;
    }
    10% {
        opacity: 0.55;
    }
    85% {
        opacity: 0.35;
    }
    100% {
        transform: translate3d(0, -118vh, 0);
        opacity: 0;
    }
}

@keyframes textIn {
    from {
        opacity: 0;
        transform: translateY(3px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes artIn {
    from {
        opacity: 0.3;
    }
    to {
        opacity: 1;
    }
}

@keyframes itemIn {
    from {
        opacity: 0;
        transform: translateX(-4px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 360px) {
    .grid-container {
        grid-template-columns: 50% auto;
        grid-template-rows: 106px 52px 42px auto;
    }

    #album-art {
        width: 84px;
        height: 84px;
    }

    #album-name {
        font-size: 18px;
    }

    #track-name {
        font-size: 10px;
    }


    .conn {
        padding: 0 6px;
        font-size: 11px;
    }

    #player-info-live {
        padding-right: 88px;
    }

    .badges {
        top: 6px;
        right: 6px;
        gap: 3px;
    }

    .badge {
        padding: 1px 3px;
    }

    .badge__label {
        display: none;
    }

    .selectmenu {
        grid-template-columns: 96px minmax(0, 1fr);
    }
}

@media (min-width: 769px) {
    .body-wrap {
        padding: 24px;
    }

    #app-cover {
        max-width: 620px;
    }

    .grid-container {
        grid-template-rows: 132px 58px 46px auto;
        gap: 9px;
        padding: 11px;
    }

    #player-info-box {
        gap: 14px;
        padding: 9px;
    }

    #album-art {
        width: 112px;
        height: 112px;
    }

    #player-info-live {
        gap: 5px;
    }

    #album-name {
        font-size: 23px;
    }

    #track-name {
        font-size: 14px;
    }

    #player-info-live {
        padding-right: 96px;
    }

    .badges {
        top: 8px;
        right: 8px;
        gap: 3px;
    }

    .badge {
        gap: 4px;
        padding: 2px 5px;
    }

    .g-player {
        gap: 9px;
    }

    .button svg {
        width: 23px;
        height: 23px;
    }

    .conn {
        padding: 0 12px;
        font-size: 15px;
    }

    .conn__code {
        font-size: 11px;
    }

    .range-input {
        gap: 11px;
        padding: 0 11px;
    }

    #range {
        height: 5px;
    }

    #range::-webkit-slider-runnable-track {
        height: 5px;
    }

    #range::-webkit-slider-thumb {
        width: 18px;
        height: 18px;
        margin-top: -6.5px;
    }

    #range::-moz-range-track {
        height: 5px;
    }

    #range::-moz-range-thumb {
        width: 18px;
        height: 18px;
    }

    .value {
        min-width: 48px;
        padding: 4px 6px;
        font-size: 13px;
    }

    .buttonlink {
        padding: 0 10px;
        font-size: 15px;
    }

    #downloads {
        font-size: 14px;
    }

    .btn2 {
        min-height: 46px;
        padding: 0 15px;
        font-size: 15px;
    }

    .selectmenu {
        top: 11px;
        left: 11px;
        right: 11px;
        bottom: 66px;
        grid-template-columns: 124px minmax(0, 1fr);
        gap: 9px;
        padding: 9px;
    }

    .real-box {
        gap: 9px;
        padding: 9px;
    }

    #album-name2 {
        font-size: 13px;
    }

    .real-box__count {
        padding-top: 9px;
        font-size: 13px;
    }

    .dropdown {
        gap: 4px;
    }

    .dropdown::-webkit-scrollbar {
        width: 5px;
    }

    .dropdown a {
        grid-template-columns: 32px minmax(0, 1fr) auto;
        gap: 11px;
        min-height: 46px;
        padding: 6px 8px;
        font-size: 15px;
    }

    #immm {
        width: 32px;
        height: 32px;
    }

    #nums {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

