/* ==================== TV LAYOUT ==================== */
.tv-layout {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 100%;
    max-width: 1600px;
    padding: 0 20px;
}

/* ==================== QUEUE PANEL ==================== */
.queue-panel {
    width: 320px;
    min-height: 500px;
    max-height: 80vh;
    background: rgba(10, 5, 16, 0.85);
    border: 2px solid rgba(212, 168, 83, 0.3);
    border-radius: 20px;
    padding: 24px;
    backdrop-filter: blur(20px);
    box-shadow:
        0 0 40px rgba(194, 22, 49, 0.1),
        0 0 80px rgba(212, 168, 83, 0.08),
        inset 0 0 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.queue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(212, 168, 83, 0.2);
}

.queue-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #d4a853;
    text-shadow: 0 0 15px rgba(212, 168, 83, 0.4);
}

.queue-count {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.queue-count span {
    color: #d4a853;
    font-weight: 700;
}

/* Current spinner */
.queue-current {
    background: linear-gradient(135deg, rgba(194, 22, 49, 0.2), rgba(212, 168, 83, 0.1));
    border: 1px solid rgba(194, 22, 49, 0.4);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
    animation: currentPulse 2s ease-in-out infinite;
}

@keyframes currentPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(194, 22, 49, 0.2); }
    50% { box-shadow: 0 0 40px rgba(194, 22, 49, 0.4); }
}

.current-label {
    font-size: 11px;
    color: rgba(212, 168, 83, 0.8);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.current-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Waiting label */
.waiting-label {
    font-size: 11px;
    color: rgba(212, 168, 83, 0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

/* Queue list */
.queue-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
}

.queue-list::-webkit-scrollbar {
    width: 4px;
}

.queue-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 2px;
}

.queue-list::-webkit-scrollbar-thumb {
    background: rgba(212, 168, 83, 0.3);
    border-radius: 2px;
}

.queue-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin-bottom: 6px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    animation: queueItemIn 0.4s ease-out;
}

@keyframes queueItemIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.queue-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.queue-item-pos {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: rgba(212, 168, 83, 0.6);
    min-width: 28px;
    text-align: center;
}

.queue-item-name {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    flex: 1;
}

.queue-item-status {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
}

.queue-item-status.waiting {
    background: rgba(212, 168, 83, 0.15);
    color: rgba(212, 168, 83, 0.8);
}

.queue-item-status.spinning {
    background: rgba(194, 22, 49, 0.2);
    color: #ff4757;
    animation: statusBlink 1s ease-in-out infinite;
}

@keyframes statusBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Empty state */
.queue-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    animation: emojiFloat 2s ease-in-out infinite;
}

@keyframes emojiFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.05); }
}

.empty-text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.6;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1100px) {
    .tv-layout {
        flex-direction: column;
        gap: 20px;
    }

    .queue-panel {
        width: 100%;
        max-width: 600px;
        min-height: auto;
        max-height: 300px;
    }

    .queue-list {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .queue-item {
        flex: 0 0 auto;
        margin-bottom: 0;
    }
}
