/* Universal box-sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(120deg, #1e1e2f, #121218);
    color: #fff;
}

.background-blur {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    filter: blur(10px) brightness(0.4);
    z-index: -1;
}

.parent {
    max-width: 1200px;
    margin: 50px auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0 20px;
}

.child1,
.child2 {
    flex: 1 1 48%;
    background-color: #1f1f2e;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(147, 112, 219, 0.4);
    transition: transform 0.3s ease;
}

.child2 {
    background-color: #2a2a3d;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
    max-height: 80vh;
}

#main-video-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 15px;
    overflow: hidden;
    background-color: #000;
}

.child1 p {
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    color: #fff;
    margin-top: 15px;
    letter-spacing: 0.5px;
}

.videos {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background-color: #33334d;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 0 10px rgba(147, 112, 219, 0.1);
}

.videos:hover {
    background-color: #4b0082;
    transform: translateY(-2px);
}

.videos video,
.videos img,
.vimeo-placeholder {
    width: 70px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
    background-color: #555;
    flex-shrink: 0;
}

.vimeo-placeholder {
    background-image: linear-gradient(135deg, #7b2ff7, #f107a3);
    background-size: cover;
    background-position: center;
}

.videos p {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #f5f5f5;
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8a2be2, #4b0082);
    border-radius: 8px;
}

/* Emergency Button */
.emergency-btn-container {
    margin-top: 20px;
    text-align: center;
    padding: 0 20px;
}

.emergency-btn {
    font-weight: bold;
    font-size: 16px;
    padding: 10px 15px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    animation: flash-colors 1.5s infinite alternate;
    transition: background-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.emergency-btn:hover {
    background-color: #d32f2f;
}

@keyframes flash-colors {
    0% { background-color: #f44336; }
    50% { background-color: #ff9800; }
    100% { background-color: #f44336; }
}

/* ---------- Mobile Responsive ---------- */
@media screen and (max-width: 768px) {
    .parent {
        flex-direction: column;
        margin-top: 30px;
        gap: 20px;
        padding: 0 10px;
    }

    .child1, .child2 {
        width: 100%;
        border-radius: 10px;
        padding: 15px;
    }

    .child1 p {
        font-size: 18px;
        margin-top: 10px;
    }

    .child2 {
        max-height: none;
        overflow-y: visible;
    }

    .videos {
        padding: 8px;
        gap: 12px;
        border-radius: 8px;
    }

    .videos video,
    .videos img,
    .vimeo-placeholder {
        width: 60px;
        height: 40px;
        border-radius: 8px;
    }

    .videos p {
        font-size: 14px;
    }

    .emergency-btn {
        font-size: 14px;
        padding: 10px;
    }

    .emergency-btn-container {
        margin-top: 15px;
        padding: 0 10px;
    }
}
