* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: #f3f6fb;
    color: #0f172a;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-layout {
    min-height: 100vh;
    display: flex;
}

/* SIDEBAR DASHBOARD */
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    width: 280px;
    padding: 26px 20px;
    overflow-y: auto;
    color: #fff;
    background: linear-gradient(180deg, #0b1430, #071025 72%, #020617);
    box-shadow: 16px 0 45px rgba(2, 6, 23, .18);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 38px;
}

.brand-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    font-size: 30px;
    box-shadow: 0 18px 35px rgba(37, 99, 235, .35);
}

.sidebar-brand strong {
    display: block;
    font-size: 22px;
    line-height: 1.05;
}

.sidebar-brand span {
    display: block;
    margin-top: 4px;
    color: #94a3b8;
    font-size: 13px;
}

.side-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.side-menu a {
    min-height: 58px;
    padding: 0 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 850;
    transition: .2s ease;
}

.side-menu a span {
    width: 28px;
    text-align: center;
    font-size: 20px;
}

.side-menu a:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.side-menu a.active {
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    box-shadow: 0 18px 35px rgba(37, 99, 235, .30);
}

.sidebar-footer {
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.12);
    color: #cbd5e1;
}

.sidebar-footer span,
.sidebar-footer small {
    display: block;
}

/* MAIN */
.main-panel {
    width: 100%;
    min-height: 100vh;
    margin-left: 280px;
}

