/* Public: Live Detection Showcase */
:root {
    --lds-teal: #173c44;
    --lds-teal-bright: #2d6d7d;
    --lds-red: #e00024;
    --lds-red-bright: #ff4d6a;
    --lds-red-soft: rgba(224, 0, 36, 0.45);
    --lds-red-faint: rgba(224, 0, 36, 0.16);
    --lds-red-tint: rgba(224, 0, 36, 0.08);
    --lds-surface-deep: #050507;
    --lds-surface-mid: #0b0f12;
    --lds-accent-glow: rgba(147, 201, 214, 0.35);
}

.lds-public-page {
    background: var(--lds-surface-deep);
    background-image:
        radial-gradient(ellipse 140% 80% at 50% -20%, rgba(23, 60, 68, 0.22), transparent 50%),
        radial-gradient(ellipse 70% 50% at 100% 50%, rgba(224, 0, 36, 0.06), transparent 45%);
}

.lds-hero {
    position: relative;
    padding: clamp(2.5rem, 5vw, 4.25rem) 0 2.25rem 0;
    background:
        radial-gradient(900px 420px at 18% 10%, rgba(23, 60, 68, 0.55), transparent 60%),
        radial-gradient(1000px 520px at 88% 12%, rgba(224, 0, 36, 0.28), transparent 62%),
        linear-gradient(180deg, rgba(8, 8, 12, 0.92), rgba(8, 8, 12, 1));
    overflow: hidden;
}

/* Ambient blobs */
.lds-hero__glow {
    pointer-events: none;
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
}

.lds-hero__glow--one {
    width: clamp(260px, 45vw, 480px);
    height: clamp(260px, 45vw, 480px);
    background: radial-gradient(circle, rgba(23, 60, 68, 0.5), transparent 70%);
    top: -12%;
    left: -8%;
}

.lds-hero__glow--two {
    width: clamp(200px, 35vw, 380px);
    height: clamp(200px, 35vw, 380px);
    background: radial-gradient(circle, var(--lds-red-soft), transparent 72%);
    top: 5%;
    right: -6%;
}

.lds-hero__inner {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
    align-items: center;
}

@media (min-width: 992px) {
    .lds-hero__inner {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 2rem;
    }
}

/* Force single-column hero on tablets/mobiles */
@media (max-width: 991.98px) {
    .lds-hero__inner {
        grid-template-columns: 1fr !important;
        gap: 1.25rem;
    }

    .lds-hero__copy {
        order: 1;
    }

    .lds-hero__panel {
        order: 2;
        justify-content: center !important;
    }
}

