* {
    box-sizing: border-box;
}

:root {
    --bg: #eef3fb;
    --bg-2: #f7f9ff;
    --surface: rgba(255, 255, 255, 0.86);
    --surface-solid: #ffffff;
    --surface-strong: rgba(255, 255, 255, 0.96);
    --border: rgba(148, 163, 184, 0.28);
    --text: #07111f;
    --muted: #667085;
    --title: #0d2b68;
    --blue: #1d4ed8;
    --orange: #f97316;
    --red: #dc2626;
    --yellow: #facc15;
    --green: #16a34a;
    --pitch-line: rgba(29, 78, 216, 0.075);
    --pitch-center: rgba(29, 78, 216, 0.06);
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
    --soft-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    --score: linear-gradient(135deg, #07111f, #1d4ed8);
}

html[data-theme="dark"] {
    --bg: #060b16;
    --bg-2: #0f172a;
    --surface: rgba(15, 23, 42, 0.82);
    --surface-solid: #111827;
    --surface-strong: rgba(15, 23, 42, 0.94);
    --border: rgba(148, 163, 184, 0.22);
    --text: #f8fafc;
    --muted: #cbd5e1;
    --title: #facc15;
    --pitch-line: rgba(250, 204, 21, 0.085);
    --pitch-center: rgba(249, 115, 22, 0.06);
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    --soft-shadow: 0 10px 25px rgba(0, 0, 0, 0.28);
    --score: linear-gradient(135deg, #f97316, #dc2626);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 0%, rgba(249, 115, 22, 0.18), transparent 30%),
        radial-gradient(circle at 90% 0%, rgba(37, 99, 235, 0.18), transparent 30%),
        linear-gradient(180deg, var(--bg), var(--bg-2));
    transition: background 0.25s ease, color 0.25s ease;
}

a {
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding-left: 18px;
    padding-right: 18px;
}

.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    text-align: center;
    min-height: 500px;
    padding: 54px 0 46px;
    display: flex;
    align-items: center;
    background-image: url("banner.webp");
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.30)),
        linear-gradient(135deg, rgba(7, 17, 31, 0.46), rgba(29, 78, 216, 0.10));
    pointer-events: none;
}

.hero:after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(250,204,21,0.9), rgba(249,115,22,0.9), transparent);
}

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

.hero-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.event-badge,
.home-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.20);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    color: #fff;
    text-decoration: none;
    font-weight: 950;
}

.home-button {
    background: linear-gradient(135deg, rgba(249,115,22,0.28), rgba(29,78,216,0.22));
}

.home-button-icon {
    width: 15px;
    height: 15px;
    display: inline-block;
    position: relative;
}

.home-button-icon:before {
    content: "";
    position: absolute;
    inset: 2px 1px 1px;
    border-radius: 3px;
    border: 2px solid currentColor;
    border-top: 0;
}

.home-button-icon:after {
    content: "";
    position: absolute;
    left: 1px;
    top: 0;
    width: 13px;
    height: 13px;
    border-left: 2px solid currentColor;
    border-top: 2px solid currentColor;
    transform: rotate(45deg);
    border-radius: 2px 0 0 0;
}

.event-badge strong {
    font-size: 15px;
}

.theme-switch {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 6px 12px 6px 7px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-family: inherit;
    font-weight: 900;
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.switch-track {
    position: relative;
    width: 54px;
    height: 30px;
    border-radius: 999px;
    background: linear-gradient(135deg, #facc15, #f97316);
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.18);
}

.switch-thumb {
    position: absolute;
    left: 4px;
    top: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
    transition: transform 0.22s ease;
}

.switch-thumb:after {
    content: "☀️";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 12px;
}

html[data-theme="dark"] .switch-track {
    background: linear-gradient(135deg, #1e293b, #3b82f6);
}

html[data-theme="dark"] .switch-thumb {
    transform: translateX(24px);
}

html[data-theme="dark"] .switch-thumb:after {
    content: "🌙";
}

.switch-label {
    min-width: 36px;
    text-align: left;
}

.hero h1 {
    margin: 0;
    font-size: clamp(38px, 5.6vw, 64px);
    line-height: 1.03;
    letter-spacing: -0.045em;
    text-shadow: 0 8px 30px rgba(0,0,0,0.62);
}

.hero p {
    margin: 16px 0 0;
    font-size: 18px;
    font-weight: 750;
    color: rgba(255,255,255,0.96);
    text-shadow: 0 4px 16px rgba(0,0,0,0.55);
}

.stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.stats div {
    min-width: 138px;
    padding: 16px 18px;
    border-radius: 22px;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.16);
    backdrop-filter: blur(12px);
}

.stats strong {
    display: block;
    font-size: 31px;
    line-height: 1;
}

.stats span {
    display: block;
    margin-top: 7px;
    font-size: 14px;
    color: rgba(255,255,255,0.88);
}

.tabs-wrap {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(238, 243, 251, 0.78);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

html[data-theme="dark"] .tabs-wrap {
    background: rgba(6, 11, 22, 0.78);
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    overflow-x: auto;
    padding-top: 16px;
    padding-bottom: 16px;
}

.tabs a {
    text-decoration: none;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 950;
    box-shadow: var(--soft-shadow);
    white-space: nowrap;
}

main.container {
    padding-top: 28px;
}

.shop-cta {
    position: relative;
    display: block;
    overflow: hidden;
    text-align: center;
    text-decoration: none !important;
    padding: 22px 18px;
    border-radius: 26px;
    background:
        linear-gradient(var(--surface-strong), var(--surface-strong)) padding-box,
        linear-gradient(90deg, #f97316, #facc15, #dc2626, #1d4ed8) border-box;
    border: 2px solid transparent;
    box-shadow: var(--shadow);
}

.shop-cta:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.0) 32%, rgba(250,204,21,0.34) 45%, rgba(255,255,255,0.0) 58%, transparent 100%);
    transform: translateX(-120%);
    animation: ctaSweep 2.4s ease-in-out infinite;
}

.shop-cta span {
    position: relative;
    z-index: 1;
    display: inline-block;
    font-size: clamp(18px, 2.5vw, 25px);
    font-weight: 1000;
    line-height: 1.35;
    letter-spacing: -0.02em;
    text-decoration: none !important;
    background: linear-gradient(90deg, #f97316, #dc2626, #facc15, #1d4ed8, #f97316);
    background-size: 260% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: ctaGradient 2.8s linear infinite, ctaPulse 1.45s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(249, 115, 22, 0.25));
}

@keyframes ctaSweep {
    0% { transform: translateX(-120%); }
    54% { transform: translateX(120%); }
    100% { transform: translateX(120%); }
}

