/* Base Player */
#anc_pl_wrapper {
    min-height: 1px;
    scroll-margin-top: 100px
}

#anc_pl {
    aspect-ratio: 16/9;
    background-color: #000;
    width: 100%
}

.anc-iframe {
    width: 100%;
    height: 100%;
    aspect-ratio: 16/9;
    display: block;
    border: none
}

.anc-play-button {
    width: 65px;
    height: 65px;
    border-radius: 100px;
    background: var(--bg-button);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: 2s infinite anc_pulse_shadow
}

.anc-play-icon {
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 25px solid var(--text-muted);
    margin-left: 5px
}

@keyframes anc_pulse_shadow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, .4)
    }

    70% {
        box-shadow: 0 0 0 20px transparent
    }

    100% {
        box-shadow: 0 0 0 0 transparent
    }
}

#player-poster {
    position: relative;
    cursor: pointer;
    background: #000;
    width: 100%;
    height: 100%;
    aspect-ratio: 16/9;
    overflow: hidden
}

#player-poster img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    max-width: none !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important
}

#player-poster .play-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform .2s ease;
    z-index: 10
}

#player-poster:hover .play-icon-overlay {
    transform: translate(-50%, -50%) scale(1.1)
}

/* Playlist & Controls */
#list_tap {
    height: 100%
}

#list_tap ul {
    overflow-y: auto;
    max-height: 11.5rem;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-gap: 10px;
    padding: 15px;
    margin-bottom: 15px
}

#list_tap ul::-webkit-scrollbar {
    width: .375rem
}

#list_tap ul::-webkit-scrollbar-thumb {
    background: var(--text-main);
    border-radius: 8px
}

#list_tap ul::-webkit-scrollbar-track {
    background: var(--ancButton)
}

li.ep {
    list-style: none;
    line-height: 3;
    margin: 0
}

#list_tap ul li.ep a.a_tap {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    color: var(--text-main);
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .17);
    border-radius: 8px;
    transition: all .17s ease;
    font-weight: 500;
    position: relative
}

#list_tap ul li.ep a.a_tap:hover {
    color: var(--text-muted);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, .3);
    background: var(--ancEpActive) !important
}

#list_tap ul li.ep a.a_tap.tap_active,
.tap_active {
    color: var(--text-muted);
    background: var(--bg-button);
    transform: translateY(0) !important
}

.subtitle-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 22px;
    height: 22px;
    fill: currentColor
}

#anc_pl_controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 12px 15px;
    border-top: 1px solid rgba(255, 255, 255, .05)
}

#anc_pl_controls button {
    background: var(--bg-dark);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, .05);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    padding: 10px;
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
    flex-shrink: 0
}

#anc_pl_controls button:hover:not(:disabled) {
    background: var(--ancEpActive)
}

#anc_pl_controls button:disabled {
    opacity: .5;
    cursor: not-allowed
}

.episode-counter {
    background: var(--ancButton);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, .05);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 15px;
    display: flex;
    place-items: center
}

.anc-main-controls {
    align-items: center
}

#anc_pl_controls #play-pause-btn,
#anc_pl_controls #rewind-btn,
#anc_pl_controls #forward-btn {
    width: 47px;
    height: 46px;
    padding: 0
}

#anc_pl_controls button svg {
    width: 24px;
    height: 24px;
    display: block;
    flex: 0 0 auto
}

/* Side-by-Side Layout */
.anc-side-layout {
    display: flex;
    flex-direction: row;
    background: var(--bg-card);
    box-sizing: border-box;
    transition: all .3s ease
}

.anc-side-layout .anc-video-column {
    flex: 1 1 72%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    transition: all .3s ease
}

.anc-side-layout .anc-playlist-column {
    flex: 0 0 320px;
    display: flex;
    flex-direction: column;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    overflow: hidden;
    opacity: 1
}

.anc-side-layout.playlist-hidden .anc-playlist-column {
    flex: 0 0 0px;
    opacity: 0;
    padding: 0;
    border: none;
    margin: 0
}

.anc-side-layout.playlist-hidden .anc-video-column {
    flex: 1 1 100%
}

.anc-toggle-playlist-btn:hover {
    background: rgba(255, 255, 255, .15) !important;
    color: #fff !important
}

.anc-playlist-header {
    padding: 15px 20px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 1px
}

.anc-playlist-header svg {
    width: 18px;
    height: 18px;
    color: var(--ancPlayb);
    flex: 0 0 auto
}

.anc-playlist-header-label {
    white-space: nowrap
}

.anc-playlist-header .episode-counter {
    margin-left: auto;
    font-size: 12px;
    padding: 4px 10px;
    letter-spacing: 0;
    flex: 0 0 auto
}

.anc-playlist-header .episode-counter:empty {
    display: none
}

.anc-side-layout #list_tap ul {
    grid-template-columns: repeat(4, 1fr);
    max-height: 480px;
    overflow-y: auto;
    padding: 15px;
    margin: 0
}

/* Responsiveness */
@media (max-width:992px) {
    .anc-side-layout {
        flex-direction: column
    }

    .anc-side-layout .anc-playlist-column {
        flex: auto;
        width: 100%
    }

    .anc-side-layout #list_tap ul {
        grid-template-columns: repeat(6, 1fr);
        max-height: 300px
    }

    .anc-toggle-playlist-btn {
        display: none !important
    }
}

@media only screen and (max-width:680px) {

    #list_tap ul,
    .anc-side-layout #list_tap ul {
        grid-template-columns: repeat(4, 1fr)
    }
}

/* Loaders & Errors */
.anc-loader-container {
    background-color: #141414;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center
}

.anc-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, .3);
    border-top: 4px solid #e50914;
    border-radius: 8px;
    animation: anc_spin 1s linear infinite
}

