/* ================================================
   Ads CSS — Kurdolphin Ad System
   ================================================ */

/* ---------- Banner Ad ---------- */
.ad-slot { width: 100%; }

.ad-banner {
    width: 100%;
    max-width: 728px;
    margin-inline: auto;
    background: rgba(255,255,255,.03);
    border: 1px dashed rgba(255,255,255,.12);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}
.ad-banner::before {
    content: 'Ad';
    position: absolute;
    top: 4px;
    inset-inline-end: 6px;
    font-size: .6rem;
    color: rgba(255,255,255,.3);
    letter-spacing: .05em;
}
.ad-banner-link { display: block; }
.ad-banner img { display: block; width: 100%; height: auto; }

/* home_top slot */
.ad-slot--home_top {
    padding: .5rem 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
/* home_mid / home_bottom / browse_top */
.ad-slot--home_mid,
.ad-slot--home_bottom,
.ad-slot--browse_top {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
}

/* ---------- Sidebar Ad ---------- */
.ad-sidebar-widget {
    background: rgba(255,255,255,.03);
    border: 1px dashed rgba(255,255,255,.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}
.ad-sidebar-widget::before {
    content: 'Ad';
    position: absolute;
    top: 4px;
    inset-inline-end: 6px;
    font-size: .6rem;
    color: rgba(255,255,255,.3);
}
.ad-sidebar-link { display: block; }
.ad-sidebar-link img { display: block; width: 100%; height: auto; }

/* ---------- Card Ad (inside content rows) ---------- */
.ad-card {
    display: block;
    position: relative;
    border: 1px solid rgba(201,168,76,.25);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(201,168,76,.06);
    text-decoration: none;
    transition: border-color .2s, box-shadow .2s;
}
.ad-card:hover {
    border-color: rgba(201,168,76,.5);
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.ad-card img { display: block; width: 100%; height: auto; }
.ad-card-label {
    position: absolute;
    top: .4rem;
    inset-inline-end: .5rem;
    background: rgba(201,168,76,.8);
    color: #1a1a00;
    font-size: .62rem;
    font-weight: 800;
    border-radius: 4px;
    padding: .1em .45em;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* ---------- Pre-roll Ad ---------- */
.ad-preroll {
    position: relative;
    width: 100%;
    background: #0e0e1a;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}
.ad-preroll-inner { position: relative; }
.ad-preroll img,
.ad-preroll iframe { display: block; width: 100%; border: none; }
.ad-preroll-controls {
    position: absolute;
    bottom: .75rem;
    inset-inline-end: .75rem;
    display: flex;
    gap: .5rem;
    align-items: center;
}
.ad-preroll-visit {
    background: rgba(255,255,255,.15);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    padding: .35em .75em;
    border-radius: 6px;
    text-decoration: none;
    backdrop-filter: blur(4px);
    transition: background .2s;
}
.ad-preroll-visit:hover { background: rgba(255,255,255,.25); }
.ad-preroll-skip {
    background: rgba(0,0,0,.5);
    color: rgba(255,255,255,.7);
    font-size: .78rem;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 6px;
    padding: .3em .65em;
    cursor: not-allowed;
    backdrop-filter: blur(4px);
    transition: all .2s;
}
.ad-preroll-skip.is-ready {
    cursor: pointer;
    color: #fff;
    border-color: rgba(255,255,255,.5);
    background: rgba(0,0,0,.7);
}
.ad-preroll-skip.is-ready:hover { background: rgba(29,185,84,.3); border-color: var(--color-green-bright); }

/* ---------- Interstitial Ad ---------- */
.ad-interstitial {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.82);
    z-index: 9500;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    animation: fadeIn .3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.ad-interstitial-card {
    position: relative;
    background: #0e0e1a;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 18px;
    overflow: hidden;
    max-width: 640px;
    width: 95%;
    box-shadow: 0 32px 80px rgba(0,0,0,.7);
    animation: slideUp .3s ease;
}
@keyframes slideUp { from { transform: translateY(24px); } to { transform: translateY(0); } }

.ad-interstitial-card img { display: block; width: 100%; }
.ad-interstitial-card iframe { display: block; width: 100%; border: none; }

.ad-interstitial-label {
    position: absolute;
    top: .5rem;
    inset-inline-start: .5rem;
    background: rgba(0,0,0,.6);
    color: rgba(255,255,255,.5);
    font-size: .65rem;
    padding: .15em .5em;
    border-radius: 4px;
    letter-spacing: .04em;
}
.ad-interstitial-close {
    position: absolute;
    top: .5rem;
    inset-inline-end: .5rem;
    background: rgba(0,0,0,.6);
    border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.5);
    border-radius: 8px;
    padding: .3em .65em;
    font-size: .8rem;
    cursor: not-allowed;
    backdrop-filter: blur(4px);
    transition: all .2s;
}
.ad-interstitial-close.is-ready {
    cursor: pointer;
    color: #fff;
    border-color: rgba(255,255,255,.4);
}
.ad-interstitial-close.is-ready:hover {
    background: rgba(239,68,68,.4);
    border-color: #f87171;
}
