/**
 * AnimeFLV – playlists (My lists tab, playlist page, episode modal and sidebar box).
 * Palette from css.css: primary #01bcf3, accent #ff7e00, borders #eceff1.
 */

.afl-pl-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.afl-pl-empty{margin:15px 0 0;color:#8f9aa5}

/* Round tool buttons */
.afl-pl-tool{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;margin:0 0 0 4px;border:0;border-radius:16px;background-color:#eceff1;color:#546e7a;font-size:13px;line-height:32px;cursor:pointer;transition:background-color .2s,color .2s;vertical-align:middle}
.afl-pl-tool:before{margin:0}
.afl-pl-tool:hover,.afl-pl-tool:focus{background-color:#01bcf3;color:#fff}
.afl-pl-tool--danger:hover,.afl-pl-tool--danger:focus{background-color:#fb3447;color:#fff}
.afl-pl-tool[disabled],.afl-pl-btn[disabled]{opacity:.55;cursor:default}

/* Primary action buttons (css.css .Button base) */
.afl-pl-btn.Button{display:inline-block;width:auto;padding:0 15px;margin:0 6px 6px 0;height:36px;line-height:36px;border:0;border-radius:18px;font-size:12px;color:#fff;cursor:pointer;white-space:nowrap}
.afl-pl-btn.Button:before{margin-right:6px}
.afl-pl-btn.StylC{background-color:#eceff1;color:#37474f}
.afl-pl-btn.StylC:hover{background-color:#cfd8dc}
.afl-pl-btn--danger.StylC:hover{background-color:#fb3447;color:#fff}
.afl-pl-like.is-liked{background-color:#01bcf3;color:#fff}
.afl-pl-like.is-liked:hover{background-color:#00a5d6}

/* BtnNw buttons of this module */
button.BtnNw{border:0;width:auto;text-align:left;cursor:pointer}
.BtnNw.afl-pl-create:before{background-color:#01bcf3;color:#fff}
.BtnNw.afl-pl-create[disabled]{opacity:.55;cursor:default}
.BtnNw.afl-epbtn.afl-pl-addbtn{padding:0;width:40px;height:40px;line-height:40px;text-align:center;font-size:15px;color:#14bbf0;border-radius:20px;cursor:pointer}
.BtnNw.afl-epbtn.afl-pl-addbtn:before{position:static;width:inherit;height:inherit;line-height:inherit;background:none;color:inherit}
.BtnNw.afl-pl-addbtn.is-added{background-color:#01bcf3;color:#fff}
.BtnNw.afl-pl-addbtn.is-added:hover{background-color:#00a5d6;color:#fff}

/* My lists tab */
.afl-pl-tab__top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}
.afl-pl-tab__top .Title{margin:0}
.afl-pl-tab__count{font-size:12px;font-weight:400;color:#8f9aa5;letter-spacing:0}
.afl-pl-tab__top .BtnNw{margin:0;box-shadow:0 0 0 1px #eceff1}
.afl-pl-explainer{margin:0 0 15px;font-size:13px;line-height:1.5}
.afl-pl-explainer strong{display:block;margin-bottom:3px}
.afl-pl-rows{list-style:none;margin:0;padding:0}
.afl-pl-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:12px 0;border-top:1px solid #eceff1}
.afl-pl-row:first-child{border-top:0}
.afl-pl-row__thumb{flex:0 0 96px;width:96px;height:54px;border-radius:5px;overflow:hidden;background-color:#eceff1}
.afl-pl-row__thumb img{display:block;width:100%;height:100%;object-fit:cover}
.afl-pl-row__body{flex:1 1 160px;min-width:0}
.afl-pl-row__title{display:block;font-weight:700;color:#37474f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.afl-pl-row__title i{color:#8f9aa5;margin-right:2px}
.afl-pl-row__title i.fa-lock{color:#ff7e00}
.afl-pl-row__title:hover{color:#01bcf3}
.afl-pl-row__meta{display:block;font-size:12px;color:#8f9aa5;margin-top:2px}
.afl-pl-row__actions{display:flex;flex:0 0 auto}
.afl-pl-row>.afl-pl-form{flex:1 0 100%}
.afl-pl-more{margin-top:15px}

/* Form */
.afl-pl-form{background-color:#f5f7f8;border-radius:5px;padding:15px;margin:0 0 15px}
.afl-pl-form .form-group label{font-weight:700}
.afl-pl-form textarea.form-control{resize:vertical;min-height:70px}
.afl-pl-form__vis{display:flex;flex-wrap:wrap;gap:6px 20px;margin:0 0 10px}
.afl-pl-radio{display:inline-flex;align-items:center;gap:6px;font-weight:400;margin:0;cursor:pointer}
.afl-pl-radio input{margin:0}
.afl-pl-radio i{color:#8f9aa5}
.afl-pl-form__error{margin:0 0 10px;font-size:13px}
.afl-pl-form__buttons .btn{margin:0 6px 0 0}

/* Playlist page */
.afl-pl-owner{display:flex;align-items:center;gap:15px}
.afl-pl-owner__avatar{flex:0 0 64px}
.afl-pl-owner__avatar img{display:block;width:64px;height:64px;border-radius:50%;object-fit:cover;background-color:#eceff1}
.afl-pl-owner__info{min-width:0}
.afl-pl-owner__label{display:block;font-size:11px;text-transform:uppercase;color:#8f9aa5}
.afl-pl-owner__name{display:block;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.afl-pl-owner__link.Button{display:inline-block;width:auto;margin-top:6px;padding:0 12px;line-height:28px;border-radius:14px;background-color:#eceff1;color:#37474f}
.afl-pl-owner__link.Button:hover{background-color:#01bcf3;color:#fff}
.afl-pl-stats__list{list-style:none;margin:0;padding:0}
.afl-pl-stats__list li{padding:6px 0;border-bottom:1px solid #eceff1;font-size:13px}
.afl-pl-stats__list li:last-child{border-bottom:0}
.afl-pl-stats__list li:before{width:20px;color:#01bcf3;text-align:center;margin-right:8px}
.afl-pl-head{display:flex;gap:20px;align-items:flex-start;margin-bottom:15px}
.afl-pl-head__thumb{flex:0 0 240px;width:240px;margin:0;border-radius:5px;overflow:hidden;background-color:#eceff1;aspect-ratio:16/9}
.afl-pl-head__thumb img{display:block;width:100%;height:100%;object-fit:cover}
.afl-pl-head__body{flex:1;min-width:0}
.afl-pl-head__title{color:#37474f;font-size:22px;font-weight:700;line-height:1.3;margin:0 0 4px;letter-spacing:-.5px;word-wrap:break-word}
.afl-pl-head__title i{color:#ff7e00;font-size:18px}
.afl-pl-head__by{font-size:12px;color:#8f9aa5;margin:0 0 8px}
.afl-pl-head__desc{margin:0 0 12px;white-space:pre-line;word-wrap:break-word}
.afl-pl-actions{display:flex;flex-wrap:wrap;align-items:center}
.afl-pl-items{list-style:none;margin:0;padding:0}
.afl-pl-item{display:flex;align-items:center;gap:10px;padding:8px;margin:0 0 8px;border:1px solid #eceff1;border-radius:5px;background-color:#fff;transition:box-shadow .2s}
.afl-pl-item:hover{box-shadow:0 3px 10px rgba(0,0,0,.08)}
.afl-pl-item.is-dragging,.afl-pl-item.sortable-dragging{opacity:.6;box-shadow:0 5px 20px rgba(0,0,0,.2)}
.afl-pl-item__pos{flex:0 0 24px;text-align:center;font-weight:700;color:#8f9aa5}
.afl-pl-item__thumb{flex:0 0 120px;width:120px;height:68px;border-radius:5px;overflow:hidden;background-color:#eceff1}
.afl-pl-item__thumb img{display:block;width:100%;height:100%;object-fit:cover}
.afl-pl-item__info{flex:1;min-width:0}
.afl-pl-item__title{display:block;font-weight:700;color:#37474f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.afl-pl-item__title:hover{color:#01bcf3}
.afl-pl-item__ep{display:block;font-size:12px;color:#8f9aa5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.afl-pl-item__tools{display:flex;align-items:center;flex:0 0 auto}
.afl-pl-handle{display:none;width:28px;text-align:center;color:#b0bec5;cursor:grab;touch-action:none}
.afl-pl-handle:before{margin:0}
.afl-pl-items.has-sortable .afl-pl-handle{display:inline-block}

/* Profile box and cards */
.afl-pl-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:15px;list-style:none;margin:0;padding:0}
.afl-pl-card{min-width:0}
.afl-pl-card__thumb{position:relative;display:block;border-radius:5px;overflow:hidden;background-color:#eceff1;aspect-ratio:16/9}
.afl-pl-card__thumb img{display:block;width:100%;height:100%;object-fit:cover;transition:opacity .2s}
.afl-pl-card__thumb:hover img{opacity:.8}
.afl-pl-card__count{position:absolute;right:0;top:0;bottom:0;width:38%;display:flex;align-items:center;justify-content:center;background-color:rgba(0,0,0,.65);color:#fff;font-weight:700}
.afl-pl-card__lock{position:absolute;left:6px;top:6px;width:24px;height:24px;line-height:24px;text-align:center;border-radius:12px;background-color:#ff7e00;color:#fff;font-size:12px}
.afl-pl-card__lock:before{margin:0}
.afl-pl-card__title{display:block;margin-top:6px;font-weight:700;color:#37474f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.afl-pl-card__title:hover{color:#01bcf3}
.afl-pl-card__meta{display:block;font-size:12px;color:#8f9aa5}
.afl-pl-profile .Top .Title small{font-size:13px;font-weight:400;color:#8f9aa5;letter-spacing:0}
.afl-pl-profile__manage.Button{width:auto;padding:0 12px;line-height:30px;border-radius:15px;background-color:#eceff1;color:#37474f}

/* Episode sidebar box */
.afl-pl-side{background-color:#fff;border-radius:5px;box-shadow:0 0 30px 0 rgba(0,0,0,.1);margin-bottom:20px;overflow:hidden}
.afl-pl-side__head{padding:12px 15px;border-bottom:1px solid #eceff1}
.afl-pl-side__title{display:block;font-weight:700;font-size:15px;color:#37474f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.afl-pl-side__title:before{color:#01bcf3}
.afl-pl-side__by{display:block;font-size:12px;color:#8f9aa5;margin-top:2px}
.afl-pl-side__by strong{color:#01bcf3}
.afl-pl-side__list{list-style:none;margin:0;padding:0;max-height:360px;overflow-y:auto}
.afl-pl-side__item a{display:flex;align-items:center;gap:8px;padding:6px 15px 6px 10px;color:#37474f;border-left:3px solid transparent}
.afl-pl-side__item a:hover{background-color:#f5f7f8}
.afl-pl-side__item.is-current a{background-color:#e1f5fe;border-left-color:#01bcf3}
.afl-pl-side__pos{flex:0 0 18px;text-align:center;font-size:11px;font-weight:700;color:#8f9aa5}
.afl-pl-side__item.is-current .afl-pl-side__pos{color:#01bcf3}
.afl-pl-side__pos i:before{margin:0}
.afl-pl-side__item img{flex:0 0 72px;width:72px;height:40px;object-fit:cover;border-radius:3px;background-color:#eceff1}
.afl-pl-side__txt{min-width:0;line-height:1.3}
.afl-pl-side__txt strong,.afl-pl-side__txt em{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}
.afl-pl-side__txt em{font-style:normal;color:#8f9aa5;font-size:11px}
.afl-pl-side__next{display:block!important;width:100%;box-sizing:border-box;margin:0;padding:10px 15px;background-color:#ff7e00;color:#fff;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.afl-pl-side__next span{font-weight:700;text-transform:uppercase}
.afl-pl-side__next:hover{background-color:#e67100;color:#fff}

/* Modal */
.afl-pl-modal .Bod{padding-bottom:20px}
.afl-pl-modal__list{list-style:none;margin:0 0 10px;padding:0;max-height:300px;overflow-y:auto}
.afl-pl-check{display:flex;align-items:center;gap:8px;margin:0;padding:10px 0;border-bottom:1px solid #eceff1;font-weight:400;cursor:pointer}
.afl-pl-check input{margin:0;flex:0 0 auto}
.afl-pl-check i{color:#8f9aa5}
.afl-pl-check i.fa-lock{color:#ff7e00}
.afl-pl-check__title{flex:1;min-width:0;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.afl-pl-check small{flex:0 0 auto;color:#8f9aa5}
.afl-pl-modal__status{color:#8f9aa5;margin:10px 0}
.afl-pl-modal__create{padding-top:10px}
.afl-pl-modal__label{display:block;font-weight:700;margin-bottom:6px}
.afl-pl-modal__row{display:flex;gap:8px;margin-bottom:8px}
.afl-pl-modal__row .form-control{flex:1;min-width:0}
.afl-pl-modal__row .btn{flex:0 0 auto;white-space:nowrap}

/* Auto-next countdown */
.afl-pl-autonext{position:fixed;right:20px;bottom:20px;z-index:10000;width:320px;max-width:calc(100% - 32px);padding:15px;border-radius:5px;background-color:#263238;color:#fff;box-shadow:0 5px 30px rgba(0,0,0,.4)}
.afl-pl-autonext strong{display:block;text-transform:uppercase;font-size:12px;color:#01bcf3}
.afl-pl-autonext__title{display:block;margin:4px 0;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.afl-pl-autonext__time{display:block;font-size:12px;color:#b0bec5;margin-bottom:8px}

@media all and (max-width:768px){
.afl-pl-head{flex-direction:column;gap:12px}
.afl-pl-head__thumb{width:100%;flex-basis:auto}
.afl-pl-head__title{font-size:19px}
}
@media all and (max-width:480px){
.afl-pl-row{gap:10px}
.afl-pl-row__thumb{flex-basis:72px;width:72px;height:40px}
.afl-pl-row__actions{flex:1 0 100%;justify-content:flex-end}
.afl-pl-item{flex-wrap:wrap;gap:8px}
.afl-pl-item__pos{flex-basis:18px}
.afl-pl-item__thumb{flex-basis:80px;width:80px;height:45px}
.afl-pl-item__info{flex:1 1 120px}
.afl-pl-items.is-owner .afl-pl-item__tools{flex:1 0 100%;justify-content:flex-end}
.afl-pl-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.afl-pl-btn.Button{padding:0 12px}
.afl-pl-modal__row{flex-wrap:wrap}
.afl-pl-modal__row .btn{flex:1 0 100%}
}
