/* ═══════════════════════════════════════════
   BOTONERA — Video Viewer Styles
   Floating YouTube video player + YT pads
   ═══════════════════════════════════════════ */

/* ── Video Viewer (floating) ── */
.video-viewer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 380px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.06);
    z-index: 1000;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-viewer.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.video-viewer.minimized .video-slot {
    height: 0;
    opacity: 0;
}

.video-viewer.minimized {
    width: 260px;
}

/* Header */
.video-viewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    cursor: default;
}

.video-viewer-info {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}

.video-viewer-icon {
    color: #ff0000;
    font-size: 0.9rem;
}

.video-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.video-viewer-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-time {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
}

.video-btn {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.video-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
}

.video-close:hover {
    background: rgba(255, 80, 80, 0.2);
    color: #ff5050;
}

/* Video Slot */
.video-slot {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    transition: all 0.3s ease;
    overflow: hidden;
}

.video-slot iframe {
    display: block;
}

/* ── YouTube Pad Styles ── */
.pad.youtube-pad {
    border: 1px solid rgba(255, 0, 0, 0.2);
}

.pad.youtube-pad::before {
    background: linear-gradient(135deg,
            rgba(255, 0, 0, 0.08) 0%,
            transparent 50%,
            rgba(0, 0, 0, 0.15) 100%);
}

.pad.youtube-pad .pad-yt-icon {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 2px;
    z-index: 1;
}

.pad.youtube-pad.playing {
    border-color: rgba(255, 0, 0, 0.5);
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(255, 0, 0, 0.3);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .video-viewer {
        width: calc(100% - 20px);
        right: 10px;
        bottom: 10px;
    }

    .video-viewer.minimized {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .video-viewer {
        width: 100%;
        right: 0;
        bottom: 0;
        border-radius: var(--radius-md) var(--radius-md) 0 0;
    }
}