/* TVCLUB EPG2.2 — Time Anchor, compact protection badges, Android fullscreen. */

/*
 * Le badge reste lisible mais n'entre plus en compétition avec le titre.
 * Les tailles sont absolues : le Hero ne l'agrandit plus avec son gros titre.
 */
.epg-program .epg-protection-badge {
    margin-left: 0.22rem;
    padding: 0.02rem 0.22rem;
    font-size: 0.60rem;
    line-height: 1.15;
    font-weight: 650;
    border-width: 1px;
}

.guide-hero .epg-protection-badge {
    margin-left: 0.42rem;
    padding: 0.08rem 0.34rem;
    font-size: 0.78rem;
    line-height: 1.15;
    vertical-align: 0.16em;
}

@media (max-width: 768px) {
    .epg-program .epg-protection-badge {
        margin-left: 0.14rem;
        padding: 0.01rem 0.16rem;
        font-size: 0.56rem;
    }

    .guide-hero .epg-protection-badge {
        font-size: 0.72rem;
    }
}

/* EPG2.2.1 — Android fullscreen: contrôle TVClub hors ControlBar. */
.video-js.tvclub-android-device .vjs-control-bar .vjs-fullscreen-control.tvclub-native-fullscreen-suppressed {
    display: none !important;
}

.video-js .tvclub-android-fullscreen-overlay {
    position: absolute !important;
    right: 0.62rem !important;
    bottom: 4.18rem !important;
    z-index: 90 !important;
    display: none;
    width: 2.85rem !important;
    height: 2.85rem !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(255, 255, 255, 0.32) !important;
    border-radius: 0.55rem !important;
    background: rgba(12, 11, 17, 0.78) !important;
    color: #fff !important;
    box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.36) !important;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    cursor: pointer !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 160ms ease, background 120ms ease, transform 120ms ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.video-js.tvclub-android-fullscreen-ready .tvclub-android-fullscreen-overlay {
    display: flex !important;
}

.video-js .tvclub-android-fullscreen-overlay:hover,
.video-js .tvclub-android-fullscreen-overlay:focus-visible,
.video-js .tvclub-android-fullscreen-overlay.is-active {
    background: rgba(142, 58, 154, 0.9) !important;
    border-color: rgba(226, 140, 255, 0.9) !important;
}

.video-js .tvclub-android-fullscreen-overlay:active {
    transform: scale(0.94);
}

.video-js .tvclub-android-fullscreen-overlay .tvclub-fullscreen-glyph {
    display: block;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1.65rem;
    line-height: 1;
    font-weight: 500;
}

/* Même comportement que les contrôles Video.js : disparition à l'inactivité. */
.video-js.vjs-user-inactive:not(.vjs-paused) .tvclub-android-fullscreen-overlay:not(:focus-visible) {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.video-js.vjs-user-active .tvclub-android-fullscreen-overlay,
.video-js.vjs-paused .tvclub-android-fullscreen-overlay,
.video-js .tvclub-android-fullscreen-overlay:focus-visible {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

@media (max-width: 760px), (max-height: 620px) {
    .video-js .tvclub-android-fullscreen-overlay {
        right: 0.42rem !important;
        bottom: 3.65rem !important;
        width: 2.6rem !important;
        height: 2.6rem !important;
    }
    .video-js .tvclub-android-fullscreen-overlay .tvclub-fullscreen-glyph {
        font-size: 1.5rem;
    }
}
