.tyr-wrap{
    position:relative;
    overflow:hidden;
    background:#0b0b0b;
    border-radius:14px;
    box-shadow:0 10px 28px rgba(0,0,0,.25);
    perspective:1000px;
}

.tyr-slide{
    position:absolute;
    inset:0;
    opacity:0;
    visibility:hidden;
    z-index:1;
    pointer-events:none;
    transition:opacity .85s ease, transform .85s ease, filter .85s ease;
}

.tyr-slide.active{
    opacity:1;
    visibility:visible;
    z-index:3;
    pointer-events:auto;
}

.tyr-slide.leaving{
    opacity:0;
    visibility:visible;
    z-index:2;
}

.tyr-link{
    display:block;
    width:100%;
    height:100%;
    position:relative;
    color:#fff;
    text-decoration:none;
}

.tyr-slide img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:transform 1.2s ease, filter .85s ease;
}

.tyr-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(to top,rgba(0,0,0,.8),rgba(0,0,0,.1),rgba(0,0,0,.15));
}

.tyr-play{
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
    background:rgba(255,0,0,.92);
    width:54px;
    height:54px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    font-size:22px;
    box-shadow:0 8px 22px rgba(0,0,0,.35);
    text-decoration:none!important;
    font-weight:800;
    letter-spacing:.2px;
    transition:all .25s ease;
}

.tyr-title{
    position:absolute;
    left:14px;
    right:14px;
    bottom:34px;
    font-weight:800;
    font-size:16px;
    line-height:1.22;
    text-shadow:0 2px 8px rgba(0,0,0,.7);
}

.tyr-meta{
    position:absolute;
    left:14px;
    right:14px;
    bottom:12px;
    font-size:12px;
    opacity:.9;
    display:flex;
    gap:10px;
}

.tyr-dots{
    position:absolute;
    right:10px;
    top:10px;
    z-index:5;
    display:flex;
    gap:5px;
}

.tyr-dots button{
    width:8px;
    height:8px;
    border-radius:50%;
    border:0;
    background:rgba(255,255,255,.45);
    padding:0;
    cursor:pointer;
}

