.dbn-slider-widget {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #070707;
}

.dbn-slider-widget * {
    box-sizing: border-box;
}

.dbn-stage {
    position: relative;
    width: 100%;
}

.dbn-layout-left .dbn-stage,
.dbn-layout-right .dbn-stage {
    display: flex;
    align-items: stretch;
    gap: 18px;
}

.dbn-layout-left .dbn-main {
    order: 2;
}

.dbn-layout-left .dbn-thumbs {
    order: 1;
}

.dbn-layout-right .dbn-main {
    order: 1;
}

.dbn-layout-right .dbn-thumbs {
    order: 2;
}

.dbn-main {
    position: relative;
    width: 100%;
    height: 620px;
    min-height: 360px;
    overflow: hidden;
    background: #111;
    isolation: isolate;
}

.dbn-layout-left .dbn-main,
.dbn-layout-right .dbn-main {
    flex: 1 1 auto;
    min-width: 0;
}

.dbn-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(1.01);
    transition: opacity .55s ease, visibility .55s ease, transform 1.2s ease;
    background: #111;
    z-index: 1;
}

.dbn-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1);
    z-index: 2;
}

.dbn-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #171717;
}

.dbn-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(0,0,0,.84) 0%, rgba(0,0,0,.58) 38%, rgba(0,0,0,.18) 72%, rgba(0,0,0,.05) 100%);
}

.dbn-content {
    position: absolute;
    left: 60px;
    bottom: 68px;
    z-index: 2;
    width: min(720px, calc(100% - 120px));
    text-align: left;
}

.dbn-category {
    display: inline-flex;
    align-items: center;
    padding: 8px 13px;
    margin-bottom: 15px;
    background: #f5b700;
    color: #111 !important;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    text-decoration: none !important;
}

.dbn-title {
    margin: 0;
    color: #fff;
    font-size: clamp(36px, 5vw, 72px);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.dbn-title a {
    color: #fff;
    text-decoration: none !important;
}

.dbn-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 18px;
    color: rgba(255,255,255,.86);
    font-size: 14px;
    font-weight: 500;
}

.dbn-meta a {
    color: inherit;
    text-decoration: none !important;
}

.dbn-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.92);
    color: #111;
    font-size: 34px;
    line-height: 38px;
    cursor: pointer;
    transition: opacity .2s ease, transform .2s ease;
}

.dbn-arrow:hover {
    opacity: .88;
    transform: translateY(-50%) scale(1.04);
}

.dbn-prev {
    left: 24px;
}

.dbn-next {
    right: 24px;
}

.dbn-thumbs {
    position: relative;
    overflow: hidden;
}

.dbn-layout-bottom .dbn-thumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(1120px, calc(100% - 40px));
    margin: 20px auto 0;
    padding-bottom: 2px;
}

.dbn-layout-left .dbn-thumbs,
.dbn-layout-right .dbn-thumbs {
    flex: 0 0 190px;
    width: 190px;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    min-height: 0;
}

.dbn-thumbs-viewport {
    position: relative;
    min-width: 0;
    overflow: hidden;
}

.dbn-layout-bottom .dbn-thumbs-viewport {
    flex: 1 1 auto;
}

.dbn-layout-left .dbn-thumbs-viewport,
.dbn-layout-right .dbn-thumbs-viewport {
    flex: 1 1 auto;
    min-height: 0;
}

.dbn-thumbs-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.dbn-layout-left .dbn-thumbs-track,
.dbn-layout-right .dbn-thumbs-track {
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    height: 100%;
}

.dbn-thumbs-track::-webkit-scrollbar {
    display: none;
}

