#pl {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: #000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s;
}

#pl.show {
    opacity: 1;
    pointer-events: auto;
}

#pl:not(.ui) {
    cursor: none;
}

#pv {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    z-index: 0;
}

#pl.cover #pv {
    object-fit: cover;
}

video::cue {
    font: 600 clamp(16px, 1.8vw, 30px) Inter, sans-serif;
    background: rgba(0, 0, 0, .55);
    color: #fff;
}

.sub-active::cue {
    color: var(--sub-color, #ffffff) !important;
    background-color: var(--sub-bg, rgba(0, 0, 0, 0.75)) !important;
    font-size: var(--sub-size, 22px) !important;
    text-shadow: var(--sub-shadow, 0 2px 4px rgba(0, 0, 0, 0.8)) !important;
}

.sub-ctrl-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    font-size: 14px;
}

.sub-ctrl-row span {
    color: rgba(255, 255, 255, 0.8);
}

.sub-btn-group {
    display: flex;
    gap: 6px;
}

.sub-btn-group button {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}

.sub-btn-group button.active {
    background: #fff;
    color: #000;
    font-weight: 600;
}

.src-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 4px;
}

.src-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.15s, color 0.15s;
}

.src-header.on,
.src-header:hover {
    background: #fff;
    color: #000;
}

.src-expand-btn {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.16);
    color: inherit;
    margin-left: 8px;
}

.src-sublist {
    display: none;
    flex-direction: column;
    gap: 2px;
    padding-left: 14px;
    margin: 4px 0;
}

.src-sublist.open {
    display: flex;
}

.src-subitem {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
}

.src-subitem.on,
.src-subitem:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

#pl .top,
#pl .bot,
#pmid {
    opacity: 0;
    transition: opacity .3s, transform .25s, background .2s;
}

#pl.ui .top,
#pl.ui .bot,
#pl.ui #pmid {
    opacity: 1;
}

#pl .f {
    pointer-events: auto;
}

#pl:not(.ui) .f {
    pointer-events: none;
}

#pl .top,
#pl .bot {
    position: absolute;
    left: 0;
    right: 0;
    pointer-events: none;
}

#pl .top {
    top: 0;
    padding: 2.6vh 2.4vw 14vh;
    display: flex;
    align-items: flex-start;
    background: linear-gradient(180deg, rgba(0, 0, 0, .65), transparent);
}

#pl .bot {
    bottom: 0;
    padding: 10vh 2.4vw 2.6vh;
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(0deg, rgba(0, 0, 0, .7), transparent);
}

.pic {
    width: clamp(44px, 3.3vw, 56px);
    height: clamp(44px, 3.3vw, 56px);
    flex: 0 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background .2s, color .2s, transform .2s;
}

.pic svg {
    width: 52%;
    height: 52%;
}

.pic.on {
    background: #fff;
    color: #000;
    transform: scale(1.08);
}

.av {
    width: 46px;
    height: 46px;
    margin: 3px 12px 0 6px;
    border-radius: 50%;
    object-fit: cover;
    background: #2a2a34;
}

.pt {
    height: 46px;
    margin-top: 3px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pt b {
    font-size: clamp(15px, 1.2vw, 19px);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 36vw;
}

.pt small {
    font-size: clamp(12px, .9vw, 14px);
    color: rgba(255, 255, 255, .7);
    margin-top: 2px;
}

.pr {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

#pmid {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 112px;
    height: 112px;
    margin: -56px 0 0 -56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

#pmid svg {
    width: 72px;
    height: 72px;
    filter: drop-shadow(0 2px 14px rgba(0, 0, 0, .45));
}

#pmid.on {
    background: rgba(255, 255, 255, .18);
    transform: scale(1.08);
}

.bt {
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    min-width: 44px;
    color: #fff;
}

#pdur {
    text-align: right;
}

.sk {
    flex: 1;
    height: 40px;
    position: relative;
}

.sk::before,
.sk u,
.sk i {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    height: 4px;
    margin-top: -2px;
    border-radius: 2px;
    transition: height .15s, margin .15s;
}

.sk::before {
    right: 0;
    background: rgba(255, 255, 255, .2);
}

.sk u {
    width: 0;
    background: rgba(255, 255, 255, .38);
}

.sk i {
    width: 0;
    background: #fff;
}

.sk b {
    position: absolute;
    top: 50%;
    left: 0;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border-radius: 50%;
    background: #fff;
    transition: transform .15s;
}

.sk.on::before,
.sk.on u,
.sk.on i {
    height: 6px;
    margin-top: -3px;
}

.sk.on b {
    transform: scale(1.35);
}

#pm {
    display: none;
    position: absolute;
    top: calc(2.6vh + 66px);
    right: 2.4vw;
    width: 320px;
    max-height: 70vh;
    overflow-y: auto;
    padding: 10px;
    border-radius: 18px;
    background: rgba(0, 0, 0, .94);
    backdrop-filter: blur(24px);
    z-index: 5;
    pointer-events: auto;
    scrollbar-width: none;
}

#pm.open {
    display: block;
}

