/**
 * TV CHANNELS MASTER DIRECTORY STYLESHEET
 * Performance-optimized, responsive layout for /live-tv/ index page.
 * Version: 3.1.0
 */

/* ==========================================================================
   Base & Layout
   ========================================================================== */
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #0b0e11;
    color: #cbd5e1;
}

.s2w-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.dazn-hero {
    background: radial-gradient(ellipse at top, rgba(37,99,235,0.12) 0%, rgba(11,14,17,0) 70%), #0b0e11;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 44px 0 40px;
    text-align: center;
}

.dazn-hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.dazn-hero-title {
    font-size: clamp(28px, 4.5vw, 42px);
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.025em;
    line-height: 1.18;
    margin: 0 0 16px;
}

.dazn-hero-desc {
    color: #94a3b8;
    font-size: 16px;
    line-height: 1.68;
    font-weight: 400;
    max-width: 820px;
    margin: 0 auto 24px;
}

.dazn-badge-verified {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 20px;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.hero-feature-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
    margin-top: 32px;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-feature-item i {
    color: var(--accent-green, #22c55e);
    font-size: 18px;
}

/* ==========================================================================
   Trust Bar
   ========================================================================== */
.trust-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px 24px;
    flex-wrap: wrap;
    padding: 8px 18px;
    margin: 24px auto;
    width: fit-content;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 9999px;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.04);
}

.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #cbd5e1;
    white-space: nowrap;
}

