/* Cookie banner RSC: stile brand, pari evidenza Accetta/Rifiuta (requisito Garante/EDPB). */
.rsc-cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 1.2rem;
    transform: translateX(-50%);
    width: min(680px, calc(100vw - 2rem));
    background: #0a0a0c;
    border: 1px solid #2d2d34;
    color: #ffffff;
    z-index: 99999;
    padding: 1.6rem 1.8rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    display: none;
}

.rsc-cookie-banner.is-open {
    display: block;
    animation: rscCookieUp 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes rscCookieUp {
    from { opacity: 0; transform: translate(-50%, 16px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.rsc-cookie-banner h2 {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 0.7rem;
    color: #ffffff !important;
}

.rsc-cookie-banner p {
    font-size: 0.82rem;
    line-height: 1.55;
    color: #8a8a93;
    margin: 0 0 1.1rem;
}

.rsc-cookie-banner a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.rsc-cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.rsc-cookie-btn {
    flex: 1 1 140px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rsc-cookie-btn:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
}

.rsc-cookie-btn.rsc-primary {
    background: #ffffff;
    color: #0a0a0c;
    border-color: #ffffff;
}

.rsc-cookie-btn.rsc-primary:hover {
    background: #e6e6e8;
}

/* Pannello preferenze */
.rsc-cookie-panel {
    display: none;
    border-top: 1px solid #2d2d34;
    margin-top: 1.2rem;
    padding-top: 1.2rem;
}

.rsc-cookie-panel.is-open {
    display: block;
}

.rsc-cookie-cat {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid #1f1f23;
}

.rsc-cookie-cat:last-of-type {
    border-bottom: 0;
}

.rsc-cookie-cat strong {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.rsc-cookie-cat span {
    font-size: 0.75rem;
    color: #8a8a93;
    line-height: 1.5;
}

.rsc-cookie-cat .rsc-locked {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #8a8a93;
    white-space: nowrap;
    padding-top: 0.2rem;
}

.rsc-switch {
    position: relative;
    width: 42px;
    height: 22px;
    flex: 0 0 42px;
    margin-top: 0.2rem;
}

.rsc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.rsc-switch i {
    position: absolute;
    inset: 0;
    background: #2d2d34;
    border-radius: 22px;
    cursor: pointer;
    transition: background 0.25s ease;
}

.rsc-switch i::before {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    left: 3px;
    top: 3px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.25s ease;
}

.rsc-switch input:checked + i {
    background: #ffffff;
}

.rsc-switch input:checked + i::before {
    background: #0a0a0c;
    transform: translateX(20px);
}

/* Placeholder embed bloccati (Spotify) */
.rsc-embed-blocked {
    border: 1px dashed #2d2d34;
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem 1.5rem;
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.rsc-embed-blocked p {
    color: #8a8a93;
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
    max-width: 380px;
}

.rsc-embed-blocked button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.7rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rsc-embed-blocked button:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
}

@media (max-width: 600px) {
    .rsc-cookie-banner {
        bottom: 0;
        width: 100vw;
        border-left: 0;
        border-right: 0;
        border-bottom: 0;
    }
}
