/* AudioCore - Style Player */:root{--bg:#000;--bg-card:#121212;--bg-hover:#181818;--green:#1db954;--text:#fff;--text-gray:#b3b3b3}*{margin:0;padding:0;box-sizing:border-box}body{font-family:Inter,sans-serif;background:var(--bg);color:var(--text);height:100vh;overflow:hidden}.ac-container{display:flex;height:100vh}.sidebar{width:280px;background:var(--bg);padding:24px;display:flex;flex-direction:column;gap:24px;border-right:1px solid #181818}.logo{display:flex;align-items:center;gap:12px;font-size:24px;font-weight:800}.logo svg{color:var(--green)}.nav{display:flex;flex-direction:column;gap:8px}.nav-item{display:flex;align-items:center;gap:16px;padding:12px 16px;color:var(--text-gray);text-decoration:none;border-radius:4px;transition:.2s;font-weight:600;cursor:pointer}.nav-item:hover,.nav-item.active{color:var(--text);background:var(--bg-hover)}.listeners-info{margin-top:auto;padding:16px;background:var(--bg-card);border-radius:8px;display:flex;gap:12px;align-items:center}.live-dot{width:12px;height:12px;background:var(--green);border-radius:50%;animation:pulse 2s infinite;flex-shrink:0}@keyframes pulse{0%,100%{opacity:1}50%{opacity:.5}}.listener-count{font-size:28px;font-weight:800;color:var(--green)}.listener-label{font-size:12px;color:var(--text-gray)}.main-content{flex:1;overflow-y:auto;padding:24px 32px;background:linear-gradient(var(--bg-card) 0,var(--bg) 300px)}.top-bar{display:flex;justify-content:space-between;margin-bottom:32px;align-items:center}.top-bar h2{font-size:32px;font-weight:800}.live-badge{display:flex;align-items:center;gap:8px;padding:8px 16px;background:rgba(239,68,68,.1);border:1px solid #ef4444;border-radius:20px;font-size:12px;font-weight:700;color:#ef4444}.pulse{width:8px;height:8px;background:#ef4444;border-radius:50%;animation:pulse 2s infinite}.player-card{max-width:900px;margin:0 auto 48px}.album-art{width:100%;max-width:500px;aspect-ratio:1;margin:0 auto 32px;border-radius:8px;overflow:hidden;background:var(--bg-hover);box-shadow:0 8px 24px rgba(0,0,0,.5);position:relative}.album-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:var(--text-gray)}#artworkImage{width:100%;height:100%;object-fit:cover;display:none}#artworkImage[src]:not([src=""]){display:block}.track-info{text-align:center;margin-bottom:32px}.track-title{font-size:48px;font-weight:800;margin-bottom:12px;color:var(--text)}.track-artist{font-size:24px;color:var(--text-gray);margin-bottom:8px;font-weight:600}.track-album{font-size:16px;color:var(--text-gray)}.progress-container{display:flex;align-items:center;gap:12px;margin-bottom:24px}.time{font-size:12px;color:var(--text-gray);min-width:40px}.progress-bar{flex:1;height:4px;background:var(--bg-hover);border-radius:2px;cursor:pointer}.progress{height:100%;background:var(--text);border-radius:2px;width:0%;transition:width .1s linear}.controls{display:flex;justify-content:center;margin-bottom:32px}.volume-control{display:flex;align-items:center;gap:12px;min-width:300px}.volume-icon{color:var(--text-gray)}.volume-slider{flex:1;height:4px;-webkit-appearance:none;background:var(--bg-hover);border-radius:2px;outline:0}.volume-slider::-webkit-slider-thumb{-webkit-appearance:none;width:12px;height:12px;background:var(--text);border-radius:50%;cursor:pointer}.volume-slider::-moz-range-thumb{width:12px;height:12px;background:var(--text);border-radius:50%;cursor:pointer;border:none}.volume-value{font-size:12px;color:var(--text-gray);min-width:40px;text-align:right}.recent-section{max-width:900px;margin:0 auto}.recent-section h3{font-size:24px;font-weight:700;margin-bottom:16px}.track-list{display:flex;flex-direction:column;gap:4px}.track-item{display:flex;align-items:center;gap:12px;padding:8px;border-radius:4px;transition:background .2s;cursor:default}.track-item:hover{background:var(--bg-hover)}.track-item:first-child{background:rgba(29,185,84,.1)}.track-item:first-child:hover{background:rgba(29,185,84,.15)}.track-artwork{width:48px;height:48px;border-radius:4px;object-fit:cover;flex-shrink:0;background:var(--bg-hover)}.track-item .info{flex:1;min-width:0}.track-item .title{font-weight:500;font-size:14px;color:var(--text);margin-bottom:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.track-item .artist{font-size:12px;color:var(--text-gray);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.track-item .time{font-size:12px;color:var(--text-gray);min-width:50px;text-align:right}.track-item.empty{justify-content:center;padding:24px;color:var(--text-gray)}@media(max-width:768px){.ac-container{flex-direction:column}.sidebar{width:100%;border-right:none;border-bottom:1px solid #181818}.track-title{font-size:32px}.track-artist{font-size:18px}}



:root {
    --bg: #000;
    --bg-card: #121212;
    --bg-hover: #1a1a1a;
    --green: #1db954;
    --text: #fff;
    --text-gray: #b3b3b3;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    height: 100vh;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

.ac-container {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 280px;
    background: var(--bg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    border-right: 1px solid #282828;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
}

.logo svg {
    color: var(--green);
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    color: var(--text-gray);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 600;
    cursor: pointer;
}

.nav-item:hover {
    color: var(--text);
    background: var(--bg-hover);
}

.nav-item.active {
    color: var(--text);
}

.listeners-info {
    margin-top: auto;
    padding: 16px;
    background: var(--bg-card);
    border-radius: 8px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.live-dot {
    width: 12px;
    height: 12px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.5;
        transform: scale(0.95);
    }
}

.listener-count {
    font-size: 28px;
    font-weight: 800;
    color: var(--green);
    line-height: 1;
}

.listener-label {
    font-size: 11px;
    color: var(--text-gray);
    margin-top: 4px;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 32px 48px;
    background: linear-gradient(to bottom, #1a1a1a 0%, var(--bg) 400px);
}

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

.top-bar h2 {
    font-size: 32px;
    font-weight: 800;
}

.live-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.5);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #ef4444;
}

.pulse {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* ===== PLAYER CARD ===== */
.player-card {
    max-width: 800px;
    margin: 0 auto 64px;
}

.album-art {
    width: 100%;
    max-width: 200px;
    aspect-ratio: 1;
    margin: 0 auto 40px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    position: relative;
}

.album-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    background: var(--bg-card);
}

#artworkImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#artworkImage[src=""],
#artworkImage:not([src]) {
    display: none;
}

.track-info {
    text-align: center;
    margin-bottom: 40px;
}

.track-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text);
    line-height: 1.2;
}

