/* Cookie Consent */
body.modal-open {
    overflow: hidden !important;
    height: 100vh;
}

.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2147483647;
    /* MAX INT - Must block everything including sticky player */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.6s ease;
}

.cookie-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.cookie-modal {
    background: rgba(18, 18, 18, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--space-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-overlay.active .cookie-modal {
    transform: scale(1);
    opacity: 1;
}

/* Shake Animation for Blocked Interaction */
.cookie-modal.shake {
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
    border-color: var(--accent-red);
    box-shadow: 0 0 30px rgba(187, 10, 10, 0.4);
}

@keyframes shake {

    10%,
    90% {
        transform: scale(1) translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: scale(1) translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: scale(1) translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: scale(1) translate3d(4px, 0, 0);
    }
}

/* Error Message Style */
.cookie-error-msg {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-red);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.cookie-modal.shake .cookie-error-msg {
    opacity: 1;
}

.cookie-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.hover-underline {
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.2s;
}

.hover-underline:hover {
    text-decoration-color: currentColor;
}

.cookie-buttons {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    margin-top: var(--space-md);
}

.cookie-buttons .btn {
    min-width: 100px;
}