/* Queue Page Styles */

/* Queue Header (below nav bar) */
.queue-header {
    padding: 16px 20px;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #3d3d3d;
    background: rgba(0,0,0,0.2);
}

/* Queue Stats in Header */
.queue-stats {
    display: flex;
    gap: 20px;
    align-items: center;
}

.queue-length {
    font-family: monospace;
    font-size: 16px;
    color: #00d4ff;
    font-weight: 600;
}

.queue-count {
    color: #888;
    font-size: 14px;
}

/* Now Playing Section */
.now-playing-section {
    margin-bottom: 24px;
}

.now-playing-label {
    font-size: 12px;
    color: #ff4444;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.now-playing-label::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #ff4444;
    border-radius: 50%;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

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

.now-playing-card {
    background: linear-gradient(145deg, #3d3d3d 0%, #2a2a2a 100%);
    border-radius: 12px;
    padding: 20px 24px;
    border: 2px solid #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.now-playing-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.now-playing-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.now-playing-game {
    font-size: 16px;
    color: #00d4ff;
}


/* Queue List */
.queue-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.queue-item {
    display: grid;
    grid-template-columns: 50px 1fr 80px 100px;
    gap: 16px;
    align-items: center;
    padding: 14px 16px;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    border: 1px solid #3d3d3d;
    transition: all 0.2s ease;
}

.queue-item:hover {
    background: rgba(0, 212, 255, 0.05);
    border-color: rgba(0, 212, 255, 0.3);
}

.queue-position {
    font-size: 18px;
    font-weight: 600;
    color: #666;
    text-align: center;
}

.queue-song-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.queue-song-title {
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.queue-song-game {
    font-size: 13px;
    color: #00d4ff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.queue-duration {
    font-family: monospace;
    font-size: 14px;
    color: #888;
    text-align: right;
}

.queue-time-eta {
    font-size: 12px;
    color: #666;
    text-align: right;
}

/* Alternating row backgrounds */
.queue-item:nth-child(odd) {
    background: rgba(255,255,255,0.02);
}

.queue-item:nth-child(even) {
    background: rgba(255,255,255,0.04);
}

/* Empty Queue State */
.queue-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.queue-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.queue-empty-text {
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .queue-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .queue-item {
        grid-template-columns: 40px 1fr;
        gap: 12px;
    }

    .queue-duration,
    .queue-time-eta {
        display: none;
    }

    .now-playing-card {
        padding: 16px;
    }

    .now-playing-title {
        font-size: 18px;
    }
}

/* Auto-refresh indicator */
.refresh-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #666;
    margin-top: 16px;
    justify-content: center;
}

.refresh-indicator.active {
    color: #66bb6a;
}

.refresh-spinner {
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Event Block - Collapsed Spoiler View */
.queue-event-block {
    background: linear-gradient(145deg, rgba(0, 212, 255, 0.12) 0%, rgba(0, 153, 204, 0.06) 100%);
    border: 2px dashed rgba(0, 212, 255, 0.4);
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
    margin: 12px 0;
    transition: all 0.2s ease;
}

.queue-event-block:hover {
    border-color: rgba(0, 212, 255, 0.6);
    background: linear-gradient(145deg, rgba(0, 212, 255, 0.15) 0%, rgba(0, 153, 204, 0.08) 100%);
}

.queue-event-block .event-icon {
    font-size: 42px;
    margin-bottom: 12px;
}

.queue-event-block .event-title {
    font-size: 16px;
    font-weight: 600;
    color: #00d4ff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.queue-event-block .event-count {
    font-size: 15px;
    color: #aaa;
}

.queue-event-block .event-total-duration {
    font-size: 13px;
    color: #666;
    margin-top: 6px;
}

/* Mobile adjustments for event block */
@media (max-width: 768px) {
    .queue-event-block {
        padding: 20px 16px;
    }

    .queue-event-block .event-icon {
        font-size: 36px;
    }

    .queue-event-block .event-title {
        font-size: 14px;
    }
}