@keyframes ctaGradient {
    to { background-position: 260% center; }
}

@keyframes ctaPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 7px rgba(249, 115, 22, 0.22)); }
    50% { transform: scale(1.018); filter: drop-shadow(0 0 18px rgba(249, 115, 22, 0.55)); }
}

section {
    margin: 42px 0;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    gap: 8px;
    margin-bottom: 22px;
}

.section-title h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--title);
    text-shadow: 0 6px 20px rgba(37, 99, 235, 0.12);
}

.section-title h2:after {
    content: "";
    display: block;
    width: 84px;
    height: 4px;
    margin: 12px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #f97316, #facc15, #1d4ed8);
}

.section-title p {
    margin: 0;
    color: var(--muted);
    font-weight: 800;
    font-size: 15px;
}

.match-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(315px, 1fr));
    gap: 18px;
}

.match-card {
    position: relative;
    overflow: hidden;
    height: 100%;
    background:
        radial-gradient(circle at 50% 48%, var(--pitch-center), transparent 42%),
        linear-gradient(135deg, var(--surface), var(--surface-strong));
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 18px;
    box-shadow: var(--soft-shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.match-card:before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid var(--pitch-line);
    border-radius: 18px;
    pointer-events: none;
}

.match-card:after {
    content: "";
    position: absolute;
    left: 50%;
    top: 14px;
    bottom: 14px;
    width: 1px;
    background: var(--pitch-line);
    transform: translateX(-50%);
    pointer-events: none;
}

.pitch-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 92px;
    height: 92px;
    border: 1px solid var(--pitch-line);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.pitch-mark:after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--pitch-line);
    transform: translate(-50%, -50%);
}

.pitch-mark-left,
.pitch-mark-right {
    display: none;
}

.match-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: rgba(37, 99, 235, 0.35);
}

.match-card.live {
    border-color: rgba(220, 38, 38, 0.55);
}

.match-card.finished {
    border-color: rgba(22, 163, 74, 0.45);
}

.match-head,
.match-teams,
.match-foot {
    position: relative;
    z-index: 1;
}

.match-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 16px;
}

.match-status {
    color: #1d4ed8;
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.14);
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 950;
    white-space: nowrap;
}

html[data-theme="dark"] .match-status {
    color: #bfdbfe;
    background: rgba(59, 130, 246, 0.14);
}

.match-teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 62px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.match-team {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    font-weight: 950;
    font-size: 17px;
    line-height: 1.18;
}

.match-team-home {
    justify-content: flex-start;
}

.match-team-away {
    justify-content: flex-end;
    text-align: right;
}

.match-team span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-flag {
    width: 18px !important;
    height: 12px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    min-height: 12px !important;
    max-height: 12px !important;
    object-fit: cover !important;
    border-radius: 2px;
    flex: 0 0 18px;
    box-shadow: 0 1px 3px rgba(15,23,42,0.22);
}

.score-pill {
    min-width: 62px;
    text-align: center;
    padding: 9px 9px;
    border-radius: 15px;
    color: #fff;
    background: var(--score);
    font-weight: 1000;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.22);
}

.match-foot {
    margin-top: 16px;
    color: var(--muted);
    font-weight: 700;
    font-size: 13px;
}

.empty {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 20px;
    text-align: center;
    color: var(--muted);
    box-shadow: var(--soft-shadow);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
    gap: 16px;
}

.team-card {
    display: block;
    text-decoration: none;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    min-height: 148px;
    padding: 18px 12px;
    text-align: center;
    font-weight: 950;
    box-shadow: var(--soft-shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.team-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: rgba(249, 115, 22, 0.38);
}

.team-card img {
    width: 58px;
    height: 42px;
    object-fit: contain;
    display: block;
    margin: 0 auto 13px;
    filter: drop-shadow(0 2px 4px rgba(15,23,42,0.14));
}

.team-card small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-weight: 900;
}

.flag-placeholder {
    width: 58px;
    height: 42px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.1);
    display: grid;
    place-items: center;
    margin: 0 auto 13px;
    font-size: 24px;
}

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

table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

th, td {
    padding: 14px 13px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

th {
    color: var(--title);
    font-weight: 1000;
}

th:first-child,
td:first-child {
    text-align: left;
}

.team-hero-logo {
    width: 96px;
    height: 72px;
    object-fit: contain;
    display: block;
    margin: 0 auto 15px;
    padding: 10px;
    border-radius: 20px;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.16);
}

.show-more-btn {
    display: none;
    margin: 18px auto 0;
    border: 0;
    border-radius: 999px;
    padding: 13px 22px;
    font-family: inherit;
    font-weight: 950;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, #f97316, #dc2626);
    box-shadow: 0 12px 25px rgba(220, 38, 38, 0.22);
}

.show-more-btn span:after {
    content: " ↓";
}

.show-more-btn.is-active span:after {
    content: " ↑";
}

.footer {
    text-align: center;
    color: var(--muted);
    padding: 32px 0;
    font-weight: 700;
}

@media screen and (max-width: 760px) {
    .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .hero {
        min-height: 500px;
        padding: 24px 0 30px;
        align-items: flex-start;
        background-image: url("banner-mobile.webp");
        background-position: center bottom;
    }

    .hero-overlay {
        background:
            radial-gradient(circle at center, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.35)),
            linear-gradient(180deg, rgba(7, 17, 31, 0.42), rgba(7, 17, 31, 0.10) 44%, rgba(7, 17, 31, 0.60));
    }

    .hero-top {
        gap: 9px;
        margin-bottom: 18px;
    }

    .home-button,
    .event-badge,
    .theme-switch {
        min-height: 38px;
        padding: 7px 12px;
        font-size: 13px;
    }

    .event-badge strong {
        font-size: 13px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 15px;
        margin-top: 12px;
    }

    .stats {
        gap: 10px;
        margin-top: 24px;
    }

    .stats div {
        min-width: 96px;
        padding: 13px;
        border-radius: 18px;
    }

    .stats strong {
        font-size: 25px;
    }

    .stats span {
        font-size: 12px;
    }

    .tabs {
        justify-content: flex-start;
        padding-left: 14px;
        padding-right: 14px;
    }

    .tabs a {
        padding: 10px 16px;
    }

    main.container {
        padding-top: 20px;
    }

    .section-title h2 {
        font-size: 31px;
    }

    .shop-cta {
        padding: 18px 14px;
        border-radius: 22px;
    }

    .shop-cta span {
        font-size: 17px;
    }

    .match-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .match-card {
        border-radius: 22px;
        padding: 15px;
    }

    .pitch-mark {
        width: 76px;
        height: 76px;
    }

    .match-teams {
        grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
        gap: 8px;
    }

    .match-team {
        font-size: 14px;
        gap: 5px;
    }

    .score-pill {
        min-width: 56px;
        padding: 8px 7px;
    }

    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .team-card {
        border-radius: 20px;
        min-height: 136px;
    }

    .switch-track {
        width: 50px;
        height: 28px;
    }

    .switch-thumb {
        width: 20px;
        height: 20px;
    }

    html[data-theme="dark"] .switch-thumb {
        transform: translateX(22px);
    }

    .show-more-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .collapsible-list:not(.is-expanded) .is-collapsed-mobile {
        display: none !important;
    }
}