.anc-error {
    background: #000;
    color: #ff4747;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    font-family: sans-serif
}

@keyframes anc_spin {
    0% {
        transform: rotate(0)
    }

    100% {
        transform: rotate(360deg)
    }
}

/* Ads Overlay */
#anc_ad_container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000
}

#jwplayer-ad-container {
    width: 100%;
    height: 100%
}

.anc-ad-click-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 75%;
    z-index: 10;
    display: block
}

#anc_ad_controls {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 20;
    font-family: Arial, sans-serif;
    cursor: default
}

#anc_ad_countdown,
#anc_ad_skip_button {
    background: rgba(0, 0, 0, .7);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    backdrop-filter: blur(5px)
}

#anc_ad_skip_button {
    display: none;
    border: none;
    cursor: pointer;
    transition: background .2s ease
}

#anc_ad_skip_button:hover {
    background: rgba(30, 30, 30, .9)
}

/* ==========================================
   Payment Popup & Player Launcher
   ========================================== */
.anc-payment-overlay {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 16px;
    box-sizing: border-box;
    overflow: hidden;
    aspect-ratio: 16/9
}

.anc-tg-btn {
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35
}

.anc-payment-launcher {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    height: 100%;
    padding: 16px;
    overflow: hidden;
    text-align: center;
    box-sizing: border-box
}

.anc-payment-launcher:after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(135deg, rgba(4, 8, 15, .63), rgba(9, 14, 24, .48))
}

.anc-payment-launcher-card {
    position: relative;
    z-index: 3;
    width: min(380px, calc(100% - 16px));
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 16px;
    background: rgba(19, 25, 35, .8);
    box-shadow: 0 20px 52px rgba(0, 0, 0, .32);
    backdrop-filter: blur(12px)
}

.anc-payment-launcher-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 8px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--bg-button, #10b981), var(--bg-hover, #059669));
    color: var(--text-muted, #152217);
    font-size: 21px;
    font-weight: 800
}

.anc-payment-launcher h3 {
    margin: 0;
    color: #fff;
    font-size: 19px;
    line-height: 1.35
}

.anc-payment-launcher p {
    max-width: 330px;
    margin: 7px auto 14px;
    color: #d1d9e1;
    font-size: 12px;
    line-height: 1.55
}

.anc-payment-launcher-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 42px;
    padding: 9px 16px;
    border-radius: 11px;
    background: var(--bg-button, #10b981);
    color: var(--text-muted, #162016) !important;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease
}

.anc-payment-launcher-button:hover {
    background: var(--bg-hover, #059669);
    color: var(--text-muted, #162016) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px color-mix(in srgb, var(--bg-button, #10b981) 25%, transparent)
}

.anc-payment-modal-open {
    overflow: hidden
}

.anc-payment-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, visibility .22s ease
}

.anc-payment-modal-overlay.show {
    opacity: 1;
    visibility: visible
}

.anc-payment-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 7, 12, .82);
    backdrop-filter: blur(11px);
    -webkit-backdrop-filter: blur(11px)
}

.anc-payment-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(1120px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    border-radius: 24px;
    box-shadow: 0 34px 100px rgba(0, 0, 0, .5);
    transform: translateY(20px) scale(.985);
    transition: transform .24s ease
}

.anc-payment-modal-overlay.show .anc-payment-modal-dialog {
    transform: translateY(0) scale(1)
}

.anc-payment-checkout {
    position: relative;
    width: 100%;
    padding: 30px;
    border: 1px solid var(--border-color, rgba(255, 255, 255, .1));
    border-radius: 24px;
    background: linear-gradient(145deg, var(--bg-card, rgba(31, 38, 48, .98)), var(--bg-dark, rgba(17, 22, 30, .98)));
    box-shadow: 0 28px 80px rgba(0, 0, 0, .36);
    overflow: hidden;
    box-sizing: border-box
}

.anc-payment-checkout:before {
    content: "";
    position: absolute;
    top: -180px;
    right: -130px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--bg-button, #10b981) 15%, transparent), transparent 68%);
    pointer-events: none
}

.anc-payment-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 10px;
    background: rgba(255, 255, 255, .06);
    color: #dce6ee;
    font-size: 24px;
    line-height: 1;
    cursor: pointer
}

.anc-payment-modal-close:hover {
    border-color: var(--bg-button, #10b981);
    color: var(--bg-button, #10b981);
    background: color-mix(in srgb, var(--bg-button, #10b981) 10%, transparent)
}

.anc-payment-checkout-header {
    position: relative;
    z-index: 1;
    margin-bottom: 30px
}

.anc-payment-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--bg-button, #10b981);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em
}

.anc-payment-checkout h1 {
    margin: 0;
    color: #fff;
    font-size: 32px;
    line-height: 1.25;
    font-weight: 800
}

.anc-payment-movie-title {
    margin: 8px 0 !important;
    color: #fff !important;
    font-size: 17px !important;
    font-weight: 700 !important
}

.anc-payment-checkout-header>p:last-child {
    margin: 0;
    color: #aeb9c5;
    font-size: 14px;
    line-height: 1.7
}

.anc-payment-checkout-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(270px, .82fr) minmax(0, 1.35fr);
    gap: 20px;
    align-items: stretch
}

.anc-payment-qr-panel,
.anc-payment-options-panel {
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 18px;
    background: rgba(8, 12, 18, .48);
    padding: 22px
}

.anc-payment-qr-panel {
    text-align: center
}

.anc-payment-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    margin-right: 7px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--bg-button, #10b981) 16%, transparent);
    color: var(--bg-button, #10b981);
    font-size: 12px;
    font-weight: 800;
    vertical-align: middle
}

.anc-payment-qr-panel h2 {
    display: inline;
    color: #fff;
    font-size: 17px;
    line-height: 1.4
}

.anc-payment-qr-frame {
    width: min(224px, 100%);
    margin: 20px auto 14px;
    padding: 10px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .25);
    box-sizing: border-box
}

.anc-payment-qr-frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px
}

