@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,700;0,800;0,900;1,800&family=Outfit:wght@700;800;900&family=Plus+Jakarta+Sans:wght@700;800&family=Roboto:wght@400;500;700&display=swap');

:root {
    --fl-blue: #2563eb;
    --fl-blue-hover: #1d4ed8;
    --fl-blue-dark: #1e40af;
    --fl-blue-light: #eff6ff;

    --bg-page: #ffffff;
    --bg-card: #ffffff;
    --bg-dropdown: #f8fafc;
    --text-main: #212529;
    --text-muted: #64748b;
    --text-dark: #0f172a;
    --border-color: #e2e8f0;
    --border-subtle: #f1f5f9;

    --content-max-width: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
}

.site-header {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
    background: #ffffff;
    padding: 0.85rem 2.25rem;
}

.header-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.brand-ball-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(37, 99, 235, 0.2));
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo-link:hover .brand-ball-logo {
    transform: rotate(25deg) scale(1.08);
}

.brand-title {
    font-family: 'Kanit', 'Outfit', sans-serif;
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--fl-blue);
    letter-spacing: -0.03em;
    line-height: 1;
    display: inline-block;
    text-shadow: 0 1px 2px rgba(37, 99, 235, 0.12);
    transition: color 0.2s ease;
}

.logo-link:hover .brand-title {
    color: var(--fl-blue-hover);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.header-nav::-webkit-scrollbar {
    display: none;
}

.nav-channel {
    color: #475569;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
    transition: all 0.15s ease;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
}

.nav-channel:hover {
    color: var(--fl-blue);
    background-color: var(--fl-blue-light);
}

.nav-channel.active {
    color: var(--fl-blue);
    background-color: var(--fl-blue-light);
    font-weight: 700;
}

.main-wrapper {
    width: 100%;
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-intro {
    text-align: center;
    padding: 2.5rem 0 2rem;
}

.hero-main-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.35rem;
    font-weight: 800;
    color: var(--fl-blue);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.hero-text-block {
    max-width: 860px;
    margin: 0 auto;
    font-size: 0.94rem;
    color: #334155;
    line-height: 1.7;
}

.hero-text-block p {
    margin-bottom: 0.85rem;
}

.hero-text-block strong {
    color: #0f172a;
    font-weight: 700;
}

.hero-text-block a.green-link {
    color: var(--fl-blue);
    font-weight: 700;
    text-decoration: underline;
}

.hero-text-block a.green-link:hover {
    color: var(--fl-blue-hover);
}

.agenda-wrapper {
    margin-bottom: 1rem;
}

.agenda-header-banner {
    background: linear-gradient(135deg, var(--fl-blue), var(--fl-blue-dark));
    color: #ffffff;
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: 6px 6px 0 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}

.agenda-search-box {
    display: flex;
    align-items: center;
    background: transparent;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1.45rem;
    gap: 0.65rem;
}

.search-box-icon {
    color: #94a3b8;
    flex-shrink: 0;
}

.search-field-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 0.94rem;
    font-weight: 500;
    color: var(--text-dark);
    padding: 0.2rem 0;
}

.search-field-input::placeholder {
    color: #94a3b8;
    font-size: 0.9rem;
}

.matches-table {
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 6px 6px;
    background: #ffffff;
    overflow: hidden;
}

.match-item {
    border-bottom: 1px solid var(--border-color);
}

.match-item:last-child {
    border-bottom: none;
}

.match-header-row {
    display: flex;
    align-items: center;
    padding: 0.85rem 1.45rem;
    cursor: pointer;
    user-select: none;
    gap: 0.95rem;
    background-color: #ffffff;
    transition: background-color 0.12s ease;
}

.match-header-row:hover {
    background-color: var(--fl-blue-light);
}

.match-item.expanded .match-header-row {
    background-color: #f1f5f9;
}

.match-time {
    position: relative;
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--text-dark);
    min-width: 58px;
    letter-spacing: -0.01em;
    padding-right: 1.25rem;
    margin-right: 0.25rem;
    display: inline-flex;
    align-items: center;
}

.match-time::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4.5px;
    height: 24px;
    background-color: var(--fl-blue);
    border-radius: 999px;
}

.match-league-img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    flex-shrink: 0;
    padding: 2px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
}

