/* =========================================================================
   Movie Showtimes — single movie page (single-movies.php)
   Palette follows the site: blue #0088cc / #064d73, red pills, Lato.
   All classes are prefixed "cmu-st-" so nothing else on the site is touched.
   ========================================================================= */

.cmu-st {
	--st-blue: #0088cc;
	--st-blue-dark: #064d73;
	--st-blue-mid: #0b7bb8;
	--st-blue-soft: #e6f3fb;
	--st-blue-line: #cfe5f5;
	--st-red: #c50505;
	--st-red-dark: #711d1d;
	--st-ink: #1a1a1a;
	--st-muted: #5b6770;
	--st-card: #f7f9fb;
	--st-white: #fff;
	--st-radius: 10px;
	font-family: 'Lato', sans-serif;
	color: var(--st-ink);
	-webkit-tap-highlight-color: transparent;
}

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

.cmu-st button {
	font-family: inherit;
	cursor: pointer;
}

.cmu-st button:focus-visible,
.cmu-st a:focus-visible {
	outline: 2px solid var(--st-blue);
	outline-offset: 2px;
}

/* ---- header row ------------------------------------------------------- */

.cmu-st-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 6px 16px;
	margin-bottom: 12px;
}

.cmu-st-head h3 {
	margin: 0 !important;
	flex: 1 1 auto;
}

.cmu-st-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	font-size: 12px;
	color: var(--st-muted);
	padding-bottom: 2px;
}

.cmu-st-legend b {
	display: inline-block;
	min-width: 24px;
	margin-right: 4px;
	padding: 1px 6px;
	border-radius: 4px;
	background: var(--st-blue-soft);
	color: var(--st-blue-dark);
	font-weight: 700;
	text-align: center;
}

.cmu-st-legend .cmu-st-3d {
	background: #111;
	color: #fff;
}

/* ---- day picker -------------------------------------------------------- */

.cmu-st-days {
	position: relative;
	display: flex;
	align-items: stretch;
	gap: 6px;
	margin-bottom: 14px;
}

.cmu-st-days-track {
	position: relative; /* offsetParent for the day buttons (JS centring) */
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	gap: 8px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scroll-behavior: smooth;
	scrollbar-width: none;
	padding: 2px;
}

.cmu-st-days-track::-webkit-scrollbar {
	display: none;
}

.cmu-st-day {
	flex: 0 0 auto;
	min-width: 72px;
	scroll-snap-align: start;
	border: 1px solid var(--st-blue-line);
	border-radius: var(--st-radius);
	background: var(--st-blue-soft);
	color: var(--st-blue-dark);
	padding: 8px 10px 7px;
	text-align: center;
	line-height: 1.15;
	transition: background .18s ease, color .18s ease, transform .12s ease, box-shadow .18s ease;
}

.cmu-st-day:hover {
	background: #d8ebf8;
}

.cmu-st-day:active {
	transform: translateY(1px);
}

.cmu-st-day .dow {
	display: block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .4px;
	opacity: .85;
}

.cmu-st-day .num {
	display: block;
	font-size: 22px;
	font-weight: 800;
	margin: 1px 0;
}

.cmu-st-day .mon {
	display: block;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .4px;
	opacity: .85;
}

.cmu-st-day.is-active {
	background: linear-gradient(180deg, var(--st-blue-mid), var(--st-blue-dark));
	border-color: var(--st-blue-dark);
	color: #fff;
	box-shadow: 0 4px 12px rgba(6, 77, 115, .28);
}

.cmu-st-day.is-today:not(.is-active) {
	border-color: var(--st-blue);
	box-shadow: inset 0 0 0 1px var(--st-blue);
}

/* "All days" card: first in the strip, no date number — two lines centred vertically */
.cmu-st-day.cmu-st-day-all {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 3px;
	min-width: 64px;
	background: #fff;
	border-style: dashed;
}

.cmu-st-day.cmu-st-day-all:hover {
	background: var(--st-blue-soft);
}

.cmu-st-day.cmu-st-day-all .dow {
	font-size: 13px;
	opacity: 1;
}

.cmu-st-day.cmu-st-day-all.is-active {
	border-style: solid;
	background: linear-gradient(180deg, var(--st-blue-mid), var(--st-blue-dark));
}

.cmu-st-days-nav {
	flex: 0 0 30px;
	align-self: center;
	height: 36px;
	border: 1px solid var(--st-blue-line);
	border-radius: 8px;
	background: #fff;
	color: var(--st-blue-dark);
	font-size: 20px;
	line-height: 1;
	padding: 0;
	display: none;
}

