/*
 * Woogency Showtimes Block — design v4 (TCK-0096).
 *
 * Every rule is scoped with two classes: the theme's resets ([type=button],
 * h2, a) weigh as much as one class and would otherwise win by load order.
 * Colours are tokens per colour scheme; the background itself comes from the
 * theme's bg__* class on the same section.
 */

.woogency-showtimes {
	--st-fg: #fff;
	--st-muted: rgba(255, 255, 255, 0.85);
	--st-accent: #ffe7b0;
	--st-empty: rgba(255, 255, 255, 0.45);
	/* 0.85: still 4.5:1 on carpet red and the light corner of the blue gradient. */
	--st-sold-text: rgba(255, 255, 255, 0.85);
	--st-tile: rgba(255, 255, 255, 0.08);
	--st-tile-hover: rgba(255, 255, 255, 0.16);
	--st-sel: #faf1e0;
	--st-sel-fg: #000;
	--st-card: #faf1e0;
	--st-card-fg: #000;
	--st-card-muted: #444;
	--st-card-line: rgba(0, 0, 0, 0.14);
	--st-row-hover: rgba(0, 0, 0, 0.05);
	--st-card-focus: #000;
	--st-cta: #c02b3e;
	--st-cta-hover: #000;
	--st-few: #ffd97c;
	--st-few-sel: #8a5300;
	--st-few-text: #8a5300;
	--st-sold-label: #a1131f;
	--st-line: rgba(255, 255, 255, 0.5);
	--st-focus: #fff;
	--st-band: #000;
	--st-band-fg: #fff;
	--st-band-line: #c4a65f;

	color: var(--st-fg);
}

/* The theme gives every .section 1em side padding on phones; the block's inner box owns the margins. */
.woogency-showtimes.section {
	padding-inline: 0;
}

.woogency-showtimes.woogency-showtimes--beige {
	--st-fg: #000;
	--st-muted: rgba(0, 0, 0, 0.62);
	--st-accent: #c02b3e;
	--st-empty: rgba(0, 0, 0, 0.4);
	--st-sold-text: rgba(0, 0, 0, 0.58);
	--st-tile: rgba(0, 0, 0, 0.05);
	--st-tile-hover: rgba(0, 0, 0, 0.1);
	--st-sel: #c02b3e;
	--st-sel-fg: #fff;
	--st-card: #fff;
	--st-few: #8a5300;
	--st-few-sel: #ffd97c;
	--st-line: rgba(0, 0, 0, 0.3);
	--st-focus: #000;
	--st-band: #c02b3e;
}

.woogency-showtimes.woogency-showtimes--midnight {
	--st-accent: #e2c599;
	--st-tile: rgba(255, 255, 255, 0.07);
	--st-tile-hover: rgba(255, 255, 255, 0.14);
	--st-sel: #e2c599;
	--st-line: rgba(255, 255, 255, 0.4);
	--st-band: #c02b3e;
}

.woogency-showtimes.woogency-showtimes--blue {
	/* The gradient's light corner (#006c9d) needs a paler accent and band edge for contrast. */
	--st-accent: #d3eef6;
	--st-band-line: #ffe7b0;
	--st-tile: rgba(255, 255, 255, 0.09);
	--st-line: rgba(255, 255, 255, 0.45);
	--st-band: #c02b3e;
}

.woogency-showtimes.woogency-showtimes--yellow {
	--st-fg: #000;
	--st-muted: rgba(0, 0, 0, 0.65);
	--st-accent: #00364e;
	--st-empty: rgba(0, 0, 0, 0.42);
	--st-sold-text: rgba(0, 0, 0, 0.58);
	--st-tile: rgba(0, 0, 0, 0.07);
	--st-tile-hover: rgba(0, 0, 0, 0.12);
	--st-sel: #000;
	--st-sel-fg: #fff;
	--st-card: #fff;
	--st-few: #8a5300;
	--st-few-sel: #ffd97c;
	--st-line: rgba(0, 0, 0, 0.35);
	--st-focus: #000;
	--st-band: #c02b3e;
}

/* Layout ---------------------------------------------------------------- */

.woogency-showtimes .woogency-showtimes__inner {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 48px;
	inline-size: 100%;
	max-inline-size: 1600px;
	margin-inline: auto;
	padding-inline: 64px;
	font-family: var(--font-main, "proxima-nova", sans-serif);
}

.woogency-showtimes .woogency-showtimes__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	/* The heading starts with the kicker line: align run and price with the city, its last line. */
	align-items: last baseline;
	gap: 8px 28px;
}

.woogency-showtimes .woogency-showtimes__kicker {
	display: block;
	margin-block-end: 12px;
	color: var(--st-accent);
	font-family: var(--font-main, "proxima-nova", sans-serif);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	line-height: 1.2;
}