@media (max-width: 576px) {
    .lds-hero {
        padding: 2.2rem 0 1.6rem 0;
    }

    .lds-kicker {
        font-size: 0.72rem;
        margin-bottom: 0.6rem;
    }

    .lds-hero__copy {
        text-align: center;
    }

    .lds-kicker,
    .lds-title,
    .lds-sub {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .lds-sub {
        font-size: 0.98rem;
    }

    .lds-hero__badges {
        gap: 0.5rem;
        justify-content: center;
    }

    .lds-badge {
        font-size: 0.84rem;
        padding: 0.38rem 0.62rem;
    }

    .lds-hero__panel {
        justify-content: center;
    }

    .lds-panel-card {
        width: 100%;
        max-width: 420px;
    }

    .lds-panel-ring {
        height: 160px;
    }
}

.lds-kicker {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: #fff;
    margin-bottom: 0.75rem;
    padding: 0.34rem 0.78rem 0.34rem 1.55rem;
    border-radius: 999px;
    border: 1px solid var(--lds-red-soft);
    background: linear-gradient(135deg, rgba(224, 0, 36, 0.22), rgba(23, 60, 68, 0.28));
    box-shadow:
        0 8px 22px rgba(224, 0, 36, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.lds-kicker::before {
    content: '';
    position: absolute;
    left: 0.6rem;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--lds-red);
    transform: translateY(-50%);
    box-shadow:
        0 0 0 4px rgba(224, 0, 36, 0.22),
        0 0 14px rgba(224, 0, 36, 0.6);
    animation: lds-kicker-pulse 2.4s ease-in-out infinite;
}

@keyframes lds-kicker-pulse {
    0%, 100% {
        box-shadow:
            0 0 0 3px rgba(224, 0, 36, 0.22),
            0 0 12px rgba(224, 0, 36, 0.5);
    }
    50% {
        box-shadow:
            0 0 0 5px rgba(224, 0, 36, 0.12),
            0 0 18px rgba(224, 0, 36, 0.75);
    }
}

@media (prefers-reduced-motion: reduce) {
    .lds-kicker::before {
        animation: none;
    }
}

.lds-title {
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #fff;
    margin: 0 0 0.75rem 0;
    font-size: clamp(2rem, 3.2vw, 3.1rem);
    line-height: 1.08;
    text-shadow:
        0 2px 24px rgba(23, 60, 68, 0.5),
        0 30px 60px rgba(0, 0, 0, 0.35);
}

.lds-sub {
    color: rgba(255, 255, 255, 0.82);
    max-width: 70ch;
    margin: 0 0 1rem 0;
    font-size: 1.04rem;
    line-height: 1.62;
}

.lds-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.lds-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.82rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.13);
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
    font-size: 0.88rem;
    transition:
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.28s ease,
        background 0.28s ease,
        box-shadow 0.28s ease;
}

.lds-badge i {
    color: rgba(147, 201, 214, 0.95);
}

.lds-badge:nth-child(1) i,
.lds-badge:nth-child(2) i {
    color: var(--lds-red-bright);
    text-shadow: 0 0 10px rgba(224, 0, 36, 0.5);
}

@media (hover: hover) {
    .lds-badge:hover {
        transform: translateY(-2px);
        border-color: var(--lds-red-soft);
        background: linear-gradient(135deg, rgba(224, 0, 36, 0.14), rgba(23, 60, 68, 0.3));
        box-shadow:
            0 10px 26px rgba(0, 0, 0, 0.28),
            0 0 0 1px rgba(224, 0, 36, 0.2);
    }
}

.lds-hero__panel {
    display: grid;
    justify-content: end;
}

.lds-panel-card {
    width: min(420px, 100%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.14) 0%,
        rgba(255, 255, 255, 0.05) 45%,
        rgba(23, 60, 68, 0.12) 100%
    );
    padding: 1.2rem 1.15rem;
    position: relative;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.lds-panel-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(147, 201, 214, 0.35), transparent 40%, rgba(224, 0, 36, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.lds-panel-card > * {
    position: relative;
    z-index: 1;
}

.lds-panel-ring {
    width: 100%;
    height: 180px;
    border-radius: 14px;
    background:
        radial-gradient(circle at 50% 45%, rgba(224, 0, 36, 0.35), transparent 55%),
        radial-gradient(circle at 55% 50%, rgba(23, 60, 68, 0.6), transparent 60%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    overflow: hidden;
}

.lds-panel-ring::after {
    content: '';
    position: absolute;
    inset: -40%;
    background: conic-gradient(from 120deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    animation: ldsSpin 6s linear infinite;
}

@keyframes ldsSpin {
    to { transform: rotate(360deg); }
}

.lds-panel-lines {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.9rem;
}

.lds-panel-lines span {
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.lds-panel-lines span:nth-child(1) { width: 78%; }
.lds-panel-lines span:nth-child(2) { width: 92%; }
.lds-panel-lines span:nth-child(3) { width: 64%; }

.lds-panel-caption {
    margin-top: 1rem;
    display: flex;
    gap: 0.65rem;
    align-items: center;
}

.lds-panel-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #e00024;
    box-shadow: 0 0 0 6px rgba(224, 0, 36, 0.18);
}

.lds-panel-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.lds-panel-value {
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.lds-library {
    position: relative;
    padding: 2.5rem 0 4rem 0;
    background: var(--lds-surface-deep);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(23, 60, 68, 0.18), transparent 55%),
        radial-gradient(ellipse 60% 40% at 0% 80%, rgba(224, 0, 36, 0.05), transparent 50%);
}

.lds-library::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    pointer-events: none;
}

.lds-library__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.lds-library-intro > * {
    position: relative;
    z-index: 1;
}

.lds-library-intro {
    margin-bottom: 2.35rem;
    padding: 1.5rem 1.65rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(
        155deg,
        rgba(255, 255, 255, 0.09) 0%,
        rgba(255, 255, 255, 0.03) 50%,
        rgba(23, 60, 68, 0.14) 100%
    );
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    position: relative;
    overflow: hidden;
}

.lds-library-intro::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(60%, 320px);
    height: 3px;
    border-radius: 0 0 8px 8px;
    background: linear-gradient(90deg, var(--lds-red), rgba(255, 77, 106, 0.9), var(--lds-teal));
    opacity: 0.95;
    box-shadow: 0 6px 22px rgba(224, 0, 36, 0.3);
}

.lds-library-intro__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.71rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.55rem 0;
    padding: 0.24rem 0.62rem;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(224, 0, 36, 0.32), rgba(23, 60, 68, 0.45));
    border: 1px solid var(--lds-red-soft);
    box-shadow: 0 4px 14px rgba(224, 0, 36, 0.18);
}

