/* Telemeriendas: the blocks under the TV (index.php, resources/home.js, owner, 2026-11-02): the
   question (¿Te acuerdas?, new on every visit; three until 2026-11-03) and the rows of titles. Loaded after style.css and tele.css, whose palette
   (--surface, --cocoa, --accent…) they use, so the seasonal themes (season.css) apply too */

.home-blocks {
	display: grid;
	grid-template-columns: minmax(0, 1fr);  /* (the strip's row of cards would widen an auto column) */
	width: min(100%, var(--tele-width));
	/* 12px under the line under the set (owner, 2026-11-04: "reduce también el espacio bajo la
	   tele"; it was 40px); the last band meets the footer (.tele's 48px bottom padding) */
	margin: 12px 0 -48px;
	text-align: left;
	/* After the line under the set; a fade only: a transform here would move the bands' fixed
	   cloths (below) off the page's squares while it runs */
	animation: home-fade 0.5s ease-out 1.7s backwards;
}
@keyframes home-fade {
	from { opacity: 0; }
}
/* Phones: closer to the line under the set (owner, 2026-11-02: a lot of room there) */
@media only screen and (max-width: 760px) {
	.home-blocks {
		margin-top: 6px;  /* 16px until 2026-11-04 */
	}
}
@media (prefers-reduced-motion: reduce) {
	.home-blocks {
		animation: none;
	}
}

/* Each section its own tablecloth (owner, 2026-11-02: "un color de fondo diferente en cada
   sección", then "que cada color sea un mantel de cuadros igual que el principal pero de otro
   color"): the same gingham as the page's (style.css's html::before: 32px squares, faint, on
   --bg), only the squares' colour changes (and, since 2026-11-03, the ground: see below): the page's red behind the set,
   then the set's cloth and Cola Cao yellow (amber orange, grey and café con leche until 2026-11-04), alternately. The squares line up with the page's (owner,
   2026-11-02: "tienen que estar alineados los cuadros de todas las secciones"): the page's cloth
   is a fixed layer, so each band's is one too (::before, the whole window, fixed), cut to the
   band by the block's clip-path, which reaches the window's sides (a fixed layer rather than
   background-attachment: fixed, which iOS Safari ignores). The content keeps the set's width.
   The bands' colours are fixed since 2026-11-03 (below); their ground is mixed into --bg, so the
   seasonal themes (season.css) still tint it; the rgba() before each is for browsers without color-mix() */
.home-block {
	--check: rgba(170, 60, 30, 0.07);
	position: relative;
	z-index: 0;
	/* Rows close together, like Netflix's (owner, 2026-11-04: "Reduce la distancia entre franjas
	   para que se parezca más a Netflix"; it was 36px above and 40px below, 22px and 28px on phones) */
	padding: 12px 0 10px;
	clip-path: inset(0 -100vmax);
}
/* The Programación's box ends flush with its band, where the other bands end in their cards' light
   text: room under it as they have (owner, 2026-11-13: "Añade espacio entre la programación y la
   franja qué están echando ahora para ser consistente con el resto de franjas"; 10px until then,
   the line under it almost touching the box) */
.home-block.home-schedule {
	padding-bottom: 32px;
}
/* Not drawn since 2026-11-05 (owner: "las franjas tapan la imagen", Espinete on the page's
   tablecloth, style.css's body::after): every band has had the page's own cloth since
   2026-11-04, so the bands show the page's through them instead, and him with it. Kept, as
   content: none, for a band that is given a cloth of its own again (--band-bg, --check) */
.home-block::before {
	content: none;
	position: fixed;
	inset: 0;
	z-index: -1;
	background-color: var(--band-bg, var(--bg));
	background-image:
		linear-gradient(90deg, var(--check) 50%, transparent 0),
		linear-gradient(var(--check) 50%, transparent 0);
	background-size: 32px 32px;
	pointer-events: none;
}
/* A seam between two cloths: a line of the cloth's own colour along the band's top. Not drawn
   since 2026-11-04: every band has the same cloth, and the rows run on as Netflix's do */