.anc-payment-qr-missing {
    margin: 20px 0 14px;
    padding: 52px 16px;
    border: 1px dashed rgba(255, 255, 255, .26);
    border-radius: 16px;
    color: #ffbd4a;
    font-size: 13px
}

.anc-payment-hours {
    display: inline-block;
    margin: 0 0 9px;
    padding: 6px 10px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--bg-button, #10b981) 10%, transparent);
    color: var(--bg-button, #10b981);
    font-size: 12px
}

.anc-payment-help {
    margin: 0;
    color: #9ca8b5;
    font-size: 12px;
    line-height: 1.6
}

.anc-payment-panel-heading {
    display: flex;
    gap: 6px;
    align-items: flex-start;
    margin-bottom: 18px
}

.anc-payment-panel-heading .anc-payment-step {
    flex: 0 0 auto;
    margin-top: 2px
}

.anc-payment-panel-heading h2 {
    margin: 0;
    color: #fff;
    font-size: 17px;
    line-height: 1.4
}

.anc-payment-panel-heading p {
    margin: 4px 0 0;
    color: #aab5c0;
    font-size: 12px;
    line-height: 1.55
}

.anc-payment-upload {
    margin-bottom: 16px;
    padding: 14px;
    border: 1px dashed color-mix(in srgb, var(--bg-button, #10b981) 35%, transparent);
    border-radius: 14px;
    background: color-mix(in srgb, var(--bg-button, #10b981) 4%, transparent)
}

.anc-payment-upload label {
    display: block;
    margin-bottom: 8px;
    color: #e9f0f6;
    font-size: 13px;
    font-weight: 700
}

.anc-file-input {
    width: 100%;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 10px;
    background: rgba(0, 0, 0, .24);
    color: #dce5ed;
    cursor: pointer;
    font-size: 12px;
    box-sizing: border-box
}

.anc-file-input:hover {
    border-color: var(--bg-button, #10b981)
}

.anc-payment-upload-status {
    display: block;
    overflow: hidden;
    margin-top: 7px;
    color: #9daab6;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap
}

.anc-payment-plans {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px
}

.anc-payment-plans.is-single-plan {
    display: block;
}

.anc-payment-plans.is-single-plan .anc-payment-plan {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(28, 35, 45, 0.95), color-mix(in srgb, var(--bg-button, #10b981) 8%, transparent));
    border: 1.5px solid color-mix(in srgb, var(--bg-button, #10b981) 35%, transparent);
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
    width: 100%;
    box-sizing: border-box;
    text-align: left;
}

.anc-payment-plans.is-single-plan .anc-payment-plan:hover {
    border-color: var(--bg-button, #10b981);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--bg-button, #10b981) 25%, transparent);
    transform: translateY(-2px);
}

.anc-payment-plans.is-single-plan .anc-single-plan-info {
    flex: 1;
    min-width: 0;
}

.anc-payment-plans.is-single-plan .anc-single-plan-pricing {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.anc-payment-plans.is-single-plan .anc-payment-plan strong {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    color: var(--bg-button, #10b981);
}

.anc-payment-plans.is-single-plan .anc-payment-plan-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-button, #10b981);
    color: var(--text-muted, #fff);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 3px 10px color-mix(in srgb, var(--bg-button, #10b981) 30%, transparent);
}

@media (max-width: 640px) {
    .anc-payment-plans.is-single-plan .anc-payment-plan {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .anc-payment-plans.is-single-plan .anc-single-plan-pricing {
        width: 100%;
        justify-content: space-between;
    }
}

.anc-payment-plan {
    position: relative;
    display: flex;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 14px;
    background: #1c232d;
    color: #fff;
    text-align: left;
    cursor: pointer;
    flex-direction: column;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease
}

.anc-payment-plan:hover {
    transform: translateY(-3px);
    border-color: var(--bg-button, #10b981);
    box-shadow: 0 14px 26px rgba(0, 0, 0, .24)
}

.anc-payment-plan-name {
    color: #fff;
    font-size: 15px;
    font-weight: 800
}

.anc-payment-plan strong {
    display: block;
    margin: 9px 0 4px;
    color: var(--bg-button, #10b981);
    font-size: 24px;
    line-height: 1;
    font-weight: 800
}

.anc-payment-plan em {
    font-size: 16px;
    font-style: normal;
    font-weight: 600
}

.anc-payment-plan small {
    color: #afbbc7;
    font-size: 11px;
    line-height: 1.5
}

.anc-payment-plan-action {
    margin-top: auto;
    padding-top: 12px;
    color: #dfffc3;
    font-size: 12px;
    font-weight: 800
}

.anc-payment-plan-retail {
    border-color: rgba(0, 171, 238, .35)
}

.anc-payment-plan-retail strong {
    color: #57c9ff
}

.anc-payment-plan-pro {
    border-color: rgba(64, 214, 110, .36)
}

.anc-payment-plan-pro strong {
    color: #6cf199
}

.anc-payment-plan-movie {
    border-color: rgba(255, 164, 74, .42)
}

.anc-payment-plan-movie strong {
    color: #ffb46b
}

.anc-payment-plan-vip {
    border-color: color-mix(in srgb, var(--bg-button, #10b981) 62%, transparent);
    background: linear-gradient(155deg, #27372a, #1d2824)
}

.anc-payment-plan-badge {
    position: absolute;
    top: -9px;
    right: 10px;
    padding: 3px 7px;
    border-radius: 99px;
    background: var(--bg-button, #10b981);
    color: var(--text-muted, #152217);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .07em
}

.anc-payment-plan.is-active {
    border-color: var(--bg-button, #10b981) !important;
    box-shadow: 0 0 20px color-mix(in srgb, var(--bg-button, #10b981) 40%, transparent) !important;
    background: color-mix(in srgb, var(--bg-button, #10b981) 12%, transparent) !important;
    transform: scale(1.02)
}

@media (max-width:780px) {
    .anc-payment-modal-overlay {
        align-items: center;
        padding: 16px
    }

    .anc-payment-modal-dialog {
        width: min(560px, 100%);
        max-height: min(760px, calc(100svh - 32px));
        border-radius: 20px;
        overscroll-behavior: contain
    }

    .anc-payment-checkout {
        padding: 18px;
        border-radius: 20px
    }

    .anc-payment-checkout-header {
        margin-bottom: 18px;
        padding-right: 42px
    }

    .anc-payment-checkout h1 {
        font-size: 24px
    }

    .anc-payment-checkout-grid {
        grid-template-columns: 1fr
    }

    .anc-payment-qr-panel {
        display: grid;
        grid-template-columns: minmax(118px, 140px) minmax(0, 1fr);
        column-gap: 14px;
        text-align: left;
        align-items: center
    }

    .anc-payment-qr-panel .anc-payment-step {
        grid-column: 2;
        grid-row: 1;
        margin: 0;
        align-self: start
    }

    .anc-payment-qr-panel h2 {
        display: block;
        grid-column: 2;
        grid-row: 1;
        margin: 0 0 0 32px;
        font-size: 16px;
        align-self: start
    }

    .anc-payment-qr-frame,
    .anc-payment-qr-missing {
        grid-column: 1;
        grid-row: 1/4;
        justify-self: center;
        width: min(132px, 100%);
        margin: 0;
        padding: 7px
    }

    .anc-payment-qr-missing {
        padding: 32px 10px
    }

    .anc-payment-hours {
        grid-column: 2;
        grid-row: 2;
        justify-self: start;
        margin: 6px 0 0;
        text-align: left
    }

    .anc-payment-help {
        grid-column: 2;
        grid-row: 3;
        justify-self: start;
        margin: 6px 0 0;
        text-align: left
    }

    .anc-payment-options-panel {
        padding: 18px
    }

    .anc-payment-upload {
        margin-bottom: 12px;
        padding: 12px
    }

    .anc-payment-plan {
        min-height: 132px;
        padding: 13px
    }
}

@media (max-width:560px) {
    .anc-payment-modal-overlay {
        padding: 12px
    }

    .anc-payment-modal-dialog {
        width: 100%;
        max-height: calc(100svh - 24px);
        border-radius: 18px
    }

    .anc-payment-checkout {
        padding: 16px 14px;
        border-radius: 18px
    }

    .anc-payment-modal-close {
        top: 12px;
        right: 12px
    }

    .anc-payment-checkout h1 {
        font-size: 22px
    }

    .anc-payment-movie-title {
        font-size: 15px !important
    }

    .anc-payment-checkout-header>p:last-child {
        font-size: 13px;
        line-height: 1.55
    }

    .anc-payment-qr-panel,
    .anc-payment-options-panel {
        padding: 14px;
        border-radius: 14px
    }

    .anc-payment-qr-panel {
        grid-template-columns: 116px minmax(0, 1fr);
        column-gap: 12px
    }

    .anc-payment-qr-frame,
    .anc-payment-qr-missing {
        width: min(112px, 100%);
        padding: 6px
    }

    .anc-payment-qr-missing {
        padding: 24px 8px;
        font-size: 11px
    }

    .anc-payment-qr-panel h2 {
        font-size: 14px
    }

    .anc-payment-hours {
        font-size: 11px
    }

    .anc-payment-help {
        font-size: 11px;
        line-height: 1.5
    }

    .anc-payment-plans {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px
    }

    .anc-payment-plan {
        min-height: 106px;
        padding: 12px;
        border-radius: 12px
    }

    .anc-payment-plan-vip:last-child {
        grid-column: span 2
    }

    .anc-payment-plan-name {
        font-size: 13px
    }

    .anc-payment-plan strong {
        font-size: 20px
    }

    .anc-payment-plan small {
        font-size: 10px;
        line-height: 1.4
    }

    .anc-payment-plan strong {
        margin: 7px 0 3px
    }

    .anc-payment-plan-action {
        margin-top: 7px;
        padding-top: 0;
        font-size: 11px
    }
}

/* ==========================================
   Login / Register Prompt UI (Modern & Responsive)
   ========================================== */
.anc-login-prompt-card {
    background: var(--bg-dark);
    border-radius: 8px;
    width: calc(100% - 24px);
    max-width: 450px;
    min-width: 0;
    max-height: calc(100% - 24px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 20px;
    position: relative;
    z-index: 999;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .6);
    border: 1px solid rgba(255, 255, 255, .08);
    box-sizing: border-box;
    margin: 0;
    backdrop-filter: blur(10px);
    overflow-wrap: anywhere
}

.anc-auth-icon {
    width: 65px;
    height: 65px;
    background: color-mix(in srgb, var(--ancEpActive) 12%, transparent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--ancEpActive);
    border: 1px solid color-mix(in srgb, var(--ancEpActive) 22%, transparent)
}

.anc-auth-icon svg {
    width: 32px;
    height: 32px
}

.anc-auth-title {
    color: var(--text-main);
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.4;
    letter-spacing: 0
}

.anc-auth-desc {
    color: #a1a1aa;
    font-size: 14px;
    margin: 0 0 20px 0;
    line-height: 1.6
}

.anc-auth-btn-group {
    display: flex;
    flex-direction: column;
    gap: 12px
}

.anc-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all .3s ease;
    width: 100%;
    box-sizing: border-box;
    letter-spacing: 0;
    line-height: 1.35
}

.anc-btn-login {
    background: var(--bg-button);
    color: var(--text-muted);
    border: none;
    box-shadow: 0 4px 15px color-mix(in srgb, var(--ancEpActive) 25%, transparent)
}

.anc-btn-login:hover {
    transform: translateY(-2px);
    filter: brightness(1.1)
}

.anc-btn-register {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .15);
    color: #fff !important
}

.anc-btn-register:hover {
    border-color: var(--ancEpActive);
    color: var(--ancEpActive) !important;
    background: color-mix(in srgb, var(--ancEpActive) 6%, transparent)
}

.anc-premium-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--ancBackground, #000);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    opacity: .7;
    transition: background-image .5s ease
}

@media (min-width:480px) {
    .anc-auth-btn-group {
        flex-direction: row
    }

    .anc-auth-btn {
        width: 50%
    }
}

@media (max-width:480px) {
    .anc-login-prompt-card {
        padding: 16px;
        border-radius: 8px
    }

    .anc-auth-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 14px
    }

    .anc-auth-title {
        font-size: 20px
    }

    .anc-auth-desc {
        font-size: 13px;
        line-height: 1.55
    }
}

@media (max-width:680px) {
    #anc_pl .anc-payment-overlay {
        min-height: 0;
        padding: 8px
    }

    #anc_pl .anc-payment-launcher {
        min-height: 0;
        padding: 10px
    }

    #anc_pl .anc-payment-launcher:after {
        background: linear-gradient(135deg, rgba(4, 8, 15, .54), rgba(9, 14, 24, .38))
    }

    #anc_pl .anc-payment-launcher-card {
        width: min(320px, calc(100% - 8px));
        padding: 13px 16px;
        border-radius: 14px
    }

    #anc_pl .anc-payment-launcher-icon {
        width: 34px;
        height: 34px;
        margin-bottom: 6px;
        border-radius: 10px;
        font-size: 18px
    }

    #anc_pl .anc-payment-launcher h3 {
        font-size: 17px;
        line-height: 1.25
    }

    #anc_pl .anc-payment-launcher p {
        display: none
    }

    #anc_pl .anc-payment-launcher-button {
        min-height: 38px;
        margin-top: 10px;
        padding: 8px 14px;
        border-radius: 10px;
        font-size: 12px
    }

    #anc_pl .anc-login-prompt-card {
        width: calc(100% - 4px) !important;
        max-width: none !important;
        max-height: calc(100% - 12px);
        min-width: 0;
        margin: 0 !important;
        padding: 12px;
        border-radius: 12px
    }

    #anc_pl .anc-auth-icon {
        width: 40px;
        height: 40px;
        margin: 0 auto 7px;
        border-radius: 10px
    }

    #anc_pl .anc-auth-icon svg {
        width: 23px;
        height: 23px
    }

    #anc_pl .anc-auth-title {
        margin: 0 0 5px;
        font-size: 18px;
        line-height: 1.25
    }

    #anc_pl .anc-auth-desc {
        display: none
    }

    #anc_pl .anc-auth-btn-group {
        flex-direction: row;
        gap: 8px;
        margin-top: 9px
    }

    #anc_pl .anc-auth-btn {
        width: 50%;
        min-width: 0;
        min-height: 40px;
        padding: 8px 6px;
        border-radius: 9px;
        font-size: 12px;
        line-height: 1.25;
        white-space: normal
    }
}

@media (max-width:380px) {
    #anc_pl .anc-payment-overlay {
        padding: 6px
    }

    #anc_pl .anc-login-prompt-card {
        padding: 10px
    }

    #anc_pl .anc-auth-icon {
        display: none
    }

    #anc_pl .anc-auth-title {
        font-size: 16px;
        margin-bottom: 3px
    }

    #anc_pl .anc-auth-btn-group {
        margin-top: 5px;
        gap: 6px
    }

    #anc_pl .anc-auth-btn {
        min-height: 36px;
        font-size: 11px
    }
}

/* ==========================================
   Custom Toast Notification & Input Animation
   ========================================== */
.anc-toast-container {
    visibility: hidden;
    min-width: 280px;
    background-color: var(--ancEpActive);
    border-left: 5px solid color-mix(in srgb, var(--ancEpActive) 70%, #000);
    border-right: 5px solid color-mix(in srgb, var(--ancEpActive) 70%, #000);
    color: var(--bg-button);
    text-align: left;
    border-radius: 8px;
    padding: 16px 20px;
    position: fixed;
    z-index: 99999;
    left: 50%;
    top: 30px;
    transform: translateX(-50%) translateY(-20px);
    font-size: 15px;
    font-family: 'Noto Sans Khmer', sans-serif;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transition: opacity .3s ease, transform .3s ease, visibility .3s
}

.anc-toast-container.show {
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    opacity: 1
}

.anc-toast-icon {
    font-size: 20px
}

@keyframes anc-shake-error {

    0%,
    100% {
        transform: translateX(0)
    }

    20%,
    60% {
        transform: translateX(-5px)
    }

    40%,
    80% {
        transform: translateX(5px)
    }
}

.anc-input-error {
    border-color: #ff5a7a !important;
    background: rgba(255, 90, 122, .1) !important;
    animation: anc-shake-error .4s ease-in-out;
    color: #ff5a7a !important
}

/* ==========================================
   Centered Success Popup UI
   ========================================== */
.anc-payment-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 12, 16, .85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all .4s cubic-bezier(.25, .8, .25, 1);
    border-radius: 8px
}

.anc-payment-popup-overlay.anc-payment-modal-status-popup {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    z-index: 20
}

.anc-payment-popup-overlay.show {
    opacity: 1;
    visibility: visible
}

.anc-payment-popup-card {
    background: linear-gradient(145deg, #1a1d24 0, #111318 100%);
    border: 1px solid rgba(255, 90, 122, .15);
    border-radius: 8px;
    padding: 30px 25px;
    width: 90%;
    max-width: 400px;
    max-height: 95%;
    overflow-y: auto;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .8), 0 0 30px rgba(255, 90, 122, .05);
    transform: translateY(30px) scale(.95);
    transition: all .4s cubic-bezier(.25, .8, .25, 1)
}

.anc-payment-popup-overlay.show .anc-payment-popup-card {
    transform: translateY(0) scale(1)
}

.anc-popup-svg-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 24px
}

.anc-popup-svg {
    width: 64px;
    height: 64px
}

.anc-popup-title {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px;
    letter-spacing: .2px
}

.anc-popup-desc {
    color: #a1a1aa;
    font-size: 15px;
    margin: 0;
    line-height: 1.6
}

.anc-popup-waiting-box {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .05);
    border-radius: 8px;
    padding: 16px;
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left
}

