/*
(c) Haxter Corporation | All rights reserved.

My HaxterSociety Music
HX26
Style Version: 2.0 Light
*/

:root {
    --bg: #f5f7fb;
    --bg-soft: #eef2f8;

    --panel: #ffffff;
    --panel-soft: #f8fafd;
    --panel-hover: #f1f5fb;

    --text: #111827;
    --text-soft: #374151;
    --muted: #6b7280;

    --border: #d9e1ee;
    --border-soft: #e7edf6;

    --accent: #2563eb;
    --accent-dark: #1d4ed8;
    --accent-soft: rgba(37, 99, 235, 0.10);

    --success: #16a34a;
    --danger: #dc2626;

    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
    --shadow-card: 0 24px 70px rgba(15, 23, 42, 0.10);

    --radius: 22px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.10), transparent 34%),
        radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.09), transparent 36%),
        linear-gradient(180deg, #ffffff 0%, var(--bg) 45%, var(--bg-soft) 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* App Shell */

.app {
    width: min(1040px, calc(100% - 36px));
    margin: 42px auto;
}

/* Header */

.header {
    margin-bottom: 26px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background:
        linear-gradient(135deg, #ffffff, #eaf1ff),
        linear-gradient(135deg, var(--accent), #38bdf8);
    border: 1px solid rgba(37, 99, 235, 0.18);
    color: var(--accent);
    font-size: 27px;
    font-weight: 800;
    box-shadow: 0 14px 35px rgba(37, 99, 235, 0.16);
}

h1 {
    margin: 0;
    color: var(--text);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.02;
}

.subtitle {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 15px;
}

/* Main Card */

.player-card {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(18px);
}

/* Now Playing */

.now-playing-label {
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 9px;
}

.now-playing {
    color: var(--text);
    font-size: clamp(20px, 2.4vw, 28px);
    font-weight: 800;
    line-height: 1.18;
    margin-bottom: 20px;
    word-break: break-word;
}

/* Native Audio */

audio {
    width: 100%;
    margin-bottom: 22px;
    border-radius: 999px;
    filter: drop-shadow(0 10px 20px rgba(15, 23, 42, 0.08));
}

/* Controls */

.controls {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.control-btn {
    appearance: none;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, #ffffff, #f6f9fd);
    color: var(--text-soft);
    border-radius: 999px;
    padding: 11px 18px;
    cursor: pointer;
    font-weight: 750;
    font-size: 14px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        border-color 0.16s ease,
        background 0.16s ease,
        color 0.16s ease;
}

.control-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, 0.42);
    background: linear-gradient(180deg, #ffffff, #edf4ff);
    color: var(--accent-dark);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12);
}

.control-btn:active {
    transform: translateY(0);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

/* Playlist Header */

.playlist-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 14px;
    padding-top: 4px;
}

.playlist-title h2 {
    margin: 0;
    color: var(--text);
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.track-count {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

/* Playlist */

.playlist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.track {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    gap: 12px;
    width: 100%;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.72);
    color: var(--text);
    border-radius: var(--radius-sm);
    padding: 13px 15px;
    cursor: pointer;
    text-align: left;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        border-color 0.16s ease,
        background 0.16s ease;
}

.track:hover {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, 0.34);
    background: var(--panel-hover);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.07);
}

.track.active {
    border-color: rgba(37, 99, 235, 0.55);
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(14, 165, 233, 0.08)),
        #ffffff;
    box-shadow:
        0 16px 38px rgba(37, 99, 235, 0.14),
        inset 0 0 0 1px rgba(37, 99, 235, 0.10);
}

.track-number {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #eef4ff;
    color: var(--accent);
    font-size: 13px;
    font-weight: 850;
    text-align: center;
}

.track.active .track-number {
    background: var(--accent);
    color: #ffffff;
}

.track-name {
    color: var(--text-soft);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 650;
}

.track.active .track-name {
    color: var(--text);
}

/* Empty State */

.empty {
    color: var(--muted);
    border: 1px dashed var(--border);
    background: rgba(255, 255, 255, 0.58);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    font-weight: 600;
}

/* Footer */

.footer {
    margin-top: 20px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

/* Inputs for /private uploader */

input[type="password"],
input[type="text"],
input[type="file"] {
    width: 100%;
    max-width: 520px;
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--text);
    border-radius: 14px;
    padding: 12px 14px;
    font: inherit;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

input[type="password"]:focus,
input[type="text"]:focus,
input[type="file"]:focus {
    outline: none;
    border-color: rgba(37, 99, 235, 0.55);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

label {
    color: var(--text-soft);
    font-weight: 700;
}

/* Selection */

::selection {
    background: rgba(37, 99, 235, 0.16);
    color: var(--text);
}

/* Responsive */

@media (max-width: 720px) {
    .app {
        width: min(100% - 22px, 1040px);
        margin: 22px auto;
    }

    .brand {
        align-items: flex-start;
    }

    .logo {
        width: 48px;
        height: 48px;
        border-radius: 16px;
        font-size: 24px;
    }

    .player-card {
        padding: 20px;
        border-radius: 20px;
    }

    .controls {
        display: grid;
        grid-template-columns: 1fr;
    }

    .control-btn {
        width: 100%;
    }

    .playlist-title {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .track {
        grid-template-columns: 36px 1fr;
    }

    .track-name {
        white-space: normal;
    }
}

@media (max-width: 420px) {
    .app {
        width: min(100% - 16px, 1040px);
        margin: 16px auto;
    }

    .player-card {
        padding: 16px;
    }

    .brand {
        gap: 12px;
    }

    .logo {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .subtitle {
        font-size: 14px;
    }
}