/* Shared finishing touches for discovery, without changing the AutoClipz mark. */
.home-discovery .hero-content {
    gap: 0;
    padding-block: 2.5rem;
}

.home-discovery .hero-content > h1 {
    margin-bottom: 1.4rem;
}

.home-discovery .discovery-tagline {
    margin: 0;
    font-size: clamp(1.55rem, 3.3vw, 2.65rem);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.035em;
    color: #fff;
}

.home-discovery .discovery-tagline span {
    color: #a8c6ff;
}

.home-discovery .discovery-intro {
    max-width: 32rem;
    margin: 1.1rem 0 0;
    color: #b4c3db;
    font-size: 1rem;
    line-height: 1.65;
}

.home-discovery .hero-buttons-container {
    margin-top: 1.65rem !important;
    transform: none;
}

.home-discovery .home-secondary-action {
    background: rgba(0, 8, 24, 0.4);
    border-color: rgba(162, 191, 239, 0.23);
    box-shadow: none;
}

.discovery-access-note {
    color: #9dafc9;
    font-size: 0.8rem;
    line-height: 1.65;
}

.home-discovery .discovery-access-note {
    margin: 1.25rem 0 0;
}

.home-discovery .rain-container {
    opacity: 0.4;
    pointer-events: none;
}

.home-discovery .hero .floating {
    animation: none;
}

.home-discovery .clip-counter-container {
    margin-bottom: 1.3rem;
}

.home-discovery .regular-clipping li,
.home-discovery .regular-clipping h6 {
    color: #d7e4fa;
}

.home-discovery .emoji-indicator {
    display: none;
}

.streams-page .discovery-directory {
    margin-top: 1.6rem !important;
    padding-bottom: 1.5rem;
}

.discovery-heading {
    max-width: 45rem;
    margin-bottom: 1.4rem;
}

.discovery-heading .discovery-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.55rem;
    color: #93b8fa;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.discovery-eyebrow > span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0057f6;
    box-shadow: 0 0 9px rgba(0, 87, 246, 0.65);
}

.discovery-heading h1 {
    margin: 0 0 0.4rem;
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    color: #fff;
}

.discovery-heading > p:not(.discovery-eyebrow):not(.discovery-access-note) {
    margin: 0;
    font-size: 0.95rem;
    color: #c2cfe4;
}

.discovery-heading .discovery-access-note {
    margin: 0.5rem 0 0;
}

.streams-page #streams-container {
    margin-top: 1.15rem !important;
}

.streams-page .streams-search-container {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2) !important;
}

.streams-page .stream-card {
    min-height: 0;
    border-color: rgba(86, 145, 247, 0.32);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.streams-page .stream-card:hover {
    transform: none;
    border-color: rgba(86, 145, 247, 0.65);
    box-shadow: 0 8px 26px rgba(0, 39, 100, 0.25);
}

.streams-page .stream-thumbnail-wrapper {
    height: auto;
    flex: 0 0 auto;
    aspect-ratio: 16 / 9;
}

.streams-page .stream-title {
    color: #9abfff;
    text-shadow: none;
    font-weight: 500;
}

.streams-page .title-marquee-text {
    animation-play-state: paused;
}

.streams-page .stream-card:hover .title-marquee-text,
.streams-page .stream-card:focus-within .title-marquee-text {
    animation-play-state: running;
}

.streams-page .stream-card-info-strip {
    filter: none;
}

.streams-page .access-clips-btn.ac-launcher {
    min-height: 46px;
    margin-top: 0.15rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13) !important;
}

.streams-page .access-clips-btn.not-logged-in {
    opacity: 1;
    cursor: pointer;
    pointer-events: auto;
}

.streams-page .access-clips-btn:focus-visible,
.directory-filter button:focus-visible,
.home-discovery .home-hero-action:focus-visible {
    outline: 2px solid #e4efff;
    outline-offset: 4px;
}

.directory-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.8rem 0;
    color: #bfcee6;
    font-size: 0.88rem;
}

.directory-filter[hidden] {
    display: none;
}

.directory-filter strong {
    color: #fff;
}

.directory-filter button {
    flex-shrink: 0;
    min-height: 44px;
    padding: 0.5rem 0.8rem;
    border: 1px solid rgba(126, 165, 231, 0.3);
    border-radius: 8px;
    background: rgba(12, 34, 69, 0.7);
    color: #d8e7ff;
    font: inherit;
}

.directory-filter button i {
    margin-left: 0.4rem;
}

@media (max-width: 767px) {
    body.home-discovery {
        overflow-y: auto;
    }

    .home-discovery .hero,
    .home-discovery .hero-content {
        height: auto !important;
        min-height: 100svh !important;
    }

    .home-discovery .hero {
        padding: 0 1rem;
    }

    .home-discovery .hero-content {
        padding: calc(5rem + env(safe-area-inset-top, 0px)) 0 2rem !important;
    }

    .home-discovery .hero-content > h1 {
        font-size: clamp(3.7rem, 16vw, 5rem) !important;
        margin-bottom: 1.25rem !important;
    }

    .home-discovery .discovery-intro {
        font-size: 0.9rem;
        max-width: 22rem;
        margin-top: 0.9rem;
    }

    .home-discovery .hero-buttons-container {
        width: min(100%, 340px) !important;
        gap: 0.6rem;
    }

    .home-discovery .home-hero-action {
        min-height: 50px !important;
    }

    .streams-page .discovery-directory {
        margin-top: 1.1rem !important;
    }

    .discovery-heading {
        margin-bottom: 1rem;
    }

    .discovery-heading .discovery-access-note {
        max-width: 24rem;
        font-size: 0.75rem;
    }

    .streams-page #streams-container {
        margin-top: 0.8rem !important;
    }

    .streams-page #streams-container > .mb-4 {
        margin-bottom: 1rem !important;
    }

    .streams-page .streamers-list-launcher.ac-launcher {
        min-height: 48px;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
    }

    .streams-page .stream-card .card-body {
        padding: 0.65rem;
        gap: 0.4rem;
    }

    .streams-page .stream-card-info-strip,
    .streams-page .stream-card-info-strip > * {
        min-height: 39px;
    }

    .streams-page .stream-card-info-strip > * {
        padding-block: 0.45rem;
    }

    .streams-page .stream-title {
        margin-bottom: 0;
        font-size: 0.84rem;
    }

    .streams-page .access-clips-btn.ac-launcher {
        min-height: 44px;
        padding-block: 0.55rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-discovery .rain-container {
        display: none;
    }

    .home-discovery .hero *,
    .streams-page .discovery-directory * {
        animation: none !important;
        transition: none !important;
    }
}
