
.tslv-admin{max-width:1320px;margin:28px auto;padding:0 18px;color:#252a31}
.tslv-gallery{max-width:1320px;margin:0 auto;padding:0 18px;color:#252a31}
.tslv-tabs{display:inline-flex;gap:4px;padding:5px;background:#eef1f5;border-radius:10px;margin-bottom:24px}.tslv-tabs a{padding:10px 16px;border-radius:8px;text-decoration:none;color:#596574;font-weight:800}.tslv-tabs .is-active{background:#1f252d;color:#fff}
.tslv-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.tslv-head span,.tslv-hero span{display:block;color:#ff2c54;font-size:10px;font-weight:900;letter-spacing:.14em}.tslv-head h1,.tslv-hero h1{margin:5px 0;font-size:30px}.tslv-head p,.tslv-hero p{margin:0;color:#7a8491}
.tslv-admin .btn{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 12px;border:1px solid #ccd4de;border-radius:6px;background:#fff;text-decoration:none!important;color:#252a31!important;font-weight:700}.tslv-admin .btn-green{background:#28a745;border-color:#28a745;color:#fff!important}.tslv-admin .danger{border-color:#e9a6b0;color:#d9273f!important}
.tslv-form,.tslv-empty{background:#fff;border:1px solid #dfe4eb;border-radius:14px;padding:20px}.tslv-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:18px}.tslv-form label span{display:block;font-size:11px;font-weight:800;margin-bottom:6px}.tslv-form input,.tslv-form select{width:100%;min-height:42px;border:1px solid #ccd4de;border-radius:8px;padding:8px 10px;box-sizing:border-box}.tslv-form .wide{grid-column:1/-1}
.tslv-admin-list{display:flex;flex-direction:column;gap:8px}.tslv-admin-row{display:grid;grid-template-columns:130px 1fr auto auto;gap:16px;align-items:center;padding:10px;border:1px solid #dfe4eb;border-radius:12px;background:#fff}.tslv-admin-row img{width:130px;height:74px;object-fit:cover;border-radius:8px}.tslv-admin-row .main{display:flex;flex-direction:column;gap:4px}.tslv-admin-row .main span{font-size:11px;color:#7d8795}.tslv-admin-row .actions{display:flex;gap:6px}.tslv-admin .badge{padding:5px 9px;border-radius:999px;background:#eef1f5;font-size:9px;font-weight:900}.tslv-admin .badge.live{background:#e7f6ed;color:#248254}

.tslv-hero{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:28px 30px;margin-bottom:20px;background:#1f252d;border-left:5px solid #ff2c54;border-radius:14px;color:#fff}.tslv-hero h1{color:#fff}.tslv-hero p{color:#bbc3cd}.tslv-hero .mark{text-align:right;color:#ff5d79;font-weight:900;font-size:24px;line-height:.9}
.tslv-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.tslv-card{overflow:hidden;border:1px solid #dfe4eb;border-radius:12px;background:#fff;box-shadow:0 8px 26px rgba(17,24,39,.04)}.tslv-card .thumb{position:relative;width:100%;aspect-ratio:16/9;padding:0;border:0;background:#111;cursor:pointer;overflow:hidden}.tslv-card .thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:.25s}.tslv-card:hover .thumb img{transform:scale(1.025)}.tslv-gallery .play,.tslv-front .play,.tslv-featured-card .play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;width:50px;height:50px;border-radius:50%;background:#ff1744;color:#fff}.tslv-card .body{padding:14px 15px}.tslv-card small{color:#ff2c54;font-size:9px;font-weight:900;letter-spacing:.1em}.tslv-card h3{margin:6px 0;font-size:16px}.tslv-card time{font-size:11px;color:#8b95a2}
.tslv-pages{display:flex;justify-content:center;gap:6px;margin:28px 0}.tslv-pages a{display:flex;width:36px;height:36px;align-items:center;justify-content:center;border:1px solid #dfe4eb;border-radius:8px;text-decoration:none}.tslv-pages .active{background:#ff2c54;color:#fff;border-color:#ff2c54}
.tslv-modal{position:fixed;inset:0;z-index:999999;display:none;align-items:center;justify-content:center;background:rgba(7,11,16,.88);padding:24px}.tslv-modal.open{display:flex}.tslv-modal .inner{width:min(1100px,72vw);height:68vh;background:#000}.tslv-modal iframe{width:100%;height:100%;border:0}.tslv-modal .close{position:absolute;top:18px;right:22px;background:none;border:0;color:#fff;font-size:34px;cursor:pointer}.tslv-lock{overflow:hidden}

.tslv-front{font-family:inherit}.tslv-front-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.tslv-front-head h2{margin:0;font-size:24px}.tslv-front-head a{color:#ff2c54;text-decoration:none;font-size:11px;font-weight:900}.tslv-front-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:18px}.tslv-front-item{position:relative;grid-column:span 2;aspect-ratio:16/9;overflow:hidden;border-radius:7px;background:#111;cursor:pointer}.tslv-front-item:nth-child(1),.tslv-front-item:nth-child(2){grid-column:span 3}.tslv-front-item img{width:100%;height:100%;object-fit:cover;display:block}.tslv-front-meta{position:absolute;left:12px;right:12px;bottom:10px;display:flex;justify-content:space-between;gap:10px;color:#fff;text-shadow:0 2px 6px #000}.tslv-front-meta strong{font-size:13px}.tslv-front-meta time{font-size:10px;white-space:nowrap}
@media(max-width:900px){.tslv-gallery-grid{grid-template-columns:repeat(2,1fr)}.tslv-front-grid{grid-template-columns:repeat(2,1fr)}.tslv-front-item,.tslv-front-item:nth-child(1),.tslv-front-item:nth-child(2){grid-column:span 1}.tslv-admin-row{grid-template-columns:100px 1fr}.tslv-admin-row img{width:100px;height:60px}.tslv-admin-row .actions,.tslv-admin .badge{grid-column:2}}
@media(max-width:620px){.tslv-form-grid,.tslv-gallery-grid,.tslv-front-grid{grid-template-columns:1fr}.tslv-modal .inner{width:96vw;height:55vw}.tslv-hero .mark{display:none}}

/* v0.1.3 frontend fixes */
.tslv-hero h1{
    color:#ffffff !important;
    opacity:1 !important;
}
.tslv-hero span{
    color:#ff5d79 !important;
}

/* v0.1.4 menu + hero design fix */
.tslv-gallery .tslv-hero h1,
.tslv-gallery .tslv-hero h1 *,
.tslv-hero > div > h1 {
    color:#ffffff !important;
    opacity:1 !important;
    text-shadow:none !important;
}
.tslv-hero .mark{
    display:none !important;
}

/* v0.2.0 category layout */
.tslv-category-section{
    margin-top:34px;
}

.tslv-section-banner{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:88px;
    margin-bottom:18px;
    padding:18px 24px;
    border-left:5px solid #ff2c54;
    border-radius:12px;
    background:#1f252d;
    box-sizing:border-box;
}

.tslv-section-banner h2{
    margin:0 !important;
    color:#ffffff !important;
    font-size:27px;
    line-height:1;
    font-weight:900;
    letter-spacing:.08em;
    text-align:center;
}

.tslv-category-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:18px;
}

.tslv-category-empty{
    padding:24px;
    border:1px dashed #d7dde5;
    border-radius:10px;
    color:#8a94a1;
    text-align:center;
    background:#fafbfc;
}

.tslv-last-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:16px;
}

.tslv-card--last .body h3{
    font-size:14px;
}

.tslv-card--last .play{
    width:44px;
    height:44px;
}

@media(max-width:1100px){
    .tslv-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
    .tslv-last-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
}

@media(max-width:800px){
    .tslv-last-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}

@media(max-width:620px){
    .tslv-category-grid,
    .tslv-last-grid{
        grid-template-columns:1fr;
    }

    .tslv-section-banner{
        min-height:72px;
    }

    .tslv-section-banner h2{
        font-size:22px;
    }
}

/* v0.2.1 category administration + ordering */
.tslv-category-admin-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:14px;
}

.tslv-category-admin-card{
    display:flex;
    flex-direction:column;
    min-height:160px;
    padding:18px;
    border:1px solid #dfe4eb;
    border-radius:12px;
    background:#fff;
    color:#252a31 !important;
    text-decoration:none !important;
    box-shadow:0 8px 24px rgba(17,24,39,.035);
}

.tslv-category-admin-card small{
    color:#ff2c54;
    font-size:9px;
    font-weight:900;
    letter-spacing:.11em;
}

.tslv-category-admin-card strong{
    margin:8px 0 4px;
    font-size:18px;
}

.tslv-category-admin-card span{
    color:#808a97;
    font-size:12px;
}

.tslv-category-admin-card b{
    margin-top:auto;
    color:#ff2c54;
    font-size:10px;
}

.tslv-order-list{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.tslv-order-row{
    display:grid;
    grid-template-columns:42px 120px 1fr 110px auto;
    align-items:center;
    gap:14px;
    padding:10px 12px;
    border:1px solid #dfe4eb;
    border-radius:11px;
    background:#fff;
    transition:opacity .15s ease, transform .15s ease, border-color .15s ease;
}

.tslv-order-row.is-dragging{
    opacity:.55;
    border-color:#ff2c54;
}

.tslv-drag-handle{
    display:flex;
    align-items:center;
    justify-content:center;
    align-self:stretch;
    border-radius:8px;
    background:#f1f3f6;
    color:#697482;
    cursor:grab;
    font-size:22px;
    font-weight:900;
    user-select:none;
}

.tslv-drag-handle:active{
    cursor:grabbing;
}

.tslv-order-row img{
    width:120px;
    height:68px;
    object-fit:cover;
    border-radius:7px;
}

.tslv-order-main{
    display:flex;
    flex-direction:column;
    gap:5px;
}

.tslv-order-main strong{
    font-size:14px;
}

.tslv-order-main span{
    color:#8a94a1;
    font-size:11px;
}

.tslv-order-number span{
    display:block;
    margin-bottom:4px;
    color:#8a94a1;
    font-size:9px;
    font-weight:900;
    letter-spacing:.08em;
}

.tslv-order-number input{
    width:90px;
    min-height:36px;
    padding:4px 8px;
    border:1px solid #ccd4de;
    border-radius:7px;
}

.tslv-order-actions{
    margin-top:16px;
}

@media(max-width:1050px){
    .tslv-category-admin-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .tslv-order-row{
        grid-template-columns:36px 90px 1fr 90px;
    }

    .tslv-order-row img{
        width:90px;
        height:54px;
    }

    .tslv-order-row > .btn{
        grid-column:3 / -1;
        justify-self:start;
    }
}

@media(max-width:650px){
    .tslv-category-admin-grid{
        grid-template-columns:1fr;
    }

    .tslv-order-row{
        grid-template-columns:34px 1fr;
    }

    .tslv-order-row img{
        width:100%;
        height:auto;
        aspect-ratio:16/9;
    }

    .tslv-order-main,
    .tslv-order-number,
    .tslv-order-row > .btn{
        grid-column:2;
    }
}

/* v0.2.2 - frontpage heading aligned to LAST NEWS */
.tslv-front-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    margin:0 0 14px;
}
.tslv-front-head h2{
    display:flex;
    align-items:center;
    gap:10px;
    margin:0 !important;
    color:#23272d !important;
    font-size:22px !important;
    line-height:1;
    font-weight:800;
    text-transform:uppercase;
}
.tslv-front-head h2::before,
.tslv-front-head h2::after{
    content:"";
    display:block;
    width:9px;
    height:20px;
    flex:0 0 9px;
    background:#ff2c54;
    clip-path:polygon(0 0,22% 0,22% 38%,100% 50%,22% 62%,22% 100%,0 100%);
}
.tslv-front-head h2::after{transform:scaleX(-1);}
.tslv-front-head a{
    display:inline-flex;
    align-items:center;
    gap:9px;
    color:#444 !important;
    font-size:16px !important;
    line-height:1;
    font-weight:400 !important;
    text-decoration:none !important;
}
.tslv-front-head a span{
    font-size:25px;
    line-height:.7;
}
.tslv-front-head a:hover{color:#ff2c54 !important;}

/* v0.2.2 - redesigned video player */
.tslv-modal{
    position:fixed;
    inset:0;
    z-index:999999;
    display:none;
    align-items:center;
    justify-content:center;
    padding:28px;
    background:rgba(8,12,18,.82);
    backdrop-filter:blur(3px);
    box-sizing:border-box;
}
.tslv-modal.open{display:flex;}
.tslv-modal__dialog{
    width:min(1120px,84vw);
    max-height:calc(100vh - 56px);
    overflow:hidden;
    border-left:5px solid #ff2c54;
    border-radius:13px;
    background:#1f252d;
    box-shadow:0 28px 80px rgba(0,0,0,.52);
}
.tslv-modal__bar{
    min-height:58px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding:10px 14px 10px 18px;
    border-bottom:1px solid rgba(255,255,255,.08);
    background:#1f252d;
    box-sizing:border-box;
}
.tslv-modal__heading{
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:3px;
}
.tslv-modal__heading small{
    color:#ff5d79;
    font-size:8px;
    font-weight:900;
    line-height:1;
    letter-spacing:.14em;
}
.tslv-modal__heading strong{
    display:block;
    overflow:hidden;
    color:#fff !important;
    font-size:14px;
    font-weight:800;
    line-height:1.25;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.tslv-modal .close{
    position:static !important;
    width:38px;
    height:38px;
    flex:0 0 38px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0;
    border:1px solid rgba(255,255,255,.16) !important;
    border-radius:9px;
    background:#2b323c !important;
    color:#fff !important;
    font-size:24px !important;
    line-height:1 !important;
    cursor:pointer;
}
.tslv-modal .close:hover{
    border-color:#ff2c54 !important;
    background:#ff2c54 !important;
}
.tslv-modal .inner{
    width:100% !important;
    height:auto !important;
    aspect-ratio:16 / 9;
    max-height:calc(100vh - 114px);
    background:#000;
}
.tslv-modal iframe{
    display:block;
    width:100% !important;
    height:100% !important;
    border:0;
}
.tslv-lock{overflow:hidden;}

@media(max-width:900px){
    .tslv-modal{padding:18px;}
    .tslv-modal__dialog{width:min(94vw,1000px);}
    .tslv-front-head a{font-size:14px !important;}
}
@media(max-width:620px){
    .tslv-modal{padding:10px;}
    .tslv-modal__dialog{width:96vw;border-left-width:4px;}
    .tslv-modal__bar{min-height:52px;padding-left:12px;}
    .tslv-modal__heading strong{max-width:70vw;font-size:12px;}
    .tslv-modal .inner{
        width:100% !important;
        height:auto !important;
        aspect-ratio:16 / 9;
    }
    .tslv-front-head h2{font-size:19px !important;}
    .tslv-front-head a{font-size:13px !important;}
}

/* v0.2.3 - larger player + clean page background */
.tslv-modal{
    padding:18px !important;
    background:rgba(8,12,18,.18) !important;
    backdrop-filter:none !important;
}

.tslv-modal__dialog{
    width:min(1450px,92vw) !important;
    max-height:calc(100vh - 36px) !important;
}

.tslv-modal .inner{
    max-height:calc(100vh - 94px) !important;
}

@media(max-width:1100px){
    .tslv-modal__dialog{
        width:95vw !important;
    }
}

@media(max-width:620px){
    .tslv-modal{
        padding:6px !important;
        background:rgba(8,12,18,.12) !important;
    }

    .tslv-modal__dialog{
        width:98vw !important;
        max-height:calc(100vh - 12px) !important;
    }
}

/* v0.2.4 - modal detached to BODY, true viewport sizing */
body > .tslv-modal{
    position:fixed !important;
    inset:0 !important;
    width:100vw !important;
    height:100vh !important;
    max-width:none !important;
    max-height:none !important;
    margin:0 !important;
    padding:14px !important;
    align-items:center !important;
    justify-content:center !important;
    background:transparent !important;
    backdrop-filter:none !important;
    -webkit-backdrop-filter:none !important;
    pointer-events:none;
    box-sizing:border-box !important;
}

body > .tslv-modal.open{
    display:flex !important;
    pointer-events:auto;
}

body > .tslv-modal .tslv-modal__dialog{
    width:min(1560px,94vw) !important;
    max-width:94vw !important;
    max-height:96vh !important;
    margin:0 auto !important;
    box-sizing:border-box !important;
}

body > .tslv-modal .inner{
    width:100% !important;
    height:auto !important;
    aspect-ratio:16 / 9 !important;
    max-height:calc(96vh - 58px) !important;
}

body > .tslv-modal iframe{
    width:100% !important;
    height:100% !important;
}

@media(max-width:900px){
    body > .tslv-modal{
        padding:8px !important;
    }
    body > .tslv-modal .tslv-modal__dialog{
        width:98vw !important;
        max-width:98vw !important;
    }
}

/* v0.2.5 - two latest featured videos */
.tslv-featured-latest{
    margin:22px 0 34px;
}

.tslv-featured-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:20px;
}

.tslv-featured-card{
    overflow:hidden;
    border:1px solid #dfe4eb;
    border-radius:13px;
    background:#fff;
    box-shadow:0 10px 30px rgba(17,24,39,.055);
}

.tslv-featured-card .thumb{
    position:relative;
    display:block;
    width:100%;
    padding:0;
    border:0;
    background:#111;
    cursor:pointer;
    overflow:hidden;
    aspect-ratio:16 / 9;
}

.tslv-featured-card .thumb img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .25s ease;
}

.tslv-featured-card:hover .thumb img{
    transform:scale(1.02);
}

.tslv-featured-card .play{
    width:62px;
    height:62px;
    font-size:21px;
}

.tslv-featured-card .body{
    padding:17px 18px 19px;
}

.tslv-featured-card .body > small{
    display:block;
    margin-bottom:7px;
    color:#ff2c54;
    font-size:9px;
    font-weight:900;
    letter-spacing:.12em;
}

.tslv-featured-card h2{
    margin:0 0 12px !important;
    color:#252a31 !important;
    font-size:20px !important;
    line-height:1.22;
    font-weight:800;
}

.tslv-featured-meta{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    color:#8a94a1;
    font-size:11px;
}

.tslv-featured-meta span{
    color:#ff2c54;
    font-weight:700;
}

@media(max-width:760px){
    .tslv-featured-grid{
        grid-template-columns:1fr;
    }

    .tslv-featured-card h2{
        font-size:17px !important;
    }
}