.anc-pulsing-dot {
    width: 10px;
    height: 10px;
    background: #ff5a7a;
    border-radius: 8px;
    box-shadow: 0 0 10px #ff5a7a;
    animation: anc_pulse_dot 1.5s infinite ease-in-out;
    flex-shrink: 0
}

@keyframes anc_pulse_dot {
    0% {
        transform: scale(.8);
        opacity: .5
    }

    50% {
        transform: scale(1);
        opacity: 1
    }

    100% {
        transform: scale(.8);
        opacity: .5
    }
}

.anc-popup-close-btn {
    margin-top: 24px;
    width: 100%;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    color: #fff;
    padding: 12px 0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s ease
}

.anc-popup-close-btn:hover {
    background: rgba(255, 90, 122, .1);
    border-color: rgba(255, 90, 122, .3);
    color: #ff5a7a
}

/* ==========================================
   Coming Soon Hot, New, Countdown & Notify UI
   ========================================== */
.anc-countdown-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 50;
    border-radius: 8px
}

.anc-cd-title {
    font-size: 26px;
    font-weight: 600;
    color: var(--ancEpActive);
    margin-bottom: 8px;
}

.anc-cd-desc {
    color: #fff;
    font-size: 20px;
    margin-bottom: 25px;
    text-align: center;
    text-shadow: 0 2px 5px rgba(0, 0, 0, .8)
}

