/* TV View Styles */
#view-tv {
    background-color: #000;
    color: white;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

.tv-layout {
    display: flex;
    height: 100%;
    width: 100%;
}

.tv-sidebar {
    width: 350px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 2rem;
    z-index: 10;
}

.tv-room-info {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.tv-room-info h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.join-instructions {
    background: rgba(0,0,0,0.3);
    padding: 1rem;
    border-radius: var(--radius-md);
}

.highlight {
    display: block;
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--accent);
    margin: 0.5rem 0;
}

.highlight-code {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: var(--primary);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
}

.current-video-info {
    flex: 1;
}

.current-video-info h3, .up-next-info h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.marquee-container {
    overflow: hidden;
    margin-bottom: 1rem;
}

#tv-current-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.current-score {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 2rem;
    font-weight: 800;
}

.score-value {
    color: var(--warning);
}

.vote-count {
    font-size: 1rem;
    font-weight: normal;
    color: var(--text-secondary);
}

.next-video-card {
    background: rgba(0,0,0,0.4);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.next-video-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.next-video-card p {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#tv-next-added-by {
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding-top: 0;
    padding-bottom: 0.8rem;
}

#tv-next-added-by span {
    color: var(--secondary);
    font-weight: bold;
}

.empty-text {
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    padding: 2rem 0;
}

/* Player area */
.tv-player-container {
    flex: 1;
    position: relative;
    background: #000;
}

#youtube-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.player-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    z-index: 5;
}

.player-placeholder .pulse-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: tv-pulse 2s infinite;
}

.player-placeholder p {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

@keyframes tv-pulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.5; }
}

/* Animations Canvas */
#animations-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 20;
}

/* Floating btn */
.floating-btn {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    z-index: 30;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
}
