/**
 * Fichier  : /pages/homepage/section-1/assets/css/player.css
 * Fonction : présentation du player Live
 */


/* ==================================================
   PLAYER
================================================== */

#live .player {
    min-width: 0;
}

#live .player {
    display: flex;
    flex-direction: column;
}


/* ==================================================
   METAS
================================================== */

#live .player > .metas {
    margin: 0;
}

#live .player > .metas {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

#live .player > .metas {
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    background:
        linear-gradient(90deg, rgba(212, 173, 86, .06), transparent 55%),
        rgba(0, 0, 0, .2);
}

#live .player > .metas > div {
    padding: 1.25em 1.5em;
}

#live .player > .metas > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#live .player > .metas > div:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, .1);
}

#live .player > .metas dt {
    font-family: 'content-font';
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, .42);
}

#live .player > .metas dd {
    margin: 0;
}

#live .player > .metas dd {
    overflow: hidden;
}

#live .player > .metas dd {
    font-family: 'bold-font';
    font-size: 12px;
    text-transform: uppercase;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--color-white);
}


/* ==================================================
   HEADER
================================================== */

#live .player > header {
    min-height: 58px;
}

#live .player > header {
    padding: 0 1.5em;
}

#live .player > header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1em;
}

#live .player > header {
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    background: rgba(0, 0, 0, .34);
}

#live .player > header > p {
    font-family: 'bold-font';
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, .72);
}


/* ==================================================
   STATUS
================================================== */

#live .player .status {
    width: fit-content;
}

#live .player .status {
    display: flex;
    align-items: center;
    gap: 8px;
}

#live .player .status {
    font-family: 'bold-font';
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-white);
}

#live .player .status span {
    width: 7px;
    height: 7px;
}

#live .player .status span {
    display: block;
}

#live .player .status span {
    background: var(--color-primary-light);
    border-radius: 50%;
}

#live .player .status.isLive span {
    background: #dc143c;
    box-shadow: 0 0 0 0 rgba(220, 20, 60, .7);
}

#live .player .status.isLive span {
    transform-origin: center;
}

#live .player .status.isLive span {
    animation: fwplLiveSignal 1.4s ease-out infinite;
}

#live .player .brand {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

#live .player .brand img {
    width: auto;
    height: 2em;
}


/* ==================================================
   SCREEN
================================================== */

#live .player .screen {
    position: relative;
}

#live .player .screen {
    aspect-ratio: 16 / 9;
}

#live .player .screen {
    overflow: hidden;
}

#live .player .screen {
    background:
        radial-gradient(circle at center, rgba(212, 173, 86, .11), transparent 36%),
        linear-gradient(145deg, #111, #030303 62%);
}

#live .player .liveVideo {
    position: relative;
    z-index: 2;
}

#live .player .liveVideo {
    width: 100%;
    height: 100%;
}

#live .player .liveVideo {
    display: block;
    object-fit: cover;
}

#live .player .liveVideo {
    background: #000;
}

#live .player .liveVideo[hidden],
#live .player .notice[hidden] {
    display: none;
}

#live .player .lines {
    position: absolute;
    z-index: 1;
    inset: 0;
}

#live .player .lines {
    pointer-events: none;
}

#live .player .lines {
    background: repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, .012) 0,
        rgba(255, 255, 255, .012) 1px,
        transparent 1px,
        transparent 4px
    );
}


/* ==================================================
   NOTICE
================================================== */

#live .player .notice {
    position: absolute;
    z-index: 3;
    inset: 0;
}

#live .player .notice {
    padding: 2em;
}

#live .player .notice {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
}

#live .player .notice {
    text-align: center;
}

#live .player .icon {
    width: 72px;
    height: 72px;
}

#live .player .icon {
    display: grid;
    place-items: center;
}

#live .player .icon {
    border: 1px solid rgba(212, 173, 86, .48);
    border-radius: 50%;
    background: rgba(212, 173, 86, .08);
    color: var(--color-primary-light);
}

#live .player .icon {
    cursor: pointer;
}

#live .player .icon svg {
    width: 26px;
    height: 26px;
}

#live .player .pulse {
    animation: fwplLivePlayerPulse 2.4s ease-in-out infinite;
}

#live .player .notice small {
    margin-top: 8px;
}

#live .player .notice small {
    font-family: 'content-font';
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-primary-light);
}

#live .player .notice strong {
    max-width: 480px;
}

#live .player .notice strong {
    font-family: 'bold-font';
    font-size: 13px;
    line-height: 1.5;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .7);
}


/* ==================================================
   ANIMATIONS
================================================== */

@keyframes fwplLivePlayerPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(212, 173, 86, 0);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 0 14px rgba(212, 173, 86, .05);
        transform: scale(1.04);
    }
}

@keyframes fwplLiveSignal {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(220, 20, 60, .65);
        transform: scale(1);
    }

    50% {
        opacity: .65;
        box-shadow: 0 0 0 7px rgba(220, 20, 60, 0);
        transform: scale(.85);
    }
}


/* ==================================================
   MOBILE
================================================== */

@media (max-width: 600px) {

    #live .player > .metas > div {
        padding: 1em .75em;
    }

    #live .player > .metas > div {
        gap: 4px;
    }

    #live .player > .metas dt {
        font-size: 7px;
        letter-spacing: 1px;
    }

    #live .player > .metas dd {
        font-size: 9px;
    }

    #live .player > header {
        padding: 0 1em;
    }

    #live .player > header {
        grid-template-columns: 1fr auto;
    }

    #live .player > header > p {
        display: none;
    }

    #live .player .icon {
        width: 58px;
        height: 58px;
    }

    #live .player .icon svg {
        width: 22px;
        height: 22px;
    }

    #live .player .notice strong {
        font-size: 10px;
    }

}


/* ==================================================
   REDUCED MOTION
================================================== */

@media (prefers-reduced-motion: reduce) {

    #live .player .pulse,
    #live .player .status.isLive span {
        animation: none;
    }

}
