.article-content .wp-video,
.article-content .wp-block-video{
    width:100% !important;
    max-width:100%;
}

.article-content .wp-video{
    margin:30px 0;
}

.article-content .wp-block-video{
    margin-top:30px;
    margin-bottom:30px;
}

.anz-video-player{
    --anz-video-accent:var(--accent,#6d5dfc);
    position:relative;
    width:100%;
    overflow:hidden;
    isolation:isolate;
    border:1px solid rgba(255,255,255,.09);
    border-radius:12px;
    background:#07080d;
    color:#fff;
    box-shadow:0 18px 44px rgba(7,8,13,.16);
    outline:none;
    user-select:none;
}

.anz-video-player:focus-visible{
    outline:2px solid var(--anz-video-accent);
    outline-offset:3px;
}

.anz-video-player-media{
    width:100% !important;
    height:auto !important;
    max-height:min(76vh,760px);
    display:block;
    margin:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:#000;
    object-fit:contain;
    cursor:pointer;
}

.anz-video-player:fullscreen{
    width:100vw;
    height:100vh;
    border:0;
    border-radius:0;
    background:#000;
}

.anz-video-player:fullscreen .anz-video-player-media{
    width:100%;
    height:100%;
    max-height:none;
}

.anz-video-center-play{
    position:absolute;
    top:50%;
    left:50%;
    z-index:4;
    width:68px;
    height:68px;
    display:grid;
    place-items:center;
    padding:0;
    border:1px solid rgba(255,255,255,.34);
    border-radius:50%;
    background:rgba(10,11,17,.72);
    color:#fff;
    backdrop-filter:blur(12px);
    transform:translate(-50%,-50%);
    transition:opacity .18s ease,background-color .18s ease,border-color .18s ease;
    cursor:pointer;
}

.anz-video-center-play:hover,
.anz-video-center-play:focus-visible{
    border-color:rgba(255,255,255,.68);
    background:rgba(10,11,17,.88);
    transform:translate(-50%,-50%);
    box-shadow:none;
}

.anz-video-center-play svg{
    width:27px;
    height:27px;
    fill:currentColor;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
    transform:none !important;
    transition:none !important;
}

.anz-video-player.is-playing .anz-video-center-play{
    opacity:0;
    pointer-events:none;
}

.anz-video-player.is-paused .anz-video-center-play,
.anz-video-player.is-ended .anz-video-center-play{
    opacity:1;
    pointer-events:auto;
}

.anz-video-loading{
    position:absolute;
    inset:0;
    z-index:5;
    display:grid;
    place-items:center;
    pointer-events:none;
    opacity:0;
    background:rgba(0,0,0,.08);
    transition:opacity .16s ease;
}

.anz-video-player.is-loading .anz-video-loading{
    opacity:1;
}

.anz-video-loading span{
    width:38px;
    height:38px;
    border:3px solid rgba(255,255,255,.28);
    border-top-color:#fff;
    border-radius:50%;
    animation:anz-video-spin .72s linear infinite;
}

.anz-video-controls{
    position:absolute;
    right:0;
    bottom:0;
    left:0;
    z-index:6;
    padding:34px 14px 11px;
    opacity:0;
    pointer-events:none;
    background:linear-gradient(
        to top,
        rgba(5,6,10,.94) 0,
        rgba(5,6,10,.68) 52%,
        rgba(5,6,10,0) 100%
    );
    transition:opacity .18s ease;
}

.anz-video-player.is-controls-visible .anz-video-controls,
.anz-video-player.is-paused .anz-video-controls,
.anz-video-player.is-ended .anz-video-controls{
    opacity:1;
    pointer-events:auto;
}

.anz-video-progress-wrap{
    position:relative;
    height:18px;
    display:flex;
    align-items:center;
    margin:0 2px 5px;
}

.anz-video-buffered,
.anz-video-played{
    position:absolute;
    top:50%;
    left:0;
    height:4px;
    border-radius:2px;
    pointer-events:none;
    transform:translateY(-50%);
}

.anz-video-buffered{
    width:0;
    background:rgba(255,255,255,.34);
}

.anz-video-played{
    width:0;
    background:var(--anz-video-accent);
}

.anz-video-progress{
    position:relative;
    z-index:2;
    width:100%;
    height:18px;
    padding:0;
    margin:0;
    appearance:none;
    -webkit-appearance:none;
    background:transparent;
    cursor:pointer;
}

.anz-video-progress::-webkit-slider-runnable-track{
    height:4px;
    border-radius:2px;
    background:rgba(255,255,255,.18);
}

.anz-video-progress::-moz-range-track{
    height:4px;
    border-radius:2px;
    background:rgba(255,255,255,.18);
}

.anz-video-progress::-webkit-slider-thumb{
    width:14px;
    height:14px;
    margin-top:-5px;
    border:0;
    border-radius:50%;
    appearance:none;
    -webkit-appearance:none;
    background:#fff;
    box-shadow:0 1px 7px rgba(0,0,0,.38);
}

.anz-video-progress::-moz-range-thumb{
    width:14px;
    height:14px;
    border:0;
    border-radius:50%;
    background:#fff;
    box-shadow:0 1px 7px rgba(0,0,0,.38);
}

.anz-video-controls-row,
.anz-video-controls-left,
.anz-video-controls-right{
    display:flex;
    align-items:center;
}

.anz-video-controls-row{
    justify-content:space-between;
    min-width:0;
    gap:12px;
}

.anz-video-controls-left,
.anz-video-controls-right{
    gap:6px;
}

.anz-video-control{
    width:36px;
    height:36px;
    display:grid;
    place-items:center;
    flex:0 0 36px;
    padding:0;
    border:0;
    border-radius:8px;
    background:transparent;
    color:#fff;
    cursor:pointer;
}

.anz-video-control:hover,
.anz-video-control:focus-visible,
.anz-video-control.is-active{
    background:rgba(255,255,255,.14);
    transform:none;
    box-shadow:none;
}

.anz-video-control:focus-visible,
.anz-video-speed-trigger:focus-visible,
.anz-video-speed-menu button:focus-visible,
.anz-video-progress:focus-visible,
.anz-video-volume:focus-visible{
    outline:2px solid #fff;
    outline-offset:2px;
}

.anz-video-control svg{
    width:21px;
    height:21px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
    transform:none !important;
    transition:none !important;
}

.anz-video-play svg{
    fill:currentColor;
}

.anz-video-time{
    display:flex;
    align-items:center;
    gap:5px;
    min-width:92px;
    font-size:12px;
    line-height:1;
    font-variant-numeric:tabular-nums;
    color:rgba(255,255,255,.86);
    white-space:nowrap;
}

.anz-video-volume{
    width:72px;
    height:20px;
    margin:0 4px 0 0;
    padding:0;
    appearance:none;
    -webkit-appearance:none;
    background:transparent;
    cursor:pointer;
}

.anz-video-volume::-webkit-slider-runnable-track{
    height:3px;
    border-radius:2px;
    background:rgba(255,255,255,.35);
}

.anz-video-volume::-moz-range-track{
    height:3px;
    border-radius:2px;
    background:rgba(255,255,255,.35);
}

.anz-video-volume::-webkit-slider-thumb{
    width:11px;
    height:11px;
    margin-top:-4px;
    border:0;
    border-radius:50%;
    appearance:none;
    -webkit-appearance:none;
    background:#fff;
}

.anz-video-volume::-moz-range-thumb{
    width:11px;
    height:11px;
    border:0;
    border-radius:50%;
    background:#fff;
}

.anz-video-speed-wrap{
    position:relative;
    display:block;
    margin:0;
}

.anz-video-speed-trigger{
    min-width:54px;
    height:32px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:4px;
    padding:0 7px;
    border:1px solid rgba(255,255,255,.2);
    border-radius:8px;
    background:rgba(8,9,14,.62);
    color:#fff;
    font:inherit;
    font-size:12px;
    font-weight:700;
    line-height:1;
    cursor:pointer;
}

.anz-video-speed-trigger:hover,
.anz-video-speed-trigger:focus-visible,
.anz-video-speed-wrap.is-open .anz-video-speed-trigger{
    border-color:rgba(255,255,255,.46);
    background:rgba(255,255,255,.14);
    transform:none;
    box-shadow:none;
}

.anz-video-speed-trigger svg{
    width:14px;
    height:14px;
    fill:none;
    stroke:currentColor;
    stroke-width:2;
    stroke-linecap:round;
    stroke-linejoin:round;
    transform:none;
    transition:transform .16s ease;
}

.anz-video-speed-wrap.is-open .anz-video-speed-trigger svg{
    transform:rotate(180deg);
}

.anz-video-speed-menu{
    position:absolute;
    right:0;
    bottom:calc(100% + 10px);
    z-index:20;
    width:132px;
    padding:6px;
    border:1px solid rgba(255,255,255,.16);
    border-radius:11px;
    background:rgba(13,14,21,.96);
    box-shadow:0 18px 44px rgba(0,0,0,.36);
    backdrop-filter:blur(14px);
}

.anz-video-speed-menu[hidden]{
    display:none !important;
}

.anz-video-speed-menu::after{
    content:"";
    position:absolute;
    right:17px;
    bottom:-5px;
    width:9px;
    height:9px;
    border-right:1px solid rgba(255,255,255,.16);
    border-bottom:1px solid rgba(255,255,255,.16);
    background:rgba(13,14,21,.96);
    transform:rotate(45deg);
}

.anz-video-speed-menu button{
    position:relative;
    z-index:1;
    width:100%;
    min-height:35px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    padding:0 10px;
    border:0;
    border-radius:7px;
    background:transparent;
    color:rgba(255,255,255,.8);
    font:inherit;
    font-size:12px;
    text-align:left;
    cursor:pointer;
}

.anz-video-speed-menu button:hover,
.anz-video-speed-menu button:focus-visible{
    background:rgba(255,255,255,.1);
    color:#fff;
    transform:none;
    box-shadow:none;
}

.anz-video-speed-menu button.is-selected{
    background:rgba(109,93,252,.22);
    color:#fff;
}

.anz-video-speed-menu button.is-selected::before{
    content:"";
    width:5px;
    height:5px;
    flex:0 0 5px;
    border-radius:50%;
    background:var(--anz-video-accent);
}

.anz-video-speed-menu button:not(.is-selected)::before{
    content:"";
    width:5px;
    height:5px;
    flex:0 0 5px;
}

.anz-video-speed-menu button span{
    margin-right:auto;
    font-weight:700;
}

.anz-video-speed-menu button small{
    color:rgba(255,255,255,.5);
    font-size:9px;
    font-weight:600;
}

.anz-video-player .screen-reader-text{
    position:absolute !important;
    width:1px !important;
    height:1px !important;
    padding:0 !important;
    margin:-1px !important;
    overflow:hidden !important;
    clip:rect(0,0,0,0) !important;
    white-space:nowrap !important;
    border:0 !important;
}

.article-content .wp-block-video figcaption{
    margin-top:9px;
    color:var(--muted);
    font-size:13px;
    line-height:1.5;
    text-align:center;
}

@keyframes anz-video-spin{
    to{transform:rotate(360deg)}
}

@media(max-width:700px){
    .article-content .wp-video,
    .article-content .wp-block-video{
        margin-top:22px;
        margin-bottom:22px;
    }

    .anz-video-player{
        border-radius:10px;
        box-shadow:none;
    }

    .anz-video-player-media{
        max-height:68vh;
    }

    .anz-video-center-play{
        width:54px;
        height:54px;
    }

    .anz-video-center-play svg{
        width:23px;
        height:23px;
    }

    .anz-video-controls{
        padding:30px 8px 7px;
    }

    .anz-video-progress-wrap{
        margin-right:3px;
        margin-left:3px;
    }

    .anz-video-controls-row{
        gap:5px;
    }

    .anz-video-controls-left,
    .anz-video-controls-right{
        gap:1px;
    }

    .anz-video-control{
        width:32px;
        height:32px;
        flex-basis:32px;
        border-radius:7px;
    }

    .anz-video-control svg{
        width:19px;
        height:19px;
    }

    .anz-video-time{
        min-width:74px;
        gap:3px;
        font-size:10px;
    }

    .anz-video-volume{
        display:none;
    }

    .anz-video-speed-trigger{
        min-width:45px;
        height:29px;
        padding:0 5px;
        border-radius:7px;
        font-size:10px;
    }

    .anz-video-speed-trigger svg{
        width:12px;
        height:12px;
    }

    .anz-video-speed-menu{
        width:122px;
        right:-5px;
        bottom:calc(100% + 8px);
        border-radius:10px;
    }

    .anz-video-speed-menu button{
        min-height:34px;
        padding:0 9px;
        font-size:11px;
    }

    .anz-video-pip{
        display:none;
    }
}

@media(max-width:420px){
    .anz-video-controls{
        padding-right:6px;
        padding-left:6px;
    }

    .anz-video-time [data-anz-video-duration],
    .anz-video-time [aria-hidden="true"]{
        display:none;
    }

    .anz-video-time{
        min-width:37px;
    }

    .anz-video-captions[hidden]{
        display:none !important;
    }
}

@media(prefers-reduced-motion:reduce){
    .anz-video-center-play,
    .anz-video-loading,
    .anz-video-controls{
        transition:none;
    }

    .anz-video-loading span{
        animation-duration:1.25s;
    }
}


/* Anime News Feed 1.6 — mobile fullscreen landscape support */
.anz-video-player.is-landscape-locked:fullscreen,
.anz-video-player.is-fullscreen{
    background:#000;
}

@media(
    max-width:900px
) and (orientation:landscape){
    .anz-video-player:fullscreen,
    .anz-video-player.is-fullscreen{
        width:100vw !important;
        height:100vh !important;
        max-width:none !important;
        max-height:none !important;
        border:0 !important;
        border-radius:0 !important;
    }

    .anz-video-player:fullscreen .anz-video-player-media,
    .anz-video-player.is-fullscreen .anz-video-player-media{
        width:100% !important;
        height:100% !important;
        max-height:none !important;
        object-fit:contain !important;
    }

    .anz-video-player:fullscreen .anz-video-controls,
    .anz-video-player.is-fullscreen .anz-video-controls{
        padding-right:max(12px,env(safe-area-inset-right)) !important;
        padding-bottom:max(9px,env(safe-area-inset-bottom)) !important;
        padding-left:max(12px,env(safe-area-inset-left)) !important;
    }
}


/* Anime News Feed 1.6 — fullscreen scale fix v3 */
@media(max-width:900px){
    html,
    body{
        width:100%;
        max-width:100%;
        min-width:0;
        -webkit-text-size-adjust:100% !important;
        text-size-adjust:100% !important;
    }

    html.anz-video-orientation-active{
        scroll-behavior:auto !important;
        overflow-anchor:none !important;
    }

    body.anz-video-orientation-active{
        overflow-x:hidden !important;
        overflow-anchor:none !important;
    }

    body.anz-video-orientation-active .site,
    body.anz-video-orientation-active .site-main,
    body.anz-video-orientation-active .article-shell,
    body.anz-video-orientation-active .article-content{
        width:100% !important;
        max-width:100% !important;
        min-width:0 !important;
    }

    .anz-video-player{
        width:100%;
        max-width:100%;
        min-width:0;
    }
}
