/**
 * Dock vidéo persistant — carte flottante au-dessus de
 * la barre radio (~113 px réservés en bas par la barre
 * sur bureau, ~74 px sur mobile). Portée limitée à
 * .rint-vv-dock (aucune règle globale).
 */

.rint-vv-dock {
	position: fixed;
	right: 16px;
	bottom: calc( 124px + env( safe-area-inset-bottom, 0px ) );
	z-index: 9985;
	width: 384px;
	max-width: calc( 100vw - 32px );
	background: #0c0c12;
	color: #fff;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 12px 40px rgba(0,0,0,.55);
	font-family: inherit;
}

.rint-vv-dock[hidden] {
	display: none;
}

.rint-vv-dock .rint-vv-dock-entete {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .5rem;
	padding: .45rem .6rem .45rem .8rem;
	background: #14141d;
}

.rint-vv-dock .rint-vv-dock-titre {
	font-size: .85rem;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Étiquette « Explicite — 18+ » du dock (v1.5.0) :
 * même présentation que le badge du héros et des
 * cartes; visible seulement pendant la lecture d'un
 * contenu marqué mature par l'API. */
.rint-vv-dock .rint-vv-dock-explicite {
	background: #f5c518;
	color: #111;
	font-weight: 800;
	font-size: .72rem;
	padding: .16rem .5rem;
	border-radius: 6px;
	white-space: nowrap;
	flex-shrink: 0;
}

.rint-vv-dock .rint-vv-dock-explicite[hidden] {
	display: none;
}

.rint-vv-dock .rint-vv-dock-boutons {
	display: flex;
	gap: .3rem;
	flex-shrink: 0;
}

.rint-vv-dock .rint-vv-dock-btn {
	background: rgba(255,255,255,.1);
	color: #fff;
	border: 0;
	border-radius: 8px;
	min-width: 34px;
	height: 30px;
	padding: 0 .5rem;
	font: inherit;
	font-size: .85rem;
	cursor: pointer;
}

.rint-vv-dock .rint-vv-dock-btn:hover,
.rint-vv-dock .rint-vv-dock-btn:focus-visible {
	background: rgba(255,255,255,.22);
}

.rint-vv-dock .rint-vv-dock-direct {
	background: #e01e26;
	font-weight: 800;
	letter-spacing: .04em;
}

.rint-vv-dock .rint-vv-dock-direct:hover,
.rint-vv-dock .rint-vv-dock-direct:focus-visible {
	background: #ff2e36;
}

.rint-vv-dock .rint-vv-dock-video {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
}

.rint-vv-dock .rint-vv-dock-controles {
	display: flex;
	align-items: center;
	gap: .6rem;
	padding: .45rem .6rem;
	background: #14141d;
}

.rint-vv-dock .rint-vv-dock-lecture {
	background: #e01e26;
	border-radius: 50%;
	width: 38px;
	height: 38px;
	min-width: 38px;
	font-size: .95rem;
}

.rint-vv-dock .rint-vv-dock-message {
	font-size: .82rem;
	opacity: .85;
}

/* État réduit : mini-carte (le titre et les contrôles
 * restent; la vidéo se replie). */
.rint-vv-dock.est-reduit {
	width: 248px;
}

.rint-vv-dock.est-reduit .rint-vv-dock-video {
	display: none;
}

.rint-vv-dock.est-direct .rint-vv-dock-titre::before {
	content: "● ";
	color: #ff4046;
}

/* Mobile : bande pleine largeur juste au-dessus de la barre. */
@media ( max-width: 720px ) {
	.rint-vv-dock {
		left: 8px;
		right: 8px;
		bottom: calc( 86px + env( safe-area-inset-bottom, 0px ) );
		width: auto;
		max-width: none;
	}

	.rint-vv-dock.est-reduit {
		width: auto;
	}
}
