* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: transparent; color: #fff; font-family: Arial, sans-serif; }
html { background: #0a0a0a; }
body { font-size: 28px; }
button, input { font: inherit; }
button { color: #eee; border: 2px solid #303030; border-radius: 8px; background: #191919; padding: 14px 22px; cursor: pointer; text-align: left; }
button:focus, input:focus { outline: 4px solid var(--accent, #12bff0); outline-offset: -4px; background-color: #0c3557; color: #fff; }
button:disabled { opacity: .4; }
button.active { border-color: var(--accent, #12bff0); color: var(--accent, #12bff0); }
img { object-fit: contain; }
.hidden { display: none !important; }
#stage { position: absolute; top: 0; left: 0; width: 1920px; height: 1080px; transform-origin: 0 0; }
#background, #shade { position: absolute; width: 1920px; height: 1080px; top: 0; left: 0; }
#background { object-fit: cover; }
#shade { background: rgba(0,0,0,.80); }
#screen { position: absolute; width: 100%; height: 100%; }
#header { height: 126px; padding: 28px 48px; background: rgba(20,20,20,.92); display: flex; align-items: center; justify-content: space-between; }
#heading { max-width: 1040px; font-size: 38px; font-weight: bold; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
#toolbar { display: flex; }
#toolbar button { font-size: 24px; margin-left: 14px; padding: 13px 23px; }
#sessionbar { position:absolute;top:130px;left:48px;right:48px;font-size:21px;color:#b3b3b3;display:flex;justify-content:space-between; }
#server-status {max-width:1050px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--accent, #12bff0);}
.yearbar {height:60px;margin-bottom:15px;display:flex;overflow-x:auto;overflow-y:hidden;}
.yearbar button {font-size:23px;padding:10px 20px;margin-right:12px;flex-shrink:0;}
.browser-layout.filtered {height:685px;}
#content { height: 810px; position: relative; padding: 36px 48px 0; }
footer { position: absolute; top: 952px; left: 48px; right: 48px; height: 115px; color: #b3b3b3; }
#status { height: 64px; font-size: 25px; line-height: 30px; overflow: hidden; }
#hints { font-size: 23px; color: #888; }
.home-logo { position: absolute; top: 24px; left: 670px; width: 580px; height: 130px; text-align: center; }
.home-logo strong { display: block; font-size: 68px; line-height: 110px; letter-spacing: 5px; color: var(--accent, #12bff0); }
.home-logo img { width: 100%; height: 100%; position: absolute; top: 0; left: 0; }
.home-body { position: absolute; top: 205px; left: 75px; right: 75px; display: flex; }
.home-tiles { width: 768px; display: flex; flex-wrap: wrap; flex-shrink: 0; }
.home-tile { width: 356px; height: 235px; margin: 0 24px 24px 0; text-align: center; font-size: 33px; font-weight: bold; color: #b3b3b3; }
.home-tile img { display: block; width: 78px; height: 78px; margin: 12px auto 28px; }
.home-tile:focus { color: var(--accent, #12bff0); }
.banner-box { width: 930px; height: 494px; background: #141414; position: relative; }
.banner-box img { width: 100%; height: 100%; position: absolute; top: 0; left: 0; }
.banner-placeholder { position: absolute; width: 100%; text-align: center; top: 180px; color: #888; font-size: 36px; line-height: 50px; }
.banner-counter { position: absolute; bottom: 12px; right: 18px; padding: 8px; background: rgba(0,0,0,.6); font-size: 22px; }
.disclaimer { position: absolute; top: 745px; left: 80px; width: 1760px; text-align: center; font-size: 21px; color: #888; }
.activation { text-align: center; padding-top: 160px; }
.activation h1 { font-size: 64px; color: var(--accent, #12bff0); margin: 0 0 32px; }
.activation p { font-size: 30px; }
.device-code { font-family: monospace; font-size: 56px; letter-spacing: 5px; color: var(--accent, #12bff0); padding: 22px; margin: 25px auto 45px; background: #141414; border: 1px solid #333; width: 940px; }
.activation button { margin: 0 15px; min-width: 240px; text-align: center; }
.browser-layout { display: flex; height: 760px; }
.sidebar { width: 340px; flex-shrink: 0; background: rgba(20,20,20,.94); padding: 16px; overflow-y: auto; }
.sidebar h2 { font-size: 22px; letter-spacing: 3px; color: #888; margin: 0 0 20px; }
.sidebar button { display: block; width: 100%; font-size: 25px; padding: 16px 12px; margin-bottom: 7px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.catalog { margin-left: 28px; width: 1456px; overflow-y: auto; padding: 4px; }
.catalog.live { width: 586px; flex-shrink: 0; }
.channel { width: 100%; display: flex; align-items: center; min-height: 78px; margin-bottom: 9px; font-size: 26px; }
.channel img { width: 48px; height: 40px; margin-right: 13px; }
.channel span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.channel small { color: var(--accent, #12bff0); margin-right: 14px; }
.live-preview { margin-left: 28px; width: 840px; flex-shrink: 0; }
.video-hole { width: 840px; height: 472px; background: #111; border: 1px solid #333; display: flex; align-items: center; justify-content: center; text-align: center; color: #777; font-size: 28px; padding: 40px; }
.live-preview h2 { font-size: 29px; color: var(--accent, #12bff0); height: 72px; overflow: hidden; margin: 20px 0 10px; }
.preview-buttons { display: flex; flex-wrap: wrap; }
.preview-buttons button { font-size: 23px; margin: 0 10px 10px 0; padding: 13px 18px; }
.poster-grid { display: flex; flex-wrap: wrap; align-content: flex-start; }
.poster-card { width: 252px; margin: 0 22px 22px 0; padding: 10px; flex-shrink: 0; }
.poster-card img, .poster-placeholder { width: 228px; height: 285px; display: block; background: #151515; }
.poster-placeholder { text-align: center; padding-top: 124px; color: #555; font-size: 26px; }
.poster-card .card-title { height: 68px; overflow: hidden; font-size: 23px; line-height: 31px; margin-top: 11px; display: block; }
.empty { text-align: center; font-size: 32px; color: #888; padding: 145px 25px; width: 100%; }
.details { display: flex; padding-top: 10px; }
.detail-cover { width: 340px; height: 510px; flex-shrink: 0; background: #161616; }
.detail-body { margin-left: 50px; width: 1400px; }
.detail-meta { color: var(--accent, #12bff0); font-size: 25px; line-height: 34px; min-height: 45px; }
.detail-cast { font-size: 24px; line-height: 32px; color: #b3b3b3; max-height: 73px; overflow: hidden; margin: 18px 0; }
.detail-plot { font-size: 26px; line-height: 36px; height: 185px; overflow-y: auto; padding: 10px; border: 2px solid #242424; white-space: pre-wrap; }
.detail-actions { margin-top: 24px; display: flex; flex-wrap: wrap; }
.detail-actions button { margin: 0 16px 16px 0; font-size: 25px; }
.simple-list { max-height: 720px; overflow-y: auto; width: 1500px; margin: 0 auto; }
.simple-list button { display: block; width: 100%; margin: 10px 0; }
.epg-item { padding: 25px; border-bottom: 1px solid #333; }
.epg-item strong { display: block; color: var(--accent, #12bff0); margin-bottom: 10px; }
#av-player, #html-player { position: absolute; display: none; z-index: 2; background: #000; }
#stage { z-index: 3; pointer-events: none; }
#screen, #modal-layer, #playback-hud { pointer-events: auto; }
body.preview #shade { background: rgba(0,0,0,.80); }
body.preview #background, body.preview #shade { display: none; }
#video-matte div { position: absolute; background: #0a0a0a; }
.matte-top { left: 0; top: 0; width: 1920px; height: 162px; }
.matte-left { left: 0; top: 162px; width: 1030px; height: 472px; }
.matte-right { left: 1870px; top: 162px; width: 50px; height: 472px; }
.matte-bottom { left: 0; top: 634px; width: 1920px; height: 446px; }
body.preview .video-hole { background: transparent; border: 0; color: transparent; }
body.preview #content, body.preview #screen { background: transparent; }
body.fullscreen #screen { visibility: hidden; }
body.fullscreen #background, body.fullscreen #shade { display: none; }
#playback-hud { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.85); padding: 25px 48px; }
#playing-title { display: inline-block; width: 1300px; font-size: 34px; }
#playback-time { float: right; color: var(--accent, #12bff0); font-size: 26px; }
#playback-controls { margin-top: 15px; }
#playback-controls button { margin-right: 15px; font-size: 24px; padding: 10px 20px; }
#modal-layer { position: absolute; width: 1920px; height: 1080px; background: rgba(0,0,0,.85); z-index: 10; display: flex; align-items: center; justify-content: center; }
#modal { width: 1050px; max-height: 900px; background: #171717; border: 2px solid var(--accent, #12bff0); padding: 45px; overflow-y: auto; }
#modal h2 { font-size: 38px; margin-top: 0; }
#modal-description { color: #b3b3b3; font-size: 25px; }
#modal button { margin: 12px 12px 0 0; min-width: 200px; }
#modal input { width: 100%; font-size: 40px; color: #fff; background: #0c0c0c; border: 2px solid #555; padding: 20px; margin-bottom: 12px; }
.modal-error { color: #ff8585; min-height: 36px; font-size: 24px; }


:root{--accent:#12bff0}html{background:#030d20}#header{background:rgba(3,16,38,.96);gap:18px}#heading{flex:1;min-width:0}.header-brand{width:72px;height:72px;flex:0 0 72px}.home-logo{top:8px;height:180px}.home-logo img{object-fit:contain}.activation{padding-top:35px}.activation .activation-logo{display:block;width:210px;height:210px;margin:0 auto 12px}.activation h1{font-size:42px;margin-bottom:18px}.device-code{background:#071d39;border-color:#1d4e79}button{background:#07182e;border-color:#1d3d61}button:focus,input:focus{background-color:#0c3557}.banner-box{background:#06162e}.sidebar{background:rgba(4,19,42,.96)}#modal{background:#07182e}#video-matte div{background:#030d20}
.home-tile img{filter:hue-rotate(55deg) saturate(1.4)}#shade{background:linear-gradient(135deg,rgba(1,8,27,.35),rgba(2,15,37,.75))}
#device-info-shortcut{position:absolute;left:38px;bottom:32px;z-index:4;display:flex;align-items:center;gap:18px;padding:12px 18px;max-width:900px;min-height:64px;background:#06162ef2;border:2px solid #1d4e79;border-radius:9px;color:#f0f5fb;font-size:24px}#device-info-shortcut>span{color:#9fc5e2;font-size:19px}#device-code-summary{font-family:Consolas,monospace;font-size:25px;letter-spacing:1px}#device-info-shortcut:focus{outline:3px solid #12bff0;outline-offset:3px;background:#0c3557}.device-code-label{display:block;color:#c7d9ed;font-size:25px;margin:22px 0 12px}.device-code-explanation{font-size:24px;line-height:1.5;color:#b9cfe4}.device-copy-feedback{min-height:36px;margin:18px 0 0;font-size:25px;color:#8ee7ff}#modal .device-code-value{font-family:Consolas,monospace;letter-spacing:3px;font-weight:bold}
#device-info-shortcut{display:none}.home-reference #device-info-shortcut{display:flex}

#reload-notice{position:absolute;left:400px;right:400px;bottom:30px;z-index:8;padding:22px 30px;border:2px solid #13caff;border-radius:12px;background:#04152ff5;color:#e6f7ff;font-size:25px;line-height:1.4;text-align:center;box-shadow:0 6px 30px #0009}#reload-notice.reload-error{border-color:#ff9c78;color:#ffe2d7}
