/* =========================================================
   WITV.EU - STYLES & OPTIMISATIONS MOBILES (v1.5)
   ========================================================= */

.ann-short_item > a {
    display: block;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}

h3 {
    font-size: 16px;
    line-height: 1.4;
}

.ann-hit_price > span {
    color: var(--text2);
    font-size: 14px;
    font-weight: 500;
    text-decoration: line-through;
    margin-left: 10px;
}

.ann-short_price {
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}

/* =========================================================
   CORRECTION LOGOS DES CHAINES (DESKTOP & GENERAL)
   Garantit que le logo reste 100% proportionnel, non rogné
   ========================================================= */
.ann-short_item > img,
.ann-short_item > img.poster,
.ann-short_item > img.xfieldimage {
    position: absolute !important;
    top: 15px !important;
    left: 10px !important;
    width: calc(100% - 20px) !important;
    height: 68px !important;
    max-height: 68px !important;
    object-fit: contain !important;
    object-position: center !important;
    opacity: 0.95 !important;
    transition: transform 0.3s ease !important;
}

.ann-short_item:hover > img,
.ann-short_item:hover > img.poster,
.ann-short_item:hover > img.xfieldimage {
    transform: scale(1.08) !important;
}

/* =========================================================
   CORRECTION FONTAWESOME (Pro Light .fal -> Free Solid)
   ========================================================= */
.fal, .fa-light {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

/* =========================================================
   BOUTONS "TOUS" ET "RETOUR" EN ROUGE & CENTRÉS
   ========================================================= */
.ann-sect_title a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.ann-sect_title i { display: inline-block !important; background: transparent !important; border: none !important; box-shadow: none !important; min-width: 0 !important; height: auto !important; padding: 0 !important; }

.ann-sect_title i:hover { background: transparent !important; border: none !important; box-shadow: none !important; }

.ann-sect_title i::before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-size: 11px !important;
    line-height: 1 !important;
    color: #ffffff !important;
}

/* =========================================================
   BADGE "LIVE" AVEC VOYANT LUMINEUX CLIGNOTANT (PULSE)
   ========================================================= */
.badge-red {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    background: rgba(0, 230, 118, 0.9) !important;
    color: #ffffff !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 2px 8px rgba(0, 230, 118, 0.4) !important;
}

.badge-red::before {
    content: "" !important;
    display: inline-block !important;
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background-color: #ffffff !important;
    animation: livePulse 1.4s infinite ease-in-out !important;
}

@keyframes livePulse {
    0% {
        transform: scale(0.85);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.5;
    }
    100% {
        transform: scale(0.85);
        opacity: 1;
    }
}

/* =========================================================
   BARRE DES LECTEURS ET BOUTONS TACTILES
   ========================================================= */