.anc-cd-timer-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    overflow: hidden;
}

.anc-cd-box {
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 8px;
    padding: 5px 10px;
    display: flex;
    flex-direction: column;
}

.anc-cd-number {
    font-size: 25px;
    font-weight: 800;
    line-height: 1;
    color: #fff
}

.anc-cd-label {
    font-size: 16px;
    color: var(--ancEpActive);
    text-transform: uppercase;
    margin-top: 5px
}

.a_tap.coming-soon {
    opacity: .6;
    border: 1px dashed rgba(255, 90, 122, .4)
}

.anc-badge-new {
    background: #08c;
    color: #fff;
}

.anc-badge-pill {
    position: absolute;
    top: -6px;
    right: -6px;
    font-size: 9px;
    padding: 3px 6px;
    border-radius: 8px;
    font-weight: 800;
    line-height: 1;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .5);
    letter-spacing: .5px
}

.anc-badge-hot {
    background: #ff5a7a;
    color: #fff;
}

.anc-badge-soon {
    background: #7b00bd;
    color: #fff;
    animation: anc_pulse_dot 2s infinite ease-in-out
}

/* JWPlayer Base64 Overrides (Kept minimal layout) */
.jw-icon-cc .jw-svg-icon-cc-off path,
.jw-icon-cc .jw-svg-icon-cc-on path,
.jw-icon-pip,
.jw-icon-pip .jw-svg-icon-pip-off path,
.jw-icon-pip .jw-svg-icon-pip-on path,
.jw-icon.jw-icon-inline.jw-button-color.jw-reset.jw-icon-pip,
.jw-icon.jw-icon-inline.jw-button-color.jw-reset.jw-icon-rewind,
.jw-state-idle .jw-svg-icon-play path,
.jw-svg-icon-buffer path,
.jw-svg-icon-fullscreen-off path,
.jw-svg-icon-fullscreen-on path,
.jw-svg-icon-pause path,
.jw-svg-icon-play path,
.jw-svg-icon-replay path,
.jw-svg-icon-rewind path,
.jw-svg-icon-volume-0 path,
.jw-svg-icon-volume-100 path,
.jw-svg-icon-volume-50 path,
.jw-svg-icon.jw-svg-icon-sharing path {
    display: none !important
}