/* ===============================
   MOBILE FIX V6B - MERGED INTO STYLE.CSS
   =============================== */

/* Mobile + title fix V6. Load after assets/style.css */

.mobile-stats-wrap {
    display: none;
}

.flame-text {
    display: inline-block;
    position: relative;
    color: #fff;
    background: linear-gradient(180deg, #fff7cc 0%, #ffe66d 22%, #ff8a1f 52%, #ff331f 78%, #fff 100%);
    background-size: 100% 220%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: flameText 1.45s ease-in-out infinite;
    text-shadow:
        0 0 8px rgba(255, 122, 0, 0.35),
        0 0 18px rgba(220, 38, 38, 0.25);
}

.flame-text:after {
    content: "";
    position: absolute;
    left: 2%;
    right: 2%;
    bottom: -3px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(249,115,22,0.9), rgba(250,204,21,0.75), transparent);
    filter: blur(5px);
    opacity: 0.75;
    animation: flameGlow 1.1s ease-in-out infinite;
    pointer-events: none;
}

@keyframes flameText {
    0%, 100% {
        background-position: 0 0%;
        filter: drop-shadow(0 0 3px rgba(249,115,22,0.35));
    }
    50% {
        background-position: 0 100%;
        filter: drop-shadow(0 0 10px rgba(249,115,22,0.72));
    }
}

@keyframes flameGlow {
    0%, 100% {
        opacity: 0.45;
        transform: scaleX(0.92);
    }
    50% {
        opacity: 0.95;
        transform: scaleX(1.02);
    }
}

@media screen and (max-width: 760px) {
    .hero {
        min-height: 472px !important;
        padding: 22px 0 28px !important;
        align-items: flex-start !important;
        background-position: center bottom !important;
    }

    .hero-overlay {
        background:
            radial-gradient(circle at center, rgba(0, 0, 0, 0.01), rgba(0, 0, 0, 0.28)),
            linear-gradient(180deg, rgba(7, 17, 31, 0.34), rgba(7, 17, 31, 0.05) 46%, rgba(7, 17, 31, 0.54)) !important;
    }

    .hero-top {
        flex-wrap: nowrap !important;
        gap: 6px !important;
        margin-bottom: 18px !important;
        width: 100% !important;
    }

    .home-button,
    .event-badge,
    .theme-switch {
        min-height: 34px !important;
        padding: 6px 8px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
        flex-shrink: 1 !important;
    }

    .home-button {
        gap: 6px !important;
    }

    .home-button-icon {
        width: 13px !important;
        height: 13px !important;
    }

    .event-badge {
        gap: 6px !important;
        padding-left: 9px !important;
        padding-right: 9px !important;
    }

    .event-badge strong {
        font-size: 12px !important;
    }

    .theme-switch {
        gap: 6px !important;
        padding-left: 6px !important;
        padding-right: 8px !important;
    }

    .switch-track {
        width: 42px !important;
        height: 24px !important;
    }

    .switch-thumb {
        left: 3px !important;
        top: 3px !important;
        width: 18px !important;
        height: 18px !important;
    }

    .switch-thumb:after {
        font-size: 10px !important;
    }

    html[data-theme="dark"] .switch-thumb {
        transform: translateX(18px) !important;
    }

    .switch-label {
        min-width: 26px !important;
        font-size: 12px !important;
    }

    .hero h1 {
        font-size: clamp(21px, 6vw, 24px) !important;
        line-height: 1.08 !important;
        white-space: nowrap !important;
        letter-spacing: -0.055em !important;
        margin-top: 4px !important;
    }

    .flame-text:after {
        height: 4px;
        bottom: -2px;
    }

    .hero p {
        font-size: 14px !important;
        line-height: 1.36 !important;
        margin-top: 12px !important;
        max-width: 330px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .hero-stats {
        display: none !important;
    }

    .mobile-stats-wrap {
        display: block !important;
        padding-top: 14px !important;
        padding-bottom: 0 !important;
    }

    .mobile-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        border-radius: 18px;
        padding: 8px;
        background: var(--surface);
        border: 1px solid var(--border);
        box-shadow: var(--soft-shadow);
    }

    .mobile-stats div {
        text-align: center;
        border-radius: 14px;
        padding: 9px 6px;
        background: rgba(255,255,255,0.06);
    }

    html[data-theme="light"] .mobile-stats div {
        background: rgba(29,78,216,0.06);
    }

    .mobile-stats strong {
        display: block;
        font-size: 20px;
        line-height: 1;
        color: var(--text);
    }

    .mobile-stats span {
        display: block;
        margin-top: 5px;
        font-size: 11px;
        font-weight: 800;
        color: var(--muted);
    }

    main.container {
        padding-top: 18px !important;
    }
}

@media screen and (max-width: 380px) {
    .home-button span:last-child {
        display: none !important;
    }

    .hero h1 {
        font-size: 21px !important;
    }

    .event-badge strong {
        font-size: 11px !important;
    }
}


/* =========================
   MOBILE TITLE FIX V7
   ========================= */