.match-league-fallback {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    flex-shrink: 0;
    padding: 4px;
    background: linear-gradient(145deg, #ffffff, #edf2f7);
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

.match-title-text {
    font-size: 0.94rem;
    font-weight: 500;
    color: var(--text-dark);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-title-text strong {
    font-weight: 700;
    color: var(--text-dark);
}

.match-expand-icon {
    color: #94a3b8;
    transition: transform 0.2s ease;
    margin-left: auto;
    flex-shrink: 0;
}

.match-item.expanded .match-expand-icon {
    transform: rotate(180deg);
    color: var(--fl-blue);
}

.channels-dropdown {
    display: none;
    background-color: #f8fafc;
    border-top: 1px solid var(--border-color);
    padding: 1.15rem 1.65rem 1.35rem;
    animation: fadeInDropdown 0.2s ease;
}

@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(-3px); }
    to { opacity: 1; transform: translateY(0); }
}

.match-item.expanded .channels-dropdown {
    display: block;
}

.channels-dropdown-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.channels-dropdown-title svg {
    color: var(--fl-blue);
    flex-shrink: 0;
}

.channels-btn-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.channel-play-btn {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: #0f172a;
    padding: 0.55rem 1.25rem 0.55rem 0.85rem;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.channel-play-icon {
    width: 26px;
    height: 26px;
    background: #eff6ff;
    color: var(--fl-blue);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.channel-play-btn:hover {
    background-color: var(--fl-blue);
    border-color: var(--fl-blue);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}

.channel-play-btn:hover .channel-play-icon {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.loading-row,
.empty-row {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-muted);
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-color);
    border-top-color: var(--fl-blue);
    border-radius: 50%;
    margin: 0 auto 0.75rem;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: #ffffff;
    border-radius: 8px;
    width: 100%;
    max-width: 900px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
}

.modal-header-bar {
    background: linear-gradient(135deg, var(--fl-blue), var(--fl-blue-dark));
    color: #ffffff;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    transition: background 0.15s;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.9);
}

.iframe-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
}

.stream-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.modal-footer-bar {
    padding: 0.75rem 1rem;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-top: 1px solid var(--border-color);
}

.modal-servers-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.server-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: var(--text-dark);
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease;
}

.server-btn:hover,
.server-btn.active {
    background: var(--fl-blue);
    border-color: var(--fl-blue);
    color: #ffffff;
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.3);
}

.site-footer {
    text-align: center;
    padding: 2.5rem 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.channels-grid-section {
    margin-bottom: 1rem;
}

.channels-section-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.channels-section-heading svg {
    color: var(--fl-blue);
}

.channels-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.channel-modern-box {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.15rem 1.1rem 1.15rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}


.channel-logo-stage {
    background: #edf2f7;
    border: none;
    border-radius: 6px;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
    padding: 0.65rem 1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.channel-modern-box:hover .channel-logo-stage {
    transform: scale(1.02);
}

.channel-stage-img {
    max-height: 48px;
    max-width: 80%;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.channel-modern-box:hover .channel-stage-img {
    transform: scale(1.06);
}

.channel-modern-box h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.35rem;
    letter-spacing: -0.015em;
    transition: color 0.2s ease;
}

.channel-modern-box:hover h2 {
    color: var(--fl-blue);
}

.channel-modern-box p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.1rem;
    flex: 1;
    min-height: 40px;
}

.channel-ver-btn {
    width: 100%;
    background: #2563eb; 
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.28);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.channel-ver-btn svg {
    flex-shrink: 0;
}

.channel-ver-btn:hover {
    background: #1d4ed8; 
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
}

.seo-info-container {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem 1.5rem;
    margin-bottom: 1rem;
}

.seo-info-container h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.32rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.015em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.seo-info-container h2:first-of-type {
    margin-top: 0;
}

.seo-info-container p {
    font-size: 0.94rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 1.15rem;
}

.leagues-country-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 1.15rem 0 1.85rem;
}

.league-tag-pill {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.35rem 0.75rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: #1e293b;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}

.league-tag-pill:hover {
    border-color: var(--fl-blue);
    background: var(--fl-blue-light);
    color: var(--fl-blue);
}

.rating-counter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.25rem;
    padding: 1.15rem 1.4rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin: 2rem 0;
}

.seo-rating-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.rating-stars {
    color: #f59e0b;
    font-size: 1.15rem;
    letter-spacing: 2px;
}

.rating-score {
    font-weight: 800;
    color: var(--text-dark);
    font-size: 1.05rem;
}

.rating-votes {
    color: #64748b;
    font-size: 0.86rem;
}

.live-users-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 9999px;
    padding: 0.45rem 1.1rem;
    font-size: 0.88rem;
    color: #0f172a;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.live-pulse-dot {
    width: 9px;
    height: 9px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin: 1.75rem 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.seo-sports-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    text-align: left;
    background: #ffffff;
}

.seo-sports-table th {
    background: #f8fafc;
    color: var(--text-dark);
    font-weight: 700;
    padding: 0.85rem 1.15rem;
    border-bottom: 1.5px solid var(--border-color);
    white-space: nowrap;
}

.seo-sports-table td {
    padding: 0.8rem 1.15rem;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}

.seo-sports-table tr:last-child td {
    border-bottom: none;
}

.seo-sports-table tr:hover td {
    background-color: #f8fafc;
}

.badge-live-tag {
    background: #eff6ff;
    color: var(--fl-blue);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    border: 1px solid #bfdbfe;
    display: inline-block;
}

.seo-faqs-list {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.faq-card:hover {
    border-color: #cbd5e1;
}

.faq-question {
    padding: 1rem 1.25rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-dark);
    background: #f8fafc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    user-select: none;
}

.faq-toggle-icon {
    color: var(--fl-blue);
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.faq-card.open .faq-toggle-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 1rem 1.25rem;
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.65;
    border-top: 1px solid var(--border-color);
}

.seo-conclusion-box {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 1100px) {
    .channels-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 640px) {
    .channels-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .site-header {
        padding: 0.75rem 1rem;
    }

    .hero-main-title {
        font-size: 1.85rem;
    }

    .match-title-text {
        font-size: 0.86rem;
    }

    .match-header-row {
        padding: 0.65rem 0.75rem;
        gap: 0.5rem;
    }

    .header-nav {
        display: none;
    }
}