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

:root {

--bg-primary: #050805;
--bg-secondary: #090e0b;
--bg-card: rgba(12, 18, 14, 0.94);

--accent: #00ff66;
--accent-soft: rgba(0, 255, 102, 0.12);
--accent-border: rgba(0, 255, 102, 0.20);

--text-main: #edf7f0;
--text-muted: #89958e;
--text-dark: #020402;

--border: rgba(255, 255, 255, 0.07);

--radius-sm: 10px;
--radius-md: 16px;
--radius-lg: 22px;

--shadow:
    0 20px 60px rgba(0, 0, 0, 0.50);

}

html,
body {

width: 100%;
min-height: 100%;

}

body {

min-height: 100vh;

background:
    radial-gradient(
        circle at 50% 0%,
        rgba(0, 255, 102, 0.08),
        transparent 40%
    ),
    var(--bg-primary);

color: var(--text-main);

font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

overflow-x: hidden;

-webkit-tap-highlight-color: transparent;

}

button,
input {

font: inherit;

}

button {

border: 0;

}

button:focus-visible,
input:focus-visible {

outline:
    2px solid var(--accent);

outline-offset: 3px;

}

/* =========================================================
APP
========================================================= */

.app {

width: 100%;
max-width: 980px;

min-height: 100vh;

margin: 0 auto;

background:
    linear-gradient(
        180deg,
        rgba(255,255,255,0.012),
        transparent
    );

}

/* =========================================================
VISUALIZER
========================================================= */

.visualizer-section {

position: relative;

height: min(64vh, 680px);

min-height: 440px;

overflow: hidden;

background:
    radial-gradient(
        circle at center,
        #071009,
        #020302 75%
    );

}

#visualizer {

position: absolute;

inset: 0;

width: 100%;
height: 100%;

}

.visualizer-vignette {

position: absolute;

inset: 0;

pointer-events: none;

background:
    radial-gradient(
        circle,
        transparent 25%,
        rgba(0,0,0,0.12) 60%,
        rgba(0,0,0,0.72) 100%
    );

}

/* =========================================================
TOP BAR
========================================================= */

.top-bar {

position: absolute;

top: 0;
left: 0;
right: 0;

z-index: 10;

display: flex;

align-items: center;
justify-content: space-between;

padding:
    18px 20px;

}

.brand {

display: flex;

align-items: center;

gap: 10px;

}

.brand-icon {

width: 36px;
height: 36px;

display: flex;

align-items: center;
justify-content: center;

border:
    1px solid var(--accent-border);

border-radius: 50%;

background:
    var(--accent-soft);

color: var(--accent);

font-size: 18px;

box-shadow:
    0 0 24px
    rgba(0,255,102,0.15);

}

.brand-text {

display: flex;

flex-direction: column;

line-height: 1;

}

.brand-text strong {

font-size: 13px;

letter-spacing: 3px;

}

.brand-text span {

margin-top: 4px;

color: var(--accent);

font-size: 8px;

letter-spacing: 2px;

}

.top-actions {

display: flex;

align-items: center;

gap: 8px;

}

.glass-button,
.icon-button {

display: flex;

align-items: center;
justify-content: center;

cursor: pointer;

color: var(--text-main);

background:
    rgba(255,255,255,0.06);

border:
    1px solid rgba(255,255,255,0.08);

backdrop-filter: blur(16px);

-webkit-backdrop-filter: blur(16px);

transition:
    transform 0.2s,
    background 0.2s,
    border-color 0.2s;

}

.glass-button {

gap: 7px;

min-height: 40px;

padding:
    0 13px;

border-radius: 12px;

font-size: 11px;

}

.icon-button {

width: 40px;
height: 40px;

border-radius: 50%;

font-size: 24px;

}

.glass-button:hover,
.icon-button:hover {

background:
    var(--accent-soft);

border-color:
    var(--accent-border);

transform:
    translateY(-1px);

}

.glass-button span:first-child {

color: var(--accent);

}

/* =========================================================
VISUALIZER LABEL
========================================================= */

.visualizer-label {

position: absolute;

top: 82px;
left: 50%;

z-index: 5;

transform:
    translateX(-50%);

display: flex;

align-items: center;

gap: 7px;

padding:
    7px 12px;

border:
    1px solid rgba(255,255,255,0.07);

border-radius: 100px;

background:
    rgba(0,0,0,0.25);

backdrop-filter:
    blur(12px);

color: var(--text-muted);

font-size: 10px;

letter-spacing: 1px;

text-transform: uppercase;

}

