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

body {
    background: #1a1a2e;
    color: #e0e0e0;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

#app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: relative;
}

/* YouTube Player */
#player-container {
    flex: 1;
    position: relative;
    background: #0f0f1a;
    min-height: 0;
}

#yt-player {
    width: 100%;
    height: 100%;
    border: none;
}

#no-video {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0f0f1a;
}

.no-video-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.no-video-text {
    font-size: 14px;
    color: #888;
}

/* Track Info Bar */
#track-bar {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background: #16162a;
    gap: 12px;
    min-height: 64px;
}

#track-thumb {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
    background: #2a2a4a;
}

#track-details {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

#track-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#track-author {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#track-meta {
    text-align: right;
    flex-shrink: 0;
}

#track-time {
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    color: #ccc;
}

#queue-info {
    font-size: 11px;
    color: #777;
}

/* Progress Bar */
#progress-container {
    height: 3px;
    background: #2a2a4a;
}

#progress-bar {
    height: 100%;
    background: #ff6b35;
    width: 0%;
    transition: width 1s linear;
}

/* Idle Screen */
#idle-screen {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #1a1a2e;
    z-index: 10;
}

.idle-icon {
    font-size: 64px;
    margin-bottom: 16px;
    animation: pulse 2s ease-in-out infinite;
}

.idle-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.idle-text {
    font-size: 14px;
    color: #888;
}

/* Loading Screen */
#loading-screen {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #1a1a2e;
    z-index: 20;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #2a2a4a;
    border-top: 3px solid #ff6b35;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

.loading-text {
    font-size: 14px;
    color: #999;
}

/* Animations */
@keyframes spin {
    to { transform: rotate(360deg); }
}

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

/* Utility */
.hidden {
    display: none !important;
}
