:root {
    --c0: #12161B;
    --c1: #212A38;
    --c2: #2A3546;
    --sb: #141A24;
    --blue: #2196F3;
    --amber: #FFC107;
    --sub: #B0BEC5;
    --green: #4CAF50;
    --field: #2A358A;
    --ar: 1.3333;
    --pw: calc(43rem * var(--ar));
    color-scheme: dark;
}

html {
    font-size: clamp(4.6px, min(calc(100vh / 108), calc(100vw / 160)), 24px);
    background: #000;
}
@supports (height: 100dvh) {
    html { font-size: clamp(4.6px, min(calc(100dvh / 108), calc(100vw / 160)), 24px); }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
body {
    background: #000;
    color: #fff;
    font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.dragging, .dragging * { cursor: grabbing !important; }
input { font: inherit; }
img { display: block; }
img.pending { visibility: hidden; }
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: .3rem solid #fff; outline-offset: -.3rem; }
input:focus-visible, .pp-body:focus-visible { outline: none; }
.noscript { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--c0); font-size: 18px; z-index: 100; }

.btn {
    height: 5.6rem;
    min-width: 22rem;
    padding: 0 2rem;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    font-size: 2.6rem;
    line-height: 1;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
}
.btn.sm { height: 4.8rem; font-size: 2.4rem; }
.btn:hover { filter: brightness(.96); }
.btn:active { filter: brightness(.78); }
.btn.on { background: var(--amber); color: var(--c0); }
a.btn { text-decoration: none; }
.btnrow { display: flex; align-items: center; gap: 1.5rem; }
.hint { font-size: 1.6rem; color: var(--sub); text-align: center; white-space: pre; }
small.rt { font-size: 70%; opacity: .7; font-weight: inherit; margin-left: .35em; }

#screen { position: fixed; inset: 0; z-index: 1; background: #000; overflow: hidden; container-type: size; }
#video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
#screen.dark #video { opacity: 0; }
#ad { position: absolute; inset: 0; background: #000; display: none; }
#crt {
    display: none; position: fixed; inset: 0; z-index: 1000; pointer-events: none; overflow: hidden; border-radius: 2.4vmin;
    box-shadow: 0 0 0 100vmax #000, inset 0 0 10vmin rgba(0,0,0,.7);
    -webkit-backdrop-filter: saturate(1.25) contrast(1.08) brightness(1.06) blur(.04rem); backdrop-filter: saturate(1.25) contrast(1.08) brightness(1.06) blur(.04rem);
    background:
        radial-gradient(ellipse 55% 40% at 32% 22%, rgba(255,255,255,.06), rgba(255,255,255,0) 70%),
        radial-gradient(ellipse at center, rgba(0,0,0,0) 62%, rgba(0,0,0,.32) 88%, rgba(0,0,0,.65) 100%),
        linear-gradient(rgba(0,0,0,0) 50%, rgba(0,0,0,.26) 50%) 0 0 / 100% max(2px, 100vh / 260);
    animation: crt-flicker .12s steps(2) infinite;
}
#crt::before {
    content: ""; position: absolute; inset: 0;
    background: repeating-linear-gradient(90deg, rgba(255,40,40,.06) 0 1px, rgba(40,255,40,.06) 1px 2px, rgba(40,40,255,.06) 2px 3px);
}
#crt::after {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 22%;
    background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,.03), rgba(255,255,255,0));
    animation: crt-roll 9s linear infinite;
}
@keyframes crt-flicker { 50% { opacity: .95; } }
@keyframes crt-roll { from { transform: translateY(-100%); } to { transform: translateY(455%); } }
body.crt #crt { display: block; }
#crtGL { position: absolute; inset: 0; width: 100%; height: 100%; display: none; pointer-events: none; }
body.crt #crtGL { display: block; visibility: hidden; }
body.crtgl #crtGL { visibility: visible; }
body.crtgl #video { opacity: 0; }
#screen.dark #crtGL { opacity: 0; }
body.crtgl #crt {
    -webkit-backdrop-filter: blur(.03rem); backdrop-filter: blur(.03rem);
    background:
        radial-gradient(ellipse 55% 40% at 32% 22%, rgba(255,255,255,.05), rgba(255,255,255,0) 70%),
        radial-gradient(ellipse at center, rgba(0,0,0,0) 65%, rgba(0,0,0,.25) 90%, rgba(0,0,0,.55) 100%),
        linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.12) 50%, rgba(0,0,0,0)) 0 0 / 100% calc(100vh / 480);
}
body.crtgl #crt::before { opacity: .5; }
@media (prefers-reduced-motion: reduce) { #crt, #crt::after { animation: none; } }
body.break #ad { display: block; }
#adVideo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
#breakCard {
    position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center;
    gap: 2.4rem; gap: 2.4cqh; padding: 0 6%; background: var(--c0); text-align: center;
}
.bc-logo { max-height: 14rem; max-height: min(15cqh, 13cqw); max-width: 40%; object-fit: contain; }
.bc-head { font-size: 7.2rem; font-size: min(7.4cqh, 6.6cqw); font-weight: 700; line-height: 1.15; }
.bc-next { display: flex; flex-direction: column; align-items: center; gap: .6rem; gap: .6cqh; max-width: 100%; }
.bc-next:has(.bc-title:empty) { display: none; }
.bc-label { color: var(--amber); font-size: 2.2rem; font-size: min(2.6cqh, 2.4cqw); font-weight: 700; letter-spacing: .05em; }
.bc-label:empty { display: none; }
.bc-title { font-size: 4.4rem; font-size: min(4.8cqh, 4.4cqw); font-weight: 700; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bc-count { color: var(--sub); font-size: 3.2rem; font-size: min(3.6cqh, 3.4cqw); font-weight: 700; font-variant-numeric: tabular-nums; }
body.break-card #breakCard { display: flex; }
#adCount { position: absolute; right: 2rem; bottom: 2rem; font-size: 2.8rem; color: #fff; text-shadow: .1rem .1rem 0 rgba(0,0,0,.6); }
body.break-card #adCount { display: none; }
body.live:has(#liveInfo.show) #adCount { visibility: hidden; }
#previewHint { display: none; }

#ratingBug {
    position: fixed; left: 4.8rem; top: 4.8rem; width: 15rem; height: 11rem; z-index: 6;
    background: #000; box-shadow: 0 0 0 .3rem rgba(255,255,255,.9);
    opacity: 0; transition: opacity .5s; pointer-events: none;
}
#ratingBug.show { opacity: 1; }
.rb-tv { position: absolute; left: 1rem; top: .6rem; font-size: 1.8rem; font-weight: 700; line-height: 2.2rem; }
.rb-r { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 5.4rem; font-weight: 700; padding-top: .2rem; }
.rb-d { position: absolute; left: 0; right: 0; bottom: .6rem; text-align: center; font-size: 1.6rem; font-weight: 700; }

#chNum { position: fixed; left: 5rem; top: 4rem; z-index: 9; font-size: 7.2rem; font-weight: 700; text-shadow: 0 .2rem .8rem rgba(0,0,0,.5); pointer-events: none; }

#liveInfo {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
    background: rgba(18,22,27,.88);
    padding: 2.6rem 5rem 1.5rem;
    transform: translateY(100%);
    transition: transform .2s cubic-bezier(.47,0,.745,.715);
}
#liveInfo.show { transform: none; transition-timing-function: cubic-bezier(.39,.575,.565,1); }
body:not(.live) #liveInfo { transform: translateY(100%); transition: none; }
.li-progress { position: absolute; left: 0; right: 0; top: 0; height: 1rem; background: var(--c2); }
.li-progress i { display: block; height: 100%; width: 0; background: var(--amber); }
.li-captions { position: absolute; left: 0; right: 0; bottom: calc(100% + 2.4rem); display: flex; justify-content: center; pointer-events: none; }
.li-captions span { max-width: 61.6rem; padding: .4rem .8rem; background: rgba(0,0,0,.75); font-size: 4rem; line-height: 1.2; text-align: center; white-space: pre-line; }
.li-captions span:empty { display: none; }
body.guide .li-captions { display: none; }
.li-head { display: flex; gap: 1.2rem; min-height: 15rem; }
.li-thumb { height: 15rem; width: auto; max-width: 30rem; object-fit: contain; flex: none; }
.li-headtext { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; flex: 1; }
.li-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 1.2rem; }
.li-ctl { display: flex; align-items: center; gap: .6rem; }
.li-vol, .odp-vol { --vc: #fff; width: 14rem; height: 3rem; margin: 0; -webkit-appearance: none; appearance: none; background: none; overflow: hidden; cursor: pointer; }
.li-vol { margin-right: 2rem; }
.li-vol:hover, .odp-vol:hover { --vc: var(--blue); }
.li-vol::-webkit-slider-runnable-track, .odp-vol::-webkit-slider-runnable-track { height: .8rem; background: rgba(255,255,255,.18); }
.li-vol::-moz-range-track, .odp-vol::-moz-range-track { height: .8rem; background: rgba(255,255,255,.18); }
.li-vol::-moz-range-progress, .odp-vol::-moz-range-progress { height: .8rem; background: var(--vc); }
.li-vol::-webkit-slider-thumb, .odp-vol::-webkit-slider-thumb { -webkit-appearance: none; width: 1.2rem; height: 2.4rem; margin-top: -.8rem; border: 0; border-radius: 0; background: var(--vc); border-image: linear-gradient(var(--vc) 0 0) fill 0 / calc(50% - .4rem) 0 / 0 0 0 100vw; }
.li-vol::-moz-range-thumb, .odp-vol::-moz-range-thumb { width: 1.2rem; height: 2.4rem; border: 0; border-radius: 0; background: var(--vc); }
.li-chan { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.li-chname { max-width: 40rem; font-size: 2.8rem; font-weight: 700; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-ch { min-width: 8rem; text-align: center; font-size: 4.4rem; font-weight: 700; }
.ico.chb { width: calc(var(--ig) * 1.1); height: calc(var(--ig) * .82); margin: 0 calc((var(--ib) - var(--ig) * 1.1) / 2); border: calc(var(--ig) * .065) solid #fff; }
.ico.chb svg { width: calc(var(--ig) * .8); height: calc(var(--ig) * .8); }
.ico.chb:hover { border-color: var(--blue); }
.li-brand { display: flex; align-items: center; gap: 2rem; margin-left: auto; }
.brand { font-size: 4.4rem; font-weight: 700; letter-spacing: .06em; line-height: 1; }
.get-app { min-width: 0; }
.li-brand .badge-link img { display: block; height: 4.8rem; width: auto; }
.li-title { font-size: 7.2rem; font-weight: 400; line-height: 8.6rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-episode { font-size: 4rem; line-height: 6rem; height: 6rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: .2rem; }
.li-main { flex-wrap: wrap; }
.epnum { color: var(--amber); font-weight: 700; margin-right: .5em; }

body.guide #screen {
    left: auto; bottom: auto; top: 0; right: 0;
    width: var(--pw); height: 43rem; z-index: 25; cursor: pointer;
}
body.guide #previewHint {
    display: block; position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem 1.4rem;
    background: linear-gradient(transparent, rgba(18,22,27,.85)); font-size: 2.2rem; font-weight: 700; opacity: 0; transition: opacity .15s;
}
body.guide #screen:hover #previewHint { opacity: 1; }
body.guide #adCount { font-size: 2rem; right: 1.2rem; bottom: 1rem; }
body.guide #ratingBug, body.guide #chNum { display: none; }

#guide { position: fixed; inset: 0; z-index: 20; background: var(--c0); display: none; }
body.guide #guide { display: block; }
.g-top { position: absolute; left: 0; right: 0; top: 0; height: 43.2rem; background: var(--c1); }
.g-info { position: absolute; left: 0; top: 0; bottom: 0; right: calc(var(--pw) + 1.2rem); overflow: hidden; }
.g-head { position: absolute; left: 2.9rem; right: 1rem; top: 1rem; height: 13.4rem; display: flex; gap: 1.2rem; }
.g-thumb { height: 100%; width: auto; max-width: 26rem; object-fit: contain; flex: none; }
.g-headtext { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; flex: 1; }
.g-title { font-size: 7.2rem; font-weight: 700; line-height: 8.4rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-episode { position: absolute; left: 3rem; right: 2rem; top: 15.2rem; font-size: 3.2rem; line-height: 4rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-desc {
    position: absolute; left: 3rem; right: 2rem; top: 19.6rem; max-height: 12.4rem;
    font-size: 2.6rem; line-height: 3.1rem; color: var(--sub); overflow: hidden;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical;
}
.g-mini { position: absolute; left: 2.5rem; top: 32.6rem; display: flex; gap: 2.5rem; }
.g-mini span { background: var(--c2); padding: 0 .5rem; font-size: 2.6rem; font-weight: 700; line-height: 3rem; }
.g-mini span:empty { display: none; }
.g-btns-low { position: absolute; left: 2.5rem; right: 1rem; top: 36.5rem; gap: calc(1.5rem * var(--fit, 1)); }
.g-btns-low .ico { --ib: calc(5.6rem * var(--fit, 1)); --ig: calc(4.3rem * var(--fit, 1)); }
.g-btns-low .btn { min-width: 0; flex: 0 1 auto; padding: 0 calc(1.1rem * var(--fit, 1)); font-size: calc(2.4rem * var(--fit, 1)); overflow: hidden; text-overflow: ellipsis; }
.g-btns-top .btn { min-width: 22rem; }
.g-btns-low .g-app { margin-left: auto; }

.g-scroll { position: absolute; top: 43.2rem; left: 0; right: 0; bottom: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: none; }
.g-scroll::-webkit-scrollbar { display: none; }
.g-headrow { position: sticky; top: 0; z-index: 4; display: flex; height: 5rem; width: max-content; min-width: 100%; background: var(--c0); }
.g-clock { position: sticky; left: 0; z-index: 5; flex: none; width: 32rem; background: var(--c2); color: var(--sub); font-size: 4.2rem; font-weight: 700; line-height: 5rem; text-align: center; white-space: nowrap; }
.g-times { display: flex; }
.g-ts { flex: none; width: 60rem; color: var(--sub); font-size: 2.6rem; font-weight: 700; line-height: 4.6rem; text-align: center; white-space: nowrap; border: .2rem solid var(--c2); border-right-width: 0; }
.g-ts:last-child { border-right-width: .2rem; }
.g-rows { position: relative; width: max-content; min-width: 100%; }
.g-sec { display: flex; height: 6rem; background: var(--c0); }
.g-sec span { position: sticky; left: 0; width: 32rem; padding-left: 2rem; color: var(--amber); font-size: 2.2rem; font-weight: 700; line-height: 6rem; white-space: nowrap; }
.g-row { display: flex; height: 15rem; }
.g-ch { position: sticky; left: 0; z-index: 2; flex: none; width: 32rem; height: 15rem; background: var(--c1); cursor: pointer; }
.g-ch::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: .2rem; background: var(--c0); }
.g-ch.on { background: var(--blue); }
.g-ch .fav { position: absolute; left: 0; top: 0; bottom: 0; width: 1.2rem; background: rgba(255,255,255,.06); z-index: 1; }
.g-ch .fav:hover { background: rgba(255,193,7,.5); }
.g-ch .fav.on { background: var(--amber); }
.g-ch img { position: absolute; left: 2.5rem; top: 2rem; height: 11rem; width: 14.5rem; object-fit: contain; object-position: left center; }
.g-ch .num { position: absolute; right: 1.5rem; top: 0; bottom: 0; display: flex; align-items: center; font-size: 4.4rem; font-weight: 700; }
.g-ch .watching { position: absolute; right: 1rem; bottom: 1rem; font-size: 2rem; font-weight: 700; color: var(--sub); }
.g-ch.on .watching { color: #fff; }
.g-lane { position: relative; flex: none; height: 15rem; }
.g-prog {
    position: absolute; top: 0; height: 15rem; background: var(--c2);
    border-left: .2rem solid var(--c0); border-bottom: .2rem solid var(--c0);
    padding: 0 2rem; display: flex; align-items: center; gap: 1rem; overflow: hidden; cursor: pointer;
}
.g-prog.filler { cursor: default; }
.g-prog.on { background: var(--blue); }
.g-prog .fm { position: absolute; left: .2rem; top: 0; bottom: 0; width: .6rem; background: var(--amber); }
.g-prog img { flex: none; height: 6.4rem; width: 12.8rem; object-fit: contain; object-position: left center; }
.g-prog .t { font-size: 3rem; font-weight: 700; line-height: 3.6rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.g-now { position: absolute; top: 5rem; width: .3rem; background: rgba(33,150,243,.55); z-index: 1; pointer-events: none; }

.od { position: fixed; inset: 0; z-index: 20; background: var(--c0); display: none; flex-direction: column; }
body.odShows #odLib, body.odEpisodes #odShow { display: flex; }
.od-top { position: relative; flex: none; height: 25.2rem; background: var(--c2); }
.od-search {
    position: absolute; left: 40rem; right: 40rem; top: 7.5rem; height: 10rem;
    background: var(--field); border: 0; color: #fff; font-size: 6.4rem; padding: 0 1rem;
    -webkit-appearance: none; appearance: none; border-radius: 0;
}
.od-search::placeholder { color: rgba(176,190,197,.7); }
.od-search::-webkit-search-cancel-button { display: none; }
.od-back {
    position: absolute; right: 9.5rem; top: 2.8rem; width: 7rem; height: 7rem;
    font-size: 4rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.od-back:hover { color: var(--blue); }
.od-back svg { height: .9em; width: auto; fill: currentColor; }
.od-back:active { transform: scale(.86); }
.od-grid {
    position: relative; flex: 1; overflow-y: auto; overscroll-behavior: contain;
    display: grid; grid-template-columns: repeat(auto-fill, 40rem); grid-auto-rows: 22.5rem; gap: 2.4rem;
    padding: 2.4rem 5rem 2.5rem 6rem; align-content: start;
    scrollbar-color: var(--blue) var(--sb);
}
.od-grid::-webkit-scrollbar, .pp-body::-webkit-scrollbar { width: 1.8rem; }
.od-grid::-webkit-scrollbar-track, .pp-body::-webkit-scrollbar-track { background: var(--sb); }
.od-grid::-webkit-scrollbar-thumb, .pp-body::-webkit-scrollbar-thumb { background: var(--blue); }
.od-card { position: relative; background: var(--c1); cursor: pointer; overflow: hidden; text-align: left; }
.od-card.on { background: var(--blue); }
.odc-poster { position: absolute; left: 1.6rem; top: 1.4rem; width: 12rem; height: 18rem; display: flex; align-items: center; justify-content: center; }
.odc-poster img { max-width: 100%; max-height: 100%; object-fit: contain; }
.odc-title { position: absolute; left: 14.8rem; right: 1.6rem; top: 1.4rem; font-size: 2.8rem; font-weight: 700; line-height: 3.6rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.odc-desc { position: absolute; left: 14.8rem; right: 1.6rem; top: 5.6rem; font-size: 2.2rem; line-height: 2.7rem; color: var(--sub); overflow: hidden; white-space: pre-line; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; }
.od-card.ep .odc-title { left: 1.6rem; }
.od-card.ep .odc-desc { left: 1.6rem; -webkit-line-clamp: 4; }
.odc-meta { position: absolute; left: 1.6rem; bottom: 1.4rem; display: flex; gap: 1.2rem; align-items: baseline; color: var(--sub); }
.odc-meta .cc { font-size: 1.8rem; font-weight: 700; }
.odc-meta .rt { font-size: 2.2rem; }
.odc-prog { position: absolute; left: 0; right: 0; bottom: 0; height: .6rem; background: rgba(255,255,255,.15); }
.odc-prog i { display: block; height: 100%; background: var(--amber); }
.odc-watched { position: absolute; right: .8rem; top: .8rem; width: 9.2rem; height: 2.6rem; background: var(--green); font-size: 1.6rem; font-weight: 700; line-height: 2.6rem; text-align: center; }

#odShow .od-top { text-align: center; }
.od-bg { position: absolute; left: 0; right: 0; top: 25.2rem; bottom: 0; background: var(--c0) center / cover no-repeat; }
.od-bg::after {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(90deg, var(--c0), rgba(18,22,27,0) 33%, rgba(18,22,27,0) 67%, var(--c0)),
        linear-gradient(180deg, var(--c0), rgba(18,22,27,0) 33%, rgba(18,22,27,0) 67%, var(--c0));
}
.ods-title { position: absolute; left: 46rem; right: 46rem; top: 3.9rem; font-size: 7.2rem; font-weight: 700; line-height: 8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ods-desc { position: absolute; left: 20rem; right: 20rem; top: 12.5rem; font-size: 2.6rem; line-height: 3.2rem; color: var(--sub); overflow: hidden; white-space: pre-line; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.ods-desc span { opacity: .6; }
.ods-fav { position: absolute; right: 20rem; top: 3.5rem; }

#odPlayer { position: fixed; inset: 0; z-index: 15; display: none; }
body.odPlayer #odPlayer { display: block; }
body.odPlayer.idle, body.odPlayer.idle * { cursor: none; }
body.live.still #screen, body.live.still #screen * { cursor: none; }
.odp-top { position: absolute; left: 0; right: 0; top: 0; height: 16rem; padding: 2.5rem 5rem; background: linear-gradient(rgba(18,22,27,.8), rgba(18,22,27,0)); transition: opacity .3s; }
.odp-show { font-size: 4rem; font-weight: 700; line-height: 5rem; margin-right: 50rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.odp-ep { font-size: 2.6rem; line-height: 3.4rem; color: var(--sub); margin-right: 50rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.odp-fav { position: absolute; right: 18rem; top: 2.9rem; }
.odp-top .od-back { top: 2.2rem; }
.odp-controls { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 2.4rem 1.6rem; background: linear-gradient(rgba(18,22,27,0), rgba(18,22,27,.94)); transition: opacity .3s; }
body.odPlayer.idle .odp-top, body.odPlayer.idle .odp-controls { opacity: 0; }
body.break .odp-controls { visibility: hidden; }
.odp-timeline { padding: 3rem .8rem 1.6rem; cursor: pointer; touch-action: none; }
.odp-track { position: relative; height: 1rem; background: rgba(42,53,70,.85); }
.odp-buf, .odp-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; }
.odp-buf { background: rgba(255,255,255,.18); }
.odp-fill { background: var(--blue); }
.odp-markers i { position: absolute; top: 0; bottom: 0; width: .4rem; margin-left: -.2rem; background: var(--amber); }
.odp-handle { position: absolute; top: -.7rem; bottom: -.7rem; width: 1.4rem; margin-left: -.7rem; background: var(--blue); }
.odp-row { display: flex; align-items: center; gap: 1.6rem; height: 6rem; }
.ico { --ib: 5.6rem; --ig: 4.2rem; width: var(--ib); height: var(--ib); display: flex; align-items: center; justify-content: center; flex: none; }
.ico svg { width: var(--ig); height: var(--ig); fill: #fff; }
.ico:hover svg { fill: var(--blue); }
.ico .i-pause, .ico.playing .i-play { display: none; }
.ico.playing .i-pause { display: inline; }
.ico .i-x, .ico.muted .i-wave { display: none; }
.ico.muted .i-x { display: inline; }
.ico.cc { width: calc(var(--ig) * 1.1); height: calc(var(--ig) * .82); margin: 0 calc((var(--ib) - var(--ig) * 1.1) / 2); border: calc(var(--ig) * .065) solid #fff; font-size: calc(var(--ig) * .5); font-weight: 700; line-height: 1; }
.ico.cc.on { background: var(--amber); border-color: var(--amber); color: var(--c0); }
symbol { overflow: visible; }
.ico.sym svg, .ico.heart svg { width: auto; height: calc(var(--ig) * .82); max-width: var(--ib); }
.ico.heart svg { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linejoin: round; }
.ico.heart:hover svg { fill: none; stroke: var(--blue); }
.ico.heart.on svg, .ico.list.on svg { fill: var(--amber); stroke: var(--amber); }
.ico.cc:hover { border-color: var(--blue); color: var(--blue); }
.ico.on:hover { filter: brightness(1.15); }
.ico.cc.on:hover { border-color: var(--amber); color: var(--c0); }
.ico:active { transform: scale(.86); }
.odp-time { font-size: 2.6rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.odp-spacer { flex: 1; }

#favStrip { position: fixed; left: 0; right: 0; top: 0; z-index: 40; }
.fs-band { position: relative; height: 26rem; background: rgba(18,22,27,.94); overflow: hidden; }
.fs-title { position: absolute; left: 0; right: 0; top: 1.8rem; text-align: center; color: #FFCC26; font-size: 2.2rem; font-weight: 700; line-height: 3rem; }
.fs-row { position: absolute; left: 50%; top: 7rem; height: 12rem; transition: transform .15s; }
.fs-card { position: absolute; top: 0; width: 20rem; height: 12rem; background: var(--c2); padding: .3rem; transition: transform .15s; text-align: left; }
.fs-card.on { background: var(--blue); transform: scale(1.08); z-index: 1; }
.fs-in { position: relative; width: 100%; height: 100%; background: var(--c2); }
.fs-in img { position: absolute; left: 1rem; top: 2.8rem; height: 4.8rem; width: 6.4rem; object-fit: contain; object-position: left center; }
.fs-num { position: absolute; right: 1rem; top: .6rem; font-size: 3rem; font-weight: 700; }
.fs-name { position: absolute; left: .8rem; right: .8rem; bottom: 2.6rem; font-size: 1.6rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-now { position: absolute; left: .8rem; right: .8rem; bottom: .6rem; font-size: 1.4rem; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-band .hint { position: absolute; left: 0; right: 0; bottom: 1.2rem; }

#chips { position: fixed; right: 2.4rem; top: 2.4rem; z-index: 45; display: flex; flex-direction: column; gap: 1rem; align-items: flex-end; }
.chip { min-width: 30rem; height: 4.4rem; padding: 0 1.2rem; background: rgba(18,22,27,.94); font-size: 2rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
#soundChip { cursor: pointer; background: var(--blue); }

#loading { position: fixed; inset: 0; z-index: 30; background: var(--c0); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6rem; padding: 0 4rem; }
body.guide #loading:not(.guideonly) { display: none; }
body.guide #loading.guideonly { z-index: 21; top: 43.2rem; }
#loading.soft { z-index: 8; pointer-events: none; }
.ld-text { font-size: 7.2rem; text-align: center; }
.ld-spin {
    width: 6.1rem; height: 6.1rem; border-radius: 50%;
    border: .8rem solid rgba(255,255,255,.4); border-top-color: #fff; border-right-color: #fff;
    animation: spin 1s linear infinite;
}
@keyframes spin { from { transform: rotate(-45deg); } to { transform: rotate(315deg); } }

#static { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 9; background: #808080; }
body.guide #static { display: none; }

.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; }
.backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.panel { position: relative; background: rgba(33,42,56,.98); }

.dp { width: 110rem; height: 64rem; max-width: 96vw; padding: 2.8rem 3.6rem 1rem; display: flex; flex-direction: column; }
.dp-head { height: 4.4rem; display: flex; align-items: center; gap: 1.2rem; flex: none; }
.dp-icon { height: 4rem; width: 8rem; object-fit: contain; object-position: left center; }
.dp-ch { font-size: 2rem; font-weight: 700; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-title { margin-top: 1.2rem; font-size: 4.4rem; font-weight: 700; line-height: 5.4rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: none; }
.dp-ep { font-size: 2.6rem; line-height: 3.4rem; color: var(--sub); margin-top: .4rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: none; min-height: 3.4rem; }
.dp-when { display: flex; justify-content: space-between; gap: 2rem; margin-top: .6rem; font-size: 2.2rem; line-height: 3rem; color: var(--sub); flex: none; }
.dp-status { font-weight: 700; text-align: right; }
.dp-summary { margin-top: 1.2rem; font-size: 2.2rem; line-height: 2.9rem; max-height: 14.5rem; overflow: hidden; flex: none; }
.dp-showsum { margin-top: .6rem; font-size: 1.9rem; line-height: 2.5rem; color: var(--sub); max-height: 9.6rem; overflow: hidden; white-space: pre-line; }
.dp-meta { margin-top: auto; padding-top: 1rem; font-size: 1.8rem; line-height: 2.8rem; color: var(--sub); }
.dp-actions { display: flex; gap: 1.2rem; margin-top: 1rem; flex: none; }
.dp-actions button { flex: 1 1 auto; min-width: 0; height: 5.2rem; padding: 0 1rem; background: rgba(255,255,255,.1); font-size: 2rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-actions button.on, .dp-actions button:hover { background: var(--blue); color: #000; }
.dp .hint { margin-top: .8rem; }

.sp { width: 120rem; height: 64rem; max-width: 96vw; display: flex; }
.sp-kb { width: 40rem; flex: none; background: var(--c1); display: flex; flex-direction: column; padding: 1.6rem 1.6rem 1.2rem; }
.sp-query { height: 4.4rem; background: transparent; border: 0; border-bottom: .2rem solid var(--c2); color: #fff; font-size: 3rem; font-weight: 700; padding: 0; -webkit-appearance: none; appearance: none; border-radius: 0; }
.sp-query::placeholder { color: #fff; opacity: 1; }
.sp-query:focus::placeholder { color: var(--sub); }
.sp-query::-webkit-search-cancel-button { display: none; }
.sp-keys { margin: 1.6rem .8rem 0; display: grid; grid-template-columns: repeat(6, 5.2rem); grid-auto-rows: 5.2rem; gap: .8rem; }
.sp-keys button { background: var(--c2); font-size: 2.6rem; font-weight: 700; }
.sp-keys button.w2 { grid-column: span 2; font-size: 2rem; }
.sp-keys button:hover, .sp-keys button.on { background: var(--blue); color: #000; }
.sp-kb .hint { margin-top: auto; }
.sp-main { flex: 1; min-width: 0; padding: 2rem 3.2rem 2rem 2rem; display: flex; flex-direction: column; }
.sp-title { color: var(--blue); font-size: 2.2rem; font-weight: 700; line-height: 3.6rem; }
.sp-empty { color: var(--sub); font-size: 2.2rem; line-height: 4rem; margin-top: 1.4rem; }
.sp-results { display: flex; flex-direction: column; gap: .8rem; margin-top: 1.4rem; overflow: hidden; }
.sp-results button { height: 5.6rem; flex: none; background: var(--c2); padding: 0 1.6rem; font-size: 2.2rem; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-results button .fav { color: var(--amber); }
.sp-results button .gap { display: inline-block; width: 3rem; }
.sp-results button.on, .sp-results button:hover { background: var(--blue); color: #000; }
.sp-results button.on .fav, .sp-results button:hover .fav { color: #000; }

.pp { width: 120rem; height: 82rem; max-width: 96vw; max-height: 94vh; padding: 2.4rem 3.6rem 1.6rem; display: flex; flex-direction: column; }
.pp-title { font-size: 3.4rem; font-weight: 700; line-height: 4.4rem; }
.pp-close { position: absolute; right: 2.4rem; top: 2rem; min-width: 12rem; height: 4.4rem; font-size: 2rem; }
.pp-body {
    flex: 1; margin-top: 2rem; overflow-y: auto; padding-right: 3rem; font-size: 2.2rem; line-height: 3rem; user-select: text; -webkit-user-select: text;
    scrollbar-color: var(--blue) var(--sb);
}
.pp-body p { margin-bottom: 2.4rem; }
.pp-body a { color: var(--blue); }

.un { width: 90rem; height: 32rem; max-width: 96vw; }
.un-head { position: absolute; left: 3rem; top: 2.8rem; color: var(--blue); font-size: 2.2rem; font-weight: 700; line-height: 3rem; }
.un-show { position: absolute; left: 3rem; right: 23rem; top: 10rem; font-size: 4rem; font-weight: 700; line-height: 5rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.un-ep { position: absolute; left: 3rem; right: 23rem; top: 15.5rem; font-size: 2.6rem; line-height: 4rem; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.un-hint { position: absolute; left: 3rem; bottom: 2.4rem; text-align: left; font-size: 1.8rem; }
.un-ring {
    position: absolute; right: 3.5rem; top: 8.5rem; width: 15rem; height: 15rem; border-radius: 50%;
    background: conic-gradient(var(--blue) calc(var(--p, 1) * 360deg), var(--c2) 0);
    display: flex; align-items: center; justify-content: center;
}
.un-ring::before { content: ""; position: absolute; inset: 1.2rem; border-radius: 50%; background: var(--c1); }
.un-count { position: relative; font-size: 5.6rem; font-weight: 700; }

#toast { position: fixed; left: 50%; top: 2.4rem; z-index: 55; width: 76rem; max-width: 96vw; height: 12rem; transform: translateX(-50%); background: rgba(33,42,56,.97); }
.tt-stripe { position: absolute; left: 0; top: 0; bottom: 0; width: .8rem; background: var(--amber); }
.tt-title { position: absolute; left: 2.4rem; right: 18rem; top: 1.2rem; color: var(--amber); font-size: 2rem; font-weight: 700; line-height: 2.8rem; }
.tt-body { position: absolute; left: 2.4rem; right: 18rem; top: 4.2rem; font-size: 2.8rem; font-weight: 700; line-height: 3.6rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-hint { position: absolute; left: 2.4rem; bottom: 1rem; text-align: left; }
.tt-tune { position: absolute; right: 1.6rem; top: 3.6rem; min-width: 14rem; font-size: 2rem; }
.tt-x { position: absolute; right: .8rem; top: .8rem; width: 3.2rem; height: 3.2rem; color: var(--sub); font-size: 2.2rem; font-weight: 700; line-height: 1; }

@media (hover: none) {
    .hint, .tt-hint, #previewHint { display: none !important; }
    .li-vol { display: none; }
    .btn:hover { filter: none; }
}

@media (max-width: 760px), (max-aspect-ratio: 1/1) {
    html { font-size: calc(100vw / 64); }
    body.odShows #screen, body.odEpisodes #screen, body.guide #screen {
        left: 0; right: 0; top: 0; bottom: auto; width: 100%; height: calc(100vw / var(--ar)); max-height: 60vh; z-index: 25; cursor: default;
    }
    body.live #screen { left: 0; right: 0; top: 0; bottom: auto; width: 100%; height: 100%; z-index: 1; cursor: default; transition: height .25s ease; }
    body.live.info #screen { height: calc(100vw / var(--ar)); max-height: 60vh; }
    body.live:not(.info) #ratingBug { top: calc(50% - min(calc(100vw / var(--ar)), 100%) / 2 + 2.4rem); }
    body.live:not(.info) #chNum { top: calc(50% - min(calc(100vw / var(--ar)), 100%) / 2 + 1.6rem); }
    body.guide #previewHint { display: none; }
    #ratingBug { left: 2.4rem; top: 2.4rem; transform: scale(.6); transform-origin: 0 0; }
    #chNum { left: 2.4rem; top: 1.6rem; font-size: 5.6rem; }
    body.live #loading.soft { inset: 0 0 auto; height: 100%; gap: 3rem; }
    body.live.info #loading.soft { height: min(calc(100vw / var(--ar)), 60vh); }
    #liveInfo, #liveInfo.show, body:not(.live) #liveInfo {
        top: 100%; bottom: 0; transform: none; transition: top .25s ease;
        background: var(--c0); padding: 3.2rem 3rem; overflow-y: auto;
    }
    body.live #liveInfo.show { top: min(calc(100vw / var(--ar)), 60vh); }
    body:not(.live) #liveInfo { display: none; }
    .li-captions { position: fixed; top: calc(min(calc(100vw / var(--ar)), 60vh) - 1.2rem); bottom: auto; transform: translateY(-100%); }
    body.live:not(.info) .li-captions { top: calc(50% + min(calc(100vw / var(--ar)), 100%) / 2 - 1.2rem); }
    .li-captions span { font-size: 3.2rem; max-width: 90vw; }
    .li-head { min-height: 0; flex-direction: column; gap: 2rem; }
    .li-thumb { display: none !important; }
    .li-title { font-size: 5rem; line-height: 6rem; white-space: normal; }
    .li-episode { font-size: 3.4rem; line-height: 4.4rem; height: auto; white-space: normal; margin: 1.6rem 0 2.4rem; color: var(--sub); }
    .btnrow { gap: 1.4rem; flex-wrap: wrap; }
    .btn { min-width: 0; height: 7.6rem; font-size: 3rem; padding: 0 2.4rem; }
    .li-main .btn, .li-top .btn { flex: 1 1 calc(50% - .7rem); }
    .li-main [data-act="fullscreen"] { display: none; }
    #liveInfo { display: flex; flex-direction: column; }
    .li-head, .li-side { display: contents; }
    .li-headtext { flex: none; }
    .li-ctl { order: 1; align-self: stretch; justify-content: flex-end; gap: 1.4rem; margin-bottom: 2.4rem; }
    .li-chan { order: 2; margin-bottom: 1.4rem; }
    .li-main { order: 3; }
    .li-brand .btn { height: 7.6rem; font-size: 3rem; padding: 0 3.2rem; }
    .li-brand .badge-link img { height: 7.6rem; }
    .li-ctl [data-act="mute"] { margin-right: auto; }
    .li-chname { max-width: none; font-size: 3rem; }
    .li-brand { flex: 1 1 100%; margin-left: 0; margin-top: 3.2rem; padding-top: 2.4rem; border-top: .2rem solid var(--c2); justify-content: space-between; }
    .brand { font-size: 5rem; }

    .g-top { position: absolute; top: min(calc(100vw / var(--ar)), 60vh); height: auto; padding: 2.4rem 3rem; }
    .g-info { position: static; }
    .g-head { position: static; height: auto; }
    .g-thumb { display: none !important; }
    .g-title { font-size: 4.6rem; line-height: 5.6rem; }
    .g-btns-top { margin-top: 1.4rem; }
    .g-btns-top .btn { min-width: 0; flex: 1 1 auto; }
    .g-episode { position: static; font-size: 3rem; line-height: 4rem; margin-top: 1.4rem; }
    .g-desc { display: none; }
    .g-mini { position: static; margin-top: 1rem; gap: 1.6rem; }
    .g-mini span { font-size: 2.8rem; line-height: 3.6rem; }
    .g-btns-low { position: static; margin-top: 1.6rem; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .g-btns-low::-webkit-scrollbar { display: none; }
    .g-btns-low .btn { flex: none; height: 6.4rem; font-size: 2.8rem; }
    .g-scroll { top: var(--gtop, 60vh); }
    .g-clock { width: 18rem; font-size: 2.8rem; }
    .g-ch, .g-sec span { width: 18rem; }
    .g-ch img { left: 2.2rem; top: 1.8rem; height: 6rem; width: 13rem; }
    .g-ch .num { right: auto; left: 2.2rem; top: auto; bottom: 1.2rem; font-size: 3.6rem; }
    .g-ch .watching { font-size: 2.4rem; }
    .g-ts { font-size: 2.8rem; }
    .g-prog img { display: none; }
    .g-prog .t { font-size: 3.2rem; line-height: 3.8rem; -webkit-line-clamp: 3; }
    .g-sec span { font-size: 2.6rem; }

    .od-top { height: auto; padding: 3rem 3rem 3rem; display: flex; gap: 2rem; align-items: center; }
    .od-search { position: static; flex: 1; height: 8rem; font-size: 3.6rem; min-width: 0; }
    .od-back { position: static; flex: none; width: 8rem; height: 8rem; font-size: 4.4rem; }
    .od-grid { grid-template-columns: 1fr; grid-auto-rows: 24rem; padding: 2.4rem 3rem; gap: 2rem; }
    .odc-title { font-size: 3.4rem; line-height: 4.2rem; }
    .odc-desc { font-size: 2.8rem; line-height: 3.4rem; top: 6.4rem; -webkit-line-clamp: 4; }
    .od-card.ep .odc-desc { -webkit-line-clamp: 3; }
    .odc-meta .rt { font-size: 2.8rem; }
    #odShow .od-top { flex-wrap: wrap; text-align: left; }
    .ods-title { position: static; order: 1; flex: 1 1 60%; font-size: 4.6rem; line-height: 5.6rem; white-space: normal; }
    #odShow .od-back { order: 2; }
    .ods-desc { position: static; order: 3; flex: 1 1 100%; font-size: 2.8rem; line-height: 3.6rem; -webkit-line-clamp: 3; }
    .ods-fav { position: static; order: 4; }
    .od-bg { display: none; }
    body.odShows #screen, body.odEpisodes #screen { display: none; }

    body.odPlayer #screen { inset: 0; height: 100%; max-height: none; width: 100%; }
    .odp-show, .odp-ep { margin-right: 22rem; }
    .odp-show { font-size: 3.6rem; }
    .odp-fav { display: none; }
    .odp-top .od-back { right: 2rem; top: 2rem; width: 8rem; height: 8rem; }
    .ico { --ib: 8rem; --ig: 5.6rem; }
    .g-btns-low .ico { --ib: 7rem; --ig: 5rem; }
    .odp-vol { display: none; }
    .odp-time { font-size: 3rem; }

    .dp, .sp, .pp, .un { width: 94vw; max-width: 94vw; }
    .dp { height: auto; max-height: 92vh; overflow-y: auto; padding: 3rem; }
    .dp-title { white-space: normal; font-size: 4.6rem; }
    .dp-ep { white-space: normal; font-size: 3rem; line-height: 3.8rem; }
    .dp-when { flex-direction: column; gap: .4rem; font-size: 2.8rem; line-height: 3.6rem; }
    .dp-status { text-align: left; }
    .dp-summary, .dp-showsum { max-height: none; font-size: 2.8rem; line-height: 3.6rem; }
    .dp-meta { font-size: 2.6rem; line-height: 3.4rem; margin-top: 1.6rem; }
    .dp-actions { flex-wrap: wrap; }
    .dp-actions button { flex: 1 1 calc(50% - .6rem); height: 7.2rem; font-size: 2.8rem; }
    .sp { height: 80vh; flex-direction: column; }
    .sp-kb { width: auto; padding: 2.4rem; }
    .sp-query { height: 7.2rem; font-size: 4rem; }
    .sp-keys { display: none; }
    .sp-main { padding: 2.4rem; overflow-y: auto; }
    .sp-results { overflow: visible; }
    .sp-results button { height: auto; min-height: 7.2rem; padding: 1.4rem 2rem; font-size: 2.8rem; white-space: normal; }
    .sp-title, .sp-empty { font-size: 2.8rem; }
    .pp { height: 88vh; max-height: 88vh; padding: 3rem; }
    .pp-title { font-size: 4rem; }
    .pp-close { min-width: 14rem; height: 6.4rem; font-size: 2.8rem; right: 3rem; top: 2.4rem; }
    .pp-body { font-size: 2.8rem; line-height: 3.8rem; padding-right: 1rem; }
    .un { height: 44rem; }
    .un-show, .un-ep { right: 3rem; }
    .un-ring { right: 50%; transform: translateX(50%); top: auto; bottom: 3rem; width: 14rem; height: 14rem; }
    .un-show { top: 7rem; }
    .un-ep { top: 13rem; }
    #toast { height: auto; min-height: 16rem; padding-bottom: 10rem; }
    .tt-title, .tt-body { position: static; padding: 0 3rem 0 3.4rem; }
    .tt-title { padding-top: 2rem; font-size: 2.6rem; }
    .tt-body { font-size: 3.2rem; white-space: normal; line-height: 4rem; }
    .tt-tune { top: auto; bottom: 2rem; right: 2rem; height: 6.4rem; font-size: 2.8rem; }
    .tt-x { width: 6rem; height: 6rem; font-size: 3rem; }
    .chip { min-width: 0; height: 6.4rem; font-size: 2.8rem; padding: 0 2.4rem; }
    #chips { top: 2rem; right: 2rem; }
    .ld-text { font-size: 4.8rem; }
}
