.custom-carousel-wrapper {
    position: relative;
    width: 100%;
}

.custom-carousel {
    position: relative;
    z-index: 1;
    display: flex;
    overflow-x: auto;
    gap: 14px;
    padding: 4px 0 8px;
    scrollbar-width: none;
    cursor: grab;
    touch-action: pan-x pan-y;
}

.custom-carousel.is-dragging,
.custom-carousel.is-dragging * {
    cursor: grabbing !important;
    user-select: none !important;
}

.custom-carousel img,
.custom-carousel a {
    -webkit-user-drag: none;
    user-select: none;
}

.custom-carousel::-webkit-scrollbar {
    display: none;
}

.custom-carousel-wrapper.has-overflow .custom-carousel {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 42px, #000 calc(100% - 42px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 42px, #000 calc(100% - 42px), transparent);
}

.custom-carousel .carousel-item {
    flex: 0 0 calc(25% - 12px);
    text-align: center;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    background-color: #161616;
    transform: none;
}

.custom-carousel .carousel-item,
.custom-carousel .carousel-item:hover {
    transform: none !important;
}

.custom-carousel .carousel-item-link {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent !important;
    color: inherit !important;
    text-decoration: none !important;
    box-shadow: none !important;
    cursor: pointer;
    font: inherit;
}

.custom-carousel-wrapper .hourglass-container.is-wait {
    pointer-events: none;
}

.adm-wait-dialog {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(5, 4, 11, 0.62);
}

.adm-wait-dialog[hidden] {
    display: none;
}

.adm-wait-card {
    width: min(420px, 100%);
    padding: 22px 22px 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: #181b22;
    color: #f4f5f7;
    box-shadow: 0 24px 65px rgba(0, 0, 0, 0.42);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-align: left;
}