.live-dot {

width: 6px;
height: 6px;

border-radius: 50%;

background:
    var(--accent);

box-shadow:
    0 0 10px var(--accent);

}

/* =========================================================
NOW PLAYING
========================================================= */

.now-playing {

position: absolute;

left: 20px;
right: 20px;
bottom: 28px;

z-index: 5;

display: flex;

align-items: center;

gap: 16px;

}

.cover-wrapper {

width: 84px;
height: 84px;

flex: 0 0 auto;

}

.cover {

width: 100%;
height: 100%;

display: flex;

align-items: center;
justify-content: center;

border:
    1px solid var(--accent-border);

border-radius:
    var(--radius-md);

background:
    radial-gradient(
        circle at 35% 25%,
        rgba(0,255,102,0.18),
        transparent 35%
    ),
    #050805;

color: var(--accent);

font-size: 34px;

box-shadow:
    0 15px 40px rgba(0,0,0,0.5),
    0 0 30px rgba(0,255,102,0.08);

}

.track-info {

min-width: 0;

}

.track-title {

max-width: 700px;

overflow: hidden;

text-overflow: ellipsis;

white-space: nowrap;

font-size:
    clamp(19px, 4vw, 31px);

font-weight: 750;

letter-spacing: -0.5px;

}

.track-artist {

margin-top: 5px;

color: var(--text-muted);

font-size: 13px;

}

/* =========================================================
PLAYER
========================================================= */

.player-section {

padding:
    20px;

background:
    var(--bg-card);

border-bottom:
    1px solid var(--border);

}

.progress-container {

display: flex;

align-items: center;

gap: 10px;

}

.progress-container span {

width: 40px;

color: var(--text-muted);

font-size: 10px;

font-variant-numeric:
    tabular-nums;

}

.progress-container span:last-child {

text-align: right;

}

input[type="range"] {

width: 100%;
height: 4px;

appearance: none;
-webkit-appearance: none;

border-radius: 100px;

background:
    rgba(255,255,255,0.10);

cursor: pointer;

}

input[type="range"]::-webkit-slider-thumb {

width: 13px;
height: 13px;

appearance: none;
-webkit-appearance: none;

border: 0;

border-radius: 50%;

background:
    var(--accent);

box-shadow:
    0 0 12px var(--accent);

}

input[type="range"]::-moz-range-thumb {

width: 13px;
height: 13px;

border: 0;

border-radius: 50%;

background:
    var(--accent);

}

.controls {

display: flex;

align-items: center;
justify-content: center;

gap: 17px;

margin-top: 22px;

}

.control-button,
.play-button {

display: flex;

align-items: center;
justify-content: center;

cursor: pointer;

transition:
    transform 0.2s,
    background 0.2s;

}

.control-button {

width: 43px;
height: 43px;

border-radius: 50%;

background:
    rgba(255,255,255,0.05);

color: var(--text-main);

}

.control-button:hover {

background:
    rgba(255,255,255,0.09);

transform:
    scale(1.06);

}

.control-button.secondary {

color: var(--text-muted);

}

.control-button.active {

color: var(--accent);

background:
    var(--accent-soft);

}

.play-button {

width: 66px;
height: 66px;

border-radius: 50%;

background:
    var(--accent);

color: var(--text-dark);

font-size: 21px;

box-shadow:
    0 0 30px
    rgba(0,255,102,0.25);

}

.play-button:hover {

transform:
    scale(1.07);

}

.volume-container {

display: flex;

align-items: center;

gap: 10px;

max-width: 300px;

margin:
    20px auto 0;

}

.volume-container > span {

font-size: 13px;

}

/* =========================================================
PLAYLIST
========================================================= */

.playlist-section {

padding:
    25px 20px 45px;

}

.playlist-header {

display: flex;

align-items: center;
justify-content: space-between;

margin-bottom: 16px;

}

.playlist-header h2 {

font-size: 18px;

}

.playlist-header span {

display: block;

margin-top: 3px;

color: var(--text-muted);

font-size: 11px;

}

.clear-button {

padding:
    8px 11px;

border-radius:
    var(--radius-sm);

background:
    rgba(255,255,255,0.05);

color: var(--text-muted);

cursor: pointer;

}

