/* ==========================================================================
   T20SportsTV – ICC Men's T20 World Cup 2026
   Mobile-first, dark theme rgb(15, 23, 42)
   ========================================================================== */

:root {
    --bg: rgb(15, 23, 42);
    --bg-card: rgb(30, 41, 59);
    --text: rgb(248, 250, 252);
    --text-muted: rgb(148, 163, 184);
    --accent: rgb(34, 197, 94);
    --border: rgb(51, 65, 85);
    --header-height: 56px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --------------------------------------------------------------------------
   Header – sticky
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--bg);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: center;
}

.logo img {
    max-width: 117px;
    width: auto;
    height: auto;
    max-height: 63px;
    display: block;
    object-fit: contain;
}

.logo:hover {
    color: var(--accent);
}

.logo:hover img {
    opacity: 0.9;
}

/* Nav toggle (mobile) */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-card);
    color: var(--text);
    cursor: pointer;
}

.nav-toggle:hover {
    border-color: var(--accent);
}

.nav-toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    margin: 0 auto;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.2s;
}

.site-header.is-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.site-header.is-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}
.site-header.is-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Main nav */
.main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    padding: 1.5rem;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
}

.site-header.is-open .main-nav {
    transform: translateX(0);
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-list a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--accent);
    background: rgba(34, 197, 94, 0.1);
}

/* --------------------------------------------------------------------------
   Layout: left/right ad sidebars + main content
   -------------------------------------------------------------------------- */
.layout-with-sidebars {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    flex: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.main-content {
    flex: 1;
    width: 100%;
    min-width: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem 2rem;
}

.ad-sidebar-left,
.ad-sidebar-right {
    min-height: 250px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 41, 59, 0.6);
    border: 1px dashed var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.8125rem;
    padding: 0.5rem;
    box-sizing: border-box;
}

@media (max-width: 1023px) {
    .ad-sidebar-left,
    .ad-sidebar-right {
        display: none !important;
    }
}

@media (min-width: 1024px) {
    .layout-with-sidebars {
        grid-template-columns: 160px 1fr 160px;
        gap: 0;
    }
    .ad-sidebar-left {
        padding: 1rem 0.5rem;
        position: sticky;
        top: calc(var(--header-height) + 0.5rem);
        align-self: start;
    }
    .ad-sidebar-right {
        padding: 1rem 0.5rem;
        position: sticky;
        top: calc(var(--header-height) + 0.5rem);
        align-self: start;
    }
}

@media (min-width: 1200px) {
    .layout-with-sidebars {
        grid-template-columns: 200px 1fr 200px;
    }
}

.page-title {
    margin: 0 0 1rem;
    font-size: 1.75rem;
    font-weight: 700;
}

.page-intro {
    color: var(--text-muted);
    margin: 0 0 1.5rem;
    max-width: 60ch;
}

/* Cards / sections */
.section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    color: var(--text);
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
}

.card:last-child {
    margin-bottom: 0;
}

/* Grid layouts */
.grid-2 {
    display: grid;
    gap: 1rem;
}

.grid-3 {
    display: grid;
    gap: 1rem;
}

/* Tables */
.table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
}

table {
    width: 100%;
    min-width: 400px;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

th,
td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: var(--bg-card);
    font-weight: 600;
    color: var(--text-muted);
}

tr:last-child td {
    border-bottom: 0;
}

tr:hover td {
    background: rgba(51, 65, 85, 0.3);
}

/* Fixtures: status badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
}
.status-scheduled {
    background: rgba(234, 179, 8, 0.2);
    color: rgb(250, 204, 21);
    border: 1px solid rgba(234, 179, 8, 0.4);
}
.status-live {
    background: rgba(34, 197, 94, 0.2);
    color: rgb(74, 222, 128);
    border: 1px solid rgba(34, 197, 94, 0.4);
}
.status-result {
    background: rgba(100, 116, 139, 0.3);
    color: rgb(203, 213, 225);
    border: 1px solid rgba(100, 116, 139, 0.4);
}

/* Fixtures table: responsive cards on small screens */
@media (max-width: 767px) {
    .fixtures-table thead {
        display: none;
    }
    .fixtures-table tr {
        display: block;
        margin-bottom: 0.75rem;
        border: 1px solid var(--border);
        border-radius: 8px;
        overflow: hidden;
    }
    .fixtures-table td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
        border-bottom: 1px solid var(--border);
    }
    .fixtures-table td:last-child {
        border-bottom: 0;
    }
    .fixtures-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-muted);
        flex-shrink: 0;
    }
    .fixtures-table .col-teams {
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* Hero (homepage) */
.hero {
    text-align: center;
    padding: 2rem 1rem 2.5rem;
    margin: 0 -1rem 2rem;
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.08) 0%, transparent 100%);
    border-radius: 0 0 16px 16px;
    border-bottom: 1px solid var(--border);
}

.hero h1,
.hero-title {
    margin: 0 0 0.5rem;
    font-size: 1.75rem;
    font-weight: 800;
}