.woogency-showtimes .woogency-showtimes__city {
	margin: 0;
	padding: 0;
	color: inherit;
	font-family: var(--font-extra-condensed, "proxima-nova-extra-condensed", sans-serif);
	font-size: 4.5rem;
	font-weight: 800;
	letter-spacing: 0.01em;
	line-height: 0.9;
	text-transform: uppercase;
	text-wrap: balance;
	/* "Mönchengladbach" at 320 px: break rather than run off the screen. */
	overflow-wrap: anywhere;
	hyphens: auto;
}

.woogency-showtimes .woogency-showtimes__run {
	margin: 0;
	font-family: var(--font-condensed, "proxima-nova-condensed", sans-serif);
	font-size: 1.375rem;
	font-weight: 600;
}

.woogency-showtimes .woogency-showtimes__count {
	font-weight: 400;
	white-space: nowrap;
}

.woogency-showtimes .woogency-showtimes__count::before {
	content: "· ";
	/* Same dot, but with empty alternative text: screen readers skip it. */
	content: "· " / "";
}

.woogency-showtimes .woogency-showtimes__price {
	margin: 0;
	margin-inline-start: auto;
	color: var(--st-accent);
	font-size: 1.0625rem;
}

/* "ermäßigt ab 35,20 €" wraps as a whole, never the amount alone. */
.woogency-showtimes .woogency-showtimes__nowrap {
	white-space: nowrap;
}

.woogency-showtimes .woogency-showtimes__notice {
	margin: 0;
	padding: 12px 16px;
	border-radius: 8px;
	background: var(--st-tile);
	font-size: 0.9375rem;
}

.woogency-showtimes .woogency-showtimes__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 420px;
	/* The card runs as tall as the grid, so its hotline footer sits at the bottom. */
	align-items: stretch;
	column-gap: 48px;
}

/* Month grid ------------------------------------------------------------ */

/*
 * The calendar column is the container: what fits in a tile depends on the
 * column, not the viewport (the panel sits beside it from 1360 px on).
 *   >= 560 px  tiles list their show times, a seat icon beside each time
 *              short of seats (below: date only, one seat icon for the day;
 *              narrower tiles squeeze "19:30" and the icon onto two lines)
 *   >= 720 px  "15:00 Uhr" fits
 */
.woogency-showtimes .woogency-showtimes__calendar {
	container: woogency-showtimes-calendar / inline-size;
}

.woogency-showtimes .woogency-showtimes__grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 8px;
	font-variant-numeric: tabular-nums;
}

/* Two classes outweigh the browser's [hidden]: say it again for the pages not shown. */
.woogency-showtimes .woogency-showtimes__grid[hidden] {
	display: none;
}

/* Page navigation: only for runs longer than six weeks, up to six weeks a page. */
.woogency-showtimes .woogency-showtimes__page-nav {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-block-end: 16px;
}

.woogency-showtimes .woogency-showtimes__page-title {
	flex: 1;
	margin: 0;
	font-family: var(--font-condensed, "proxima-nova-condensed", sans-serif);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.2;
	/* On phones: "17. Oktober bis / 22. November 2026", never the year alone. */
	text-wrap: balance;
}

.woogency-showtimes .woogency-showtimes__page-step {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 44px;
	block-size: 44px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--st-line);
	border-radius: 999px;
	background: transparent;
	color: var(--st-fg);
	cursor: pointer;
	transition: background-color 0.15s;
}

.woogency-showtimes .woogency-showtimes__page-step svg {
	display: block;
	inline-size: 20px;
	block-size: 20px;
}

.woogency-showtimes .woogency-showtimes__page-step[aria-disabled="true"] {
	opacity: 0.35;
	cursor: default;
}

