/* Site footer — home, watch, legal pages */

.site-footer {
    position: relative;
    z-index: 1;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(4, 8, 18, 0.4), rgba(4, 8, 18, 0.92));
    padding: 36px 16px;
    padding-bottom: max(36px, env(safe-area-inset-bottom));
}

.site-footer-home {
    margin-top: 0;
}

/* Watch page: hide duplicate info cards — footer covers links + disclaimer */
body.mobile-view-watch .info-grid {
    display: none !important;
}

.site-footer-watch {
    margin-top: 20px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 28px 20px;
    padding-bottom: max(28px, env(safe-area-inset-bottom));
    background:
        linear-gradient(180deg, rgba(8, 12, 24, 0.55), rgba(4, 8, 18, 0.95));
}

.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.site-footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 28px 32px;
    margin-bottom: 28px;
}

.site-footer-brand-col {
    min-width: 0;
}

.site-footer-brand {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    border-radius: 12px;
    transition: opacity 0.2s ease;
}

.site-footer-brand:hover {
    opacity: 0.88;
}

.site-footer-logo {
    height: 44px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    object-position: left center;
}

.site-footer-tagline {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
}

.site-footer-disclaimer {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.6;
    max-width: 360px;
}

.site-footer-heading {
    margin: 0 0 12px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-light);
}

.site-footer-nav {
    display: grid;
    gap: 8px;
}

.site-footer-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    color: #c8d4ef;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-footer-nav a:hover {
    color: #fff;
    transform: translateX(2px);
}

.site-footer-nav-highlight {
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(0, 201, 122, 0.1);
    border: 1px solid rgba(0, 201, 122, 0.24);
    color: var(--accent-light) !important;
    font-weight: 600;
}

.site-footer-nav-highlight:hover {
    background: rgba(0, 201, 122, 0.16);
    transform: none;
}

.site-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.site-footer-copy,
.site-footer-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.site-footer-note a {
    color: var(--accent-light);
}

/* Desktop watch page */
@media (min-width: 901px) {
    body.mobile-view-watch .site-footer-watch {
        margin: 24px 28px 32px;
        width: auto;
    }

    body.mobile-view-watch .main {
        padding-bottom: 0;
    }
}

/* Large desktop — grid row for footer */
@media (min-width: 1200px) {
    body.mobile-view-watch .site-footer-watch {
        grid-area: foot;
        margin: 24px 0 0;
        width: 100%;
    }
}

@media (max-width: 900px) {
    body.mobile-view-watch .site-footer-watch {
        order: 5;
        margin: 0;
        margin-top: auto;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding: 24px 16px calc(88px + env(safe-area-inset-bottom));
    }

    body.mobile-view-watch .fifa-matches-section {
        margin-bottom: 16px !important;
    }

    body.mobile-view-watch .player-section {
        padding-bottom: 0 !important;
    }

    .site-footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .site-footer-disclaimer {
        max-width: none;
    }

    .site-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    body.mobile-view-watch .site-footer-watch {
        padding: 22px 14px calc(84px + env(safe-area-inset-bottom));
    }

    .site-footer-nav a {
        min-height: 40px;
    }
}

body.device-tv .site-footer-watch {
    margin-inline: var(--tv-safe-x);
    margin-bottom: 32px;
}
