/**
 * DucorMall homepage — modern professional UI
 */

/* Ad-slot sliders (welcome + shop pages). Flex items default to
   min-width:auto, so a swiper's un-shrinkable slide content can burst out
   of any flex ancestor (several ad slots use display:flex to stretch their
   single child to the row's height) — min-width:0 lets it shrink properly. */
.dm-promo-swiper,
.dm-promo-swiper .swiper-wrapper,
.dm-promo-swiper .swiper-slide {
    min-width: 0;
}

.dm-promo-swiper {
    width: 100% !important;
    max-width: 100%;
}

.dm-home {
    background: var(--dm-bg);
    color: var(--dm-navy-dark);
}

.dm-home .section-box {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.dm-home .dm-section {
    padding: 1.75rem 0;
}

.dm-home .dm-section--surface {
    background: linear-gradient(
        180deg,
        rgba(var(--dm-primary-rgb), 0.1) 0%,
        #e8ebf6 45%,
        #f3f4fa 100%
    );
    border-top: 1px solid rgba(var(--dm-primary-rgb), 0.14);
    border-bottom: 1px solid rgba(var(--dm-primary-rgb), 0.1);
}

.dm-home .dm-section--muted {
    background: var(--dm-bg-band, #e4e7f4);
}

/* Latest Deals — navy-tinted band */
.dm-home .dm-section--deals {
    background: linear-gradient(
        165deg,
        rgba(var(--dm-primary-rgb), 0.14) 0%,
        #e4e7f4 40%,
        rgba(var(--dm-secondary-rgb), 0.06) 100%
    );
    border-top: 4px solid var(--dm-secondary);
    border-bottom: 1px solid rgba(var(--dm-primary-rgb), 0.12);
}

.dm-home .dm-section--deals .dm-section-head__badge {
    color: var(--dm-secondary);
}

.dm-home .dm-section--deals .dm-section-head__badge::before {
    background: var(--dm-secondary);
}

.dm-home .dm-section--deals .dm-section-head__title {
    color: var(--dm-primary-hover);
}

.dm-home .dm-section--deals .dm-section-head__subtitle {
    color: var(--dm-slate);
}

.dm-home .dm-section--deals .head-main.bd-gray-200 {
    border-bottom-color: rgba(var(--dm-primary-rgb), 0.12);
}

.dm-home .dm-section--deals .box-all-hurry .btn-view-all {
    background: var(--dm-primary);
    border-color: var(--dm-primary);
    color: #fff;
}

.dm-home .dm-section--deals .box-all-hurry .btn-view-all:hover {
    background: var(--dm-primary-hover);
    border-color: var(--dm-primary-hover);
    color: #fff;
}

/* —— Hero —— */
.dm-home .dm-hero {
    padding: 1.15rem 0 0.35rem;
    background: linear-gradient(
        180deg,
        rgba(var(--dm-primary-rgb), 0.16) 0%,
        rgba(var(--dm-primary-rgb), 0.06) 55%,
        var(--dm-bg) 100%
    );
}

.dm-hero__grid .box-swiper,
.dm-hero__grid .box-swiper .swiper-container {
    width: 100%;
}

.dm-hero__main {
    border-radius: var(--dm-radius);
    overflow: hidden;
    box-shadow: var(--dm-shadow-lg);
    background: var(--dm-surface);
}

.dm-home .banner-hero.banner-1 .home-hero-slide--image {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
    min-height: clamp(240px, 52vw, 480px);
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    border-radius: var(--dm-radius);
    padding: 2rem 1.5rem 2.5rem;
}

@media (min-width: 768px) {
    .dm-home .banner-hero.banner-1 .home-hero-slide--image {
        padding: 2.5rem 2.5rem 2rem;
    }
}

@media (min-width: 992px) {
    .dm-home .banner-hero.banner-1 .home-hero-slide--image {
        padding: 3rem 3rem 2.5rem;
        min-height: 480px;
    }
}

.dm-home .banner-hero.banner-1 .home-hero-slide--image h1 {
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.dm-home .banner-hero.banner-1 .home-hero-slide--image .color-brand-3 {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

/* The aside sits beside the hero swiper, which is ~480px tall on desktop —
   size the slider (and every layer inside it) to match that explicitly,
   since Swiper's own flex layers don't inherit a CSS stretch cascade. */
.dm-hero__aside .dm-promo-swiper {
    width: 100%;
    height: clamp(240px, 52vw, 480px);
}

@media (min-width: 992px) {
    .dm-hero__aside .dm-promo-swiper {
        height: 480px;
    }
}

.dm-hero__aside .swiper-wrapper {
    height: 100%;
}

.dm-hero__aside .swiper-slide {
    height: 100%;
}

.dm-hero__aside .banner-small {
    height: 100% !important;
    margin-bottom: 0;
    border-radius: var(--dm-radius-sm);
    box-shadow: var(--dm-shadow);
    border: 1px solid var(--dm-border);
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.dm-hero__aside .banner-small:hover {
    transform: translateY(-2px);
    box-shadow: var(--dm-shadow-lg);
}

.dm-home .swiper-pagination-1 .swiper-pagination-bullet-active {
    background: var(--dm-secondary);
}

/* —— Feature cards —— */
.dm-features {
    padding: 1.25rem 0 2rem;
}

.dm-features__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .dm-features__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .dm-features__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.dm-feature-card {
    background: var(--dm-surface);
    border: 1px solid var(--dm-border);
    border-radius: var(--dm-radius-sm);
    padding: 1.25rem;
    height: 100%;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.dm-feature-card:hover {
    border-color: rgba(var(--dm-secondary-rgb), 0.4);
    box-shadow: var(--dm-shadow);
}

.dm-feature-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
}

.dm-feature-card__icon svg {
    width: 22px;
    height: 22px;
}

.dm-feature-card__icon--shop {
    background: var(--dm-secondary-light);
    color: var(--dm-secondary);
}

.dm-feature-card__icon--live {
    background: #eff6ff;
    color: #2563eb;
}

.dm-feature-card__icon--sell {
    background: #ecfdf5;
    color: #059669;
}

.dm-feature-card__icon--trust {
    background: #f0f9ff;
    color: #0284c7;
}

.dm-feature-card h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    color: var(--dm-navy-dark);
}

.dm-feature-card p {
    font-size: 0.8125rem;
    color: var(--dm-slate);
    margin: 0;
    line-height: 1.5;
}

/* —— Section header —— */
.dm-section-head {
    margin-bottom: 1.75rem;
}

.dm-section-head--row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.dm-section-head__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dm-secondary);
    margin-bottom: 0.5rem;
}

.dm-section-head__badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--dm-secondary);
}