.track-artist {
    font-size: 24px;
    color: var(--text-gray);
    margin-bottom: 8px;
    font-weight: 600;
}

.track-album {
    font-size: 16px;
    color: var(--text-gray);
}

/* ===== PROGRESS BAR ===== */
.progress-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.time {
    font-size: 12px;
    color: var(--text-gray);
    min-width: 40px;
    font-variant-numeric: tabular-nums;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: #4d4d4d;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.progress-bar:hover {
    height: 6px;
}

.progress {
    height: 100%;
    background: var(--text);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
    position: relative;
}

.progress::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--text);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
}

.progress-bar:hover .progress::after {
    opacity: 1;
}

/* ===== CONTROLS ===== */
.controls {
    display: flex;
    justify-content: center;
    margin-bottom: 48px;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
}

.volume-icon {
    color: var(--text-gray);
    flex-shrink: 0;
}

.volume-slider {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: #4d4d4d;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: var(--text);
    border-radius: 50%;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: var(--text);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.volume-value {
    font-size: 12px;
    color: var(--text-gray);
    min-width: 40px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* ===== RECENT PLAYS ===== */
.recent-section {
    max-width: 800px;
    margin: 0 auto;
}

.recent-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.track-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.track-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 8px;
    border-radius: 4px;
    transition: background 0.2s ease;
    cursor: default;
}

.track-item:hover {
    background: var(--bg-hover);
}

.track-item:first-child {
    background: rgba(29, 185, 84, 0.1);
}

.track-item:first-child:hover {
    background: rgba(29, 185, 84, 0.15);
}

.track-artwork {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-card);
}

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

