﻿@import url(../global-paytv.css);
@import url(../paytv/hero.css);
@import url(../paytv/buttons.css);
@import url(../deals/genre.css);
@import url(channels.css);
@import url(../plugins/weavesome-drag-scroll.css);



.bg-1 {
    background-image: url('/Content/images/backgrounds/cignal-load-bg-v2.svg');
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
}

/* Extend gradient through footer gap in search mode (margin would sit outside this wrapper) */
.bg-1:has(.hero--search-mode) {
    padding-bottom: 64px;
}

/* Fix for Mr-Bean images overlapping in genre-featured-container */
.genre-featured-container {
    width: 100%;
    max-width: 100%;
}

.genre-featured-sub-container {
    width: 100%;
}

.genre-featured-sub-container > img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    object-fit: cover;
    flex: 1 0 0;
    min-width: 0;
}

/* === Hero Search Mode ===
   Applied to #Hero when the user types in the hero search input.
   The video banner is hidden; title, subtitle and search are centered
   directly on the gradient background. A dedicated search-results card
   appears below the hero while genre and channel sections are hidden. */
.hero-container.hero--search-mode {
    padding-top: 80px;
    padding-bottom: 100px;
    clip-path: ellipse(100% 100% at 50% 0%);
    background: var(--clr-bg-quaternary);
}

/* Hide the video/image banner – the bg-1 background image remains visible */
.hero-container.hero--search-mode .hero-banner-container {
    display: none;
}

/* Hide the spinner + title overlay that sits on the video */
.hero-container.hero--search-mode .hero-details-container {
    display: none;
}

/* Strip the white card so content renders directly on the gradient */
.hero-container.hero--search-mode .hero-article-container {
    background-color: transparent;
    box-shadow: none;
    padding: 0;
    align-items: center;
    margin-top: -40px;
}

/* Center all details */
.hero-container.hero--search-mode .hero-article-details {
    align-items: center;
    text-align: center;
}

/* White text on gradient */
.hero-container.hero--search-mode .hero-article-details-content .hero-article-details-title,
.hero-container.hero--search-mode .hero-article-details-content .hero-article-details-subtitle {
    color: #fff;
}

/* Reveal the filter button and give the search row a gap */
.hero-container.hero--search-mode .hero-search-filter-btn {
    display: flex !important;
}

.hero-container.hero--search-mode .search-container {
    gap: 12px;
}

/* Hide "Latest Release" and the swimlane */
.hero-container.hero--search-mode .hero-article-details-column,
.hero-container.hero--search-mode .hero-article-swimlane {
    display: none;
}

/* Hide genre and channels sections below the hero */
.hero-container.hero--search-mode ~ .genre-list-container,
.hero-container.hero--search-mode ~ .browse-channels-section,
.bg-1:has(.hero--search-mode) ~ .genre-list-container,
.bg-1:has(.hero--search-mode) ~ .browse-channels-section {
    display: none;
}

/* ── Search-Results Card ─────────────────────────────────────── */
.hero-search-results-section {
    display: none;
    margin: -60px 64px 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0px 4px 6px rgba(60, 60, 60, 0.2);
    position: relative;
    z-index: 2;
}

.hero-container.hero--search-mode ~ .hero-search-results-section,
.bg-1:has(.hero--search-mode) .hero-search-results-section {
    display: block;
}