.jw-text {
    padding: 5px 0 !important
}

.jw-icon-cc .jw-svg-icon-cc-off,
.jw-icon-cc .jw-svg-icon-cc-on,
.jw-icon-pip .jw-svg-icon-pip-off,
.jw-icon-pip .jw-svg-icon-pip-on,
.jw-state-idle .jw-svg-icon-play,
.jw-svg-icon-buffer,
.jw-svg-icon-fullscreen-off,
.jw-svg-icon-fullscreen-on,
.jw-svg-icon-pause,
.jw-svg-icon-play,
.jw-svg-icon-replay,
.jw-svg-icon-settings,
.jw-svg-icon-volume-0,
.jw-svg-icon-volume-100,
.jw-svg-icon-volume-50,
.jw-svg-icon.jw-svg-icon-sharing {
    background-color: #fff;
    background-image: none !important;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center
}

.jw-controlbar .jw-button-color:hover .jw-svg-icon,
.jwplayer .jw-icon:hover .jw-svg-icon,
.jwplayer .jw-toggle.jw-off:hover .jw-svg-icon {
    background-color: var(--ancEpActive) !important
}

.jw-controlbar .jw-button-container .jw-button-color:hover,
.jwplayer .jw-active-option,
.jwplayer .jw-icon:hover,
.jwplayer .jw-item:hover,
.jwplayer .jw-toggle.jw-off:hover {
    filter: none !important;
    color: var(--ancEpActive) !important
}