.track-item .title {
    font-weight: 500;
    font-size: 14px;
    color: var(--text);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.track-item .artist {
    font-size: 12px;
    color: var(--text-gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.track-item .time {
    font-size: 11px;
    color: var(--text-gray);
    min-width: 45px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.track-item.empty {
    justify-content: center;
    padding: 20px;
    color: var(--text-gray);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .main-content {
        padding: 24px 32px;
    }
    
    .track-title {
        font-size: 36px;
    }
    
    .track-artist {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .ac-container {
        flex-direction: column;
        height: 100vh;
        overflow-x: hidden;
    }
    
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #282828;
        padding: 12px 16px;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
        height: auto;
    }
    
    .logo {
        font-size: 18px;
        flex: 1;
    }
    
    .logo svg {
        width: 24px;
        height: 24px;
    }
    
    .nav {
        display: none;
    }
    
    .listeners-info {
        margin: 0;
        padding: 6px 10px;
        flex: 0 0 auto;
    }
    
    .listener-count {
        font-size: 16px;
    }
    
    .listener-label {
        font-size: 9px;
    }
    
    .main-content {
        padding: 12px;
        overflow-y: auto;
        overflow-x: hidden;
        flex: 1;
        width: 100%;
    }
    
    .top-bar {
        margin-bottom: 12px;
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .top-bar h2 {
        font-size: 20px;
    }
    
    .live-badge {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .player-card {
        width: 100%;
        max-width: 100%;
        margin-bottom: 24px;
    }
    
    .album-art {
        max-width: 100%;
        margin-bottom: 16px;
    }
    
    .track-info {
        margin-bottom: 20px;
    }
    
    .track-title {
        font-size: 22px;
        margin-bottom: 6px;
    }
    
    .track-artist {
        font-size: 15px;
        margin-bottom: 4px;
    }
    
    .track-album {
        font-size: 13px;
    }
    
    .controls {
        margin-bottom: 24px;
    }
    
    .volume-control {
        min-width: 100%;
        max-width: 100%;
        gap: 10px;
    }
    
    .volume-icon {
        width: 18px;
        height: 18px;
    }
    
    .volume-slider {
        height: 3px;
    }
    
    .volume-slider::-webkit-slider-thumb {
        width: 10px;
        height: 10px;
    }
    
    .volume-slider::-moz-range-thumb {
        width: 10px;
        height: 10px;
    }
    
    .volume-value {
        font-size: 11px;
        min-width: 35px;
    }
    
    /* COMPACT RECENT TRACKS */
    .recent-section {
        width: 100%;
        max-width: 100%;
    }
    
    .recent-section h3 {
        font-size: 16px;
        margin-bottom: 6px;
        font-weight: 700;
    }
    
    .track-list {
        gap: 1px;
    }
    
    .track-item {
        padding: 5px 2px;
        gap: 6px;
    }
    
    .track-artwork {
        width: 28px;
        height: 28px;
        flex-shrink: 0;
    }
    
    .track-item .info {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }
    
    .track-item .title {
        font-size: 11px;
        line-height: 1.2;
        margin-bottom: 1px;
    }
    
    .track-item .artist {
        font-size: 9px;
        line-height: 1.2;
    }
    
    .track-item .time {
        font-size: 9px;
        min-width: 30px;
        flex-shrink: 0;
    }
}

/* ===== SCROLLBAR ===== */
.main-content::-webkit-scrollbar {
    width: 12px;
}

.main-content::-webkit-scrollbar-track {
    background: transparent;
}

.main-content::-webkit-scrollbar-thumb {
    background: #4d4d4d;
    border-radius: 6px;
}

.main-content::-webkit-scrollbar-thumb:hover {
    background: #5d5d5d;
}