.tyr-dots button.active{background:#fff}
.tyr-empty{padding:15px;background:#fff3cd;border:1px solid #ffe69c;border-radius:8px;color:#664d03}

/* EFFECTS */
.tyr-effect-fade .tyr-slide{
    transform:none;
}

.tyr-effect-crossfade .tyr-slide{
    filter:blur(6px);
    transform:scale(1.03);
}

.tyr-effect-crossfade .tyr-slide.active{
    filter:blur(0);
    transform:scale(1);
}

.tyr-effect-crossfade .tyr-slide.leaving{
    filter:blur(6px);
    transform:scale(1.03);
}

.tyr-effect-slide .tyr-slide{
    opacity:1;
    visibility:visible;
    transform:translateX(100%);
}

.tyr-effect-slide .tyr-slide.active{
    transform:translateX(0);
}

.tyr-effect-slide .tyr-slide.leaving{
    transform:translateX(-100%);
}

.tyr-effect-zoom .tyr-slide{
    transform:scale(.9);
}

.tyr-effect-zoom .tyr-slide.active{
    transform:scale(1);
}

.tyr-effect-zoom .tyr-slide.leaving{
    transform:scale(1.12);
}

.tyr-effect-flip .tyr-slide{
    transform:rotateY(90deg);
    transform-origin:center;
    backface-visibility:hidden;
}

.tyr-effect-flip .tyr-slide.active{
    transform:rotateY(0deg);
}

.tyr-effect-flip .tyr-slide.leaving{
    transform:rotateY(-90deg);
}

.tyr-effect-kenburns .tyr-slide.active img{
    animation:tyrKen 9s ease forwards;
}

.tyr-effect-kenburns .tyr-slide.leaving img{
    animation:none;
}

@keyframes tyrKen{
    from{transform:scale(1)}
    to{transform:scale(1.14)}
}

/* WIDGET STYLES */
.tyr-style-mini-card{height:160px!important;border-radius:10px}
.tyr-style-mini-card .tyr-title{font-size:13px;bottom:28px}
.tyr-style-mini-card .tyr-play{width:38px;height:38px;font-size:15px}

.tyr-style-dark-sidebar{border:2px solid rgba(255,255,255,.08);background:#050505}
.tyr-style-dark-sidebar .tyr-title{color:#fff}
.tyr-style-dark-sidebar .tyr-play{background:#e50914}

.tyr-style-image-only .tyr-overlay,
.tyr-style-image-only .tyr-title,
.tyr-style-image-only .tyr-meta,
.tyr-style-image-only .tyr-play{display:none!important}

.tyr-style-overlay-title .tyr-title{background:rgba(0,0,0,.72);left:0;right:0;bottom:0;padding:12px 14px}
.tyr-style-overlay-title .tyr-meta{display:none}

.tyr-style-large-featured{height:420px!important;border-radius:18px}
.tyr-style-large-featured .tyr-title{font-size:26px;bottom:44px}
.tyr-style-large-featured .tyr-meta{bottom:18px;font-size:14px}
.tyr-style-large-featured .tyr-play{width:70px;height:70px;font-size:30px}

/* BUTTON STYLES */
.tyr-btn-size-small .tyr-play{width:auto!important;height:auto!important;min-width:34px;min-height:34px;padding:8px 10px;font-size:13px!important}
.tyr-btn-size-medium .tyr-play{width:auto!important;height:auto!important;min-width:52px;min-height:52px;padding:12px 16px;font-size:16px!important}
.tyr-btn-size-large .tyr-play{width:auto!important;height:auto!important;min-width:70px;min-height:70px;padding:16px 22px;font-size:20px!important}

.tyr-btn-red .tyr-play{background:#e50914!important;color:#fff!important}
.tyr-btn-white .tyr-play{background:#fff!important;color:#111!important}
.tyr-btn-yellow .tyr-play{background:#ffd400!important;color:#111!important}
.tyr-btn-glass .tyr-play{background:rgba(255,255,255,.18)!important;color:#fff!important;border:1px solid rgba(255,255,255,.45);backdrop-filter:blur(8px)}
.tyr-btn-clear .tyr-play{background:transparent!important;color:#fff!important;border:2px solid rgba(255,255,255,.8);box-shadow:none!important}
.tyr-btn-dark .tyr-play{background:#111!important;color:#fff!important;border:1px solid rgba(255,255,255,.15)}

.tyr-btn-shape-circle .tyr-play{border-radius:50%!important}
.tyr-btn-shape-pill .tyr-play{border-radius:999px!important}
.tyr-btn-shape-rounded .tyr-play{border-radius:12px!important}
.tyr-btn-shape-square .tyr-play{border-radius:0!important}

.tyr-btn-pos-center .tyr-play{left:50%!important;top:50%!important;right:auto!important;bottom:auto!important;transform:translate(-50%,-50%)!important}
.tyr-btn-pos-bottom-left .tyr-play{left:14px!important;right:auto!important;top:auto!important;bottom:14px!important;transform:none!important}
.tyr-btn-pos-bottom-right .tyr-play{right:14px!important;left:auto!important;top:auto!important;bottom:14px!important;transform:none!important}
.tyr-btn-pos-under-title .tyr-play{left:14px!important;right:auto!important;top:auto!important;bottom:64px!important;transform:none!important}

.tyr-play:hover{filter:brightness(1.08)}
.tyr-btn-pos-center .tyr-play:hover{transform:translate(-50%,-50%) scale(1.06)!important}
.tyr-btn-pos-bottom-left .tyr-play:hover,
.tyr-btn-pos-bottom-right .tyr-play:hover,
.tyr-btn-pos-under-title .tyr-play:hover{transform:scale(1.06)!important}

@media(max-width:768px){
    .tyr-style-large-featured{height:260px!important}
    .tyr-style-large-featured .tyr-title{font-size:17px}
}

/* Theme Builder variables */
.tyr-wrap{
    background:var(--tyr-bg,#06101f)!important;
    border-radius:var(--tyr-radius,14px)!important;
    box-shadow:var(--tyr-shadow,0 10px 28px rgba(0,0,0,.25))!important;
}

.tyr-title{
    color:var(--tyr-title,#fff)!important;
}

.tyr-btn-red .tyr-play{
    background:var(--tyr-button,#e50914)!important;
}

/* Admin template buttons */
.tyr-template-cards{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin:10px 0 20px;
}

.tyr-template-cards .button{
    min-height:42px;
    font-weight:700;
    border-radius:8px;
}

/* Admin preview frame + visual cards */
.tyr-admin-preview-tools{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin:10px 0 15px;
}

.tyr-admin-preview-tools button{
    border:1px solid #c3c4c7;
    background:#fff;
    padding:7px 12px;
    border-radius:6px;
    cursor:pointer;
    font-weight:700;
}

.tyr-admin-preview-tools button.active{
    background:#06101f;
    color:#fff;
    border-color:#06101f;
}

.tyr-admin-preview-frame{
    background:#f6f7f7;
    border:1px solid #dcdcde;
    border-radius:12px;
    padding:18px;
    max-width:760px;
    transition:all .25s ease;
}

.tyr-admin-preview-inner{
    margin:auto;
    transition:all .25s ease;
}

.tyr-admin-preview-frame.sidebar .tyr-admin-preview-inner{max-width:320px}
.tyr-admin-preview-frame.mobile .tyr-admin-preview-inner{max-width:390px}
.tyr-admin-preview-frame.tablet .tyr-admin-preview-inner{max-width:720px}
.tyr-admin-preview-frame.desktop .tyr-admin-preview-inner{max-width:100%}

.tyr-template-cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
    gap:12px;
    max-width:900px;
}

.tyr-preset-card{
    min-height:96px!important;
    text-align:left!important;
    border-radius:12px!important;
    background:linear-gradient(135deg,#06101f,#172338)!important;
    color:#fff!important;
    border:1px solid rgba(255,255,255,.2)!important;
    padding:12px!important;
    box-shadow:0 6px 18px rgba(0,0,0,.12);
}

.tyr-preset-card:before{
    content:"";
    display:block;
    height:38px;
    border-radius:8px;
    margin-bottom:8px;
    background:linear-gradient(90deg,#e50914,#ffd400);
    opacity:.9;
}

.tyr-preset-card[data-style="image-only"]:before{background:linear-gradient(90deg,#111,#555)}
.tyr-preset-card[data-style="large-featured"]:before{background:linear-gradient(90deg,#06101f,#e50914)}
.tyr-preset-card[data-style="overlay-title"]:before{background:linear-gradient(90deg,#00843d,#ffd400)}
.tyr-preset-card[data-style="news-card"]:before{background:linear-gradient(90deg,#ffffff,#e50914)}

/* Admin preview frame + visual cards */
.tyr-admin-preview-tools{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin:10px 0 15px;
}

.tyr-admin-preview-tools button{
    border:1px solid #c3c4c7;
    background:#fff;
    padding:7px 12px;
    border-radius:6px;
    cursor:pointer;
    font-weight:700;
}

.tyr-admin-preview-tools button.active{
    background:#06101f;
    color:#fff;
    border-color:#06101f;
}

.tyr-admin-preview-frame{
    background:#f6f7f7;
    border:1px solid #dcdcde;
    border-radius:12px;
    padding:18px;
    max-width:760px;
    transition:all .25s ease;
}

.tyr-admin-preview-inner{
    margin:auto;
    transition:all .25s ease;
}

.tyr-admin-preview-frame.sidebar .tyr-admin-preview-inner{max-width:320px}
.tyr-admin-preview-frame.mobile .tyr-admin-preview-inner{max-width:390px}
.tyr-admin-preview-frame.tablet .tyr-admin-preview-inner{max-width:720px}
.tyr-admin-preview-frame.desktop .tyr-admin-preview-inner{max-width:100%}

.tyr-template-cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
    gap:12px;
    max-width:900px;
}

.tyr-preset-card{
    min-height:96px!important;
    text-align:left!important;
    border-radius:12px!important;
    background:linear-gradient(135deg,#06101f,#172338)!important;
    color:#fff!important;
    border:1px solid rgba(255,255,255,.2)!important;
    padding:12px!important;
    box-shadow:0 6px 18px rgba(0,0,0,.12);
}

.tyr-preset-card:before{
    content:"";
    display:block;
    height:38px;
    border-radius:8px;
    margin-bottom:8px;
    background:linear-gradient(90deg,#e50914,#ffd400);
    opacity:.9;
}

.tyr-preset-card[data-style="image-only"]:before{background:linear-gradient(90deg,#111,#555)}
.tyr-preset-card[data-style="large-featured"]:before{background:linear-gradient(90deg,#06101f,#e50914)}
.tyr-preset-card[data-style="overlay-title"]:before{background:linear-gradient(90deg,#00843d,#ffd400)}
.tyr-preset-card[data-style="news-card"]:before{background:linear-gradient(90deg,#ffffff,#e50914)}

/* Widget Builder admin layout */
.tyr-widget-builder-grid{
    display:grid;
    grid-template-columns:minmax(320px,520px) minmax(420px,1fr);
    gap:24px;
    align-items:start;
}

.tyr-widget-settings-card{
    background:#fff;
    border:1px solid #dcdcde;
    border-radius:14px;
    padding:18px;
}

.tyr-widget-preview-card{
    background:#f6f7f7;
    border:1px solid #dcdcde;
    border-radius:14px;
    padding:18px;
    position:sticky;
    top:36px;
}

.tyr-widget-device-buttons{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin:10px 0 15px;
}

.tyr-widget-device-buttons button{
    border:1px solid #c3c4c7;
    background:#fff;
    padding:7px 12px;
    border-radius:6px;
    cursor:pointer;
    font-weight:700;
}

.tyr-widget-device-buttons button.active{
    background:#06101f;
    color:#fff;
    border-color:#06101f;
}

.tyr-widget-preview-frame{
    background:#fff;
    border:1px solid #dcdcde;
    border-radius:12px;
    padding:14px;
    overflow:hidden;
    transition:all .25s ease;
}

.tyr-widget-preview-frame.desktop{max-width:100%}
.tyr-widget-preview-frame.tablet{max-width:720px}
.tyr-widget-preview-frame.mobile{max-width:390px}
.tyr-widget-preview-frame.sidebar{max-width:320px}

.tyr-template-cards{
    display:grid!important;
    grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
    gap:12px;
    max-width:900px;
}

.tyr-preset-card{
    min-height:96px!important;
    text-align:left!important;
    border-radius:12px!important;
    background:linear-gradient(135deg,#06101f,#172338)!important;
    color:#fff!important;
    border:1px solid rgba(255,255,255,.2)!important;
    padding:12px!important;
    box-shadow:0 6px 18px rgba(0,0,0,.12);
}

.tyr-preset-card:before{
    content:"";
    display:block;
    height:38px;
    border-radius:8px;
    margin-bottom:8px;
    background:linear-gradient(90deg,#e50914,#ffd400);
}

.tyr-preset-card[data-style="image-only"]:before{background:linear-gradient(90deg,#111,#555)}
.tyr-preset-card[data-style="large-featured"]:before{background:linear-gradient(90deg,#06101f,#e50914)}
.tyr-preset-card[data-style="overlay-title"]:before{background:linear-gradient(90deg,#00843d,#ffd400)}
.tyr-preset-card[data-style="news-card"]:before{background:linear-gradient(90deg,#ffffff,#e50914)}

@media(max-width:1100px){
    .tyr-widget-builder-grid{
        grid-template-columns:1fr;
    }
    .tyr-widget-preview-card{
        position:relative;
        top:auto;
    }
}