.main-header {
    min-height: 150px;
    padding: 34px 42px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.main-header h1 {
    margin: 0;
    font-size: 42px;
    line-height: 1.1;
    color: #1e3a8a;
}

.main-header p {
    margin: 10px 0 0;
    color: #64748b;
    font-size: 17px;
    font-weight: 650;
}

.header-badge {
    padding: 14px 18px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    font-weight: 900;
    white-space: nowrap;
    box-shadow: 0 12px 30px rgba(37, 99, 235, .25);
}

.container {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 30px;
}

/* CARDS */
.hero-card,
.filter-card,
.match-card,
.simple-card,
.standing-card,
.news-card,
.empty-card,
.result-summary,
.pagination-card,
.group-card {
    background: #fff;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, .18);
    box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
}

.hero-card {
    padding: 24px;
    margin-bottom: 18px;
}

.hero-card h1 {
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.2;
}

.hero-card p {
    margin: 0;
    color: #64748b;
    line-height: 1.45;
    font-size: 17px;
}

.live-hero {
    background: linear-gradient(135deg, #fff, #fee2e2);
}

/* FILTER */
.filter-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.3fr auto auto;
    gap: 14px;
    padding: 18px;
    margin-bottom: 18px;
    align-items: end;
    overflow: visible;
}

.filter-field,
.filter-card > div {
    width: 100%;
    min-width: 0;
}

.filter-card label,
.filter-field label {
    display: block;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
    font-weight: 900;
}

input,
select,
button,
.ghost-btn {
    width: 100%;
    min-height: 54px;
    height: 54px;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    padding: 0 16px;
    font-size: 16px;
    background: #fff;
    color: #0f172a;
}

input[type="date"] {
    display: block;
    width: 100%;
    min-width: 100%;
    -webkit-appearance: none;
    appearance: none;
    line-height: 54px;
}

button,
.ghost-btn {
    cursor: pointer;
    border: none;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    font-weight: 900;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ghost-btn {
    background: #e2e8f0;
    color: #0f172a;
}

/* MATCHES */
.day-title,
.section-title {
    margin: 22px 4px 12px;
    font-size: 20px;
}

.match-card {
    display: grid;
    grid-template-columns: 90px 1fr 110px;
    gap: 14px;
    padding: 16px;
    margin-bottom: 12px;
    align-items: center;
}

.match-time strong {
    display: block;
    font-size: 20px;
}

.match-time span,
.match-meta {
    color: #64748b;
    font-size: 12px;
}

.team-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
    font-size: 17px;
    font-weight: 750;
}

.team-row strong {
    font-size: 19px;
}

.match-status {
    justify-self: end;
    border-radius: 999px;
    padding: 8px 11px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.status-live { background: #fee2e2; color: #dc2626; }
.status-finished { background: #dcfce7; color: #16a34a; }
.status-scheduled { background: #dbeafe; color: #2563eb; }
.status-muted { background: #f1f5f9; color: #64748b; }

.simple-card {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    margin-bottom: 12px;
    align-items: center;
}

.simple-card p {
    margin: 4px 0 0;
    color: #64748b;
}

.empty-card {
    padding: 20px;
    color: #64748b;
}

.result-summary {
    padding: 14px 18px;
    margin-bottom: 16px;
    color: #475569;
}

/* TABLES */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

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

th,
td {
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 10px;
    text-align: center;
    font-size: 14px;
    vertical-align: middle;
}

th {
    background: #f8fafc;
    color: #475569;
}

/* STANDINGS */
.standings-hero {
    background: linear-gradient(135deg, #fff, #eff6ff);
}

.standings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

.standing-card {
    padding: 16px;
    margin-bottom: 18px;
}

.colorful-standing {
    padding: 0;
    overflow: hidden;
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    color: #fff;
    padding: 18px 20px;
    background: linear-gradient(135deg, #0f172a, #2563eb);
}

.group-kicker {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .14em;
    opacity: .75;
    margin-bottom: 4px;
}

.group-header h2 {
    margin: 0;
    font-size: 24px;
}

.group-badge {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .28);
    font-weight: 900;
    font-size: 22px;
}

.standing-table {
    min-width: 800px;
}

.standing-table th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.standing-table .team-col {
    width: 330px;
    text-align: left;
}

.standing-table tbody tr {
    transition: background .18s ease;
}

.standing-table tbody tr:hover {
    background: #dbeafe;
}

.team-name {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    text-align: left;
    font-weight: 850;
    white-space: nowrap;
}

.team-name span {
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
    white-space: nowrap;
}

.country-flag {
    display: block;
    width: 36px;
    height: 24px;
    min-width: 36px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}

.rank-pill {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    font-size: 13px;
}

.rank-1 { background: linear-gradient(135deg, #f59e0b, #facc15); color: #111827; }
.rank-2 { background: linear-gradient(135deg, #94a3b8, #e2e8f0); color: #111827; }
.rank-3 { background: linear-gradient(135deg, #d97706, #92400e); }
.rank-4 { background: linear-gradient(135deg, #64748b, #334155); }

.qualified-row { background: #ecfdf5; }
.third-row { background: #fffbeb; }
.normal-row { background: #fff; }

.points-pill {
    display: inline-flex;
    min-width: 34px;
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    background: #2563eb;
    color: #fff;
    font-weight: 900;
}

.positive { color: #16a34a; }
.negative { color: #dc2626; }

.standing-note {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    padding: 12px 18px 16px;
    font-size: 13px;
    color: #64748b;
    background: #fff;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
    margin-right: -8px;
}

.dot.green { background: #22c55e; }
.dot.amber { background: #f59e0b; }

/* NEWS */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.news-card {
    overflow: hidden;
}

.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.news-body {
    padding: 16px;
}

.news-source {
    color: #64748b;
    font-size: 12px;
    margin-bottom: 8px;
}

.news-card h2 {
    font-size: 18px;
    margin: 0 0 8px;
}

.news-card p {
    color: #475569;
    margin: 0 0 10px;
}

.news-card a {
    color: #2563eb;
    font-weight: 900;
    text-decoration: none;
}

/* PAGINATION */
.pagination-card {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 14px;
    margin: 18px 0;
}

.pagination-card a,
.pagination-card span {
    min-width: 38px;
    height: 38px;
    padding: 8px 12px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    font-weight: 900;
    color: #0f172a;
    background: #f1f5f9;
}

.pagination-card .active {
    background: #2563eb;
    color: #fff;
}

.pagination-card .disabled {
    opacity: .45;
}

/* TEAMS */
.group-card {
    padding: 18px;
    margin-bottom: 18px;
}

.group-card h2 {
    margin: 0 0 12px;
}

.team-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.team-pill {
    display: block;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 16px;
    padding: 14px;
    color: #0f172a;
    text-decoration: none;
}

.team-pill strong,
.team-pill span {
    display: block;
}

.team-pill span {
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
}

/* BRACKET */
.bracket-scroll {
    overflow-x: auto;
    padding-bottom: 10px;
}

.bracket-board {
    min-width: 1180px;
    display: grid;
    grid-template-columns: 1.4fr 1.15fr 1fr 1fr 1fr 1fr;
    gap: 14px;
    align-items: start;
}

.bracket-round {
    background: #fff;
    border-radius: 20px;
    padding: 14px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
}

.bracket-round h2 {
    margin: 0 0 12px;
    font-size: 16px;
}

.bracket-match {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
    padding: 12px;
    margin-bottom: 12px;
}

.bracket-match-head,
.bracket-team {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.bracket-match-head {
    color: #64748b;
    font-size: 12px;
    margin-bottom: 8px;
}

.bracket-team {
    background: #fff;
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 6px;
    font-size: 13px;
}

.bracket-status {
    display: inline-block;
    border-radius: 999px;
    padding: 5px 8px;
    font-size: 11px;
    font-weight: 900;
}

/* RESPONSIVE */
@media (min-width: 1280px) {
    .standings-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 980px) {
    body {
        padding-bottom: 96px;
    }

    .app-layout {
        display: block;
    }

    .sidebar {
        display: none;
    }

    .main-panel {
        margin-left: 0;
    }

    .main-header {
        min-height: auto;
        padding: 24px 22px;
        color: #fff;
        background: linear-gradient(135deg, #0f172a, #1e3a8a);
        border-bottom: none;
    }

    .main-header h1 {
        color: #fff;
        font-size: 30px;
    }

    .main-header p {
        color: #dbeafe;
        font-size: 14px;
    }

    .header-badge {
        display: none;
    }

    .container {
        padding: 22px;
    }

    .filter-card {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 18px;
    }

    input,
    select,
    button,
    .ghost-btn {
        min-height: 58px;
        height: 58px;
        border-radius: 16px;
        font-size: 17px;
        padding: 0 18px;
    }

    input[type="date"] {
        min-height: 58px;
        height: 58px;
        line-height: 58px;
    }

    .match-card {
        grid-template-columns: 74px 1fr;
    }

    .match-status {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .team-list {
        grid-template-columns: 1fr;
    }

    .bracket-board {
        min-width: 980px;
    }

    .bottom-nav a {
        color: #cbd5e1;
        text-decoration: none;
        text-align: center;
        border-radius: 16px;
        padding: 8px 4px;
        font-size: 18px;
    }

    .bottom-nav a span {
        display: block;
        font-size: 11px;
        margin-top: 2px;
    }

    .bottom-nav a.active {
        color: #fff;
        background: #2563eb;
    }
}

@media (max-width: 520px) {
    .container {
        padding: 16px;
    }

    .hero-card {
        padding: 20px;
    }

    .hero-card h1 {
        font-size: 25px;
    }

    .hero-card p {
        font-size: 17px;
    }

    .main-header {
        padding: 22px 18px;
    }

    .main-header h1 {
        font-size: 28px;
    }

    .standing-table {
        min-width: 760px;
    }

    .country-flag {
        width: 34px;
        height: 23px;
        min-width: 34px;
    }
}

.prediction-box {
    grid-column: 1 / -1;
    margin-top: 12px;
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient(135deg, #eff6ff, #f5f3ff);
    border: 1px solid #dbeafe;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(60px,1fr));
    gap: 10px;
}

.prediction-box div {
    background: #fff;
    border-radius: 14px;
    padding: 12px;
}

.prediction-box strong {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
}

.prediction-box span {
    font-weight: 900;
    color: #1e3a8a;
}

.prediction-box small {
    grid-column: 1 / -1;
    color: #64748b;
    line-height: 1.4;
}

@media (max-width: 760px) {
    .prediction-box {
        grid-template-columns: 1fr;
    }
}

.prediction-box {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 14px;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, #eff6ff, #f5f3ff);
    border: 1px solid #dbeafe;
}

.prediction-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.prediction-head strong {
    font-size: 18px;
    color: #0f172a;
}

.prediction-head span {
    background: #2563eb;
    color: #fff;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 900;
}

.prediction-grid {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(60px,1fr));
    gap: 10px;
}

.prediction-grid div {
    background: #fff;
    border-radius: 14px;
    padding: 12px;
}

.prediction-grid small {
    display: block;
    color: #64748b;
    font-weight: 800;
    margin-bottom: 6px;
}

.prediction-grid b {
    color: #1e3a8a;
}

.prediction-box p {
    margin: 12px 0 0;
    color: #64748b;
    line-height: 1.45;
}

@media (max-width: 760px) {
    .prediction-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .prediction-grid {
        grid-template-columns: 1fr;
    }

    .prediction-box {
        padding: 14px;
    }
}

.prediction-card {
    background: #fff;
    border-radius: 24px;
    padding: 22px;
    margin-bottom: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
    border: 1px solid rgba(148, 163, 184, .18);
}

.prediction-match-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 16px;
}

.prediction-match-head strong {
    font-size: 18px;
}

.prediction-match-head p {
    margin: 6px 0 0;
    color: #64748b;
}

.prediction-score {
    min-width: 76px;
    height: 48px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 20px;
}

.prediction-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
    background: #f8fafc;
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 14px;
    font-size: 20px;
    font-weight: 900;
}

.prediction-teams span {
    color: #64748b;
    font-size: 14px;
}

.prediction-info-grid {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(60px,1fr));
    gap: 10px;
}

.prediction-info-grid div {
    background: linear-gradient(135deg, #eff6ff, #f5f3ff);
    border-radius: 16px;
    padding: 14px;
}

.prediction-info-grid small {
    display: block;
    color: #64748b;
    font-weight: 800;
    margin-bottom: 6px;
}

.prediction-info-grid b {
    color: #1e3a8a;
}

.prediction-note {
    color: #64748b;
    margin: 14px 0 0;
    line-height: 1.5;
}

@media (max-width: 760px) {
    .prediction-match-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .prediction-teams {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .prediction-info-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================
   FINAL FIX OVERRIDES
   2026-06-04
   Fix: mobile bottom nav, prediction layout, duplicate old prediction CSS.
   Put this file as whole assets/style.css or keep this section at the end.
   ========================= */

@media (max-width: 980px) {
    body {
        padding-bottom: 130px !important;
    }

    .container {
        padding-bottom: 150px !important;
    }

    .bottom-nav a {
        color: #cbd5e1 !important;
        text-decoration: none !important;
        text-align: center !important;
        border-radius: 16px !important;
        padding: 8px 2px !important;
        font-size: 20px !important;
        line-height: 1.1 !important;
    }

    .bottom-nav a span {
        display: block !important;
        font-size: 11px !important;
        margin-top: 3px !important;
        white-space: nowrap !important;
    }

    .bottom-nav a.active {
        color: #fff !important;
        background: #2563eb !important;
    }
}

/* Prediction inside match card */
.prediction-box {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    margin-top: 14px !important;
    padding: 16px !important;
    border-radius: 18px !important;
    background: linear-gradient(135deg, #eff6ff, #f5f3ff) !important;
    border: 1px solid #dbeafe !important;
    display: block !important;
}

.prediction-head {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
}

.prediction-head strong {
    display: block !important;
    font-size: 18px !important;
    color: #0f172a !important;
    margin: 0 !important;
}

.prediction-head span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #2563eb !important;
    color: #fff !important;
    border-radius: 999px !important;
    padding: 8px 14px !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
}

.prediction-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 10px !important;
}

.prediction-grid div {
    background: #fff !important;
    border-radius: 14px !important;
    padding: 12px !important;
}

.prediction-grid small {
    display: block !important;
    color: #64748b !important;
    font-weight: 800 !important;
    margin-bottom: 6px !important;
}

.prediction-grid b {
    color: #1e3a8a !important;
}

.prediction-box p {
    margin: 12px 0 0 !important;
    color: #64748b !important;
    line-height: 1.45 !important;
}

/* Predictions page modern cards */
.prediction-card {
    background: #fff !important;
    border-radius: 24px !important;
    padding: 22px !important;
    margin-bottom: 18px !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .08) !important;
    border: 1px solid rgba(148, 163, 184, .18) !important;
}

.prediction-date {
    font-size: 22px !important;
    font-weight: 900 !important;
    margin-bottom: 6px !important;
    color: #0f172a !important;
}

.prediction-group {
    color: #64748b !important;
    font-size: 14px !important;
    margin-bottom: 14px !important;
}

.prediction-scoreboard {
    background: #f8fafc !important;
    border-radius: 16px !important;
    padding: 14px !important;
    margin-bottom: 14px !important;
}

.prediction-team {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 7px 0 !important;
    font-size: 18px !important;
    font-weight: 850 !important;
}

.prediction-team-score {
    width: 38px !important;
    height: 38px !important;
    border-radius: 12px !important;
    background: #2563eb !important;
    color: #fff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    flex-shrink: 0 !important;
}

.prediction-stat {
    padding: 11px 14px !important;
    margin-bottom: 8px !important;
    border-radius: 14px !important;
    background: #f8fafc !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
}

.prediction-stat strong {
    color: #0f172a !important;
}

.prediction-confidence {
    background: #ecfdf5 !important;
    color: #16a34a !important;
}

.prediction-overunder {
    background: #eff6ff !important;
    color: #2563eb !important;
}

.prediction-note {
    margin-top: 12px !important;
    color: #64748b !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

@media (max-width: 760px) {
    .prediction-head {
        align-items: flex-start !important;
        flex-direction: column !important;
    }

    .prediction-grid {
        grid-template-columns: 1fr !important;
    }

    .prediction-box {
        padding: 14px !important;
    }

    .prediction-card {
        padding: 16px !important;
        border-radius: 22px !important;
    }

    .prediction-date {
        font-size: 20px !important;
    }

    .prediction-team {
        font-size: 17px !important;
    }

    .prediction-stat {
        font-size: 14px !important;
    }
}

@media (max-width: 520px) {

    .bottom-nav a {
        font-size: 19px !important;
        padding: 8px 1px !important;
    }

    .bottom-nav a span {
        font-size: 10px !important;
    }
}

@media (max-width: 980px) {
    body {
        padding-bottom: 115px !important;
    }

    .container {
        padding-bottom: 135px !important;
    }

    .bottom-nav a {
        min-width: 0 !important;
        min-height: 58px !important;

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

        padding: 6px 1px !important;
        border-radius: 17px !important;

        color: #cbd5e1 !important;
        text-decoration: none !important;
        text-align: center !important;

        font-size: 19px !important;
        line-height: 1 !important;
    }

    .bottom-nav a span {
        display: block !important;
        width: 100% !important;
        margin-top: 4px !important;

        font-size: 10px !important;
        font-weight: 800 !important;
        line-height: 1.05 !important;

        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .bottom-nav a.active {
        color: #fff !important;
        background: #2563eb !important;
    }
}

@media (max-width: 380px) {
    
    .bottom-nav a {
        font-size: 17px !important;
        min-height: 54px !important;
    }

    .bottom-nav a span {
        font-size: 9px !important;
    }
}

/* MOBILE NAV FINAL */

@media (max-width:980px){

    body{
        padding-bottom:110px;
    }

    .container{
        padding-bottom:130px;
    }

    .bottom-nav{
        position:fixed;
        left:10px;
        right:10px;
        bottom:10px;
        z-index:9999;

        display:flex !important;
        justify-content:center;
        align-items:center;
        gap:4px;

        padding:8px;

        background:rgba(8,21,51,.96);
        border-radius:24px;

        box-shadow:0 12px 30px rgba(0,0,0,.25);
    }

    .bottom-nav a{
        width:56px;
        min-width:56px;
        height:56px;

        display:flex;
        flex-direction:column;
        align-items:center;
        justify-content:center;

        border-radius:16px;

        color:#cbd5e1;
        text-decoration:none;

        font-size:18px;
        line-height:1;
    }

    .bottom-nav a span{
        margin-top:3px;

        font-size:9px;
        font-weight:700;

        white-space:nowrap;
    }

    .bottom-nav a.active{
        background:#2563eb;
        color:#fff;
    }
}

/* FORCE FIX MOBILE BOTTOM NAV */
@media (max-width: 980px) {
    .bottom-nav {
        position: fixed !important;
        left: 50% !important;
        right: auto !important;
        bottom: 10px !important;
        transform: translateX(-50%) !important;

        width: auto !important;
        max-width: calc(100vw - 12px) !important;

        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        align-items: center !important;

        gap: 2px !important;
        padding: 6px !important;

        background: rgba(8, 21, 51, .97) !important;
        border-radius: 22px !important;
        z-index: 99999 !important;
        overflow: hidden !important;
    }

    .bottom-nav a {
        width: 48px !important;
        min-width: 48px !important;
        max-width: 48px !important;
        height: 52px !important;
        min-height: 52px !important;

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

        padding: 4px 1px !important;
        margin: 0 !important;
        border-radius: 15px !important;

        color: #cbd5e1 !important;
        text-decoration: none !important;
        text-align: center !important;

        font-size: 17px !important;
        line-height: 1 !important;

        flex: 0 0 48px !important;
        white-space: nowrap !important;
    }

    .bottom-nav a span {
        display: block !important;
        width: 100% !important;
        margin-top: 3px !important;

        font-size: 8.5px !important;
        line-height: 1 !important;
        font-weight: 700 !important;

        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: clip !important;
    }

    .bottom-nav a.active {
        background: #2563eb !important;
        color: #fff !important;
    }

    body {
        padding-bottom: 105px !important;
    }

    .container {
        padding-bottom: 125px !important;
    }
}

.video-box {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

.video-box iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    display: block;
}

.video-grid {
    margin-bottom: 20px;
}

.channel-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.channel-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #fff;
    border-radius: 22px;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, .18);
    box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
}

.channel-icon {
    width: 54px;
    height: 54px;
    min-width: 54px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    font-size: 26px;
}

.channel-card h2 {
    margin: 0 0 6px;
    font-size: 20px;
}

.channel-card p {
    margin: 0 0 10px;
    color: #64748b;
    line-height: 1.45;
}

.channel-card a {
    color: #2563eb;
    font-weight: 900;
    text-decoration: none;
}

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

.channel-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:18px;
}

.youtube-channel-card{
    background:#fff;
    border-radius:24px;
    padding:20px;
    border:1px solid rgba(148,163,184,.18);
    box-shadow:0 10px 30px rgba(15,23,42,.08);
}

.youtube-channel-top{
    display:flex;
    gap:16px;
    align-items:flex-start;
}

.youtube-channel-avatar{
    width:64px;
    height:64px;
    min-width:64px;
    border-radius:50%;
    background:#f1f5f9;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:30px;
}

.youtube-channel-card h2{
    margin:0 0 6px;
    font-size:22px;
}

.youtube-channel-card p{
    margin:0;
    color:#64748b;
    line-height:1.45;
}

.youtube-open-btn{
    margin-top:18px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:11px 18px;
    border-radius:999px;
    background:#ff0000;
    color:#fff !important;
    text-decoration:none;
    font-weight:900;
}

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

.header-right{
    display:flex;
    align-items:center;
    gap:14px;
}

.vn-clock{
    min-width:150px;
    height:44px;

    display:flex;
    align-items:center;
    justify-content:center;

    padding:0 16px;

    border-radius:999px;

    background:linear-gradient(
        135deg,
        #2563eb,
        #7c3aed
    );

    color:#fff;
    font-weight:800;
    font-size:16px;
}

@media(max-width:768px){
    .vn-clock{
        display:none;
    }
}

.main-header{
    display:grid;
    grid-template-columns:1fr auto auto;
    align-items:center;
}

.header-center{
    display:flex;
    justify-content:center;
}

.wc-clock{
    display:flex;
    align-items:center;
    gap:12px;

    padding:14px 28px;

    border-radius:18px;

    background:linear-gradient(
        135deg,
        #071b4d,
        #172554,
        #1e3a8a
    );

    color:#fff;

    font-size:28px;
    font-weight:800;

    box-shadow:
        0 12px 35px rgba(30,58,138,.35);
}

.wc-clock span:first-child{
    font-size:30px;
}

@media(max-width:900px){

    .main-header{
        grid-template-columns:1fr;
        gap:16px;
    }

    .header-center{
        justify-content:flex-start;
    }

    .wc-clock{
        font-size:20px;
        padding:12px 20px;
    }
}

.header-center{
    display:flex;
    justify-content:center;
}

.wc-clock{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    min-width:420px;
    padding:16px 24px;
    border-radius:20px;

    background:linear-gradient(135deg,#0f172a,#1e3a8a,#4f46e5);
    color:#fff;

    box-shadow:0 12px 30px rgba(37,99,235,.25);
}

.clock-time{
    font-size:28px;
    font-weight:900;
}

.clock-countdown{
    margin-top:6px;
    font-size:14px;
    opacity:.95;
}

@media(max-width:900px){
    .wc-clock{
        min-width:100%;
        padding:14px;
    }

    .clock-time{
        font-size:22px;
    }

    .clock-countdown{
        font-size:13px;
    }
}

/* Nâng cấp style cho dự đoán mới */

.prediction-card {
    transition: transform 0.2s;
}

.prediction-card:hover {
    transform: translateY(-2px);
}

.prediction-card.knockout-match {
    border-left: 4px solid #f59e0b;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}

.knockout-ribbon {
    position: absolute;
    top: 12px;
    right: -30px;
    background: #f59e0b;
    color: #000;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 30px;
    transform: rotate(45deg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.prediction-scoreboard {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 20px 0;
}

.prediction-team {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: bold;
}

.prediction-team.home {
    justify-content: flex-end;
}

.prediction-team.away {
    justify-content: flex-start;
}

.team-flag {
    font-size: 32px;
}

.team-name {
    font-size: 1rem;
}

.vs-divider {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: bold;
}

.prediction-team-score {
    font-size: 1.8rem;
    font-weight: bold;
    background: #334155;
    padding: 5px 12px;
    border-radius: 8px;
    min-width: 60px;
    text-align: center;
}

.prob-bar-container {
    margin: 15px 0;
}

.prob-bar {
    display: flex;
    height: 32px;
    border-radius: 8px;
    overflow: hidden;
}

.prob-home {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    text-align: center;
    color: white;
    font-size: 11px;
    font-weight: bold;
    line-height: 32px;
}

.prob-draw {
    background: linear-gradient(135deg, #475569, #64748b);
    text-align: center;
    color: white;
    font-size: 11px;
    font-weight: bold;
    line-height: 32px;
}

.prob-away {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    text-align: center;
    color: white;
    font-size: 11px;
    font-weight: bold;
    line-height: 32px;
}

.prediction-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin: 15px 0;
    padding: 10px;
    background: #1e293b;
    border-radius: 12px;
}

.prediction-stat {
    font-size: 12px;
    text-align: center;
    padding: 6px;
    background: #0f172a;
    border-radius: 8px;
}

.prediction-stat strong {
    color: #fbbf24;
    display: block;
    margin-top: 4px;
}

.betting-box {
    background: rgba(34, 197, 94, 0.1);
    border-radius: 12px;
    padding: 12px;
    margin: 15px 0;
    border-left: 3px solid #22c55e;
}

.betting-title {
    font-size: 12px;
    color: #22c55e;
    font-weight: bold;
    margin-bottom: 8px;
}

.betting-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.betting-tag {
    background: rgba(34, 197, 94, 0.2);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    color: #86efac;
}

.prediction-confidence {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #334155;
    text-align: right;
    font-size: 13px;
}

.prediction-note {
    margin-top: 10px;
    font-size: 11px;
    color: #64748b;
    font-style: italic;
}

@media (max-width: 640px) {
    .prediction-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .prediction-team-score {
        font-size: 1.2rem;
        min-width: 45px;
        padding: 3px 8px;
    }
    
    .team-flag {
        font-size: 24px;
    }
}

.prediction-scoreboard-simple {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.score-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #1e293b;
    border-radius: 12px;
}

.score-row.home {
    flex-direction: row;
}

.score-row.away {
    flex-direction: row-reverse;
}

.team-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.score-cell {
    font-size: 1.6rem;
    font-weight: bold;
    background: #334155;
    padding: 4px 16px;
    border-radius: 8px;
    min-width: 60px;
    text-align: center;
}

.score-vs {
    text-align: center;
    font-size: 12px;
    color: #64748b;
    font-weight: bold;
}

@media (max-width: 640px) {
    .score-cell {
        font-size: 1.2rem;
        min-width: 50px;
        padding: 4px 12px;
    }
    
    .team-flag {
        font-size: 24px;
    }
    
    .team-name {
        font-size: 14px;
    }
}

.prediction-scoreboard {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.score-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1e293b;
    border-radius: 12px;
    padding: 10px 16px;
}

.score-row-home {
    flex-direction: row;
}

.score-row-away {
    flex-direction: row-reverse;
}

.team-left, .team-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.score-number {
    font-size: 1.8rem;
    font-weight: bold;
    background: #334155;
    padding: 4px 20px;
    border-radius: 10px;
    min-width: 70px;
    text-align: center;
}

.vs-divider {
    text-align: center;
    font-size: 12px;
    color: #64748b;
    font-weight: bold;
    letter-spacing: 2px;
}

@media (max-width: 640px) {
    .score-number {
        font-size: 1.3rem;
        min-width: 55px;
        padding: 4px 12px;
    }
    
    .team-flag {
        font-size: 24px;
    }
    
    .team-name {
        font-size: 14px;
    }
    
    .team-left, .team-right {
        gap: 6px;
    }
}

/* Màu sắc cho đội bóng */
.prediction-team.home .home-name {
    color: #3b82f6 !important;  /* Màu xanh dương cho chủ nhà */
    font-weight: bold;
}

.prediction-team.away .away-name {
    color: #ef4444 !important;  /* Màu đỏ cho đội khách */
    font-weight: bold;
}

.prediction-team-score.home-score {
    background: linear-gradient(135deg, #1e3a5f, #2563eb);
    color: white;
}

.prediction-team-score.away-score {
    background: linear-gradient(135deg, #7f1a1a, #dc2626);
    color: white;
}

/* Hiệu ứng hover */
.prediction-team.home:hover .home-name {
    color: #60a5fa !important;
    transition: color 0.3s ease;
}

.prediction-team.away:hover .away-name {
    color: #f87171 !important;
    transition: color 0.3s ease;
}

/* VS divider styling */
.vs-divider {
    background: #334155;
    padding: 4px 12px;
    border-radius: 20px;
}

.vs-text {
    color: #94a3b8;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 2px;
}

/* Responsive cho mobile */
@media (max-width: 640px) {
    .home-name, .away-name {
        font-size: 14px;
    }
    
    .prediction-team-score.home-score,
    .prediction-team-score.away-score {
        font-size: 1.3rem;
        min-width: 50px;
        padding: 4px 12px;
    }
    
    .vs-text {
        font-size: 11px;
    }
}

.country-flag{
    width:28px;
    height:20px;
    object-fit:cover;
    border-radius:3px;
    box-shadow:0 1px 3px rgba(0,0,0,.2);
}

/* FORCE STANDINGS FULL WIDTH */
.standings-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
}

.standing-card,
.colorful-standing {
    width: 100% !important;
    max-width: 100% !important;
}

.table-wrap {
    width: 100% !important;
    overflow-x: auto !important;
}

.standing-table {
    width: 100% !important;
    min-width: 760px;
}