.dbn-thumb {
    flex: 0 0 calc((100% - 60px) / 6);
    min-width: 120px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.dbn-layout-left .dbn-thumb,
.dbn-layout-right .dbn-thumb {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
}

.dbn-thumb-inner {
    display: block;
    width: 100%;
    height: 88px;
    overflow: hidden;
    background: #111;
    border: 2px solid transparent;
    opacity: .55;
    transition: opacity .25s ease, border-color .25s ease, transform .25s ease;
}

.dbn-layout-left .dbn-thumb-inner,
.dbn-layout-right .dbn-thumb-inner {
    height: 126px;
}

.dbn-thumb.is-active .dbn-thumb-inner {
    opacity: 1;
    border-color: #f5b700;
    transform: translateY(-2px);
}

.dbn-layout-left .dbn-thumb.is-active .dbn-thumb-inner {
    transform: translateX(3px);
}

.dbn-layout-right .dbn-thumb.is-active .dbn-thumb-inner {
    transform: translateX(-3px);
}

.dbn-thumb-inner img,
.dbn-thumb-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dbn-thumb-placeholder {
    background: #222;
}

.dbn-thumb-nav {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border: 1px solid #f5b700;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 25px;
    line-height: 30px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, opacity .2s ease;
}

.dbn-thumb-nav:hover {
    background: rgba(255,255,255,.16);
}

.dbn-layout-left .dbn-thumb-nav,
.dbn-layout-right .dbn-thumb-nav {
    width: 100%;
    height: 34px;
    border-radius: 0;
}

.dbn-layout-left .dbn-thumb-prev,
.dbn-layout-right .dbn-thumb-prev {
    margin-bottom: 10px;
    transform: rotate(90deg);
}

.dbn-layout-left .dbn-thumb-next,
.dbn-layout-right .dbn-thumb-next {
    margin-top: 10px;
    transform: rotate(90deg);
}

.dbn-empty-message {
    padding: 20px;
    background: #f5f5f5;
    color: #333;
}

@media (max-width: 1200px) {
    .dbn-layout-left .dbn-thumbs,
    .dbn-layout-right .dbn-thumbs {
        flex-basis: 160px;
        width: 160px;
    }

    .dbn-layout-left .dbn-thumb-inner,
    .dbn-layout-right .dbn-thumb-inner {
        height: 112px;
    }
}

@media (max-width: 1024px) {
    .dbn-main {
        height: 540px;
    }

    .dbn-content {
        left: 36px;
        bottom: 54px;
        width: calc(100% - 72px);
    }

    .dbn-layout-bottom .dbn-thumb {
        flex-basis: calc((100% - 36px) / 4);
    }

    .dbn-layout-left .dbn-stage,
    .dbn-layout-right .dbn-stage {
        gap: 14px;
    }

    .dbn-layout-left .dbn-thumbs,
    .dbn-layout-right .dbn-thumbs {
        flex-basis: 140px;
        width: 140px;
    }

    .dbn-layout-left .dbn-thumb-inner,
    .dbn-layout-right .dbn-thumb-inner {
        height: 96px;
    }
}

@media (max-width: 767px) {
    .dbn-layout-left .dbn-stage,
    .dbn-layout-right .dbn-stage {
        display: block;
    }

    .dbn-main {
        height: 420px;
        min-height: 360px;
    }

    .dbn-overlay {
        background: linear-gradient(0deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.46) 58%, rgba(0,0,0,.10) 100%);
    }

    .dbn-content {
        left: 20px;
        bottom: 36px;
        width: calc(100% - 40px);
    }

    .dbn-title {
        font-size: 32px;
        line-height: 1.06;
    }

    .dbn-meta {
        margin-top: 12px;
        gap: 10px;
    }

    .dbn-arrow {
        display: none;
    }

    .dbn-layout-bottom .dbn-thumbs,
    .dbn-layout-left .dbn-thumbs,
    .dbn-layout-right .dbn-thumbs {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        width: calc(100% - 24px);
        height: auto;
        margin: 14px auto 0;
        overflow: hidden;
    }

    .dbn-layout-bottom .dbn-thumbs-viewport,
    .dbn-layout-left .dbn-thumbs-viewport,
    .dbn-layout-right .dbn-thumbs-viewport {
        flex: 1 1 auto;
        height: auto;
        min-height: 0;
    }

    .dbn-layout-bottom .dbn-thumbs-track,
    .dbn-layout-left .dbn-thumbs-track,
    .dbn-layout-right .dbn-thumbs-track {
        flex-direction: row;
        height: auto;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 8px;
    }

    .dbn-layout-bottom .dbn-thumb,
    .dbn-layout-left .dbn-thumb,
    .dbn-layout-right .dbn-thumb {
        flex: 0 0 calc((100% - 16px) / 3);
        width: auto;
        min-width: 92px;
    }

    .dbn-layout-bottom .dbn-thumb-inner,
    .dbn-layout-left .dbn-thumb-inner,
    .dbn-layout-right .dbn-thumb-inner {
        height: 68px;
    }

    .dbn-layout-left .dbn-thumb.is-active .dbn-thumb-inner,
    .dbn-layout-right .dbn-thumb.is-active .dbn-thumb-inner,
    .dbn-thumb.is-active .dbn-thumb-inner {
        transform: translateY(-2px);
    }

    .dbn-layout-left .dbn-thumb-prev,
    .dbn-layout-right .dbn-thumb-prev,
    .dbn-layout-left .dbn-thumb-next,
    .dbn-layout-right .dbn-thumb-next {
        margin: 0;
        transform: none;
    }

    .dbn-thumb-nav {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        line-height: 28px;
    }
}

@media (max-width: 480px) {
    .dbn-main {
        height: 390px;
    }

    .dbn-title {
        font-size: 28px;
    }

    .dbn-layout-bottom .dbn-thumb,
    .dbn-layout-left .dbn-thumb,
    .dbn-layout-right .dbn-thumb {
        flex-basis: calc((100% - 8px) / 2);
    }

    .dbn-layout-bottom .dbn-thumb-inner,
    .dbn-layout-left .dbn-thumb-inner,
    .dbn-layout-right .dbn-thumb-inner {
        height: 62px;
    }
}