.hero-search-results-wrapper {
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-search-results-content {
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* ── Search Results Group ─────────────────────────────────────── */
.search-results-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.search-results-group-title {
    color: var(--clr-text-neutral-700);
    font-family: var(--font-family-head);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: normal;
}

.search-results-channel-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    padding-bottom: 4px;
}

.search-results-channel-grid::-webkit-scrollbar {
    display: none;
}

.search-no-results {
    color: var(--clr-text-neutral-500);
    font-family: var(--font-family-body);
    font-size: var(--font-size-body-02);
    text-align: center;
    padding: 24px 0;
}

/* ── Search Results Shows Swimlane ───────────────────────────── */
/* Uses .hero-article-swimlane as outer — scoped overrides only  */
.search-results-shows-swimlane.hero-article-swimlane {
    padding: 0;
}

/* Scoped card size for search context */
.search-results-show-card.hero-article-swimlane-cards {
    width: 220px;
    height: 140px;
    flex-shrink: 0;
    padding: 12px 14px;
}

.search-results-show-card.hero-article-swimlane-cards > .card-label {
    width: 100%;
    font-size: var(--font-size-body-02);
}

.hero-article-swimlane-content  { 
padding: 0 40px;
gap: 24px;

}

    .hero-article-swimlane-content.search-results{
        padding: 0;
    }


    /* ── Search Results Available On Section ─────────────────────── */
    .sr-available-paytv {
        display: flex;
        flex-direction: column;
        gap: 16px;
        /* margin-bottom: 8px;*/
    }

.sr-plan-group {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sr-plan-group-label {
    font-family: var(--font-family-body);
    font-size: var(--font-size-body-02);
    font-weight: 600;
    color: var(--clr-text-neutral-500);
    /*margin: 0 0 8px 0;*/
    margin: 0;
}

.sr-plan-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sr-plan-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 18px;
    background: var(--clr-bg-quaternary);
    color: var(--clr-text-white);
    font-size: var(--font-size-head-08);
    font-weight: 700;
    text-decoration: none;
    min-width: 130px;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

    .sr-plan-btn > span {
        font-family: var(--font-family-head);
        font-weight: 800;
    }

.sr-plan-btn:hover {
    opacity: 0.88;
    color: var(--clr-text-white);
}

.sr-plan-btn-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.sr-plan-btn-icon svg {
    width: 32px;
    height: 32px;
}

/* Channel/show drawers: flex wrap; equal widths applied via JS (see equalizeDrawerPlanRow) */
.channel-drawer .sr-plan-row,
.show-drawer .sr-plan-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

.channel-drawer .sr-plan-btn,
.show-drawer .sr-plan-btn {
    width: auto;
    flex: 0 0 auto;
    min-width: 130px;
    box-sizing: border-box;
}

.channel-drawer .sr-plan-btn > span,
.show-drawer .sr-plan-btn > span {
    flex-shrink: 0;
}

/* ── Apps Grid ───────────────────────────────────────────────── */
.sr-apps-grid {
    display: flex;
    flex-direction: row;
    gap: 16px;
    flex-wrap: wrap;
}

.sr-app-card-border {
    width: 240px;
    padding: 1px;
    border-radius: 12px;
    display: flex;
    cursor: pointer;
}

.sr-app-card {
    flex: 1;
    border-radius: 11px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-decoration: none;
    box-sizing: border-box;
}

.sr-app-card-logo-wrap {
    flex: 1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    min-height: 80px;
}

.sr-app-card-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.sr-app-card-footer {
    padding: 10px 16px;
    display: flex;
    align-items: center;
}

.sr-app-card-name {
    font-family: var(--font-family-head);
    font-size: var(--font-size-body-02);
    font-weight: 700;
    color: var(--clr-text-white);
    margin: 0;
}

/* Override the fixed 150px width from .btn-secondary.contents for the hero filter button */
#heroFilterBtn {
    width: auto;
    min-width: 140px;
    white-space: nowrap;
}

#heroFilterBtn > svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

/* Fix for text truncation in genre list section to prevent overlap with channel logo */
.genre-contents-container .hero-article-swimlane-card-labels {
    width: 100%;
    overflow: hidden;
}

.genre-contents-container .hero-article-swimlane-card-labels .card-label,
.genre-contents-container .hero-article-swimlane-card-labels .card-description {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

@media (max-width: 992px) {
    /* Reduce hero height in search mode on mobile */
    .hero-container.hero--search-mode {
        /*     padding-top: 40px;
        padding-bottom: 40px;*/
    }

        /* Stack filter button below search input on mobile; center the field */
        .hero-container.hero--search-mode .search-container {
            flex-direction: column;
            width: 100%;
            align-items: center;
        }

        /* Make search wrapper full width on mobile */
        .hero-container.hero--search-mode .search-wrapper {
            width: 100%;
        }

        /* Make filter button full width on mobile */
        .hero-container.hero--search-mode .hero-search-filter-btn {
            width: 100%;
            justify-content: center;
        }

    .bg-1:has(.hero--search-mode) {
        padding-bottom: 32px;
    }

    /* Match side margin to the 16px container padding on mobile */
    .hero-search-results-section {
        margin: -20px 16px 0;
    }

    /* Reduce wrapper padding on mobile */
    .hero-search-results-wrapper {
        padding: 24px 0;
        gap: 16px;
    }

    /* Match inner padding to existing 16px pattern on mobile */
    .hero-search-results-content {
        padding: 0 16px;
    }

    .hero-article-swimlane-content {
        padding: 0 16px;
    }
}

@media (max-width: 576px) {
    .contents-hero-search-container {
        width: 100%;
    }

    .contents-hero-search-wrapper {
        width: 100%;
        max-width: 328px;
        min-width: 0;
        flex: 1 1 auto;
    }

    .contents-hero-search-input {
        width: 100%;
        min-width: 0;
        display: block;
    }
}