@media screen and (max-width: 760px) {
    .hero {
        min-height: 438px;
        padding-top: 18px;
        padding-bottom: 26px;
        align-items: flex-start;
        background-position: center bottom;
    }

    .hero-inner {
        width: 100%;
    }

    .hero-top {
        flex-wrap: nowrap;
        gap: 5px;
        margin-bottom: 22px;
    }

    .home-button,
    .event-badge,
    .theme-switch {
        min-height: 32px;
        padding-top: 5px;
        padding-bottom: 5px;
        font-size: 11.5px;
        border-radius: 999px;
    }

    .home-button {
        padding-left: 7px;
        padding-right: 8px;
    }

    .event-badge {
        padding-left: 8px;
        padding-right: 8px;
    }

    .theme-switch {
        padding-left: 5px;
        padding-right: 7px;
    }

    .event-badge strong {
        font-size: 11.5px;
    }

    .switch-track {
        width: 38px;
        height: 22px;
    }

    .switch-thumb {
        left: 3px;
        top: 3px;
        width: 16px;
        height: 16px;
    }

    html[data-theme="dark"] .switch-thumb {
        transform: translateX(16px);
    }

    .switch-thumb:after {
        font-size: 9px;
    }

    .switch-label {
        min-width: 25px;
        font-size: 11.5px;
    }

    .hero h1 {
        white-space: normal;
        margin: 0 auto;
        max-width: 380px;
        font-size: clamp(30px, 8.2vw, 36px);
        line-height: 1.02;
        letter-spacing: -0.055em;
        text-align: center;
    }

    .hero h1 .flame-text {
        display: block;
        margin-top: 4px;
        font-size: clamp(40px, 11.5vw, 52px);
        line-height: 0.98;
        letter-spacing: -0.06em;
    }

    .flame-text:after {
        left: 9%;
        right: 9%;
        bottom: -5px;
        height: 7px;
        filter: blur(6px);
    }

    .hero p {
        max-width: 360px;
        margin-top: 15px;
        font-size: 14px;
        line-height: 1.35;
    }

    .mobile-stats-wrap {
        padding-top: 10px;
    }

    .mobile-stats {
        padding: 7px;
        border-radius: 17px;
    }

    .mobile-stats div {
        padding: 8px 5px;
        border-radius: 13px;
    }
}

@media screen and (max-width: 390px) {
    .hero {
        min-height: 426px;
    }

    .hero h1 {
        font-size: clamp(28px, 7.8vw, 32px);
    }

    .hero h1 .flame-text {
        font-size: clamp(36px, 10.5vw, 45px);
    }

    .event-badge strong {
        font-size: 10.8px;
    }

    .home-button,
    .event-badge,
    .theme-switch {
        font-size: 10.8px;
    }
}


/* =========================
   SEO + MOBILE HERO POLISH V8
   ========================= */
.seo-content {
    margin-top: 12px;
    margin-bottom: 34px;
}

.seo-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 26px;
    box-shadow: var(--soft-shadow);
    color: var(--text);
}

.seo-panel .breadcrumb {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.seo-panel .breadcrumb a {
    color: var(--title);
    text-decoration: none;
}

.seo-panel h2 {
    margin: 0 0 12px;
    color: var(--title);
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.14;
    letter-spacing: -0.035em;
}

.seo-panel p {
    color: var(--muted);
    line-height: 1.7;
}

.seo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 18px;
}

.seo-grid h3 {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 18px;
}

.seo-grid ul {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.8;
}

.seo-grid details {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px 14px;
    margin-bottom: 9px;
}

html[data-theme="light"] .seo-grid details {
    background: rgba(29, 78, 216, 0.045);
}

.seo-grid summary {
    cursor: pointer;
    font-weight: 950;
    color: var(--text);
}

.seo-grid details p {
    margin: 9px 0 0;
}

.last-updated {
    margin: 16px 0 0 !important;
    font-size: 13px;
    font-weight: 850;
    color: var(--muted);
    text-align: right;
}

@media screen and (max-width: 760px) {
    .hero {
        min-height: 392px;
        padding-top: 16px;
        padding-bottom: 58px;
        align-items: flex-start;
        background-position: center bottom;
    }

    .hero-top {
        flex-wrap: nowrap;
        gap: 5px;
        margin-bottom: 26px;
        width: 100%;
    }

    .home-button,
    .event-badge,
    .theme-switch {
        min-height: 31px;
        padding: 5px 7px;
        font-size: 11px;
        white-space: nowrap;
    }

    .event-badge strong {
        font-size: 11px;
    }

    .switch-track {
        width: 36px;
        height: 21px;
    }

    .switch-thumb {
        left: 3px;
        top: 3px;
        width: 15px;
        height: 15px;
    }

    html[data-theme="dark"] .switch-thumb {
        transform: translateX(15px);
    }

    .switch-thumb:after {
        font-size: 8px;
    }

    .switch-label {
        min-width: 24px;
        font-size: 11px;
    }

    .hero h1 {
        white-space: normal;
        max-width: 390px;
        margin: 0 auto;
        font-size: clamp(34px, 9vw, 42px);
        line-height: 1.03;
        letter-spacing: -0.06em;
    }

    .hero h1 .flame-text {
        display: block;
        margin-top: 3px;
        font-size: clamp(44px, 13vw, 58px);
        line-height: 0.98;
        letter-spacing: -0.065em;
    }

    .hero p {
        max-width: 350px;
        margin-top: 14px;
        font-size: 14px;
        line-height: 1.35;
    }

    .mobile-stats-wrap {
        display: block;
        position: relative;
        z-index: 7;
        margin-top: -42px;
        padding-top: 0;
        padding-bottom: 10px;
    }

    .mobile-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        border-radius: 20px;
        padding: 8px;
        background: var(--surface-strong);
        border: 1px solid var(--border);
        box-shadow: 0 16px 35px rgba(0,0,0,0.22);
        backdrop-filter: blur(12px);
    }

    .mobile-stats div {
        text-align: center;
        border-radius: 15px;
        padding: 9px 6px;
        background: linear-gradient(135deg, rgba(249,115,22,0.12), rgba(29,78,216,0.10));
    }

    .mobile-stats strong {
        display: block;
        font-size: 21px;
        line-height: 1;
        color: var(--text);
    }

    .mobile-stats span {
        display: block;
        margin-top: 5px;
        font-size: 11px;
        font-weight: 850;
        color: var(--muted);
    }

    .tabs-wrap {
        top: 0;
    }

    main.container {
        padding-top: 14px;
    }

    .seo-panel {
        border-radius: 22px;
        padding: 18px;
    }

    .seo-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .last-updated {
        text-align: left;
    }
}

@media screen and (max-width: 390px) {
    .hero {
        min-height: 382px;
    }

    .hero h1 {
        font-size: clamp(31px, 8.3vw, 36px);
    }

    .hero h1 .flame-text {
        font-size: clamp(40px, 11.5vw, 50px);
    }

    .event-badge strong {
        font-size: 10px;
    }
}


/* =========================
   MOBILE HEADER/TITLE FIX V9
   ========================= */

/* Icon ngôi nhà đổi sang SVG để luôn căn giữa, không còn lệch do pseudo-element */
.home-button-icon {
    width: 17px !important;
    height: 17px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 17px !important;
    position: static !important;
}

.home-button-icon::before,
.home-button-icon::after {
    content: none !important;
    display: none !important;
}

