.mc-player {
    position: relative;
    width: 100%;
    max-width: 100%;
    background: #000;
    overflow: hidden;
    font-family: Arial, sans-serif;
    color: #fff;
}

.mc-player__media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

/*
 * Poster.
 */
.mc-player__poster {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    z-index: 1;
}

/*
 * Zone média du Provider.
 */
.mc-player__stage {
    position: absolute;
    inset: 0;

    z-index: 2;
}

/*
 * Média injecté par le Provider.
 */
.mc-player__stage iframe,
.mc-player__stage video {
    display: block;

    width: 100%;
    height: 100%;

    border: 0;
}

/*
 * L'iframe YouTube ne doit pas intercepter
 * les clics destinés à notre interface.
 */
.mc-player__stage iframe {
    pointer-events: none;
}

/*
 * Gros bouton central PLAY.
 *
 * Il doit rester au-dessus du média.
 */
.mc-player__play-large {
    position: absolute;

    top: 50%;
    left: 50%;

    z-index: 10;

    width: 72px;
    height: 72px;

    transform: translate(-50%, -50%);

    border: 0;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.75);
    color: #fff;

    font-size: 28px;

    cursor: pointer;

    pointer-events: auto;
}

/*
 * Contrôles.
 *
 * Ils restent toujours au-dessus
 * du média et du bouton central.
 */
.mc-player__controls {
    position: absolute;

    right: 0;
    bottom: 0;
    left: 0;

    z-index: 20;

    display: flex;
    align-items: center;

    gap: 6px;

    min-height: 48px;
    padding: 8px 12px;

    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9),
        rgba(0, 0, 0, 0)
    );
}

.mc-player__button {
    flex: 0 0 auto;

    width: 36px;
    height: 36px;

    padding: 0;

    border: 0;
    background: transparent;

    color: #fff;

    font-size: 16px;

    cursor: pointer;
}

.mc-player__button:hover,
.mc-player__button:focus-visible {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.mc-player__button-label {
    font-size: 10px;
    vertical-align: middle;
}

.mc-player__timeline {
    flex: 1 1 auto;
    min-width: 60px;
}

.mc-player__progress,
.mc-player__volume-range {
    width: 100%;
    cursor: pointer;
}

.mc-player__time {
    flex: 0 0 auto;

    white-space: nowrap;

    font-size: 12px;
}

.mc-player__volume {
    display: flex;
    align-items: center;

    gap: 4px;
}

.mc-player__volume-range {
    width: 70px;
}

.mc-player__settings {
    position: relative;

    flex: 0 0 auto;
}

.mc-player__settings-menu {
    position: absolute;

    right: 0;
    bottom: calc(100% + 8px);

    z-index: 30;

    min-width: 190px;

    padding: 6px;

    background: rgba(20, 20, 20, 0.98);

    border-radius: 6px;

    box-shadow:
        0 4px 18px rgba(0, 0, 0, 0.4);
}

.mc-player__settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;

    padding: 10px 12px;

    border: 0;
    background: transparent;

    color: #fff;

    text-align: left;

    cursor: pointer;
}

.mc-player__settings-item:hover,
.mc-player__settings-item:focus-visible {
    background: rgba(255, 255, 255, 0.12);
}

/*
 * Contrôles masqués pendant la lecture
 * après une période d'inactivité.
 */
.mc-player--controls-hidden .mc-player__controls {
    opacity: 0;
    pointer-events: none;
}

/*
 * On masque le bouton central pause
 * après une période d'inactivité.
 */
.mc-player--controls-hidden .mc-player__play-large {
    opacity: 0;
    pointer-events: none;
}

.mc-player__play-large {
    position: absolute;

    top: 50%;
    left: 50%;

    z-index: 10;

    width: 72px;
    height: 72px;

    transform: translate(-50%, -50%);

    border: 0;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.75);
    color: #fff;

    font-size: 28px;

    cursor: pointer;

    pointer-events: auto;

    opacity: 1;

    transition: opacity 0.25s ease;
}

/*
 * Transition douce.
 */
.mc-player__controls {
    transition: opacity 0.25s ease;
}

/*
 * Responsive.
 */
@media (max-width: 700px) {

    .mc-player__controls {
        gap: 2px;
        padding: 6px;
    }

    .mc-player__button {
        width: 32px;
        height: 32px;
    }

    .mc-player__time {
        font-size: 11px;
    }

    .mc-player__volume-range {
        display: none;
    }

    .mc-player__button-label {
        display: none;
    }
}