.lds-library-intro .lds-h2 {
    margin-bottom: 0.7rem;
    font-size: clamp(1.45rem, 2.8vw, 1.95rem);
    letter-spacing: -0.025em;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.3);
}

.lds-library-intro__lead {
    margin: 0;
    max-width: 88ch;
    color: rgba(255, 255, 255, 0.81);
    font-size: 1.035rem;
    line-height: 1.62;
}

.lds-h2 {
    color: #fff;
    font-weight: 900;
    margin: 0;
    letter-spacing: -0.02em;
}

.lds-muted {
    color: rgba(255, 255, 255, 0.7);
    margin: 0.35rem 0 0 0;
}

.lds-empty {
    border: 1px dashed var(--lds-red-soft);
    background:
        radial-gradient(ellipse 70% 80% at 50% 0%, var(--lds-red-tint), transparent 60%),
        rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    padding: 2rem 1.75rem;
    color: rgba(255, 255, 255, 0.82);
    text-align: center;
    box-shadow:
        inset 0 0 0 1px rgba(23, 60, 68, 0.15),
        0 12px 32px rgba(224, 0, 36, 0.08);
}

.lds-empty h3 {
    margin: 0 0 0.5rem 0;
    color: #fff;
    font-weight: 900;
}

.lds-empty p {
    max-width: 46ch;
    margin: 0 auto;
    line-height: 1.55;
}

/* Date filters (created_at ranges) */
.lds-date-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 2rem;
}

.lds-date-filters__chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.48rem 0.92rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.86);
    background: rgba(255, 255, 255, 0.06);
    transition:
        background 0.22s ease,
        border-color 0.22s ease,
        color 0.22s ease,
        box-shadow 0.22s ease;
}

.lds-date-filters__chip:hover {
    border-color: var(--lds-red-soft);
    background: linear-gradient(135deg, rgba(224, 0, 36, 0.18), rgba(23, 60, 68, 0.32));
    color: #fff;
    box-shadow: 0 6px 20px rgba(224, 0, 36, 0.18);
}

.lds-date-filters__chip:focus-visible {
    outline: 2px solid var(--lds-red-soft);
    outline-offset: 2px;
}

