:root {
    --bg: #070a0e;
    --surface: #0f141c;
    --surface2: #161d28;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --accent: #22d3ee;
    --accent-dim: rgba(34, 211, 238, 0.15);
    --accent2: #fb7185;
    --accent3: #a78bfa;
    --border: rgba(148, 163, 184, 0.12);
    --radius: 14px;
    --radius-lg: 20px;
    --max: 1120px;
    --font: "DM Sans", system-ui, sans-serif;
    --font-display: "Plus Jakarta Sans", "DM Sans", system-ui, sans-serif;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.35);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    background:
        radial-gradient(ellipse 900px 500px at 85% -5%, rgba(34, 211, 238, 0.14), transparent 55%),
        radial-gradient(ellipse 700px 450px at 5% 15%, rgba(167, 139, 250, 0.1), transparent 50%),
        radial-gradient(ellipse 500px 400px at 50% 100%, rgba(251, 113, 133, 0.06), transparent 45%),
        linear-gradient(180deg, #05080c 0%, var(--bg) 35%, #05080c 100%);
    color: var(--text);
    line-height: 1.65;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--accent);
    color: #000;
    padding: 0.5rem 1rem;
    z-index: 100;
}

.skip-link:focus {
    left: 0.5rem;
    top: 0.5rem;
}

h1,
h2,
h3,
.logo {
    font-family: var(--font-display);
}

.wrap {
    width: min(100% - 2rem, var(--max));
    margin-inline: auto;
}

.site-header {
    border-bottom: 1px solid var(--border);
    background: rgba(7, 10, 14, 0.78);
    backdrop-filter: blur(14px) saturate(1.2);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
    gap: 1rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    text-decoration: none;
}

.logo-icon {
    flex-shrink: 0;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(34, 211, 238, 0.2);
}

.logo:hover {
    text-decoration: none;
}

.logo-mark {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1.35rem;
}

.logo-text {
    font-size: 1.1rem;
}