.home-block::after {
	display: none;
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	z-index: -1;
	width: 100vw;
	height: 2px;
	transform: translateX(-50%);
	background: var(--check);
}
/* The bands' cloths: all the set's own since 2026-11-04 (owner: "quita … el color de las
   franjas"), .home-block's defaults, the page's --bg and red squares; the seam (::after) still
   marks where one ends. From 2026-11-03 every other band had a colour of its own (.home-now,
   .home-strip, still in the markup): amber orange, then that day lighter, grey, café con leche and
   Cola Cao yellow, last at 13% in --bg (#edd19d) with squares rgba(240, 170, 0, 0.09); and the
   afternoon before, four colours, then other sets of four */
/* A faint line between two bands (owner, 2026-11-05: "Entre franja y franja añade una sutil línea
   como en las franjas de los canales de youtube"): 1px across the content's width, not the
   window's, on each band shown after another shown one (a hidden band, the question's or "Ahora
   en la tele" before they load, is skipped, so none is drawn under the set). The text's colour,
   faint, so the seasonal themes tint it; rgba() for browsers without color-mix(). Drawn with the
   seam's ::after, not a border: the band's cloth (::before, z-index -1 in the band's stacking
   context) is painted over the band's own border, and the ::after comes after it */
.home-block:not([hidden]) ~ .home-block:not([hidden])::after {
	display: block;
	left: 0;
	width: 100%;
	height: 1px;
	transform: none;
	background: rgba(91, 52, 32, 0.22);
	background: color-mix(in srgb, var(--text) 22%, transparent);
}

/* Beside a heading with no link: a quiet note ("30 días") */
.home-block-note {
	flex: none;
	color: var(--muted);
	font-size: 0.875rem;
	font-weight: 700;
}
.home-block[hidden] {
	display: none;
}
/* The heading on the left, its link on the right, on one line on phones too (owner, 2026-11-02:
   the link wrapped under the heading there); a long heading wraps itself instead */
.home-block-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 6px 16px;
	margin-bottom: 8px;  /* 14px until 2026-11-04 (closer rows) */
}
.home-block-title {
	min-width: 0;
	margin: 0;
	color: var(--cocoa);
	font-family: var(--font-display);
	font-size: 1.375rem;
	font-weight: 600;
	line-height: 1.2;
}
.home-block-more {
	flex: none;
	color: var(--accent);
	font-weight: 800;
	text-decoration: none;
	white-space: nowrap;
}
@media only screen and (max-width: 420px) {
	.home-block-title {
		font-size: 1.1875rem;
	}
	.home-block-more {
		font-size: 0.8125rem;
	}
}
/* The smallest phones (320px) */
@media only screen and (max-width: 340px) {
	.home-block-title {
		font-size: 1.0625rem;
	}
	.home-block-more {
		font-size: 0.75rem;
	}
}
.home-block-more:hover {
	text-decoration: underline;
}
.home-block-more:focus-visible,
.home-block button:focus-visible {
	outline: 3px solid var(--cocoa);
	outline-offset: 3px;
}

/* The TV's snow (resources/snow.js) under a picture until it loads (owner, 2026-11-03): the
   question's screen and the rows' cards. The picture covers it once loaded */
.snow {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	image-rendering: auto;  /* smoothly scaled, as the TV's #static */
}
.snow[hidden] {
	display: none;
}

/* ---- One question (2026-11-03; three until then): the frame on a small walnut TV, as on the
   quiz's page (quiz.css's .quiz-set), the options beside it ---- */