.home-button-icon svg {
    width: 17px;
    height: 17px;
    display: block;
    stroke: currentColor;
    stroke-width: 2.35;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

/* Khi bỏ badge FIFA, cụm top chỉ còn 2 nút nên căn đẹp hơn */
.hero-top {
    gap: 14px;
}

@media screen and (max-width: 760px) {
    .hero {
        min-height: 390px !important;
        padding-top: 18px !important;
        padding-bottom: 54px !important;
        align-items: flex-start !important;
        background-position: center bottom !important;
        overflow: hidden;
    }

    .hero-inner {
        width: 100%;
        overflow: visible;
    }

    .hero-top {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 12px !important;
        width: 100% !important;
        margin-bottom: 28px !important;
    }

    .home-button,
    .theme-switch {
        min-height: 38px !important;
        padding: 7px 13px !important;
        font-size: 13px !important;
        white-space: nowrap !important;
        flex: 0 0 auto !important;
        border-radius: 999px !important;
    }

    .home-button {
        gap: 7px !important;
    }

    .home-button-icon {
        width: 16px !important;
        height: 16px !important;
        flex-basis: 16px !important;
    }

    .home-button-icon svg {
        width: 16px;
        height: 16px;
    }

    .theme-switch {
        gap: 7px !important;
        padding-left: 7px !important;
        padding-right: 12px !important;
    }

    .switch-track {
        width: 44px !important;
        height: 25px !important;
    }

    .switch-thumb {
        left: 3px !important;
        top: 3px !important;
        width: 19px !important;
        height: 19px !important;
    }

    html[data-theme="dark"] .switch-thumb {
        transform: translateX(19px) !important;
    }

    .switch-thumb:after {
        font-size: 10px !important;
    }

    .switch-label {
        min-width: 30px !important;
        font-size: 13px !important;
    }

    /* Tiêu đề 2 dòng, không ép sát mép để tránh mất số 6 ở một số trình duyệt */
    .hero h1 {
        white-space: normal !important;
        width: 100% !important;
        max-width: calc(100vw - 28px) !important;
        margin: 0 auto !important;
        padding-left: 6px !important;
        padding-right: 6px !important;
        overflow: visible !important;
        text-align: center !important;
        font-size: clamp(31px, 8.4vw, 38px) !important;
        line-height: 1.06 !important;
        letter-spacing: -0.035em !important;
    }

    .hero h1 .flame-text {
        display: block !important;
        width: max-content !important;
        max-width: calc(100vw - 32px) !important;
        margin: 5px auto 0 !important;
        padding-left: 0.08em !important;
        padding-right: 0.10em !important;
        white-space: nowrap !important;
        overflow: visible !important;
        font-size: clamp(42px, 11.2vw, 50px) !important;
        line-height: 1.08 !important;
        letter-spacing: -0.035em !important;
        transform: translateZ(0);
        -webkit-font-smoothing: antialiased;
    }

    .flame-text:after {
        left: 8% !important;
        right: 8% !important;
        bottom: -2px !important;
        height: 6px !important;
    }

    .hero p {
        max-width: 350px !important;
        margin-top: 16px !important;
        font-size: 14px !important;
        line-height: 1.36 !important;
    }

    .mobile-stats-wrap {
        margin-top: -34px !important;
        position: relative;
        z-index: 5;
        padding-top: 0 !important;
    }
}

@media screen and (max-width: 390px) {
    .hero {
        min-height: 382px !important;
    }

    .hero-top {
        gap: 10px !important;
        margin-bottom: 26px !important;
    }

    .home-button,
    .theme-switch {
        min-height: 36px !important;
        padding: 7px 11px !important;
        font-size: 12.5px !important;
    }

    .hero h1 {
        font-size: clamp(29px, 8vw, 34px) !important;
    }

    .hero h1 .flame-text {
        font-size: clamp(39px, 10.7vw, 46px) !important;
        letter-spacing: -0.03em !important;
    }
}


/* =========================
   MOBILE STATS POSITION FIX V10
   ========================= */
@media screen and (max-width: 760px) {
    /* Banner mobile kết thúc gọn, không cần chừa chỗ cho stats nổi nữa */
    .hero {
        min-height: 390px !important;
        padding-bottom: 28px !important;
    }

    /* Tabs bám ngay dưới banner, dùng nền tối xuyên suốt để không lộ khoảng xám */
    .tabs-wrap {
        background:
            linear-gradient(180deg, rgba(6, 11, 22, 0.96), rgba(9, 17, 34, 0.92)) !important;
        border-top: 1px solid rgba(250, 204, 21, 0.18) !important;
        border-bottom: 1px solid rgba(148, 163, 184, 0.18) !important;
    }

    html[data-theme="light"] .tabs-wrap {
        background:
            linear-gradient(180deg, rgba(239, 244, 255, 0.96), rgba(232, 238, 248, 0.94)) !important;
        border-top: 1px solid rgba(249, 115, 22, 0.18) !important;
    }

    main.container {
        padding-top: 22px !important;
    }

    /* Stats chuyển xuống dưới CTA, không overlap banner nữa */
    .mobile-stats-wrap {
        display: block !important;
        margin-top: 14px !important;
        margin-bottom: 4px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        position: relative !important;
        z-index: 1 !important;
    }

    .mobile-stats {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
        border-radius: 24px !important;
        padding: 9px !important;
        background:
            linear-gradient(135deg, rgba(15, 23, 42, 0.86), rgba(30, 41, 59, 0.72)) padding-box,
            linear-gradient(90deg, rgba(249, 115, 22, 0.75), rgba(250, 204, 21, 0.5), rgba(37, 99, 235, 0.75)) border-box !important;
        border: 1px solid transparent !important;
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22) !important;
        backdrop-filter: blur(14px) !important;
    }

    html[data-theme="light"] .mobile-stats {
        background:
            linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.92)) padding-box,
            linear-gradient(90deg, rgba(249, 115, 22, 0.68), rgba(250, 204, 21, 0.5), rgba(37, 99, 235, 0.68)) border-box !important;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12) !important;
    }

    .mobile-stats div {
        text-align: center !important;
        border-radius: 17px !important;
        padding: 10px 5px !important;
        background: rgba(255, 255, 255, 0.07) !important;
        border: 1px solid rgba(255, 255, 255, 0.05) !important;
    }

    html[data-theme="light"] .mobile-stats div {
        background: rgba(29, 78, 216, 0.055) !important;
        border: 1px solid rgba(15, 23, 42, 0.04) !important;
    }

    .mobile-stats strong {
        display: block !important;
        font-size: 25px !important;
        line-height: 1 !important;
        color: var(--text) !important;
        font-weight: 1000 !important;
    }

    .mobile-stats span {
        display: block !important;
        margin-top: 6px !important;
        font-size: 12px !important;
        font-weight: 900 !important;
        color: var(--muted) !important;
    }

    /* CTA sát hơn với stats, nhìn thành một cụm thay vì chia mảng */
    .shop-cta {
        margin-bottom: 0 !important;
    }

    #today {
        margin-top: 36px !important;
    }
}

