/* Rapid Ticker — Daily Dot (fast news). Live strip, one bold lead, yellow-dot timeline feed. */
.epg-rapid { --rp-ink: #111111; --rp-yellow: var(--accent); --rp-stamp: #a16207; }
[data-theme="dark"] .epg-rapid { --rp-stamp: var(--accent); }

.epg-rapid__wrap { border-bottom: 1px solid var(--border); }

/* live strip */
.epg-rapid__strip { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 10px 14px; background: var(--rp-ink); color: #fff; font: 600 13px/1.2 var(--font-heading); }
.epg-rapid__live { display: inline-flex; flex-shrink: 0; align-items: center; gap: 8px; padding: 6px 10px 6px 9px; background: var(--rp-yellow); color: var(--rp-ink); font: 900 11px/1 var(--font-heading); letter-spacing: 1.6px; text-transform: uppercase; }
.epg-rapid__pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #dc2626; }
.epg-rapid__pulse::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #dc2626; animation: epg-rapid-pulse 1.6s ease-out infinite; }
@keyframes epg-rapid-pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3); opacity: 0; } }
.epg-rapid__strip-text { overflow: hidden; min-width: 0; white-space: nowrap; text-overflow: ellipsis; opacity: .82; }
.epg-rapid__count { flex-shrink: 0; margin-left: auto; padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .22); color: var(--rp-yellow); font-weight: 800; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
[data-theme="dark"] .epg-rapid__strip { background: var(--rp-yellow); color: var(--rp-ink); }
[data-theme="dark"] .epg-rapid__live { background: var(--rp-ink); color: var(--rp-yellow); }
[data-theme="dark"] .epg-rapid__count { color: var(--rp-ink); border-left-color: rgba(0, 0, 0, .25); }

.epg-rapid__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); align-items: stretch; }
.is-short .epg-rapid__grid { grid-template-columns: minmax(0, 1fr); }

/* lead */
.epg-rapid__lead { min-width: 0; padding: 26px 30px 6px 0; border-right: 1px solid var(--border); }
.is-short .epg-rapid__lead { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 34px; align-items: center; padding: 26px 0; border-right: 0; }
.is-short .epg-rapid__lead:not(:only-child) { border-bottom: 3px solid var(--text-main); }
.is-short .epg-rapid__feed { padding: 8px 0 0; }
.is-short .epg-rapid__row { grid-template-columns: 110px 22px minmax(0, 1fr) 120px; }
.is-short .epg-rapid__row::before { left: calc(110px + 12px + 10px); }
.is-short .epg-rapid__thumb { width: 120px; }
.is-short .epg-rapid__title { font-size: 17px; }
.epg-rapid__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 2px; background: var(--bg-section-alt); }
.epg-rapid__media img, .epg-rapid__media .epj-ph { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.epg-rapid__lead:hover .epg-rapid__media img { transform: scale(1.04); }
.epg-rapid__flag { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 5px; padding: 8px 12px; background: var(--rp-yellow); color: var(--rp-ink); font: 900 11px/1 var(--font-heading); letter-spacing: 1.4px; text-transform: uppercase; }
.epg-rapid__flag i { font-size: 13px; }
.epg-rapid__lead-body { padding-top: 20px; }
.is-short .epg-rapid__lead-body { padding-top: 0; }
.epg-rapid__lead-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 12px; }
.epg-rapid__cat { display: inline-flex; align-items: center; gap: 7px; color: var(--text-main) !important; font: 800 11px/1 var(--font-heading); letter-spacing: 1.5px; text-transform: uppercase; }
.epg-rapid__cat::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--rp-yellow); }
.epg-rapid__cat:hover { color: var(--rp-stamp) !important; }
.epg-rapid__stamp { display: inline-flex; align-items: center; gap: 5px; color: var(--rp-stamp); font: 700 12px/1 var(--font-heading); letter-spacing: .3px; text-transform: uppercase; }
.epg-rapid__stamp i { font-size: 14px; }
.epg-rapid__lead-title { margin: 0 0 12px; font-family: var(--font-heading); font-size: clamp(1.55rem, 1.05rem + 1.35vw, 2.3rem); font-weight: 900; line-height: 1.12; letter-spacing: -1px; }
.epg-rapid__lead-title a,
.epg-rapid__title {
	color: var(--text-main);
	background: linear-gradient(var(--rp-yellow), var(--rp-yellow)) 0 92% / 0 .34em no-repeat;
	transition: background-size .35s ease;
}
.epg-rapid__lead-title a:hover, .epg-rapid__title:hover { background-size: 100% .34em; }
[data-theme="dark"] .epg-rapid__lead-title a, [data-theme="dark"] .epg-rapid__title { background-image: linear-gradient(color-mix(in srgb, var(--rp-yellow) 55%, transparent), color-mix(in srgb, var(--rp-yellow) 55%, transparent)); }
.epg-rapid__excerpt { margin: 0 0 14px; font-size: 15.5px; line-height: 1.6; color: color-mix(in srgb, var(--text-main) 70%, transparent); }