.daily-body {
	display: grid;
	/* --daily-tv: on desktops, home.js sizes the TV so it ends where the answers end (owner, 2026-11-03) */
	grid-template-columns: minmax(0, var(--daily-tv, 360px)) minmax(0, 1fr);
	gap: 24px;
	align-items: start;  /* the TV stays up as the answer's message comes, as on the quiz's page (2026-11-03; centred before) */
}
/* The TV, the question, the answers and the message are quiz-parts.css's, the same as on the
   quiz's page (owner, 2026-11-03: "idénticos"); only their spacing here is the block's own */
/* Spaced as on the quiz's page (quiz.css's .quiz: a grid, 18px between its parts) */
.daily-side {
	display: grid;
	gap: 18px;
	justify-items: stretch;
}
.daily-side .quiz-prize {
	justify-self: start;
}
.home-block.home-daily {
	padding: 20px 0 24px;  /* 36px both until 2026-11-04 (closer rows, owner); as much below the TV as above the heading, on phones too (owner, 2026-11-03; 20px below for a few hours that day; the other bands have 36px and 40px, 22px and 28px on phones) */
}
.daily-after {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	margin: 0;  /* the grid's gap spaces it (.daily-side) */
}
.daily-after[hidden] {
	display: none;
}
.daily-play {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 8px 18px;
	background: var(--cocoa);
	border: 0;
	border-radius: 999px;
	color: #fff;
	font-family: var(--font-display);
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
}
.daily-play:hover {
	background: var(--cocoa-dark);
}
/* After the answer, the way to a full round (owner, 2026-11-03: one question, as a demo, that
   leads there; until then three, a summary and "Otras tres") */
.daily-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	margin: 0;
	padding: 14px 16px;
	background: var(--cola-cao);
	border: 2px solid var(--cocoa);
	border-radius: 16px;
	box-shadow: 0 3px 0 rgba(91, 52, 32, 0.25);
}
.daily-cta[hidden] {
	display: none;
}
.daily-cta-text {
	color: var(--cocoa-dark);
	font-family: var(--font-display);
	font-size: 1.1875rem;
	font-weight: 700;
}
.daily-full {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 8px 20px;
	background: var(--accent-bg);
	border-radius: 999px;
	color: #fff;
	font-family: var(--font-display);
	font-size: 1.0625rem;
	font-weight: 700;
	text-decoration: none;
}
.daily-full:hover {
	background: #8e2318;
}
.daily-full:focus-visible {
	outline: 3px solid var(--cocoa);
	outline-offset: 3px;
}

/* ---- The rows of titles: each a row of cards that scrolls sideways ---- */
.strip {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 168px;
	gap: 14px;
	margin: 0;
	padding: 4px 0 6px;  /* 12px below until 2026-11-04 (closer rows) */
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	list-style: none;
	overscroll-behavior-x: contain;
}
.strip li {
	scroll-snap-align: start;
}
/* No scrollbar (owner, 2026-11-04: "embellece la barra horizontal de desplazamiento
   ocultándola si es posible"): touch, a trackpad and Mayús+wheel still scroll the row, and
   home.js puts ‹ › arrows in the heading for a mouse */
.strip {
	scrollbar-width: none;
}
.strip::-webkit-scrollbar {
	display: none;
}
/* The arrows (home.js): beside the heading's link, only with a pointer that hovers (a phone
   swipes) and while the row is wider than the screen */
.strip-arrows {
	display: none;
	flex: none;
	gap: 6px;
	margin-left: auto;
	align-self: center;
}
@media (hover: hover) and (pointer: fine) {
	.strip-arrows:not([hidden]) {
		display: flex;
	}
	/* Shown, the arrows take the push to the right; the link follows them */
	.strip-arrows:not([hidden]) + .home-block-more,
	.strip-arrows:not([hidden]) + .home-block-note {
		margin-left: 0;
	}
}
/* "Ver todo" (and the note) always at the right (owner, 2026-11-04: "mantén el link Ver todo
   alineado a la derecha siempre"): pushed there by its own margin. Until then a :has() rule put
   the heading's items at the start whenever the arrows weren't [hidden], even where they don't
   show (phones, touch screens), and the link sat by the heading */
