/* ===============================
   KPTV – Film Grain + Vignette (SAFE, CONTAINED)
   Aplicat EXCLUSIV sliderului homepage
   =============================== */

.home .slider .swiper-slide .slide-inner {
    position: relative;
    overflow: hidden;
}

/* — Layer 1: Vignette Cinematic — */
.home .slider .swiper-slide .slide-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;

    background: radial-gradient(
        circle at center,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0) 40%,
        rgba(0,0,0,0.45) 70%,
        rgba(0,0,0,0.85) 100%
    );
}

/* — Layer 2: Film Grain (bg-noise.gif) — */
.home .slider .swiper-slide .slide-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;

    background: url('/wp-content/themes/digiflex/images/bg-noise.gif') repeat;
    opacity: 0.14;
    mix-blend-mode: overlay;
}

/* Video sub efecte */
.home .slider .swiper-slide video,
.home .slider .swiper-slide .kptv-slider-video-wrap {
    position: relative;
    z-index: 1 !important;
}

/* Text peste efecte */
.home .slider .swiper-slide .slide-inner .container,
.home .slider .swiper-slide .slide-inner .content,
.home .slider .swiper-slide .slide-inner .slider-content {
    position: relative;
    z-index: 5 !important;
}

/* ===============================
   FIX: nu mai atinge alte pagini
   =============================== */

.single-tv_show,
.single-tv_show body,
.single-tv_show .site,
.single-tv_show main {
    background: #000 !important;
}

.single-tv_show .post-content,
.single-tv_show .video-wrapper,
.single-tv_show .container,
.single-tv_show .row {
    background: transparent !important;
}

/* ===============================
   KPTV — Install App CTA Banner
   =============================== */

#spu-banner, 
.superpwa-install-banner, 
.spa-install-banner {
    background: #121212 !important;
    border-radius: 14px !important;
    padding: 14px 20px !important;
    border: 1px solid #2c2c2c !important;
    box-shadow: 0 8px 22px rgba(0,0,0,0.55) !important;
    max-width: 94% !important;
    margin: 0 auto !important;

    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;

    animation: kptvSlideUp .35s ease-out;
    backdrop-filter: blur(6px) !important;
}

/* Text Left */
.superpwa-install-banner .superpwa-message,
#spu-banner .message,
.spa-install-banner .message {
    color: #efefef !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    margin-right: 15px !important;
}

/* Install Button */
.superpwa-install-banner .superpwa-install-btn,
#spu-banner .install-btn,
.spa-install-banner .install-btn {
    background: #6C47FF !important;
    color: #fff !important;
    font-size: 15px !important;
    padding: 10px 22px !important;
    border-radius: 12px !important;
    border: none !important;
    font-weight: 600 !important;
    transition: .25s ease-in-out !important;
}

.superpwa-install-banner .superpwa-install-btn:hover,
#spu-banner .install-btn:hover,
.spa-install-banner .install-btn:hover {
    background: #825BFF !important;
    transform: translateY(-2px);
}

/* Close Button */
.superpwa-install-banner .superpwa-install-close,
#spu-banner .superpwa-install-close,
.spa-install-banner .close-btn {
    color: #999 !important;
    font-size: 20px !important;
    margin-left: 12px !important;
    cursor: pointer !important;
    transition: .25s;
}

.superpwa-install-banner .superpwa-install-close:hover,
#spu-banner .superpwa-install-close:hover,
.spa-install-banner .close-btn:hover {
    color: #fff !important;
}

/* Animation */
@keyframes kptvSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Container instalare */
#kptv-install-container {
    text-align: center;
    margin: 60px auto 80px;
}

/* Buton instalare */
#kptv-install-btn {
    display: none;
    background: linear-gradient(135deg, #304FFE, #6074FF);
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    padding: 16px 28px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    box-shadow: 0 10px 28px rgba(48, 79, 254, 0.35);
    transition: all .22s ease-in-out;
}

#kptv-install-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 16px 36px rgba(48, 79, 254, 0.45);
}

#kptv-install-btn:active {
    transform: scale(0.97);
    box-shadow: 0 8px 20px rgba(48, 79, 254, 0.3);
}

#kptv-install-btn:disabled {
    opacity: 0.7;
    cursor: default;
}

/* Mobile */
@media (max-width: 480px) {
    #kptv-install-container {
        padding: 0 20px;
        margin-top: 40px;
    }

    #kptv-install-btn {
        font-size: 18px;
        padding: 15px 26px;
    }
}
/* ===============================
   KPTV — NU afișa Install peste video
   =============================== */