.dm-section-head__title {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--dm-primary-hover);
    margin: 0;
    line-height: 1.2;
}

.dm-section-head__subtitle {
    font-size: 0.9375rem;
    color: var(--dm-slate);
    margin: 0.5rem 0 0;
    max-width: 36rem;
    line-height: 1.5;
}

.dm-section-head.border-0 {
    border: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.dm-section-head--row .dm-section-head {
    margin-bottom: 0;
}

.dm-section-head--row .row {
    width: 100%;
}

/* —— Product tabs —— */
.dm-home .head-main .nav-tabs {
    border: none;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.dm-home .head-main .nav-tabs li a {
    border: 1px solid var(--dm-border);
    border-radius: 999px;
    padding: 0.45rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--dm-slate);
    background: var(--dm-surface);
    transition: all 0.15s;
}

.dm-home .head-main .nav-tabs li a:hover {
    border-color: var(--dm-secondary);
    color: var(--dm-primary-hover);
}

.dm-home .head-main .nav-tabs li a.active {
    background: var(--dm-primary);
    border-color: var(--dm-primary);
    color: #fff;
}

@media (max-width: 575.98px) {
    .dm-home .head-main .nav-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .dm-home .head-main .nav-tabs li {
        flex: 0 0 auto;
    }

    .dm-home .head-main .nav-tabs li a {
        white-space: nowrap;
    }
}

/* —— Cards —— */
.dm-card {
    background: var(--dm-surface);
    border: 1px solid var(--dm-border);
    border-radius: var(--dm-radius-sm);
    overflow: hidden;
    box-shadow: var(--dm-shadow);
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.dm-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--dm-shadow-lg);
}