.home-block-more,
.home-block-note {
	margin-left: auto;
}
.strip-arrow {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	padding: 0;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 999px;
	color: var(--cocoa);
	cursor: pointer;
	transition: background-color 0.15s, border-color 0.15s, opacity 0.15s;
}
.strip-arrow:hover:not(:disabled) {
	background: var(--surface-hover);
	border-color: var(--border-hover);
}
.strip-arrow:disabled {
	opacity: 0.35;
	cursor: default;
}
.strip-arrow-next svg {
	rotate: 180deg;
}
.strip-card {
	display: grid;
	gap: 4px;
	width: 100%;
	padding: 0;
	background: none;
	border: 0;
	color: var(--text);
	font: inherit;
	text-align: left;
	cursor: pointer;
}
.strip-image {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: var(--bread);
	border: 2px solid var(--border);
	border-radius: 12px;
}
.strip-image img {
	position: relative;  /* over the snow (.snow), which shows until it loads */
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.25s ease;
}
.strip-card:hover .strip-image img,
.strip-card:focus-visible .strip-image img {
	transform: scale(1.05);
}
/* The length bottom right, as on YouTube (owner, 2026-11-17; it replaced the play mark, shown on
   hover and always on touch screens, which the owner wants on no device) */
.strip-length {
	position: absolute;
	z-index: 2;
	right: 6px;
	bottom: 6px;
	padding: 1px 5px;
	background: rgba(0, 0, 0, 0.55);  /* semi-transparent (owner, 2026-11-17) */
	border-radius: 4px;
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.4;
	font-variant-numeric: tabular-nums;
	text-shadow: 0 0 2px rgba(0, 0, 0, 0.8);  /* readable on a light picture through the background */
}
@media (prefers-reduced-motion: reduce) {
	.strip-image img {
		transition: none;
	}
}
.strip-title {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	font-weight: 800;
	line-height: 1.25;
}
.strip-year {
	color: var(--muted);
	font-size: 0.875rem;
	font-weight: 700;
}

/* ---- Ahora en la tele (2026-11-03): cards built by home.js from the TV's guide ---- */
/* The programme's length (2026-11-17, in place of the channel's logo): clear of the bar */
.now-card .strip-length {
	bottom: 11px;
}
/* How far the programme on air has got, along the picture's bottom */
.now-bar {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2;
	height: 5px;
	background: rgba(0, 0, 0, 0.45);
}
.now-bar > span {
	display: block;
	height: 100%;
	background: var(--accent-bg);
}
/* Up to two lines (2026-11-08: the themed channels' long names, "Hecho en América (imagen real
   y muñecos)", were cut on one) */
.now-channel {
	display: -webkit-box;
	overflow: hidden;
	color: var(--accent);
	font-size: 0.8125rem;
	font-weight: 800;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}
/* The channel the set is on: the picture outlined in Cola Cao gold */
.is-tuned .strip-image {
	border-color: var(--cola-cao);
	box-shadow: 0 0 0 3px var(--cola-cao);
}

/* ---- Lo más visto (2026-11-03): the place in the ranking, top left on the picture ---- */
.strip-rank {
	position: absolute;
	top: 6px;
	left: 6px;
	z-index: 2;
	display: grid;
	place-items: center;
	min-width: 32px;
	height: 32px;
	padding: 0 6px;
	background: var(--cola-cao);
	border: 2px solid var(--cocoa-dark);
	border-radius: 999px;
	color: var(--cocoa-dark);
	font-family: var(--font-display);
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1;
}

@media only screen and (max-width: 760px) {
	.home-block {
		padding: 10px 0 8px;  /* 22px and 28px until 2026-11-04 */
	}
	.daily-body {
		grid-template-columns: 1fr;
	}
	/* Centred, as the quiz's page is on phones (owner, 2026-11-03: the same look) */
	.daily-side {
		text-align: center;
	}
	.daily-side .quiz-prize {
		justify-self: center;
	}
	.strip {
		grid-auto-columns: 140px;
	}
}