.lds-date-filters__chip.is-active {
    border-color: rgba(224, 0, 36, 0.95);
    background: linear-gradient(135deg, var(--lds-red) 0%, #b80020 100%);
    color: #fff;
    box-shadow:
        0 6px 22px rgba(224, 0, 36, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

@media (max-width: 576px) {
    .lds-date-filters {
        gap: 0.4rem;
        margin-bottom: 1.5rem;
    }

    .lds-date-filters__chip {
        flex: 1 1 auto;
        min-width: calc(50% - 0.35rem);
        padding: 0.42rem 0.62rem;
        font-size: 0.82rem;
    }
}

/* Demo cards grid — subtle stagger entrance */
@keyframes lds-card-enter {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .lds-demo-grid > [class*='col-'] {
        animation: lds-card-enter 0.62s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    }

    .lds-demo-grid > [class*='col-']:nth-child(1) {
        animation-delay: 0.04s;
    }

    .lds-demo-grid > [class*='col-']:nth-child(2) {
        animation-delay: 0.1s;
    }

    .lds-demo-grid > [class*='col-']:nth-child(3) {
        animation-delay: 0.16s;
    }

    .lds-demo-grid > [class*='col-']:nth-child(4) {
        animation-delay: 0.22s;
    }

    .lds-demo-grid > [class*='col-']:nth-child(n + 5) {
        animation-delay: 0.28s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lds-demo-grid > [class*='col-'] {
        animation: none;
    }
}

/*
 * Outer grid: 2 tiles per row (col-md-6).
 * Inner split: title + description (left), video (right) from md up; stacked on small screens.
 */
.lds-demo-card {
    position: relative;
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.03) 40%,
        rgba(11, 15, 18, 0.55) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.42),
        0 0 0 1px rgba(0, 0, 0, 0.2);
    transition:
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.4s ease,
        border-color 0.35s ease;
}

.lds-demo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 2;
    background: linear-gradient(90deg, var(--lds-red) 0%, #ff4d6a 35%, rgba(147, 201, 214, 0.85) 70%, var(--lds-teal) 100%);
    opacity: 1;
    box-shadow: 0 4px 18px rgba(224, 0, 36, 0.28);
}

.lds-demo-card::after {
    pointer-events: none;
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        125deg,
        rgba(255, 255, 255, 0.07) 0%,
        transparent 38%,
        transparent 62%,
        rgba(255, 255, 255, 0.02) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

@media (hover: hover) {
    .lds-demo-card:hover {
        transform: translateY(-6px);
        border-color: var(--lds-red-soft);
        box-shadow:
            0 28px 60px rgba(0, 0, 0, 0.5),
            0 0 48px rgba(224, 0, 36, 0.18),
            0 0 0 1px rgba(224, 0, 36, 0.22);
    }

    .lds-demo-card:hover::after {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lds-demo-card {
        transition: none;
    }

    .lds-demo-card:hover {
        transform: none;
    }
}

.lds-demo-card__split {
    position: relative;
    z-index: 3;
    min-height: 280px;
}

.lds-demo-card__copy {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 220px;
    padding: 1.45rem 1.35rem 1.25rem 1.55rem;
    background: linear-gradient(
        155deg,
        rgba(224, 0, 36, 0.12) 0%,
        rgba(23, 60, 68, 0.28) 30%,
        rgba(18, 24, 28, 0.55) 65%,
        rgba(6, 8, 11, 0.72) 100%
    );
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--lds-red);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2),
        inset 3px 0 18px -3px rgba(224, 0, 36, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

@media (min-width: 768px) {
    .lds-demo-card__copy {
        border-bottom: none;
        border-right: 1px solid rgba(255, 255, 255, 0.12);
    }
}

.lds-demo-card__head {
    flex-shrink: 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
    margin-left: -0.25rem;
    margin-right: -0.15rem;
    padding-left: 0.25rem;
    padding-right: 0.15rem;
    border-radius: 0 10px 0 0;
}

.lds-demo-card__eyebrow {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 0.6rem;
    padding: 0.28rem 0.7rem 0.28rem 1.35rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(224, 0, 36, 0.32), rgba(23, 60, 68, 0.48));
    border: 1px solid var(--lds-red-soft);
    box-shadow:
        0 4px 14px rgba(224, 0, 36, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.lds-demo-card__eyebrow::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--lds-red);
    transform: translateY(-50%);
    box-shadow: 0 0 0 3px rgba(224, 0, 36, 0.25);
}

.lds-demo-card__title {
    color: #fff;
    font-weight: 900;
    letter-spacing: -0.025em;
    font-size: clamp(1.08rem, 2.3vw, 1.32rem);
    line-height: 1.18;
    margin: 0;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.lds-demo-card__description {
    margin: 0.75rem 0 0 0;
    padding: 0;
    border: none;
    background: none;
    border-radius: 0;
    box-shadow: none;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.94rem;
    line-height: 1.62;
    white-space: pre-wrap;
}

.lds-demo-card__description--muted {
    color: rgba(255, 255, 255, 0.62);
}

.lds-demo-card__media-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 220px;
    background:
        radial-gradient(ellipse 90% 70% at 50% 0%, rgba(23, 60, 68, 0.35), transparent 58%),
        radial-gradient(ellipse 70% 55% at 100% 100%, rgba(224, 0, 36, 0.22), transparent 55%),
        radial-gradient(ellipse 50% 40% at 0% 0%, rgba(224, 0, 36, 0.08), transparent 50%),
        linear-gradient(180deg, #0a0c0f, #030304);
    padding: 0.75rem;
}

@media (min-width: 768px) {
    .lds-demo-card__media-wrap {
        min-height: 100%;
    }
}

.lds-demo-card__media {
    position: relative;
    width: 100%;
    max-height: min(520px, 70vh);
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: 14px;
    background:
        radial-gradient(ellipse 80% 60% at 50% 100%, rgba(23, 60, 68, 0.25), transparent 55%),
        #020203;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.11),
        0 0 32px rgba(23, 60, 68, 0.12),
        0 22px 52px rgba(0, 0, 0, 0.58),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.lds-demo-card__media::after {
    content: '';
    pointer-events: none;
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    z-index: 1;
}

.lds-demo-card__media .lds-preview-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    display: block;
    z-index: 0;
}

@supports not (aspect-ratio: 9 / 16) {
    .lds-demo-card__media {
        height: 0;
        padding-bottom: 177.78%;
    }
}

@media (max-width: 767.98px) {
    .lds-demo-card__media {
        max-height: 480px;
    }
}

@media (max-width: 767.98px) {
    .lds-demo-card__title {
        white-space: normal;
    }
}

/* Pagination (Laravel default markup) */
.lds-pager {
    margin-top: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.lds-pager__info {
    color: rgba(255, 255, 255, 0.62);
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
}

.lds-pager__links {
    margin-left: auto;
}

.lds-pager__links .pagination {
    gap: 0.55rem;
    flex-wrap: wrap;
    margin-bottom: 0;
}

/* Hide Laravel's built-in "Showing x to y..." text from bootstrap-5 pagination view
   because we render our own on the left. */
.lds-pager__links > p,
.lds-pager__links .small.text-muted {
    display: none !important;
}

.lds-pager__links .page-link {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    border-radius: 999px !important;
    padding: 0.45rem 0.85rem !important;
    font-weight: 800;
    box-shadow: none !important;
}

.lds-pager__links .page-link:hover,
.lds-pager__links .page-link:focus {
    background: linear-gradient(135deg, rgba(224, 0, 36, 0.18), rgba(23, 60, 68, 0.55)) !important;
    border-color: var(--lds-red-soft) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(224, 0, 36, 0.18) !important;
}

.lds-pager__links .page-item.active .page-link {
    background: linear-gradient(135deg, var(--lds-red), #b80020) !important;
    border-color: rgba(224, 0, 36, 0.95) !important;
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(224, 0, 36, 0.4) !important;
}

.lds-pager__links .page-item.disabled .page-link {
    opacity: 0.45;
}

@media (max-width: 576px) {
    .lds-pager {
        justify-content: center;
    }
    .lds-pager__info {
        width: 100%;
        text-align: center;
    }
    .lds-pager__links {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-left: 0;
    }
}