.jw-slider-horizontal.jw-chapter-slider-time .jw-slider-container .jw-timesegment-progress,
.jwplayer .jw-knob,
.jwplayer .jw-progress {
    background: var(--ancEpActive) !important
}

.jw-state-idle .jw-svg-icon-play {
    -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLXBsYXktaWNvbiBsdWNpZGUtcGxheSI+PHBhdGggZD0iTTUgNWEyIDIgMCAwIDEgMy4wMDgtMS43MjhsMTEuOTk3IDYuOTk4YTIgMiAwIDAgMSAuMDAzIDMuNDU4bC0xMiA3QTIgMiAwIDAgMSA1IDE5eiIvPjwvc3ZnPg==")
}

.jw-svg-icon-play {
    -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLXBsYXktaWNvbiBsdWNpZGUtcGxheSI+PHBhdGggZD0iTTUgNWEyIDIgMCAwIDEgMy4wMDgtMS43MjhsMTEuOTk3IDYuOTk4YTIgMiAwIDAgMSAuMDAzIDMuNDU4bC0xMiA3QTIgMiAwIDAgMSA1IDE5eiIvPjwvc3ZnPg==")
}

.jw-svg-icon-buffer {
    -webkit-mask-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAMAAAAL34HQAAACfFBMVEUAAAAAAAC/AADlCBPlCBTlCBPkCBTlCBPVAADkCROqAADiABThAA/bAADkCRPlCBPiBxLkCBTcAAzkCBTfAADkCBPjAADkBxPkCBPMAADkBxHkCBTkCRPjCRPkCRPkCBTlCRPlCBPlCBTRAADlCRPkCRPkBRLkCBPjBhHlCBTlCBTgAArhBxLlCBTkCBPkCRLkCBPfBhPlCBTkCBPkCRTfCBDlCRTlCRLhCRHlCRHkCBTlBxTlCBPbABLjCBTlCBTfABDlCRTkBRCAAADkABLlCRPlCRLkCRLhCA/lBRDkCBPjCBLlCBPiBhHkBxLkCBPjCRTkCRPkCRPlCRTbAAzjCBPlCBTkCBTkCBTkCRTjCRPhBhLlCBPlCRTlCBPlCRPdABHjBxPkCBPiBw/jBhPlCRTkCRPlBxTlCBPjCBLkCRPkCRTlCBTkCBTkCRPkCRPlCBLkC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HN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLXJvdGF0ZS1jY3ctaWNvbiBsdWNpZGUtcm90YXRlLWNjdyI+PHBhdGggZD0iTTMgMTJhOSA5IDAgMSAwIDktOSA5Ljc1IDkuNzUgMCAwIDAtNi43NCAyLjc0TDMgOCIvPjxwYXRoIGQ9Ik0zIDN2NWg1Ii8+PC9zdmc+");
    transform: scaleX(-1)
}

.jw-icon-cc .jw-svg-icon-cc-on {
    -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLWNhcHRpb25zLWljb24gbHVjaWRlLWNhcHRpb25zIj48cmVjdCB3aWR0aD0iMTgiIGhlaWdodD0iMTQiIHg9IjMiIHk9IjUiIHJ4PSIyIiByeT0iMiIvPjxwYXRoIGQ9Ik03IDE1aDRNMTUgMTVoMk03IDExaDJNMTMgMTFoNCIvPjwvc3ZnPg==")
}

.jw-icon-cc .jw-svg-icon-cc-off {
    -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLWNhcHRpb25zLW9mZi1pY29uIGx1Y2lkZS1jYXB0aW9ucy1vZmYiPjxwYXRoIGQ9Ik0xMC41IDVIMTlhMiAyIDAgMCAxIDIgMnY4LjUiLz48cGF0aCBkPSJNMTcgMTFoLS41Ii8+PHBhdGggZD0iTTE5IDE5SDVhMiAyIDAgMCAxLTItMlY3YTIgMiAwIDAgMSAyLTIiLz48cGF0aCBkPSJtMiAyIDIwIDIwIi8+PHBhdGggZD0iTTcgMTFoNCIvPjxwYXRoIGQ9Ik03IDE1aDIuNSIvPjwvc3ZnPg==")
}

