
:root {
  --ink: #f7f9fc;
  --muted: #96a2b4;
  --surface: #0d1622;
  --line: rgba(255, 255, 255, 0.09);
  --accent: #6cf0c2;
  --page: #07101a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.login-shell { min-height: 100vh; display: grid; place-items: center; overflow: hidden; position: relative; padding: 28px; background: #07101a; }
.login-glow { position: absolute; border-radius: 999px; filter: blur(10px); opacity: .55; }
.login-glow-one { width: 280px; height: 280px; background: rgba(38,217,160,.16); left: 12%; top: 16%; }
.login-glow-two { width: 360px; height: 360px; background: rgba(78,92,220,.13); right: 8%; bottom: 4%; }
.login-card { position: relative; z-index: 2; width: min(100%,420px); padding: 42px; border: 1px solid rgba(255,255,255,.09); border-radius: 22px; background: #0b1623; box-shadow: 0 28px 80px rgba(0,0,0,.34); }
.brand-mark { width: 58px; height: 58px; display: grid; place-items: center; position: relative; margin-bottom: 30px; border-radius: 17px; color: #03110c; background: linear-gradient(145deg,#88ffd6,#38dda8); font-size: 16px; font-weight: 900; letter-spacing: -.04em; box-shadow: 0 12px 30px rgba(38,217,160,.24); }
.brand-mark i { position: absolute; width: 6px; height: 6px; border-radius: 50%; right: 7px; top: 7px; background: #fff; box-shadow: 0 0 12px #fff; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.login-card h1 { margin: 0 0 30px; font-size: clamp(34px,8vw,46px); line-height: 1; letter-spacing: -.055em; text-align: center; }
.login-copy { margin: 15px 0 30px; color: var(--muted); line-height: 1.7; }
.login-form { display: grid; gap: 17px; }
.login-form label { display: grid; gap: 8px; color: #c9d1dc; font-size: 13px; font-weight: 650; }
.login-form input { width: 100%; height: 52px; padding: 0 16px; color: #fff; outline: none; border: 1px solid rgba(255,255,255,.1); border-radius: 13px; background: rgba(4,10,17,.65); transition: border-color .2s,box-shadow .2s; }
.login-form input:focus { border-color: rgba(108,240,194,.7); box-shadow: 0 0 0 4px rgba(108,240,194,.08); }
.form-error { margin: -4px 0 0; color: #ff8f9b; font-size: 13px; }
.primary-button { height: 54px; display: flex; align-items: center; justify-content: center; margin-top: 4px; padding: 0 19px; color: #04110d; border: 0; border-radius: 13px; background: linear-gradient(135deg,#7af6cc,#35dba7); font-weight: 850; cursor: pointer; box-shadow: 0 12px 28px rgba(38,217,160,.17); }
.primary-button:hover { filter: brightness(1.06); transform: translateY(-1px); }
.secure-note { display: flex; align-items: center; gap: 8px; margin-top: 24px; color: #7f8b9b; font-size: 11px; }
.secure-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(108,240,194,.75); }

.portal-shell { min-height: 100vh; background: radial-gradient(circle at 80% 0%,rgba(25,75,95,.18),transparent 30%),var(--page); }
.topbar { height: 74px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; position: sticky; top: 0; z-index: 20; padding: 0 max(22px,calc((100vw - 1240px)/2)); border-bottom: 1px solid var(--line); background: rgba(7,16,26,.82); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 10px; justify-self: start; padding: 0; color: #fff; border: 0; background: transparent; cursor: pointer; text-align: left; }
.brand img { width: 43px; height: 43px; display: block; }
.brand-wordmark { display: grid; gap: 1px; line-height: 1; }
.brand-wordmark strong { color: #f8fbff; font-size: 14px; font-weight: 900; letter-spacing: .035em; }
.brand-wordmark small { color: var(--accent); font-size: 7px; font-weight: 900; letter-spacing: .25em; }
.topbar-nav { display: flex; align-items: center; justify-self: center; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.025); }
.topbar-nav button { height: 32px; padding: 0 15px; color: #8794a5; border: 0; border-radius: 8px; background: transparent; cursor: pointer; font-size: 11px; font-weight: 800; letter-spacing: .03em; }
.topbar-nav button:hover { color: #dfe7ef; }
.topbar-nav button.active { color: #04110d; background: var(--accent); box-shadow: 0 5px 15px rgba(108,240,194,.14); }
.topbar-actions { display: flex; align-items: center; justify-self: end; gap: 18px; }
.topbar-status { display: flex; align-items: center; gap: 8px; color: #9cabb9; font-size: 12px; }
.live-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(108,240,194,.08); }
.account-button { justify-self: end; display: flex; align-items: center; gap: 10px; color: #9da8b6; border: 0; background: transparent; cursor: pointer; font-size: 12px; }
.account-button span { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: #d9e0e8; background: var(--surface); font-size: 10px; font-weight: 800; }
.portal-content { width: min(1240px,calc(100% - 44px)); margin: 0 auto; padding: 36px 0 64px; }
.player-panel { overflow: hidden; position: relative; margin-bottom: 48px; scroll-margin-top: 90px; border: 1px solid var(--line); border-radius: 24px; background: #080f18; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.player-ambient { position: absolute; inset: 0; opacity: .5; background: radial-gradient(circle at 28% 20%,rgba(67,81,217,.3),transparent 30%),radial-gradient(circle at 74% 70%,rgba(25,187,138,.22),transparent 34%); filter: blur(30px); }
.player-screen { aspect-ratio: 16/7.1; min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; z-index: 1; text-align: center; background: linear-gradient(180deg,rgba(7,13,22,.15),rgba(4,8,14,.74)); }
.player-screen::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(transparent,rgba(2,5,9,.72)); z-index: -1; }
.play-orb { width: 70px; height: 70px; display: grid; place-items: center; padding-left: 4px; margin-bottom: 20px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; color: var(--accent); background: rgba(255,255,255,.06); box-shadow: 0 18px 40px rgba(0,0,0,.2); }
.player-screen h2 { margin: 0; font-size: clamp(26px,4vw,46px); letter-spacing: -.045em; }
.player-screen > p:not(.player-kicker) { margin: 10px 0 0; color: #93a0af; }
.player-kicker { display: flex; align-items: center; gap: 7px; margin: 17px 0 8px; color: #ebf0f4; font-size: 10px; font-weight: 900; letter-spacing: .15em; }
.player-kicker span { width: 7px; height: 7px; border-radius: 50%; background: #ff5265; box-shadow: 0 0 12px rgba(255,82,101,.9); }
.player-logo { width: 88px !important; height: 64px !important; font-size: 18px !important; }
.signal-bars { position: absolute; top: 22px; right: 24px; display: flex; align-items: end; gap: 3px; height: 13px; }
.signal-bars i { width: 3px; border-radius: 3px; background: var(--accent); }.signal-bars i:nth-child(1){height:4px}.signal-bars i:nth-child(2){height:7px}.signal-bars i:nth-child(3){height:10px}.signal-bars i:nth-child(4){height:13px}
.player-meta { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 20px; position: relative; z-index: 2; padding: 18px 24px; border-top: 1px solid var(--line); background: rgba(10,18,28,.92); }
.player-meta h3 { margin: 1px 0 2px; font-size: 18px; }.player-meta p { margin: 0; color: #8794a4; font-size: 12px; }
.meta-label { color: var(--accent) !important; font-size: 9px !important; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.player-epg { min-width: 260px; max-width: 560px; flex: 1; display: grid; gap: 4px; padding: 0 22px; border-left: 1px solid var(--line); }
.player-epg strong { overflow: hidden; color: #eaf0f6; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.player-epg span { overflow: hidden; color: #7f8d9e; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.epg-progress { height: 3px; overflow: hidden; margin-top: 4px; border-radius: 99px; background: rgba(255,255,255,.08); }
.epg-progress i { width: 0; height: 100%; display: block; border-radius: inherit; background: var(--accent); transition: width .4s ease; }
.progress-0 { width: 0% !important; }.progress-10 { width: 10% !important; }.progress-20 { width: 20% !important; }.progress-30 { width: 30% !important; }.progress-40 { width: 40% !important; }.progress-50 { width: 50% !important; }.progress-60 { width: 60% !important; }.progress-70 { width: 70% !important; }.progress-80 { width: 80% !important; }.progress-90 { width: 90% !important; }.progress-100 { width: 100% !important; }
.quality-control { min-width: 0; display: flex; align-items: center; gap: 7px; }
.quality-control label { color: #78879a; font-size: 9px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.quality-select-wrap { position: relative; }
.quality-select-wrap::after { content: "⌄"; position: absolute; top: 50%; right: 10px; color: var(--accent); pointer-events: none; transform: translateY(-56%); }
.quality-select-wrap select { width: 116px; height: 36px; padding: 0 28px 0 11px; color: #eaf1f7; border: 1px solid rgba(108,240,194,.22); border-radius: 9px; outline: 0; appearance: none; background: #101d2a; cursor: pointer; font-size: 11px; font-weight: 800; }
.quality-select-wrap select:hover { border-color: rgba(108,240,194,.55); }
.quality-select-wrap select:disabled { cursor: wait; opacity: .65; }
.quality-select-wrap option:disabled { color: #627083; }
.quality-control small { color: #8794a4; font-size: 9px; }
.player-toolbar { display: flex; align-items: flex-start; justify-content: flex-start; gap: 12px; position: absolute; z-index: 7; top: 14px; right: 14px; left: 14px; pointer-events: none; }
.player-toolbar > * { pointer-events: auto; }
.live-control { height: 38px; display: inline-flex; align-items: center; gap: 8px; padding: 0 13px; color: #dfe7ef; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; background: rgba(6,12,20,.82); backdrop-filter: blur(12px); cursor: pointer; font-size: 10px; font-weight: 900; letter-spacing: .1em; box-shadow: 0 8px 24px rgba(0,0,0,.3); transition: border-color .2s,background .2s,transform .2s; }
.live-control:not(:disabled):hover { border-color: rgba(255,90,106,.72); background: rgba(33,12,19,.92); transform: translateY(-1px); }
.live-control:disabled { cursor: default; opacity: 1; }
.live-control-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #718092; box-shadow: 0 0 0 4px rgba(113,128,146,.1); }
.live-control[data-state="live"] { color: #fff; border-color: rgba(255,78,98,.36); background: rgba(43,9,16,.82); }
.live-control[data-state="live"] .live-control-dot { background: #ff4e62; box-shadow: 0 0 0 4px rgba(255,78,98,.13),0 0 14px rgba(255,78,98,.85); animation: livePulse 1.7s ease-in-out infinite; }
.live-control[data-state="behind"] { color: #fff; border-color: rgba(255,164,82,.38); background: rgba(42,24,8,.88); }
.live-control[data-state="behind"] .live-control-dot { background: #ffa452; box-shadow: 0 0 12px rgba(255,164,82,.65); }
.live-control[data-state="loading"] .live-control-dot { background: var(--accent); box-shadow: 0 0 12px rgba(108,240,194,.65); }
.player-quality-control { flex: 0 0 auto; }
.player-quality-control label { color: #97a4b4; }
.player-quality-control .quality-select-wrap select { width: 108px; height: 38px; border-color: rgba(255,255,255,.14); background: rgba(7,13,21,.82); backdrop-filter: blur(10px); }
.player-controls { min-height: 56px; display: flex; align-items: center; gap: 6px; position: absolute; z-index: 8; right: 0; bottom: 0; left: 0; padding: 15px 16px 10px; color: #fff; background: linear-gradient(transparent,rgba(2,5,9,.88) 45%); text-align: left; }
.player-control-button { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; padding: 0; color: #f6f9fc; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; background: rgba(7,13,21,.72); backdrop-filter: blur(10px); cursor: pointer; font-size: 14px; transition: border-color .2s,background .2s,transform .2s; }
.player-control-button:hover { border-color: rgba(108,240,194,.52); background: rgba(15,29,42,.92); transform: translateY(-1px); }
.volume-control { min-width: 132px; display: flex; align-items: center; gap: 8px; padding: 0 7px; }
.volume-control input[type="range"] { width: 88px; height: 18px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.volume-control output { min-width: 34px; color: #a9b5c3; font-size: 9px; font-variant-numeric: tabular-nums; text-align: right; }
.player-controls-spacer { flex: 1; }
.watch-counter { min-width: 126px; display: flex; align-items: baseline; gap: 8px; margin-left: 3px; padding: 7px 11px; border: 1px solid rgba(255,255,255,.11); border-radius: 10px; background: rgba(7,13,21,.66); backdrop-filter: blur(10px); }
.watch-counter span { color: #97a4b4; font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.watch-counter strong { min-width: 41px; color: #fff; font-variant-numeric: tabular-nums; font-size: 12px; letter-spacing: .04em; }
.player-screen:fullscreen { width: 100vw; height: 100vh; min-height: 100vh; aspect-ratio: auto; background: #000; }
.player-screen:fullscreen .player-video { object-fit: contain; }
.catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }.catalog-heading h2 { margin: 0; font-size: clamp(28px,4vw,38px); letter-spacing: -.045em; }
.search-box { width: min(100%,280px); height: 44px; display: flex; align-items: center; gap: 9px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; color: #738092; background: var(--surface); }.search-box input { width: 100%; border: 0; outline: 0; color: #e8edf3; background: transparent; font-size: 13px; }.search-box input::placeholder { color: #667386; }
.filter-row { display: flex; gap: 8px; margin: 24px 0 20px; overflow-x: auto; padding-bottom: 2px; }.filter-row button { display: flex; align-items: center; gap: 8px; padding: 9px 13px; white-space: nowrap; border: 1px solid var(--line); border-radius: 10px; color: #8e9aaa; background: rgba(255,255,255,.025); cursor: pointer; font-size: 12px; }.filter-row button span { color: #667386; font-size: 10px; }.filter-row button.active { color: #05120d; border-color: var(--accent); background: var(--accent); font-weight: 800; }.filter-row button.active span { color: rgba(5,18,13,.6); }
.channel-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.channel-card { min-width: 0; min-height: 82px; display: grid; grid-template-columns: 86px 1fr auto; align-items: center; gap: 15px; position: relative; overflow: hidden; padding: 13px; text-align: left; border: 1px solid var(--line); border-radius: 17px; background: linear-gradient(145deg,rgba(18,31,46,.96),rgba(10,19,30,.94)); cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.025); transition: transform .2s,border-color .2s,background .2s,box-shadow .2s; }.channel-card::after { content: ""; width: 72px; height: 72px; position: absolute; right: -45px; bottom: -50px; border-radius: 50%; background: rgba(108,240,194,.1); filter: blur(12px); opacity: 0; transition: opacity .2s; }.channel-card:hover { transform: translateY(-2px); border-color: rgba(108,240,194,.3); background: linear-gradient(145deg,rgba(23,39,57,.99),rgba(13,25,38,.99)); box-shadow: 0 12px 28px rgba(0,0,0,.18); }.channel-card:hover::after,.channel-card.selected::after { opacity: 1; }.channel-card.selected { border-color: rgba(108,240,194,.72); box-shadow: inset 3px 0 0 var(--accent),0 12px 30px rgba(0,0,0,.18); }
.channel-logo { width: 86px; height: 54px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; color: #fff; font-size: 13px; font-weight: 950; letter-spacing: -.03em; box-shadow: inset 0 1px 0 rgba(255,255,255,.16),0 8px 20px rgba(0,0,0,.16); }
.channel-logo-violet { background: linear-gradient(145deg,#7467ef,#3d36a9); }.channel-logo-lime { background: linear-gradient(145deg,#a8ed4a,#3fa551); color:#07130a; }.channel-logo-blue { background: linear-gradient(145deg,#4b9aff,#2452ad); }.channel-logo-amber { background: linear-gradient(145deg,#f6b54d,#bd6426); }.channel-logo-rose { background: linear-gradient(145deg,#ed6b94,#9e345f); }.channel-logo-teal { background: linear-gradient(145deg,#4ddac8,#187e85); }.channel-logo-red { background: linear-gradient(145deg,#ff5d67,#a91e39); }.channel-logo-pink { background: linear-gradient(145deg,#f47bd7,#97458e); }.channel-logo-cyan { background: linear-gradient(145deg,#5fddef,#2470a2); }
.channel-copy { min-width: 0; }.channel-copy h3 { overflow: hidden; margin: 0 0 7px; color: #f2f5f9; font-size: 13px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.channel-epg { overflow: hidden; margin: -2px 0 5px; color: #a9b5c4; font-size: 10px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.channel-details { min-width: 0; display: flex; align-items: center; gap: 7px; overflow: hidden; margin: 0; color: #78889a; font-size: 9px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; }
.channel-group { overflow: hidden; text-overflow: ellipsis; }
.channel-arrow { position: relative; z-index: 1; color: #617083; font-size: 9px; transition: color .2s,transform .2s; }.channel-card:hover .channel-arrow,.channel-card.selected .channel-arrow { color: var(--accent); transform: translateX(2px); }
.empty-state { padding: 48px 20px; border: 1px dashed var(--line); border-radius: 16px; color: #7e8b9c; text-align: center; }
.epg-view { min-height: calc(100vh - 160px); }
.epg-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 22px; }
.epg-heading h2 { margin: 0; font-size: clamp(30px,4vw,42px); letter-spacing: -.045em; }
.epg-heading > div > p:last-child { margin: 8px 0 0; color: #7f8c9d; font-size: 12px; }
.epg-tools { display: flex; align-items: end; gap: 10px; }
.epg-group-control { display: grid; gap: 5px; color: #748296; font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.epg-group-control select { min-width: 176px; height: 44px; padding: 0 34px 0 12px; color: #e9eef4; border: 1px solid var(--line); border-radius: 12px; outline: 0; background: #0d1622; cursor: pointer; font-size: 12px; font-weight: 750; text-transform: none; letter-spacing: 0; }
.epg-day-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin-bottom: 16px; }
.epg-day-row button { display: grid; gap: 3px; padding: 12px 15px; text-align: left; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.025); cursor: pointer; }
.epg-day-row button strong { font-size: 12px; }
.epg-day-row button span { overflow: hidden; color: #7c899a; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.epg-day-row button.active { border-color: rgba(108,240,194,.55); background: rgba(108,240,194,.09); box-shadow: inset 0 0 0 1px rgba(108,240,194,.08); }
.epg-day-row button.active strong { color: var(--accent); }
.epg-guide { display: grid; gap: 8px; }
.epg-guide[aria-busy="true"] { min-height: 260px; place-items: center; }
.epg-guide[aria-busy="true"]::after { content: "Pobieram program…"; color: #8491a1; font-size: 12px; }
.epg-channel-row { min-width: 0; display: grid; grid-template-columns: 220px minmax(0,1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: rgba(13,22,34,.84); }
.epg-channel-button { min-width: 0; display: grid; grid-template-columns: 72px minmax(0,1fr); align-items: center; gap: 12px; padding: 11px; text-align: left; border: 0; border-right: 1px solid var(--line); background: rgba(8,16,25,.94); cursor: pointer; }
.epg-channel-button:hover { background: rgba(17,31,44,.98); }
.epg-channel-logo { width: 72px; height: 46px; border-radius: 10px; }
.epg-channel-copy { min-width: 0; display: grid; gap: 5px; }
.epg-channel-copy strong,.epg-channel-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.epg-channel-copy strong { color: #edf2f7; font-size: 12px; }
.epg-channel-copy small { color: #738194; font-size: 9px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.epg-program-lane { min-width: 0; display: flex; align-items: stretch; gap: 7px; overflow-x: auto; padding: 8px; scrollbar-color: rgba(108,240,194,.38) transparent; scrollbar-width: thin; }
.epg-program-card { width: 190px; min-width: 190px; min-height: 66px; display: grid; align-content: center; gap: 4px; overflow: hidden; position: relative; padding: 9px 11px; text-align: left; border: 1px solid rgba(255,255,255,.075); border-radius: 10px; background: rgba(255,255,255,.03); cursor: pointer; }
.epg-program-card.duration-short { width: 155px; min-width: 155px; }.epg-program-card.duration-medium { width: 230px; min-width: 230px; }.epg-program-card.duration-long { width: 300px; min-width: 300px; }.epg-program-card.duration-extra-long { width: 360px; min-width: 360px; }
.epg-program-card:hover { border-color: rgba(108,240,194,.35); background: rgba(108,240,194,.055); }
.epg-program-card.past { opacity: .56; }
.epg-program-card.current { border-color: rgba(255,78,98,.42); background: rgba(255,78,98,.075); }
.epg-program-card.current::before { content: "TERAZ"; position: absolute; top: 7px; right: 8px; color: #ff7888; font-size: 7px; font-weight: 950; letter-spacing: .1em; }
.epg-program-card > i { height: 2px; position: absolute; right: auto; bottom: 0; left: 0; background: #ff5265; }
.epg-program-time { color: var(--accent); font-size: 9px; font-weight: 850; font-variant-numeric: tabular-nums; }
.epg-program-card strong { overflow: hidden; padding-right: 28px; color: #e6ecf2; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.epg-program-card small { overflow: hidden; color: #788699; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.epg-program-missing { align-self: center; margin: auto 8px; color: #6e7b8c; font-size: 11px; }
footer { width: min(1240px,calc(100% - 44px)); display: flex; justify-content: space-between; gap: 20px; margin: 0 auto; padding: 25px 0 34px; border-top: 1px solid var(--line); color: #657184; font-size: 10px; }

@media (max-width:900px) { .channel-grid { grid-template-columns: repeat(2,1fr); }.player-screen { aspect-ratio: 16/9; min-height: 0; }.epg-heading { align-items: stretch; flex-direction: column; }.epg-tools { align-items: stretch; }.epg-tools .search-box { max-width: none; }.epg-channel-row { grid-template-columns: 190px minmax(0,1fr); }.epg-channel-button { grid-template-columns: 62px minmax(0,1fr); }.epg-channel-logo { width: 62px; height: 42px; } }
@media (max-width:640px) {
  .login-card { padding: 30px 24px; border-radius: 22px; }.topbar { height: 64px; grid-template-columns: auto 1fr auto; gap: 7px; padding: 0 13px; }.brand-wordmark { display: none; }.brand img { width: 38px; height: 38px; }.topbar-nav { justify-self: center; padding: 3px; }.topbar-nav button { height: 29px; padding: 0 10px; font-size: 10px; }.topbar-actions { gap: 0; }.topbar-status { display: none; }.account-button { font-size: 0; gap: 0; }.account-button span { width: 30px; height: 30px; }
  .portal-content { width: min(100% - 28px,1240px); padding-top: 20px; }.player-panel { margin-bottom: 34px; border-radius: 18px; }.player-screen { min-height: 230px; }.player-screen > p:not(.player-kicker) { max-width: 260px; font-size: 12px; }.player-meta { min-height: 74px; align-items: stretch; flex-direction: column; padding: 14px 16px; }.player-epg { min-width: 0; max-width: none; padding: 11px 0; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .player-toolbar { top: 8px; right: 8px; left: 8px; gap: 6px; }.live-control { height: 32px; gap: 6px; padding: 0 9px; font-size: 8px; }.player-controls { min-height: 48px; gap: 3px; padding: 10px 4px 5px; }.player-control-button { width: 30px; height: 32px; border-radius: 8px; }.volume-control { min-width: 45px; flex: 1; gap: 0; padding: 0 2px; }.volume-control input[type="range"] { width: 100%; min-width: 45px; }.volume-control output { display: none; }.watch-counter { min-width: 43px; gap: 0; margin-left: 0; padding: 6px 5px; }.watch-counter span { display: none; }.watch-counter strong { min-width: 33px; font-size: 10px; }.player-controls-spacer { display: none; }.player-quality-control label { display: none; }.player-quality-control .quality-select-wrap select { width: 82px; height: 32px; padding-right: 23px; padding-left: 8px; font-size: 9px; }
  .catalog-heading { align-items: stretch; flex-direction: column; gap: 17px; }.search-box { width: 100%; max-width: none; }.filter-row { margin-top: 16px; }.channel-grid { grid-template-columns: 1fr; }.channel-card { min-height: 76px; grid-template-columns: 78px 1fr auto; padding: 11px; }.channel-logo { width: 78px; height: 50px; }.epg-heading { gap: 17px; }.epg-tools { flex-direction: column; }.epg-group-control select { width: 100%; }.epg-day-row { gap: 5px; }.epg-day-row button { padding: 10px 8px; }.epg-day-row button span { font-size: 8px; }.epg-channel-row { display: block; }.epg-channel-button { width: 100%; grid-template-columns: 70px minmax(0,1fr); border-right: 0; border-bottom: 1px solid var(--line); }.epg-channel-logo { width: 70px; height: 44px; }.epg-program-lane { padding: 7px; } footer { width: calc(100% - 28px); flex-direction: column; gap: 6px; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

.topbar form { justify-self: end; margin: 0; }
.player-screen { overflow: hidden; }
.player-video { width: 100%; height: 100%; position: absolute; inset: 0; z-index: 3; background: #000; object-fit: contain; }
.sound-start { min-width: 250px; display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 2px 12px; position: absolute; z-index: 6; padding: 14px 18px; border: 1px solid rgba(255,255,255,.16); border-radius: 16px; color: #07110e; background: linear-gradient(135deg,#8affd8,#45dfaF); cursor: pointer; text-align: left; box-shadow: 0 18px 48px rgba(0,0,0,.42),0 0 0 7px rgba(108,240,194,.08); }.sound-start > span { grid-row: 1/3; font-size: 24px; }.sound-start strong { font-size: 13px; }.sound-start small { color: rgba(7,17,14,.66); font-size: 9px; }.sound-start:hover { filter: brightness(1.05); transform: translateY(-1px); }.sound-start:disabled { cursor: wait; opacity: .72; }
.player-placeholder, .stream-loader { display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; z-index: 2; }
[hidden] { display: none !important; }
.stream-loader { gap: 12px; color: #a8b2bf; font-size: 13px; }
.loader-ring { width: 34px; height: 34px; border: 3px solid rgba(255,255,255,.12); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
.stream-error { margin: -30px 0 38px; padding: 13px 16px; border: 1px solid rgba(255,91,111,.25); border-radius: 12px; color: #ffadba; background: rgba(130,24,46,.15); font-size: 12px; }
.catalog-loading { grid-column: 1/-1; min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #7f8c9c; font-size: 12px; }
.channel-logo { overflow: hidden; position: relative; }
.channel-logo img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: contain; padding: 5px 8px; background: linear-gradient(145deg,rgba(17,29,43,.98),rgba(7,14,23,.98)); filter: drop-shadow(0 2px 3px rgba(0,0,0,.28)); }
.channel-logo.has-image { border-color: rgba(255,255,255,.13); background: #09121d; }
.channel-logo span { position: relative; z-index: 1; }
noscript { display: block; padding: 20px; color: white; background: #9b2536; text-align: center; }
.protected-dialog { width: min(100% - 32px,420px); padding: 0; color: var(--ink); border: 1px solid rgba(255,255,255,.12); border-radius: 22px; background: #0b1623; box-shadow: 0 30px 90px rgba(0,0,0,.65); }
.protected-dialog::backdrop { background: rgba(1,6,11,.78); backdrop-filter: blur(8px); }
.protected-form { display: grid; gap: 17px; position: relative; padding: 34px; }
.protected-form h2 { margin: -7px 0 4px; font-size: 28px; letter-spacing: -.035em; }
.protected-form label { display: grid; gap: 8px; color: #c9d1dc; font-size: 13px; font-weight: 650; }
.protected-form input { width: 100%; height: 52px; padding: 0 16px; color: #fff; outline: none; border: 1px solid rgba(255,255,255,.1); border-radius: 13px; background: rgba(4,10,17,.65); }
.protected-form input:focus { border-color: rgba(108,240,194,.7); box-shadow: 0 0 0 4px rgba(108,240,194,.08); }
.dialog-close { width: 34px; height: 34px; display: grid; place-items: center; position: absolute; top: 17px; right: 17px; color: #96a2b4; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; font-size: 20px; }
.secondary-button { height: 48px; color: #cbd4df; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(255,255,255,.035); cursor: pointer; font-weight: 750; }
.filter-row button[data-group="XXX"] { border-color: rgba(255,111,139,.24); color: #dba1ad; }
.filter-row button[data-group="XXX"].active { border-color: #ff7892; color: #19060b; background: #ff7892; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes livePulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .62; transform: scale(.86); } }
