/* Egide Live Channels — "New look" (Channels → Settings → Look). Same colors, cleaner layout.
   Loaded after player.css; everything is scoped to .elc--look so the old look returns when it is off. */

@font-face {
	font-family: "Inter Var";
	src: url("fonts/inter-latin.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
body.elc-look, .elc--look {
	font-family: "Inter Var", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.elc--look { --elc-blue: #1e90ff; --elc-pink: #ff3b5c; }

/* ---------- Football · Live TV · Radio buttons ---------- */
.elc--look .elc-jump {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px;
	margin: 0 0 14px; max-width: 560px;
}
.elc--look .elc-jump__b {
	display: flex; align-items: center; justify-content: center; gap: 7px;
	min-height: 42px; padding: 0 10px; border-radius: 10px;
	border: 1px solid var(--elc-line); background: var(--elc-surface); color: var(--elc-muted);
	font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.elc--look .elc-jump__b .elc-ico { width: 16px; height: 16px; color: currentColor; }
.elc--look .elc-jump__b.is-on { background: var(--elc-blue); border-color: var(--elc-blue); color: #fff; }
.elc--look .elc-jump__b:focus-visible { outline: 3px solid var(--elc-blue); outline-offset: 2px; }
.elc--look.is-watching .elc-jump { display: none; }

/* ---------- Section and group headings ---------- */
.elc--look .elc-sec__title { font-size: 19px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 12px; }
.elc--look .elc-sec--match > .elc-sec__title { display: none; } /* the Football button already says it; "Live now" leads */
.elc--look .elc-grp {
	display: flex; align-items: center; gap: 8px;
	margin: 0 0 10px; font-size: 18px; font-weight: 800; letter-spacing: -.01em; color: var(--elc-text);
}
.elc--look .elc-grp + .elc-grid, .elc--look .elc-grid + .elc-grp { margin-top: 0; }
.elc--look .elc-grid + .elc-grp { padding-top: 20px; }
.elc--look .elc-grp__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--elc-pink); }
.elc--look .elc-grp__n {
	display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 999px;
	font-size: 12px; font-weight: 700; background: rgba(255, 59, 92, .16); color: #ff8fa3;
}
.elc--look .elc-grp--later .elc-grp__n, .elc--look .elc-grp--done .elc-grp__n { background: rgba(30, 144, 255, .16); color: #8cc4ff; }
.elc--look .elc-grp[hidden], .elc--look .elc-grp--pin { display: none; }
.elc--look .elc-grid--pin { margin: 4px 0 0; padding-top: 6px; }
.elc--look .elc-grid--match + .elc-grid--pin { padding-top: 18px; }

/* ---------- Match cards: one slim card each, play button on the right ---------- */
.elc--look .elc-grid--match { gap: 8px; }
.elc--look .elc-mcard {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) auto 48px;
	grid-template-areas: "comp comp play" "home status play" "away status play";
	align-items: center; column-gap: 10px; row-gap: 5px;
	min-height: 0; padding: 10px 10px 10px 12px; text-align: left;
	border: 1px solid var(--elc-line); border-radius: 14px; box-shadow: none;
	background: var(--elc-surface);
	animation: none;
}
.elc--look .elc-mcard:hover { background: var(--elc-surface-2); }
.elc--look .elc-mcard.is-live {
	border: 1px solid transparent;
	background: linear-gradient(var(--elc-surface), var(--elc-surface)) padding-box, linear-gradient(115deg, #ff3b5c, #4da3ff) border-box;
	background-size: auto; box-shadow: none;
}
.elc--look .elc-mcard.is-live:hover { background: linear-gradient(var(--elc-surface-2), var(--elc-surface-2)) padding-box, linear-gradient(115deg, #ff3b5c, #4da3ff) border-box; }
.elc--look .elc-mcard.is-current { box-shadow: inset 3px 0 0 var(--elc-blue); }
.elc--look .elc-mcard__row { display: contents; }
.elc--look .elc-mcard__comp {
	grid-area: comp; width: auto; font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--elc-muted);
}
.elc--look .elc-mcard__comp::before { width: 7px; height: 7px; background: var(--elc-blue); }
.elc--look .elc-mcard.is-live .elc-mcard__comp { color: var(--elc-muted); }
.elc--look .elc-mcard.is-live .elc-mcard__comp::before { background: var(--elc-pink); }
.elc--look .elc-team { flex-direction: row; align-items: center; gap: 9px; text-align: left; min-width: 0; }
.elc--look .elc-team--home { grid-area: home; }
.elc--look .elc-team--away { grid-area: away; }
.elc--look .elc-team__logo, .elc--look .elc-mcard.is-live .elc-team__logo {
	width: 24px; height: 24px; flex: 0 0 auto; border-radius: 6px; box-shadow: none; background: var(--elc-surface-2);
}
.elc--look .elc-team__logo--text { font-size: 9px; font-weight: 800; letter-spacing: -.02em; overflow: hidden; }
.elc--look .elc-team__name { font-size: 15px; font-weight: 700; -webkit-line-clamp: 1; line-clamp: 1; word-break: break-word; }
.elc--look .elc-mstatus { grid-area: status; min-width: 0; align-items: flex-end; text-align: right; gap: 4px; }
.elc--look .elc-mstatus__main, .elc--look .elc-mcard.is-live .elc-mstatus__main { font-size: 18px; font-weight: 800; color: var(--elc-text); text-shadow: none; }
.elc--look .elc-mcard:not(.is-live):not(.is-finished) .elc-mstatus__main { display: none; } /* "vs" only between live scores */
.elc--look .elc-mcard:not(.is-live) .elc-mstatus__sub { font-size: 12.5px; font-weight: 700; color: #4da3ff; white-space: nowrap; }
.elc--look .elc-mcard.is-finished .elc-mstatus__sub { color: var(--elc-muted); }
.elc--look .elc-mstatus .elc-live { font-size: 10px; padding: 3px 6px; }
.elc--look .elc-mcard::after {
	content: ""; grid-area: play; justify-self: end;
	width: 44px; height: 44px; 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='%239aa4b6'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") 56% 50% / 18px no-repeat;
}
.elc--look .elc-mcard.is-live::after { background-color: var(--elc-pink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E"); }
.elc--look .elc-mcard.is-finished { opacity: .7; }

/* ---------- Sports 24/7: small tiles in one row that scrolls sideways ---------- */
.elc--look .elc-grid--s247 {
	display: flex !important; gap: 10px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
	margin: 0 -2px; padding: 0 2px 2px;
}
.elc--look .elc-grid--s247::-webkit-scrollbar { display: none; }
.elc--look .elc-grid--s247 > .elc-grid__item { flex: 0 0 112px; }
.elc--look .elc-grid--s247 .elc-scard {
	flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px;
	min-height: 0; height: 100%; padding: 12px 8px; text-align: center;
	border: 1px solid var(--elc-line); border-radius: 14px; background: var(--elc-surface); animation: none; box-shadow: none;
}
.elc--look .elc-grid--s247 .elc-scard:hover { background: var(--elc-surface-2); }
.elc--look .elc-grid--s247 .elc-scard__logo { width: 56px; height: 56px; border-radius: 12px; box-shadow: none; }
.elc--look .elc-grid--s247 .elc-scard__text { align-items: center; gap: 4px; width: 100%; }
.elc--look .elc-grid--s247 .elc-scard__top { flex-direction: column; gap: 4px; width: 100%; }
.elc--look .elc-grid--s247 .elc-scard__top .elc-live, .elc--look .elc-grid--s247 .elc-scard__off { order: 2; }
.elc--look .elc-grid--s247 .elc-scard__name { font-size: 13px; font-weight: 700; max-width: 100%; }
.elc--look .elc-grid--s247 .elc-scard__now, .elc--look .elc-grid--s247 .elc-chrow__play { display: none; }
.elc--look .elc-grid--s247 .elc-scard.is-current { border-color: var(--elc-blue); }

/* ---------- Search + other bits: same fonts and corners ---------- */
.elc--look .elc-search__input { font-family: inherit; }
.elc--look .elc-more__title { font-size: 18px; font-weight: 800; }

/* =========================================================
   Watching page: video, LIVE + title, actions, servers, chat, more matches
   ========================================================= */
.elc--look .elc-backrow { margin: 0 0 10px; }
.elc--look .elc-toctry {
	min-height: 40px; padding: 0 14px 0 10px; border-radius: 10px;
	border: 1px solid var(--elc-line); background: var(--elc-surface); font-size: 14px; font-weight: 700;
}
.elc--look .elc-tv__frame { box-shadow: none; border-radius: 12px; }
.elc--look .elc-tv__video, .elc--look .elc-tv__embed { border-radius: 12px; }
.elc--look .elc-qchip { font-size: 12px; font-weight: 700; background: rgba(16, 21, 31, .85); }

/* Title block: LIVE · name on one line, the rest under it */
.elc--look .elc-tv__bar { padding: 12px 2px 0; gap: 8px 10px; }
.elc--look .elc-tv__name { font-size: 20px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.elc--look .elc-tv__status { margin-left: 0; font-size: 13px; }
.elc--look .elc-tv__bar .elc-views { order: 3; color: var(--elc-muted); font-size: 13px; }
.elc--look .elc-tv__bar .elc-acts {
	order: 10; flex: 1 1 100%; margin: 4px 0 0;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px;
}
.elc--look .elc-act {
	justify-content: center; min-height: 44px; border-radius: 10px;
	border: 1px solid var(--elc-line); background: var(--elc-surface); font-weight: 700;
}
.elc--look .elc-act:hover { background: var(--elc-surface-2); }
.elc--look .elc-act--cast { width: auto; min-width: 0; }

/* Servers: "Not playing well? Try another server", then equal buttons */
.elc--look .elc-servers {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px;
	margin: 12px 0 2px; padding: 12px; overflow: visible;
	border: 1px solid var(--elc-line); border-radius: 14px; background: var(--elc-surface); box-shadow: none;
}
html.elc-light .elc--look .elc-servers { border-color: var(--elc-line); background: var(--elc-surface); box-shadow: none; }
.elc--look .elc-servers::before {
	content: "Not playing well? Try another server"; grid-column: 1 / -1;
	font-size: 13px; font-weight: 600; color: var(--elc-muted);
}
.elc--look .elc-servers__lab { display: none; }
.elc--look .elc-srv {
	min-width: 0; min-height: 44px; padding: 0 10px; border-radius: 10px;
	border: 1px solid var(--elc-line); background: var(--elc-surface);
	font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.elc--look .elc-srv.is-on { background: var(--elc-blue); border-color: var(--elc-blue); color: #fff; }
.elc--look .elc-srv { background: var(--elc-surface-2); }
.elc--look .elc-srv.is-on .elc-srv__dot { opacity: 1; background: #fff; }
.elc--look .elc-srv:not(.is-on) .elc-srv__dot { display: none; }

/* Scoreboard over a match: flat card, no stripes */
.elc--look .elc-board { border: 1px solid var(--elc-line); border-radius: 14px; background: var(--elc-surface); }
.elc--look .elc-board__comp { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; }
.elc--look .elc-board__name { font-weight: 800; }

/* "Live Sports" / now-playing strip: calmer */
.elc--look .elc-nowbar { border-radius: 10px; background: var(--elc-surface); border: 1px solid var(--elc-line); }
.elc--look .elc-nowbar__text { color: var(--elc-text); font-size: 14px; }

/* Chat */
.elc--look .elc-chat { border-radius: 14px; border: 1px solid var(--elc-line); background: var(--elc-surface); }
.elc--look .elc-chat__title { font-size: 17px; font-weight: 800; }
.elc--look .elc-chat__text, .elc--look .elc-chat__name { border-radius: 10px; font-family: inherit; }
.elc--look .elc-chat__send { border-radius: 10px; background: var(--elc-blue); color: #fff; }

/* "More live sports" / other matches under the player */
.elc--look .elc-same { border-radius: 14px; border: 1px solid var(--elc-line); background: var(--elc-surface); }
.elc--look .elc-same__title { font-size: 17px; font-weight: 800; }
.elc--look .elc-chrow { border-radius: 12px; }
.elc--look .elc-chrow__play { background-color: var(--elc-pink); }
.elc--look .elc-more__back { border-radius: 10px; font-weight: 700; }

/* Light mode keeps working: everything above uses the page's own color variables. */
html.elc-light .elc--look .elc-grp__n { background: rgba(255, 59, 92, .12); color: #c8102e; }
html.elc-light .elc--look .elc-grp--later .elc-grp__n, html.elc-light .elc--look .elc-grp--done .elc-grp__n { background: rgba(30, 144, 255, .12); color: #0b63c4; }
html.elc-light .elc--look .elc-mcard:not(.is-live) .elc-mstatus__sub { color: #0b63c4; }

/* ---------- White (light) mode: cards stand out from the page, blue text dark enough to read ---------- */
html.elc-light .elc--look .elc-mcard,
html.elc-light .elc--look .elc-jump__b,
html.elc-light .elc--look .elc-grid--s247 .elc-scard,
html.elc-light .elc--look .elc-toctry,
html.elc-light .elc--look .elc-act,
html.elc-light .elc--look .elc-servers,
html.elc-light .elc--look .elc-board,
html.elc-light .elc--look .elc-nowbar,
html.elc-light .elc--look .elc-chat,
html.elc-light .elc--look .elc-same { border-color: rgba(16, 21, 31, .14); box-shadow: 0 1px 3px rgba(16, 21, 31, .08); }
html.elc-light .elc--look .elc-mcard.is-live { border-color: transparent; box-shadow: 0 2px 10px rgba(255, 59, 92, .12); }
html.elc-light .elc--look .elc-jump__b.is-on, html.elc-light .elc--look .elc-srv.is-on { box-shadow: none; }
html.elc-light .elc--look .elc-mcard::after { background-color: #e6eaf1; }
html.elc-light .elc--look .elc-mcard.is-live::after { background-color: var(--elc-pink); }
html.elc-light .elc--look .elc-mcard__comp::before { background: #0b63c4; }
html.elc-light .elc--look .elc-mcard.is-live .elc-mcard__comp::before { background: var(--elc-pink); }
html.elc-light .elc--look .elc-team__logo { background: #e6eaf1; color: #10151f; }
html.elc-light .elc--look .elc-srv { background: #eef1f6; color: #10151f; border-color: rgba(16, 21, 31, .14); }
html.elc-light .elc--look .elc-mcard.is-finished .elc-mstatus__sub { color: var(--elc-muted); }
html.elc-light .elc--look .elc-srv.is-on { background: var(--elc-blue); color: #fff; }
html.elc-light .elc--look .elc-qchip { background: rgba(16, 21, 31, .85); color: #fff; }
html.elc-light .elc--look .elc-grp__dot { background: #e11d48; }

/* Sound and full screen buttons on the picture: small, matching, on opposite sides */
.elc--look .elc-snd, .elc--look .elc-fsbtn, .elc--look .has-wm-tr .elc-fsbtn {
	top: 46px; bottom: auto; width: 32px; height: 32px;
	background: rgba(0, 0, 0, .45); box-shadow: none;
	-webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.elc--look .elc-snd { left: 8px; }
.elc--look .elc-fsbtn, .elc--look .has-wm-tr .elc-fsbtn { right: 8px; }
.elc--look .elc-snd svg, .elc--look .elc-fsbtn svg { width: 17px; height: 17px; }
.elc--look .elc-snd.is-off { background: rgba(229, 57, 53, .9); }
.elc--look .elc-snd:active, .elc--look .elc-fsbtn:active { transform: scale(.92); }
.elc--look .elc-snd::before, .elc--look .elc-fsbtn::before { content: ""; position: absolute; inset: -6px; } /* small to see, easy to tap */
