/* =========================================================================
   LAVACASCADE — css/sections/panel-tour.css
   The panel tour video on /panel (pages/panel.php). The video carries its
   own window frame (dots + address bar), so this only adds the rounded
   edge, the lava glow underneath, and the pause/play button.
   ========================================================================= */

/* =========================================
   FRAME
   ========================================= */
.panel-tour {
    position: relative;
    margin: 0;
    overflow: hidden;
    background: #0B0713;   /* the video's own background, shown while it loads */
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lift), 0 0 80px -30px rgba(199, 71, 12, 0.45);
}

.panel-tour__video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1600 / 1100;   /* no jump while it loads */
}

/* =========================================
   PAUSE / PLAY BUTTON (bottom right)
   ========================================= */
.panel-tour__toggle {
    position: absolute;
    right: var(--space-4);
    bottom: var(--space-4);
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: var(--text);
    background: rgba(11, 7, 19, 0.72);
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(6px);
    opacity: 0.7;
    transition: opacity var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.panel-tour:hover .panel-tour__toggle,
.panel-tour__toggle:focus-visible {
    opacity: 1;
}

.panel-tour__toggle:hover {
    border-color: var(--lava-400);
}

.panel-tour__icon svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* show "pause" while it plays, "play" while it's stopped */
.panel-tour__icon--pause { display: none; }
.panel-tour.is-playing .panel-tour__icon--pause { display: block; }
.panel-tour.is-playing .panel-tour__icon--play { display: none; }

/* =========================================
   SMALL SCREENS
   ========================================= */
@media (max-width: 640px) {
    .panel-tour__toggle {
        right: var(--space-3);
        bottom: var(--space-3);
        width: 40px;
        height: 40px;
    }
}
