.modal-24h-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-24h-box {
    position: relative;
    background: #fff;
    border-radius: 8px;
    overflow-y: auto;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-24h-close {
    position: absolute;
    top: 10px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: background 0.2s;
    z-index: 2;
}

.modal-24h-close:hover {
    background: rgba(0, 0, 0, 0.16);
}

.modal-24h-content {
    padding: 20px;
}

.modal-24h-content iframe {
    max-width: 100%;
}

@media (max-width: 768px) {
    .modal-24h-overlay {
        padding: 10px;
    }

    .modal-24h-box {
        max-width: 95%;
        max-height: 80vh;
    }

    .modal-24h-content {
        padding: 16px;
    }
}

@media (prefers-color-scheme: dark) {
    .modal-24h-box {
        background: #1e1e1e;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    }

    .modal-24h-close {
        background: rgba(255, 255, 255, 0.1);
        color: #ccc;
    }

    .modal-24h-close:hover {
        background: rgba(255, 255, 255, 0.2);
        color: #fff;
    }

    .modal-24h-content {
        color: #ddd;
    }
}