.player-tabs-container {
    display: flex !important;
    align-items: center !important;
    padding: 12px 16px !important;
    background: rgba(20, 20, 32, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px 10px 0 0 !important;
    gap: 8px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    margin-bottom: 0 !important;
}

.player-tabs-container::-webkit-scrollbar {
    display: none !important;
}

.player-tabs-label {
    color: #9999aa !important;
    font-weight: 600 !important;
    margin-right: 6px !important;
    display: flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    font-size: 13px !important;
}

.player-tab {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 16px !important;
    min-height: 38px !important;
    border-radius: 6px !important;
    background: #252533 !important;
    color: #e0e0ea !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    border: 1px solid #3c3c50 !important;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.player-tab:hover {
    background: #333346 !important;
    color: #ffffff !important;
    border-color: #555570 !important;
}

.player-tab.active {
    background: #059669 !important;
    color: #ffffff !important;
    border-color: #00e676 !important;
    box-shadow: 0 4px 12px rgba(0, 230, 118, 0.45) !important;
}

.player-tab.player-reload-btn {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #b0b0c0 !important;
    margin-left: auto !important;
}

.player-tab.player-reload-btn:hover,
.player-tab.player-reload-btn:active {
    background: rgba(255, 255, 255, 0.14) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.iframe-container {
    border-radius: 0 0 10px 10px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-top: none !important;
    background: #000000 !important;
}

/* =========================================================
   OPTIMISATION SPECIFIQUE MOBILE (ÉCRANS <= 768px)
   ========================================================= */
@media (max-width: 768px) {
    /* 1. Header mobile épuré */
    header .container {
        padding: 0 12px !important;
    }
    .header-logo, .header-logo img {
        width: 95px !important;
    }
    .ann-sect_title h1 {
        font-size: 19px !important;
    }
    
    /* 2. Grille 2 colonnes fluide et symétrique */
    .e-grid-cat {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 10px 5px !important;
        margin-top: 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .holographic-card {
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        border-radius: 12px !important;
        box-sizing: border-box !important;
    }
    .ann-short_item {
        width: 100% !important;
        height: 132px !important;
        padding: 8px !important;
        box-sizing: border-box !important;
    }
    .ann-short_item > img,
    .ann-short_item > img.poster,
    .ann-short_item > img.xfieldimage {
        top: 12px !important;
        left: 8px !important;
        width: calc(100% - 16px) !important;
        height: 58px !important;
        max-height: 58px !important;
    }
    .ann-short_price {
        font-size: 13px !important;
        max-width: 95% !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        margin-bottom: 2px !important;
    }
    .ann-short_item > a {
        font-size: 12px !important;
        margin-bottom: 6px !important;
    }

    /* 3. Lecteur Mobile */
    .player-tabs-label {
        display: none !important;
    }
    .player-tabs-container {
        padding: 10px 8px !important;
        gap: 6px !important;
    }
    .player-tab {
        padding: 7px 12px !important;
        font-size: 12px !important;
        min-height: 36px !important;
        gap: 4px !important;
    }
    .fullheader {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 15px 10px !important;
        gap: 10px !important;
    }
    .titleheader h2 {
        font-size: 18px !important;
        line-height: 1.3 !important;
    }
    .titleheader p {
        font-size: 12px !important;
    }
    .ann-full_poster img {
        max-height: 70px !important;
        width: auto !important;
        object-fit: contain !important;
    }

    /* 4. Carrousels Swipe Mobile */
    .scroll-container {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        padding: 10px 5px !important;
    }
    .scroll-container::-webkit-scrollbar {
        display: none !important;
    }
    .scroll-container .holographic-card {
        scroll-snap-align: start !important;
        flex-shrink: 0 !important;
        width: 170px !important;
    }
}

/* =========================================================
   ÉCRANS TRÈS COMPACTS (<= 380px, ex: iPhone SE, Galaxy A)
   ========================================================= */
@media (max-width: 380px) {
    .e-grid-cat {
        gap: 8px !important;
        padding: 5px 0 !important;
    }
    .ann-short_item {
        height: 124px !important;
    }
    .ann-short_item > img,
    .ann-short_item > img.poster,
    .ann-short_item > img.xfieldimage {
        height: 50px !important;
        max-height: 50px !important;
    }
    .ann-short_price {
        font-size: 12px !important;
    }
}


/* =========================================================
   BOUTONS & BANDEAU MATCHS DU JOUR SUR LA HOME
   ========================================================= */
.hero-matches-cta {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 22px !important;
    background: #059669 !important;
    color: #ffffff !important;
    border: 1px solid #00e676 !important;
    border-radius: var(--radius) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    margin-top: 15px !important;
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.5) !important;
    transition: all 0.25s ease !important;
    width: auto !important;
}

.hero-matches-cta:hover {
    background: #ff1a1a !important;
    border-color: #ff4d4d !important;
    box-shadow: 0 6px 22px rgba(0, 230, 118, 0.7) !important;
    transform: translateY(-2px) !important;
}

.home-matches-container {
    margin-top: 25px !important;
    margin-bottom: 20px !important;
}

.home-matches-banner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.2) 0%, rgba(22, 22, 36, 0.95) 100%) !important;
    border: 1px solid rgba(0, 230, 118, 0.4) !important;
    border-radius: var(--radius) !important;
    padding: 14px 22px !important;
    text-decoration: none !important;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.45) !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(15px) !important;
}

.home-matches-banner:hover {
    border-color: #ff3333 !important;
    box-shadow: 0 8px 30px rgba(0, 230, 118, 0.35) !important;
    transform: translateY(-2px) !important;
}

.home-matches-banner-left {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.home-matches-banner-text {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    letter-spacing: 0.2px !important;
}

.home-matches-banner-action {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #059669 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 10px rgba(0, 230, 118, 0.4) !important;
    white-space: nowrap !important;
    transition: background 0.2s ease !important;
}

.home-matches-banner:hover .home-matches-banner-action {
    background: #ff1a1a !important;
}

@media (max-width: 768px) {
    .home-matches-container {
        margin-top: 15px !important;
        margin-bottom: 15px !important;
        padding: 0 10px !important;
    }
    .home-matches-banner {
        padding: 12px 14px !important;
        gap: 8px !important;
    }
    .home-matches-banner-text {
        font-size: 12px !important;
        line-height: 1.3 !important;
    }
    .home-matches-banner-action {
        padding: 6px 10px !important;
        font-size: 10px !important;
    }
    .hero-matches-cta {
        padding: 8px 16px !important;
        font-size: 12px !important;
        margin-top: 10px !important;
    }
}

/* --- Widget Hero Calendrier & Matchs du Jour --- */
.ann-big-content.hero-cal-dock {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    padding: 24px 30px !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: flex-end !important;
    box-sizing: border-box !important;
}

.ann-big-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(180deg, rgba(13, 5, 20, 0.15) 0%, rgba(13, 5, 20, 0.88) 100%) !important;
    z-index: -1 !important;
    pointer-events: none !important;
}

.hero-cal-widget {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    background: rgba(18, 20, 32, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 14px !important;
    padding: 14px 22px !important;
    max-width: 640px !important;
    width: 100% !important;
    text-decoration: none !important;
    color: #ffffff !important;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.55), 0 0 1px rgba(255, 255, 255, 0.2) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative !important;
    overflow: hidden !important;
}

.hero-cal-widget::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 60% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent) !important;
    transform: skewX(-20deg) !important;
    transition: 0.75s !important;
    pointer-events: none !important;
}