/* Episoade */
.single-episode #spu-banner,
.single-episode .superpwa-install-banner,
.single-episode .spa-install-banner,

/* TV Mode */
body:has([id^="kptv-tv-"]) #spu-banner,
body:has([id^="kptv-tv-"]) .superpwa-install-banner,
body:has([id^="kptv-tv-"]) .spa-install-banner,

/* Landscape / fullscreen */
body:has(#kptv-landscape-wrap) #spu-banner,
body:has(#kptv-landscape-wrap) .superpwa-install-banner {
    display: none !important;
}

/* ===============================
   KOL Intelligence — Article Cards
   =============================== */

/* Coloană de lectură rezonabilă */
.content-section .container .col-lg-8 {
    max-width: 900px;
    margin: 0 auto;
}

/* Card de articol */
.content-section .blog-post {
    margin: 20px 0;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.08);
    transition: transform .25s ease, box-shadow .25s ease;
}

@media (hover:hover) {
    .content-section .blog-post:hover {
        transform: translateY(-2px);
        box-shadow: 0 18px 40px rgba(0,0,0,0.12);
    }
}

/* Layout desktop: imagine + text */
@media (min-width: 992px) {
    .content-section .blog-post {
        display: grid;
        grid-template-columns: minmax(260px, 38%) 1fr;
        align-items: stretch;
    }
}

/* Imagine articol */
.content-section .blog-post .post-image {
    position: relative;
    overflow: hidden;
    background: #000;
}

.content-section .blog-post .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

@media (hover:hover) {
    .content-section .blog-post:hover .post-image img {
        transform: scale(1.04);
    }
}

/* Fallback mobil */
@media (max-width: 991px) {
    .content-section .blog-post .post-image {
        aspect-ratio: 16 / 9;
        max-height: 260px;
    }
}

/* Conținut articol */
.content-section .blog-post .post-content {
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Dată */
.content-section .blog-post .post-date {
    font-size: 12px;
    color: #777;
    margin-bottom: 6px;
}

/* Titlu */
.content-section .blog-post .post-title {
    margin: 4px 0 8px;
    line-height: 1.25;
}

.content-section .blog-post .post-title a {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    text-decoration: none;
}

.content-section .blog-post .post-title a:hover {
    color: #e50914;
}

/* Excerpt */
.content-section .blog-post .post-content p {
    color: #444;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* Autor */
.content-section .blog-post .post-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    font-size: 13px;
    color: #666;
}

.content-section .blog-post .post-author img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

/* Mobile tweaks */
@media (max-width: 575px) {
    .content-section .blog-post {
        border-radius: 12px;
    }

    .content-section .blog-post .post-title a {
        font-size: 20px;
    }

    .content-section .blog-post .post-content {
        padding: 14px 16px;
    }
}
/* ===============================
   KOL Intelligence – Archive spacing fix
   =============================== */

/* DOAR pagina KOL Intelligence */
body.page-id-35632 main {
    padding-top: 40px !important;
}

/* Elimină spațiul inutil de sus al containerului */
body.page-id-35632 .content-section {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Primul card mai aproape de hero */
body.page-id-35632 .kptv-search-item:first-child,
body.page-id-35632 article:first-of-type {
    margin-top: 0 !important;
}
/* ===============================
   KOL Intelligence – Sidebar editorial
   =============================== */

body.page-id-35632 .widget {
    background: #0f0f0f;
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 28px;
    border: 1px solid #1f1f1f;
}

body.page-id-35632 .widget-title {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

body.page-id-35632 .widget input[type="search"] {
    background: #000;
    border: 1px solid #2a2a2a;
    color: #fff;
    border-radius: 10px;
    padding: 12px 14px;
}

body.page-id-35632 .widget ul li {
    border-bottom: 1px solid #1e1e1e;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

body.page-id-35632 .widget ul li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
/* ===============================
   KOL Intelligence – FIX SPACING REAL
   =============================== */

/* Blog archive = KOL Intelligence */
/* ===============================
   KOL Intelligence – FIX SPACING (SAFE)
   =============================== */

/* Nu atingem main sau header */

/* Secțiunea cu articole */
body.blog .content-section {
    margin-top: -160px !important; /* urcă lista sub hero */
    padding-top: 0 !important;
}

/* Primul card */
body.blog .content-section article:first-of-type {
    margin-top: 0 !important;
}

/* Elimină gap-ul introdus de temă */
body.blog .content-section {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Primul card urcă sub hero */
body.blog article:first-of-type,
body.blog .kptv-search-item:first-child {
    margin-top: 0 !important;
}