/* The prize line is quiz-parts.css's (shared with the quiz's page); here, on tablets, it is shortened too */
/* Tablets (761 to 900px): the question's column beside the small TV is narrow too */
@media only screen and (min-width: 761px) and (max-width: 900px) {
	.daily-side .prize-tail {
		display: none;
	}
}

/* ---- La programación (owner, 2026-11-08: "Añade una franja para ver la programación de cada
   canal en las próximas 6 horas y que sea collapsible", then "La programación debe tener el
   formato que usamos originalmente semanas atrás"): the TV page's guide of 2026-10-23 to
   2026-11-02, its rules as tele.css had them then (removed from it that day), with what this
   band adds: the heading is the <details>' summary, with a chevron, and the six hours of each
   channel run on sideways (that guide showed four programmes) ---- */
.guide {
	overflow: hidden;
	width: 100%;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 18px;
	box-shadow: 0 10px 24px rgba(91, 52, 32, 0.18);
}
.guide-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 18px;
	background: linear-gradient(to bottom, #5e3520, #43251a);
	cursor: pointer;
	list-style: none;
}
.guide-head::-webkit-details-marker {
	display: none;
}
.guide-head:focus-visible {
	outline: 3px solid var(--cola-cao);
	outline-offset: -3px;
}
.guide-head h2 {
	margin: 0 auto 0 0;
	color: var(--cola-cao);
	font-family: var(--font-display);
	font-size: 1.25rem;
	font-weight: 700;
	text-shadow: 2px 2px 0 var(--accent-bg);
}
.guide-clock {
	margin: 0;
	color: #7cfc6a;
	font-family: "VT323", ui-monospace, monospace;
	font-size: 1.375rem;
	white-space: nowrap;
	text-shadow: 0 0 6px rgba(124, 252, 106, 0.5);
}
/* The clock's colon blinks every second, like a video recorder */
.guide-clock .colon.is-off {
	visibility: hidden;
}
/* Folded: the clock waits (it runs while open) */
.schedule-fold:not([open]) .guide-clock {
	display: none;
}
/* The chevron, cream on the chocolate; turned when open */
.schedule-toggle {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border: 1px solid rgba(251, 238, 219, 0.35);
	border-radius: 999px;
	color: #fbeedb;
	transition: transform 0.2s ease, background-color 0.15s ease;
}
.guide-head:hover .schedule-toggle {
	background: rgba(251, 238, 219, 0.15);
}
.schedule-fold[open] .schedule-toggle {
	transform: rotate(180deg);
}
/* Folded, the box is the heading alone: its bottom corners rounded too */
.schedule-fold:not([open]) {
	box-shadow: 0 4px 12px rgba(91, 52, 32, 0.14);
}
/* Today's day and date in spaced capitals over a double rule, under the heading */
.guide-dateline {
	margin: 0;
	padding: 7px 18px 6px;
	border-bottom: 3px double var(--text);
	color: var(--text);
	font-family: var(--font-display);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-align: center;
	text-transform: uppercase;
}
.guide-dateline:empty {
	display: none;
}
.schedule-status {
	margin: 0;
	padding: 12px 18px;
	color: var(--muted);
	font-weight: 700;
}
.schedule-status[hidden] {
	display: none;
}
/* "CANAL 3" in its box (owner, 2026-11-01), in the screen's font */
.guide-number {
	display: inline-grid;
	flex-shrink: 0;
	place-items: center;
	min-width: 34px;
	height: 28px;
	padding: 0 7px;
	background: var(--cocoa);
	border-radius: 8px;
	color: var(--cola-cao);
	font-family: "VT323", ui-monospace, monospace;
	font-size: 1.125rem;
	text-transform: uppercase;
	white-space: nowrap;
}
.guide-name {
	font-size: 0.875rem;
	font-weight: 800;
}
/* The timeline (owner, 2026-11-08: "usa como referencia cómo se ve en https://spelunkr.tv/,
   donde se ve cada hora y cuánto falta de cada vídeo con diferente tamaño de rectángulo"): one
   box that scrolls sideways; the channels' column stays on the left; the hours and half hours
   across the top (sticky too, within the box); each programme a box as wide as it lasts
   (home.js's PX_PER_MINUTE), its title and the time left or its length; a red line for now,
   the time before it shaded. --epg-width (the six hours) and --epg-now come from home.js */