@media screen and (max-width: 390px) {
    .hero {
        min-height: 382px !important;
        padding-bottom: 26px !important;
    }

    .mobile-stats {
        border-radius: 22px !important;
        padding: 8px !important;
        gap: 7px !important;
    }

    .mobile-stats strong {
        font-size: 23px !important;
    }

    .mobile-stats span {
        font-size: 11.5px !important;
    }
}


/* MATCH DETAIL POPUP V11 */
.match-team,.score-pill{border:0;font-family:inherit;cursor:pointer}.match-team{color:inherit;background:transparent;padding:0}.match-team:hover span,.score-pill:hover{filter:brightness(1.08)}.match-team:focus-visible,.score-pill:focus-visible{outline:2px solid rgba(250,204,21,.9);outline-offset:3px}.wc-detail-open{overflow:hidden}.wc-detail-backdrop{position:fixed;inset:0;z-index:9999;background:rgba(2,6,23,.68);backdrop-filter:blur(9px);padding:22px;display:grid;place-items:center}.wc-detail-backdrop[hidden]{display:none}.wc-detail-modal{position:relative;width:min(920px,100%);max-height:min(86vh,820px);overflow:auto;border-radius:28px;color:var(--text);background:linear-gradient(135deg,var(--surface-strong),var(--surface)) padding-box,linear-gradient(90deg,rgba(249,115,22,.85),rgba(250,204,21,.52),rgba(37,99,235,.76)) border-box;border:1px solid transparent;box-shadow:0 28px 80px rgba(0,0,0,.36)}.wc-detail-close{position:sticky;top:12px;float:right;z-index:2;width:38px;height:38px;margin:12px 12px 0 0;border:0;border-radius:999px;color:#fff;background:linear-gradient(135deg,#f97316,#dc2626);font-size:26px;line-height:1;cursor:pointer;box-shadow:0 8px 20px rgba(220,38,38,.28)}.wc-detail-content{padding:24px;clear:both}.wc-detail-loading,.wc-detail-error,.wc-empty-line{padding:16px;border-radius:18px;background:rgba(148,163,184,.12);color:var(--muted);font-weight:800;text-align:center}.wc-detail-error{color:#ef4444}.wc-detail-hero{display:flex;align-items:center;gap:14px;margin-bottom:16px}.wc-detail-crest{width:60px;height:46px;object-fit:contain;padding:6px;border-radius:16px;background:rgba(255,255,255,.08);border:1px solid var(--border)}.wc-detail-kicker{display:inline-flex;margin-bottom:6px;padding:5px 10px;border-radius:999px;color:#fff;background:linear-gradient(135deg,#f97316,#dc2626);font-size:12px;font-weight:950}.wc-detail-hero h3{margin:0;font-size:clamp(24px,4vw,36px);line-height:1.08;letter-spacing:-.04em}.wc-detail-hero p{margin:7px 0 0;color:var(--muted);font-weight:800}.wc-score-row{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:12px;align-items:center;margin:16px 0;padding:14px;border-radius:20px;background:rgba(148,163,184,.10);border:1px solid var(--border);text-align:center;font-weight:950}.wc-score-row b{min-width:76px;padding:10px 14px;border-radius:16px;color:#fff;background:var(--score);box-shadow:0 8px 18px rgba(15,23,42,.22)}.wc-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:18px}.wc-info-grid>div{padding:14px;border-radius:18px;background:rgba(148,163,184,.10);border:1px solid var(--border)}.wc-info-grid strong{display:block;margin-bottom:5px;color:var(--title);font-weight:1000}.wc-info-grid span{color:var(--muted);font-weight:800;line-height:1.35}.wc-detail-section{margin-top:22px}.wc-detail-section h4{margin:0 0 12px;font-size:22px;line-height:1.15;color:var(--title)}.wc-detail-section h5{margin:0 0 10px;font-size:15px;color:var(--muted)}.wc-two-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.wc-recent-list{display:grid;gap:9px}.wc-recent-item{padding:12px;border-radius:16px;background:rgba(148,163,184,.10);border:1px solid var(--border)}.wc-recent-top{display:flex;justify-content:space-between;gap:8px;margin-bottom:8px;color:var(--muted);font-size:12px}.wc-recent-top strong{color:var(--title)}.wc-recent-match{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:8px;align-items:center;font-weight:850;font-size:14px}.wc-recent-match span{min-width:0;overflow:hidden;text-overflow:ellipsis}.wc-recent-match span:last-child{text-align:right}.wc-recent-match b{padding:5px 8px;border-radius:10px;color:#fff;background:var(--score);font-size:12px;white-space:nowrap}.wc-standing-wrap{overflow-x:auto;border-radius:18px;border:1px solid var(--border);background:rgba(148,163,184,.10)}.wc-standing-table{width:100%;min-width:620px;border-collapse:collapse}.wc-standing-table th,.wc-standing-table td{padding:10px;border-bottom:1px solid var(--border);text-align:center;font-size:13px}.wc-standing-table th{color:var(--title);font-weight:1000}.wc-standing-team{display:flex;align-items:center;gap:7px;text-align:left!important;font-weight:900}.wc-standing-team img{width:22px;height:16px;object-fit:contain;flex:0 0 22px}@media screen and (max-width:760px){.wc-detail-backdrop{padding:0;align-items:end}.wc-detail-modal{width:100%;max-height:88vh;border-radius:28px 28px 0 0}.wc-detail-content{padding:20px 14px 24px}.wc-detail-hero{align-items:flex-start}.wc-info-grid,.wc-two-cols{grid-template-columns:1fr}.wc-score-row{grid-template-columns:minmax(0,1fr) 68px minmax(0,1fr);gap:8px;font-size:14px}.wc-score-row b{min-width:68px;padding:9px 8px}.wc-detail-section h4{font-size:20px}}


/* =========================
   V18 SAFE ROLLBACK
   Chỉ giữ mobile stats gọn, KHÔNG đụng card desktop.
   ========================= */
@media screen and (max-width: 760px) {
    .mobile-stats-wrap {
        display: block;
        position: relative;
        z-index: 1;
        margin-top: 14px;
        margin-bottom: 2px;
        padding-left: 0;
        padding-right: 0;
        transform: none;
    }

    .mobile-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        border-radius: 22px;
        padding: 9px;
        background:
            linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(30, 41, 59, 0.74)) padding-box,
            linear-gradient(90deg, rgba(249, 115, 22, 0.78), rgba(250, 204, 21, 0.48), rgba(37, 99, 235, 0.78)) border-box;
        border: 1px solid transparent;
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
        backdrop-filter: blur(14px);
    }

    html[data-theme="light"] .mobile-stats {
        background:
            linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.92)) padding-box,
            linear-gradient(90deg, rgba(249, 115, 22, 0.7), rgba(250, 204, 21, 0.5), rgba(37, 99, 235, 0.7)) border-box;
    }

    .mobile-stats div {
        text-align: center;
        border-radius: 16px;
        padding: 10px 4px;
        background: rgba(255, 255, 255, 0.07);
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .mobile-stats strong {
        display: block;
        font-size: 23px;
        line-height: 1;
        color: var(--text);
        font-weight: 1000;
    }

    .mobile-stats span {
        display: block;
        margin-top: 6px;
        font-size: 11.5px;
        font-weight: 900;
        color: var(--muted);
    }
}


