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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.refresh-btn {
    margin-top: 15px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    border-radius: 25px;
    color: white;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.refresh-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.refresh-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.9;
}

.matches-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.match-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.match-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.league-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.match-date {
    color: #666;
    font-size: 0.9em;
    font-weight: 500;
}

.match-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    gap: 15px;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    gap: 10px;
}

.team-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 50%;
    background: #f8f8f8;
    padding: 5px;
}

.team-name {
    font-weight: 600;
    font-size: 1em;
    text-align: center;
    color: #333;
    line-height: 1.3;
}

.vs-divider {
    font-weight: bold;
    color: #667eea;
    font-size: 1.2em;
    padding: 0 10px;
}

.odds-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.odds-label {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 10px;
    font-weight: 600;
    text-align: center;
}

.odds-container {
    display: flex;
    justify-content: space-around;
    gap: 10px;
}

.odd-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex: 1;
    transition: transform 0.2s ease;
}

.odd-item:hover {
    transform: scale(1.05);
}

.odd-label {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
    font-weight: 600;
}

.odd-value {
    font-size: 1.3em;
    font-weight: bold;
    color: #667eea;
}

.match-status {
    text-align: center;
}

.status-badge {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.ns {
    background: #e3f2fd;
    color: #1976d2;
}

.status-badge.live {
    background: #ffebee;
    color: #c62828;
    animation: pulse 2s infinite;
}

.status-badge.ft {
    background: #e8f5e9;
    color: #2e7d32;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.no-matches {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    color: #666;
    font-size: 1.2em;
}

.fixtures-empty-info {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.45);
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 28px;
    text-align: center;
    color: #1e3a5f;
}

.fixtures-empty-info p {
    margin: 0;
    font-size: 1.05em;
    font-weight: 600;
    line-height: 1.45;
}

.api-error {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
    color: #856404;
}

.api-error p {
    margin: 10px 0;
    font-size: 1.1em;
    font-weight: 600;
}

.error-note {
    font-size: 0.9em;
    opacity: 0.8;
    margin-top: 10px;
}

.odds-unavailable {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #6c757d;
    font-style: italic;
    font-size: 0.9em;
}

.debug-info {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 0.85em;
}

.debug-info details {
    cursor: pointer;
}

.debug-info summary {
    font-weight: 600;
    color: #0066cc;
    margin-bottom: 10px;
}

.debug-info ul {
    margin: 10px 0 0 20px;
    padding: 0;
    list-style-type: disc;
}

.debug-info li {
    margin: 5px 0;
    color: #333;
}