.hero .tagline,
.hero-tagline {
    color: var(--text-muted);
    margin: 0;
    font-size: 1rem;
}

.hero-home {
    padding: 2.5rem 1rem 3rem;
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.12) 0%, rgba(34, 197, 94, 0.04) 50%, transparent 100%);
}

.hero-home .hero-title {
    font-size: 1.875rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-badge {
    display: inline-block;
    margin: 0 0 0.5rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: 999px;
}

.hero-desc {
    margin: 0.75rem 0 0;
    font-size: 0.9375rem;
    color: var(--text-muted);
    max-width: 42ch;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* Home: Live T20 video section (right after hero) */
.home-live-video {
    margin-bottom: 2.5rem;
}

.live-video-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.live-video-header .home-section-title {
    margin: 0;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--bg);
    background: #ef4444;
    border-radius: 4px;
    animation: live-pulse 1.5s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

.live-video-wrapper {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

/* 16:9 responsive video container */
.live-video-wrapper::before {
    content: '';
    display: block;
    padding-top: 56.25%;
}

.live-video-player,
.live-video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.live-video-player {
    border: 0;
}

.live-video-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
}

.live-video-placeholder-inner {
    text-align: center;
    padding: 2rem;
    max-width: 360px;
}

.live-video-placeholder-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    font-size: 1.75rem;
    color: var(--accent);
    background: rgba(34, 197, 94, 0.15);
    border: 2px solid rgba(34, 197, 94, 0.4);
    border-radius: 50%;
}

.live-video-placeholder-title {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
}

.live-video-placeholder-desc {
    margin: 0 0 1.25rem;
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.live-video-placeholder .btn {
    margin-top: 0.25rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: var(--bg);
    background: var(--accent);
    border: 2px solid var(--accent);
}

.btn-primary:hover {
    background: rgb(22, 163, 74);
    border-color: rgb(22, 163, 74);
}

.btn-secondary {
    color: var(--text);
    background: transparent;
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-large {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* Home sections */
.home-section {
    margin-bottom: 2rem;
}

.home-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: var(--text);
}

.home-empty {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.home-section-link {
    margin: 1rem 0 0;
    font-size: 0.9375rem;
}

.home-section-link a {
    color: var(--accent);
}

.home-section-desc {
    margin: -0.5rem 0 1rem;
    font-size: 0.9375rem;
    color: var(--text-muted);
}

/* Home: tournament at a glance */
.home-stats-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
}

.home-stat-card {
    text-align: center;
    padding: 1.25rem 1rem;
    transition: border-color 0.2s;
}

.home-stat-card:hover {
    border-color: var(--accent);
}

.home-stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1.2;
}

.home-stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Home: groups */
.home-groups-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.home-group-card {
    padding: 1rem 1.25rem;
}

.home-group-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: var(--text);
}

.home-group-teams {
    list-style: none;
    margin: 0;
    padding: 0;
}

.home-group-team {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    font-size: 0.9375rem;
}

.home-group-team a {
    color: var(--text);
    text-decoration: none;
}

.home-group-team a:hover {
    color: var(--accent);
}

.home-group-flag {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    display: block;
    background: rgba(51, 65, 85, 0.5);
}

/* Home: format */
.home-format-steps {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.home-format-step {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
}

.home-format-num {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--bg);
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

.home-format-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text);
}

.home-format-desc {
    flex: 1 1 100%;
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Home: venues */
.home-venues-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.home-venue-card {
    padding: 1rem 1.25rem;
}

.home-venue-country {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--text);
}

.home-venue-list {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.home-venue-list li {
    margin-bottom: 0.25rem;
}

/* Home: upcoming matches */
.home-matches {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.home-match-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    padding: 1rem 1.25rem;
    transition: border-color 0.2s, transform 0.1s;
}

.home-match-card:hover {
    border-color: var(--accent);
}

.home-match-date {
    font-size: 0.8125rem;
    color: var(--text-muted);
    flex: 0 0 100%;
}

.home-match-teams {
    flex: 1;
    min-width: 0;
}

.home-match-venue,
.home-match-time {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Home: points preview */
.home-points-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.home-points-card {
    padding: 1rem 1.25rem;
}

.home-points-group {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--text);
}

.home-points-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.home-points-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    font-size: 0.9375rem;
}

.home-points-team {
    font-weight: 500;
}