/* timeline feed */
.epg-rapid__feed { display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 12px 0 0 30px; list-style: none; counter-reset: none; }
.epg-rapid__row {
	position: relative; display: grid; flex: 1 1 auto; grid-template-columns: 78px 22px minmax(0, 1fr) 76px; gap: 0 12px; align-items: center;
	margin: 0; padding: 14px 0; border-bottom: 1px solid var(--border);
}
.epg-rapid__row:last-child { border-bottom: 0; }
.epg-rapid__row::marker { content: none; }
/* the line the dots hang on */
.epg-rapid__row::before { content: ''; position: absolute; top: 0; bottom: -1px; left: calc(78px + 12px + 10px); width: 2px; background: color-mix(in srgb, var(--rp-yellow) 35%, var(--border)); }
.epg-rapid__row:first-child::before { top: 50%; }
.epg-rapid__row:last-child::before { bottom: 50%; }
.epg-rapid__row:only-child::before { display: none; }
.epg-rapid__when { color: var(--text-main); font: 800 11.5px/1.25 var(--font-heading); letter-spacing: .4px; text-transform: uppercase; }
.epg-rapid__dot { position: relative; z-index: 1; justify-self: center; width: 14px; height: 14px; border-radius: 50%; background: var(--rp-yellow); box-shadow: 0 0 0 4px var(--bg-body); }
.epg-rapid__row:first-child .epg-rapid__dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--rp-yellow); animation: epg-rapid-pulse 1.8s ease-out infinite; }
.epg-rapid__row:first-child .epg-rapid__when { color: var(--rp-stamp); }
.epg-rapid__item { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.epg-rapid__item .epg-rapid__cat { font-size: 10px; letter-spacing: 1.3px; color: color-mix(in srgb, var(--text-main) 62%, transparent) !important; }
.epg-rapid__item .epg-rapid__cat::before { width: 5px; height: 5px; border-radius: 0; background: currentColor; }
.epg-rapid__title {
	display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
	font: 700 15.5px/1.38 var(--font-heading); letter-spacing: -.2px;
}
.epg-rapid__thumb { display: block; width: 76px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px; background: var(--bg-section-alt); }
@media (min-width: 993px) { .epg-rapid__wrap:not(.is-short) .epg-rapid__feed:not(:has(> :nth-child(4))) .epg-rapid__thumb { width: 104px; } }
.epg-rapid__thumb img, .epg-rapid__thumb .epj-ph { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25); transition: filter .3s; }
.epg-rapid__row:hover .epg-rapid__thumb img { filter: none; }

@media (max-width: 992px) {
	.epg-rapid__grid { grid-template-columns: minmax(0, 1fr); }
	.epg-rapid__lead { padding: 22px 0 18px; border-right: 0; border-bottom: 3px solid var(--text-main); }
	.epg-rapid__feed { padding: 8px 0 0; }
	.is-short .epg-rapid__lead { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 22px 0 18px; }
	.is-short .epg-rapid__lead-body { padding-top: 20px; }
	.is-short .epg-rapid__row { grid-template-columns: 78px 22px minmax(0, 1fr) 76px; }
	.is-short .epg-rapid__row::before { left: calc(78px + 12px + 10px); }
	.is-short .epg-rapid__thumb { width: 76px; }
	.is-short .epg-rapid__title { font-size: 15.5px; }
}
@media (max-width: 600px) {
	.epg-rapid__strip { gap: 10px; padding: 9px 10px; }
	.epg-rapid__strip-text { display: none; }
	.epg-rapid__row.epg-rapid__row { grid-template-columns: 58px 18px minmax(0, 1fr) 60px; gap: 0 10px; }
	.epg-rapid__row.epg-rapid__row::before { left: calc(58px + 10px + 8px); }
	.epg-rapid__dot { width: 12px; height: 12px; }
	.epg-rapid__thumb.epg-rapid__thumb { width: 60px; }
	.epg-rapid__title.epg-rapid__title { font-size: 14.5px; }
	.epg-rapid__when { font-size: 10.5px; }
	.epg-rapid__lead-title { letter-spacing: -.6px; }
}
@media (prefers-reduced-motion: reduce) {
	.epg-rapid__pulse::after, .epg-rapid__row:first-child .epg-rapid__dot::after { animation: none; display: none; }
}
