/* =========================================================================
   Steam Sales Calendar — Frontend
   Modern, themeable, responsive. No external assets.
   ========================================================================= */

:root {
	--sts-font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.sts {
	--sts-radius: 18px;
	--sts-radius-sm: 10px;
	--tc: var(--sts-accent, #66c0f4);
	--card-accent: var(--tc);
	font-family: var(--sts-font);
	line-height: 1.55;
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
	max-width: 1200px;
	margin: 0 auto;
	padding: clamp(14px, 3vw, 34px);
	border-radius: var(--sts-radius);
	color: var(--text, #d8e2ec);
	background:
		radial-gradient(1200px 500px at 100% -10%, color-mix(in srgb, var(--sts-accent, #66c0f4) 22%, transparent), transparent 60%),
		linear-gradient(160deg, var(--bg1, #1b2838), var(--bg2, #12181f));
	border: 1px solid var(--card-border, rgba(255, 255, 255, 0.09));
	box-shadow: 0 30px 80px -40px var(--shadow, rgba(0, 0, 0, 0.6));
}

.sts *,
.sts *::before,
.sts *::after {
	box-sizing: border-box;
}

.sts a {
	color: inherit;
	text-decoration: none;
}

.sts .dashicons {
	vertical-align: middle;
	font-size: 1.05em;
	width: 1.1em;
	height: 1.1em;
}

/* Type accent mapping (used by dots, badges, hero, segments). */
.sts-type-seasonal { --tc: var(--sts-seasonal, #f5a623); }
.sts-type-nextfest { --tc: var(--sts-nextfest, #66c0f4); }
.sts-type-fest     { --tc: var(--sts-fest, #8b8fd6); }
.sts-type-other    { --tc: var(--sts-other, #5c6b7a); }

/* =========================================================================
   THEMES
   ========================================================================= */
.sts-theme-dark {
	--bg1: #1b2838;
	--bg2: #101821;
	--text: #d8e2ec;
	--muted: #8ea0b5;
	--card: rgba(255, 255, 255, 0.045);
	--card-2: rgba(255, 255, 255, 0.07);
	--card-border: rgba(255, 255, 255, 0.1);
	--shadow: rgba(0, 0, 0, 0.55);
	--hero-fg: #ffffff;
}

.sts-theme-light {
	--bg1: #ffffff;
	--bg2: #e9eff5;
	--text: #14202b;
	--muted: #5b6b7a;
	--card: #ffffff;
	--card-2: #f3f7fb;
	--card-border: rgba(18, 40, 64, 0.1);
	--shadow: rgba(30, 55, 85, 0.16);
	--hero-fg: #0e1620;
}

.sts-theme-glass {
	--bg1: #10222b;
	--bg2: #16323d;
	--text: #eaf7f7;
	--muted: #a7c6c8;
	--card: rgba(255, 255, 255, 0.09);
	--card-2: rgba(255, 255, 255, 0.14);
	--card-border: rgba(255, 255, 255, 0.2);
	--shadow: rgba(0, 0, 0, 0.4);
	--hero-fg: #ffffff;
	--glass: 16px;
}

/* Thème « Site (Foxiz) » : tons neutres sombres identiques au site
   (header #191c20, corps #0e0e0e), pour se fondre dans la page. */
.sts-theme-foxiz {
	--bg1: #191c20;
	--bg2: #101216;
	--text: #e8e6e3;
	--muted: #9aa3ab;
	--card: rgba(255, 255, 255, 0.04);
	--card-2: rgba(255, 255, 255, 0.08);
	--card-border: rgba(255, 255, 255, 0.1);
	--shadow: rgba(0, 0, 0, 0.65);
	--hero-fg: #ffffff;
}
/* La police des titres du site (Khand) quand elle est chargée, repli système sinon. */
.sts-theme-foxiz .sts-hero-title,
.sts-theme-foxiz .sts-cal-year-title,
.sts-theme-foxiz .sts-card-title,
.sts-theme-foxiz .sts-single-title,
.sts-theme-foxiz .sts-cd-title {
	font-family: 'Khand', 'Arial Narrow', var(--sts-font);
	letter-spacing: 0.03em;
}

/* =========================================================================
   HERO
   ========================================================================= */
.sts-hero {
	position: relative;
	overflow: hidden;
	display: grid;
	grid-template-columns: 1fr;
	border-radius: var(--sts-radius);
	margin-bottom: clamp(18px, 3vw, 30px);
	color: var(--hero-fg, #fff);
	border: 1px solid rgba(255, 255, 255, 0.14);
	background:
		linear-gradient(120deg, color-mix(in srgb, var(--tc) 32%, transparent), color-mix(in srgb, var(--tc) 5%, transparent) 60%, transparent),
		linear-gradient(160deg, var(--bg1), var(--bg2));
	box-shadow: 0 30px 70px -40px var(--shadow);
}
/* --- Fond animé (affiché uniquement quand aucune image n'est présente) --- */
.sts-hero-bg {
	position: absolute;
	inset: -40%;
	pointer-events: none;
	z-index: 0;
	background:
		radial-gradient(40% 40% at 15% 25%, color-mix(in srgb, var(--tc) 55%, transparent), transparent 60%),
		radial-gradient(40% 40% at 85% 75%, color-mix(in srgb, var(--sts-accent) 40%, transparent), transparent 60%);
	opacity: 0.5;
	animation: stsFloat calc(var(--sts-speed, 0.5) * 14s) ease-in-out infinite alternate;
}
.sts-hero.has-image .sts-hero-bg { display: none; }

/* --- Panneau image (partagé par les deux dispo) --- */
.sts-hero-media { position: relative; z-index: 1; background: var(--card-2); }
.sts-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* --- Panneau textes (toujours lisible, quel que soit le fond) --- */
.sts-hero-inner {
	position: relative;
	z-index: 3;
	padding: clamp(20px, 3.2vw, 34px);
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/* =========================================================================
   HERO — dispo SPLIT : image en grand + panneau texte lisible (recommandé)
   ========================================================================= */
/* Mobile : image en haut, textes en dessous. */
.sts-hero.layout-split .sts-hero-media { min-height: 250px; }

@media (min-width: 780px) {
	/* Desktop : l'image occupe ~60 % de la largeur, les textes ~40 %. */
	.sts-hero.layout-split.has-image {
		grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
		min-height: 380px;
	}
	.sts-hero.layout-split .sts-hero-media { min-height: 0; }
	/* Liseré de profondeur sur le bord droit du panneau image. */
	.sts-hero.layout-split .sts-hero-media::after {
		content: "";
		position: absolute;
		inset: 0;
		background: linear-gradient(90deg, transparent 55%, rgba(0, 0, 0, 0.22));
		pointer-events: none;
	}
}

/* =========================================================================
   HERO — dispo COVER : l'image prend tout le cadre en fond (plein cadre)
   ========================================================================= */
/* Le média est plaqué sur TOUTE la surface du héro : pas de bordure, pas de
   fond visible — l'image EST le fond du cadre, sans zone vide. */
.sts-hero.layout-cover .sts-hero-media {
	position: absolute;
	inset: 0;
	z-index: 1;
	min-height: 0;
}
.sts-hero.layout-cover .sts-hero-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}
/* Même hauteur que la dispo « image en grand » (380 px) : l'image est zoomée
   (object-fit: cover) pour remplir toute la zone héro, sans zone vide. */
.sts-hero.layout-cover.has-image { min-height: 380px; }
/* Voile : sombre à gauche (lisibilité des textes), quasi transparent à droite
   pour laisser l'image respirer et rester très visible. */
.sts-hero.layout-cover::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	background:
		linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.5) 34%, rgba(0, 0, 0, 0.16) 62%, rgba(0, 0, 0, 0.02) 85%),
		linear-gradient(0deg, rgba(0, 0, 0, 0.4), transparent 48%);
}
/* Textes ancrés à gauche, largeur limitée : l'image reste dominante. */
.sts-hero.layout-cover .sts-hero-inner {
	max-width: 640px;
	padding: clamp(26px, 4vw, 52px);
}

.sts-hero-kicker {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--hero-fg) 90%, transparent);
	background: color-mix(in srgb, var(--hero-fg) 12%, transparent);
	border: 1px solid color-mix(in srgb, var(--hero-fg) 24%, transparent);
	padding: 5px 12px;
	border-radius: 999px;
	margin-bottom: 14px;
}

.sts-hero-title {
	margin: 0 0 8px;
	font-size: clamp(1.6rem, 4.4vw, 2.6rem);
	line-height: 1.08;
	font-weight: 800;
	text-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.sts-hero-dates {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 18px;
	font-size: 1.02rem;
	color: color-mix(in srgb, var(--hero-fg) 88%, transparent);
}
.sts-hero-dates .dashicons { color: var(--tc); }
.sts-hero-dur { opacity: 0.8; }

/* Extrait de la description saisie dans l'admin (2 lignes max, repli propre). */
.sts-hero-desc {
	margin: 0 0 16px;
	max-width: 560px;
	font-size: 0.98rem;
	line-height: 1.5;
	color: color-mix(in srgb, var(--hero-fg) 85%, transparent);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	word-break: break-word;
}

.sts-hero-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
	padding: 11px 18px;
	font-weight: 700;
	border-radius: 12px;
	background: color-mix(in srgb, var(--tc) 90%, #fff 6%);
	color: #0b1219;
	border: 1px solid color-mix(in srgb, var(--tc) 60%, #fff 20%);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.sts-hero-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--tc) 70%, transparent); }

.sts-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }
.sts-hero-actions .sts-hero-cta { margin-top: 0; }
/* Bouton « Page dédiée » — dégradé de la COULEUR D'ACCENT (rouge Foxiz), façon Foxiz. */
.sts-detail-btn {
	--det: var(--sts-accent, #ff1f30);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	font-weight: 700;
	font-size: 0.98rem;
	line-height: 1;
	border-radius: 12px;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
	background-image: linear-gradient(
		135deg,
		color-mix(in srgb, var(--det) 72%, #ffffff) 0%,
		var(--det) 46%,
		color-mix(in srgb, var(--det) 68%, #05010a) 100%
	);
	border: 1px solid color-mix(in srgb, var(--det) 55%, transparent);
	box-shadow:
		0 12px 26px -14px color-mix(in srgb, var(--det) 95%, transparent),
		inset 0 1px 0 rgba(255, 255, 255, 0.28);
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.sts-detail-btn:hover {
	transform: translateY(-2px);
	filter: brightness(1.08) saturate(1.05);
	box-shadow:
		0 18px 34px -12px color-mix(in srgb, var(--det) 90%, transparent),
		inset 0 1px 0 rgba(255, 255, 255, 0.32);
}
.sts-detail-btn:active { transform: translateY(0); }
.sts-detail-btn .sts-detail-ico { display: inline-block; width: 1.15em; height: 1.15em; flex: 0 0 auto; color: #fff; }

/* Variante compacte (cartes d'événements). */
.sts-detail-btn--sm {
	padding: 9px 15px;
	font-size: 0.88rem;
	gap: 7px;
	border-radius: 10px;
}

.sts-single-back {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: -4px 0 2px;
	color: var(--muted, #8ea0b5);
	font-size: 0.9rem;
	font-weight: 600;
	transition: color 0.15s ease;
}
.sts-single-back:hover { color: var(--tc); }
.sts-single-back .dashicons { color: var(--tc); }

/* =========================================================================
   MODAL « Page dédiée » (chargé en AJAX — immune au cache de page)
   ========================================================================= */
.sts-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 4vh 16px;
	overflow-y: auto;
	background: rgba(8, 9, 12, 0.74);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	animation: stsModalFade 0.18s ease;
}
@keyframes stsModalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes stsModalPop { from { transform: translateY(14px) scale(0.985); opacity: 0.4; } to { transform: none; opacity: 1; } }
.sts-modal {
	width: 100%;
	max-width: 920px;
	margin: auto 0;
	position: relative;
	background: var(--bg1, #191c20);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 18px;
	box-shadow: 0 44px 110px -34px rgba(0, 0, 0, 0.85);
	animation: stsModalPop 0.22s ease;
}
.sts-modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.sts-modal-title { font-weight: 800; font-size: 1rem; color: #fff; line-height: 1.2; }
.sts-modal-close {
	flex: 0 0 auto;
	background: transparent;
	border: 0;
	cursor: pointer;
	color: #fff;
	font-size: 1.5rem;
	line-height: 1;
	padding: 2px 10px;
	border-radius: 8px;
}
.sts-modal-close:hover { background: rgba(255, 255, 255, 0.14); }
.sts-modal-body { padding: 8px; }
.sts-modal-body > .sts { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; max-width: 100% !important; border-radius: 0 !important; }
.sts-modal-body .sts-single { padding: 6px; }
.sts-modal-loading { padding: 44px 20px; text-align: center; color: #cbd2dc; font-weight: 600; }
body.sts-modal-open { overflow: hidden; }
body.sts-modal-open .sts-modal { max-height: 92vh; display: flex; flex-direction: column; }
body.sts-modal-open .sts-modal-body { overflow-y: auto; }

/* État « verrouillé » : page non encore active (bientôt) ou terminée. */
.sts-locked-dim { opacity: 0.5; filter: saturate(0.7); }
.sts-locked-note {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	margin: 20px 0;
	padding: 18px 20px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.045);
	border: 1px solid rgba(255, 255, 255, 0.09);
}
.sts-locked-note .dashicons { font-size: 1.7rem; color: var(--sts-accent, #ff1f30); }
.sts-locked-note p { margin: 0; font-size: 0.98rem; line-height: 1.55; color: var(--muted, #cbd2dc); }

/* =========================================================================
   COUNTDOWN
   ========================================================================= */
.sts-countdown {
	display: flex;
	align-items: stretch;
	gap: 8px;
	margin: 6px 0 16px;
}
.cd-unit {
	min-width: 62px;
	padding: 10px 10px 8px;
	text-align: center;
	border-radius: 12px;
	background: color-mix(in srgb, var(--hero-fg) 10%, transparent);
	border: 1px solid color-mix(in srgb, var(--hero-fg) 20%, transparent);
	backdrop-filter: blur(6px);
}
.cd-unit b {
	display: block;
	font-size: clamp(1.4rem, 4vw, 2rem);
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	line-height: 1;
}
.cd-unit span {
	font-size: 0.62rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	opacity: 0.75;
}
.cd-sep { align-self: center; font-size: 1.4rem; opacity: 0.5; font-weight: 700; }

/* =========================================================================
   CALENDAR GRID
   ========================================================================= */
.sts-cal-year { margin-bottom: 26px; }
.sts-cal-year-head {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--card-border);
}
.sts-cal-year-title { margin: 0; font-size: 1.5rem; font-weight: 800; }
.sts-cal-year-count { color: var(--muted); font-size: 0.9rem; }

.sts-cal-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 12px;
}

.sts-cal-month {
	position: relative;
	overflow: hidden;
	min-height: 92px;
	padding: 12px;
	border-radius: var(--sts-radius-sm);
	background: var(--card);
	border: 1px solid var(--card-border);
	transition: transform calc(var(--sts-speed, 0.5) * 0.6s) ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.sts-cal-month:hover {
	transform: translateY(-3px);
	border-color: color-mix(in srgb, var(--tc, var(--sts-accent)) 45%, var(--card-border));
	box-shadow: 0 16px 30px -20px var(--shadow);
}
.sts-cal-month.is-now { border-color: var(--sts-accent); box-shadow: inset 0 0 0 1px var(--sts-accent), 0 10px 26px -20px var(--shadow); }
.sts-cal-month.is-empty .sts-cal-none { display: block; }

.sts-cal-month-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sts-cal-month-name { font-weight: 700; font-size: 0.86rem; letter-spacing: 0.02em; }
.sts-now-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sts-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sts-accent) 35%, transparent); }

.sts-cal-events { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.sts-cal-none { display: none; }

.sts-cal-event {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 6px 8px;
	border-radius: 8px;
	background: var(--card-2);
	font-size: 0.82rem;
	transition: background 0.2s ease, transform 0.2s ease;
}
.sts-cal-event:hover { transform: translateX(2px); background: color-mix(in srgb, var(--tc) 16%, var(--card-2)); }
.sts-cal-dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; margin-top: 4px; background: var(--tc); box-shadow: 0 0 8px color-mix(in srgb, var(--tc) 70%, transparent); }
.sts-cal-event-body { display: flex; flex-direction: column; line-height: 1.25; }
.sts-cal-event-name { font-weight: 700; }
a.sts-cal-event-name { color: var(--sts-accent, #ff1f30); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; transition: color 0.15s ease; }
a.sts-cal-event-name:hover { color: color-mix(in srgb, var(--sts-accent, #ff1f30) 55%, #ffffff); }
.sts-cal-go { font-size: 0.92em; width: 0.92em; height: 0.92em; opacity: 0.65; transition: transform 0.15s ease, opacity 0.15s ease; }
a.sts-cal-event-name:hover .sts-cal-go { transform: translateX(2px); opacity: 1; }
.sts-cal-event-dates { color: var(--muted); font-size: 0.76rem; }
.sts-cal-event.is-live .sts-cal-dot { animation: stsPulse 1.8s ease-in-out infinite; }
.sts-cal-event.is-featured { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tc) 40%, transparent); }

/* =========================================================================
   TIMELINE
   ========================================================================= */
.sts-tl-wrap { margin-bottom: 26px; display: flex; flex-direction: column; gap: 18px; }
.sts-tl-year { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; }
.sts-tl-year-head span { font-weight: 800; font-size: 1.15rem; }
.sts-tl-track {
	position: relative;
	height: 54px;
	border-radius: 12px;
	background: var(--card);
	border: 1px solid var(--card-border);
	overflow: hidden;
}
.sts-tl-months {
	position: absolute;
	inset: 0;
	display: grid;
	grid-template-columns: repeat(12, 1fr);
}
.sts-tl-months span {
	border-right: 1px solid color-mix(in srgb, var(--card-border) 60%, transparent);
	font-size: 0.62rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--muted);
	padding: 4px 0 0 5px;
	opacity: 0.7;
}
.sts-tl-months span:last-child { border-right: none; }
.sts-tl-segments { position: absolute; inset: 0; top: 50%; transform: translateY(-50%); }
.sts-seg {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	height: 20px;
	min-width: 8px;
	border-radius: 7px;
	background: var(--tc);
	opacity: 0.92;
	cursor: default;
	overflow: hidden;
	white-space: nowrap;
	transition: height 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}
.sts-seg span, .sts-seg { text-overflow: ellipsis; }
.sts-seg:hover { height: 30px; opacity: 1; filter: brightness(1.12); box-shadow: 0 10px 22px -8px color-mix(in srgb, var(--tc) 80%, transparent); z-index: 3; }
.sts-seg.is-featured { box-shadow: 0 0 0 2px color-mix(in srgb, #fff 50%, transparent) inset; height: 26px; }
.sts-seg.is-live { animation: stsGlow 2s ease-in-out infinite; }

/* =========================================================================
   CARDS
   ========================================================================= */
.sts-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
	gap: 16px;
}

.sts-card-event {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	border-radius: var(--sts-radius);
	background: var(--card);
	border: 1px solid var(--card-border);
	transition: transform calc(var(--sts-speed, 0.5) * 0.6s) cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.3s ease;
	opacity: 0;
	transform: translateY(18px);
}
.sts-card-event.in-view { opacity: 1; transform: translateY(0); }
.sts-card-event:hover {
	transform: translateY(-7px);
	border-color: color-mix(in srgb, var(--card-accent) 55%, var(--card-border));
	box-shadow: 0 26px 50px -26px color-mix(in srgb, var(--card-accent) 55%, var(--shadow));
}
.sts-card-event.is-featured { box-shadow: 0 0 0 1px color-mix(in srgb, var(--card-accent) 65%, transparent), 0 20px 44px -28px var(--shadow); }
.sts-card-event.is-past { opacity: 0.72; }
.sts-card-event.is-past.in-view { opacity: 0.72; }

.sts-media, .sts-banner-media { aspect-ratio: 16 / 9; position: relative; overflow: hidden; background: var(--card-2); }
.sts-media img, .sts-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.sts-media iframe { width: 100%; height: 100%; border: 0; display: block; }

.sts-banner-media {
	display: grid;
	place-items: center;
	background:
		radial-gradient(120% 120% at 20% 0%, color-mix(in srgb, var(--tc) 45%, transparent), transparent 55%),
		linear-gradient(160deg, color-mix(in srgb, var(--tc) 22%, transparent), color-mix(in srgb, var(--tc) 6%, transparent));
}
.sts-banner-glyph {
	font-size: clamp(3rem, 8vw, 4.6rem);
	font-weight: 800;
	color: color-mix(in srgb, var(--tc) 80%, var(--hero-fg, #fff));
	text-shadow: 0 8px 30px color-mix(in srgb, var(--tc) 45%, transparent);
}

.sts-card-body { padding: 15px 16px 17px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.sts-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }

.sts-badge {
	font-size: 0.66rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 4px 9px;
	border-radius: 999px;
	color: color-mix(in srgb, var(--tc) 30%, var(--text));
	background: color-mix(in srgb, var(--tc) 20%, transparent);
	border: 1px solid color-mix(in srgb, var(--tc) 45%, transparent);
}

.sts-flag-featured, .sts-flag-live, .sts-flag-soon {
	font-size: 0.72rem;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.sts-flag-featured { background: color-mix(in srgb, var(--card-accent) 22%, transparent); color: var(--text); }
.sts-flag-live { background: #e15b5b; color: #fff; animation: stsPulse 1.8s ease-in-out infinite; }
.sts-flag-soon { background: var(--card-2); color: var(--muted); }

.sts-card-title { margin: 0; font-size: 1.16rem; font-weight: 800; line-height: 1.15; }
.sts-card-dates { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.9rem; }
.sts-card-dates .dashicons { color: var(--card-accent); }
.sts-card-dur { opacity: 0.7; font-size: 0.82rem; }
.sts-card-desc { margin: 0; color: var(--muted); font-size: 0.9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.sts-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }
.sts-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.85rem;
	font-weight: 700;
	padding: 8px 12px;
	border-radius: 10px;
	border: 1px solid var(--card-border);
	color: var(--text);
	background: var(--card-2);
	transition: transform 0.2s ease, border-color 0.2s ease;
}
.sts-link:hover { transform: translateY(-1px); border-color: var(--card-accent); }
.sts-link-primary { background: var(--card-accent); color: #0b1219; border-color: transparent; }
.sts-link-trailer { background: color-mix(in srgb, var(--card-accent) 22%, transparent); color: var(--text); border-color: color-mix(in srgb, var(--card-accent) 55%, transparent); }

/* =========================================================================
   LEGEND
   ========================================================================= */
.sts-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--card-border); }
.sts-legend-item { display: inline-flex; align-items: center; gap: 7px; font-size: 0.85rem; color: var(--muted); }
.sts-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--tc); box-shadow: 0 0 8px color-mix(in srgb, var(--tc) 60%, transparent); }

/* =========================================================================
   LIST
   ========================================================================= */
.sts-list { padding: 14px; }
.sts-list-ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sts-list-item {
	display: grid;
	grid-template-columns: auto 150px 1fr auto;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 12px;
	background: var(--card);
	border: 1px solid var(--card-border);
	transition: transform 0.2s ease, border-color 0.2s ease;
}
.sts-list-item:hover { transform: translateX(3px); border-color: color-mix(in srgb, var(--tc) 45%, var(--card-border)); }
.sts-list-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--tc); box-shadow: 0 0 8px color-mix(in srgb, var(--tc) 70%, transparent); }
.sts-list-dates { color: var(--muted); font-size: 0.88rem; white-space: nowrap; }
.sts-list-name { font-weight: 700; }
.sts-list-name a { color: var(--text); }
.sts-list-name a:hover { color: var(--card-accent); }
.sts-list-badge {
	font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
	padding: 4px 9px; border-radius: 999px;
	background: color-mix(in srgb, var(--tc) 20%, transparent);
	color: color-mix(in srgb, var(--tc) 30%, var(--text));
	border: 1px solid color-mix(in srgb, var(--tc) 45%, transparent);
}

/* =========================================================================
   SINGLE (page dédiée)
   ========================================================================= */
.sts-single { padding: 12px; }
.sts-single-card {
	overflow: hidden;
	border-radius: var(--sts-radius);
	background: var(--card);
	border: 1px solid var(--card-border);
}
.sts-single-hero-wrap { position: relative; aspect-ratio: 21 / 9; overflow: hidden; background-color: var(--card-2); background-size: cover; background-position: center; background-repeat: no-repeat; }
.sts-single-hero { width: 100% !important; height: 100% !important; object-fit: cover !important; max-height: none !important; display: block; }
.sts-single-body { padding: clamp(18px, 3vw, 30px); display: flex; flex-direction: column; gap: 16px; }
.sts-single-head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.sts-single-title { margin: 0; font-size: clamp(1.5rem, 3.6vw, 2.3rem); font-weight: 800; line-height: 1.1; }
.sts-single-dates { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 1rem; }
.sts-single-dates .dashicons { color: var(--tc); }
.sts-single-dur { opacity: 0.75; font-size: 0.9rem; }
.sts-single-desc { color: var(--text); opacity: 0.94; }
.sts-single-desc p { margin: 0 0 10px; }

/* Bande-annonce (trailer) */
.sts-trailer { display: flex; flex-direction: column; gap: 8px; }
.sts-trailer-title { margin: 0; font-size: 1rem; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.sts-trailer-title .dashicons { color: var(--tc); }
.sts-trailer-frame { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #0b1219; border: 1px solid var(--card-border); }
.sts-trailer-frame iframe, .sts-trailer-frame video { width: 100%; height: 100%; border: 0; display: block; }
.sts-single-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

/* =========================================================================
   COUNTDOWN WIDGET (standalone)
   ========================================================================= */
.sts-countdown-widget {
	max-width: 520px;
	padding: clamp(18px, 4vw, 30px);
	text-align: center;
}
.sts-cd-kicker { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.sts-cd-title { margin: 6px 0 14px; font-size: clamp(1.3rem, 4vw, 1.9rem); font-weight: 800; }
.sts-countdown-widget .sts-countdown { justify-content: center; }

/* =========================================================================
   EMPTY STATE
   ========================================================================= */
.sts-empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.sts-empty-state .dashicons { font-size: 3rem; width: 3rem; height: 3rem; color: var(--card-accent, var(--sts-accent)); opacity: 0.5; }
.sts-muted { color: var(--muted); }

/* =========================================================================
   KEYFRAMES
   ========================================================================= */
@keyframes stsFloat {
	0%   { transform: translate3d(0, 0, 0) scale(1); }
	100% { transform: translate3d(-6%, 4%, 0) scale(1.08); }
}
@keyframes stsPulse {
	0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, #e15b5b 60%, transparent); }
	50%      { box-shadow: 0 0 0 6px color-mix(in srgb, #e15b5b 0%, transparent); }
}
@keyframes stsGlow {
	0%, 100% { filter: brightness(1); }
	50%      { filter: brightness(1.25); }
}

/* =========================================================================
   MODE SOBRE (ANTI-SLOP)
   Option « Design épuré » : retire les lueurs colorées, le fond animé et le
   « glass », adoucit ombres et coins, allège titres et survols.
   Ne modifie ni la marque, ni la palette, ni la mise en page — un simple
   polish. Les couleurs par type (pastilles/badges) sont conservées : elles
   sont sémantiques (catégories), pas décoratives.
   ========================================================================= */
.sts.sts-antislop {
	--sts-radius: 14px;
	--sts-radius-sm: 8px;
	background: var(--bg1, #1b2838);
	border: 1px solid var(--card-border, rgba(255, 255, 255, 0.09));
	box-shadow: none;
}

/* Héro : surface neutre plane (plus de halo coloré), ombre retirée. */
.sts-antislop .sts-hero {
	background: var(--bg2, #101821);
	border: 1px solid var(--card-border, rgba(255, 255, 255, 0.1));
	box-shadow: none;
}
/* Fond animé « qui respire » : retiré en mode sobre. */
.sts-antislop .sts-hero-bg { display: none; }
/* Glass sur les unités du compte à rebours : retiré. */
.sts-antislop .cd-unit { backdrop-filter: none; -webkit-backdrop-filter: none; }
/* Pastilles : pleines, sans lueur colorée. */
.sts-antislop .sts-cal-dot,
.sts-antislop .sts-now-dot,
.sts-antislop .sts-legend-dot,
.sts-antislop .sts-list-dot,
.sts-antislop .sts-dot { box-shadow: none; }
/* Segments de la frise : hover sans lueur. */
.sts-antislop .sts-seg:hover { box-shadow: none; }
/* Glyphes des cartes sans image : sans halo coloré. */
.sts-antislop .sts-banner-glyph { text-shadow: none; }
.sts-antislop .sts-banner-media { background: var(--card-2, #f3f7fb); }

/* Titres : 800 -> 600, hiérarchie par taille + couleur. */
.sts-antislop .sts-hero-title,
.sts-antislop .sts-card-title,
.sts-antislop .sts-cal-year-title,
.sts-antislop .sts-single-title,
.sts-antislop .sts-cd-title,
.sts-antislop .sts-modal-title { font-weight: 600; }

/* Labels : majuscules à tracking large -> case-sentence, tracking normal. */
.sts-antislop .sts-hero-kicker,
.sts-antislop .sts-badge,
.sts-antislop .sts-flag-featured,
.sts-antislop .sts-flag-live,
.sts-antislop .sts-flag-soon,
.sts-antislop .sts-list-badge,
.sts-antislop .cd-unit span { text-transform: none; letter-spacing: 0.01em; }

/* Survol : palier de surface / bordure au lieu d'un « translate ».
   (le micro-scale au press reste, il est discret) */
.sts-antislop .sts-cal-month:hover,
.sts-antislop .sts-list-item:hover,
.sts-antislop .sts-link:hover,
.sts-antislop .sts-hero-cta:hover { transform: none; }
/* Cartes : hover sans translation, ombre neutre et plus petite. */
.sts-antislop .sts-card-event:hover { transform: none; box-shadow: 0 12px 26px -22px var(--shadow, rgba(0, 0, 0, 0.5)); }
/* CTA primaire : hover sans lueur colorée, juste un léger éclaircissement. */
.sts-antislop .sts-hero-cta:hover { box-shadow: none; filter: brightness(1.06); }
/* Bouton « Page Dédiée » (marque Foxiz) : on garde le dégradé, on retire la lueur. */
.sts-antislop .sts-detail-btn,
.sts-antislop .sts-detail-btn:hover { box-shadow: none; }
.sts-antislop .sts-detail-btn:hover { transform: none; filter: brightness(1.06); }

/* =========================================================================
   RESPONSIVE + ACCESSIBILITY
   ========================================================================= */
@media (max-width: 620px) {
	.sts-cal-grid { grid-template-columns: repeat(2, 1fr); }
	.sts-list-item { grid-template-columns: auto 1fr auto; }
	.sts-list-dates { grid-column: 1 / -1; order: 3; }
	.cd-unit { min-width: 52px; }
}

@media (prefers-reduced-motion: reduce) {
	.sts *, .sts-hero-bg { animation: none !important; transition: none !important; }
	.sts-card-event { opacity: 1; transform: none; }
}

.sts:focus-within .sts-link,
.sts a:focus-visible,
.sts .sts-hero-cta:focus-visible {
	outline: 2px solid var(--sts-accent);
	outline-offset: 2px;
}