.nav-toggle {
    display: none;
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.nav-list a {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-list a:hover {
    color: var(--text);
}

@media (max-width: 720px) {
    .nav-toggle {
        display: inline-block;
    }

    .nav-list {
        display: none;
        position: absolute;
        right: 1rem;
        top: 3.5rem;
        flex-direction: column;
        align-items: flex-start;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 0.75rem 1rem;
        min-width: 200px;
    }

    .nav-list.is-open {
        display: flex;
    }
}

.hero-copy h1 {
    font-size: clamp(2rem, 4vw, 2.85rem);
    line-height: 1.12;
    margin: 0 0 1rem;
    letter-spacing: -0.03em;
}

.lead {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 62ch;
    margin: 0 0 1.5rem;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover {
    text-decoration: none;
    filter: brightness(1.05);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #38bdf8 45%, #818cf8);
    color: #041018;
    box-shadow: 0 4px 20px rgba(34, 211, 238, 0.25);
}

.btn-ghost {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}

.section {
    padding: 2.5rem 0;
}

.section h2 {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.muted {
    color: var(--muted);
}

.small {
    font-size: 0.875rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 900px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

.card {
    background: linear-gradient(145deg, rgba(22, 29, 40, 0.9), rgba(15, 20, 28, 0.95));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.35rem 1.4rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    border-color: rgba(34, 211, 238, 0.22);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

th,
td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: var(--surface2);
    font-weight: 600;
    color: var(--muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

tr:last-child td {
    border-bottom: none;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}


.post-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.post-item {
    display: block;
    padding: 1.1rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease;
}

.post-item:hover {
    border-color: rgba(56, 189, 248, 0.35);
    text-decoration: none;
}

.post-item h3 {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
}

.post-meta {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.article {
    max-width: 720px;
}

.article h1 {
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.article .meta {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.prose p {
    margin: 0 0 1rem;
}

.prose h2 {
    margin: 2rem 0 0.75rem;
    font-size: 1.25rem;
}

.prose ul {
    margin: 0 0 1rem 1.1rem;
}

.prose code {
    font-size: 0.9em;
    background: var(--surface2);
    padding: 0.1rem 0.35rem;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.5rem;
    font-size: 0.92rem;
}

.prose th,
.prose td {
    border: 1px solid var(--border);
    padding: 0.5rem 0.65rem;
    text-align: left;
}

.prose th {
    background: rgba(0, 0, 0, 0.28);
}

.blog-inline-ad {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(34, 211, 238, 0.28);
    padding: 1.15rem 1.25rem;
    margin: 2rem 0;
    background: rgba(15, 20, 28, 0.9);
}

.blog-inline-ad__label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin: 0 0 0.5rem;
}

.blog-inline-ad a {
    color: #67e8f9;
    font-weight: 600;
}

.blog-inline-ad__img {
    width: 100%;
    max-width: 360px;
    height: auto;
    border-radius: 10px;
    display: block;
    margin: 0.65rem 0;
    border: 1px solid var(--border);
}

.site-footer {
    border-top: 1px solid var(--border);
    margin-top: 3rem;
    padding: 2.5rem 0 1.5rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(7, 10, 14, 0.94));
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 800px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
}

.footer-links li {
    margin-bottom: 0.35rem;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent2);
    margin-bottom: 0.5rem;
}

/* --- Rich blog cards & article imagery --- */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.post-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(160deg, rgba(22, 29, 40, 0.95), rgba(12, 16, 22, 0.98));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
    border-color: rgba(34, 211, 238, 0.28);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    text-decoration: none;
}

.post-card-visual {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--surface2);
}

.post-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.post-card:hover .post-card-visual img {
    transform: scale(1.04);
}

.post-card-body {
    padding: 1rem 1.15rem 1.2rem;
}

.post-card-body h3 {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.post-card-body .excerpt {
    margin: 0;
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.45;
}

.article-hero {
    margin: 0 0 1.75rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    background: var(--surface2);
}

.article-hero img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: middle;
}

.img-credit {
    font-size: 0.75rem;
    color: var(--muted);
    padding: 0.5rem 0.85rem;
    background: rgba(0, 0, 0, 0.35);
    margin: 0;
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.section-head h2 {
    margin: 0;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid rgba(34, 211, 238, 0.25);
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.65rem 1.25rem;
}

.archive-grid a {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--border);
    color: var(--text);
    font-size: 0.92rem;
}

.archive-grid a:hover {
    color: var(--accent);
}

.archive-note {
    font-size: 0.9rem;
    color: var(--muted);
    max-width: 70ch;
    margin-bottom: 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
    .card:hover,
    .post-card:hover,
    .post-card:hover .post-card-visual img {
        transform: none;
        transition: none;
    }
}

/* --- Hero split & page imagery --- */
.hero-split-section {
    padding: 0;
}

.hero-split-inner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(1.5rem, 4vw, 2.75rem);
    align-items: center;
    padding: 2.75rem 0 3rem;
}

.hero-copy {
    position: relative;
    z-index: 1;
}

.hero-visual {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    aspect-ratio: 4 / 3;
    background: var(--surface2);
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(7, 10, 14, 0.45) 100%);
    pointer-events: none;
}

@media (max-width: 900px) {
    .hero-split-inner {
        grid-template-columns: 1fr;
        padding-top: 2rem;
    }

    .hero-visual {
        max-height: 280px;
        order: -1;
    }
}

.page-banner {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 0 0 1.75rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    aspect-ratio: 21 / 9;
    max-height: 320px;
    background: var(--surface2);
}

.page-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-media {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-media-img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--surface2);
}

.card-media-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.card-media:hover .card-media-img img {
    transform: scale(1.03);
}

.card-media-body {
    padding: 1.25rem 1.35rem 1.35rem;
}

.card-media-body h3 {
    margin: 0 0 0.5rem;
}

.card-media-body p {
    margin: 0;
}

.team-card {
    background: linear-gradient(145deg, rgba(22, 29, 40, 0.9), rgba(15, 20, 28, 0.95));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.team-card:hover {
    border-color: rgba(34, 211, 238, 0.2);
    transform: translateY(-2px);
}

.team-card-thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--surface2);
}

.team-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.92;
}

.team-card-body {
    padding: 1rem 1.1rem 1.15rem;
}

.team-card-body h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

.blog-hero {
    padding: 2rem 0 0.5rem;
}

.blog-hero-banner {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    min-height: 220px;
    margin-bottom: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.blog-hero-banner .blog-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.blog-hero-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(7, 10, 14, 0.2), rgba(7, 10, 14, 0.88));
    z-index: 1;
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem 1.75rem;
}

.blog-hero-content h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.65);
}

.blog-hero-content .lead {
    margin: 0;
    font-size: 1rem;
    color: rgba(226, 232, 240, 0.9);
    max-width: 62ch;
}

/* --- Live scores (CricketData API via PHP) --- */
.page-live .section-live-body {
    padding-top: 1rem;
}

