/* Egide Live Channels — player + channel grid. Mobile-first. */

.elc {
	--elc-bg: #05070c;
	--elc-surface: #10151f;
	--elc-surface-2: #182030;
	--elc-line: rgba(255, 255, 255, .08);
	--elc-text: #f2f4f8;
	--elc-muted: #9aa4b6;
	--elc-accent: #1e90ff;
	--elc-accent-ink: #ffffff;
	--elc-live: #ff3045;
	--elc-radius: 14px;
	color: var(--elc-text);
	-webkit-tap-highlight-color: transparent;
}
.elc *, .elc *::before, .elc *::after { box-sizing: border-box; }
.elc button { font: inherit; color: inherit; }

/* ---------- Stage (player area) ---------- */
.elc-stage {
	position: relative;
	margin: 0 0 16px;
	scroll-margin-top: 72px;
}
.elc-stage__empty {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
	aspect-ratio: 16 / 9; max-height: 60vh; width: 100%;
	background: radial-gradient(120% 120% at 50% 0%, var(--elc-surface-2), var(--elc-surface));
	border: 1px solid var(--elc-line); border-radius: var(--elc-radius);
	color: var(--elc-muted); text-align: center; padding: 16px;
}
.elc-stage__empty p { margin: 0; font-size: 15px; }
.elc-stage__icon {
	width: 52px; height: 52px; border-radius: 50%;
	background: var(--elc-surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232ee6a6'%3E%3Cpath d='M8 5.5v13a1 1 0 0 0 1.5.86l10.5-6.5a1 1 0 0 0 0-1.72L9.5 4.64A1 1 0 0 0 8 5.5z'/%3E%3C/svg%3E") 56% 50% / 24px no-repeat;
}

/* ---------- LIVE badge ---------- */
.elc-live {
	display: inline-flex; align-items: center; gap: 5px;
	background: var(--elc-live); color: #fff;
	font-size: 11px; font-weight: 800; letter-spacing: .08em; line-height: 1;
	padding: 4px 7px; border-radius: 5px;
}
.elc-live::before {
	content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff;
	animation: elc-blink 1.4s ease-in-out infinite;
}
@keyframes elc-blink { 50% { opacity: .25; } }

/* ---------- TV ---------- */
.elc-tv__frame {
	position: relative;
	box-shadow: 0 0 0 1px rgba(30, 144, 255, .18), 0 18px 50px rgba(30, 144, 255, .12);
	aspect-ratio: 16 / 9; width: 100%;
	background: #000; border-radius: var(--elc-radius);
}
.elc-tv__video, .elc-tv__embed {
	position: absolute; inset: 0; width: 100%; height: 100%;
	border: 0; border-radius: var(--elc-radius); background: #000;
	object-fit: contain; display: block;
}
.elc-tv__bar {
	display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px;
	padding: 12px 2px 0;
}
.elc-tv__name { font-size: 17px; font-weight: 700; }
.elc-tv__tag { color: var(--elc-muted); font-size: 14px; }
.elc-tv__status { margin-left: auto; color: var(--elc-muted); font-size: 13px; }

.elc-spinner {
	position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px;
	border-radius: 50%; border: 4px solid rgba(255,255,255,.2); border-top-color: var(--elc-accent);
	animation: elc-spin .9s linear infinite; pointer-events: none; display: none;
}
.elc-tv[data-state="loading"] .elc-spinner { display: block; }
@keyframes elc-spin { to { transform: rotate(360deg); } }

/* "Tap to play" — the whole circle is the button. */
.elc-tapplay {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
	width: 84px; height: 84px; border-radius: 50%; border: 0; padding: 0;
	background: var(--elc-accent); color: var(--elc-accent-ink);
	display: flex; align-items: center; justify-content: center; cursor: pointer;
	box-shadow: 0 0 0 10px rgba(30, 144, 255, .22), 0 10px 30px rgba(0,0,0,.5);
	z-index: 3;
}
.elc-tapplay[hidden] { display: none; }
.elc-tapplay svg, .elc-bigplay svg { width: 40%; height: 40%; fill: currentColor; pointer-events: none; }

/* ---------- Radio ---------- */
.elc-radio, .elc-ready {
	position: relative;
	display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px;
	padding: 24px 16px 28px;
	background:
		radial-gradient(90% 70% at 50% 0%, rgba(46, 230, 166, .14), transparent 70%),
		var(--elc-surface);
	border: 1px solid var(--elc-line); border-radius: var(--elc-radius);
}
.elc-radio__art { position: relative; }
.elc-radio__img, .elc-ready__img {
	display: flex; align-items: center; justify-content: center;
	width: 150px; height: 150px; border-radius: 22px; object-fit: cover;
	background: var(--elc-surface-2);
	box-shadow: 0 16px 40px rgba(0,0,0,.45);
}
.elc-radio__img--text, .elc-ready__img--text {
	font-size: 46px; font-weight: 800; letter-spacing: .02em;
	background: linear-gradient(135deg, #2ee6a6, #1b8cff); color: #04130d;
}
.elc-radio[data-state="playing"] .elc-radio__img { animation: elc-breathe 3.2s ease-in-out infinite; }
@keyframes elc-breathe { 50% { transform: scale(1.03); } }

.elc-radio__info, .elc-ready__info { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.elc-radio__top { display: flex; align-items: center; gap: 8px; min-height: 19px; }
.elc-radio__tag { color: var(--elc-muted); font-size: 13px; }
.elc-radio__name, .elc-ready__name { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 800; word-break: break-word; }
.elc-radio__status { margin: 0; color: var(--elc-muted); font-size: 14px; min-height: 1.4em; }
.elc-radio[data-state="playing"] .elc-radio__status { color: var(--elc-accent); }
.elc-radio__audio { display: none; }

/* Equalizer bars: dance only while sound is playing. */
.elc-eq { display: flex; align-items: flex-end; justify-content: center; gap: 4px; height: 28px; margin-top: 4px; }
.elc-eq span {
	width: 5px; height: 100%; border-radius: 3px; background: var(--elc-accent);
	transform-origin: bottom; transform: scaleY(.18); opacity: .5;
	transition: transform .3s, opacity .3s;
}
.elc-radio[data-state="playing"] .elc-eq span { opacity: 1; animation: elc-eq 1s ease-in-out infinite alternate; }
.elc-radio[data-state="playing"] .elc-eq span:nth-child(1) { animation-duration: .9s; }
.elc-radio[data-state="playing"] .elc-eq span:nth-child(2) { animation-duration: .6s; animation-delay: -.3s; }
.elc-radio[data-state="playing"] .elc-eq span:nth-child(3) { animation-duration: .8s; animation-delay: -.5s; }
.elc-radio[data-state="playing"] .elc-eq span:nth-child(4) { animation-duration: .55s; animation-delay: -.2s; }
.elc-radio[data-state="playing"] .elc-eq span:nth-child(5) { animation-duration: .75s; animation-delay: -.4s; }
@keyframes elc-eq { 0% { transform: scaleY(.2); } 50% { transform: scaleY(1); } 100% { transform: scaleY(.45); } }

/* Big round play/pause — the <button> is the circle itself. */
.elc-bigplay {
	position: relative;
	width: 88px; height: 88px; border-radius: 50%; border: 0; padding: 0;
	background: var(--elc-accent); color: var(--elc-accent-ink);
	display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
	cursor: pointer; touch-action: manipulation;
	box-shadow: 0 0 0 8px rgba(30, 144, 255, .2), 0 12px 28px rgba(0,0,0,.4);
	transition: transform .12s, box-shadow .2s;
}
.elc-bigplay:active { transform: scale(.94); }
.elc-bigplay:focus-visible, .elc-tapplay:focus-visible, .elc-card:focus-visible, .elc-filter:focus-visible, .elc-btn:focus-visible {
	outline: 3px solid #fff; outline-offset: 3px;
}
.elc-radio[data-state="loading"] .elc-bigplay { animation: elc-ring 1.2s ease-in-out infinite; }
@keyframes elc-ring { 50% { box-shadow: 0 0 0 16px rgba(30, 144, 255, .06), 0 12px 28px rgba(0,0,0,.4); } }

/* ---------- Error box ---------- */
.elc-error {
	position: absolute; inset: 0; z-index: 4;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
	padding: 16px; text-align: center;
	background: rgba(11, 15, 23, .94); border-radius: var(--elc-radius);
}
.elc-error[hidden] { display: none; }
.elc-error__msg { margin: 0; max-width: 34ch; color: var(--elc-text); font-size: 15px; line-height: 1.45; }
.elc-btn {
	min-height: 44px; padding: 0 20px; border-radius: 999px; border: 0; cursor: pointer;
	background: var(--elc-surface-2); color: var(--elc-text); font-weight: 700;
}

/* ---------- Filters ---------- */
.elc-filters {
	display: flex; gap: 8px; margin: 0 0 14px; padding: 2px 0 4px;
	overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.elc-filters::-webkit-scrollbar { display: none; }
.elc-filter {
	display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
	min-height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
	border: 1px solid var(--elc-line); background: var(--elc-surface); color: var(--elc-muted);
	font-size: 14px; font-weight: 600;
}
.elc-filter.is-active { background: var(--elc-text); color: var(--elc-bg); border-color: transparent; }
.elc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--elc-live); }

/* ---------- Channel grid ---------- */
.elc-grid {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
.elc-grid__item[hidden] { display: none; }

/* The whole card is one button — nothing clickable nested inside. */
.elc-card {
	display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
	width: 100%; height: 100%; min-height: 128px; padding: 12px; margin: 0;
	text-align: left; cursor: pointer; touch-action: manipulation;
	background: var(--elc-surface); border: 1px solid var(--elc-line); border-radius: var(--elc-radius);
	transition: border-color .15s, background .15s, transform .1s;
}
.elc-card:active { transform: scale(.97); }
.elc-card.is-current { border-color: var(--elc-accent); background: var(--elc-surface-2); box-shadow: inset 0 0 0 1px var(--elc-accent); }
.elc-card__logo {
	display: flex; align-items: center; justify-content: center;
	width: 52px; height: 52px; border-radius: 12px; object-fit: cover;
	background: var(--elc-surface-2); pointer-events: none;
}
.elc-card__logo--text { font-weight: 800; font-size: 18px; background: linear-gradient(135deg, #2ee6a6, #1b8cff); color: #04130d; }
.elc-card__name {
	font-size: 15px; font-weight: 700; line-height: 1.25; pointer-events: none;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.elc-card__meta { display: flex; align-items: center; gap: 6px; margin-top: auto; pointer-events: none; }
.elc-card__tag { color: var(--elc-muted); font-size: 12px; }

.elc-none { color: var(--elc-muted); text-align: center; padding: 24px 0; margin: 0; }
.elc-none[hidden] { display: none; }

/* =========================================================
   Three sections: Football · Live TV · Live Radio
   ========================================================= */
.elc { --elc-tv: #4da3ff; --elc-radio: #b98cff; --elc-match: #2ee6a6; }

.elc-sec { margin: 0 0 26px; }
.elc-sec[hidden] { display: none; }
.elc-sec__title {
	display: flex; align-items: center; gap: 10px;
	margin: 0 0 12px; font-size: 18px; line-height: 1.2; font-weight: 800; letter-spacing: -.01em;
	color: var(--elc-text);
}
.elc-sec__title::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--elc-line); }

/* Section icons (pure CSS masks, no image files) */
.elc-ico { width: 18px; height: 18px; flex: 0 0 auto; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.elc-sec__title .elc-ico { width: 26px; height: 26px; padding: 0; border-radius: 8px; }
.elc-ico--match { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm0 2.2 2.6 1.9-1 3.1h-3.2l-1-3.1L12 4.2zM5.6 7.4l2.5.8 1 3.1-2.6 1.9-2.3-1.6a8 8 0 0 1 1.4-4.2zm12.8 0a8 8 0 0 1 1.4 4.2l-2.3 1.6-2.6-1.9 1-3.1 2.5-.8zM10.4 13h3.2l1 3.1-2.6 1.9-2.6-1.9 1-3.1zm-4.6 1.4 2.4 1.7-.3 3a8 8 0 0 1-3.3-3.5l1.2-1.2zm12.4 0 1.2 1.2a8 8 0 0 1-3.3 3.5l-.3-3 2.4-1.7z'/%3E%3C/svg%3E"); color: var(--elc-match); }
.elc-ico--tv { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8.3 2.3 12 6l3.7-3.7 1.4 1.4L14.8 6H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h5.2L6.9 3.7l1.4-1.4zM4 8v10h16V8H4z'/%3E%3C/svg%3E"); color: var(--elc-tv); }
.elc-ico--radio { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.4 3.2 7.6 6.8A2 2 0 0 0 6 8.7V19a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-6.9l6-2-.7-1.8zM8 9h12v3H8V9zm3 5.5a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5zM16 15h3v1.5h-3V15zm0 3h3v1.5h-3V18z'/%3E%3C/svg%3E"); color: var(--elc-radio); }
.elc-filter .elc-ico { width: 16px; height: 16px; }
.elc-filter.is-active .elc-ico { color: var(--elc-bg); }

/* TV vs Radio cards get their own accent */
.elc-card--tv .elc-card__logo--text { background: linear-gradient(135deg, #4da3ff, #2563eb); color: #fff; }
.elc-card--radio .elc-card__logo--text { background: linear-gradient(135deg, #c9a2ff, #7c3aed); color: #fff; }
.elc-card--radio .elc-card__logo { border-radius: 50%; }
.elc-card--tv.is-current { border-color: var(--elc-tv); box-shadow: inset 0 0 0 1px var(--elc-tv); }
.elc-card--radio.is-current { border-color: var(--elc-radio); box-shadow: inset 0 0 0 1px var(--elc-radio); }

/* ---------- Match cards ---------- */
.elc-grid--match { grid-template-columns: 1fr !important; }
.elc-mcard {
	min-height: 0; gap: 10px; padding: 12px 14px 14px;
	background:
		repeating-linear-gradient(90deg, rgba(46, 230, 166, .035) 0 28px, transparent 28px 56px),
		linear-gradient(160deg, rgba(46, 230, 166, .12), transparent 55%),
		var(--elc-surface);
}
.elc-mcard__comp {
	display: flex; align-items: center; gap: 6px; width: 100%;
	font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--elc-muted);
	pointer-events: none;
}
.elc-mcard__comp::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--elc-match); }
.elc-mcard__row {
	display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; width: 100%;
	pointer-events: none;
}
.elc-team { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; text-align: center; }
.elc-team__logo {
	display: flex; align-items: center; justify-content: center;
	width: 46px; height: 46px; border-radius: 50%; object-fit: contain;
	background: var(--elc-surface-2); box-shadow: 0 0 0 2px var(--elc-line);
}
.elc-team__logo--text { font-size: 13px; font-weight: 800; color: var(--elc-text); }
.elc-team__name {
	font-size: 14px; font-weight: 700; line-height: 1.2; max-width: 100%;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.elc-mstatus { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 76px; text-align: center; }
.elc-mstatus__main { font-size: 22px; font-weight: 900; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.elc-mstatus__sub { font-size: 12px; color: var(--elc-muted); line-height: 1.3; white-space: nowrap; }
.elc-mcard.is-finished { opacity: .72; }
.elc-mcard.is-current { border-color: var(--elc-match); box-shadow: inset 0 0 0 1px var(--elc-match); }

/* ---------- Scoreboard (match stage) ---------- */
.elc-board {
	padding: 14px 12px 16px; margin: 0 0 10px;
	border: 1px solid var(--elc-line); border-radius: var(--elc-radius);
	background:
		repeating-linear-gradient(90deg, rgba(46, 230, 166, .04) 0 34px, transparent 34px 68px),
		linear-gradient(180deg, rgba(46, 230, 166, .14), transparent 80%),
		var(--elc-surface);
}
.elc-board__top { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.elc-board__comp { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--elc-muted); }
.elc-board__when { font-size: 12px; color: var(--elc-muted); }
.elc-board__row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; }
.elc-board__team { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; text-align: center; }
.elc-board__logo {
	display: flex; align-items: center; justify-content: center;
	width: 60px; height: 60px; border-radius: 50%; object-fit: contain;
	background: var(--elc-surface-2); box-shadow: 0 0 0 3px var(--elc-line);
}
.elc-board__logo--text { font-size: 16px; font-weight: 900; }
.elc-board__name { font-size: 16px; font-weight: 800; line-height: 1.2; word-break: break-word; }
.elc-board__score { font-size: 34px; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: .02em; padding: 0 4px; }

.elc-tv--match .elc-tv__bar { padding-top: 8px; }
.elc-tv--match .elc-tv__status { margin-left: 0; }

/* ---------- Before kick-off ---------- */
.elc-mwait__body {
	display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
	padding: 18px 14px 22px; border: 1px solid var(--elc-line); border-radius: var(--elc-radius); background: var(--elc-surface);
}
.elc-mwait__label { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--elc-muted); }
.elc-mwait__note, .elc-mwait__msg { margin: 0; color: var(--elc-muted); font-size: 14px; max-width: 34ch; }
.elc-countdown { display: flex; gap: 8px; }
.elc-countdown__cell {
	display: flex; flex-direction: column; align-items: center; min-width: 62px; padding: 10px 6px 8px;
	border-radius: 12px; background: var(--elc-surface-2); border: 1px solid var(--elc-line);
}
.elc-countdown__cell[hidden] { display: none; }
.elc-countdown__num { font-size: 28px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; color: var(--elc-match); }
.elc-countdown__unit { margin-top: 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--elc-muted); }

/* "Watch live" — the whole pill is the button */
.elc-watch {
	display: inline-flex; align-items: center; gap: 8px;
	min-height: 52px; padding: 0 26px 0 20px; border: 0; border-radius: 999px; cursor: pointer;
	background: var(--elc-match); color: var(--elc-accent-ink); font-size: 16px; font-weight: 800;
	box-shadow: 0 0 0 6px rgba(46, 230, 166, .15); touch-action: manipulation;
}
.elc-watch svg { width: 20px; height: 20px; fill: currentColor; pointer-events: none; }
.elc-watch span { pointer-events: none; }
.elc-watch:active { transform: scale(.96); }
.elc-watch:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* Radio player uses the radio accent */
.elc-stage.is-radio .elc-radio {
	background: radial-gradient(90% 70% at 50% 0%, rgba(185, 140, 255, .18), transparent 70%), var(--elc-surface);
}
.elc-stage.is-radio .elc-bigplay { background: var(--elc-radio); color: #1a0b2e; box-shadow: 0 0 0 8px rgba(185, 140, 255, .18), 0 12px 28px rgba(0,0,0,.4); }
.elc-stage.is-radio .elc-eq span { background: var(--elc-radio); }
.elc-stage.is-radio .elc-radio[data-state="playing"] .elc-radio__status { color: var(--elc-radio); }
.elc-stage.is-radio .elc-radio__img--text { background: linear-gradient(135deg, #c9a2ff, #7c3aed); color: #fff; border-radius: 50%; }

/* =========================================================
   Live TV explorer — globe + "Select a Country" sidebar
   ========================================================= */
.elc-explorer {
	display: flex; flex-direction: column;
	margin: 0 0 18px; border-radius: var(--elc-radius); border: 1px solid var(--elc-line);
	background: #000;
}
.elc-explorer__globe {
	position: relative;
	display: flex; align-items: center; justify-content: center;
	aspect-ratio: 1 / 1; max-height: 520px; width: 100%;
	border-radius: var(--elc-radius) var(--elc-radius) 0 0;
	background:
		radial-gradient(1px 1px at 8% 14%, rgba(255,255,255,.85), transparent 60%),
		radial-gradient(1px 1px at 23% 61%, rgba(255,255,255,.6), transparent 60%),
		radial-gradient(1.5px 1.5px at 41% 7%, rgba(255,255,255,.7), transparent 60%),
		radial-gradient(1px 1px at 63% 88%, rgba(255,255,255,.6), transparent 60%),
		radial-gradient(1px 1px at 79% 22%, rgba(255,255,255,.8), transparent 60%),
		radial-gradient(1.5px 1.5px at 91% 67%, rgba(255,255,255,.7), transparent 60%),
		radial-gradient(1px 1px at 12% 86%, rgba(255,255,255,.5), transparent 60%),
		radial-gradient(1px 1px at 54% 38%, rgba(255,255,255,.45), transparent 60%),
		radial-gradient(1px 1px at 33% 30%, rgba(255,255,255,.5), transparent 60%),
		radial-gradient(1px 1px at 71% 52%, rgba(255,255,255,.4), transparent 60%),
		radial-gradient(1px 1px at 96% 9%, rgba(255,255,255,.6), transparent 60%),
		radial-gradient(1px 1px at 4% 44%, rgba(255,255,255,.5), transparent 60%),
		radial-gradient(1px 1px at 47% 96%, rgba(255,255,255,.6), transparent 60%),
		radial-gradient(1px 1px at 86% 94%, rgba(255,255,255,.4), transparent 60%),
		#02030a;
	background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, auto;
}
/* Sideways drag spins the globe; up/down still scrolls the page. */
.elc-globe__canvas { display: block; touch-action: none; /* fingers handled in globe.js: spin, pinch-zoom or scroll */ cursor: grab; -webkit-user-select: none; user-select: none; }
.elc-globe__canvas:active { cursor: grabbing; }
.elc-explorer[data-state="idle"] .elc-globe__canvas,
.elc-explorer[data-state="loading"] .elc-globe__canvas { visibility: hidden; position: absolute; }
.elc-globe__loading {
	display: none; width: 44px; height: 44px; border-radius: 50%;
	border: 4px solid rgba(255,255,255,.15); border-top-color: var(--elc-tv);
	animation: elc-spin .9s linear infinite;
}
.elc-explorer[data-state="loading"] .elc-globe__loading,
.elc-explorer[data-state="idle"] .elc-globe__loading { display: block; }
.elc-explorer[data-state="error"] .elc-explorer__globe { display: none; }

.elc-explorer__hint {
	position: absolute; left: 0; right: 0; top: 12px; margin: 0; text-align: center;
	font-size: 13px; color: rgba(255,255,255,.65); pointer-events: none;
}
.elc-explorer__hint[hidden] { display: none; }

.elc-globe__toast {
	position: absolute; left: 50%; top: 40px; transform: translate(-50%, -6px);
	max-width: calc(100% - 24px); padding: 8px 14px; border-radius: 999px;
	background: rgba(20, 26, 38, .95); border: 1px solid var(--elc-line);
	font-size: 13px; color: var(--elc-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; z-index: 2;
}
.elc-globe__toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* "Random" — the whole pill is the button */
.elc-spin {
	position: absolute; left: 12px; bottom: 12px; z-index: 2;
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer;
	background: var(--elc-tv); color: #04122a; font-weight: 800; font-size: 15px; touch-action: manipulation;
	box-shadow: 0 0 0 5px rgba(77, 163, 255, .18), 0 8px 20px rgba(0,0,0,.5);
}
.elc-spin:active { transform: scale(.96); }
.elc-spin:disabled { opacity: .8; cursor: progress; }
.elc-spin:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.elc-spin__icon {
	width: 18px; height: 18px; background: currentColor; pointer-events: none;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm6.9 6h-2.9a15.7 15.7 0 0 0-1.4-3.6A8 8 0 0 1 18.9 8zM12 4a14 14 0 0 1 1.9 4h-3.8A14 14 0 0 1 12 4zM4.3 14a8.3 8.3 0 0 1 0-4h3.4a16.5 16.5 0 0 0 0 4H4.3zm.8 2h2.9c.3 1.3.8 2.5 1.4 3.6A8 8 0 0 1 5.1 16zM8 8H5.1a8 8 0 0 1 4.3-3.6C8.8 5.5 8.3 6.7 8 8zm4 12a14 14 0 0 1-1.9-4h3.8A14 14 0 0 1 12 20zm2.3-6H9.7a14.7 14.7 0 0 1 0-4h4.6a14.7 14.7 0 0 1 0 4zm.3 5.6c.6-1.1 1.1-2.3 1.4-3.6h2.9a8 8 0 0 1-4.3 3.6zm1.7-5.6a16.5 16.5 0 0 0 0-4h3.4a8.3 8.3 0 0 1 0 4h-3.4z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm6.9 6h-2.9a15.7 15.7 0 0 0-1.4-3.6A8 8 0 0 1 18.9 8zM12 4a14 14 0 0 1 1.9 4h-3.8A14 14 0 0 1 12 4zM4.3 14a8.3 8.3 0 0 1 0-4h3.4a16.5 16.5 0 0 0 0 4H4.3zm.8 2h2.9c.3 1.3.8 2.5 1.4 3.6A8 8 0 0 1 5.1 16zM8 8H5.1a8 8 0 0 1 4.3-3.6C8.8 5.5 8.3 6.7 8 8zm4 12a14 14 0 0 1-1.9-4h3.8A14 14 0 0 1 12 20zm2.3-6H9.7a14.7 14.7 0 0 1 0-4h4.6a14.7 14.7 0 0 1 0 4zm.3 5.6c.6-1.1 1.1-2.3 1.4-3.6h2.9a8 8 0 0 1-4.3 3.6zm1.7-5.6a16.5 16.5 0 0 0 0-4h3.4a8.3 8.3 0 0 1 0 4h-3.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.elc-explorer.is-spinning .elc-spin__icon { animation: elc-spin .6s linear infinite; }

/* ---------- Sidebar ---------- */
.elc-side {
	display: flex; flex-direction: column; min-width: 0;
	background: #202124; border-top: 1px solid rgba(255,255,255,.08);
	border-radius: 0 0 var(--elc-radius) var(--elc-radius);
}
.elc-side__head {
	display: flex; align-items: center; gap: 10px;
	min-height: 60px; padding: 0 18px; border-bottom: 1px solid rgba(255,255,255,.12);
}
.elc-side__title { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.elc-side__clock { flex: 0 0 auto; font-size: 16px; font-variant-numeric: tabular-nums; color: var(--elc-text); }
.elc-side__back {
	display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
	width: 40px; height: 40px; margin-left: -10px; border: 0; border-radius: 50%;
	background: transparent; cursor: pointer; font-size: 28px; line-height: 1; color: var(--elc-text);
}
.elc-side__back:hover, .elc-side__back:focus-visible { background: rgba(255,255,255,.08); }
.elc-side__back[hidden] { display: none; }
.elc-side__back span { pointer-events: none; margin-top: -3px; }

.elc-side__countries[hidden], .elc-side__channels[hidden] { display: none; }
.elc-side__search { padding: 12px 14px 4px; }
.elc-side__search input {
	width: 100%; min-height: 42px; padding: 0 14px; border-radius: 10px;
	border: 1px solid rgba(255,255,255,.14); background: #2a2b2f; color: var(--elc-text); font: inherit; font-size: 15px;
}
.elc-side__search input:focus { outline: 2px solid var(--elc-tv); outline-offset: 0; }
.elc-side__list, .elc-side__channels {
	list-style: none; margin: 0; padding: 6px 0;
	max-height: 420px; overflow-y: auto; -webkit-overflow-scrolling: touch;
	scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent;
}
.elc-side__list li[hidden] { display: none; }
.elc-side__empty { margin: 0; padding: 18px; color: var(--elc-muted); }
.elc-side__empty[hidden] { display: none; }

/* Each row is one big tap target (nothing clickable inside it). */
.elc-crow, .elc-chrow {
	display: flex; align-items: center; gap: 14px; width: 100%;
	min-height: 64px; padding: 10px 18px; margin: 0; border: 0;
	background: transparent; color: var(--elc-text); text-align: left; cursor: pointer;
	font-size: 17px; touch-action: manipulation;
}
.elc-crow:hover, .elc-chrow:hover, .elc-crow:focus-visible, .elc-chrow:focus-visible { background: rgba(255,255,255,.06); outline: none; }
.elc-crow.is-current, .elc-chrow.is-current { background: rgba(77, 163, 255, .14); }
.elc-crow > *, .elc-chrow > * { pointer-events: none; }
.elc-crow__name { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.elc-crow__count {
	flex: 0 0 auto; min-width: 26px; padding: 2px 8px; border-radius: 999px; text-align: center;
	background: rgba(255,255,255,.08); color: var(--elc-muted); font-size: 13px; font-weight: 700;
}

.elc-flag { display: inline-block; flex: 0 0 auto; width: 24px; height: 18px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.elc-flag--world {
	background: var(--elc-tv);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm6.9 6h-2.9a15.7 15.7 0 0 0-1.4-3.6A8 8 0 0 1 18.9 8zM12 4a14 14 0 0 1 1.9 4h-3.8A14 14 0 0 1 12 4zM4.3 14a8.3 8.3 0 0 1 0-4h3.4a16.5 16.5 0 0 0 0 4H4.3zm.8 2h2.9c.3 1.3.8 2.5 1.4 3.6A8 8 0 0 1 5.1 16zM8 8H5.1a8 8 0 0 1 4.3-3.6C8.8 5.5 8.3 6.7 8 8zm4 12a14 14 0 0 1-1.9-4h3.8A14 14 0 0 1 12 20zm2.3-6H9.7a14.7 14.7 0 0 1 0-4h4.6a14.7 14.7 0 0 1 0 4zm.3 5.6c.6-1.1 1.1-2.3 1.4-3.6h2.9a8 8 0 0 1-4.3 3.6zm1.7-5.6a16.5 16.5 0 0 0 0-4h3.4a8.3 8.3 0 0 1 0 4h-3.4z'/%3E%3C/svg%3E") center / 18px no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm6.9 6h-2.9a15.7 15.7 0 0 0-1.4-3.6A8 8 0 0 1 18.9 8zM12 4a14 14 0 0 1 1.9 4h-3.8A14 14 0 0 1 12 4zM4.3 14a8.3 8.3 0 0 1 0-4h3.4a16.5 16.5 0 0 0 0 4H4.3zm.8 2h2.9c.3 1.3.8 2.5 1.4 3.6A8 8 0 0 1 5.1 16zM8 8H5.1a8 8 0 0 1 4.3-3.6C8.8 5.5 8.3 6.7 8 8zm4 12a14 14 0 0 1-1.9-4h3.8A14 14 0 0 1 12 20zm2.3-6H9.7a14.7 14.7 0 0 1 0-4h4.6a14.7 14.7 0 0 1 0 4zm.3 5.6c.6-1.1 1.1-2.3 1.4-3.6h2.9a8 8 0 0 1-4.3 3.6zm1.7-5.6a16.5 16.5 0 0 0 0-4h3.4a8.3 8.3 0 0 1 0 4h-3.4z'/%3E%3C/svg%3E") center / 18px no-repeat;
	box-shadow: none;
}

/* Channel rows */
.elc-chrow { gap: 12px; }
.elc-chrow__logo {
	display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
	width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: #2a2b2f;
}
.elc-chrow__logo--text { background: linear-gradient(135deg, #4da3ff, #2563eb); color: #fff; font-weight: 800; font-size: 15px; }
.elc-chrow__text { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.elc-chrow__name { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.elc-chrow__tag { font-size: 13px; color: var(--elc-muted); }
.elc-chrow__play {
	flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--elc-tv);
	-webkit-mask: radial-gradient(circle, #000 66%, transparent 67%); mask: radial-gradient(circle, #000 66%, transparent 67%);
	position: relative;
}
.elc-chrow__play { background: var(--elc-tv) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2304122a'%3E%3Cpath d='M9 7v10l8-5z'/%3E%3C/svg%3E") center / 18px no-repeat; }

.elc-sub { margin: 4px 0 12px; font-size: 15px; font-weight: 700; color: var(--elc-muted); }

/* Desktop: globe left, sidebar right — like famelack */
@media (min-width: 900px) {
	.elc-explorer { flex-direction: row; height: 600px; }
	.elc-explorer__globe { flex: 1 1 auto; aspect-ratio: auto; max-height: none; height: 100%; border-radius: var(--elc-radius) 0 0 var(--elc-radius); }
	.elc-side { flex: 0 0 360px; border-top: 0; border-left: 1px solid rgba(255,255,255,.08); border-radius: 0 var(--elc-radius) var(--elc-radius) 0; }
	.elc-side__countries { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
	.elc-side__countries[hidden] { display: none; }
	.elc-side__list, .elc-side__channels { max-height: none; flex: 1 1 auto; min-height: 0; }
	.elc-explorer__hint { top: 16px; }
	.elc-spin { left: 18px; bottom: 18px; }
}

/* ---------- Bigger screens ---------- */
@media (min-width: 720px) {
	.elc-tv, .elc-mwait { max-width: 960px; margin: 0 auto; }
	.elc-grid--match { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.elc-board__logo { width: 72px; height: 72px; }
	.elc-board__name { font-size: 19px; }
	.elc-board__score { font-size: 42px; }
}
@media (min-width: 1100px) {
	.elc-grid--match { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (min-width: 560px) {
	.elc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 720px) {
	.elc-radio, .elc-ready { flex-direction: row; text-align: left; gap: 28px; padding: 28px; }
	.elc-radio__info, .elc-ready__info { align-items: flex-start; flex: 1 1 auto; }
	.elc-eq { justify-content: flex-start; }
	.elc-bigplay { width: 96px; height: 96px; }
}
@media (min-width: 900px) {
	.elc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.elc-tv__name { font-size: 20px; }
}
@media (min-width: 1200px) {
	.elc-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
	.elc *, .elc *::before, .elc *::after { animation-duration: 2.5s !important; transition: none !important; }
}

/* =========================================================
   Clean look — fewer borders, no textures, list-style cards
   ========================================================= */
.elc { --elc-line: rgba(255, 255, 255, .06); --elc-radius: 16px; }

/* Player area: only shown while something plays */
.elc-stage[hidden] { display: none; }
.elc-stage { margin-bottom: 28px; }
.elc-close {
	position: absolute; top: -10px; right: -6px; z-index: 6;
	display: flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
	background: #2a2f3a; color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.5); touch-action: manipulation;
}
.elc-close svg { width: 20px; height: 20px; fill: currentColor; pointer-events: none; }
.elc-close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* Section headings: simple, no divider line */
.elc-sec { margin-bottom: 36px; }
.elc-sec__title { font-size: 20px; margin-bottom: 14px; gap: 8px; }
.elc-sec__title::after { display: none; }
.elc-sec__title .elc-ico { width: 20px; height: 20px; }

/* TV + Radio cards → tidy one-line rows */
.elc-grid { grid-template-columns: 1fr; gap: 8px; }
.elc-card {
	display: grid; grid-template-columns: 48px minmax(0, 1fr); grid-template-areas: "logo name" "logo meta";
	align-items: center; column-gap: 12px; row-gap: 2px;
	min-height: 0; padding: 10px 12px; border: 0; background: var(--elc-surface);
}
.elc-card:hover { background: var(--elc-surface-2); }
.elc-card .elc-card__logo { grid-area: logo; width: 48px; height: 48px; }
.elc-card .elc-card__name { grid-area: name; -webkit-line-clamp: 1; font-size: 15px; }
.elc-card .elc-card__meta { grid-area: meta; margin-top: 0; }
.elc-card.is-current, .elc-card--tv.is-current, .elc-card--radio.is-current { box-shadow: inset 3px 0 0 var(--elc-accent); background: var(--elc-surface-2); border: 0; }
.elc-card--radio.is-current { box-shadow: inset 3px 0 0 var(--elc-radio); }

/* Match cards: plain surface, no stripes */
.elc-mcard {
	display: flex; grid-template-columns: none; grid-template-areas: none;
	padding: 12px 14px 14px; border: 0;
	background: var(--elc-surface);
}
.elc-mcard:hover { background: var(--elc-surface-2); }
.elc-mcard.is-current { box-shadow: inset 3px 0 0 var(--elc-match); border: 0; }
.elc-team__logo { box-shadow: none; }
.elc-board {
	border: 0;
	background: linear-gradient(180deg, rgba(46, 230, 166, .08), transparent 90%), var(--elc-surface);
}
.elc-board__logo { box-shadow: none; }
.elc-mwait__body, .elc-radio, .elc-ready { border: 0; }
.elc-tv__bar:empty, .elc-tv__status:empty { display: none; }

/* Explorer: no outer border */
.elc-explorer { border: 0; }

@media (min-width: 560px) {
	.elc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
	.elc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
	.elc-grid--match { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (min-width: 1100px) {
	.elc-grid--match { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
.elc-tv--match .elc-tv__bar, .elc-stage.is-match .elc-tv__status { display: none; }
@media (min-width: 720px) {
	.elc-stage { max-width: 960px; margin-left: auto; margin-right: auto; }
	.elc-close { top: -12px; right: -12px; }
}

/* =========================================================
   Live comments
   ========================================================= */
.elc-chat {
	display: flex; flex-direction: column;
	margin-top: 12px; height: 380px;
	border-radius: var(--elc-radius); background: var(--elc-surface);
	overflow: hidden; /* only text inside; buttons are not clipped targets */
}
.elc-chat__head {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding: 12px 16px; border-bottom: 1px solid var(--elc-line);
	font-size: 15px; font-weight: 800;
}
.elc-chat__title { display: inline-flex; align-items: center; gap: 8px; }
.elc-chat__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--elc-live); animation: elc-blink 1.4s ease-in-out infinite; }
.elc-chat__count { font-size: 12px; font-weight: 700; color: var(--elc-muted); }
.elc-chat__count:not(:empty)::after { content: " comments"; font-weight: 600; }

.elc-chat__body { position: relative; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.elc-chat__list {
	list-style: none; margin: 0; padding: 8px 0; flex: 1 1 auto; min-height: 0;
	overflow-y: auto; -webkit-overflow-scrolling: touch;
	scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent;
}
.elc-chat__empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; color: var(--elc-muted); font-size: 14px; pointer-events: none; }
.elc-chat__empty[hidden] { display: none; }
.elc-chat__newer {
	position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
	min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px; cursor: pointer;
	background: var(--elc-accent); color: #fff; font-weight: 700; font-size: 13px; box-shadow: 0 6px 18px rgba(0,0,0,.45);
}
.elc-chat__newer[hidden] { display: none; }

.elc-msg { position: relative; padding: 5px 16px 5px 16px; font-size: 14px; line-height: 1.45; word-wrap: break-word; overflow-wrap: anywhere; }
.elc-msg:hover { background: rgba(255,255,255,.03); }
.elc-msg.is-new { animation: elc-msg-in .35s ease-out; }
@keyframes elc-msg-in { from { background: rgba(30, 144, 255, .14); } to { background: transparent; } }
.elc-msg__name { font-weight: 800; margin-right: 6px; }
.elc-msg__badge {
	display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 4px; vertical-align: 1px;
	background: var(--elc-accent); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
.elc-msg.is-admin { background: rgba(30, 144, 255, .08); }
.elc-msg__text { color: #e6e9ef; }
.elc-msg__time { float: right; margin: 2px 0 0 10px; font-size: 11px; color: var(--elc-muted); white-space: nowrap; }
.elc-msg__del {
	position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
	width: 30px; height: 30px; border: 0; border-radius: 50%; cursor: pointer;
	background: rgba(255, 48, 69, .15); color: #ff6b7a; font-size: 18px; line-height: 1; display: none;
}
.elc-msg:hover .elc-msg__del, .elc-msg:focus-within .elc-msg__del { display: block; }
@media (hover: none) { .elc-msg__del { display: block; } .elc-msg.has-del { padding-right: 44px; } }
.elc-msg:hover:has(.elc-msg__del) { padding-right: 44px; }

.elc-chat__form { padding: 10px 12px 12px; border-top: 1px solid var(--elc-line); }
.elc-chat__who { margin-bottom: 8px; }
.elc-chat__name, .elc-chat__text {
	width: 100%; min-height: 44px; padding: 0 14px; border-radius: 999px;
	border: 1px solid rgba(255,255,255,.12); background: var(--elc-bg); color: var(--elc-text);
	font: inherit; font-size: 16px; /* 16px stops iPhones zooming in */
}
.elc-chat__name:focus, .elc-chat__text:focus { outline: 2px solid var(--elc-accent); outline-offset: 0; border-color: transparent; }
.elc-chat__name[hidden], .elc-chat__as[hidden] { display: none; }
.elc-chat__as {
	display: block; width: 100%; padding: 2px 4px; border: 0; background: none; color: var(--elc-muted);
	text-align: left; font: inherit; font-size: 13px; cursor: pointer;
}
.elc-chat__as:disabled { cursor: default; }
.elc-chat__as strong, .elc-chat__change { pointer-events: none; }
.elc-chat__change { color: var(--elc-accent); }
.elc-chat__row { display: flex; gap: 8px; }
.elc-chat__text { flex: 1 1 auto; min-width: 0; }
/* The whole circle is the send button. */
.elc-chat__send {
	flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
	background: var(--elc-accent); color: #fff; touch-action: manipulation;
}
.elc-chat__send svg { width: 20px; height: 20px; fill: currentColor; pointer-events: none; margin-left: 2px; }
.elc-chat__send:disabled { opacity: .6; cursor: progress; }
.elc-chat__send:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.elc-chat__trap { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.elc-chat__note { margin: 6px 4px 0; min-height: 0; font-size: 13px; color: var(--elc-muted); }
.elc-chat__note:empty { display: none; }
.elc-chat__note.is-bad { color: #ff8a95; }

/* Wide screens: player on the left, comments on the right (same height). */
@media (min-width: 1000px) {
	.elc-stage.has-chat {
		display: grid; grid-template-columns: minmax(0, 1fr) 340px; column-gap: 16px; align-items: stretch;
		max-width: none;
	}
	.elc-stage.has-chat > .elc-close { grid-column: 1 / -1; }
	.elc-stage.has-chat > .elc-chat { position: relative; margin-top: 0; height: auto; min-height: 420px; grid-row: 1; grid-column: 2; }
	.elc-stage.has-chat > :not(.elc-chat):not(.elc-close):not(.elc-ms) { grid-column: 1; grid-row: 1; min-width: 0; max-width: none; margin: 0; }
	.elc-stage.has-chat > .elc-ms { grid-column: 1 / -1; grid-row: 2; }
	.elc-stage.has-chat .elc-close { top: -12px; right: calc(340px + 16px - 12px); } /* top-right of the player, not the chat */
}
@media (min-width: 1000px) {
	/* The chat takes the player's height; its own content never makes the row taller. */
	.elc-stage.has-chat > .elc-chat { contain: size; }
}

/* =========================================================
   Match mode: only the match, its comments and other matches
   ========================================================= */
.elc.is-match-mode .elc-sec { display: none; }
.elc-more { margin: 8px 0 32px; }
.elc-more[hidden] { display: none; }
.elc-more__title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 18px; font-weight: 800; }
.elc-more__title .elc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--elc-live); animation: elc-blink 1.4s ease-in-out infinite; }
.elc-more .elc-grid { margin-bottom: 14px; }
.elc-more__back {
	display: block; width: 100%; min-height: 48px; border: 1px solid var(--elc-line); border-radius: 999px;
	background: var(--elc-surface); color: var(--elc-text); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
}
.elc-more__back:hover { background: var(--elc-surface-2); }
.elc-more__back:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (min-width: 720px) { .elc-more__back { width: auto; padding: 0 28px; } }


/* =========================================================
   Match status (under the live comments)
   ========================================================= */
.elc-stage.is-match { display: flex; flex-direction: column; }
.elc-stage.is-match > .elc-chat { order: 2; }
.elc-stage.is-match > .elc-ms { order: 3; }
@media (min-width: 1000px) { .elc-stage.is-match.has-chat { display: grid; } }

.elc-ms { margin-top: 12px; padding: 14px 16px 16px; border-radius: var(--elc-radius); background: var(--elc-surface); }
.elc-ms__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.elc-ms__title { margin: 0; font-size: 15px; font-weight: 800; }
.elc-ms__pill { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--elc-surface-2); color: var(--elc-muted); white-space: nowrap; }
.elc-ms__pill.is-live { background: var(--elc-live); color: #fff; }
.elc-ms__pill.is-finished { background: rgba(255,255,255,.1); color: var(--elc-text); }
.elc-ms__pill.is-off { background: rgba(255, 176, 32, .15); color: #ffc456; }

.elc-ms__clock { position: relative; height: 8px; border-radius: 999px; background: var(--elc-surface-2); }
.elc-ms__fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; background: linear-gradient(90deg, rgba(46,230,166,.5), var(--elc-match)); }
.elc-ms__mark { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; border: 2px solid var(--elc-surface); background: #fff; }
.elc-ms__mark.is-a { background: var(--elc-tv); }
.elc-ms__ends { display: flex; justify-content: space-between; margin: 4px 0 12px; font-size: 11px; color: var(--elc-muted); font-variant-numeric: tabular-nums; }

.elc-ms__teams { display: flex; justify-content: space-between; gap: 10px; padding: 0 2px 6px; border-bottom: 1px solid var(--elc-line); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--elc-muted); }
.elc-ms__teams span:last-child { text-align: right; }
.elc-ms__events { list-style: none; margin: 0 0 4px; padding: 4px 0; }
.elc-ev { display: grid; grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr); align-items: center; min-height: 36px; font-size: 14px; }
.elc-ev__min { grid-column: 2; grid-row: 1; justify-self: center; padding: 2px 8px; border-radius: 6px; background: var(--elc-surface-2); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.elc-ev__who { grid-row: 1; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 4px 0; }
.elc-ev.is-h .elc-ev__who { grid-column: 1; flex-direction: row-reverse; text-align: right; }
.elc-ev.is-a .elc-ev__who { grid-column: 3; }
.elc-ev__txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.elc-ev__name { font-weight: 700; overflow-wrap: anywhere; }
.elc-ev__assist { font-size: 12px; color: var(--elc-muted); }
.elc-ev__icon { flex: 0 0 auto; width: 16px; height: 16px; }
.k-goal .elc-ev__icon, .k-pen .elc-ev__icon, .k-own .elc-ev__icon {
	background: #fff;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm0 2.2 2.6 1.9-1 3.1h-3.2l-1-3.1L12 4.2zM5.6 7.4l2.5.8 1 3.1-2.6 1.9-2.3-1.6a8 8 0 0 1 1.4-4.2zm12.8 0a8 8 0 0 1 1.4 4.2l-2.3 1.6-2.6-1.9 1-3.1 2.5-.8zM10.4 13h3.2l1 3.1-2.6 1.9-2.6-1.9 1-3.1zm-4.6 1.4 2.4 1.7-.3 3a8 8 0 0 1-3.3-3.5l1.2-1.2zm12.4 0 1.2 1.2a8 8 0 0 1-3.3 3.5l-.3-3 2.4-1.7z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm0 2.2 2.6 1.9-1 3.1h-3.2l-1-3.1L12 4.2zM5.6 7.4l2.5.8 1 3.1-2.6 1.9-2.3-1.6a8 8 0 0 1 1.4-4.2zm12.8 0a8 8 0 0 1 1.4 4.2l-2.3 1.6-2.6-1.9 1-3.1 2.5-.8zM10.4 13h3.2l1 3.1-2.6 1.9-2.6-1.9 1-3.1zm-4.6 1.4 2.4 1.7-.3 3a8 8 0 0 1-3.3-3.5l1.2-1.2zm12.4 0 1.2 1.2a8 8 0 0 1-3.3 3.5l-.3-3 2.4-1.7z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.k-own .elc-ev__icon { background: #ff8a95; }
.k-yellow .elc-ev__icon, .k-red .elc-ev__icon { width: 11px; height: 15px; border-radius: 2px; background: #ffd23f; }
.k-red .elc-ev__icon { background: #ff3045; }
.k-miss .elc-ev__icon { position: relative; border-radius: 50%; border: 2px solid var(--elc-muted); }
.k-miss .elc-ev__name { color: var(--elc-muted); text-decoration: line-through; }
.elc-ms__empty { margin: 4px 0 0; font-size: 14px; color: var(--elc-muted); }

.elc-ms__stats { display: grid; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--elc-line); }
.elc-stat { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; row-gap: 4px; font-size: 13px; }
.elc-stat__h { font-weight: 800; font-variant-numeric: tabular-nums; }
.elc-stat__a { font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.elc-stat__l { text-align: center; color: var(--elc-muted); }
.elc-stat__bar { grid-column: 1 / -1; display: flex; gap: 4px; height: 6px; }
.elc-stat__hb, .elc-stat__ab { display: block; height: 100%; border-radius: 999px; }
.elc-stat__hb { background: var(--elc-match); }
.elc-stat__ab { background: var(--elc-tv); }
@media (min-width: 1000px) {
	.elc-stage.has-chat > .elc-ms { margin-top: 16px; }
	.elc-ms__stats { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); column-gap: 28px; }
}

/* =========================================================
   Viewer counts
   ========================================================= */
.elc-views { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: #ffb4bc; font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none; }
.elc-views__eye {
	width: 14px; height: 14px; flex: 0 0 auto; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5C6.5 5 2.7 9.1 1.5 12c1.2 2.9 5 7 10.5 7s9.3-4.1 10.5-7C21.3 9.1 17.5 5 12 5zm0 11.5a4.5 4.5 0 1 1 0-9 4.5 4.5 0 0 1 0 9zm0-2.5a2 2 0 1 0 0-4 2 2 0 0 0 0 4z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5C6.5 5 2.7 9.1 1.5 12c1.2 2.9 5 7 10.5 7s9.3-4.1 10.5-7C21.3 9.1 17.5 5 12 5zm0 11.5a4.5 4.5 0 1 1 0-9 4.5 4.5 0 0 1 0 9zm0-2.5a2 2 0 1 0 0-4 2 2 0 0 0 0 4z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.elc-mstatus .elc-views { margin-top: 1px; }
.elc-card__meta .elc-views { margin-left: 2px; }
.elc-chrow__text .elc-views { margin-top: 2px; }
.elc-views--long { font-size: 13px; color: var(--elc-text); }
.elc-views--long .elc-views__eye { color: #ff6b7a; }
.elc-board > .elc-views--long { display: flex; justify-content: center; margin-top: 10px; }
.elc-radio__top .elc-views--long { margin-left: 4px; }
.elc-tv__bar .elc-views--long { margin-left: auto; }
.elc-tv__bar .elc-views--long + .elc-tv__status, .elc-tv__bar .elc-tv__status:not(:empty) ~ .elc-views--long { margin-left: 0; }

/* =========================================================
   Floating mini player (keeps playing while you scroll)
   ========================================================= */
.elc-tv__slot { position: relative; width: 100%; aspect-ratio: 16 / 9; max-width: 100%; }
.elc-tv__slot > .elc-tv__frame { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }

.elc-tv__frame.is-mini {
	position: fixed; inset: auto; z-index: 90;
	right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	width: min(380px, 40vw); height: auto; aspect-ratio: 16 / 9;
	border-radius: 12px;
	box-shadow: 0 14px 44px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .14);
	animation: elc-mini-in .22s ease-out;
}
.elc-tv__frame.is-mini .elc-tv__video, .elc-tv__frame.is-mini .elc-tv__embed { border-radius: 12px; }
@keyframes elc-mini-in { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }

/* Phones: top-right under the header, so it never covers the comment box. */
@media (max-width: 719px) {
	.elc-tv__frame.is-mini {
		top: calc(64px + env(safe-area-inset-top, 0px)); bottom: auto; right: 12px;
		width: min(62vw, 270px);
	}
	.admin-bar .elc-tv__frame.is-mini { top: calc(110px + env(safe-area-inset-top, 0px)); }
}

.elc-mini__btns { display: none; }
.is-mini .elc-mini__btns { display: flex; gap: 6px; position: absolute; top: 6px; right: 6px; z-index: 6; }
.elc-mini__btn {
	display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
	width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
	background: rgba(10, 14, 22, .78); color: #fff; touch-action: manipulation;
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.elc-mini__btn svg { width: 18px; height: 18px; fill: currentColor; pointer-events: none; }
.elc-mini__btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
/* While floating, the big "tap to play" and spinner shrink with it. */
.is-mini .elc-tapplay { width: 56px; height: 56px; }

/* Radio: slim now-playing bar */
.elc-radio-mini { display: none; }
.elc-stage.is-floating .elc-radio-mini {
	position: fixed; z-index: 90; left: 12px; right: 12px;
	top: calc(64px + env(safe-area-inset-top, 0px));
	display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 6px;
	border-radius: 999px; background: #1b1430; color: var(--elc-text);
	box-shadow: 0 12px 36px rgba(0, 0, 0, .6), 0 0 0 1px rgba(185, 140, 255, .3);
	animation: elc-mini-in .22s ease-out;
}
.admin-bar .elc-stage.is-floating .elc-radio-mini { top: calc(110px + env(safe-area-inset-top, 0px)); }
@media (min-width: 720px) {
	.elc-stage.is-floating .elc-radio-mini { top: auto; left: auto; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 380px; }
}
.elc-radio-mini__open {
	display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0;
	padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; font: inherit;
}
.elc-radio-mini__open > * { pointer-events: none; }
.elc-radio-mini__img { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.elc-radio-mini__img--text { background: linear-gradient(135deg, #c9a2ff, #7c3aed); color: #fff; font-weight: 800; font-size: 14px; }
.elc-radio-mini__txt { display: flex; flex-direction: column; min-width: 0; }
.elc-radio-mini__name { font-weight: 800; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.elc-radio-mini__sub { font-size: 12px; color: var(--elc-radio); }
.elc-radio-mini__play {
	display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
	width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
	background: var(--elc-radio); color: #1a0b2e; touch-action: manipulation;
}
.elc-radio-mini__play svg { width: 45%; height: 45%; fill: currentColor; pointer-events: none; }
.elc-radio-mini .elc-mini__btn { background: rgba(255, 255, 255, .08); }
@media (prefers-reduced-motion: reduce) { .elc-tv__frame.is-mini, .elc-stage.is-floating .elc-radio-mini { animation: none; } }

/* =========================================================
   Compact scoreboard, big stream
   ========================================================= */
/* The player always uses the full width (it was shrinking to fit in match view). */
.elc-stage.is-match > .elc-tv, .elc-stage.is-match > .elc-mwait { width: 100%; }

/* One slim line: [flag Home]  vs / LIVE  [Away flag] */
.elc-board { padding: 10px 14px 12px; margin-bottom: 8px; }
.elc-board__top { margin-bottom: 6px; gap: 8px; }
.elc-board__comp { font-size: 11px; }
.elc-board__row { gap: 10px; }
.elc-board__team { flex-direction: row; align-items: center; gap: 10px; }
.elc-board__team--home { justify-content: flex-end; text-align: right; }
.elc-board__team--home .elc-board__logo { order: 2; }
.elc-board__team--away { justify-content: flex-start; text-align: left; }
.elc-board__logo { width: 30px; height: 30px; box-shadow: none; flex: 0 0 auto; }
.elc-board__logo--text { font-size: 10px; }
.elc-board__name { font-size: 15px; line-height: 1.2; }
.elc-board__score { font-size: 20px; padding: 0 6px; }
.elc-board > .elc-views--long { margin-top: 6px; font-size: 12px; }
@media (min-width: 720px) {
	.elc-board__logo { width: 34px; height: 34px; }
	.elc-board__name { font-size: 17px; }
	.elc-board__score { font-size: 24px; }
}

/* Inner lists never trap the page: when a list ends, the page keeps scrolling. */
.elc-chat__list, .elc-side__list, .elc-side__channels { overscroll-behavior: auto; }

/* =========================================================
   Phones & tablets: comments are part of the page
   (no scrolling inside the comments, so the page always scrolls)
   ========================================================= */
.elc-chat__older { display: none; }
@media (max-width: 999px) {
	.elc-chat { height: auto; }
	.elc-chat__body { flex: none; }
	.elc-chat__list { overflow: visible; max-height: none; flex: none; }
	.elc-chat__list:not(.is-all) > li:nth-last-child(n+9) { display: none; } /* newest 8 */
	.elc-chat__empty { position: static; padding: 18px 16px; }
	.elc-chat__newer { display: none !important; }
	.elc-chat__older:not([hidden]) {
		display: block; width: calc(100% - 24px); margin: 10px 12px 0; min-height: 40px;
		border: 1px solid var(--elc-line); border-radius: 999px; background: transparent;
		color: var(--elc-muted); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
	}
}

/* Small notice inside the player ("Switched to backup stream 1") */
.elc-note {
	position: absolute; left: 50%; top: 12px; transform: translateX(-50%); z-index: 7;
	padding: 7px 14px; border-radius: 999px; background: rgba(10, 14, 22, .88); color: #fff;
	font-size: 13px; font-weight: 700; white-space: nowrap; pointer-events: none; transition: opacity .5s;
}
.elc-note.is-gone { opacity: 0; }
.elc-radio .elc-note { top: 10px; }

/* Chat tools: pinned message + slow mode */
.elc-chat__pin { display: flex; gap: 8px; align-items: flex-start; margin: 0 12px 6px; padding: 8px 10px; border-radius: 10px; background: rgba(30,144,255,.12); border: 1px solid rgba(30,144,255,.35); color: #e8f1ff; font-size: 13px; line-height: 1.4; }
.elc-chat__pin[hidden], .elc-chat__slow[hidden] { display: none; }
.elc-chat__pin-ico { flex: 0 0 auto; }
.elc-chat__pin-text { min-width: 0; overflow-wrap: anywhere; }
.elc-chat__slow { margin: 4px 0 0; font-size: 12px; color: #9aa4b2; }
.elc-chat__send { position: relative; }
.elc-chat__send.is-wait svg { visibility: hidden; }
.elc-chat__send.is-wait::after { content: attr(data-wait); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.elc-chat__send.is-wait:disabled { cursor: not-allowed; }

/* ---------- Share button ---------- */
.elc-acts { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.elc-tv--match .elc-acts { margin-left: auto; }
.elc-radio__info .elc-acts { margin: 10px 0 0; }
.elc-acts--big { margin: 4px 0 0; justify-content: center; }
.elc-act {
	display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px;
	border: 1px solid rgba(255,255,255,.14); border-radius: 999px; background: rgba(255,255,255,.06);
	color: #f2f4f8; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; touch-action: manipulation;
}
.elc-act svg { width: 18px; height: 18px; fill: currentColor; pointer-events: none; }
.elc-act span { pointer-events: none; }
.elc-act:hover { background: rgba(255,255,255,.12); }
.elc-act:focus-visible { outline: 3px solid #1e90ff; outline-offset: 2px; }
.elc-acts--big .elc-act { min-height: 44px; padding: 0 18px; font-size: 15px; }

/* ---------- Quality chip (top-left of the video) ---------- */
.elc-qchip {
	position: absolute; top: 8px; left: 8px; z-index: 5;
	display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 10px 0 8px;
	border: 0; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff;
	font: 600 12px/1 system-ui, sans-serif; cursor: pointer; touch-action: manipulation;
	opacity: .85; transition: opacity .2s;
}
.elc-qchip:hover, .elc-qchip:focus-visible { opacity: 1; }
.elc-qchip:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.elc-qchip svg { width: 16px; height: 16px; fill: currentColor; pointer-events: none; }
.elc-qchip__txt { pointer-events: none; white-space: nowrap; }
.is-mini .elc-qchip { display: none; }

/* ---------- Sheet (phones: slides up from the bottom; desktop: small box) ---------- */
.elc-sheet { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: flex-end; justify-content: center; font-family: inherit; }
.elc-sheet__shade { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: rgba(0,0,0,.55); cursor: default; }
.elc-sheet__box {
	position: relative; width: 100%; max-width: 440px; max-height: 80vh; overflow-y: auto;
	background: #10151f; color: #f2f4f8; border: 1px solid rgba(255,255,255,.1); border-bottom: 0;
	border-radius: 18px 18px 0 0; padding: 6px 0 calc(12px + env(safe-area-inset-bottom, 0px));
	box-shadow: 0 -10px 40px rgba(0,0,0,.5); animation: elc-sheet-up .18s ease-out;
}
@keyframes elc-sheet-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 700px) {
	.elc-sheet { align-items: center; }
	.elc-sheet__box { border-radius: 16px; border-bottom: 1px solid rgba(255,255,255,.1); padding-bottom: 10px; }
}
.elc-sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 6px 18px; }
.elc-sheet__title { font-size: 16px; }
.elc-sheet__x { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: #f2f4f8; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.elc-sheet__x svg { width: 22px; height: 22px; fill: currentColor; pointer-events: none; }
.elc-sheet__list { display: flex; flex-direction: column; padding: 0 8px; }
.elc-sheet__item {
	display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 8px 12px;
	border: 0; border-radius: 12px; background: transparent; color: inherit; font: inherit; font-size: 15px;
	text-align: left; text-decoration: none; cursor: pointer; touch-action: manipulation;
}
.elc-sheet__item:hover, .elc-sheet__item:focus-visible { background: rgba(255,255,255,.07); outline: none; }
.elc-sheet__item.is-on { background: rgba(30,144,255,.14); }
.elc-sheet__item > * { pointer-events: none; }
.elc-sheet__ico { font-size: 20px; width: 28px; text-align: center; flex: 0 0 auto; }
.elc-sheet__txt { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.elc-sheet__label { font-weight: 600; }
.elc-sheet__sub { color: #9aa4b6; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.elc-sheet__tick { color: #1e90ff; font-weight: 800; }
.elc-copybox { position: fixed; left: -9999px; top: 0; opacity: 0; }
.elc-mwait__body { position: relative; }

/* ---------- Search ---------- */
.elc .screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.elc-search { position: relative; margin: 4px 0 18px; }
.elc-search__input {
	width: 100%; min-height: 48px; padding: 0 48px 0 44px; box-sizing: border-box;
	border: 1px solid var(--elc-line); border-radius: 999px; background: var(--elc-surface); color: var(--elc-text);
	font: inherit; font-size: 16px; /* 16px stops iPhones zooming in */
	-webkit-appearance: none; appearance: none;
}
.elc-search__input::placeholder { color: var(--elc-muted); }
.elc-search__input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.elc-search__input:focus { outline: none; border-color: var(--elc-accent); box-shadow: 0 0 0 3px rgba(30, 144, 255, .25); }
.elc-search__ico {
	position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; pointer-events: none; background: var(--elc-muted);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 3a7 7 0 0 1 5.6 11.2l5.1 5.1-1.4 1.4-5.1-5.1A7 7 0 1 1 10 3zm0 2a5 5 0 1 0 0 10 5 5 0 0 0 0-10z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 3a7 7 0 0 1 5.6 11.2l5.1 5.1-1.4 1.4-5.1-5.1A7 7 0 1 1 10 3zm0 2a5 5 0 1 0 0 10 5 5 0 0 0 0-10z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.elc-search__x {
	position: absolute; right: 4px; top: 50%; width: 40px; height: 40px; margin-top: -20px; border: 0; border-radius: 50%;
	background: transparent; cursor: pointer; touch-action: manipulation;
}
.elc-search__x::before {
	content: ""; position: absolute; inset: 11px; background: var(--elc-muted); pointer-events: none;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.4 5 5 6.4 10.6 12 5 17.6 6.4 19l5.6-5.6 5.6 5.6 1.4-1.4-5.6-5.6L19 6.4 17.6 5 12 10.6z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.4 5 5 6.4 10.6 12 5 17.6 6.4 19l5.6-5.6 5.6 5.6 1.4-1.4-5.6-5.6L19 6.4 17.6 5 12 10.6z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.elc-search__x:hover { background: var(--elc-surface-2); }
.elc-search__x:focus-visible { outline: 3px solid #fff; outline-offset: 0; }
.elc-search__x[hidden] { display: none; }
.elc.is-searching .elc-sec, .elc.is-searching > .elc-none { display: none; }
.elc.is-match-mode .elc-search, .elc.is-match-mode .elc-results { display: none; }
.elc-results { margin: 0 0 28px; }
.elc-results[hidden] { display: none; }
.elc-results__title { margin: 0 0 10px; font-size: 15px; font-weight: 600; color: var(--elc-muted); }
.elc-results__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
@media (min-width: 760px) { .elc-results__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.elc-sres {
	display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 14px; box-sizing: border-box;
	border: 1px solid var(--elc-line); border-radius: var(--elc-radius); background: var(--elc-surface); color: var(--elc-text);
	font: inherit; text-align: left; cursor: pointer; touch-action: manipulation;
}
.elc-sres > * { pointer-events: none; }
.elc-sres:hover { background: var(--elc-surface-2); }
.elc-sres:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.elc-sres__logo { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 10px; object-fit: cover; background: var(--elc-surface-2); }
.elc-sres__logo--text { display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: var(--elc-muted); }
.elc-sres__pair { display: flex; flex: 0 0 auto; }
.elc-sres__pair .elc-sres__logo { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; font-size: 10px; }
.elc-sres__pair .elc-sres__logo + .elc-sres__logo { margin-left: -8px; box-shadow: 0 0 0 2px var(--elc-surface); }
.elc-sres__text { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.elc-sres__name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.elc-sres__sub { font-size: 13px; color: var(--elc-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Cast to TV ---------- */
.elc-act--cast[hidden] { display: none; }
.elc-act--cast.is-on { background: rgba(30, 144, 255, .18); border-color: var(--elc-accent); color: #cfe6ff; }
.elc-casting { display: none; }
.is-casting .elc-casting {
	position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
	padding: 16px; text-align: center; border-radius: inherit; background: radial-gradient(120% 120% at 50% 0%, #182a45, #070b13);
}
.is-casting .elc-casting > svg { width: 44px; height: 44px; fill: var(--elc-accent); }
.elc-casting__to { font-size: 16px; }
.is-casting .elc-tapplay, .is-casting .elc-spinner, .is-casting .elc-qchip { display: none !important; }
.elc-radio { position: relative; }
.elc-radio.is-casting .elc-casting { border-radius: var(--elc-radius); }

/* ---------- Reactions ---------- */
.elc-rx { display: flex; gap: 8px; padding: 8px 12px 0; }
.elc-rx__btn {
	flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 8px;
	border: 1px solid var(--elc-line); border-radius: 999px; background: var(--elc-surface-2); color: var(--elc-text);
	font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
	transition: transform .08s;
}
.elc-rx__btn > * { pointer-events: none; }
.elc-rx__btn:active { transform: scale(.9); }
.elc-rx__btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.elc-rx__emoji { font-size: 20px; line-height: 1; }
.elc-rx__n { color: var(--elc-muted); font-variant-numeric: tabular-nums; min-width: 0; }
.elc-rx__n:empty { display: none; }
/* Floating layer over the stream (taps go straight through it). */
.elc-rxl { position: absolute; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; border-radius: inherit; }
.elc-mwait__body > .elc-rxl, .elc-ready > .elc-rxl { z-index: 0; }
.elc-ready { position: relative; }
.elc-rxf {
	position: absolute; bottom: 6px; line-height: 1; will-change: transform, opacity;
	animation: elc-rx-up 2.4s ease-out forwards; text-shadow: 0 2px 6px rgba(0, 0, 0, .45);
}
@keyframes elc-rx-up {
	0% { transform: translate(0, 0) scale(.6); opacity: 0; }
	12% { transform: translate(calc(var(--dx, 0px) * .2), -10%) scale(1.1); opacity: 1; }
	100% { transform: translate(var(--dx, 0px), -220px) scale(1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.elc-rxf { animation-name: elc-rx-fade; }
	@keyframes elc-rx-fade { 0% { opacity: 0; } 20% { opacity: 1; } 100% { opacity: 0; } }
}
.is-mini .elc-rxf { font-size: 16px !important; }
/* Cast: icon-only round button (standard cast symbol) */
.elc-act--cast { width: 40px; min-width: 40px; height: 40px; min-height: 40px; padding: 0; justify-content: center; }
.elc-act--cast svg { width: 22px; height: 22px; fill: none; }
.elc-act--cast.is-on { color: var(--elc-accent); }

/* ---------- Ads (never on top of the stream) ---------- */
.elc-ad { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0 auto 18px; max-width: 100%; }
.elc-ad__label { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--elc-muted); }
.elc-ad__box { max-width: 100%; overflow-x: auto; text-align: center; }
.elc-ad__box iframe, .elc-ad__box img { max-width: 100%; }
.elc-ad--player { margin-top: 4px; }
.elc.is-match-mode .elc-ad--list, .elc.is-searching .elc-ad--list { display: none; }
@media (max-width: 767px) { .elc-ad--only-desktop { display: none; } }
@media (min-width: 768px) { .elc-ad--only-phone { display: none; } }

/* ---------- When a channel fails ---------- */
.elc-error { overflow-y: auto; }
.elc-error__admin { margin: 0; max-width: 46ch; font-size: 12px; line-height: 1.4; color: #ffd27a; background: rgba(255, 210, 122, .08); border: 1px dashed rgba(255, 210, 122, .4); border-radius: 8px; padding: 6px 10px; }
.elc-alts { margin: 12px 0 4px; }
.elc-alts__title { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--elc-muted); text-transform: uppercase; letter-spacing: .06em; }
.elc-alts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.elc-alts__title { flex: 1 1 100%; }
.elc-alt {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 14px 4px 4px;
	border: 1px solid var(--elc-line); border-radius: 999px; background: var(--elc-surface); color: var(--elc-text);
	font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; touch-action: manipulation; max-width: 100%;
}
.elc-alt > * { pointer-events: none; }
.elc-alt:hover { background: var(--elc-surface-2); }
.elc-alt:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.elc-alt__logo { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--elc-surface-2); flex: 0 0 auto; }
.elc-alt__logo--text { display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: var(--elc-muted); }
.elc-alt__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.is-mini ~ .elc-alts, .elc-tv.is-casting .elc-alts { display: none; }

/* After a refresh the video carries on muted: one tap turns the sound on. */
.elc-unmute {
	position: absolute; left: 50%; bottom: 56px; transform: translateX(-50%); z-index: 6;
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
	border: 0; border-radius: 999px; background: rgba(0, 0, 0, .75); color: #fff;
	font: 700 15px/1 system-ui, sans-serif; cursor: pointer; touch-action: manipulation;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .4);
}
.elc-unmute > * { pointer-events: none; }
.elc-unmute svg { width: 22px; height: 22px; fill: currentColor; }
.elc-unmute:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.is-mini .elc-unmute { bottom: auto; top: 50%; transform: translate(-50%, -50%); padding: 0 12px; font-size: 13px; }

/* Globe zoom buttons (+ / − / whole globe) */
.elc-zoom { position: absolute; right: 10px; bottom: 10px; z-index: 3; display: flex; flex-direction: column; gap: 6px; }
.elc-zoom__btn {
	width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px;
	background: rgba(10, 14, 22, .82); color: #fff; font: 700 22px/1 system-ui, sans-serif;
	cursor: pointer; touch-action: manipulation; display: flex; align-items: center; justify-content: center;
}
.elc-zoom__btn:hover { background: rgba(30, 144, 255, .35); }
.elc-zoom__btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.elc-zoom__btn:disabled { opacity: .35; cursor: default; }
.elc-zoom__btn[hidden] { display: none; }
.elc-zoom__reset { font-size: 20px; }

/* Your logo on the video */
.elc-wm {
	position: absolute; z-index: 4; pointer-events: none; box-sizing: border-box;
	width: clamp(84px, 19%, 230px); padding: .55% 1.1%;
	background: linear-gradient(135deg, rgba(40, 46, 58, .78), rgba(18, 22, 30, .62));
	border: 1px solid rgba(255, 255, 255, .14); border-radius: 8px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .08);
	backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.elc-wm img { display: block; width: 100%; height: auto; }
.elc-wm--tr { top: 4%; right: 3%; }
.elc-wm--tl { top: 4%; left: 3%; }
.elc-wm--br { bottom: max(15%, 58px); right: 3%; } /* above the play bar */
.elc-wm--bl { bottom: max(15%, 58px); left: 3%; }
.elc-tv__frame.is-mini .elc-wm { width: 64px; border-radius: 5px; }
.elc-tv__frame.is-mini .elc-wm--tr, .elc-tv__frame.is-mini .elc-wm--tl { top: 40px; } /* below the mini-player buttons */
.elc-tv__frame:fullscreen { border-radius: 0; }
.elc-tv__frame:fullscreen .elc-tv__video { border-radius: 0; }
.has-wm-tl .elc-qchip { left: auto; right: 8px; } /* quality button moves out of the logo's way */

/* More from the same country / radios / matches, under the player */
.elc-same {
	margin-top: 14px; border-radius: var(--elc-radius); overflow: hidden;
	background: var(--elc-surface); border: 1px solid rgba(255,255,255,.07);
	box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.elc-same__head {
	display: flex; align-items: center; gap: 10px; padding: 14px 18px;
	border-bottom: 1px solid rgba(255,255,255,.07);
	background: linear-gradient(180deg, rgba(255,255,255,.035), transparent);
}
.elc-same__title { margin: 0; flex: 1 1 auto; font-size: 16px; font-weight: 800; letter-spacing: .01em; }
.elc-same__count {
	min-width: 26px; padding: 2px 9px; border-radius: 999px; text-align: center;
	background: rgba(255,255,255,.08); color: var(--elc-muted); font-size: 13px; font-weight: 700;
}
.elc-same__list {
	list-style: none; margin: 0; padding: 6px 0;
	max-height: 344px; overflow-y: auto; -webkit-overflow-scrolling: touch;
	scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent;
}
.elc-same__list li + li { border-top: 1px solid rgba(255,255,255,.045); }
.elc-same .elc-chrow { min-height: 62px; padding: 9px 18px; }
.elc-same .elc-chrow .elc-live { flex: 0 0 auto; }
.elc-same--radio .elc-chrow__play { background-color: var(--elc-radio); }
.elc-same--radio .elc-chrow__logo--text { background: linear-gradient(135deg, #c9a2ff, #7c3aed); border-radius: 50%; }

@media (min-width: 760px) {
	.elc-same__list { display: grid; grid-template-columns: 1fr 1fr; padding: 6px; gap: 2px 6px; }
	.elc-same__list li + li { border-top: 0; }
	.elc-same .elc-chrow { border-radius: 12px; padding: 9px 12px; }
}
.elc-same .elc-chrow.is-current { background: rgba(77, 163, 255, .12); cursor: default; opacity: 1; }
.elc-same .elc-chrow.is-current .elc-chrow__tag { color: var(--elc-tv); font-weight: 700; }
.elc-same--radio .elc-chrow.is-current { background: rgba(185, 140, 255, .12); }
.elc-same--radio .elc-chrow.is-current .elc-chrow__tag { color: var(--elc-radio); }
.elc-same__eq { flex: 0 0 auto; display: inline-flex; align-items: flex-end; gap: 3px; width: 34px; height: 20px; justify-content: center; }
.elc-same__eq span { width: 4px; border-radius: 2px; background: var(--elc-tv); animation: elc-same-eq 1s ease-in-out infinite; }
.elc-same--radio .elc-same__eq span { background: var(--elc-radio); }
.elc-same__eq span:nth-child(2) { animation-delay: -.35s; }
.elc-same__eq span:nth-child(3) { animation-delay: -.7s; }
@keyframes elc-same-eq { 0%, 100% { height: 5px; } 50% { height: 18px; } }
@media (prefers-reduced-motion: reduce) { .elc-same__eq span { animation: none; height: 12px; } }
.elc-same__foot { border-top: 1px solid rgba(255,255,255,.07); padding: 12px 14px 14px; }
.elc-same__sub { margin: 0 4px 10px; font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--elc-muted); }
.elc-same__countries { display: flex; flex-wrap: wrap; gap: 8px; max-height: 196px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent; }
.elc-same__country {
	display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px 0 10px;
	border: 1px solid rgba(255,255,255,.1); border-radius: 999px; background: rgba(255,255,255,.04);
	color: var(--elc-text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; touch-action: manipulation;
}
.elc-same__country:hover { background: rgba(255,255,255,.08); }
.elc-same__country:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.elc-same__country.is-on { border-color: var(--elc-tv); background: rgba(77, 163, 255, .16); }
.elc-same__country > * { pointer-events: none; }
.elc-same__cnum { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--elc-muted); font-size: 12px; font-weight: 700; text-align: center; }
.elc-stage.has-chat.is-radio > .elc-same, .elc-stage.is-radio > .elc-same { grid-column: 1; grid-row: 2; }

/* Watching: only the player, its "More from …" row and search; the lists come back when the player closes */
.elc.is-watching > .elc-sec, .elc.is-watching > .elc-ad--list, .elc.is-watching > .elc-ad--bottom, .elc.is-watching > .elc-none { display: none !important; }



/* ---------- "Connecting" card (first load of a channel) ---------- */
.elc-loadcard {
	position: absolute; inset: 0; z-index: 3; display: none; align-items: center; justify-content: center;
	overflow: hidden; border-radius: inherit; pointer-events: none;
	background: radial-gradient(120% 90% at 50% 40%, #142238 0%, #0a0f19 70%);
}
.elc-tv:not([data-state]) .elc-loadcard, .elc-tv[data-state="loading"]:not(.has-played) .elc-loadcard { display: flex; }
.elc-tv[data-state="loading"]:not(.has-played) .elc-spinner { display: none; }
.elc-loadcard__bg {
	position: absolute; inset: -20%; background: center / cover no-repeat;
	filter: blur(40px) saturate(1.4); opacity: .35; transform: scale(1.1);
}
.elc-loadcard__mid { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px; text-align: center; max-width: 90%; }
.elc-loadcard__logo {
	width: clamp(64px, 10vw, 112px); height: clamp(64px, 10vw, 112px); border-radius: 18px; object-fit: contain;
	background: rgba(255, 255, 255, .06); padding: 8px; box-sizing: border-box;
	box-shadow: 0 12px 34px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .08);
	animation: elc-lc-breathe 2.4s ease-in-out infinite;
}
.elc-loadcard__logo--text {
	display: flex; align-items: center; justify-content: center; padding: 0;
	background: linear-gradient(135deg, #4da3ff, #2563eb); color: #fff; font-weight: 900; font-size: clamp(20px, 4vw, 34px);
}
.elc-loadcard__pair { display: flex; align-items: center; gap: 14px; }
.elc-loadcard__team { width: clamp(48px, 9vw, 80px); height: clamp(48px, 9vw, 80px); flex: 0 0 auto; border-radius: 50%; object-fit: cover; background: #1e2633; box-shadow: 0 10px 28px rgba(0, 0, 0, .45); }
.elc-loadcard__team--text { display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 14px; color: var(--elc-text); }
.elc-loadcard__vs { font-weight: 900; font-size: 18px; color: var(--elc-muted); }
.elc-loadcard__name { margin: 4px 0 0; font-size: clamp(16px, 2.6vw, 22px); font-weight: 800; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.elc-loadcard__status { margin: 0; font-size: 14px; font-weight: 600; color: #9fb0c8; }
.elc-loadcard__dots span { animation: elc-lc-dot 1.2s infinite; opacity: .2; }
.elc-loadcard__dots span:nth-child(2) { animation-delay: .2s; }
.elc-loadcard__dots span:nth-child(3) { animation-delay: .4s; }
.elc-loadcard__bar { position: relative; width: 120px; height: 3px; margin-top: 4px; border-radius: 3px; overflow: hidden; background: rgba(255, 255, 255, .1); }
.elc-loadcard__bar::after { content: ""; position: absolute; inset: 0; width: 40%; border-radius: inherit; background: linear-gradient(90deg, transparent, #4da3ff, transparent); animation: elc-lc-bar 1.3s ease-in-out infinite; }
@keyframes elc-lc-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes elc-lc-dot { 0%, 100% { opacity: .2; } 40% { opacity: 1; } }
@keyframes elc-lc-bar { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@media (prefers-reduced-motion: reduce) { .elc-loadcard__logo, .elc-loadcard__dots span, .elc-loadcard__bar::after { animation: none; opacity: 1; } }
.elc-tv__frame.is-mini .elc-loadcard__name, .elc-tv__frame.is-mini .elc-loadcard__status, .elc-tv__frame.is-mini .elc-loadcard__bar { display: none; }

/* ---------- Radio: blurred station picture + sound waves ---------- */
.elc-radio__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.elc-radio__bgimg {
	position: absolute; inset: -30%; background: center / cover no-repeat;
	filter: blur(48px) saturate(1.5); opacity: .45; transform: scale(1.15);
	transition: opacity .6s;
}
.elc-radio__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 15, 25, .25), rgba(10, 15, 25, .85)); }
.elc-radio__bg.is-plain .elc-radio__bgimg { background: radial-gradient(60% 60% at 30% 30%, rgba(185, 140, 255, .55), transparent 70%), radial-gradient(50% 50% at 75% 70%, rgba(77, 163, 255, .45), transparent 70%); opacity: .5; }
.elc-radio[data-state="playing"] .elc-radio__bgimg { opacity: .6; animation: elc-radio-drift 14s ease-in-out infinite alternate; }
@keyframes elc-radio-drift { from { transform: scale(1.15) translate(0, 0); } to { transform: scale(1.3) translate(3%, -3%); } }
.elc-radio > :not(.elc-radio__bg):not(.elc-radio-mini):not(.elc-error) { position: relative; z-index: 1; }
.elc-radio__waves { position: absolute; inset: 0; pointer-events: none; }
.elc-radio__waves span {
	position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--elc-radio);
	opacity: 0; transform: scale(.9);
}
.elc-radio[data-state="playing"] .elc-radio__waves span { animation: elc-radio-wave 2.6s ease-out infinite; }
.elc-radio[data-state="playing"] .elc-radio__waves span:nth-child(2) { animation-delay: .87s; }
.elc-radio[data-state="playing"] .elc-radio__waves span:nth-child(3) { animation-delay: 1.74s; }
@keyframes elc-radio-wave { 0% { opacity: .55; transform: scale(.95); } 100% { opacity: 0; transform: scale(1.55); } }
.elc-radio__img { position: relative; }
@media (prefers-reduced-motion: reduce) { .elc-radio__waves span, .elc-radio__bgimg { animation: none !important; } }

/* ---------- Live match cards stand out ---------- */
.elc-mcard.is-live {
	border: 1.5px solid transparent;
	background:
		radial-gradient(120% 90% at 50% -10%, rgba(46, 230, 166, .18), transparent 60%) padding-box,
		linear-gradient(var(--elc-surface), var(--elc-surface)) padding-box,
		linear-gradient(115deg, #2ee6a6, #4da3ff, #ff3b5c, #2ee6a6) border-box;
	background-size: 100% 100%, 100% 100%, 300% 300%;
	animation: elc-live-border 6s linear infinite;
	box-shadow: 0 10px 34px rgba(46, 230, 166, .16);
}
.elc-mcard.is-live:hover {
	background:
		radial-gradient(120% 90% at 50% -10%, rgba(46, 230, 166, .24), transparent 60%) padding-box,
		linear-gradient(var(--elc-surface-2), var(--elc-surface-2)) padding-box,
		linear-gradient(115deg, #2ee6a6, #4da3ff, #ff3b5c, #2ee6a6) border-box;
	background-size: 100% 100%, 100% 100%, 300% 300%;
}
@keyframes elc-live-border { from { background-position: 0 0, 0 0, 0% 50%; } to { background-position: 0 0, 0 0, 300% 50%; } }
.elc-mcard.is-live .elc-mstatus__main { font-size: 26px; color: #fff; text-shadow: 0 0 18px rgba(46, 230, 166, .5); }
.elc-mcard.is-live .elc-team__logo { box-shadow: 0 0 0 2px rgba(46, 230, 166, .55), 0 6px 18px rgba(0, 0, 0, .35); }
.elc-mcard.is-live .elc-mcard__comp { color: #b9f5df; }
.elc-mcard.is-live .elc-mcard__comp::before { background: #ff3b5c; box-shadow: 0 0 0 0 rgba(255, 59, 92, .6); animation: elc-hero-pulse 1.6s ease-out infinite; }
@media (prefers-reduced-motion: reduce) { .elc-mcard.is-live, .elc-mcard.is-live .elc-mcard__comp::before { animation: none; } }
.elc-sec { scroll-margin-top: 72px; }
@keyframes elc-hero-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 59, 92, .55); } 100% { box-shadow: 0 0 0 10px rgba(255, 59, 92, 0); } }

/* ---------- Sports channels ---------- */
.elc-scard {
	display: flex; flex-direction: row; justify-content: flex-start; align-items: center; gap: 14px; width: 100%; min-height: 84px; padding: 14px 16px; text-align: left;
	border: 1.5px solid transparent;
	background:
		radial-gradient(120% 120% at 0% 0%, rgba(255, 59, 92, .16), transparent 55%) padding-box,
		linear-gradient(var(--elc-surface), var(--elc-surface)) padding-box,
		linear-gradient(115deg, #ff3b5c, #4da3ff, #2ee6a6, #ff3b5c) border-box;
	background-size: 100% 100%, 100% 100%, 300% 300%;
	animation: elc-live-border 6s linear infinite;
}
.elc-scard > * { pointer-events: none; }
.elc-scard.is-offair { animation: none; background: var(--elc-surface); border-color: var(--elc-line); opacity: .75; }
.elc-scard__logo { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 14px; object-fit: cover; background: #1e2633; box-shadow: 0 8px 20px rgba(0, 0, 0, .35); }
.elc-scard__logo--text {
	background: linear-gradient(135deg, #ff3b5c, #ff8a3d) center / 100% no-repeat;
	-webkit-mask: none;
	position: relative;
}
.elc-scard__logo--text::after {
	content: ""; position: absolute; inset: 14px;
	background: #fff;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4h10v2h3v3a4 4 0 0 1-4 4h-.3A5 5 0 0 1 13 15.9V18h3v2H8v-2h3v-2.1A5 5 0 0 1 8.3 13H8a4 4 0 0 1-4-4V6h3V4zm0 4H6v1a2 2 0 0 0 1 1.7V8zm10 0v2.7A2 2 0 0 0 18 9V8h-1z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4h10v2h3v3a4 4 0 0 1-4 4h-.3A5 5 0 0 1 13 15.9V18h3v2H8v-2h3v-2.1A5 5 0 0 1 8.3 13H8a4 4 0 0 1-4-4V6h3V4zm0 4H6v1a2 2 0 0 0 1 1.7V8zm10 0v2.7A2 2 0 0 0 18 9V8h-1z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.elc-scard__text { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; flex: 1 1 auto; min-width: 0; }
.elc-scard__top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.elc-scard__name { font-size: 17px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.elc-scard__now { font-size: 14px; font-weight: 600; color: #ffb3c0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.elc-scard.is-offair .elc-scard__now { color: var(--elc-muted); }
.elc-scard__off { flex: 0 0 auto; white-space: nowrap; padding: 2px 8px; border-radius: 6px; background: rgba(255, 255, 255, .1); color: var(--elc-muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.elc-scard .elc-chrow__play { background-color: #ff3b5c; }
@media (prefers-reduced-motion: reduce) { .elc-scard { animation: none; } }
.elc-nowbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 59, 92, .1); border: 1px solid rgba(255, 59, 92, .2); }
.elc-nowbar__text { font-size: 15px; font-weight: 800; color: #ffd1d9; }
.elc-nowbar__edit { margin-left: auto; min-width: 36px; min-height: 36px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 10px; background: rgba(255, 255, 255, .06); cursor: pointer; font-size: 16px; }
.elc-nowbar__form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; width: 100%; }
.elc-nowbar__form[hidden] { display: none; }
.elc-nowbar__input { flex: 1 1 220px; min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .2); background: #0b1018; color: #fff; font: inherit; font-size: 15px; }
.elc-nowbar__save { min-height: 40px; padding: 0 18px; border: 0; border-radius: 10px; background: #ff3b5c; color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.elc-nowbar__hint { font-size: 12px; color: var(--elc-muted); }
.elc-same--sports .elc-chrow__play { background-color: #ff3b5c; }
.elc-same--sports .elc-chrow__tag { color: #ffb3c0; }

/* ---------- Channel pages (/watch/…) ---------- */
.elc-seo { margin: 0 0 14px; }
.elc-seo__h1 { margin: 0; font-size: clamp(20px, 4.4vw, 28px); line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
.elc-seo__text { margin: 6px 0 0; max-width: 60em; color: #9aa7bb; font-size: 14px; line-height: 1.5; }
.elc-seo__more { margin: 26px 0 0; padding: 18px 0 0; border-top: 1px solid rgba(255, 255, 255, .07); }
.elc-seo__h2 { margin: 0 0 10px; font-size: 16px; font-weight: 800; }
.elc-seo__links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.elc-seo__links a {
	display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); color: #d6deea; text-decoration: none; font-size: 14px; font-weight: 600;
}
.elc-seo__links a:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.elc-seo__all { margin: 14px 0 0; font-size: 14px; }
.elc-seo__all a { color: #4da3ff; text-decoration: none; font-weight: 700; }
