* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --glass-bg: rgba(18, 18, 32, 0.65);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
    --accent: #a855f7;
    --accent-light: #c084fc;
    --accent-dim: rgba(168, 85, 247, 0.15);
    --accent-glow: rgba(168, 85, 247, 0.2);
    --text-primary: #f0f0fa;
    --text-secondary: #b0b0cc;
    --text-muted: #7878a0;
    --transition: 0.25s ease;
}
body {
    background: #0a0a14;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
    position: relative;
}
.bg-glow {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 60% at 20% 30%, rgba(168, 85, 247, 0.10) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 80% 70%, rgba(139, 92, 246, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 50% 50%, rgba(192, 132, 252, 0.03) 0%, transparent 50%);
}
#snow-canvas {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    animation: orbFloat 12s ease-in-out infinite alternate;
}
.orb--1 {
    width: 320px;
    height: 320px;
    background: rgba(168, 85, 247, 0.06);
    top: -80px;
    right: -60px;
    animation-delay: 0s;
}
.orb--2 {
    width: 240px;
    height: 240px;
    background: rgba(139, 92, 246, 0.04);
    bottom: -60px;
    left: -40px;
    animation-delay: -4s;
}
.orb--3 {
    width: 180px;
    height: 180px;
    background: rgba(192, 132, 252, 0.03);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -8s;
}
@keyframes orbFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(30px, -20px) scale(1.1);
    }
}
.player-container {
    position: relative;
    z-index: 2;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2rem 2rem 1.6rem;
    border-radius: 0;
    max-width: 560px;
    width: 94%;
    transition: max-width 0.3s ease, width 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    gap: 1.2rem;
}
.player-container.open {
    max-width: 840px;
}
.player-container::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.02), transparent 60%);
    pointer-events: none;
}
.main-col {
    flex: 1 1 auto;
    min-width: 0;
}
.next-col {
    flex: 0 0 0;
    width: 0;
    max-width: 220px;
    overflow: hidden;
    opacity: 0;
    padding: 0;
    border-left: none;
    transition: flex 0.3s ease, width 0.3s ease, opacity 0.3s ease, padding 0.3s ease, border 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 0.3rem;
}
.next-col.open {
    flex: 0 0 220px;
    width: 220px;
    opacity: 1;
    padding-left: 0.8rem;
    border-left: 1px dashed var(--accent-dim);
    overflow: visible;
}
.next-col-label {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    opacity: 0.6;
    margin-bottom: 0.4rem;
    font-weight: 400;
    transition: opacity 0.3s;
}
.next-col:not(.open) .next-col-label {
    opacity: 0;
}
.next-tracks-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    transition: opacity 0.3s ease;
}
.next-tracks-list li {
    font-size: 0.6rem;
    color: var(--text-secondary);
    opacity: 0.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: var(--transition);
    line-height: 1.3;
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
    cursor: default;
    animation: trackAppear 0.3s ease forwards;
}
.next-tracks-list li:nth-child(1) { animation-delay: 0.0s; }
.next-tracks-list li:nth-child(2) { animation-delay: 0.05s; }
.next-tracks-list li:nth-child(3) { animation-delay: 0.10s; }
.next-tracks-list li:nth-child(4) { animation-delay: 0.15s; }
.next-tracks-list li:nth-child(5) { animation-delay: 0.20s; }
@keyframes trackAppear {
    0% { opacity: 0; transform: translateY(8px); }
    100% { opacity: 0.7; transform: translateY(0); }
}
.next-tracks-list.fade-out li {
    animation: trackDisappear 0.25s ease forwards !important;
}
@keyframes trackDisappear {
    0% { opacity: 0.7; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-8px); }
}
.next-tracks-list li:hover {
    opacity: 1;
    color: var(--text-primary);
}
.track-num {
    color: var(--accent);
    opacity: 0.5;
    font-size: 0.5rem;
    flex-shrink: 0;
    min-width: 1.4em;
    text-align: right;
}
.next-tracks-empty {
    font-size: 0.6rem;
    color: var(--text-muted);
    font-style: italic;
    opacity: 0.5;
}
.next-col:not(.open) .next-tracks-list,
.next-col:not(.open) .next-tracks-empty {
    display: none;
}
.header-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: nowrap;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.6rem 1rem 0.6rem 0.8rem;
    margin-bottom: 1.4rem;
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 1px dashed var(--accent-dim);
    backdrop-filter: blur(4px);
}
.header-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex: 1 1 auto;
    min-width: 0;
}
h1 {
    color: var(--text-primary);
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: 0.15em;
    margin: 0;
    background: linear-gradient(135deg, #f0f0fa, #b0b0cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
    text-transform: uppercase;
}
.chevron-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.2rem;
    font-size: 0.8rem;
    opacity: 0.4;
    transition: transform 0.3s ease, opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin-left: 0.2rem;
    flex-shrink: 0;
}
.chevron-toggle:hover {
    opacity: 0.8;
}
.chevron-toggle.open svg {
    transform: rotate(180deg);
}
.chevron-toggle svg {
    transition: transform 0.3s ease;
}
.listeners-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 400;
    background: rgba(168, 85, 247, 0.08);
    padding: 3px 10px 3px 6px;
    border: 1px dashed var(--accent-dim);
    backdrop-filter: blur(4px);
    letter-spacing: 0.3px;
    transition: var(--transition);
    flex-shrink: 0;
}
.listeners-badge:hover {
    background: rgba(168, 85, 247, 0.14);
    border-color: rgba(168, 85, 247, 0.3);
}
.listeners-badge svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
    opacity: 0.8;
}
#listeners-count {
    min-width: 14px;
    display: inline-block;
    font-variant-numeric: tabular-nums;
}
#track-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    height: 1.4em;
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease;
    opacity: 1;
}
#track-name.fade-out {
    opacity: 0;
}
#track-name.fade-in {
    opacity: 1;
}
#track-name .track-wrapper {
    display: inline-flex;
    white-space: nowrap;
    will-change: transform;
    transition: none;
}
.track-text {
    display: inline-block;
    color: var(--text-secondary);
    font-weight: 350;
    font-size: 0.9rem;
    letter-spacing: 0.2px;
    opacity: 0.85;
    white-space: nowrap;
    flex-shrink: 0;
    padding-right: 2ch;
}
#track-name .track-text:last-child {
    padding-right: 0;
}
.custom-player {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0;
    padding: 0.5rem 0.7rem;
    border: 1px dashed var(--accent-dim);
    margin-bottom: 1.4rem;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(4px);
    transition: var(--transition);
}
.custom-player:hover {
    border-color: rgba(168, 85, 247, 0.3);
}
.player-controls {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    min-width: 0;
}
.player-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
}
.play-btn {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid var(--accent-dim);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s;
    padding: 0;
    flex-shrink: 0;
}
.play-btn:hover {
    background: rgba(168, 85, 247, 0.25);
    border-color: var(--accent-light);
}
.play-btn:active {
    transform: scale(0.92);
}
.play-btn svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: var(--text-primary);
    flex-shrink: 0;
}
.play-btn .pause-icon {
    display: none;
}
.play-btn.paused .play-icon {
    display: block;
}
.play-btn.paused .pause-icon {
    display: none;
}
.play-btn:not(.paused) .play-icon {
    display: none;
}
.play-btn:not(.paused) .pause-icon {
    display: block;
}
.time-display {
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-family: 'Inter', monospace;
    font-weight: 400;
    min-width: 38px;
    text-align: center;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    opacity: 0.7;
    font-variant-numeric: tabular-nums;
}
.visualizer {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 20px;
    height: 32px;
    gap: 2.5px;
    padding: 0 4px;
    overflow: hidden;
    position: relative;
}
.visualizer .bar {
    flex: 0 0 3.5px;
    height: 4px;
    background: linear-gradient(to top, var(--accent), var(--accent-light));
    border-radius: 0;
    will-change: height;
    transition: height 0.2s ease;
}
.player-right {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    padding-left: 2px;
}
.volume-slider {
    width: 64px;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
}
.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 0;
    border: 1px solid var(--accent-dim);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.15);
    transition: var(--transition);
}
.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    background: var(--accent-light);
}
.volume-slider::-moz-range-thumb {
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 0;
    border: 1px solid var(--accent-dim);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.15);
}
.volume-slider::-moz-range-track {
    background: rgba(255, 255, 255, 0.06);
    height: 4px;
    border-radius: 0;
}
.url-box {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 0;
    border: 1px dashed var(--accent-dim);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(4px);
}
.url-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.05);
}
.url-box input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
    padding: 0.7rem 1.2rem;
    outline: none;
    font-family: 'Inter', monospace;
    letter-spacing: 0.2px;
    min-width: 0;
    width: 0;
    font-weight: 350;
}
.url-box input::selection {
    background: rgba(168, 85, 247, 0.25);
    color: #fff;
}
.copy-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed var(--accent-dim);
    color: var(--text-secondary);
    padding: 0.6rem 1.4rem;
    border-radius: 0;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    font-weight: 450;
    letter-spacing: 0.3px;
    flex-shrink: 0;
    margin: 0.3rem 0.4rem 0.3rem 0;
    backdrop-filter: blur(4px);
}
.copy-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-color: var(--accent);
}
.copy-btn:active {
    transform: scale(0.96);
}
.copy-btn.copied {
    background: rgba(52, 211, 153, 0.15);
    color: #6ee7b7;
    border-color: rgba(52, 211, 153, 0.2);
}
.nyado-badge {
    position: absolute;
    bottom: 6px;
    right: 32px;
    opacity: 0.25;
    transition: var(--transition);
    z-index: 3;
}
.nyado-badge:hover {
    opacity: 0.8;
}
.nyado-badge a {
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.65rem;
    letter-spacing: 0.4px;
    font-weight: 400;
    transition: var(--transition);
}
.nyado-badge a:hover {
    color: var(--text-secondary);
}
.nyado-badge img {
    width: 16px;
    height: 16px;
    border-radius: 0;
    opacity: 0.8;
    transition: var(--transition);
    loading: lazy;
    decoding: async;
}
.nyado-badge a:hover img {
    opacity: 1;
}
@media (max-width: 700px) {
    .player-container {
        flex-direction: column;
        max-width: 560px !important;
        padding: 1.4rem 1.2rem 1.2rem;
        gap: 0.8rem;
        width: 94%;
    }
    .next-col {
        flex: 0 0 0;
        width: 0;
        max-width: 100%;
        border-left: none;
        padding: 0;
        margin: 0;
        border-top: none;
        transition: flex 0.3s ease, width 0.3s ease, opacity 0.3s ease, padding 0.3s ease, margin 0.3s ease;
    }
    .next-col.open {
        flex: 1 1 100%;
        width: 100%;
        padding: 0.8rem 0 0 0;
        border-top: 1px dashed var(--accent-dim);
        margin-top: 0.5rem;
        border-left: none;
    }
    .chevron-toggle {
        margin-left: auto;
    }
    .next-tracks-list li {
        font-size: 0.65rem;
    }
}
@media (max-width: 600px) {
    .player-container {
        padding: 1rem 0.8rem 0.9rem;
        width: 96%;
    }
    .header-box {
        gap: 0.3rem;
        padding: 0.5rem 0.6rem 0.5rem 0.6rem;
        flex-wrap: nowrap;
    }
    .header-left {
        gap: 0.3rem;
    }
    h1 {
        font-size: 1.1rem;
        letter-spacing: 0.1em;
    }
    .track-text {
        font-size: 0.8rem;
    }
    #track-name {
        height: 1.3em;
    }
    .listeners-badge {
        font-size: 0.6rem;
        padding: 2px 6px 2px 4px;
    }
    .listeners-badge svg {
        width: 10px;
        height: 10px;
    }
    .play-btn {
        width: 34px;
        height: 34px;
    }
    .play-btn svg {
        width: 15px;
        height: 15px;
    }
    .custom-player {
        padding: 0.35rem 0.4rem;
    }
    .time-display {
        font-size: 0.6rem;
        min-width: 30px;
    }
    .visualizer {
        height: 26px;
        gap: 1.8px;
        padding: 0 2px;
    }
    .visualizer .bar {
        flex: 0 0 2.5px;
    }
    .volume-slider {
        width: 48px;
    }
    .volume-slider::-webkit-slider-thumb {
        width: 10px;
        height: 10px;
    }
    .volume-slider::-moz-range-thumb {
        width: 10px;
        height: 10px;
    }
    .url-box input {
        font-size: 0.7rem;
        padding: 0.5rem 0.8rem;
    }
    .copy-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.65rem;
        margin: 0.2rem 0.2rem 0.2rem 0;
    }
    .nyado-badge {
        bottom: 6px;
        right: 28px;
    }
    .nyado-badge a {
        font-size: 0.55rem;
    }
    .nyado-badge img {
        width: 14px;
        height: 14px;
    }
    .next-tracks-list li {
        font-size: 0.6rem;
    }
    .track-num {
        font-size: 0.5rem;
        min-width: 1.2em;
    }
}
@media (max-width: 420px) {
    .player-container {
        padding: 0.8rem 0.6rem 0.7rem;
    }
    .header-box {
        padding: 0.4rem 0.4rem 0.4rem 0.4rem;
        gap: 0.2rem;
    }
    .header-left {
        gap: 0.2rem;
    }
    h1 {
        font-size: 0.9rem;
    }
    .track-text {
        font-size: 0.7rem;
    }
    #track-name {
        height: 1.2em;
    }
    .play-btn {
        width: 28px;
        height: 28px;
    }
    .play-btn svg {
        width: 12px;
        height: 12px;
    }
    .time-display {
        font-size: 0.5rem;
        min-width: 24px;
    }
    .visualizer {
        height: 20px;
        gap: 1.2px;
        padding: 0 1px;
    }
    .visualizer .bar {
        flex: 0 0 2px;
    }
    .volume-slider {
        width: 32px;
    }
    .volume-slider::-webkit-slider-thumb {
        width: 8px;
        height: 8px;
    }
    .volume-slider::-moz-range-thumb {
        width: 8px;
        height: 8px;
    }
    .url-box input {
        font-size: 0.55rem;
        padding: 0.3rem 0.5rem;
    }
    .copy-btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.5rem;
        margin: 0.1rem 0.1rem 0.1rem 0;
    }
    .custom-player {
        padding: 0.2rem 0.25rem;
    }
    .player-controls {
        gap: 0.15rem;
    }
    .nyado-badge {
        bottom: 4px;
        right: 20px;
    }
    .nyado-badge a {
        font-size: 0.5rem;
    }
    .nyado-badge img {
        width: 12px;
        height: 12px;
    }
    .next-tracks-list li {
        font-size: 0.5rem;
    }
    .track-num {
        font-size: 0.45rem;
        min-width: 1em;
    }
}
::-webkit-scrollbar {
    width: 4px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.2);
    border-radius: 0;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 247, 0.4);
}