.live-page-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}

.live-page-layout.has-ads {
    grid-template-columns: minmax(0, 1fr) min(300px, 28vw);
}

.live-page-layout__aside {
    position: sticky;
    top: 1rem;
}

.live-banner {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: rgba(15, 20, 28, 0.85);
    overflow: hidden;
}

.live-banner--spaced {
    margin-top: 1rem;
}

.live-banner__link {
    display: block;
    text-decoration: none;
    color: inherit;
    line-height: 0;
}

.live-banner__img {
    width: 100%;
    height: auto;
    vertical-align: middle;
    display: block;
}

.live-banner__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 1.25rem;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(226, 232, 240, 0.92);
    line-height: 1.45;
    background: linear-gradient(145deg, rgba(34, 211, 238, 0.12), rgba(15, 23, 42, 0.9));
}

.live-banner__cta {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #67e8f9;
}

.live-banner__disclosure {
    margin: 0;
    padding: 0.35rem 0.5rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    text-align: center;
    background: rgba(0, 0, 0, 0.35);
}

@media (max-width: 1024px) {
    .live-page-layout.has-ads {
        grid-template-columns: 1fr;
    }

    .live-page-layout__aside {
        position: static;
    }
}

.live-page-header {
    padding: 0 0 0.5rem;
}

.live-page-hero {
    position: relative;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(8, 12, 20, 0.98));
    box-shadow: var(--shadow);
}

.live-page-hero__glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 20% 0%, rgba(34, 211, 238, 0.18), transparent 55%),
        radial-gradient(ellipse 60% 50% at 90% 80%, rgba(167, 139, 250, 0.12), transparent 45%);
    pointer-events: none;
}

.live-page-hero__content {
    position: relative;
    z-index: 1;
    padding: 2rem 1.5rem 1.75rem;
}

.live-page-hero__badge {
    color: #fda4af;
}

.live-page-hero .live-page-hero__content h1 {
    margin: 0 0 0.65rem;
    font-size: clamp(1.65rem, 3.5vw, 2.15rem);
    letter-spacing: -0.03em;
}

.live-page-hero__lead {
    margin: 0 0 1.35rem;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.6;
    max-width: 72ch;
}

.live-page-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.live-stat-chip {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.65rem 1rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border);
    min-width: 120px;
}

.live-stat-chip--dim {
    opacity: 0.85;
}

.live-stat-chip__val {
    font-size: 1.25rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--accent);
    letter-spacing: -0.02em;
}

.live-stat-chip__lbl {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.live-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1rem 1.15rem;
    background: rgba(15, 20, 28, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.live-controls__filter {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.95rem;
    color: var(--text);
    cursor: pointer;
    max-width: 48ch;
}

.live-controls__filter input {
    margin-top: 0.2rem;
}

.live-controls__hint {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 400;
}

.live-controls__actions {
    display: flex;
    gap: 0.5rem;
}

.live-api-note {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--muted);
    padding: 1rem 1.15rem;
    margin-bottom: 1.5rem;
    border-radius: var(--radius);
    border: 1px dashed rgba(148, 163, 184, 0.25);
    background: rgba(22, 29, 40, 0.35);
}

.live-api-note code {
    font-size: 0.85em;
}

.live-disclaimer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.live-matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.live-matches-grid--detail {
    grid-template-columns: 1fr;
    max-width: 820px;
}

.live-match-card {
    background: linear-gradient(155deg, rgba(22, 29, 40, 0.98), rgba(10, 14, 20, 0.99));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.live-match-card:hover {
    border-color: rgba(34, 211, 238, 0.22);
    box-shadow: var(--shadow);
}

.live-match-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    padding: 0.85rem 1.15rem;
    background: rgba(0, 0, 0, 0.28);
    border-bottom: 1px solid var(--border);
}

.live-match-card__format {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid rgba(34, 211, 238, 0.25);
}

.live-match-card__pulse {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #4ade80;
}

.live-match-card__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25);
    animation: live-pulse 1.5s ease-in-out infinite;
}

@keyframes live-pulse {
    50% {
        opacity: 0.55;
        transform: scale(0.92);
    }
}

.live-match-card__state {
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 600;
}

.live-match-card__body {
    padding: 1.15rem 1.25rem 1.25rem;
}