.jw-svg-icon.jw-svg-icon-sharing {
    -webkit-mask-image: url(https://www.svgrepo.com/show/527441/share.svg)
}

.jw-icon-pip .jw-svg-icon-pip-on {
    -webkit-mask-image: url(https://www.svgrepo.com/show/347273/picture-in-picture-2.svg)
}

.jw-icon-pip .jw-svg-icon-pip-off {
    -webkit-mask-image: url(https://www.svgrepo.com/show/347275/picture-in-picture-exit.svg)
}

.jw-svg-icon-pause {
    -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLXBhdXNlLWljb24gbHVjaWRlLXBhdXNlIj48cmVjdCB4PSIxNCIgeT0iMyIgd2lkdGg9IjUiIGhlaWdodD0iMTgiIHJ4PSIxIi8+PHJlY3QgeD0iNSIgeT0iMyIgd2lkdGg9IjUiIGhlaWdodD0iMTgiIHJ4PSIxIi8+PC9zdmc+")
}

.jw-svg-icon-volume-100 {
    -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLXZvbHVtZTItaWNvbiBsdWNpZGUtdm9sdW1lLTIiPjxwYXRoIGQ9Ik0xMSA0LjcwMmEuNzA1LjcwNSAwIDAgMC0xLjIwMy0uNDk4TDYuNDEzIDcuNTg3QTEuNCAxLjQgMCAwIDEgNS40MTYgOEgzYTEgMSAwIDAgMC0xIDF2NmExIDEgMCAwIDAgMSAxaDIuNDE2YTEuNCAxLjQgMCAwIDEgLjk5Ny40MTNsMy4zODMgMy4zODRBLjcwNS43MDUgMCAwIDAgMTEgMTkuMjk4eiIvPjxwYXRoIGQ9Ik0xNiA5YTUgNSAwIDAgMSAwIDYiLz48cGF0aCBkPSJNMTkuMzY0IDE4LjM2NGE5IDkgMCAwIDAgMC0xMi43MjgiLz48L3N2Zz4=")
}

.jw-svg-icon-volume-50 {
    -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tl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geTE9IjkiIHkyPSIxNSIvPjxsaW5lIHgxPSIxNiIgeDI9IjIyIiB5MT0iOSIgeTI9IjE1Ii8+PC9zdmc+")
}

.jw-svg-icon-settings {
    -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLWJvbHQtaWNvbiBsdWNpZGUtYm9sdCI+PHBhdGggZD0iTTIxIDE2VjhhMiAyIDAgMCAwLTEtMS43M2wtNy00YTIgMiAwIDAgMC0yIDBsLTcgNEEyIDIgMCAwIDAgMyA4djhhMiAyIDAgMCAwIDEgMS43M2w3IDRhMiAyIDAgMCAwIDIgMGw3LTRBMiAyIDAgMCAwIDIxIDE2eiIvPjxjaXJjbGUgY3g9IjEyIiBjeT0iMTIiIHI9IjQiLz48L3N2Zz4=")
}

.jw-svg-icon-fullscreen-on {
    -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLW1heGltaXplLWljb24gbHVjaWRlLW1heGltaXplIj48cGF0aCBkPSJNOCAzSDVhMiAyIDAgMCAwLTIgMnYzIi8+PHBhdGggZD0iTTIxIDhWNWEyIDIgMCAwIDAtMi0yaC0zIi8+PHBhdGggZD0iTTMgMTZ2M2EyIDIgMCAwIDAgMiAyaDMiLz48cGF0aCBkPSJNMTYgMjFoM2EyIDIgMCAwIDAgMi0ydi0zIi8+PC9zdmc+")
}

.jw-svg-icon-fullscreen-off {
    -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLW1pbmltaXplLWljb24gbHVjaWRlLW1pbmltaXplIj48cGF0aCBkPSJNOCAzdjNhMiAyIDAgMCAxLTIgMkgzIi8+PHBhdGggZD0iTTIxIDhoLTNhMiAyIDAgMCAxLTItMlYzIi8+PHBhdGggZD0iTTMgMTZoM2EyIDIgMCAwIDEgMiAydjMiLz48cGF0aCBkPSJNMTYgMjF2LTNhMiAyIDAgMCAxIDItMmgzIi8+PC9zdmc+")
}

/* ==========================================
   Next Episode Auto-Countdown Overlay
   ========================================== */
.anc-next-countdown-overlay {
    position: absolute;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    width: min(320px, calc(100% - 32px));
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: anc_fade_slide_up 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Noto Sans Khmer', sans-serif, -apple-system;
}

@keyframes anc_fade_slide_up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.anc-next-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.anc-next-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.anc-countdown-bar-wrap {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    overflow: hidden;
}

.anc-countdown-bar-fill {
    height: 100%;
    background: var(--ancEpActive, #e50914);
    width: 100%;
    transform-origin: left;
    transition: width 1s linear;
}

.anc-next-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.anc-btn-play-now {
    flex: 1;
    background: var(--ancEpActive, #e50914);
    color: #fff !important;
    border: none;
    padding: 7px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: opacity 0.2s;
}

.anc-btn-play-now:hover {
    opacity: 0.9;
}

.anc-btn-cancel-next {
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.anc-btn-cancel-next:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* ==========================================
   Stream Error & Auto-Retry Overlay
   ========================================== */
.anc-stream-retry-overlay {
    position: absolute;
    inset: 0;
    z-index: 999;
    background: rgba(10, 10, 10, 0.92);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    text-align: center;
    color: #fff;
    font-family: 'Noto Sans Khmer', sans-serif, -apple-system;
    backdrop-filter: blur(8px);
}

.anc-retry-btn {
    background: var(--ancEpActive, #e50914);
    color: #fff;
    border: none;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.15s, opacity 0.15s;
}

.anc-retry-btn:hover {
    transform: scale(1.03);
    opacity: 0.95;
}

/* ==========================================
   Feedback Action Toast (Keyboard & Double-tap)
   ========================================== */
.anc-action-toast {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    pointer-events: none;
    z-index: 9999;
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.anc-action-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Double-tap ripple indicator for mobile */
.anc-tap-ripple {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 35%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 50;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.anc-tap-ripple.ripple-left {
    left: 0;
}

.anc-tap-ripple.ripple-right {
    right: 0;
}

.anc-tap-ripple.active {
    opacity: 1;
}

.anc-tap-badge {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    width: 62px;
    height: 62px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

#anc-resume-toast {
    display: none !important;
}