﻿:root {
    --bg: #09080f;
    --panel: #13111d;
    --panel-2: #20182b;
    --text: #f5f7fa;
    --muted: #a29aaa;
    --green: #b67cff;
    --line: #30263e
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif
}

.app-shell {
    display: flex;
    min-height: 100vh;
    padding-bottom: 104px
}

.sidebar {
    width: 235px;
    background: #0d1015;
    border-right: 1px solid var(--line);
    padding: 30px 18px;
    position: fixed;
    inset: 0 auto 0 0
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 750;
    text-decoration: none;
    font-size: 17px
}

.brand-mark {
    display: grid;
    place-items: center;
    background: var(--green);
    color: #10140d;
    border-radius: 10px;
    width: 31px;
    height: 31px;
    font-size: 21px
}

.main-nav {
    display: grid;
    gap: 5px;
    margin-top: 54px
}

.main-nav a {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--muted);
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 9px;
    font-size: 14px
}

.main-nav a span {
    font-size: 21px;
    width: 20px;
    text-align: center
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--panel-2);
    color: var(--text)
}

.main-nav a.active {
    color: var(--green)
}

.sidebar-note {
    position: absolute;
    bottom: 34px;
    left: 27px;
    color: var(--muted);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px
}

.pulse {
    height: 7px;
    width: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 14px var(--green)
}

.content {
    margin-left: 235px;
    width: calc(100% - 235px);
    padding: 0 5.5vw
}

.topbar {
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.arrows {
    display: flex;
    gap: 8px
}

.arrows button {
    border: 0;
    background: var(--panel);
    color: var(--muted);
    border-radius: 50%;
    font-size: 27px;
    width: 35px;
    height: 35px;
    line-height: 25px
}

.profile {
    color: var(--muted);
    font-size: 13px
}

.profile span {
    color: var(--green);
    font-size: 18px;
    margin-left: 10px
}

.hero {
    min-height: 330px;
    border-radius: 18px;
    overflow: hidden;
    padding: 49px 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: radial-gradient(circle at 75% 45%, #354531 0, #202b23 28%, #141b1d 61%, #13111d 100%);
    position: relative
}

.hero:after {
    content: "";
    position: absolute;
    right: 10%;
    top: -30%;
    height: 190%;
    width: 210px;
    transform: rotate(24deg);
    background: #b67cff0d
}

.eyebrow {
    color: var(--green);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-weight: 700;
    margin: 0 0 12px
}

.hero h1 {
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.03;
    margin: 0;
    letter-spacing: -.06em
}

.hero h1 em {
    font-style: normal;
    color: var(--green)
}

.hero-text {
    color: #b9c1c9;
    max-width: 440px;
    line-height: 1.6;
    font-size: 14px;
    margin: 22px 0 0
}

.hero-art {
    width: 240px;
    height: 240px;
    border: 1px solid #b67cff55;
    border-radius: 50%;
    display: grid;
    place-items: center;
    position: relative;
    color: var(--green);
    font-size: 100px;
    line-height: 1;
    transform: rotate(-12deg);
    box-shadow: 0 0 80px #b67cff18
}

.hero-art span:last-child {
    position: absolute;
    font-size: 52px;
    right: 30px;
    bottom: 25px
}

.section {
    padding-top: 51px
}

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

.section-heading h2 {
    margin: 0;
    font-size: 25px;
    letter-spacing: -.04em
}

.count {
    color: var(--muted);
    font-size: 12px
}

.track-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 18px
}

.track-card {
    background: var(--panel);
    border-radius: 12px;
    padding: 12px;
    position: relative;
    transition: transform .2s, background .2s
}

.track-card:hover {
    background: var(--panel-2);
    transform: translateY(-3px)
}

.cover-button {
    border: 0;
    background: #25352d;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    padding: 0
}

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

.cover-fallback,
.mini-cover {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: var(--green);
    font-size: 55px;
    background: linear-gradient(135deg, #2a3b2d, #111c20)
}

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

.cover-play {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background: var(--green);
    color: #121810;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    opacity: 0;
    transform: translateY(5px);
    transition: .2s
}

.track-card:hover .cover-play,
.track-card.is-current .cover-play {
    opacity: 1;
    transform: none
}

.track-meta {
    padding: 12px 1px 3px
}

.track-meta h3 {
    font-size: 14px;
    margin: 0 0 5px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden
}

.track-meta p {
    font-size: 12px;
    color: var(--muted);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.source-badge {
    position: absolute;
    left: 20px;
    top: 20px;
    background: #e52d27;
    color: white;
    padding: 3px 5px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 800
}

.source-badge.mp3 {
    background: #b67cff;
    color: #17200e
}

.playlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 13px
}

.playlist-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--panel);
    padding: 14px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text)
}