.live-match-card__teams {
    margin: 0 0 1rem;
    font-size: 1.2rem;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.live-match-card__vs {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.9em;
}

.live-match-card__teams-sm {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
    line-height: 1.35;
}

.live-match-card__status-text--sm {
    font-size: 0.9rem;
    margin: 0 0 0.35rem;
    color: var(--accent);
    font-weight: 600;
}

.live-match-card__meta {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: grid;
    gap: 0.5rem;
    font-size: 0.88rem;
}

.live-match-card__meta li {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 0.75rem;
    align-items: baseline;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.live-match-card__meta li span:first-child {
    color: var(--muted);
    font-size: 0.8rem;
}

.live-match-card__meta strong {
    font-weight: 600;
    color: var(--text);
}

@media (max-width: 520px) {
    .live-match-card__meta li {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }
}

.live-match-card__status-box {
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    background: rgba(34, 211, 238, 0.06);
    border: 1px solid rgba(34, 211, 238, 0.15);
    margin-bottom: 1rem;
}

.live-match-card__status-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.live-match-card__status-text {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--text);
}

.live-match-card__score-section {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.live-match-card__score-head {
    padding: 0.5rem 0.85rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--muted);
    background: rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid var(--border);
}

.live-match-card__no-score {
    margin: 0;
    padding: 0.85rem 1rem;
}

.live-innings {
    padding: 0.35rem 0;
}

.live-inning-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.55rem 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    font-size: 0.92rem;
}

.live-inning-row:last-child {
    border-bottom: none;
}

.live-inning-row__label {
    color: var(--muted);
    font-size: 0.86rem;
}

.live-inning-row__runs {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--text);
}

.live-inning-row__overs {
    font-size: 0.82rem;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.live-innings--plain {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

.live-match-card__foot {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border);
    font-size: 0.78rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.live-match-card__foot code {
    font-size: 0.85em;
    background: var(--surface2);
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.live-match-card--compact {
    padding: 0;
}

.live-match-card--compact .live-match-card__head {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.live-match-card--compact .live-match-card__body {
    padding: 0 1.15rem 1.15rem;
}

.live-match-card--compact .live-match-card__venue {
    margin: 0 0 0.65rem;
}

.live-match-card--compact .live-match-card__score-section {
    margin: 0;
}

.live-skeleton-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.page-live .live-skeleton-grid {
    grid-template-columns: 1fr;
    max-width: 820px;
}

.live-skeleton-card {
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: rgba(15, 20, 28, 0.8);
}

.live-skeleton {
    border-radius: 6px;
    background: linear-gradient(90deg, var(--surface2) 25%, rgba(148, 163, 184, 0.12) 50%, var(--surface2) 75%);
    background-size: 200% 100%;
    animation: live-shimmer 1.2s ease-in-out infinite;
}

.live-skeleton--line {
    height: 12px;
    margin-bottom: 0.65rem;
}

.live-skeleton--w40 {
    width: 40%;
}

.live-skeleton--w60 {
    width: 60%;
}

.live-skeleton--w80 {
    width: 80%;
}

.live-skeleton--block {
    height: 72px;
    margin-top: 0.75rem;
}

@keyframes live-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.live-empty {
    text-align: center;
    padding: 2.5rem 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border);
    background: rgba(15, 20, 28, 0.5);
}

.live-empty__title {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
}

.live-error {
    padding: 1.25rem;
    border-radius: var(--radius);
    border: 1px solid rgba(251, 113, 133, 0.35);
    background: rgba(251, 113, 133, 0.08);
    color: #fecaca;
}

.live-demo-banner {
    border-radius: var(--radius);
    padding: 0.85rem 1.1rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    line-height: 1.5;
    border: 1px solid rgba(251, 191, 36, 0.35);
    background: rgba(251, 191, 36, 0.08);
    color: #fde68a;
}

.live-demo-banner--warn strong {
    color: #fcd34d;
}

.live-scores-loading {
    margin: 0;
}

/* --- Live video (SportSRC API, embed iframes) --- */
.section-live-streams {
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}

.live-streams-header {
    margin-bottom: 1.25rem;
}

.live-streams-header__badge {
    color: #a5f3fc;
    margin-bottom: 0.5rem;
}

.live-streams-header h2 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    letter-spacing: -0.02em;
}

.live-streams-header__lead {
    margin: 0 0 1rem;
    color: var(--muted);
    line-height: 1.6;
    max-width: 72ch;
}

.inline-link {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.inline-link:hover {
    color: #fff;
}

.live-streams-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.live-stream-api-note {
    border-radius: var(--radius);
    padding: 0.85rem 1.1rem;
    margin-bottom: 1.25rem;
    font-size: 0.88rem;
    line-height: 1.55;
    border: 1px solid rgba(34, 211, 238, 0.22);
    background: rgba(34, 211, 238, 0.06);
    color: rgba(226, 232, 240, 0.92);
}

.live-stream-api-note a {
    color: #67e8f9;
}

.live-stream-fallback {
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border);
    padding: 1.25rem 1.35rem;
    background: rgba(15, 20, 28, 0.65);
}

.live-stream-fallback__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    margin: 1rem 0 0;
}

.live-stream-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.live-stream-card {
    margin: 0;
}

.live-stream-card__btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0;
    margin: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: rgba(15, 20, 28, 0.85);
    color: inherit;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.live-stream-card__btn:hover,
.live-stream-card__btn:focus-visible {
    border-color: rgba(34, 211, 238, 0.45);
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.2);
    outline: none;
}