.home-points-pts {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Home: latest news */
.home-news-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.home-news-card {
    padding: 0;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.1s;
}

.home-news-card:hover {
    border-color: var(--accent);
}

.home-news-link {
    display: block;
    padding: 1rem 1.25rem;
    color: inherit;
    text-decoration: none;
}

.home-news-link:hover {
    text-decoration: none;
}

.home-news-title {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.home-news-summary {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.home-news-time {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Home: CTA section */
.home-cta-section {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
}

.home-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.home-cta-buttons .btn {
    flex: 1;
    min-width: 140px;
    text-align: center;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Ad placeholders – replace content with Google AdSense or other ad code */
.ad-banner,
.ad-sidebar,
.ad-inline {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 41, 59, 0.6);
    border: 1px dashed var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.ad-banner {
    width: 100%;
    min-height: 90px;
    margin-bottom: 1rem;
    padding: 0 1rem;
    box-sizing: border-box;
}

.ad-sidebar,
.ad-sidebar-left,
.ad-sidebar-right {
    min-width: 160px;
    min-height: 250px;
    flex-shrink: 0;
}

.ad-inline {
    min-height: 90px;
    margin: 1.5rem 0;
}

@media (max-width: 767px) {
    .ad-sidebar {
        display: none !important;
    }
}

.ad-footer-zone {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
    padding: 0 1rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .ad-footer-zone {
        grid-template-columns: 1fr 160px;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .ad-footer-zone .ad-banner {
        grid-column: 1 / -1;
    }
}

/* Links */
a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a.card {
    color: inherit;
    text-decoration: none;
}

a.card:hover {
    text-decoration: none;
    border-color: var(--accent);
}

/* Teams page: grid cards with logo + name */
.team-cards-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    transition: border-color 0.2s, transform 0.15s;
}

.team-card:hover {
    transform: translateY(-2px);
}

.team-card .team-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 0.75rem;
}

.team-card .team-logo.team-flag {
    border-radius: 6px;
    object-fit: cover;
}

.team-card .team-logo-fallback {
    width: 80px;
    height: 80px;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(51, 65, 85, 0.5);
    border-radius: 50%;
}

.team-card .team-name {
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
}

/* Squad page: scroll targets for team anchors */
.squad-anchor-target {
    scroll-margin-top: calc(var(--header-height) + 0.5rem);
}

/* Squads page: accordion per team */
.squads-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.squad-accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    scroll-margin-top: calc(var(--header-height) + 0.5rem);
}

.squad-accordion-item[open] .squad-accordion-summary {
    border-bottom-color: var(--border);
}

.squad-accordion-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    color: var(--text);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.squad-accordion-summary::-webkit-details-marker {
    display: none;
}

.squad-accordion-summary::after {
    content: '';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E") center/contain no-repeat;
    transition: transform 0.2s;
}

.squad-accordion-item[open] .squad-accordion-summary::after {
    transform: rotate(180deg);
}

.squad-accordion-flag {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.squad-accordion-title {
    flex: 1;
}

.squad-accordion-count {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}

.squad-accordion-content {
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid transparent;
}

.squad-player-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.squad-player {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9375rem;
}

.squad-player:last-child {
    border-bottom: 0;
}

.squad-player-name {
    font-weight: 500;
    color: var(--text);
}

.squad-player-role {
    font-size: 0.8125rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.squad-empty {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

/* News page: card-based responsive layout */
.news-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.news-card {
    display: block;
    padding: 1.25rem 1.25rem;
    transition: border-color 0.2s, transform 0.15s;
}

.news-card:hover {
    transform: translateY(-2px);
}

.news-card-title {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text);
}

.news-card-summary {
    margin: 0 0 0.5rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.news-card-time {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-muted);
    opacity: 0.9;
}

.news-error {
    border-color: rgba(234, 179, 8, 0.5);
    background: rgba(234, 179, 8, 0.06);
}

.news-error-text {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.news-error-text a {
    color: var(--accent);
}

/* Live TV page: responsive cards + Watch Now button */
.live-tv-disclaimer {
    margin-bottom: 1.25rem;
    border-color: rgba(148, 163, 184, 0.4);
    background: rgba(51, 65, 85, 0.3);
}

.live-tv-disclaimer-text {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.live-tv-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.live-tv-card {
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.25rem;
}

.live-tv-card-title {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
}

.live-tv-card-desc {
    margin: 0 0 1rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--text-muted);
    flex: 1;
}

.live-tv-btn {
    display: inline-block;
    align-self: flex-start;
    padding: 0.5rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--bg);
    background: var(--accent);
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
}

.live-tv-btn:hover {
    background: rgb(22, 163, 74);
    transform: translateY(-1px);
}

.live-tv-btn:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
    margin-top: auto;
    padding: 1.5rem 1rem;
    border-top: 1px solid var(--border);
    background: var(--bg-card);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.copyright {
    margin: 0 0 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.disclaimer {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.9;
    max-width: 56ch;
    margin-left: auto;
    margin-right: auto;
}

/* --------------------------------------------------------------------------
   Desktop: show nav inline, hide toggle
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }

    .main-nav {
        position: static;
        padding: 0;
        overflow: visible;
        transform: none;
    }

    .nav-list {
        flex-direction: row;
        gap: 0;
    }

    .nav-list a {
        padding: 0.5rem 0.75rem;
        margin: 0 0.25rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-2.grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .team-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1,
    .hero-home .hero-title {
        font-size: 2.25rem;
    }

    .home-points-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .home-groups-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-format-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-venues-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .header-inner,
    .main-content {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .hero-home .hero-title {
        font-size: 2.5rem;
    }

    .home-points-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .home-groups-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .home-format-steps {
        grid-template-columns: repeat(4, 1fr);
    }

    .grid-2.grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .team-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .team-cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .live-tv-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
