.re-watch{
    min-height:100vh;
    padding:88px 0 70px;
    background:#000;
}

.re-watch-breadcrumb{
    display:flex;
    gap:8px;
    margin-bottom:16px;
    color:#71717a;
    font-size:11px;
}

.re-watch-breadcrumb a:hover{
    color:var(--primary);
}

.re-watch-layout{
    display:grid;
    grid-template-columns:300px minmax(0,1fr);
    gap:14px;
    align-items:start;
}

.re-watch-anime{
    overflow:hidden;
    border:1px solid var(--border);
    border-radius:10px;
    background:#0b0b0d;
}

.re-watch-anime-head{
    padding:14px;
    display:flex;
    gap:12px;
    align-items:center;
    border-bottom:1px solid var(--border);
}

.re-watch-anime-head img{
    width:54px;
    height:76px;
    object-fit:cover;
    border-radius:5px;
}

.re-watch-anime-head small{
    display:block;
    margin-bottom:5px;
    color:var(--primary);
    font-size:8px;
    font-weight:900;
    text-transform:uppercase;
}

.re-watch-anime-head h2{
    margin:0 0 6px;
    font-size:13px;
    line-height:1.35;
}

.re-watch-anime-head span{
    color:#777;
    font-size:10px;
}

.re-episode-tools{
    padding:10px;
    display:flex;
    gap:6px;
    border-bottom:1px solid var(--border);
}

.re-episode-tools input{
    min-width:0;
    flex:1;
    padding:9px 10px;
    outline:0;
    border:1px solid var(--border);
    border-radius:6px;
    background:#111114;
    color:#fff;
    font-size:10px;
}

.re-view-switch{
    display:flex;
}

.re-view-switch button{
    width:34px;
    border:1px solid var(--border);
    background:#111;
    color:#777;
    cursor:pointer;
}

.re-view-switch button.active{
    background:var(--primary);
    color:#000;
}

.re-episode-list{
    max-height:610px;
    padding:6px;
    overflow-y:auto;
}

.re-episode-item{
    min-height:58px;
    padding:8px;
    display:flex;
    align-items:center;
    gap:10px;
    border-radius:6px;
    color:#aaa;
}

.re-episode-item:hover{
    background:#141416;
}

.re-episode-item.active{
    background:rgba(232,255,71,.08);
    color:#fff;
}

.re-episode-number{
    width:35px;
    height:35px;
    flex:0 0 35px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:5px;
    background:#171719;
    font-size:10px;
    font-weight:900;
}

.re-episode-item.active .re-episode-number{
    background:var(--primary);
    color:#000;
}

.re-episode-copy{
    min-width:0;
    flex:1;
}

.re-episode-copy strong{
    display:block;
    overflow:hidden;
    font-size:10px;
    white-space:nowrap;
    text-overflow:ellipsis;
}

.re-episode-copy small{
    display:block;
    margin-top:4px;
    color:#666;
    font-size:8px;
}

.re-playing{
    color:var(--primary);
    font-size:10px;
}

/* GRID MODE */

.re-episode-list.grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:5px;
}

.re-episode-list.grid .re-episode-item{
    min-height:52px;
    justify-content:center;
    text-align:center;
    border:1px solid var(--border);
}

.re-episode-list.grid .re-episode-number{
    background:transparent;
}

.re-episode-list.grid .re-episode-copy,
.re-episode-list.grid .re-playing{
    display:none;
}


/* PLAYER */

.re-watch-main{
    min-width:0;
}

.re-player-shell{
    position:relative;
    width:100%;
    aspect-ratio:16/9;
    overflow:hidden;
    background:#050505;
    border-radius:8px 8px 0 0;
}

.re-player-shell iframe{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    border:0;
}

.re-no-stream{
    position:absolute;
    inset:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    color:#777;
}

.re-no-stream strong{
    margin-bottom:7px;
    color:#ddd;
}

.re-player-toolbar{
    min-height:48px;
    padding:7px 10px;
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:5px;
    border:1px solid var(--border);
    border-top:0;
    background:#0b0b0d;
}

.re-player-toolbar button{
    min-height:31px;
    padding:0 9px;
    display:flex;
    align-items:center;
    gap:6px;
    border:0;
    border-radius:5px;
    background:transparent;
    color:#999;
    font-size:9px;
    cursor:pointer;
}

.re-player-toolbar button:hover{
    background:#171719;
    color:#fff;
}

.re-toggle{
    width:20px;
    height:11px;
    position:relative;
    border-radius:10px;
    background:#333;
}

.re-toggle::after{
    content:"";
    position:absolute;
    top:2px;
    left:2px;
    width:7px;
    height:7px;
    border-radius:50%;
    background:#888;
    transition:.2s;
}

button.active .re-toggle{
    background:var(--primary);
}

button.active .re-toggle::after{
    left:11px;
    background:#000;
}


/* SERVERS */

.re-servers{
    margin-top:12px;
    padding:15px;
    border:1px solid var(--border);
    border-radius:8px;
    background:#0b0b0d;
}