.live-stream-card__poster {
    aspect-ratio: 16 / 9;
    background: var(--surface2);
    overflow: hidden;
}

.live-stream-card__poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-stream-card__poster--empty {
    background: linear-gradient(135deg, var(--surface2), rgba(15, 23, 42, 0.9));
}

.live-stream-card__body {
    padding: 1rem 1.1rem 1.15rem;
}

.live-stream-card__body h3 {
    margin: 0 0 0.65rem;
    font-size: 1.02rem;
    line-height: 1.35;
}

.live-stream-card__badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.live-stream-card__badge {
    border-radius: 8px;
    border: 1px solid var(--border);
    object-fit: contain;
    background: rgba(0, 0, 0, 0.25);
}

.live-stream-card__vs {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.live-stream-card__when {
    margin: 0 0 0.5rem;
}

.live-stream-card__cta {
    font-size: 0.82rem;
    font-weight: 600;
    color: #67e8f9;
}

.live-stream-player-mount {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.live-stream-player {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: rgba(8, 12, 20, 0.95);
    overflow: hidden;
}

.live-stream-player__head {
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--border);
}

.live-stream-player__head h3 {
    margin: 0;
    font-size: 1.05rem;
}

.live-stream-source-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.2);
}

.live-stream-tab {
    font: inherit;
    font-size: 0.82rem;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface2);
    color: var(--text);
    cursor: pointer;
}

.live-stream-tab:hover,
.live-stream-tab:focus-visible {
    border-color: rgba(34, 211, 238, 0.4);
    outline: none;
}

.live-stream-tab.is-active {
    border-color: rgba(34, 211, 238, 0.55);
    background: rgba(34, 211, 238, 0.12);
    color: #e0f2fe;
}

.live-stream-watch-note {
    padding: 1rem 1.15rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.22);
    font-size: 0.92rem;
    line-height: 1.55;
}

.live-stream-watch-note p {
    margin: 0;
}

.live-stream-frame-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.live-stream-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.live-stream-open-tab {
    margin: 0.65rem 1rem 1rem;
}

.live-stream-open-tab a {
    color: #94a3b8;
}

.live-stream-open-tab a:hover {
    color: #67e8f9;
}

.live-stream-skeleton-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.live-stream-skeleton-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 1rem;
    background: rgba(15, 20, 28, 0.6);
}

.live-stream-skeleton {
    border-radius: 8px;
    background: linear-gradient(90deg, var(--surface2) 25%, rgba(148, 163, 184, 0.12) 50%, var(--surface2) 75%);
    background-size: 200% 100%;
    animation: live-shimmer 1.2s ease-in-out infinite;
}

.live-stream-skeleton--poster {
    aspect-ratio: 16 / 9;
    margin-bottom: 0.75rem;
}

.live-stream-skeleton--line {
    height: 14px;
    margin-bottom: 0.5rem;
}

.live-stream-skeleton--line.short {
    width: 55%;
}

@media (prefers-reduced-motion: reduce) {
    .live-match-card__dot,
    .live-skeleton,
    .live-stream-skeleton {
        animation: none;
    }
}

/* Floating WhatsApp (site-wide; injected by main.js) */
.wa-float {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1.25rem, env(safe-area-inset-bottom));
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wa-float:hover {
    transform: scale(1.06);
    box-shadow: 0 14px 36px rgba(37, 211, 102, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.12);
    text-decoration: none;
}

.wa-float:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.wa-float svg {
    width: 1.85rem;
    height: 1.85rem;
    flex-shrink: 0;
}

@media print {
    .wa-float {
        display: none !important;
    }
}