#pm h4 {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .5);
    padding: 10px 12px 6px;
}

#pm p {
    font-size: 11px;
    line-height: 1.4;
    color: rgba(255, 255, 255, .4);
    padding: 10px 12px 4px;
}

.pi {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    transition: background .15s, color .15s;
}

.pi svg {
    width: 20px;
    height: 20px;
}

.pi.on {
    background: #fff;
    color: #000;
}

.vrow {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 6px 8px;
}

.vrow span {
    width: 30px;
    text-align: right;
    font-size: 13px;
    color: rgba(255, 255, 255, .7);
}

.vs {
    flex: 1;
    height: 36px;
    position: relative;
    border-radius: 8px;
}

.vs::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 4px;
    margin-top: -2px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .2);
}

.vs i {
    position: absolute;
    left: 0;
    top: 50%;
    height: 4px;
    margin-top: -2px;
    border-radius: 2px;
    background: #fff;
}

.skip {
    display: none;
    height: 48px;
    padding: 0 26px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    backdrop-filter: blur(16px);
    align-items: center;
    font-weight: 600;
    transition: transform .25s, background .2s, color .2s;
}

.skip.v {
    display: flex;
}

.skip.on {
    background: #fff;
    color: #000;
    transform: scale(1.06);
}

#pact {
    position: absolute;
    right: 2.4vw;
    bottom: 16vh;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.skip svg {
    width: 18px;
    height: 18px;
    margin-left: 10px;
}

#pnext {
    background: #fff;
    color: #000;
}

#pnext.on {
    color: #000;
}

#pl.eps .bot,
#pl.eps #pmid,
#pl.eps #pact {
    opacity: 0 !important;
    visibility: hidden;
    pointer-events: none;
}

#pep {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 9vh 0 3.4vh;
    background: linear-gradient(0deg, rgba(0, 0, 0, .97) 60%, rgba(0, 0, 0, .8) 82%, transparent);
    transform: translateY(40px);
    opacity: 0;
    visibility: hidden;
    transition: transform .45s cubic-bezier(.22, .9, .3, 1), opacity .3s, visibility 0s .45s;
}

#pl.eps #pep {
    transform: none;
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.peh {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 0 2.4vw;
}

.peh h3 {
    font-size: clamp(18px, 1.6vw, 26px);
    font-weight: 700;
    display: flex;
    align-items: baseline;
    gap: 14px;
    white-space: nowrap;
}

.peh h3 small {
    font-size: .62em;
    font-weight: 500;
    color: rgba(255, 255, 255, .55);
    max-width: 22vw;
    overflow: hidden;
    text-overflow: ellipsis;
}

#pep #pseas {
    flex: 1;
    min-width: 0;
    padding: 4px;
    margin: 0;
    min-height: 0;
    gap: 10px;
}

#pep .chip {
    height: 38px;
    padding: 0 18px;
    font-size: 14px;
    background: rgba(255, 255, 255, .12);
}

#pep .chip.act {
    background: rgba(255, 255, 255, .3);
}

#pep .chip.on {
    background: #fff;
    color: #000;
    transform: scale(1.05);
}

#pep .pcar {
    padding: 18px 2.4vw 8px;
    min-height: 0;
    gap: 18px;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 5vw), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 5vw), transparent);
}

.pe {
    flex: 0 0 clamp(230px, 19vw, 330px);
    min-width: 0;
}

.pe .et {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.pe .et img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pe .et>i {
    position: absolute;
    left: 10px;
    top: 10px;
    font-style: normal;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(8px);
}

.pe .pn {
    display: block;
    margin-top: 11px;
    font-size: clamp(13px, 1vw, 16px);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pe small {
    display: block;
    margin-top: 3px;
    font-size: 13px;
    color: rgba(255, 255, 255, .5);
}

.pe.on .et {
    transform: scale(1.04);
}

.pe .pg {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: rgba(255, 255, 255, .22);
}

.pe .pg u,
.eq u {
    display: block;
    text-decoration: none;
}

.pe .pg u {
    height: 100%;
    width: var(--p, 0%);
}

.eq {
    position: absolute;
    right: 10px;
    bottom: 14px;
    display: flex;
    gap: 3px;
    align-items: flex-end;
    height: 16px;
}

.eq u {
    width: 3px;
    height: 4px;
    border-radius: 2px;
    animation: eq 1s ease-in-out infinite;
}

.eq u:nth-child(2) {
    animation-delay: .2s;
}

.eq u:nth-child(3) {
    animation-delay: .4s;
}

@keyframes eq {
    50% {
        height: 16px;
    }
}

#pbg {
    position: absolute;
    inset: -60px;
    width: calc(100% + 120px);
    height: calc(100% + 120px);
    object-fit: cover;
    filter: blur(54px) brightness(0.42) saturate(1.45);
    transform: scale(1.08);
    pointer-events: none;
    z-index: 0;
    opacity: 1;
    transition: opacity 0.4s ease;
}

#pl.cover #pbg {
    opacity: 0;
    visibility: hidden;
}