/* Botón de expandir video */
#btn-video {
    background: var(--color-primary, #03165c);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    display: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    width: fit-content;
    align-self: center;
    font-size: 0.85rem;
}

#btn-image-expand {
    background: var(--color-primary, #03165c);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    display: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    width: fit-content;
    align-self: center;
    font-size: 0.85rem;
}

/* Botón de cerrar / volver a AR */
#close-video {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 6100;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

#close-video:hover,
#close-video:active {
    background: rgba(255, 255, 255, 0.35);
}

/* Barra de controles AR */
#video-controls-bar {
    background: rgba(0, 0, 0, 0.75);
    padding: 12px;
    border-radius: 15px;
    display: none;
    flex-direction: column;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.controls-row {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

#seek-bar {
    flex-grow: 1;
    accent-color: var(--color-primary, #03165c);
    cursor: pointer;
    height: 5px;
}

.ctrl-icon {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    min-width: 40px;
}

/* Capa negra para Video Fullscreen */
#videoUI {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: none;
    z-index: 6000;
    justify-content: center;
    align-items: center;
}

#video-fullscreen-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

#video-fullscreen-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#image-expand-ui {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: none;
    z-index: 6000;
    justify-content: center;
    align-items: center;
}

#close-image-expand {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 6100;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

#close-image-expand:hover,
#close-image-expand:active {
    background: rgba(255, 255, 255, 0.35);
}

#image-expand-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 72px 18px 18px;
}

#image-expand-target {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
