/* ==========================================================================
   Cinema Player — bannière de consentement aux cookies (RGPD)
   Affichée au premier passage d'un visiteur, ré-ouvrable via le bouton
   flottant en bas à gauche ("Gérer les cookies").
   ========================================================================== */

.cinema-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    background: var(--cinema-bg-soft);
    border-top: 1px solid var(--cinema-border);
    color: var(--cinema-text);
    transform: translateY(110%);
    transition: transform 0.35s ease;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.4);
}

.cinema-cookie-banner.is-visible {
    transform: translateY(0);
}

.cinema-cookie-banner-inner {
    width: 1330px;
    max-width: 90%;
    margin: 0 auto;
    padding: 18px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    justify-content: space-between;
}

.cinema-cookie-text {
    flex: 1 1 420px;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--cinema-text-dim);
}

.cinema-cookie-text strong {
    color: var(--cinema-text);
}

.cinema-cookie-text a {
    color: var(--cinema-accent);
    text-decoration: underline;
}

.cinema-cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cinema-cookie-btn {
    border-radius: var(--cinema-radius);
    border: 1px solid var(--cinema-border);
    background: transparent;
    color: var(--cinema-text);
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.cinema-cookie-btn-ghost:hover {
    border-color: var(--cinema-text-dim);
}

.cinema-cookie-btn-accent {
    background: var(--cinema-accent);
    border-color: var(--cinema-accent);
    color: #fff;
}

.cinema-cookie-btn-accent:hover {
    background: var(--cinema-accent-hover);
    border-color: var(--cinema-accent-hover);
}

.cinema-cookie-settings {
    width: 1330px;
    max-width: 90%;
    margin: 0 auto;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    border-top: 1px solid transparent;
}

.cinema-cookie-settings.is-open {
    max-height: 480px;
    border-top-color: var(--cinema-border);
}

.cinema-cookie-settings h3 {
    margin: 18px 0 12px;
    font-size: 16px;
    color: var(--cinema-text);
}

.cinema-cookie-toggle {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--cinema-border);
    cursor: pointer;
}

.cinema-cookie-toggle:last-of-type {
    border-bottom: none;
}

.cinema-cookie-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.cinema-cookie-switch {
    flex-shrink: 0;
    width: 40px;
    height: 22px;
    border-radius: 999px;
    background: var(--cinema-border);
    position: relative;
    transition: background 0.2s ease;
    margin-top: 2px;
}

.cinema-cookie-switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--cinema-text-dim);
    transition: transform 0.2s ease, background 0.2s ease;
}

.cinema-cookie-toggle input:checked + .cinema-cookie-switch {
    background: var(--cinema-accent);
}

.cinema-cookie-toggle input:checked + .cinema-cookie-switch::after {
    transform: translateX(18px);
    background: #fff;
}

.cinema-cookie-toggle input:disabled + .cinema-cookie-switch {
    opacity: 0.5;
    cursor: not-allowed;
}

.cinema-cookie-toggle-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cinema-cookie-toggle-text small {
    color: var(--cinema-text-dim);
    font-size: 12px;
}

.cinema-cookie-settings .cinema-cookie-actions {
    padding: 14px 0 18px;
}

.cinema-cookie-reopen {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 99998;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--cinema-border);
    background: var(--cinema-bg-soft);
    color: var(--cinema-text-dim);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.cinema-cookie-reopen.is-visible {
    display: flex;
}

.cinema-cookie-reopen:hover {
    color: var(--cinema-text);
    border-color: var(--cinema-text-dim);
}

@media (max-width: 700px) {
    .cinema-cookie-banner-inner {
        padding: 16px 0;
    }

    .cinema-cookie-actions {
        width: 100%;
    }

    .cinema-cookie-btn {
        flex: 1 1 auto;
    }
}