.epg {
	--epg-channel: 200px;
	--epg-row: 52px;
	/* Every channel at once on a desktop, no scrolling up and down inside it (owner, 2026-11-08:
	   "Evitar scroll vertical en la programación en desktop mostrando todo"; it was 70% of the
	   window high); sideways it still scrolls through the six hours */
	overflow-x: auto;
	overflow-y: hidden;
	/* Sideways only: up and down, the wheel or the finger scrolls the page (owner, 2026-11-10:
	   "Permite scroll de la página al pasar por encima de la programación"; `contain` in both
	   directions until then, which held it) */
	overscroll-behavior-x: contain;
	/* No scrollbar, as the other bands' rows (owner, 2026-11-08: "No mostrar la barra de
	   desplazamiento horizontal de la programación como en el resto de franjas"): it still
	   scrolls with a finger, a trackpad or Mayús+wheel */
	scrollbar-width: none;
}
.epg::-webkit-scrollbar {
	display: none;
}
.epg-inner {
	position: relative;
	width: calc(var(--epg-channel) + var(--epg-width));
}
.epg-row {
	display: flex;
	height: var(--epg-row);
	border-top: 1px solid var(--border);
}
.epg-head {
	position: sticky;
	top: 0;
	z-index: 3;
	height: 30px;
	border-top: 0;
	background: var(--cocoa);
	color: var(--cola-cao);
	font-family: "VT323", ui-monospace, monospace;
	font-size: 1.125rem;
}
.epg-channel {
	position: sticky;
	left: 0;
	z-index: 2;
	display: flex;
	flex: none;
	align-items: center;
	gap: 8px;
	width: var(--epg-channel);
	padding: 0 10px;
	border: 0;
	border-right: 1px solid var(--border);
	background: var(--surface);
	color: var(--text);
	font: inherit;
	text-align: left;
	cursor: pointer;
}
button.epg-channel:hover {
	background: var(--surface-hover);
}
.epg-channel .guide-name {
	display: -webkit-box;
	overflow: hidden;
	font-size: 0.8125rem;
	line-height: 1.2;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}