.woogency-showtimes .woogency-showtimes__weekday {
	padding-block-end: 6px;
	padding-inline-start: 10px;
	color: var(--st-muted);
	font-size: 0.75rem;
	font-weight: 400;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.woogency-showtimes .woogency-showtimes__tile,
.woogency-showtimes .woogency-showtimes__blank {
	box-sizing: border-box;
	min-block-size: 104px;
	padding: 10px;
	font-family: var(--font-condensed, "proxima-nova-condensed", sans-serif);
}

.woogency-showtimes .woogency-showtimes__tile {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	inline-size: 100%;
	margin: 0;
	border: 0;
	border-radius: 10px;
	background: var(--st-tile);
	color: var(--st-fg);
	cursor: pointer;
	text-align: start;
	transition: background-color 0.15s, transform 0.1s;
}

.woogency-showtimes .woogency-showtimes__tile[aria-checked="true"] {
	background: var(--st-sel);
	color: var(--st-sel-fg);
}

/*
 * Sold out wears the banderole of the Apollo show card instead of a strike
 * (Antonia, 07.10.2026) on the tile of a fully sold-out day; the day card row
 * says it with a label. The word is in both, so it never rests on colour alone.
 */
.woogency-showtimes .woogency-showtimes__tile--sold {
	position: relative;
	overflow: hidden;
	background: transparent;
	box-shadow: inset 0 0 0 1px var(--st-line);
}

.woogency-showtimes .woogency-showtimes__tile--sold .woogency-showtimes__number {
	color: var(--st-sold-text);
}

.woogency-showtimes .woogency-showtimes__tile--sold[aria-checked="true"] .woogency-showtimes__number {
	color: inherit;
}

.woogency-showtimes .woogency-showtimes__band {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	border-block: 2px solid var(--st-band-line);
	background: var(--st-band);
	color: var(--st-band-fg);
	font-family: var(--font-extra-condensed, "proxima-nova-extra-condensed", sans-serif);
	font-weight: 800;
	line-height: 1;
	text-transform: uppercase;
	white-space: nowrap;
}

/* Wider than the tile and clipped by it; the size follows the calendar column. */
.woogency-showtimes .woogency-showtimes__tile .woogency-showtimes__band {
	position: absolute;
	inset-inline: -12%;
	inset-block-start: 60%;
	block-size: 24px;
	margin-block-start: -12px;
	padding-inline-start: 0.14em;
	font-size: clamp(8px, 1.6cqi, 13px);
	letter-spacing: 0.14em;
	transform: rotate(-8deg);
}

/* A sold-out show on a day that still has seats: its time wears a small band. */
.woogency-showtimes .woogency-showtimes__tile-time--sold {
	align-self: flex-start;
	padding-inline: 4px;
	border-block: 1px solid var(--st-band-line);
	background: var(--st-band);
	color: var(--st-band-fg);
	transform: rotate(-4deg);
}

.woogency-showtimes .woogency-showtimes__blank {
	color: var(--st-empty);
	font-size: 1.125rem;
	font-weight: 400;
}

.woogency-showtimes .woogency-showtimes__number {
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
}

.woogency-showtimes .woogency-showtimes__month-long {
	font-size: 0.75em;
	font-weight: 400;
}

.woogency-showtimes .woogency-showtimes__month-short {
	display: none;
}

.woogency-showtimes .woogency-showtimes__tile-times {
	display: none;
	flex-direction: column;
	font-family: var(--font-main, "proxima-nova", sans-serif);
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.35;
}

.woogency-showtimes .woogency-showtimes__unit {
	display: none;
}

/*
 * Traffic light without green (Antonia, Michael 07.10.2026): the legend below
 * the grid explains the two marks — the armchair for "Wenige Plätze" (yellow,
 * amber on light schemes), the banderole for "Ausverkauft" (red); a time
 * without a mark has seats. The day card repeats the armchair beside the
 * words. Tiles that show the date only (phones) carry one icon for the day.
 */
/* The theme sets every svg to display:block and a fixed width; the icon sits in a line of text. */
.woogency-showtimes .woogency-showtimes__seat-icon {
	display: inline-block;
	flex-shrink: 0;
	inline-size: 14px;
	block-size: 14px;
}

.woogency-showtimes .woogency-showtimes__tile .woogency-showtimes__seat-icon,
.woogency-showtimes .woogency-showtimes__legend .woogency-showtimes__seat-icon {
	color: var(--st-few);
}

.woogency-showtimes .woogency-showtimes__tile[aria-checked="true"] .woogency-showtimes__seat-icon {
	color: var(--st-few-sel);
}

.woogency-showtimes .woogency-showtimes__tile-time .woogency-showtimes__seat-icon {
	margin-inline-start: 4px;
	vertical-align: -2px;
}

.woogency-showtimes .woogency-showtimes__few-mark {
	display: flex;
	margin-block-start: auto;
}

@container woogency-showtimes-calendar (min-width: 560px) {
	.woogency-showtimes .woogency-showtimes__tile-times {
		display: flex;
	}

	/* The times carry their own icon now. */
	.woogency-showtimes .woogency-showtimes__few-mark {
		display: none;
	}
}

@container woogency-showtimes-calendar (min-width: 720px) {
	.woogency-showtimes .woogency-showtimes__unit {
		display: inline;
	}
}

/* Legend ---------------------------------------------------------------- */

.woogency-showtimes .woogency-showtimes__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
	color: var(--st-muted);
	font-size: 0.875rem;
	line-height: 1.3;
}

.woogency-showtimes .woogency-showtimes__legend-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
}

.woogency-showtimes .woogency-showtimes__legend-band {
	box-sizing: border-box;
	inline-size: 22px;
	block-size: 9px;
	border-block: 1px solid var(--st-band-line);
	background: var(--st-band);
	transform: rotate(-8deg);
}

/* Day panel: one card — head, show rows, hotline footer --------------- */