.clear-button:hover {

color: var(--text-main);

}

/* =========================================================
DROP ZONE
========================================================= */

.drop-zone {

min-height: 145px;

display: flex;

flex-direction: column;

align-items: center;
justify-content: center;

gap: 5px;

padding: 20px;

border:
    1px dashed
    rgba(0,255,102,0.18);

border-radius:
    var(--radius-md);

color: var(--text-muted);

text-align: center;

transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s;

}

.drop-zone.dragover {

background:
    var(--accent-soft);

border-color:
    var(--accent);

transform:
    scale(1.01);

}

.drop-icon {

margin-bottom: 3px;

color: var(--accent);

font-size: 29px;

}

.drop-zone strong {

color: var(--text-main);

font-size: 14px;

}

.drop-zone span {

font-size: 12px;

}

.drop-zone small {

margin-top: 4px;

font-size: 10px;

}

/* =========================================================
PLAYLIST ITEMS
========================================================= */

.playlist {

margin-top: 16px;

}

.playlist-item {

display: flex;

align-items: center;

gap: 11px;

min-height: 58px;

margin-bottom: 7px;

padding:
    9px 11px;

border:
    1px solid transparent;

border-radius:
    var(--radius-sm);

background:
    rgba(255,255,255,0.025);

cursor: pointer;

transition:
    background 0.2s,
    border-color 0.2s;

}

.playlist-item:hover {

background:
    rgba(255,255,255,0.055);

}

.playlist-item.active {

background:
    var(--accent-soft);

border-color:
    var(--accent-border);

}

.track-number {

width: 27px;

flex: 0 0 27px;

color: var(--text-muted);

text-align: center;

font-size: 11px;

}

.playlist-item.active .track-number {

color:
    var(--accent);

}

.playlist-name {

min-width: 0;

flex: 1;

}

.playlist-title {

overflow: hidden;

text-overflow: ellipsis;

white-space: nowrap;

font-size: 13px;

}

.playlist-meta {

margin-top: 3px;

color: var(--text-muted);

font-size: 10px;

}

/* =========================================================
VISUALIZER PANEL
========================================================= */

.visualizer-panel {

position: fixed;

inset: 0;

z-index: 100;

visibility: hidden;

opacity: 0;

pointer-events: none;

transition:
    opacity 0.25s,
    visibility 0.25s;

}

.visualizer-panel.open {

visibility: visible;

opacity: 1;

pointer-events: auto;

}

.panel-backdrop {

position: absolute;

inset: 0;

background:
    rgba(0,0,0,0.66);

backdrop-filter:
    blur(8px);

}

.visualizer-sheet {

position: absolute;

left: 50%;

bottom: 0;

width: min(100%, 760px);

max-height: 90vh;

overflow-y: auto;

transform:
    translate(-50%, 100%);

padding:
    12px 20px 30px;

border:
    1px solid
    rgba(255,255,255,0.08);

border-bottom: 0;

border-radius:
    24px 24px 0 0;

background:
    #0a0f0c;

box-shadow:
    0 -20px 70px rgba(0,0,0,0.6);

transition:
    transform 0.35s cubic-bezier(.2,.8,.2,1);

}

.visualizer-panel.open
.visualizer-sheet {

transform:
    translate(-50%, 0);

}

.sheet-handle {

width: 42px;
height: 4px;

margin:
    0 auto 18px;

border-radius: 10px;

background:
    rgba(255,255,255,0.16);

}

.sheet-header {

display: flex;

align-items: flex-start;
justify-content: space-between;

margin-bottom: 20px;

}

.sheet-header h2 {

font-size: 20px;

}

.sheet-header p {

margin-top: 4px;

color: var(--text-muted);

font-size: 11px;

}

.close-button {

width: 34px;
height: 34px;

border-radius: 50%;

background:
    rgba(255,255,255,0.06);

color: var(--text-main);

cursor: pointer;

font-size: 22px;

}

/* =========================================================
VISUALIZER GRID
========================================================= */

.visualizer-grid {

display: grid;

grid-template-columns:
    repeat(4, minmax(0, 1fr));

gap: 9px;

}