.re-server-heading{
    margin-bottom:14px;
    display:flex;
    align-items:end;
    justify-content:space-between;
}

.re-server-heading small{
    color:var(--primary);
    font-size:8px;
    font-weight:900;
    text-transform:uppercase;
}

.re-server-heading h3{
    margin:3px 0 0;
    font-size:15px;
}

.re-server-heading > span{
    color:#555;
    font-size:9px;
}

.re-server-type{
    padding:10px 0;
    display:grid;
    grid-template-columns:55px 1fr;
    gap:12px;
    border-top:1px solid var(--border);
}

.re-server-type-label{
    padding-top:8px;
    color:var(--primary);
    font-size:10px;
    font-weight:900;
}

.re-language-row{
    padding:5px 0;
    display:flex;
    align-items:center;
    gap:12px;
}

.re-language-name{
    width:80px;
    color:#888;
    font-size:9px;
}

.re-server-buttons{
    display:flex;
    flex-wrap:wrap;
    gap:5px;
}

.re-server-buttons button{
    padding:7px 11px;
    border:1px solid var(--border);
    border-radius:5px;
    background:#151517;
    color:#aaa;
    font-size:9px;
    font-weight:800;
    cursor:pointer;
}

.re-server-buttons button:hover,
.re-server-buttons button.active{
    border-color:var(--primary);
    background:var(--primary);
    color:#000;
}


/* PREV NEXT */

.re-episode-navigation{
    margin-top:12px;
    display:grid;
    grid-template-columns:1fr auto 1fr;
    align-items:center;
    gap:8px;
}

.re-episode-navigation a,
.re-episode-navigation > div{
    padding:11px 14px;
    border:1px solid var(--border);
    border-radius:6px;
    background:#0d0d0f;
    font-size:10px;
}

.re-episode-navigation a:last-child{
    text-align:right;
}

.re-episode-navigation > div{
    color:#777;
}


/* THEATER */

body.re-theater .re-watch .re-container{
    width:100%;
    max-width:none;
}

body.re-theater .re-watch-layout{
    display:block;
}

body.re-theater .re-watch-anime{
    display:none;
}

body.re-theater .re-player-shell{
    border-radius:0;
}


/* MOBILE */

@media(max-width:850px){

    .re-watch{
        padding-top:65px;
    }

    .re-watch > .re-container{
        width:100%;
    }

    .re-watch-breadcrumb{
        padding:0 11px;
    }

    .re-watch-layout{
        display:flex;
        flex-direction:column;
        gap:10px;
    }

    .re-watch-main{
        width:100%;
        order:1;
    }

    .re-watch-anime{
        width:calc(100% - 22px);
        margin:auto;
        order:2;
    }

    .re-player-shell{
        border-radius:0;
    }

    .re-player-toolbar{
        border-right:0;
        border-left:0;
        overflow-x:auto;
        flex-wrap:nowrap;
    }

    .re-player-toolbar button{
        flex:none;
    }

    .re-servers,
    .re-episode-navigation{
        margin-right:11px;
        margin-left:11px;
    }
}

@media(max-width:520px){

    .re-player-toolbar button span:not(.re-toggle){
        display:none;
    }

    .re-server-heading > span{
        display:none;
    }

    .re-server-type{
        display:block;
    }

    .re-server-type-label{
        margin-bottom:7px;
    }

    .re-language-row{
        align-items:flex-start;
        flex-direction:column;
        gap:6px;
    }

    .re-language-name{
        width:auto;
    }

    .re-episode-list.grid{
        grid-template-columns:repeat(5,1fr);
    }

    .re-episode-navigation{
        grid-template-columns:1fr 1fr;
    }

    .re-episode-navigation > div{
        display:none;
    }
}
/* SUB / DUB */

.re-stream-tabs{
    display:flex;
    gap:5px;

    margin-bottom:12px;
}

.re-stream-tabs button{
    min-width:75px;
    height:34px;

    padding:0 12px;

    border:1px solid var(--border);
    border-radius:6px;

    background:#151517;
    color:#777;

    font-size:9px;
    font-weight:900;

    cursor:pointer;
}

.re-stream-tabs button.active{
    border-color:var(--primary);
    background:var(--primary);
    color:#000;
}

.re-server-group{
    padding:11px 0;

    display:flex;
    align-items:center;
    gap:15px;

    border-top:1px solid var(--border);
}

.re-server-group[hidden]{
    display:none !important;
}

.re-server-label{
    width:45px;

    color:#777;

    font-size:9px;
    font-weight:900;
}

.re-server-dot{
    width:5px;
    height:5px;

    display:inline-block;

    margin-right:4px;

    border-radius:50%;

    background:#555;
}

.re-server-buttons button.active
.re-server-dot{
    background:#000;
}

@media(max-width:600px){

    .re-server-group{
        align-items:flex-start;
        flex-direction:column;
        gap:7px;
    }

}
/* =========================================
   WATCH V2
========================================= */