/* =========================================================
   TAB BUTTONS - NEON EFFECTS (ALL BUTTONS, EACH A COLOR)
   ========================================================= */

.tabs a {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        filter 0.22s ease,
        border-color 0.22s ease;
}

.tabs a::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(115deg,
        transparent 0%,
        rgba(255,255,255,0.00) 32%,
        rgba(255,255,255,0.34) 50%,
        rgba(255,255,255,0.00) 68%,
        transparent 100%);
    transform: translateX(-135%);
    animation: tabSweep 3.2s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

.tabs a::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    z-index: -1;
    opacity: 0.92;
}

.tabs a span,
.tabs a b {
    position: relative;
    z-index: 1;
}

.tabs a:hover {
    transform: translateY(-2px) scale(1.03);
    filter: brightness(1.08);
}

.tabs a[href="#today"] {
    color: #fff;
    border-color: rgba(251, 146, 60, 0.68);
    background: linear-gradient(135deg, #f97316, #ef4444);
    box-shadow:
        0 0 10px rgba(249, 115, 22, 0.38),
        0 0 24px rgba(239, 68, 68, 0.25),
        0 10px 22px rgba(0, 0, 0, 0.18);
    animation: neonPulseOrange 1.9s ease-in-out infinite;
}

.tabs a[href="#today"]::after {
    background: linear-gradient(135deg, rgba(249,115,22,0.45), rgba(239,68,68,0.28));
}

.tabs a[href="#schedule"] {
    color: #fff;
    border-color: rgba(59, 130, 246, 0.68);
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow:
        0 0 10px rgba(37, 99, 235, 0.38),
        0 0 24px rgba(6, 182, 212, 0.24),
        0 10px 22px rgba(0, 0, 0, 0.18);
    animation: neonPulseBlue 2s ease-in-out infinite;
}

.tabs a[href="#schedule"]::after {
    background: linear-gradient(135deg, rgba(37,99,235,0.42), rgba(6,182,212,0.24));
}

.tabs a[href="#results"] {
    color: #fff;
    border-color: rgba(168, 85, 247, 0.70);
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    box-shadow:
        0 0 10px rgba(124, 58, 237, 0.38),
        0 0 24px rgba(236, 72, 153, 0.24),
        0 10px 22px rgba(0, 0, 0, 0.18);
    animation: neonPulsePurple 2.05s ease-in-out infinite;
}

.tabs a[href="#results"]::after {
    background: linear-gradient(135deg, rgba(124,58,237,0.42), rgba(236,72,153,0.22));
}

.tabs a[href="bracket.php"] {
    color: #fff;
    border-color: rgba(250, 204, 21, 0.76);
    background: linear-gradient(135deg, #f59e0b, #e11d48, #7c3aed);
    box-shadow:
        0 0 12px rgba(245, 158, 11, 0.40),
        0 0 28px rgba(225, 29, 72, 0.26),
        0 10px 22px rgba(0, 0, 0, 0.18);
    animation: neonPulseGold 1.8s ease-in-out infinite;
}

.tabs a[href="bracket.php"]::after {
    background: linear-gradient(135deg, rgba(245,158,11,0.42), rgba(225,29,72,0.25), rgba(124,58,237,0.18));
}

.tabs a[href="#teams"] {
    color: #fff;
    border-color: rgba(34, 197, 94, 0.72);
    background: linear-gradient(135deg, #16a34a, #84cc16);
    box-shadow:
        0 0 10px rgba(22, 163, 74, 0.38),
        0 0 24px rgba(132, 204, 22, 0.24),
        0 10px 22px rgba(0, 0, 0, 0.18);
    animation: neonPulseGreen 2.1s ease-in-out infinite;
}

.tabs a[href="#teams"]::after {
    background: linear-gradient(135deg, rgba(22,163,74,0.42), rgba(132,204,22,0.24));
}

.tabs a[href="#today"]:hover {
    box-shadow:
        0 0 14px rgba(249, 115, 22, 0.58),
        0 0 30px rgba(239, 68, 68, 0.34),
        0 12px 26px rgba(0, 0, 0, 0.24);
}
.tabs a[href="#schedule"]:hover {
    box-shadow:
        0 0 14px rgba(37, 99, 235, 0.58),
        0 0 30px rgba(6, 182, 212, 0.32),
        0 12px 26px rgba(0, 0, 0, 0.24);
}
.tabs a[href="#results"]:hover {
    box-shadow:
        0 0 14px rgba(124, 58, 237, 0.56),
        0 0 30px rgba(236, 72, 153, 0.30),
        0 12px 26px rgba(0, 0, 0, 0.24);
}
.tabs a[href="bracket.php"]:hover {
    box-shadow:
        0 0 16px rgba(250, 204, 21, 0.76),
        0 0 34px rgba(225, 29, 72, 0.34),
        0 12px 26px rgba(0, 0, 0, 0.24);
}
.tabs a[href="#teams"]:hover {
    box-shadow:
        0 0 14px rgba(22, 163, 74, 0.56),
        0 0 30px rgba(132, 204, 22, 0.30),
        0 12px 26px rgba(0, 0, 0, 0.24);
}

@keyframes tabSweep {
    0%   { transform: translateX(-135%); }
    48%  { transform: translateX(135%); }
    100% { transform: translateX(135%); }
}

@keyframes neonPulseOrange {
    0%,100% {
        box-shadow:
            0 0 10px rgba(249,115,22,.36),
            0 0 22px rgba(239,68,68,.22),
            0 10px 22px rgba(0,0,0,.18);
    }
    50% {
        box-shadow:
            0 0 16px rgba(251,146,60,.62),
            0 0 34px rgba(239,68,68,.34),
            0 10px 24px rgba(0,0,0,.20);
    }
}
@keyframes neonPulseBlue {
    0%,100% {
        box-shadow:
            0 0 10px rgba(37,99,235,.34),
            0 0 22px rgba(6,182,212,.22),
            0 10px 22px rgba(0,0,0,.18);
    }
    50% {
        box-shadow:
            0 0 16px rgba(59,130,246,.60),
            0 0 34px rgba(6,182,212,.34),
            0 10px 24px rgba(0,0,0,.20);
    }
}
@keyframes neonPulsePurple {
    0%,100% {
        box-shadow:
            0 0 10px rgba(124,58,237,.34),
            0 0 22px rgba(236,72,153,.22),
            0 10px 22px rgba(0,0,0,.18);
    }
    50% {
        box-shadow:
            0 0 16px rgba(168,85,247,.58),
            0 0 34px rgba(236,72,153,.34),
            0 10px 24px rgba(0,0,0,.20);
    }
}
@keyframes neonPulseGold {
    0%,100% {
        box-shadow:
            0 0 12px rgba(245,158,11,.36),
            0 0 24px rgba(225,29,72,.22),
            0 10px 22px rgba(0,0,0,.18);
    }
    50% {
        box-shadow:
            0 0 18px rgba(250,204,21,.72),
            0 0 38px rgba(225,29,72,.34),
            0 10px 24px rgba(0,0,0,.20);
    }
}
@keyframes neonPulseGreen {
    0%,100% {
        box-shadow:
            0 0 10px rgba(22,163,74,.34),
            0 0 22px rgba(132,204,22,.22),
            0 10px 22px rgba(0,0,0,.18);
    }
    50% {
        box-shadow:
            0 0 16px rgba(34,197,94,.58),
            0 0 34px rgba(132,204,22,.34),
            0 10px 24px rgba(0,0,0,.20);
    }
}

@media (max-width: 768px) {
    .tabs {
        gap: 10px;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .tabs a {
        padding: 11px 18px;
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tabs a,
    .tabs a::before {
        animation: none !important;
    }
}


/* =========================================================
   TABS NEON MOBILE FIX V2
   Sửa lỗi chữ nút bị cắt trên điện thoại.
   Mobile dùng thanh cuộn ngang, mỗi nút tự ôm nội dung.
   ========================================================= */

@media (max-width: 768px) {
    .tabs-wrap {
        overflow: hidden !important;
    }

    .tabs,
    .tabs.container {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 10px !important;

        width: 100% !important;
        max-width: 100% !important;

        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x proximity !important;

        padding: 14px 12px !important;
        margin: 0 !important;
    }

    .tabs::-webkit-scrollbar,
    .tabs.container::-webkit-scrollbar {
        display: none !important;
    }

    .tabs,
    .tabs.container {
        scrollbar-width: none !important;
    }

    .tabs a {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: max-content !important;
        max-width: none !important;

        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        padding: 11px 18px !important;
        font-size: 14px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        text-overflow: unset !important;
        overflow: hidden !important;

        scroll-snap-align: start !important;
    }

    .tabs a[href="bracket.php"] {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }
}

/* Màn rất hẹp: giảm nhẹ padding/font nhưng vẫn không cắt chữ */
@media (max-width: 380px) {
    .tabs,
    .tabs.container {
        gap: 8px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .tabs a {
        padding: 10px 15px !important;
        font-size: 13px !important;
    }
}


/* =========================================================
   HOME CALENDAR BUTTON - DIRECT INDEX VERSION V3
   ========================================================= */

.wc-calendar-home-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 18px auto 4px;
    text-align: center;
}

.wc-calendar-home-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
    padding: 14px 24px;
    border-radius: 999px;
    border: 1px solid rgba(255, 209, 102, .68);
    background: linear-gradient(135deg, #f59e0b, #e11d48, #7c3aed);
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 1000;
    line-height: 1.15;
    overflow: hidden;
    box-shadow:
        0 0 12px rgba(245, 158, 11, .40),
        0 0 30px rgba(225, 29, 72, .28),
        0 14px 34px rgba(0, 0, 0, .22);
    animation: wcCalendarHomePulse 1.9s ease-in-out infinite;
}

.wc-calendar-home-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        110deg,
        transparent 0%,
        rgba(255,255,255,0.0) 32%,
        rgba(255,255,255,0.42) 50%,
        rgba(255,255,255,0.0) 68%,
        transparent 100%
    );
    transform: translateX(-135%);
    animation: wcCalendarHomeSweep 2.8s ease-in-out infinite;
    pointer-events: none;
}

.wc-calendar-home-btn:hover {
    transform: translateY(-2px) scale(1.02);
    filter: brightness(1.08);
    box-shadow:
        0 0 18px rgba(250, 204, 21, .72),
        0 0 40px rgba(225, 29, 72, .36),
        0 18px 42px rgba(0, 0, 0, .28);
}

.wc-calendar-home-note {
    max-width: 760px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.45;
}

.wc-calendar-home-note a {
    color: var(--title);
    font-weight: 1000;
}

@keyframes wcCalendarHomePulse {
    0%, 100% {
        box-shadow:
            0 0 12px rgba(245, 158, 11, .36),
            0 0 26px rgba(225, 29, 72, .22),
            0 14px 34px rgba(0, 0, 0, .20);
    }
    50% {
        box-shadow:
            0 0 20px rgba(250, 204, 21, .72),
            0 0 42px rgba(225, 29, 72, .36),
            0 14px 34px rgba(0, 0, 0, .22);
    }
}

@keyframes wcCalendarHomeSweep {
    0% { transform: translateX(-135%); }
    48%, 100% { transform: translateX(135%); }
}

@media (max-width: 760px) {
    .wc-calendar-home-actions {
        margin-top: 14px;
        padding-left: 0;
        padding-right: 0;
    }

    .wc-calendar-home-btn {
        width: 100%;
        padding: 13px 14px;
        font-size: 14px;
        white-space: normal;
    }

    .wc-calendar-home-note {
        padding-left: 6px;
        padding-right: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wc-calendar-home-btn,
    .wc-calendar-home-btn::before {
        animation: none !important;
    }
}