.visualizer-card {

position: relative;

min-height: 90px;

padding: 10px;

overflow: hidden;

border:
    1px solid
    rgba(255,255,255,0.06);

border-radius:
    var(--radius-md);

background:
    rgba(255,255,255,0.025);

color: var(--text-main);

cursor: pointer;

text-align: left;

transition:
    transform 0.2s,
    background 0.2s,
    border-color 0.2s;

}

.visualizer-card:hover {

transform:
    translateY(-2px);

background:
    rgba(255,255,255,0.055);

}

.visualizer-card.active {

border-color:
    var(--accent);

background:
    var(--accent-soft);

}

.visualizer-preview {

height: 48px;

display: flex;

align-items: center;
justify-content: center;

margin-bottom: 7px;

color: var(--accent);

font-size: 26px;

}

.visualizer-card strong {

display: block;

font-size: 11px;

}

.visualizer-card span {

display: block;

margin-top: 2px;

color: var(--text-muted);

font-size: 9px;

}

/* =========================================================
SETTINGS
========================================================= */

.settings-section {

margin-top: 22px;

padding-top: 18px;

border-top:
    1px solid
    rgba(255,255,255,0.06);

}

.settings-title {

margin-bottom: 14px;

color: var(--text-muted);

font-size: 10px;

font-weight: 700;

letter-spacing: 1.5px;

text-transform: uppercase;

}

.setting-row {

margin-bottom: 15px;

}

.setting-label {

display: flex;

justify-content: space-between;

margin-bottom: 7px;

color: var(--text-muted);

font-size: 11px;

}

.setting-label strong {

color: var(--accent);

font-weight: 500;

}

/* =========================================================
RESPONSIVE
========================================================= */

@media (max-width: 700px) {

.visualizer-grid {

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

}

}

@media (max-width: 480px) {

.visualizer-section {

    height: 57vh;

    min-height: 405px;

}


.top-bar {

    padding:
        14px;

}


.brand-icon {

    width: 32px;
    height: 32px;

}


.brand-text strong {

    font-size: 11px;

}


.glass-button {

    min-height: 36px;

    padding:
        0 10px;

}


.icon-button {

    width: 36px;
    height: 36px;

}


.visualizer-label {

    top: 70px;

}


.now-playing {

    left: 14px;
    right: 14px;
    bottom: 20px;

}


.cover-wrapper {

    width: 68px;
    height: 68px;

}


.track-title {

    font-size: 18px;

}


.track-artist {

    font-size: 11px;

}


.player-section,
.playlist-section {

    padding-left: 14px;
    padding-right: 14px;

}


.controls {

    gap: 10px;

}


.control-button {

    width: 40px;
    height: 40px;

}


.play-button {

    width: 60px;
    height: 60px;

}


.visualizer-sheet {

    padding-left: 14px;
    padding-right: 14px;

}

}================================ */

.playlist {

margin-top: 16px;

}

.playlist-item {

display: flex;

align-items: center;

gap: 11px;

min-height: 58px;

margin-bottom: 7px;

padding:
    9px 11px;

border:
    1px solid transparent;

border-radius:
    var(--radius-sm);

background:
    rgba(255,255,255,0.025);

cursor: pointer;

transition:
    background 0.2s,
    border-color 0.2s;

}

.playlist-item:hover {

background:
    rgba(255,255,255,0.055);

}

.playlist-item.active {

background:
    var(--accent-soft);

border-color:
    var(--accent-border);

}

.track-number {

width: 27px;

flex: 0 0 27px;

color: var(--text-muted);

text-align: center;

font-size: 11px;

}

.playlist-item.active .track-number {

color:
    var(--accent);

}

.playlist-name {

min-width: 0;

flex: 1;

}

.playlist-title {

overflow: hidden;

text-overflow: ellipsis;

white-space: nowrap;

font-size: 13px;

}

.playlist-meta {

margin-top: 3px;

color: var(--text-muted);

font-size: 10px;

}

/* =========================================================
VISUALIZER PANEL
========================================================= */

.visualizer-panel {

position: fixed;

inset: 0;

z-index: 100;

visibility: hidden;

opacity: 0;

pointer-events: none;

transition:
    opacity 0.25s,
    visibility 0.25s;

}

.visualizer-panel.open {

visibility: visible;

opacity: 1;

pointer-events: auto;

}

.panel-backdrop {

position: absolute;

inset: 0;

background:
    rgba(0,0,0,0.66);

backdrop-filter:
    blur(8px);

}