.playlist-card:hover {
    background: var(--panel-2)
}

.playlist-icon {
    font-size: 31px;
    color: var(--green)
}

.playlist-card strong,
.playlist-card small {
    display: block
}

.playlist-card small {
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px
}

.empty {
    color: var(--muted)
}

.player {
    position: fixed;
    z-index: 10;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 86px;
    background: #151a20f5;
    border-top: 1px solid var(--line);
    backdrop-filter: blur(18px);
    display: grid;
    grid-template-columns: 1fr minmax(300px, 2fr) 1fr;
    align-items: center;
    gap: 25px;
    padding: 12px 30px
}

.now-playing {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0
}

.mini-cover {
    width: 55px;
    height: 55px;
    border-radius: 7px;
    font-size: 25px;
    flex: none
}

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

.now-playing strong {
    font-size: 13px
}

.now-playing span {
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px
}

.controls {
    text-align: center
}

.controls button {
    background: none;
    border: 0;
    color: var(--muted);
    font-size: 21px;
    cursor: pointer;
    margin: 0 10px
}

.controls button:hover {
    color: var(--text)
}

.controls .play-button {
    background: var(--green);
    color: #10150e;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 14px;
    margin: 0 9px
}

.progress-row {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 10px
}

.progress-row input {
    accent-color: var(--green);
    width: 100%;
    height: 3px
}

.player-mode {
    color: var(--muted);
    font-size: 11px;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px
}

.mode-dot {
    width: 7px;
    height: 7px;
    background: var(--green);
    border-radius: 50%
}

.youtube-host {
    position: fixed;
    right: 15px;
    bottom: 96px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none
}

.youtube-host.visible {
    width: min(360px, 42vw);
    height: min(203px, 24vw);
    opacity: 1;
    pointer-events: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden
}

.youtube-host iframe {
    width: 100%;
    height: 100%;
    border: 0
}

@media(max-width:760px) {
    .sidebar {
        width: 64px;
        padding: 18px 10px
    }

    .brand span:last-child,
    .main-nav a:not(.active)::after,
    .main-nav a {
        font-size: 0
    }

    .brand {
        justify-content: center
    }

    .main-nav a {
        padding: 12px 0;
        justify-content: center
    }

    .main-nav a span {
        font-size: 21px
    }

    .sidebar-note {
        display: none
    }

    .content {
        margin-left: 64px;
        width: calc(100% - 64px);
        padding: 0 18px
    }

    .hero {
        padding: 34px 25px;
        min-height: 270px
    }

    .hero-art {
        width: 120px;
        height: 120px;
        font-size: 55px
    }

    .hero-art span:last-child {
        font-size: 28px;
        right: 15px;
        bottom: 13px
    }

    .hero-text {
        font-size: 12px
    }

    .player {
        grid-template-columns: 1fr 1fr;
        padding: 10px 14px;
        gap: 8px
    }

    .player-mode {
        display: none
    }

    .player-center {
        grid-column: 1/-1;
        grid-row: 2
    }

    .now-playing {
        grid-column: 1
    }

    .track-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px
    }

    .section {
        padding-top: 35px
    }

    .hero h1 {
        font-size: 33px
    }

    .youtube-host.visible {
        right: 8px;
        bottom: 102px;
        width: 150px;
        height: 84px
    }
}

:root {
    --bg: #09080f;
    --panel: #13111d;
    --panel-2: #20182b;
    --text: #f7f5fa;
    --muted: #a29aaa;
    --green: #b67cff;
    --line: #30263e
}

.app-shell {
    padding-right: 320px
}

.track-inspector {
    position: fixed;
    right: 22px;
    top: 22px;
    bottom: 108px;
    width: 278px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: auto;
    z-index: 3
}

.inspector-media {
    width: 100%;
    aspect-ratio: 16/10;
    background: #211a2f;
    overflow: hidden
}

.inspector-media iframe,
.inspector-media img {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover
}

.inspector-placeholder {
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--green);
    font-size: 70px;
    background: radial-gradient(circle, #34234c, #16101e)
}

.inspector-placeholder small {
    display: block;
    font-size: 11px;
    color: var(--muted);
    margin-top: -80px
}

.inspector-body {
    padding: 22px
}