.dm-card img {
    display: block;
    width: 100%;
}

/* —— Live CTA —— */
.dm-live-banner {
    background: linear-gradient(
        135deg,
        var(--dm-primary-hover) 0%,
        var(--dm-primary) 55%,
        #3d4199 100%
    );
    border-radius: var(--dm-radius);
    padding: 2rem 1.75rem;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: var(--dm-shadow-lg);
}

.dm-live-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 90% 20%,
        rgba(var(--dm-secondary-rgb), 0.28),
        transparent 50%
    );
    pointer-events: none;
}

.dm-live-banner__badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--dm-secondary);
    color: #fff;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    position: relative;
}

.dm-live-banner h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.625rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
    position: relative;
}

.dm-live-banner p {
    font-size: 0.9375rem;
    opacity: 0.88;
    margin: 0 0 1.25rem;
    max-width: 32rem;
    line-height: 1.55;
    position: relative;
}

.dm-live-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    position: relative;
}

.dm-live-banner .dm-btn--ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.dm-live-banner .dm-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

/* —— Logo strip —— */
.dm-brands {
    padding: 2.5rem 0;
    background: var(--dm-surface);
    border-block: 1px solid var(--dm-border);
}

.dm-brands--footer {
    border-top: 1px solid var(--dm-border);
    border-bottom: none;
    margin-top: 0;
}

.dm-brands__label {
    text-align: center;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dm-slate);
    margin-bottom: 1.25rem;
}

.dm-brands__logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem 3rem;
    opacity: 0.55;
    filter: grayscale(1);
    transition:
        opacity 0.25s,
        filter 0.25s;
}

.dm-brands__logos:hover {
    opacity: 0.85;
    filter: grayscale(0.2);
}

.dm-brands__logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    min-height: 80px;
    padding: 0.5rem 1rem;
    text-decoration: none;
    transition:
        opacity 0.25s,
        transform 0.2s,
        filter 0.25s;
}

.dm-brands__logo-link:hover,
.dm-brands__logo-link:focus-visible {
    opacity: 1;
    filter: grayscale(0);
    transform: translateY(-2px);
}

.dm-brands__logo-link:focus-visible {
    outline: 2px solid var(--dm-orange);
    outline-offset: 4px;
    border-radius: 6px;
}