.adm-wait-card strong {
    display: block;
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 650;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.adm-wait-card p {
    margin: 0;
    color: #c5c8d0;
    font-size: 14px;
    line-height: 1.5;
}

.adm-wait-card button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    margin-top: 16px;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    background: #3ea6ff;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.custom-carousel .carousel-item img,
.custom-carousel .carousel-item .carousel-img {
    max-width: 100%;
    height: auto;
    display: block;
    transform: none !important;
    transition: filter 0.15s ease, opacity 0.15s ease;
}

.custom-carousel .carousel-item:hover img,
.custom-carousel .carousel-item:hover .carousel-img {
    filter: brightness(1.06);
    transform: none !important;
}

.custom-carousel .carousel-item:not(.grayscale):active img,
.custom-carousel .carousel-item:not(.grayscale):active .carousel-img {
    filter: brightness(0.92);
    transform: none !important;
}

.custom-carousel .carousel-item.grayscale img,
.custom-carousel .carousel-item.grayscale .carousel-img,
.custom-carousel .carousel-item.grayscale:hover img,
.custom-carousel .carousel-item.grayscale:hover .carousel-img {
    filter: grayscale(1) brightness(0.9);
    transform: none !important;
}

.custom-carousel-wrapper.size-square .carousel-item { aspect-ratio: 1 / 1; }
.custom-carousel-wrapper.size-square .carousel-item img,
.custom-carousel-wrapper.size-square .carousel-item .carousel-img { width: 100%; height: 100%; object-fit: cover; }

.custom-carousel-wrapper.size-horizontal .carousel-item { aspect-ratio: 16 / 9; }
.custom-carousel-wrapper.size-horizontal .carousel-item img,
.custom-carousel-wrapper.size-horizontal .carousel-item .carousel-img { width: 100%; height: 100%; object-fit: cover; }

.custom-carousel-wrapper.size-original .carousel-item { aspect-ratio: auto; }
.custom-carousel-wrapper.size-original .carousel-item img,
.custom-carousel-wrapper.size-original .carousel-item .carousel-img { width: 100%; height: auto; object-fit: contain; }

.custom-carousel-wrapper button.arrow {
    display: none;
    position: absolute;
    top: calc(50% - 18px);
    z-index: 4;
    width: 36px !important;
    height: 36px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: rgba(17, 24, 39, 0.72) !important;
    background-color: rgba(17, 24, 39, 0.72) !important;
    background-image: none !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    box-shadow: none !important;
    opacity: 1 !important;
    cursor: pointer;
    transform: none;
    touch-action: manipulation;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.15s ease, color 0.15s ease;
    align-items: center;
    justify-content: center;
}

.custom-carousel-wrapper button.arrow::before {
    content: "";
    position: absolute;
    inset: -8px;
}

.custom-carousel-wrapper.has-overflow button.arrow {
    display: flex !important;
}

.custom-carousel-wrapper button.arrow.left { left: 10px; }
.custom-carousel-wrapper button.arrow.right { right: 10px; }

.custom-carousel-wrapper button.arrow svg {
    width: 18px !important;
    height: 18px !important;
    display: block;
    stroke: #fff !important;
    fill: none !important;
}

.custom-carousel-wrapper button.arrow:active {
    background: #fff !important;
    background-color: #fff !important;
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

.custom-carousel-wrapper button.arrow:active svg {
    stroke: #111827 !important;
}

@media (hover: hover) and (pointer: fine) {
    .custom-carousel-wrapper button.arrow:hover,
    .custom-carousel-wrapper button.arrow:focus {
        background: #fff !important;
        background-color: #fff !important;
        color: #111827 !important;
        -webkit-text-fill-color: #111827 !important;
        border: 0 !important;
        outline: none !important;
        box-shadow: none !important;
    }

    .custom-carousel-wrapper button.arrow:hover svg,
    .custom-carousel-wrapper button.arrow:focus svg {
        stroke: #111827 !important;
    }
}

.custom-carousel-wrapper button.arrow:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, #3EA6FF 35%, transparent) !important;
}

.custom-carousel-wrapper .time-left-container,
.custom-carousel-wrapper .hourglass-container {
    position: absolute;
    z-index: 2;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(17, 24, 39, 0.78) !important;
    background-color: rgba(17, 24, 39, 0.78) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    opacity: 1 !important;
}

.custom-carousel-wrapper .hourglass-container {
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    padding: 0 !important;
}

.custom-carousel-wrapper .hourglass-container.is-wait {
    width: auto;
    height: 28px;
    gap: 6px;
    padding: 0 10px 0 8px !important;
}

.custom-carousel-wrapper .hourglass-container.is-wait .time-left {
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    letter-spacing: 0.01em !important;
    white-space: nowrap;
}

.custom-carousel-wrapper .lock-icon,
.custom-carousel-wrapper .hourglass-icon {
    position: static !important;
    top: auto !important;
    right: auto !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    color: #fff !important;
    border-radius: 0 !important;
    font-size: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-carousel-wrapper .hourglass-container svg {
    width: 14px !important;
    height: 14px !important;
    stroke: #fff !important;
    fill: none !important;
}

@media (max-width: 1280px) {
    .custom-carousel .carousel-item { flex: 0 0 calc(33.333% - 10px); }
}

@media (max-width: 1024px) {
    .custom-carousel .carousel-item { flex: 0 0 calc(50% - 10px); }
}

@media (max-width: 768px) {
    .custom-carousel .carousel-item { flex: 0 0 calc(66.666% - 10px); }
}

@media (max-width: 480px) {
    .custom-carousel .carousel-item { flex: 0 0 calc(100% - 10px); }
}

@media (orientation: landscape) and (max-height: 480px) {
    .custom-carousel-wrapper button.arrow { top: calc(45% - 18px); }
}

html.no-js .custom-carousel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    overflow: visible;
    mask-image: none;
    -webkit-mask-image: none;
}

@media (max-width: 600px) {
    html.no-js .custom-carousel { grid-template-columns: 1fr; }
}