.inspector-body h2 {
    font-size: 21px;
    margin: 0 0 6px;
    letter-spacing: -.04em
}

.inspector-artist {
    color: var(--muted);
    font-size: 13px;
    margin: 0
}

.vote-row {
    display: flex;
    gap: 9px;
    margin: 22px 0
}

.vote-button {
    border: 1px solid var(--line);
    background: var(--panel-2);
    color: var(--text);
    border-radius: 8px;
    padding: 8px 13px;
    cursor: pointer;
    font-size: 14px
}

.vote-button:hover {
    border-color: var(--green);
    color: var(--green)
}

.inspector-info {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 14px;
    color: var(--muted);
    font-size: 11px
}

.inspector-info strong {
    color: var(--text);
    font-weight: 500
}

.lyrics {
    border-top: 1px solid var(--line);
    margin-top: 18px;
    padding-top: 16px
}

.lyrics h3 {
    font-size: 13px;
    margin: 0 0 9px
}

.lyrics p {
    color: #c6becd;
    white-space: pre-line;
    line-height: 1.65;
    font-size: 12px;
    margin: 0
}

.hero {
    background: radial-gradient(circle at 75% 45%, #4b3268 0, #2e2140 28%, #181522 61%, #13111d 100%)
}

@media(max-width:1100px) {
    .app-shell {
        padding-right: 0
    }

    .track-inspector {
        position: relative;
        right: auto;
        top: auto;
        bottom: auto;
        width: auto;
        margin: 30px 18px 110px;
        grid-column: 1/-1
    }

    .content {
        margin-left: 235px;
        width: calc(100% - 235px)
    }

    .track-inspector .inspector-media {
        max-height: 280px
    }
}

@media(max-width:760px) {
    .track-inspector {
        margin: 20px 18px 110px
    }

    .content {
        margin-left: 64px;
        width: calc(100% - 64px)
    }

    .app-shell {
        display: block
    }

    .track-inspector {
        display: block
    }

    .inspector-media {
        max-height: 240px
    }
}

.inspector-view {
    display: none
}

.inspector-view.active {
    display: block
}

.queue-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 22px 16px;
    border-bottom: 1px solid var(--line)
}

.queue-header h3 {
    font-size: 16px;
    margin: 0;
    font-weight: 600
}

.queue-back-button {
    background: none;
    border: none;
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center
}

.queue-back-button:hover {
    color: var(--green)
}

.queue-list {
    padding: 0
}

.queue-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background-color .15s ease
}

.queue-item:hover {
    background-color: var(--panel-2)
}

.queue-item.is-current {
    background-color: rgba(182, 124, 255, .15);
    border-left: 3px solid var(--green);
    padding-left: 13px
}

.queue-item-number {
    font-size: 12px;
    color: var(--muted);
    min-width: 20px;
    text-align: right
}

.queue-item-cover {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: var(--panel-2);
    overflow: hidden;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    font-size: 20px;
    color: var(--green)
}

.queue-item-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

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

.queue-item-title {
    font-size: 13px;
    font-weight: 500;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text)
}

.queue-item.is-current .queue-item-title {
    color: var(--green)
}

.queue-item-artist {
    font-size: 11px;
    color: var(--muted);
    margin: 2px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

/* Queue button on player */
.queue-button {
    display: none
}

@media(max-width:1100px) {
    .queue-button {
        display: flex;
        align-items: center;
        gap: 6px;
        background: none;
        border: none;
        color: var(--text);
        cursor: pointer;
        padding: 8px 12px;
        font-size: 14px;
        border-radius: 6px;
        transition: color .15s ease
    }

    .queue-button:hover {
        color: var(--green)
    }
}

/* Track inspector in track mode (default) */
.track-inspector.track-mode .inspector-media {
    aspect-ratio: 16/10 !important
}

.track-inspector.track-mode .inspector-body {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important
}

.track-inspector.track-mode .vote-row,
.track-inspector.track-mode .inspector-info,
.track-inspector.track-mode .lyrics {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important
}

/* Track inspector in queue mode */
.track-inspector.queue-mode .inspector-media {
    max-height: 180px !important
}

.track-inspector.queue-mode .inspector-body {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important
}

.track-inspector.queue-mode .vote-row,
.track-inspector.queue-mode .inspector-info,
.track-inspector.queue-mode .lyrics {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important
}

/* Queue list should be scrollable */
.queue-list {
    max-height: calc(100vh - 300px);
    overflow-y: auto
}

@media(max-width:1100px) {
    .queue-list {
        max-height: calc(100vh - 400px)
    }
}