.cmu-st-days-nav:hover {
	background: var(--st-blue-soft);
}

.cmu-st-days-nav[disabled] {
	opacity: .35;
	cursor: default;
}

.cmu-st-days.has-overflow .cmu-st-days-nav {
	display: block;
}

@media (max-width: 767px) {
	.cmu-st-days-nav {
		display: none !important;
	}
}

/* ---- cinema filter pills ---------------------------------------------- */

.cmu-st-cinemas {
	margin: 0 0 16px;
}

.cmu-st-cinemas h3 {
	font-size: 15px !important;
	margin: 0 0 8px !important;
	padding-top: 0 !important;
	border-top: 0 !important;
}

.cmu-st-pills {
	position: relative;
	display: flex;
	gap: 8px;
	overflow-x: auto;
	scrollbar-width: none;
	padding: 2px 2px 6px;
	margin: 0;
	list-style: none;
}

.cmu-st-pills::-webkit-scrollbar {
	display: none;
}

@media (min-width: 768px) {
	.cmu-st-pills {
		flex-wrap: wrap;
		overflow: visible;
	}
}

.cmu-st-pill {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 0;
	border-radius: 6px;
	padding: 7px 16px;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
	background: linear-gradient(90deg, #f50826 2%, #711d1d 100%);
	box-shadow: rgba(0, 0, 0, .12) 0 1px 3px, rgba(0, 0, 0, .24) 0 1px 2px;
	opacity: .55;
	transition: opacity .18s ease, transform .12s ease, box-shadow .18s ease;
}

.cmu-st-pill:hover {
	opacity: .85;
}

.cmu-st-pill:active {
	transform: translateY(1px);
}

.cmu-st-pill.is-active {
	opacity: 1;
	box-shadow: 0 4px 12px rgba(197, 5, 5, .3);
}

.cmu-st-pill.is-empty {
	opacity: .3;
	cursor: default;
}

.cmu-st-pill .n {
	display: inline-block;
	min-width: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .25);
	font-size: 11px;
	line-height: 18px;
	text-align: center;
}

.cmu-st-pill-all {
	background: linear-gradient(90deg, #0b7bb8, #064d73);
}

.cmu-st-pill-all.is-active {
	box-shadow: 0 4px 12px rgba(6, 77, 115, .3);
}

/* ---- cinema cards ------------------------------------------------------ */

.cmu-st-cinema {
	margin: 0 0 14px;
	border-radius: var(--st-radius);
	background: var(--st-card);
	border: 1px solid #e3eaf0;
	overflow: hidden;
	scroll-margin-top: 90px;
	animation: cmu-st-in .28s ease both;
}

@keyframes cmu-st-in {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: none; }
}

.cmu-st-cinema-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 11px 16px;
	color: #fff;
	background: linear-gradient(90deg, var(--st-blue), var(--st-blue-dark));
}

.cmu-st-cinema-head h4 {
	margin: 0 !important;
	color: #fff !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	text-transform: uppercase;
	letter-spacing: .3px;
	line-height: 1.2;
}

.cmu-st-cinema-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	white-space: nowrap;
}

.cmu-st-cinema-count {
	padding: 2px 9px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .22);
	font-weight: 700;
}

.cmu-st-cinema-link {
	color: #fff !important;
	font-weight: 700;
	text-decoration: none !important;
	opacity: .9;
	border-bottom: 1px solid rgba(255, 255, 255, .5);
	line-height: 1.3;
}

.cmu-st-cinema-link:hover {
	opacity: 1;
	border-bottom-color: #fff;
}

.cmu-st-cinema-link .short {
	display: none;
}

@media (max-width: 480px) {
	.cmu-st-cinema-link .long {
		display: none;
	}
	.cmu-st-cinema-link .short {
		display: inline;
	}
}

/* days inside a cinema (only labelled in "all days" mode) */

.cmu-st-dayblock {
	padding: 10px 14px 4px;
}

.cmu-st-dayblock + .cmu-st-dayblock {
	border-top: 1px dashed #d9e3ec;
}

.cmu-st-dayblock-label {
	display: none;
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 700;
	color: var(--st-blue-dark);
	text-transform: uppercase;
	letter-spacing: .4px;
}

.cmu-st.is-all-days .cmu-st-dayblock-label {
	display: block;
}

.cmu-st-dayblock-label .cmu-st-badge {
	margin-left: 6px;
	padding: 1px 7px;
	border-radius: 4px;
	background: var(--st-blue);
	color: #fff;
	font-size: 10px;
	letter-spacing: .5px;
	vertical-align: 1px;
}