.re-watch-container{
    max-width:1600px;
}

.re-watch-error{
    min-height:100vh;
    padding:150px 0;
    text-align:center;
}

.re-watch-error h1{
    margin:8px 0 12px;
    font-size:32px;
}

.re-watch-error p{
    margin-bottom:25px;
    color:#777;
}

.re-watch-breadcrumb strong{
    color:#aaa;
    font-weight:500;
}

.re-watch-counts{
    padding:9px 12px;

    display:flex;
    gap:5px;

    border-bottom:1px solid var(--border);
}

.re-watch-counts span{
    padding:5px 7px;

    border-radius:4px;

    background:#171719;
    color:#aaa;

    font-size:8px;
}

.re-watch-counts b{
    margin-right:3px;
    color:var(--primary);
}

.re-episode-search{
    min-width:0;
    flex:1;

    padding:0 9px;

    display:flex;
    align-items:center;
    gap:7px;

    border:1px solid var(--border);
    border-radius:6px;

    background:#111114;
}

.re-episode-search span{
    color:#666;
}

.re-episode-search input{
    padding:0;
    border:0;
    background:transparent;
}

.re-episode-range{
    padding:10px 13px 5px;

    display:flex;
    justify-content:space-between;

    color:#666;

    font-size:8px;
}

.re-episode-range strong{
    color:#aaa;
    font-size:9px;
}

.re-no-stream-icon{
    width:48px;
    height:48px;

    margin-bottom:12px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:50%;

    background:#151517;
    color:#555;
}

.re-no-stream p{
    max-width:330px;

    margin:6px 0 0;

    color:#555;
    font-size:10px;
    text-align:center;
}

.re-report-button{
    margin-left:auto;
}

.re-episode-navigation{
    min-height:66px;
}

.re-episode-navigation > div{
    padding:0;
    background:transparent;
    border:0;
}

.re-episode-navigation a,
.re-current-episode{
    min-height:62px;

    padding:11px 14px;

    display:flex;
    flex-direction:column;
    justify-content:center;

    border:1px solid var(--border);
    border-radius:7px;

    background:#0c0c0e;
}

.re-episode-navigation small{
    margin-bottom:4px;

    color:#555;
    font-size:7px;

    text-transform:uppercase;
    letter-spacing:.1em;
}

.re-episode-navigation strong{
    color:#ccc;
    font-size:10px;
}

.re-next-slot{
    text-align:right;
}

.re-next-slot a{
    align-items:flex-end;
}

.re-current-episode{
    min-width:135px;
    align-items:center;
    text-align:center;
}

.re-current-episode strong{
    color:var(--primary);
}


/* ANIME INFORMATION */

.re-watch-details{
    margin-top:20px;
    padding:18px;

    border:1px solid var(--border);
    border-radius:9px;

    background:#0b0b0d;
}

.re-watch-details-head{
    display:flex;
    align-items:center;
    gap:15px;
}

.re-watch-details-head img{
    width:60px;
    height:84px;

    border-radius:5px;
    object-fit:cover;
}

.re-watch-details-head h1{
    margin:4px 0;

    font-size:19px;
    letter-spacing:-.03em;
}

.re-watch-details-head p{
    margin:0;

    color:#666;
    font-size:10px;
}

.re-watch-meta{
    margin-top:15px;

    display:grid;
    grid-template-columns:repeat(4,1fr);

    border:1px solid var(--border);
    border-radius:7px;

    overflow:hidden;
}

.re-watch-meta > span{
    padding:11px;

    border-right:1px solid var(--border);
}

.re-watch-meta > span:last-child{
    border-right:0;
}

.re-watch-meta small{
    display:block;

    margin-bottom:4px;

    color:#555;
    font-size:7px;

    text-transform:uppercase;
}

.re-watch-meta strong{
    color:#bbb;
    font-size:9px;
}


/* MOBILE PLAYER FIRST */

@media(max-width:850px){

    .re-watch-breadcrumb{
        overflow:hidden;

        white-space:nowrap;
        text-overflow:ellipsis;
    }

    .re-watch-anime{
        margin-top:5px;
    }

    .re-watch-details{
        margin-right:11px;
        margin-left:11px;
    }

    .re-report-button{
        margin-left:0;
    }
}

@media(max-width:520px){

    .re-player-shell{
        aspect-ratio:16/9;
    }

    .re-player-toolbar{
        padding:5px 8px;
    }

    .re-player-toolbar button{
        min-height:32px;
        padding:0 7px;
    }

    .re-current-episode{
        display:none !important;
    }

    .re-prev-slot,
    .re-next-slot{
        width:100%;
    }

    .re-episode-navigation a{
        min-height:52px;
    }

    .re-watch-meta{
        grid-template-columns:1fr 1fr;
    }

    .re-watch-meta > span{
        border-bottom:1px solid var(--border);
    }

    .re-watch-details-head h1{
        font-size:16px;
    }
}