.hero-cal-widget:hover::before {
    left: 140% !important;
}

.hero-cal-widget:hover {
    transform: translateY(-3px) !important;
    background: rgba(26, 28, 44, 0.95) !important;
    border-color: rgba(229, 9, 20, 0.55) !important;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.7), 0 0 25px rgba(229, 9, 20, 0.25) !important;
}

.hero-cal-left {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
}

.hero-cal-icon-box {
    width: 48px !important;
    height: 48px !important;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.25) 0%, rgba(229, 9, 20, 0.08) 100%) !important;
    border: 1px solid rgba(229, 9, 20, 0.35) !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 22px !important;
    color: #ff3333 !important;
    flex-shrink: 0 !important;
    transition: transform 0.3s ease, background 0.3s ease !important;
}

.hero-cal-widget:hover .hero-cal-icon-box {
    transform: scale(1.08) rotate(-3deg) !important;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.45) 0%, rgba(229, 9, 20, 0.18) 100%) !important;
    color: #ff5555 !important;
}

.hero-cal-details {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.hero-cal-status {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
}

.hero-cal-pulse {
    width: 8px !important;
    height: 8px !important;
    background: #00e676 !important;
    border-radius: 50% !important;
    box-shadow: 0 0 8px #00e676 !important;
    animation: heroCalPulse 1.8s infinite !important;
    display: inline-block !important;
}

@keyframes heroCalPulse {
    0% { transform: scale(0.85); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.85); opacity: 0.7; }
}

.hero-cal-badge-text {
    color: #ff3b30 !important;
    font-weight: 800 !important;
}

.hero-cal-sep {
    color: rgba(255, 255, 255, 0.3) !important;
    font-size: 10px !important;
}

.hero-cal-subtext {
    color: #a0a5b8 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
}

.hero-cal-main-title {
    font-size: 17px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    letter-spacing: -0.2px !important;
    line-height: 1.2 !important;
}

.hero-cal-button {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #e50914 !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    padding: 10px 18px !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    box-shadow: 0 4px 14px rgba(229, 9, 20, 0.4) !important;
    transition: background 0.2s ease, transform 0.2s ease !important;
}

.hero-cal-button i {
    font-size: 12px !important;
    transition: transform 0.2s ease !important;
}

.hero-cal-widget:hover .hero-cal-button {
    background: #ff1a1a !important;
}

.hero-cal-widget:hover .hero-cal-button i {
    transform: translateX(4px) !important;
}

@media (max-width: 768px) {
    .ann-big-content.hero-cal-dock {
        padding: 12px 12px !important;
    }
    .hero-cal-widget {
        max-width: 100% !important;
        padding: 10px 12px !important;
        gap: 10px !important;
        border-radius: 10px !important;
    }
    .hero-cal-icon-box {
        width: 36px !important;
        height: 36px !important;
        font-size: 16px !important;
        border-radius: 8px !important;
    }
    .hero-cal-main-title {
        font-size: 13.5px !important;
        line-height: 1.2 !important;
    }
    .hero-cal-status {
        font-size: 9.5px !important;
        gap: 4px !important;
    }
    .hero-cal-pulse {
        width: 6px !important;
        height: 6px !important;
    }
    .hero-cal-subtext, .hero-cal-sep {
        display: none !important;
    }
    .hero-cal-button {
        padding: 7px 11px !important;
        font-size: 11px !important;
        gap: 5px !important;
    }
}


/* =========================================================================
   OPTION 1 : BOUTON DE SECTION (HEADER)
   ========================================================================= */
.sd-section-btn-wrap {
    display: flex;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 2px;
}

.sd-section-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(229, 9, 20, 0.08);
    border: 1px solid rgba(229, 9, 20, 0.35);
    border-radius: 20px;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.1px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    user-select: none;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.sd-section-btn .sd-sec-icon {
    font-size: 14px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.sd-section-btn .sd-sec-label {
    color: #f0f0f5;
    transition: color 0.2s ease;
}

.sd-section-btn .sd-sec-arrow {
    color: #e50914;
    font-weight: 800;
    font-size: 13px;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
    display: inline-block;
}

/* Hover Effect */
.sd-section-btn:hover {
    background: linear-gradient(135deg, #e50914 0%, #b80610 100%);
    border-color: #e50914;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(229, 9, 20, 0.45);
}

.sd-section-btn:hover .sd-sec-label {
    color: #ffffff;
}

.sd-section-btn:hover .sd-sec-arrow {
    color: #ffffff;
    transform: translateX(3px);
}

.sd-section-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .sd-section-btn-wrap {
        justify-content: center !important;
        margin-top: 8px;
    }
    
    .sd-section-btn {
        padding: 5px 13px;
        font-size: 12px;
        gap: 6px;
    }
    
    .sd-section-btn .sd-sec-icon {
        font-size: 13px;
    }
    
    .sd-section-btn .sd-sec-arrow {
        font-size: 12px;
    }
}
