/* ================================================================
   DVDCover Cookie Consent Banner + Preferences Modal
   ================================================================ */

/* ── Banner ──────────────────────────────────────────────────── */
#dvdc-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99998;
    background: #0f0f0f;
    border-top: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 -4px 32px rgba(0,0,0,.6);
    transform: translateY(110%);
    transition: transform .35s cubic-bezier(.25,.8,.25,1);
    font-family: 'Outfit', system-ui, sans-serif;
    will-change: transform;
}
#dvdc-cookie-banner.dvdc-cb-visible {
    transform: translateY(0) !important;
}
body.light-mode #dvdc-cookie-banner {
    background: #fff;
    border-top-color: rgba(0,0,0,.1);
    box-shadow: 0 -4px 24px rgba(0,0,0,.12);
}

.dvdc-cb-inner {
    max-width: 1260px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.dvdc-cb-text {
    flex: 1 1 400px;
    min-width: 0;
}
.dvdc-cb-text strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}
body.light-mode .dvdc-cb-text strong { color: #111; }
.dvdc-cb-text p {
    font-size: 12px;
    color: rgba(255,255,255,.6);
    margin: 0;
    line-height: 1.55;
}
body.light-mode .dvdc-cb-text p { color: rgba(0,0,0,.6); }
.dvdc-cb-text em { font-style: normal; font-weight: 600; color: rgba(255,255,255,.85); }
body.light-mode .dvdc-cb-text em { color: rgba(0,0,0,.8); }

.dvdc-cb-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    flex-shrink: 0;
}

/* ── Shared button base ──────────────────────────────────────── */
.dvdc-cb-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Outfit', system-ui, sans-serif;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background .18s, color .18s, border-color .18s, transform .12s, box-shadow .18s;
    white-space: nowrap;
    text-decoration: none;
}
.dvdc-cb-btn:active { transform: scale(.97); }

/* Accept — red accent */
.dvdc-cb-accept {
    background: #e63946;
    color: #fff;
    border-color: #c8303c;
}
.dvdc-cb-accept:hover {
    background: #c8303c;
    box-shadow: 0 2px 12px rgba(230,57,70,.4);
}