.epg-corner {
	background: var(--cocoa);
	color: var(--cola-cao);
	text-transform: uppercase;
	cursor: default;
}
.epg-track {
	position: relative;
	flex: none;
	width: var(--epg-width);
}
/* Before now: shaded; now: a red line down the whole timeline */
.epg-track:not(.epg-axis)::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	z-index: 0;  /* under the boxes */
	width: var(--epg-now);
	background: rgba(91, 52, 32, 0.12);
	pointer-events: none;
}
.epg-track::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: -1px;
	left: var(--epg-now);
	z-index: 2;  /* over the boxes */
	width: 2px;
	background: var(--accent-bg);
	pointer-events: none;
}
.epg-tick {
	position: absolute;
	top: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	padding-left: 6px;
	border-left: 1px solid rgba(246, 185, 26, 0.35);
	opacity: 0.75;
	white-space: nowrap;
}
.epg-tick.is-hour {
	border-left-color: var(--cola-cao);
	opacity: 1;
}
/* A programme: a rounded box as wide as it lasts (2px apart) */
.epg-show {
	position: absolute;
	top: 5px;
	bottom: 5px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	z-index: 1;
	min-width: 2px;
	padding: 0 8px;
	overflow: hidden;
	border: 1px solid rgba(91, 52, 32, 0.25);
	border-radius: 6px;
	background: #f6e1c0;
	color: var(--text);
	font: inherit;
	text-align: left;
	cursor: pointer;
}
.epg-show:hover {
	background: #efd2a6;
}
.epg-show:focus-visible,
.epg-channel:focus-visible {
	outline: 3px solid var(--cola-cao);
	outline-offset: -3px;
}
/* On air: chocolate, its title in Cola Cao yellow */
.epg-show.is-live {
	border-color: var(--cocoa);
	background: var(--cocoa);
	color: #fbeedb;
}
.epg-show.is-live:hover {
	background: #6b3d25;
}
.epg-show.is-live .epg-title {
	color: var(--cola-cao);
}
.epg-show.is-past {
	opacity: 0.55;
	cursor: default;
}
.epg-show.is-ads {
	background: repeating-linear-gradient(135deg, #f6e1c0 0 10px, #f1d7ae 10px 20px);
	cursor: default;
}
.epg-title,
.epg-note {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.epg-title {
	font-size: 0.8125rem;
	font-weight: 800;
	line-height: 1.2;
}
.epg-note {
	font-family: "VT323", ui-monospace, monospace;
	font-size: 0.9375rem;
	line-height: 1;
	opacity: 0.8;
}
/* The line under the grid: the whole of the programme under the mouse or the focus (home.js,
   owner, 2026-11-11: with an hour on screen, a short's box shows only its series). One line, the
   VCR's font as the boxes' lengths; no hover on a touch screen, so there it isn't shown */
.epg-detail {
	margin: 6px 0 0;
	padding: 0 4px;
	text-align: center;  /* (owner, 2026-11-14: "Centra el texto Pasa el ratón por un..."; the programme's line too, so it doesn't jump) */
	min-height: 1.2em;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-family: "VT323", ui-monospace, monospace;
	font-size: 1.0625rem;
	line-height: 1.2;
	color: var(--text);
	opacity: 0.85;
}
@media (hover: none) {
	.epg-detail {
		display: none;
	}
}
/* Phones: a narrower channels' column */
@media only screen and (max-width: 640px) {
	.epg {
		--epg-channel: 120px;
		/* Phones: every channel at once too (2026-11-10, so a finger over it scrolls the page;
		   until then within 70% of the screen, scrolling up and down inside it) */
	}
	.epg-channel .guide-number {
		font-size: 1rem;
	}
	.epg-channel {
		flex-direction: column;
		align-items: flex-start;
		justify-content: center;
		gap: 2px;
		padding: 0 6px;
	}
	.epg-channel .guide-name {
		-webkit-line-clamp: 1;
		font-size: 0.75rem;
	}
	.epg-corner {
		flex-direction: row;
		align-items: center;
	}
}
@media only screen and (max-width: 520px) {
	.guide-head {
		flex-wrap: wrap;
		row-gap: 4px;
	}
	.guide-clock {
		order: 3;
		flex-basis: 100%;
	}
}
@media (prefers-reduced-motion: reduce) {
	.schedule-toggle {
		transition: none;
	}
	.guide-clock .colon.is-off {
		visibility: visible;
	}
}

/* ---- La programación, subtle tones (owner, 2026-11-10: "Vuelve al estilo original aunque
   añadiendo variación de tonos o colores sutil", then "Y elimina tanta variedad de colores": for
   a while the programmes also took five soft tints in turn and the numbers three browns, taken
   out): the original look above, the rows alternating two creams only ---- */
.epg-row:not(.epg-head):nth-child(odd) {
	background: rgba(246, 225, 192, 0.35);
}
.epg-row:not(.epg-head):nth-child(odd) .epg-channel {
	background: #fbf1e1;
}
/* The red line of now, thicker (owner, 2026-11-10: "Haz la linea roja de tiempo más gruesa"; 2px
   until then), centred on the minute */
.epg-track::after {
	width: 4px;
	margin-left: -1px;
	border-radius: 2px;
}