.woogency-showtimes .woogency-showtimes__panel {
	container: woogency-showtimes-panel / inline-size;
	position: relative;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	padding: 24px;
	border-radius: 12px;
	background: var(--st-card);
	color: var(--st-card-fg);
	scroll-margin-block-start: 120px;
}

/* gap, not a sibling margin: hidden days must not leave space before the visible one. */
.woogency-showtimes .woogency-showtimes__days {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.woogency-showtimes .woogency-showtimes__day {
	display: none;
}

.woogency-showtimes .woogency-showtimes__day.is-current {
	display: block;
}

/* The tag sits above the date in the markup order date, tag: column-reverse. */
.woogency-showtimes .woogency-showtimes__day-title {
	display: flex;
	flex-direction: column-reverse;
	align-items: flex-start;
	justify-content: center;
	gap: 6px;
	min-block-size: 44px;
	margin: 0 0 12px;
	padding: 0;
	color: inherit;
	font-family: var(--font-condensed, "proxima-nova-condensed", sans-serif);
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: normal;
	line-height: 1.2;
	text-transform: none;
	text-wrap: balance;
}

.woogency-showtimes .woogency-showtimes__day-tag {
	padding: 3px 8px;
	border-radius: 999px;
	background: var(--st-cta);
	color: #fff;
	font-family: var(--font-main, "proxima-nova", sans-serif);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.2;
}

.woogency-showtimes .woogency-showtimes__slots {
	margin: 0;
	padding: 0;
	list-style: none;
}

.woogency-showtimes .woogency-showtimes__slot-item {
	margin: 0;
	padding: 0;
	border-block-start: 1px solid var(--st-card-line);
}

/* A row: time | price and note | button. The whole row is the link (big target). */
.woogency-showtimes .woogency-showtimes__slot {
	box-sizing: border-box;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	margin-inline: -8px;
	padding-block: 16px;
	padding-inline: 8px;
	border-radius: 8px;
	color: var(--st-card-fg);
	text-decoration: none;
	transition: background-color 0.15s, transform 0.1s;
}

.woogency-showtimes .woogency-showtimes__time {
	font-family: var(--font-condensed, "proxima-nova-condensed", sans-serif);
	font-size: 1.75rem;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
}

.woogency-showtimes .woogency-showtimes__slot-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	line-height: 1.3;
}

.woogency-showtimes .woogency-showtimes__slot-price {
	font-size: 0.9375rem;
	font-weight: 600;
}

.woogency-showtimes .woogency-showtimes__slot-note {
	color: var(--st-card-muted);
	font-size: 0.875rem;
	text-wrap: balance;
}

.woogency-showtimes .woogency-showtimes__slot--few .woogency-showtimes__slot-note {
	display: flex;
	align-items: flex-start;
	gap: 4px;
	color: var(--st-few-text);
	font-weight: 600;
}

.woogency-showtimes .woogency-showtimes__slot-note .woogency-showtimes__seat-icon {
	margin-block-start: 2px;
}

.woogency-showtimes .woogency-showtimes__slot-button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding-block: 10px;
	padding-inline: 14px 12px;
	border-radius: 999px;
	background: var(--st-cta);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 600;
	white-space: nowrap;
	transition: background-color 0.15s;
}

.woogency-showtimes .woogency-showtimes__slot-button svg {
	transition: transform 0.15s;
}

/*
 * A narrow card (beside the grid on laptops, on phones, in the dialog): time
 * and price share a line, the button gets its own full-width row below — a
 * big target, and price and note never squeeze into a sliver.
 */
@container woogency-showtimes-panel (max-width: 371px) {
	.woogency-showtimes .woogency-showtimes__slot {
		grid-template-columns: auto minmax(0, 1fr);
	}

	.woogency-showtimes .woogency-showtimes__slot-button {
		grid-column: 1 / -1;
		justify-content: center;
	}
}

.woogency-showtimes .woogency-showtimes__slot--sold {
	grid-template-columns: auto minmax(0, 1fr);
	color: var(--st-card-muted);
}

/* In the card a plain label says it: outlined, so it never reads as the "Tickets buchen" button. */
.woogency-showtimes .woogency-showtimes__sold-label {
	justify-self: start;
	padding: 4px 10px;
	border: 1.5px solid currentColor;
	border-radius: 999px;
	color: var(--st-sold-label);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.2;
}

.woogency-showtimes .woogency-showtimes__next,
.woogency-showtimes .woogency-showtimes__hotline {
	margin: 0;
	color: var(--st-muted);
	font-size: 0.9375rem;
	line-height: 1.5;
}

.woogency-showtimes .woogency-showtimes__next {
	margin-block-start: 4px;
	padding-block-start: 12px;
	border-block-start: 1px solid var(--st-card-line);
	color: var(--st-card-muted);
}

.woogency-showtimes .woogency-showtimes__hotline a {
	white-space: nowrap;
}

