/* Harmonisation des sorties des plugins RigarduMás avec le thème (couleurs, typographie, rayons).
   Les plugins utilisent la variable --rgd-brand (repli : #E8000D) ; le thème la fixe sur l'or. */

:root {
	--rgd-brand: #ddbd70;
	--rgd-brand-rgb: 221, 189, 112;
	--rgd-brand-ink: #171710;
}

/* Texte foncé sur les fonds or (le blanc sur or n'est pas lisible) */
.rgd-cf-pill.active,
.rgd-go-btn--primary,
.rgd-gp__hero-cta,
.rgd-lc-live-badge,
.rgd-lp-filter.active,
.rgd-prog-cta,
.rgd-prog-pill--time,
.rgd-prog-prime,
.rgd-replay-badge,
.rgd-replay-pill.active,
.rgd-search-overlay-btn,
.rgd-srch-btn,
.rgd-tmdb2-tab.active,
.rgd-tv__panel-btn,
.rgd-tv__panel-cat,
.rgd-tvs-badge-live,
.rgd-tv__day-btn.is-active,
.rgd-tv__panel-close {
	color: var(--rgd-brand-ink) !important;
}
.rgd-lc-live-badge::before,
.rgd-tvs-badge-live::before { background: var(--rgd-brand-ink) !important; }

/* Guide TV : accent du plugin */
.rgd-tv, .rgd-tv * { --rgd-accent: var(--rgd-brand); }
.rgd-tv__day-btn.is-active { border-color: var(--rgd-brand) !important; }
.rgd-tv__slot-btn.is-active { border-color: var(--rgd-brand) !important; color: #fff !important; }

/* Typographie commune */
[class^="rgd-"], [class*=" rgd-"], .rk-channel-wrapper { font-family: inherit; }

/* Page /live/ : étiquette technique masquée, filtres sur une ligne défilable sur mobile */
.rgd-lp-epg-source { display: none !important; }
@media (max-width: 650px) {
	.rgd-lp-filters { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 0 16px 4px; }
	.rgd-lp-filters::-webkit-scrollbar { display: none; }
	.rgd-lp-filter { flex: none; white-space: nowrap; }
	.rgd-lp-tab { white-space: nowrap; }
}

/* Doublon : le thème a sa propre recherche dans l'en-tête */
@media (min-width: 861px) {
	.rgd-search-trigger, .rgd-search-fab, .rgd-srch-fab, .rgd-search-toggle { display: none !important; }
}

/* ── 15/11/2026 : revue UX mobile (lot 1 à 6) ─────────────────────────── */

/* 1. Accueil : pas de double marge sous les carrousels (la rubrique .section a déjà son espacement) */
.section > .rgd-lc-wrap,
.section > .rgd-tc-wrap { margin-bottom: 0 !important; }

/* 2. Guide TV : jours et tranches horaires sur une seule ligne défilable sur mobile */
@media (max-width: 650px) {
	.rgd-tv__days,
	.rgd-tv__slots { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.rgd-tv__days::-webkit-scrollbar,
	.rgd-tv__slots::-webkit-scrollbar { display: none; }
	.rgd-tv__day-btn,
	.rgd-tv__slot-btn { flex: none; white-space: nowrap; }
}

/* 3. Emplacement d'affiliation (Ads Loader) resté vide : masqué au lieu d'un cadre « Sponsorisé » vide */
/*    (le script Kwanko dépose des balises <script> dans le cadre : on attend une vraie annonce — image, iframe, lien) */
.ad-slot:has(.rgd-ad-script-shell):not(:has(.rgd-ad-script-shell :is(iframe, img, ins, a, video))) { display: none; }

/* 4. /live/ : les trois onglets tiennent sur mobile */
@media (max-width: 650px) {
	.rgd-lp-tabs { overflow-x: auto; scrollbar-width: none; }
	.rgd-lp-tabs::-webkit-scrollbar { display: none; }
	.rgd-lp-tab { flex: 1 1 auto; padding: 12px 10px !important; font-size: 13px !important; letter-spacing: .04em !important; text-align: center; }
}

/* 5. /live/ : nom de la chaîne lisible sur l'image */
.rgd-lp-ch-name-badge {
	background: rgba(12, 14, 16, .78);
	color: #f4f3ee !important;
	font-size: 11px !important;
	padding: 2px 6px;
	border-radius: 4px;
	max-width: 110px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