.trust-item i {
    font-size: 15px;
    line-height: 1;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.trust-icon-blue { color: #3b82f6; }
.trust-icon-green { color: #22c55e; }
.trust-icon-amber { color: #eab308; }

.ch-hidden-init { display: none; }
.net-fallback-icon { font-size: 28px; color: #64748b; }
.dazn-pill-ghost { background: rgba(255, 255, 255, 0.05); color: #cbd5e1; }

.section-heading-wrap { margin-bottom: 24px; }
.section-tag-blue {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.25);
    padding: 4px 10px;
    border-radius: 8px;
    margin-bottom: 6px;
}
.section-title-lg { font-size: 24px; font-weight: 800; color: #ffffff; margin: 0; }

.cp-globe-icon { font-size: 1.3rem; color: #94a3b8; }
.cp-flag-icon { font-size: 1.1rem; }

.section-header-flex-end {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.section-tag-gold {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.25);
    padding: 4px 10px;
    border-radius: 8px;
    margin-bottom: 6px;
    text-transform: uppercase;
}
.section-view-all-link {
    font-size: 13px;
    font-weight: 700;
    color: #60a5fa;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.section-view-all-link:hover { color: #93c5fd; }

.region-box-icon { font-size: 20px; color: var(--primary, #3b82f6); }
.league-row-right { display: flex; align-items: center; gap: 8px; }
.league-arrow-icon { color: var(--primary, #3b82f6); font-size: 14px; }
.editorial-tool-link {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px dashed rgba(96, 165, 250, 0.4);
}
.editorial-sub-title { font-size: 16px; font-weight: 800; margin-bottom: 14px; color: #ffffff; }

/* ==========================================================================
   Directory Header & Controls
   ========================================================================== */
.verified-networks-section {
    margin: 40px 0 50px 0;
    width: 100%;
}

.section-header-flex {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: 8px;
    margin-bottom: 26px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-header-title-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.section-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.2);
    padding: 5px 12px;
    border-radius: 8px;
    margin: 0;
}

.section-main-heading {
    font-size: clamp(20px, 3.2vw, 26px);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: 0;
}

.channels-count-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 6px 14px;
    border-radius: 9999px;
    white-space: nowrap;
}

.channels-count-indicator strong {
    color: #ffffff;
    font-weight: 700;
}

.channels-count-indicator .count-live-icon {
    color: #22c55e;
    font-size: 15px;
}

.channel-controls-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.channel-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    margin: 0;
}

.channel-filter-tabs .dazn-pill {
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.04);
    color: #94a3b8;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
    min-height: 44px;
    padding: 8px 16px;
    font-weight: 700;
}

.channel-filter-tabs .dazn-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.channel-filter-tabs .dazn-pill.pill-accent,
.channel-filter-tabs .dazn-pill[aria-pressed="true"],
.channel-filter-tabs .dazn-pill.active {
    background: #38bdf8 !important;
    color: #000000 !important;
    border-color: #38bdf8 !important;
    font-weight: 800 !important;
}

.channel-filter-tabs .dazn-pill.pill-accent i,
.channel-filter-tabs .dazn-pill[aria-pressed="true"] i,
.channel-filter-tabs .dazn-pill.active i {
    color: #000000 !important;
}

.channel-search-box {
    position: relative;
    flex: 1;
    max-width: 360px;
    min-width: 220px;
}

.channel-search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 16px;
    pointer-events: none;
}

.channel-search-box input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 14px 10px 38px;
    color: #ffffff;
    font-size: 13.5px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    min-height: 44px;
    box-sizing: border-box;
}

.channel-search-box input:focus {
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* ==========================================================================
   Network Wall & Cards
   ========================================================================== */
.network-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.network-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    position: relative;
    overflow: hidden;
    min-height: 170px;
    box-sizing: border-box;
}

.network-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 16px 30px -10px rgba(0, 0, 0, 0.55);
    background: rgba(255, 255, 255, 0.04);
}

.network-card:focus-visible {
    outline: 2px solid var(--primary, #3b82f6);
    outline-offset: 2px;
}

.network-card .net-logo {
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.network-card .net-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.network-card .net-name {
    font-weight: 800;
    font-size: 15px;
    color: #ffffff;
    margin-bottom: 6px;
    line-height: 1.25;
}

.network-card .net-country {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 2px 8px;
    margin-top: auto;
}

/* ==========================================================================
   Empty States & Pagination
   ========================================================================== */
.empty-search-state {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    margin-top: 16px;
}

.empty-search-state i {
    font-size: 32px;
    color: #64748b;
    margin-bottom: 8px;
}

.empty-search-state h4 {
    color: #ffffff;
    font-size: 16px;
    margin: 0 0 6px 0;
}

.empty-search-state p {
    color: #94a3b8;
    font-size: 13px;
    margin: 0 0 14px 0;
}

.load-more-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

.load-more-controls .dazn-pill {
    border: none;
    cursor: pointer;
    font-size: 13px;
    padding: 10px 24px;
    min-height: 44px;
}

/* ==========================================================================
   Bundle Finder CTA
   ========================================================================== */
.bundle-cta-box {
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-radius: 16px;
    padding: 40px 24px;
    margin: 40px 0 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.bundle-cta-bg-icon {
    position: absolute;
    top: -40px;
    right: -20px;
    opacity: 0.04;
    pointer-events: none;
}

.bundle-cta-bg-icon i {
    font-size: 250px;
    color: var(--primary, #3b82f6);
}

.bundle-cta-content {
    position: relative;
    z-index: 2;
}

.bundle-cta-tag {
    font-size: 12px;
    font-weight: 800;
    color: #60a5fa;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.bundle-cta-title {
    font-size: clamp(22px, 3.5vw, 30px);
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.bundle-cta-desc {
    color: #94a3b8;
    font-size: 15px;
    margin: 0 auto 24px;
    max-width: 620px;
    line-height: 1.65;
}

.btn-channel-finder {
    background: var(--primary, #3b82f6);
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    min-height: 44px;
}

.btn-channel-finder:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.4);
}

/* ==========================================================================
   Continental Directory Map
   ========================================================================== */
.region-map {
    margin-bottom: 60px;
}

.region-block {
    margin-bottom: 32px;
}

.region-title {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 8px;
}

.region-title span {
    font-size: 13px;
    font-weight: normal;
    color: #94a3b8;
}

.country-pills {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.country-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, background 0.2s ease;
    min-height: 44px;
    box-sizing: border-box;
}

.country-pill:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.country-pill:focus-visible {
    outline: 2px solid var(--primary, #3b82f6);
    outline-offset: 2px;
}

.country-pill .cp-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.country-pill .cp-name {
    font-weight: 600;
    font-size: 14px;
}

.country-pill .cp-count {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 6px;
}

/* ==========================================================================
   Featured Leagues by Region Section
   ========================================================================== */
.featured-leagues-region-section {
    margin-bottom: 60px;
}

.region-league-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.region-league-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.region-league-box-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.region-league-box-header h3 {
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.region-league-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.league-row-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px 14px;
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    min-height: 44px;
    box-sizing: border-box;
}

.league-row-link:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(255, 255, 255, 0.04);
}

.league-row-link:focus-visible {
    outline: 2px solid var(--primary, #3b82f6);
    outline-offset: 2px;
}

.league-row-title {
    font-weight: 700;
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 2px;
}

.league-row-sport {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

.league-active-badge {
    font-size: 11px;
    font-weight: 700;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    padding: 2px 7px;
    border-radius: 6px;
}

.region-explore-footer {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.region-explore-footer a {
    font-size: 12px;
    font-weight: 700;
    color: #60a5fa;
    text-decoration: none;
}

.region-explore-footer a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Editorial Block & FAQ Accordion
   ========================================================================== */
.editorial-block {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 40px;
}

.editorial-block h2 {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 14px;
    color: #ffffff;
}

.editorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.editorial-block p {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.editorial-block p:last-child {
    margin-bottom: 0;
}

.editorial-standards-list {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.7;
    padding-left: 20px;
    list-style-type: disc;
    margin: 0;
}

.editorial-standards-list li {
    margin-bottom: 8px;
}

.editorial-standards-list strong {
    color: #ffffff;
}

.editorial-faq-title {
    font-size: 20px;
    font-weight: 800;
    margin: 40px 0 20px;
    text-align: center;
    color: #ffffff;
}

.faq-accordion details {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    margin-bottom: 12px;
    padding: 16px 20px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.faq-accordion details:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.faq-accordion summary {
    font-weight: 700;
    font-size: 15px;
    color: #ffffff;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: 32px;
}

.faq-accordion summary::-webkit-details-marker {
    display: none !important;
}

.faq-accordion summary::marker {
    display: none !important;
    content: "" !important;
}

.faq-accordion summary::after,
.faq-accordion summary::before {
    display: none !important;
    content: none !important;
}

.faq-accordion details[open] summary i {
    transform: rotate(180deg);
}

.faq-accordion summary i {
    transition: transform 0.2s ease;
    color: var(--primary, #3b82f6);
    flex-shrink: 0;
}

.faq-accordion p {
    color: #94a3b8;
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.68;
    margin-bottom: 0;
}

.faq-accordion p + p {
    margin-top: 10px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 768px) {
    .network-wall {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .country-pills {
        grid-template-columns: 1fr;
    }
    .editorial-block {
        padding: 22px 18px !important;
    }
    .trust-bar {
        gap: 6px 14px;
        padding: 8px 12px;
        border-radius: 12px;
        margin-top: 20px;
        margin-bottom: 20px;
        width: 100%;
    }
    .trust-item {
        font-size: 11px;
        gap: 5px;
    }
    .trust-item i {
        font-size: 13.5px;
    }
    .channel-controls-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .channel-search-box {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .network-wall {
        grid-template-columns: 1fr;
    }
}
