@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800;900&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
    --background: #080b0a;
    --surface: #101513;
    --surface-light: #151d19;
    --green: #b6ff45;
    --cyan: #37e8d0;
    --text: #f1f5ef;
    --muted: #89948c;
    --border: rgba(255,255,255,.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--background);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    overflow-x: hidden;
}

.background-glow {
    position: fixed;
    width: 700px;
    height: 700px;
    top: -400px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(182,255,69,.08);
    filter: blur(130px);
    pointer-events: none;
}

.topbar {
    height: 82px;
    padding: 0 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 2;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
}

.brand-symbol {
    display: grid;
    place-items: center;
    width: 37px;
    height: 37px;
    background: var(--green);
    color: #080b0a;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 27px;
    font-weight: 900;
}

.brand-name {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 2px;
}

.brand-name span {
    color: var(--green);
    margin-left: 5px;
}

.header-status,
.playing-label {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--muted);
}

.status-dot,
.live-indicator {
    width: 7px;
    height: 7px;
    display: inline-block;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px var(--green);
    animation: pulse 1.8s infinite;
}

.main-container {
    width: min(100% - 40px, 850px);
    margin: auto;
}

.hero {
    padding: 85px 0 55px;
}

.hero-label {
    color: var(--green);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 700;
}

h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(65px, 11vw, 112px);
    line-height: .83;
    letter-spacing: -2px;
    margin: 30px 0 22px;
    font-weight: 900;
}

h1 span {
    color: var(--green);
}

.hero-description {
    color: var(--muted);
    font-size: 14px;
}

.player-card {
    background: linear-gradient(145deg, #151d19, #0d120f);
    border: 1px solid rgba(182,255,69,.16);
    border-radius: 8px;
    padding: 27px;
    box-shadow: 0 25px 90px rgba(0,0,0,.35);
}

.player-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.playing-label {
    color: var(--green);
}

.listener-count {
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--muted);
}

.listener-count span {
    color: var(--cyan);
    margin-right: 5px;
}

.now-playing {
    display: flex;
    align-items: center;
    gap: 30px;
}

.artwork-container {
    width: 220px;
    aspect-ratio: 1;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: #080b0a;
}

.artwork-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artwork-overlay {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255,255,255,.08);
    pointer-events: none;
}

.eyebrow {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--green);
    font-weight: 700;
}

.track-information h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(27px, 4vw, 40px);
    line-height: 1;
    margin: 13px 0 10px;
    overflow-wrap: anywhere;
}

.track-information p {
    color: var(--cyan);
    font-size: 15px;
    margin: 0 0 20px;
}

.track-details {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    color: var(--muted);
    font-size: 11px;
}

.detail-separator {
    color: var(--green);
}

.visualizer {
    height: 60px;
    display: flex;
    align-items: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-top: 30px;
}

.visualizer-bars {
    width: 100%;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}

.visualizer-bars span {
    flex: 1;
    height: 20%;
    border-radius: 3px;
    background: var(--green);
    opacity: .75;
    animation: equalize .8s ease-in-out infinite alternate;
}

.visualizer-bars span:nth-child(3n) {
    animation-delay: -.5s;
    background: var(--cyan);
}

.visualizer-bars span:nth-child(4n) {
    animation-delay: -.2s;
}

.visualizer-bars span:nth-child(5n) {
    animation-delay: -.7s;
}

.visualizer.paused .visualizer-bars span {
    animation-play-state: paused;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-top: 24px;
}

.play-button {
    width: 57px;
    height: 57px;
    border: 0;
    border-radius: 50%;
    background: var(--green);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: .2s;
}

.play-button:hover {
    transform: scale(1.08);
    box-shadow: 0 0 25px rgba(182,255,69,.25);
}

.play-button svg {
    width: 27px;
    height: 27px;
    fill: #080b0a;
}

.control-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.control-text strong {
    font-size: 12px;
    letter-spacing: 1px;
}

.control-text span {
    font-size: 9px;
    letter-spacing: 1px;
    color: var(--muted);
}

.volume-control {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 10px;
}

.volume-control input {
    width: 100px;
    accent-color: var(--green);
    cursor: pointer;
}

.history-section {
    padding: 75px 0 55px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 25px;
}

.section-heading h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 38px;
    margin: 5px 0 0;
}

.history-tag {
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 2px;
}

.history-list {
    display: flex;
    flex-direction: column;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 17px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
}

.history-item img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 3px;
    background: var(--surface);
}

.history-info {
    min-width: 0;
    flex: 1;
}

.history-info strong,
.history-info span {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.history-info strong {
    font-size: 13px;
    margin-bottom: 6px;
}

.history-info span {
    font-size: 11px;
    color: var(--muted);
}

.history-number {
    color: var(--green);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 20px;
}

.empty-history {
    color: var(--muted);
    font-size: 13px;
    padding: 20px 0;
}

footer {
    border-top: 1px solid var(--border);
    padding: 35px 0 45px;
    text-align: center;
}

.footer-brand {
    color: var(--green);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 24px;
    letter-spacing: 3px;
}

footer p,
footer span {
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--muted);
}

@keyframes pulse {
    50% { opacity: .35; }
}

@keyframes equalize {
    from { height: 12%; }
    to { height: 100%; }
}

@media (max-width: 600px) {
    .topbar {
        height: 68px;
        padding: 0 20px;
    }

    .main-container {
        width: calc(100% - 32px);
    }

    .hero {
        padding: 65px 0 40px;
    }

    .player-card {
        padding: 18px;
    }

    .now-playing {
        align-items: flex-start;
        gap: 18px;
    }

    .artwork-container {
        width: 115px;
    }

    .track-information h2 {
        font-size: 26px;
    }

    .track-information p {
        font-size: 13px;
    }

    .volume-control input {
        width: 65px;
    }

    .history-section {
        padding-top: 55px;
    }
}