/* hall rows */

.cmu-st-hall {
	display: grid;
	grid-template-columns: 1fr;
	gap: 6px 14px;
	padding: 4px 0 10px;
}

@media (min-width: 768px) {
	.cmu-st-hall {
		grid-template-columns: 110px 1fr;
		align-items: start;
	}
}

.cmu-st-hall-name {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: var(--st-muted);
	padding-top: 2px;
}

.cmu-st-hall-name::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 2px;
	background: var(--st-blue);
	flex: 0 0 auto;
}

.cmu-st-hall-name.is-premium::before {
	background: linear-gradient(135deg, #f3c04a, #c6891a);
}

.cmu-st-times {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
	gap: 8px;
}

@media (min-width: 768px) {
	.cmu-st-times {
		grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
		max-width: 760px;
	}
}

.cmu-st-time {
	position: relative;
	background: var(--st-white);
	border: 1px solid var(--st-blue-line);
	border-radius: 8px;
	padding: 9px 4px 7px;
	text-align: center;
	line-height: 1.15;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
	transition: transform .12s ease, box-shadow .18s ease, border-color .18s ease;
}

.cmu-st-time:hover {
	border-color: var(--st-blue);
	box-shadow: 0 4px 10px rgba(0, 136, 204, .16);
	transform: translateY(-1px);
}

.cmu-st-time b {
	display: block;
	font-size: 17px;
	font-weight: 800;
	color: var(--st-ink);
	letter-spacing: .2px;
	font-variant-numeric: tabular-nums;
}

.cmu-st-time small {
	display: block;
	margin-top: 2px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .6px;
	color: var(--st-blue);
	min-height: 12px;
}

.cmu-st-time small.lang-fv,
.cmu-st-time small.lang-vf,
.cmu-st-time small.lang-french {
	color: var(--st-red);
}

.cmu-st-legend b.lang-fv,
.cmu-st-legend b.lang-vf,
.cmu-st-legend b.lang-french {
	color: var(--st-red);
}

.cmu-st-time .cmu-st-3d {
	position: absolute;
	top: -7px;
	right: -5px;
	padding: 1px 5px;
	border-radius: 4px;
	background: #111;
	color: #fff;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: .5px;
	line-height: 13px;
	font-style: normal;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}

/* state: already started today */

.cmu-st-time.is-past {
	background: #f1f4f6;
	border-color: #e3e8ec;
	box-shadow: none;
}

.cmu-st-time.is-past b {
	color: #9aa3ab;
	text-decoration: line-through;
	text-decoration-color: rgba(154, 163, 171, .6);
	text-decoration-thickness: 1px;
}

.cmu-st-time.is-past small {
	color: #b0b8bf;
}

.cmu-st-time.is-past .cmu-st-3d {
	background: #b0b8bf;
}

.cmu-st-time.is-past:hover {
	transform: none;
	border-color: #e3e8ec;
	box-shadow: none;
}

/* state: next show today */

.cmu-st-time.is-next {
	border-color: var(--st-blue);
	box-shadow: 0 0 0 2px rgba(0, 136, 204, .18);
}

.cmu-st-time.is-next::after {
	content: attr(data-next-label);
	position: absolute;
	top: -8px;
	left: 50%;
	transform: translateX(-50%);
	padding: 1px 7px;
	border-radius: 999px;
	background: var(--st-blue);
	color: #fff;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: .6px;
	text-transform: uppercase;
	line-height: 13px;
	white-space: nowrap;
}

.cmu-st-time.is-next.has-3d::after {
	left: 38%;
}

/* ---- filtering --------------------------------------------------------- */

.cmu-st-list {
	transition: opacity .18s ease;
}

.cmu-st-list.is-switching {
	opacity: .35;
}

.cmu-st-cinema.is-hidden,
.cmu-st-dayblock.is-hidden {
	display: none;
}

.cmu-st-empty {
	display: none;
	padding: 22px 16px;
	border: 1px dashed var(--st-blue-line);
	border-radius: var(--st-radius);
	background: var(--st-blue-soft);
	color: var(--st-blue-dark);
	font-size: 14px;
	text-align: center;
}

.cmu-st-empty b {
	display: block;
	font-size: 15px;
	margin-bottom: 2px;
}

.cmu-st.is-empty .cmu-st-empty {
	display: block;
}

.cmu-st-foot {
	margin-top: 6px;
	font-size: 12px;
	font-style: italic;
	color: var(--st-muted);
	text-align: right;
}

/* ---- reduced motion ---------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.cmu-st * {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}