.dm-brands__logos img {
    display: block;
    height: 72px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

@media (min-width: 768px) {
    .dm-brands__logos img {
        height: 88px;
        max-width: 240px;
    }
}

@media (min-width: 992px) {
    .dm-brands__logos img {
        height: 96px;
        max-width: 260px;
    }

    .dm-brands__logo-link {
        min-width: 140px;
        min-height: 96px;
    }
}

/* —— Spotlight & mosaic —— */
.dm-home .home-spotlight-tile {
    min-height: 220px;
    border-radius: var(--dm-radius-sm) !important;
    box-shadow: var(--dm-shadow);
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.dm-home .home-spotlight-tile:hover {
    transform: translateY(-2px);
    box-shadow: var(--dm-shadow-lg);
}

@media (min-width: 768px) {
    .dm-home .home-spotlight-tile {
        min-height: 260px;
    }
}

.dm-home .home-mosaic .banner-2,
.dm-home .home-mosaic [class*="home-mosaic-tile--"] {
    border-radius: var(--dm-radius-sm) !important;
    box-shadow: var(--dm-shadow);
}

@media (max-width: 767.98px) {
    .dm-home .home-mosaic .banner-2 {
        height: auto !important;
        min-height: 240px;
        margin-bottom: 1rem;
    }

    .dm-home .home-mosaic .banner-img-left {
        padding: 0 !important;
        min-height: 200px;
    }

    .dm-home .home-mosaic [class*="home-mosaic-tile--"] {
        min-height: 200px;
    }
}

/* —— Promo images —— */
.dm-home .home-vendor-promo-img,
.dm-home .home-deals-featured-img,
.dm-home .home-deals-list-img,
.dm-home .home-deals-sidebar-img,
.dm-home .promo-banner-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    background: transparent;
}

.dm-home .home-vendor-promo-img {
    min-height: 0;
}

.dm-home .home-deals-featured-img {
    min-height: 0;
}

@media (min-width: 992px) {
    .dm-home .home-deals-featured-img {
        min-height: 0;
    }
}

.dm-home .dm-section--deals .row:has(.dm-home-ad-slot--deals-featured) {
    align-items: stretch;
}

.dm-home .dm-home-ad-slot--deals-featured {
    display: flex;
    flex-direction: column;
}

/* —— Tall featured product card —— */
.dm-home .dm-home-ad-slot--deals-featured .dm-pcard-wrap--tall,
.dm-home .dm-home-ad-slot--sidebar .dm-pcard-wrap--tall {
    height: 100%;
    min-height: 100%;
}

.dm-home .dm-section--top-selling__row {
    align-items: stretch;
}

.dm-home .dm-section--top-selling .dm-pcard-grid--cols-3 {
    padding-inline: 0;
}

.dm-home .home-deals-list-img {
    max-height: none;
    min-height: 0;
}

.dm-home .home-deals-sidebar-img {
    min-height: 0;
    max-height: none;
}

@media (min-width: 992px) {
    .dm-home .home-deals-sidebar-img {
        min-height: 0;
    }
}

/* —— Promo badges —— */
@font-face {
    font-family: "Blogh";
    src: url("../fonts/Blogh/Blogh.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.dm-home .promo-source-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    padding: 0.35rem 0.75rem;
    font-family: "Blogh", "Outfit", sans-serif;
    font-size: 0.9375rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1;
    text-transform: none;
    backdrop-filter: blur(8px);
}

.dm-home .promo-source-badge--vendor {
    border: 1px solid rgba(var(--dm-primary-rgb), 0.12);
    background: rgba(255, 255, 255, 0.94) padding-box,
        linear-gradient(135deg, var(--dm-primary) 0%, var(--dm-secondary) 100%) text;
    -webkit-background-clip: padding-box, text;
    background-clip: padding-box, text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

@supports not (background-clip: text) {
    .dm-home .promo-source-badge--vendor {
        color: var(--dm-primary);
        -webkit-text-fill-color: var(--dm-primary);
        background: rgba(255, 255, 255, 0.94);
    }
}

.dm-home .promo-source-badge--seeded {
    background: rgba(255, 255, 255, 0.94);
    color: var(--dm-primary);
    border: 1px solid rgba(var(--dm-primary-rgb), 0.18);
}

.dm-home .promo-source-badge--overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
}

/* —— Deals countdown row —— */
.dm-home .head-main.bd-gray-200 {
    border-bottom: 1px solid var(--dm-border);
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
}

.dm-home .box-all-hurry .btn-view-all {
    border-radius: 999px;
    font-weight: 600;
}

/* —— Trust —— */
.dm-trust {
    background: white;
    border: 1px solid var(--dm-border);
    border-radius: var(--dm-radius);
    padding: 2rem 1.5rem;
    box-shadow: var(--dm-shadow);
}

.dm-home .dm-trust .list-col-5 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (min-width: 768px) {
    .dm-home .dm-trust .list-col-5 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .dm-home .dm-trust .list-col-5 {
        grid-template-columns: repeat(5, 1fr);
    }
}

.dm-home .dm-trust .item-list {
    border-radius: var(--dm-radius-sm);
    padding: 1rem;
    border: 1px solid transparent;
    transition:
        background 0.15s,
        border-color 0.15s;
}

.dm-home .dm-trust .item-list:hover {
    background: var(--dm-bg);
    border-color: var(--dm-border);
}

.dm-home .dm-trust .item-list h5 {
    font-weight: 700;
    font-size: 0.9375rem;
}

/* —— Newsletter —— */
.dm-home .dm-newsletter.box-newsletter {
    background: linear-gradient(
        135deg,
        var(--dm-primary-hover) 0%,
        var(--dm-primary) 55%,
        #3d4199 100%
    );
    border-radius: 0;
    padding: 4rem 0;
}

.dm-home .dm-newsletter .dm-newsletter-logo {
    height: 42px;
    width: auto;
    margin-bottom: 1.25rem;
    object-fit: contain;
    opacity: 0.95;
}

.dm-home .dm-newsletter h3 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.dm-home .dm-newsletter .box-form-newsletter {
    border-radius: 999px;
    overflow: hidden;
    box-shadow: var(--dm-shadow-lg);
}

.dm-home .dm-newsletter .input-newsletter {
    border-radius: 999px 0 0 999px;
    padding-left: 1.25rem;
}

.dm-newsletter__alert {
    padding: 0.55rem 0.75rem;
    border-radius: var(--dm-radius-sm, 6px);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.65rem;
}

.dm-newsletter__alert--success {
    background: rgba(22, 163, 74, 0.2);
    color: #ecfdf5;
    border: 1px solid rgba(134, 239, 172, 0.35);
}

.dm-newsletter__alert--error {
    background: rgba(220, 38, 38, 0.2);
    color: #fef2f2;
    border: 1px solid rgba(252, 165, 165, 0.35);
}

.dm-newsletter__honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.dm-home .dm-newsletter .btn-brand-2 {
    border-radius: 0 999px 999px 0;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    min-width: 7.5rem;
    background-color: var(--dm-secondary) !important;
    color: #fff !important;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.dm-home .dm-newsletter .btn-brand-2:hover {
    background-color: var(--dm-secondary-hover) !important;
    color: #fff !important;
}

.dm-newsletter .form-newsletter .btn-brand-2,
.dm-shop-newsletter .form-newsletter .btn-brand-2 {
    font-weight: 800;
    background-color: var(--dm-secondary) !important;
    color: #fff !important;
}

/* —— Product cards in home —— */
.dm-home .card-grid-style-2,
.dm-home .card-grid-style-3 {
    border-radius: var(--dm-radius-sm);
    border: none;
    box-shadow: none;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.dm-home .card-grid-style-2 .card-grid-inner,
.dm-home .product-card.card-grid-style-3 .card-grid-inner {
    border: 1px solid var(--dm-border);
    box-shadow: var(--dm-shadow);
}

.dm-home .card-grid-style-2:hover .card-grid-inner,
.dm-home .product-card.card-grid-style-3:hover .card-grid-inner {
    box-shadow: var(--dm-shadow-lg);
    border-color: rgba(var(--dm-primary-rgb), 0.35);
}

.dm-home .bg-gray-50 {
    background: var(--dm-bg) !important;
}

.dm-home .dm-section--trust {
    background: linear-gradient(
        180deg,
        rgba(var(--dm-primary-rgb), 0.12) 0%,
        #e4e7f4 50%,
        #eef0f7 100%
    );
    border-top: 3px solid var(--dm-primary);
    border-bottom: 1px solid rgba(var(--dm-primary-rgb), 0.12);
}

/* —— Mobile: fewer ad placements (welcome) —— */
@media (max-width: 767.98px) {
    .dm-home .dm-home-ad-slot--hero-aside,
    .dm-home .dm-home-ad-slot--mosaic,
    .dm-home .dm-home-ad-slot--deals-featured,
    .dm-home .dm-home-ad-slot--deals-list,
    .dm-home .dm-home-ad-slot--sidebar {
        display: none !important;
    }

    /* One vendor promo max on small screens */
    .dm-home
        .dm-home-ad-slot--vendor-promos
        .row
        > [data-promo-id]:not(:first-child),
    .dm-home .dm-home-ad-slot--vendor-promos .row > .col-12:not(:first-child) {
        display: none;
    }

    .dm-home .dm-home-ad-slot--vendor-promos {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    /* One spotlight tile instead of three */
    .dm-home
        .dm-home-spotlights
        .dm-home-spotlight:not([data-spotlight-index="0"]) {
        display: none;
    }

    .dm-home .dm-home-spotlights .dm-home-spotlight[data-spotlight-index="0"] {
        margin-bottom: 0 !important;
    }

    .dm-home .dm-home-spotlights {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .dm-home .dm-section {
        padding: 2.25rem 0;
    }

    .dm-home .section-box.mt-50 {
        margin-top: 0 !important;
    }
}

/* —— Live streamers rail (Instagram-style) —— */
.dm-home-live {
    padding: 1.15rem 0 1.35rem;
    background: var(--dm-surface);
    border-bottom: 1px solid var(--dm-border);
}

.dm-home-live[hidden] {
    display: none !important;
}

.dm-home-live--revealed {
    animation: dm-home-live-reveal 0.45s ease;
}

@keyframes dm-home-live-reveal {
    from {
        opacity: 0;
        transform: translateY(-0.35rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dm-home-live__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.dm-home-live__section-head {
    min-width: 0;
}

.dm-home-live__all {
    flex-shrink: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--dm-primary);
    text-decoration: none;
    white-space: nowrap;
}

.dm-home-live__all:hover {
    color: var(--dm-secondary);
    text-decoration: underline;
}

.dm-home-live__rail-wrap {
    position: relative;
    margin: 0 -0.25rem;
}

.dm-home-live__rail {
    display: flex;
    gap: 0.85rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    padding: 0.35rem 0.25rem 0.5rem;
    scrollbar-width: none;
}

.dm-home-live__rail::-webkit-scrollbar {
    display: none;
}

.dm-home-live__item {
    flex: 0 0 auto;
    width: 5.35rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    color: inherit;
    scroll-snap-align: start;
}

.dm-home-live__item:hover .dm-home-live__name {
    color: var(--dm-primary);
}

.dm-home-live__ring {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.35rem;
    height: 4.35rem;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(
        45deg,
        #f09433 0%,
        #e6683c 25%,
        #dc2743 50%,
        #cc2366 75%,
        #bc1888 100%
    );
    box-shadow: 0 4px 14px rgba(220, 39, 67, 0.22);
}

.dm-home-live__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    border: 2.5px solid #fff;
}

.dm-home-live__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dm-home-live__initial {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-family: var(--dm-font-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--dm-primary);
    background: linear-gradient(180deg, rgba(var(--dm-primary-rgb), 0.08) 0%, #fff 100%);
}

.dm-home-live__badge {
    position: absolute;
    left: 50%;
    bottom: -0.2rem;
    transform: translateX(-50%);
    padding: 0.12rem 0.42rem;
    border-radius: 999px;
    border: 2px solid #fff;
    background: #ef4444;
    color: #fff;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.2;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
}

.dm-home-live__name {
    width: 100%;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    color: var(--dm-navy-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dm-home-live__meta {
    width: 100%;
    font-size: 0.625rem;
    line-height: 1.2;
    text-align: center;
    color: var(--dm-slate);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .dm-home-live {
        padding: 1.35rem 0 1.65rem;
    }

    .dm-home-live__item {
        width: 5.75rem;
    }

    .dm-home-live__ring {
        width: 4.65rem;
        height: 4.65rem;
    }

    .dm-home-live__name {
        font-size: 0.75rem;
    }
}