.visualizer-sheet {

position: absolute;

left: 50%;

bottom: 0;

width: min(100%, 760px);

max-height: 90vh;

overflow-y: auto;

transform:
    translate(-50%, 100%);

padding:
    12px 20px 30px;

border:
    1px solid
    rgba(255,255,255,0.08);

border-bottom: 0;

border-radius:
    24px 24px 0 0;

background:
    #0a0f0c;

box-shadow:
    0 -20px 70px rgba(0,0,0,0.6);

transition:
    transform 0.35s cubic-bezier(.2,.8,.2,1);

}

.visualizer-panel.open
.visualizer-sheet {

transform:
    translate(-50%, 0);

}

.sheet-handle {

width: 42px;
height: 4px;

margin:
    0 auto 18px;

border-radius: 10px;

background:
    rgba(255,255,255,0.16);

}

.sheet-header {

display: flex;

align-items: flex-start;
justify-content: space-between;

margin-bottom: 20px;

}

.sheet-header h2 {

font-size: 20px;

}

.sheet-header p {

margin-top: 4px;

color: var(--text-muted);

font-size: 11px;

}

.close-button {

width: 34px;
height: 34px;

border-radius: 50%;

background:
    rgba(255,255,255,0.06);

color: var(--text-main);

cursor: pointer;

font-size: 22px;

}

/* =========================================================
VISUALIZER GRID
========================================================= */

.visualizer-grid {

display: grid;

grid-template-columns:
    repeat(4, minmax(0, 1fr));

gap: 9px;

}

.visualizer-card {

position: relative;

min-height: 90px;

padding: 10px;

overflow: hidden;

border:
    1px solid
    rgba(255,255,255,0.06);

border-radius:
    var(--radius-md);

background:
    rgba(255,255,255,0.025);

color: var(--text-main);

cursor: pointer;

text-align: left;

transition:
    transform 0.2s,
    background 0.2s,
    border-color 0.2s;

}

.visualizer-card:hover {

transform:
    translateY(-2px);

background:
    rgba(255,255,255,0.055);

}

.visualizer-card.active {

border-color:
    var(--accent);

background:
    var(--accent-soft);

}

.visualizer-preview {

height: 48px;

display: flex;

align-items: center;
justify-content: center;

margin-bottom: 7px;

color: var(--accent);

font-size: 26px;

}

.visualizer-card strong {

display: block;

font-size: 11px;

}

.visualizer-card span {

display: block;

margin-top: 2px;

color: var(--text-muted);

font-size: 9px;

}

/* =========================================================
SETTINGS
========================================================= */

.settings-section {

margin-top: 22px;

padding-top: 18px;

border-top:
    1px solid
    rgba(255,255,255,0.06);

}

.settings-title {

margin-bottom: 14px;

color: var(--text-muted);

font-size: 10px;

font-weight: 700;

letter-spacing: 1.5px;

text-transform: uppercase;

}

.setting-row {

margin-bottom: 15px;

}

.setting-label {

display: flex;

justify-content: space-between;

margin-bottom: 7px;

color: var(--text-muted);

font-size: 11px;

}

.setting-label strong {

color: var(--accent);

font-weight: 500;

}

/* =========================================================
RESPONSIVE
========================================================= */

@media (max-width: 700px) {

.visualizer-grid {

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

}

}

@media (max-width: 480px) {

.visualizer-section {

    height: 57vh;

    min-height: 405px;

}


.top-bar {

    padding:
        14px;

}


.brand-icon {

    width: 32px;
    height: 32px;

}


.brand-text strong {

    font-size: 11px;

}


.glass-button {

    min-height: 36px;

    padding:
        0 10px;

}


.icon-button {

    width: 36px;
    height: 36px;

}


.visualizer-label {

    top: 70px;

}


.now-playing {

    left: 14px;
    right: 14px;
    bottom: 20px;

}


.cover-wrapper {

    width: 68px;
    height: 68px;

}


.track-title {

    font-size: 18px;

}


.track-artist {

    font-size: 11px;

}


.player-section,
.playlist-section {

    padding-left: 14px;
    padding-right: 14px;

}


.controls {

    gap: 10px;

}


.control-button {

    width: 40px;
    height: 40px;

}


.play-button {

    width: 60px;
    height: 60px;

}


.visualizer-sheet {

    padding-left: 14px;
    padding-right: 14px;

}

}