.woogency-showtimes .woogency-showtimes__next a,
.woogency-showtimes .woogency-showtimes__hotline a {
	color: var(--st-fg);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.woogency-showtimes .woogency-showtimes__panel .woogency-showtimes__next a {
	color: var(--st-card-fg);
}

.woogency-showtimes .woogency-showtimes__hotline-note {
	display: block;
}

/* Footer of the card: label and number in one line, box office hours below. */
.woogency-showtimes .woogency-showtimes__hotline--footer {
	margin-block-start: auto;
	padding-block-start: 16px;
	border-block-start: 1px solid var(--st-card-line);
	color: var(--st-card-muted);
	font-size: 0.875rem;
}

.woogency-showtimes .woogency-showtimes__hotline--footer a {
	color: var(--st-card-fg);
}

.woogency-showtimes .woogency-showtimes__hotline--footer .woogency-showtimes__hotline-note {
	margin-block-start: 2px;
}

/* States without a calendar (empty, past, feed error) ------------------- */

.woogency-showtimes .woogency-showtimes__message {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	max-inline-size: 640px;
	padding: 24px;
	border-radius: 6px;
	background: var(--st-card);
	color: var(--st-card-fg);
	font-size: 1rem;
	line-height: 1.5;
}

.woogency-showtimes .woogency-showtimes__message p {
	margin: 0;
	text-wrap: pretty;
}

.woogency-showtimes .woogency-showtimes__message .woogency-showtimes__message-title {
	font-family: var(--font-condensed, "proxima-nova-condensed", sans-serif);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.2;
	text-wrap: balance;
}

.woogency-showtimes .woogency-showtimes__message .woogency-showtimes__hotline,
.woogency-showtimes .woogency-showtimes__message .woogency-showtimes__hotline a {
	color: var(--st-card-fg);
}

.woogency-showtimes .woogency-showtimes__message a {
	color: var(--st-card-fg);
}

.woogency-showtimes .woogency-showtimes__button {
	padding: 12px 20px;
	border-radius: 4px;
	background: var(--st-cta);
	font-weight: 600;
	text-decoration: none;
}

.woogency-showtimes .woogency-showtimes__message .woogency-showtimes__button {
	color: #fff;
}

.woogency-showtimes .woogency-showtimes__next-locations {
	margin: 0;
	padding-inline-start: 20px;
}

.woogency-showtimes .woogency-showtimes__sr-only,
.woogency-showtimes .woogency-showtimes__head--hidden {
	position: absolute;
	overflow: hidden;
	inline-size: 1px;
	block-size: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	clip-path: inset(50%);
	white-space: nowrap;
}

.woogency-showtimes__editor-note {
	padding: 16px;
	border: 1px dashed currentColor;
}

/* Focus and motion ------------------------------------------------------ */

/* A focused element must not end up under the theme's sticky header (WCAG 2.4.11). */
.woogency-showtimes .woogency-showtimes__tile,
.woogency-showtimes .woogency-showtimes__slot,
.woogency-showtimes .woogency-showtimes__day-title {
	scroll-margin-block: 120px;
}

.woogency-showtimes .woogency-showtimes__tile:focus-visible,
.woogency-showtimes .woogency-showtimes__slot:focus-visible,
.woogency-showtimes .woogency-showtimes__inner a:focus-visible,
.woogency-showtimes .woogency-showtimes__dialog-button:focus-visible,
.woogency-showtimes .woogency-showtimes__page-step:focus-visible {
	outline: 3px solid var(--st-focus);
	outline-offset: 3px;
}

/* On the light card the ring is dark; element selectors match the weight of the rule above. */
.woogency-showtimes .woogency-showtimes__panel a:focus-visible,
.woogency-showtimes .woogency-showtimes__panel button:focus-visible,
.woogency-showtimes .woogency-showtimes__dialog-button:focus-visible {
	outline-color: var(--st-card-focus);
}

.woogency-showtimes .woogency-showtimes__day-title:focus {
	outline: none;
}

/* Hover only where there is a pointer that hovers; on touch it would stick after a tap. */
@media (hover: hover) {
	.woogency-showtimes .woogency-showtimes__tile:not([aria-checked="true"]):hover {
		background: var(--st-tile-hover);
	}

	.woogency-showtimes a.woogency-showtimes__slot:hover {
		background: var(--st-row-hover);
	}

	.woogency-showtimes .woogency-showtimes__page-step:not([aria-disabled="true"]):hover {
		background: var(--st-tile-hover);
	}

	.woogency-showtimes a.woogency-showtimes__slot:hover .woogency-showtimes__slot-button {
		background: var(--st-cta-hover);
	}

	.woogency-showtimes a.woogency-showtimes__next-stop:hover .woogency-showtimes__next-city {
		text-decoration-thickness: 2px;
	}

	.woogency-showtimes a.woogency-showtimes__next-stop:hover svg {
		transform: translateX(3px);
	}

	/* The arrow points where the link goes: out, into the shop. */
	.woogency-showtimes a.woogency-showtimes__slot:hover .woogency-showtimes__slot-button svg {
		transform: translate(2px, -2px);
	}
}

/* Press feedback on touch and click. */
.woogency-showtimes .woogency-showtimes__tile:active,
.woogency-showtimes a.woogency-showtimes__slot:active {
	transform: scale(0.97);
}

/* The newly chosen day fades in, so the change is noticed (set by the script, not on load). */
.woogency-showtimes .woogency-showtimes__day.is-entering {
	animation: woogency-showtimes-enter 0.18s ease-out;
}

@keyframes woogency-showtimes-enter {
	from {
		opacity: 0;
		transform: translateY(4px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.woogency-showtimes .woogency-showtimes__tile,
	.woogency-showtimes .woogency-showtimes__slot,
	.woogency-showtimes .woogency-showtimes__slot-button,
	.woogency-showtimes .woogency-showtimes__slot-button svg {
		transition: none;
	}

	.woogency-showtimes .woogency-showtimes__tile:active,
	.woogency-showtimes a.woogency-showtimes__slot:active,
	.woogency-showtimes a.woogency-showtimes__slot:hover .woogency-showtimes__slot-button svg {
		transform: none;
	}

	.woogency-showtimes .woogency-showtimes__day.is-entering {
		animation: none;
	}
}

/* Windows contrast themes drop backgrounds and shadows: say it with borders. */
@media (forced-colors: active) {
	.woogency-showtimes .woogency-showtimes__tile,
	.woogency-showtimes .woogency-showtimes__slot {
		border: 1px solid ButtonText;
	}

	.woogency-showtimes .woogency-showtimes__tile[aria-checked="true"] {
		border: 3px solid Highlight;
	}

	.woogency-showtimes .woogency-showtimes__tile--sold {
		border-style: dashed;
	}

	.woogency-showtimes .woogency-showtimes__dialog {
		border: 1px solid CanvasText;
	}
}

/* Every show of the run sold out: a few quiet lines under the city ------- */

.woogency-showtimes .woogency-showtimes__sold-out {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-inline-size: 720px;
}

.woogency-showtimes .woogency-showtimes__sold-out-text {
	margin: 0;
	font-family: var(--font-condensed, "proxima-nova-condensed", sans-serif);
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.2;
	text-wrap: balance;
}

.woogency-showtimes .woogency-showtimes__sold-out-thanks,
.woogency-showtimes .woogency-showtimes__next-title,
.woogency-showtimes .woogency-showtimes__voucher {
	margin: 0;
	color: var(--st-muted);
	font-size: 1rem;
	line-height: 1.45;
}

.woogency-showtimes .woogency-showtimes__next-title {
	margin-block-start: 12px;
}

.woogency-showtimes .woogency-showtimes__next-stops {
	margin: 0;
	padding: 0;
	border-block-start: 1px solid var(--st-line);
	list-style: none;
}

.woogency-showtimes .woogency-showtimes__next-stops li {
	margin: 0;
	padding: 0;
	border-block-end: 1px solid var(--st-line);
}

/* One row per stop, the whole row is the link: city, dates, arrow. */
.woogency-showtimes .woogency-showtimes__next-stop {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 12px;
	padding-block: 12px;
	padding-inline-end: 28px;
	position: relative;
	color: var(--st-fg);
	text-decoration: none;
}

.woogency-showtimes .woogency-showtimes__next-city {
	font-family: var(--font-condensed, "proxima-nova-condensed", sans-serif);
	font-size: 1.375rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

.woogency-showtimes .woogency-showtimes__next-run {
	color: var(--st-muted);
	font-size: 0.9375rem;
}

.woogency-showtimes .woogency-showtimes__next-stop svg {
	position: absolute;
	inset-block-start: 50%;
	inset-inline-end: 0;
	inline-size: 18px;
	block-size: 18px;
	margin-block-start: -9px;
	color: var(--st-accent);
	transition: transform 0.15s;
}

.woogency-showtimes .woogency-showtimes__voucher {
	margin-block-start: 12px;
}

.woogency-showtimes .woogency-showtimes__voucher a {
	color: var(--st-fg);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	white-space: nowrap;
}

/* Dialog (below 1100 px): a tap on a day opens its card here -------------- */

/* Not display: the browser hides a closed dialog, and the card inside must keep its width. */
.woogency-showtimes .woogency-showtimes__dialog {
	box-sizing: border-box;
	inline-size: min(560px, calc(100% - 32px));
	max-inline-size: none;
	max-block-size: calc(100dvh - 32px);
	margin: auto;
	padding: 0;
	overflow: auto;
	overscroll-behavior: contain;
	border: 0;
	border-radius: 12px;
	background: var(--st-card);
	color: var(--st-card-fg);
}

.woogency-showtimes .woogency-showtimes__dialog::backdrop {
	background: rgba(0, 10, 20, 0.6);
}

.woogency-showtimes .woogency-showtimes__dialog[open] {
	animation: woogency-showtimes-dialog-in 0.18s ease-out;
}

@keyframes woogency-showtimes-dialog-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
}

/* The page behind a modal dialog stays put. */
html:has(.woogency-showtimes__dialog[open]) {
	overflow: hidden;
}

.woogency-showtimes .woogency-showtimes__dialog-bar {
	position: sticky;
	z-index: 1;
	inset-block-start: 0;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 16px 24px 0;
	background: var(--st-card);
}

.woogency-showtimes .woogency-showtimes__dialog-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 44px;
	block-size: 44px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--st-card-line);
	border-radius: 999px;
	background: transparent;
	color: var(--st-card-fg);
	cursor: pointer;
}

.woogency-showtimes .woogency-showtimes__dialog-button svg {
	display: block;
	inline-size: 20px;
	block-size: 20px;
}

.woogency-showtimes .woogency-showtimes__dialog-button[aria-disabled="true"] {
	opacity: 0.35;
	cursor: default;
}

.woogency-showtimes .woogency-showtimes__dialog-close {
	margin-inline-start: auto;
}

/* In the dialog the dialog is the card. */
.woogency-showtimes .woogency-showtimes__dialog .woogency-showtimes__panel {
	max-inline-size: none;
	padding-block-start: 12px;
	border-radius: 0;
	background: transparent;
}

/* 1100–1359 px (laptops, tablets landscape): a narrower card, still beside the grid */

@media screen and (max-width: 1359px) {
	.woogency-showtimes .woogency-showtimes__inner {
		padding-inline: 40px;
	}

	/* Run and price under the city, left-aligned: the price never hangs alone on the right. */
	.woogency-showtimes .woogency-showtimes__head {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.woogency-showtimes .woogency-showtimes__price {
		margin: 0;
	}

	.woogency-showtimes .woogency-showtimes__body {
		grid-template-columns: minmax(0, 1fr) 360px;
		column-gap: 32px;
	}
}

/* Below 1100 px: the card goes under the grid; a tap on a day opens it as a dialog */

@media screen and (max-width: 1099px) {
	.woogency-showtimes .woogency-showtimes__body {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 40px;
	}

	.woogency-showtimes .woogency-showtimes__panel {
		max-inline-size: 640px;
	}

	/*
	 * With the dialog the card under the grid would only repeat it: its days go,
	 * the hotline stays as a plain line (one tap to call; the way to returns
	 * when a run is sold out). Without the dialog the card stays as it is.
	 */
	.woogency-showtimes.woogency-showtimes--dialog .woogency-showtimes__body {
		row-gap: 24px;
	}

	.woogency-showtimes.woogency-showtimes--dialog .woogency-showtimes__body > .woogency-showtimes__panel {
		padding: 0;
		background: transparent;
		color: var(--st-fg);
	}

	.woogency-showtimes.woogency-showtimes--dialog .woogency-showtimes__body > .woogency-showtimes__panel .woogency-showtimes__days {
		display: none;
	}

	.woogency-showtimes.woogency-showtimes--dialog .woogency-showtimes__body > .woogency-showtimes__panel .woogency-showtimes__hotline--footer {
		padding: 0;
		border: 0;
		color: var(--st-muted);
	}

	.woogency-showtimes.woogency-showtimes--dialog .woogency-showtimes__body > .woogency-showtimes__panel .woogency-showtimes__hotline--footer a {
		color: var(--st-fg);
	}
}

/* Phone ----------------------------------------------------------------- */

@media screen and (max-width: 767px) {
	.woogency-showtimes .woogency-showtimes__inner {
		gap: 24px;
		padding-inline: 16px;
	}

	.woogency-showtimes .woogency-showtimes__head {
		gap: 6px;
	}

	.woogency-showtimes .woogency-showtimes__city {
		font-size: clamp(2rem, 13vw, 3.25rem);
	}

	/* One long word ("Weihnachtscircus") fits a 320 px line instead of being hyphenated mid-syllable —
	   without "manual", text-wrap: balance still hyphenates it to even out the two lines. */
	.woogency-showtimes .woogency-showtimes__city--long {
		font-size: clamp(1.75rem, 10vw, 3.25rem);
		hyphens: manual;
	}

	.woogency-showtimes .woogency-showtimes__page-title {
		font-size: 1.25rem;
	}

	.woogency-showtimes .woogency-showtimes__sold-out-text {
		font-size: 1.5rem;
	}

	.woogency-showtimes .woogency-showtimes__kicker {
		margin-block-end: 8px;
		font-size: 0.8125rem;
	}

	.woogency-showtimes .woogency-showtimes__run {
		font-size: 1.125rem;
	}

	.woogency-showtimes .woogency-showtimes__count {
		display: block;
	}

	.woogency-showtimes .woogency-showtimes__count::before {
		content: none;
	}

	.woogency-showtimes .woogency-showtimes__price {
		font-size: 0.9375rem;
	}

	.woogency-showtimes .woogency-showtimes__body {
		row-gap: 24px;
	}

	.woogency-showtimes .woogency-showtimes__grid {
		gap: 5px;
	}

	/* Left-aligned like on desktop: date top left, the day's mark below it. */
	.woogency-showtimes .woogency-showtimes__weekday {
		padding-inline-start: 6px;
		font-size: 0.75rem;
	}

	.woogency-showtimes .woogency-showtimes__tile,
	.woogency-showtimes .woogency-showtimes__blank {
		min-block-size: 50px;
		padding: 8px 6px;
	}

	.woogency-showtimes .woogency-showtimes__tile {
		border-radius: 8px;
	}

	.woogency-showtimes .woogency-showtimes__blank {
		font-size: 0.9375rem;
	}

	.woogency-showtimes .woogency-showtimes__tile .woogency-showtimes__band {
		inset-block-start: 72%;
		block-size: 15px;
		margin-block-start: -7px;
		border-block-width: 1px;
		padding-inline-start: 0.04em;
		letter-spacing: 0.04em;
	}

	.woogency-showtimes .woogency-showtimes__number {
		font-size: 1.0625rem;
	}

	.woogency-showtimes .woogency-showtimes__month-long {
		display: none;
	}

	.woogency-showtimes .woogency-showtimes__month-short {
		display: inline;
	}

	.woogency-showtimes .woogency-showtimes__panel {
		padding: 16px;
	}

	.woogency-showtimes .woogency-showtimes__day-title {
		min-block-size: 0;
		margin-block-end: 10px;
		font-size: 1.375rem;
	}

	.woogency-showtimes .woogency-showtimes__slot {
		gap: 12px;
		min-block-size: 64px;
		padding-block: 12px;
	}

	.woogency-showtimes .woogency-showtimes__time {
		font-size: 1.5rem;
	}

	.woogency-showtimes .woogency-showtimes__slot-button {
		padding-block: 10px;
		padding-inline: 12px 10px;
		font-size: 0.875rem;
	}

	/* Bottom sheet: in thumb reach, the page stays visible above it. */
	.woogency-showtimes .woogency-showtimes__dialog {
		inline-size: 100%;
		max-block-size: 85dvh;
		margin: auto 0 0;
		border-radius: 16px 16px 0 0;
	}

	.woogency-showtimes .woogency-showtimes__dialog[open] {
		animation-name: woogency-showtimes-sheet-in;
		animation-duration: 0.22s;
	}

	.woogency-showtimes .woogency-showtimes__dialog-bar {
		padding: 12px 16px 0;
	}

	.woogency-showtimes .woogency-showtimes__dialog .woogency-showtimes__panel {
		padding-block-end: max(16px, env(safe-area-inset-bottom));
	}
}

@keyframes woogency-showtimes-sheet-in {
	from {
		transform: translateY(100%);
	}
}

/* 320–359 px (small phones, 400 % zoom): 37 px tiles still hold "1.11." */
@media screen and (max-width: 359px) {
	.woogency-showtimes .woogency-showtimes__weekday {
		padding-inline-start: 4px;
	}

	.woogency-showtimes .woogency-showtimes__tile,
	.woogency-showtimes .woogency-showtimes__blank {
		padding-inline: 4px;
	}

	.woogency-showtimes .woogency-showtimes__number {
		font-size: 0.9375rem;
	}
}

/* Date-only tiles are too narrow for the word (37 px at 320): the band alone, the legend names it. */
@container woogency-showtimes-calendar (max-width: 559px) {
	.woogency-showtimes .woogency-showtimes__tile .woogency-showtimes__band {
		inset-block-start: 72%;
		block-size: 10px;
		margin-block-start: -5px;
		border-block-width: 1px;
		font-size: 0;
	}
}

/* Without JavaScript the tiles do nothing: list every day instead of the grid. */
@media (scripting: none) {
	.woogency-showtimes .woogency-showtimes__body {
		display: block;
	}

	.woogency-showtimes .woogency-showtimes__panel {
		max-inline-size: 640px;
	}

	.woogency-showtimes .woogency-showtimes__day {
		display: block;
	}

	.woogency-showtimes .woogency-showtimes__calendar {
		display: none;
	}
}

/* Last in the file: it must outweigh the phone bottom sheet's animation, which has the same specificity. */
@media (prefers-reduced-motion: reduce) {
	.woogency-showtimes .woogency-showtimes__dialog[open] {
		animation: none;
	}
}