footer {
    text-align: center;
    color: white;
    padding: 20px;
    opacity: 0.8;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .matches-container {
        grid-template-columns: 1fr;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    .match-content {
        flex-direction: column;
    }
    
    .vs-divider {
        transform: rotate(90deg);
        padding: 10px 0;
    }
}

/* -------------------------------------------------------------------------
   myBET HELPER landing styles
   ------------------------------------------------------------------------- */

:root {
    --primary: #0ea5e9;
    --secondary: #22c55e;
    --primary2: #16a34a;
    --text: #0f172a;
    --muted: #64748b;
}

body.has-page-parallax {
    background: #030d14;
    color: #e2e8f0;
    min-height: 100vh;
}

body.has-page-parallax header {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

body.has-page-parallax header h1 {
    color: inherit;
}

body.has-page-parallax .site-header--has-floats {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

body.has-page-parallax .header-betting-floats {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    contain: layout style;
}

/* Mobile: typewriter line under header (desktop hides). */
.header-typing-wrap {
    display: none;
}

body.has-page-parallax .site-header__inner {
    position: relative;
    z-index: 1;
    /* Shrink to content so floating chips can use left/right margins; full-width block made the exclusion rect almost the whole header. */
    display: flex;
    flex-direction: column;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

body.has-page-parallax .header-float-chip {
    position: absolute;
    left: 0;
    top: 0;
    transform: translate3d(0, 0, 0);
    transform-origin: center center;
    max-width: min(44%, 11rem);
    font-size: clamp(0.68rem, 1.45vw, 0.98rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.15;
    color: rgba(186, 230, 253, 0.48);
    text-shadow: 0 0 6px rgba(56, 189, 248, 0.35);
    white-space: normal;
    word-break: break-word;
    opacity: 0;
    contain: layout paint;
}

body.has-page-parallax .header-float-chip.header-float-chip--placed {
    opacity: 0.88;
}

body.has-page-parallax .header-float-chip--long {
    font-size: clamp(0.58rem, 1.15vw, 0.78rem);
    max-width: min(48%, 12rem);
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    body.has-page-parallax .header-betting-floats {
        display: none !important;
    }

    body.has-page-parallax .site-header--has-floats {
        overflow: visible;
    }

    .header-typing-wrap {
        display: block;
        width: 100%;
        max-width: 100%;
        margin: 0.35rem 0 0.75rem;
        padding: 0.5rem 0.65rem;
        box-sizing: border-box;
        border-radius: 14px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(6, 18, 32, 0.65);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
    }

    body.has-page-parallax .header-typing-line {
        margin: 0;
        font-size: clamp(0.62rem, 2.8vw, 0.78rem);
        font-weight: 800;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        line-height: 1.35;
        color: rgba(186, 230, 253, 0.55);
        text-shadow: 0 0 6px rgba(56, 189, 248, 0.35);
        text-align: center;
        word-break: break-word;
    }

    body.has-page-parallax .header-typing-prefix {
        color: rgba(125, 211, 252, 0.45);
    }

    body.has-page-parallax .header-typing-text {
        color: rgba(186, 230, 253, 0.72);
    }

    body.has-page-parallax .header-typing-cursor {
        display: inline-block;
        margin-left: 0.06em;
        color: rgba(56, 189, 248, 0.85);
        font-weight: 300;
        animation: header-typing-cursor-blink 0.95s step-end infinite;
    }

    @keyframes header-typing-cursor-blink {
        50% {
            opacity: 0;
        }
    }
}

body.has-page-parallax .api-error {
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.45);
    color: #fde68a;
}

body.has-page-parallax .api-error .error-note {
    color: rgba(253, 230, 138, 0.85);
}

body.has-page-parallax footer {
    color: rgba(226, 232, 240, 0.88);
}

.footer-who-wrap {
    margin-top: 1.35rem;
}

footer .footer-who-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.35rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

footer .footer-who-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(125, 211, 252, 0.55);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

body.who-we-are-page {
    background: #030d14;
    color: #e2e8f0;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.who-we-are-inner {
    padding: 2rem 1rem 3rem;
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.who-we-are-title {
    font-size: 1.35rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 1rem;
}

.who-we-are-lead {
    color: rgba(226, 232, 240, 0.88);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.who-we-are-back {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 600;
}

.who-we-are-back:hover {
    text-decoration: underline;
}

body.has-page-parallax .debug-info {
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(125, 211, 252, 0.35);
}

body.has-page-parallax .debug-info summary {
    color: #7dd3fc;
}

body.has-page-parallax .debug-info li {
    color: #cbd5e1;
}

.page-bg-parallax {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background-color: #071a2b;
}

.page-bg-parallax::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--parallax-hero-img, url('images/hero-neon-ball.png'));
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.page-bg-parallax::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            135deg,
            rgba(3, 12, 18, 0.42) 0%,
            rgba(7, 26, 43, 0.28) 48%,
            rgba(10, 48, 32, 0.22) 75%,
            rgba(3, 12, 18, 0.45) 100%
        ),
        radial-gradient(ellipse 95% 75% at 50% 38%, rgba(14, 165, 233, 0.1), transparent 55%);
}

body.has-page-parallax .container {
    position: relative;
    z-index: 1;
}

.page-lottie-decor {
    display: none;
}

@media (min-width: 1280px) {
    body.has-page-parallax .page-lottie-decor--left,
    body.has-page-parallax .page-lottie-decor--right {
        display: block;
        position: fixed;
        z-index: 1;
        pointer-events: none;
        top: 50vh;
        transform: translateY(-50%);
        width: clamp(110px, calc((100vw - 1200px) / 2 - 16px), 280px);
        aspect-ratio: 1 / 1.55;
    }

    body.has-page-parallax .page-lottie-decor--right {
        right: 28px;
        left: auto;
        opacity: 0.92;
    }

    /* Left (World Cup): strip colour on ball/boot — strong mono + cyan “neon” glow (Drone stays natural) */
    body.has-page-parallax .page-lottie-decor--left {
        left: 28px;
        right: auto;
        opacity: 0.82;
        filter:
            grayscale(1)
            sepia(0.22)
            hue-rotate(162deg)
            saturate(1.65)
            brightness(0.96)
            contrast(1.2)
            drop-shadow(0 0 12px rgba(56, 189, 248, 0.45));
    }

    .page-lottie-decor__inner {
        width: 100%;
        height: 100%;
        transform: translateZ(0);
        backface-visibility: hidden;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-lottie-decor {
        display: none !important;
    }
}

header .brand-title {
    margin-bottom: 0;
    font-size: 2.35em;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.subtitle {
    font-size: 1.02rem;
    opacity: 0.92;
    color: #e2e8f0;
}

details.league-section {
    margin-bottom: 2.75rem;
    --league-hue: 195;
    --league-accent: hsl(var(--league-hue) 88% 68%);
    --league-accent-soft: hsl(var(--league-hue) 70% 60% / 0.22);
}

/* Skip layout/paint for off-screen league blocks while scrolling (big scroll perf win). */
body.has-page-parallax details.league-section {
    content-visibility: auto;
    contain-intrinsic-size: auto 520px;
}

details.league-section > summary.league-section-head {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.15rem;
    padding: 0.25rem 0.15rem 0.85rem 0.15rem;
    border-bottom: 1px solid color-mix(in oklab, var(--league-accent) 42%, rgba(255, 255, 255, 0.2));
    user-select: none;
    border-radius: 10px;
    transition: background 0.15s ease;
}

details.league-section > summary.league-section-head:hover {
    background: linear-gradient(90deg, var(--league-accent-soft), rgba(255, 255, 255, 0.02));
}

details.league-section > summary.league-section-head:hover .league-chevron {
    background: rgba(255, 255, 255, 0.16);
}

details.league-section > summary.league-section-head::-webkit-details-marker,
details.league-section > summary.league-section-head::marker {
    display: none;
    content: '';
}

.league-title-block {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex: 1;
    min-width: 0;
}

.league-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    border-radius: 10px;
    border: 1px solid color-mix(in oklab, var(--league-accent) 45%, rgba(255, 255, 255, 0.2));
    background: color-mix(in oklab, var(--league-accent) 20%, rgba(255, 255, 255, 0.08));
    color: rgba(255, 255, 255, 0.98);
    transition: transform 0.2s ease, background 0.2s ease;
}

details.league-section:not([open]) .league-chevron {
    transform: rotate(-90deg);
}

details.league-section[open] .league-chevron {
    transform: rotate(0deg);
}

details.league-section:not([open]) > summary.league-section-head {
    margin-bottom: 0.35rem;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.league-title {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: color-mix(in oklab, var(--league-accent) 55%, #ffffff);
    text-shadow: 0 2px 14px color-mix(in oklab, var(--league-accent) 35%, rgba(0, 0, 0, 0.35));
    margin: 0;
}

.league-count {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.82);
    background: color-mix(in oklab, var(--league-accent) 24%, rgba(255, 255, 255, 0.08));
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid color-mix(in oklab, var(--league-accent) 35%, rgba(255, 255, 255, 0.12));
}

.matches-container.league-grid {
    margin-bottom: 0;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.matches-container.league-grid .match-card.match-card--home {
    position: relative;
    border: none;
    background: transparent;
    padding: 0;
    border-radius: 18px;
    overflow: visible;
    isolation: isolate;
    --card-ambient-glow: rgba(14, 165, 233, 0.07);
    box-shadow:
        0 14px 44px rgba(0, 0, 0, 0.42),
        0 0 0 1px rgba(255, 255, 255, 0.06),
        0 0 36px var(--card-ambient-glow);
    transition:
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.55s ease,
        filter 0.55s ease;
}

.matches-container.league-grid .match-card--neon-ft.match-card--home {
    --card-ambient-glow: rgba(244, 63, 94, 0.12);
}

.matches-container.league-grid .match-card--neon-upcoming.match-card--home {
    --card-ambient-glow: rgba(34, 197, 94, 0.1);
}

/* Old global .match-card::before purple top bar — not used on themed league cards */
.matches-container.league-grid .match-card.match-card--home::before {
    content: none;
    display: none;
}

.matches-container.league-grid .match-card--home .match-card-neon-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: visible;
    transform: translateZ(0);
    filter: drop-shadow(0 0 0.35rem rgba(34, 211, 238, 0.4));
}

/* Border “worm” neon: FT = red, upcoming (NS) = green, live = default cyan/teal */
.matches-container.league-grid .match-card--neon-ft.match-card--home .match-card-neon-svg {
    filter: drop-shadow(0 0 0.4rem rgba(244, 63, 94, 0.55)) drop-shadow(0 0 0.75rem rgba(251, 113, 133, 0.35));
}

.matches-container.league-grid .match-card--neon-upcoming.match-card--home .match-card-neon-svg {
    filter: drop-shadow(0 0 0.4rem rgba(34, 197, 94, 0.5)) drop-shadow(0 0 0.75rem rgba(74, 222, 128, 0.3));
}

.matches-container.league-grid .match-card--home .match-card-neon-path {
    stroke-dasharray: 14 86;
    stroke-dashoffset: 0;
    animation: match-card-neon-worm 12s linear infinite;
}

@keyframes match-card-neon-worm {
    to {
        stroke-dashoffset: -100;
    }
}

.matches-container.league-grid .match-card.match-card--home::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 16px;
    z-index: 0;
    background: linear-gradient(
        155deg,
        rgba(15, 23, 42, 0.72) 0%,
        rgba(10, 18, 35, 0.78) 50%,
        rgba(12, 24, 40, 0.74) 100%
    );
    backdrop-filter: blur(14px) saturate(1.25);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(0, 0, 0, 0.18);
    pointer-events: none;
}

.matches-container.league-grid .match-card.match-card--home:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow:
        0 22px 56px rgba(0, 0, 0, 0.48),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 60px rgba(14, 165, 233, 0.22),
        0 0 80px rgba(34, 197, 94, 0.1);
    filter: saturate(1.05);
}

.matches-container.league-grid .match-card-inner {
    position: relative;
    z-index: 2;
    padding: 1.35rem 1.2rem 1.25rem;
}

.matches-container.league-grid .match-card--home .match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.15rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.matches-container.league-grid .match-card--home .league-badge {
    background: linear-gradient(
        135deg,
        hsl(var(--league-hue) 78% 58% / 0.34),
        hsl(calc(var(--league-hue) + 34) 72% 52% / 0.25)
    );
    border: 1px solid hsl(var(--league-hue) 90% 72% / 0.34);
    color: #f1f5f9;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    max-width: 58%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.matches-container.league-grid .match-card--home .match-header-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.28rem;
    flex-shrink: 0;
    text-align: right;
}

.matches-container.league-grid .match-card--home .match-date {
    color: rgba(226, 232, 240, 0.85);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.matches-container.league-grid .match-card--home .status-subtle {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.88);
}

.matches-container.league-grid .match-card--home .status-subtle--ns {
    color: rgba(125, 211, 252, 0.75);
}

.matches-container.league-grid .match-card--home .status-subtle--live {
    color: #fecaca;
}

.matches-container.league-grid .match-card--home .status-subtle--ft {
    color: #bbf7d0;
}

.matches-container.league-grid .match-card--home .match-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.15rem;
    gap: 0.75rem;
}

.matches-container.league-grid .match-card--home .team {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    gap: 0.55rem;
    min-width: 0;
}

.matches-container.league-grid .match-card--home .team-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.matches-container.league-grid .match-card--home .team-name {
    font-weight: 700;
    font-size: 0.88rem;
    text-align: center;
    color: #f8fafc;
    line-height: 1.35;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.matches-container.league-grid .match-card--home .vs-divider {
    font-weight: 800;
    color: #38bdf8;
    font-size: 1rem;
    letter-spacing: 0.08em;
    padding: 0 6px;
    text-shadow: 0 0 18px rgba(56, 189, 248, 0.45);
}

.matches-container.league-grid .match-card--home .match-score-badge {
    font-weight: 800;
    color: #bae6fd;
    font-size: clamp(1.05rem, 2.8vw, 1.35rem);
    letter-spacing: 0.1em;
    padding: 0.25rem 0.4rem;
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.45);
    white-space: nowrap;
    flex-shrink: 0;
}

.matches-container.league-grid .match-card--home .odds-section {
    background: rgba(0, 0, 0, 0.22);
    border-radius: 12px;
    padding: 0.85rem 0.65rem 0.95rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.matches-container.league-grid .match-card--home .odds-label {
    font-size: 0.68rem;
    color: rgba(203, 213, 225, 0.85);
    margin-bottom: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: center;
}

.matches-container.league-grid .match-card--home .odds-container {
    display: flex;
    justify-content: stretch;
    gap: 8px;
}

.matches-container.league-grid .match-card--home .odd-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 0;
    padding: 0.55rem 0.35rem 0.65rem;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.28s ease, background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.matches-container.league-grid .match-card--home .odd-item:hover {
    transform: translateY(-3px) scale(1.03);
    background: rgba(14, 165, 233, 0.12);
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.35),
        0 0 20px rgba(14, 165, 233, 0.2);
}

.matches-container.league-grid .match-card--home .odd-label {
    font-size: 0.72rem;
    color: rgba(148, 163, 184, 0.95);
    margin-bottom: 0.25rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.matches-container.league-grid .match-card--home .odd-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: #7dd3fc;
    text-shadow: 0 0 20px rgba(125, 211, 252, 0.35);
    font-variant-numeric: tabular-nums;
}

.matches-container.league-grid .match-card--home .odds-unavailable {
    text-align: center;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    color: rgba(148, 163, 184, 0.95);
    font-style: normal;
    font-size: 0.82rem;
}

.matches-container.league-grid .match-card--home .match-cta {
    margin-top: 0.35rem;
    width: 100%;
}

.matches-container.league-grid .match-card--home .preview-link {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f0f9ff;
    padding: 0.85rem 1rem 0.95rem;
    border-radius: 12px;
    border: 1px solid rgba(56, 189, 248, 0.45);
    background: linear-gradient(
        165deg,
        rgba(14, 165, 233, 0.35) 0%,
        rgba(8, 47, 73, 0.55) 45%,
        rgba(14, 165, 233, 0.22) 100%
    );
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06) inset,
        0 4px 24px rgba(14, 165, 233, 0.18),
        0 0 32px rgba(34, 211, 238, 0.12);
    text-shadow: 0 1px 12px rgba(14, 165, 233, 0.45);
    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.25s ease,
        transform 0.2s ease;
}

.matches-container.league-grid .match-card--home .preview-link:hover {
    color: #fff;
    border-color: rgba(125, 211, 252, 0.65);
    background: linear-gradient(
        165deg,
        rgba(14, 165, 233, 0.5) 0%,
        rgba(8, 47, 73, 0.65) 50%,
        rgba(34, 211, 238, 0.28) 100%
    );
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 8px 36px rgba(14, 165, 233, 0.35),
        0 0 48px rgba(34, 211, 238, 0.22);
    transform: translateY(-2px);
}

.no-matches {
    text-align: center;
    padding: 60px 20px;
    background: rgba(6, 20, 34, 0.72);
    border-radius: 15px;
    color: #cbd5e1;
    font-size: 1.2em;
}

.api-error {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
    color: #856404;
}

.error-note {
    font-size: 0.9em;
    opacity: 0.8;
    margin-top: 10px;
}

footer {
    text-align: center;
    color: white;
    padding: 20px;
    opacity: 0.8;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    body.has-page-parallax {
        padding: max(10px, env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right, 0px))
            max(18px, env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px));
    }

    body.has-page-parallax header {
        margin-bottom: 1rem;
        padding: 1.15rem 14px;
    }

    .matches-container.league-grid {
        grid-template-columns: 1fr;
    }

    header .brand-title {
        font-size: 1.5em;
        letter-spacing: 0.1em;
    }

    body.has-page-parallax .subtitle {
        font-size: 0.88rem;
        line-height: 1.4;
        padding: 0 4px;
    }

    body.has-page-parallax details.league-section {
        margin-bottom: 1.35rem;
    }

    details.league-section > summary.league-section-head {
        margin-bottom: 0.75rem;
        padding-bottom: 0.65rem;
        gap: 0.65rem;
    }

    .league-title {
        font-size: 1.12rem;
    }

    .matches-container.league-grid .match-card-inner {
        padding: 1rem 0.75rem 0.95rem;
    }

    .matches-container.league-grid .match-card--home .match-header {
        margin-bottom: 0.75rem;
        padding-bottom: 0.65rem;
        gap: 0.45rem;
        align-items: flex-start;
    }

    .matches-container.league-grid .match-card--home .league-badge {
        font-size: 0.62rem;
        padding: 0.32rem 0.55rem;
        max-width: 62%;
    }

    .matches-container.league-grid .match-card--home .match-date {
        font-size: 0.85rem;
    }

    .matches-container.league-grid .match-card--home .status-subtle {
        font-size: 0.8rem;
        letter-spacing: 0.09em;
    }

    /* One row: home | VS | away — keeps cards short on phones */
    .matches-container.league-grid .match-card--home .match-content {
        flex-direction: row;
        align-items: stretch;
        justify-content: space-between;
        margin-bottom: 0.75rem;
        gap: 0.25rem;
    }

    .matches-container.league-grid .match-card--home .team {
        gap: 0.4rem;
    }

    .matches-container.league-grid .match-card--home .team-logo {
        width: 44px;
        height: 44px;
        padding: 4px;
    }

    .matches-container.league-grid .match-card--home .team-name {
        font-size: 0.72rem;
        line-height: 1.25;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .matches-container.league-grid .match-card--home .vs-divider {
        transform: none;
        padding: 0.25rem 0.1rem;
        font-size: 0.78rem;
        align-self: center;
        flex-shrink: 0;
    }

    .matches-container.league-grid .match-card--home .odds-section {
        padding: 0.65rem 0.45rem 0.75rem;
        margin-bottom: 0.65rem;
    }

    .matches-container.league-grid .match-card--home .odd-value {
        font-size: 1.02rem;
    }

    .matches-container.league-grid .match-card--home .preview-link {
        font-size: 0.88rem;
        letter-spacing: 0.05em;
        padding: 0.72rem 0.65rem 0.8rem;
        border-radius: 10px;
    }

    .match-content {
        flex-direction: column;
    }

    .vs-divider {
        transform: rotate(90deg);
        padding: 10px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .matches-container.league-grid .match-card--home .match-card-neon-path {
        animation: none;
    }

    .matches-container.league-grid .match-card.match-card--home {
        transition-duration: 0.01ms;
    }

    .matches-container.league-grid .match-card.match-card--home:hover {
        transform: none;
    }
}