/* Reject — subtle */
.dvdc-cb-reject {
    background: rgba(255,255,255,.07);
    color: rgba(255,255,255,.75);
    border-color: rgba(255,255,255,.12);
}
body.light-mode .dvdc-cb-reject {
    background: rgba(0,0,0,.05);
    color: rgba(0,0,0,.6);
    border-color: rgba(0,0,0,.12);
}
.dvdc-cb-reject:hover {
    background: rgba(255,255,255,.13);
    color: #fff;
}
body.light-mode .dvdc-cb-reject:hover { background: rgba(0,0,0,.1); color: #111; }

/* Preferences — outlined */
.dvdc-cb-prefs {
    background: transparent;
    color: rgba(255,255,255,.55);
    border-color: rgba(255,255,255,.18);
}
body.light-mode .dvdc-cb-prefs { color: rgba(0,0,0,.5); border-color: rgba(0,0,0,.18); }
.dvdc-cb-prefs:hover {
    color: rgba(255,255,255,.9);
    border-color: rgba(255,255,255,.4);
    background: rgba(255,255,255,.05);
}
body.light-mode .dvdc-cb-prefs:hover { color: #111; border-color: rgba(0,0,0,.3); background: rgba(0,0,0,.04); }

/* ── Preferences Modal ───────────────────────────────────────── */
#dvdc-cookie-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}
#dvdc-cookie-modal.dvdc-cm-visible { display: flex; }

.dvdc-cm-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1;
}

.dvdc-cm-box {
    position: relative;
    z-index: 2;
    background: #161616;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,.8);
    font-family: 'Outfit', system-ui, sans-serif;
    animation: dvdc-cm-in .3s ease;
}
body.light-mode .dvdc-cm-box {
    background: #fff;
    border-color: rgba(0,0,0,.1);
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
@keyframes dvdc-cm-in {
    from { opacity: 0; transform: translateY(16px) scale(.97); }
    to   { opacity: 1; transform: none; }
}

.dvdc-cm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    flex-shrink: 0;
}
body.light-mode .dvdc-cm-header { border-bottom-color: rgba(0,0,0,.08); }
.dvdc-cm-header span {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .2px;
}
body.light-mode .dvdc-cm-header span { color: #111; }

.dvdc-cm-close {
    background: none;
    border: none;
    color: rgba(255,255,255,.5);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    transition: color .15s, background .15s;
}
.dvdc-cm-close:hover { color: #fff; background: rgba(255,255,255,.08); }
body.light-mode .dvdc-cm-close { color: rgba(0,0,0,.45); }
body.light-mode .dvdc-cm-close:hover { color: #111; background: rgba(0,0,0,.06); }

.dvdc-cm-body {
    padding: 18px 20px;
    overflow-y: auto;
    flex: 1;
}
.dvdc-cm-intro {
    font-size: 12px;
    color: rgba(255,255,255,.55);
    line-height: 1.6;
    margin: 0 0 18px 0;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
body.light-mode .dvdc-cm-intro { color: rgba(0,0,0,.55); border-bottom-color: rgba(0,0,0,.07); }

/* Cookie category row */
.dvdc-cm-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
body.light-mode .dvdc-cm-row { border-bottom-color: rgba(0,0,0,.06); }
.dvdc-cm-row:last-child { border-bottom: none; }

.dvdc-cm-row-info {
    flex: 1;
    min-width: 0;
}
.dvdc-cm-row-info strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 3px;
}
body.light-mode .dvdc-cm-row-info strong { color: #111; }
.dvdc-cm-row-info span {
    font-size: 11px;
    color: rgba(255,255,255,.45);
    line-height: 1.55;
}
body.light-mode .dvdc-cm-row-info span { color: rgba(0,0,0,.5); }

/* Toggle switch */
.dvdc-cm-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    cursor: pointer;
}
.dvdc-cm-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.dvdc-cm-slider {
    display: inline-block;
    width: 40px;
    height: 22px;
    background: rgba(255,255,255,.15);
    border-radius: 11px;
    position: relative;
    transition: background .2s;
    flex-shrink: 0;
}
body.light-mode .dvdc-cm-slider { background: rgba(0,0,0,.15); }
.dvdc-cm-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.dvdc-cm-toggle input:checked + .dvdc-cm-slider { background: #e63946; }
.dvdc-cm-toggle input:checked + .dvdc-cm-slider::after { transform: translateX(18px); }
.dvdc-cm-locked { opacity: .6; cursor: default; pointer-events: none; }
.dvdc-cm-always {
    font-size: 10px;
    color: rgba(255,255,255,.4);
    white-space: nowrap;
}
body.light-mode .dvdc-cm-always { color: rgba(0,0,0,.4); }

.dvdc-cm-footer {
    display: flex;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid rgba(255,255,255,.08);
    justify-content: flex-end;
    flex-shrink: 0;
}
body.light-mode .dvdc-cm-footer { border-top-color: rgba(0,0,0,.08); }

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .dvdc-cb-inner { padding: 14px 16px; gap: 12px; }
    .dvdc-cb-actions { width: 100%; }
    .dvdc-cb-btn { flex: 1; justify-content: center; }
    .dvdc-cm-box { border-radius: 8px; }
}



/* ================================================================
   AD BLOCK DETECTOR — Full-page overlay (no close)
   Only shown on single posts to non-VIP users
   ================================================================ */
#dvdc-adblock-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(6, 6, 6, 0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity .4s ease;
}
#dvdc-adblock-overlay.dvdc-abo-visible {
    opacity: 1;
}

.dvdc-abo-box {
    background: #111;
    border: 1px solid rgba(230, 57, 70, .25);
    border-top: 3px solid #e63946;
    border-radius: 12px;
    padding: 40px 36px;
    max-width: 520px;
    width: 100%;
    text-align: center;
    box-shadow: 0 24px 80px rgba(0,0,0,.8);
    font-family: 'Outfit', system-ui, sans-serif;
    animation: dvdc-abo-in .4s ease both;
}
@keyframes dvdc-abo-in {
    from { opacity: 0; transform: translateY(20px) scale(.97); }
    to   { opacity: 1; transform: none; }
}

.dvdc-abo-icon {
    margin-bottom: 20px;
    opacity: .9;
}

.dvdc-abo-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 14px 0;
    letter-spacing: -.2px;
}

.dvdc-abo-text {
    font-size: 14px;
    color: rgba(255,255,255,.6);
    line-height: 1.65;
    margin: 0 0 24px 0;
}

/* Steps */
.dvdc-abo-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
    text-align: left;
}
.dvdc-abo-step {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 13px;
    color: rgba(255,255,255,.75);
    line-height: 1.4;
}
.dvdc-abo-step strong { color: #fff; }
.dvdc-abo-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e63946;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.dvdc-abo-alt {
    font-size: 12px;
    color: rgba(255,255,255,.4);
    margin: 0 0 14px 0;
    text-transform: uppercase;
    letter-spacing: .8px;
}

/* Action buttons */
.dvdc-abo-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.dvdc-abo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Outfit', system-ui, sans-serif;
    text-decoration: none;
    transition: all .2s;
    cursor: pointer;
    border: none;
}

/* VIP gold */
.dvdc-abo-vip {
    background: linear-gradient(135deg, #c9a227 0%, #e8bc2e 50%, #c9a227 100%);
    color: #1a1200;
    box-shadow: 0 3px 16px rgba(201,162,39,.35);
}
.dvdc-abo-vip:hover {
    background: linear-gradient(135deg, #dbb02e 0%, #f5cc3a 50%, #dbb02e 100%);
    color: #1a1200;
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(201,162,39,.5);
}

/* Login button */
.dvdc-abo-login {
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.8);
    border: 1px solid rgba(255,255,255,.18) !important;
}
.dvdc-abo-login:hover {
    background: rgba(255,255,255,.16);
    color: #fff;
    border-color: rgba(255,255,255,.35) !important;
}

/* Contact — outlined */
.dvdc-abo-contact {
    background: transparent;
    color: rgba(255,255,255,.5);
    border: 1px solid rgba(255,255,255,.12) !important;
}
.dvdc-abo-contact:hover {
    background: rgba(255,255,255,.06);
    color: #fff;
    border-color: rgba(255,255,255,.3) !important;
}

/* Bottom note */
.dvdc-abo-note {
    font-size: 12px;
    color: rgba(255,255,255,.3);
    margin: 0;
    line-height: 1.5;
}
.dvdc-abo-note a {
    color: rgba(255,255,255,.55);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.dvdc-abo-note a:hover { color: #fff; }

/* Mobile */
@media (max-width: 480px) {
    .dvdc-abo-box {
        padding: 28px 20px;
        border-radius: 8px;
    }
    .dvdc-abo-title { font-size: 18px; }
}
