* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #08111f;
    color: #ffffff;
    font-family: Arial, sans-serif;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.header {
    background: #101b2e;
    border-bottom: 1px solid #24324a;
    padding: 18px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #38bdf8;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 20px;
}

.hero {
    padding-top: 120px;
}

.hero h1 {
    font-size: 56px;
    margin-bottom: 10px;
}

.hero p {
    color: #94a3b8;
    font-size: 20px;
}

.button {
    display: inline-block;
    margin-top: 30px;
    padding: 14px 24px;
    background: #2563eb;
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none;
}

/* ===== ÑÏÈÑÎÊ ÌÀÒ×ÅÉ ===== */

.match-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.match-card {
    margin-top: 40px;
    background: #101b2e;
    border: 1px solid #24324a;
    border-radius: 14px;
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: center;
    text-align: center;
    font-size: 24px;
    transition: 0.2s ease;
}

.match-link:hover .match-card {
    border-color: #38bdf8;
    transform: translateY(-2px);
}

.score {
    font-size: 34px;
    font-weight: bold;
}

.score span {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: #22c55e;
}

/* ===== MATCH CENTER ===== */

.live-label {
    display: inline-block;
    margin-top: 35px;
    margin-bottom: 15px;
    padding: 7px 12px;
    border-radius: 20px;
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    font-size: 13px;
    font-weight: bold;
}

.match-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 30px;
    padding: 35px;
    margin-bottom: 25px;
    background: #101b2e;
    border: 1px solid #24324a;
    border-radius: 18px;
}

.team {
    text-align: center;
}

.team h2 {
    margin: 0;
    font-size: 28px;
}

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

.match-score strong {
    display: block;
    font-size: 48px;
    line-height: 1;
}

.match-score span {
    display: block;
    margin-top: 10px;
    color: #94a3b8;
    font-size: 14px;
}

.panel {
    margin-bottom: 22px;
    padding: 25px;
    background: #101b2e;
    border: 1px solid #24324a;
    border-radius: 16px;
}

.panel h2 {
    margin-top: 0;
    margin-bottom: 22px;
    font-size: 20px;
}

.event {
    display: grid;
    grid-template-columns: 55px 1fr 2fr;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #1e293b;
}

.event:last-child {
    border-bottom: none;
}

.stat-row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid #1e293b;
    text-align: center;
}

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

.stat-row strong {
    color: #cbd5e1;
    font-size: 14px;
}

.probability {
    display: grid;
    grid-template-columns: 130px 1fr 55px;
    gap: 15px;
    align-items: center;
    margin-bottom: 18px;
}

.probability:last-child {
    margin-bottom: 0;
}

.bar {
    height: 10px;
    overflow: hidden;
    background: #1e293b;
    border-radius: 20px;
}

.bar-fill {
    height: 100%;
    min-width: 2px;
    background: linear-gradient(
        90deg,
        #2563eb,
        #38bdf8
    );
    border-radius: 20px;
}

.probability strong {
    text-align: right;
    font-size: 17px;
}

@media (max-width: 700px) {
    .match-header {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .match-score {
        order: -1;
    }

    .match-score strong {
        font-size: 42px;
    }

    .probability {
        grid-template-columns: 85px 1fr 45px;
        gap: 8px;
        font-size: 13px;
    }

    .event {
        grid-template-columns: 40px 1fr;
    }

    .event span:last-child {
        grid-column: 2;
    }
}

/* ===== PRE MATCH PREDICTION ===== */

.pre-match-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.pre-match-option {
    padding: 16px;
    background: #0d1728;
    border: 1px solid #24324a;
    border-radius: 12px;
    text-align: center;
}

.pre-match-option span {
    display: block;
    margin-bottom: 8px;
    color: #94a3b8;
    font-size: 13px;
}

.pre-match-option strong {
    font-size: 28px;
}

.pre-match-track {
    display: flex;
    height: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #1e293b;
    border-radius: 20px;
}

.pre-home {
    background: #38bdf8;
}

.pre-draw {
    background: #64748b;
}

.pre-away {
    background: #ef4444;
}

.expected-goals {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 15px;
    align-items: center;
    padding-top: 5px;
    color: #cbd5e1;
}

.expected-goals span:first-child {
    text-align: left;
}

.expected-goals span:last-child {
    text-align: right;
}

.expected-goals strong {
    color: #ffffff;
    font-size: 20px;
}

.expected-goals small {
    color: #64748b;
}

@media (max-width: 700px) {
    .pre-match-grid {
        grid-template-columns: 1fr;
    }

    .expected-goals {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .expected-goals span:first-child,
    .expected-goals span:last-child {
        text-align: center;
    }
}
}

/* ===== MATCH INFO ===== */

.team-side {
    display: block;
    margin-bottom: 8px;
    color: #64748b;
    font-size: 12px;
    text-transform: uppercase;
}

.match-date {
    display: block;
    margin-top: 8px;
    color: #64748b;
    font-size: 13px;
}

.event-minute {
    color: #38bdf8;
    font-weight: bold;
}

.event-detail {
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-icon {
    flex-shrink: 0;
}

.empty-state {
    padding: 20px 0;
    color: #64748b;
    text-align: center;
}


/* ===== PROBABILITY HISTORY ===== */

.history-table {
    width: 100%;
}

.history-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #1e293b;
    text-align: center;
}

.history-head {
    color: #64748b;
    font-size: 13px;
    font-weight: bold;
}

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

/* ===== STANDINGS ===== */

.standings-row {
    display: grid;
    grid-template-columns: 45px 2fr repeat(6, 1fr);
    gap: 10px;
    align-items: center;
    padding: 13px 10px;
    border-bottom: 1px solid #1e293b;
    text-align: center;
}

.standings-row strong:nth-child(2) {
    text-align: left;
}

.standings-head {
    color: #64748b;
    font-size: 13px;
    font-weight: bold;
}

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

@media (max-width: 700px) {
    .standings-table {
        overflow-x: auto;
    }

    .standings-row {
        min-width: 700px;
    }
}

/* ===== TEAM LINKS ===== */

.team-link {
    color: #ffffff;
    text-decoration: none;
}

.team-link:hover {
    color: #38bdf8;
}

/* ===== TEAM FORM AND RECENT MATCHES ===== */

.team-form {
    display: flex;
    gap: 10px;
}

.form-result {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: bold;
}

.form-Â {
    background: rgba(34, 197, 94, 0.18);
    color: #4ade80;
}

.form-Í {
    background: rgba(148, 163, 184, 0.18);
    color: #cbd5e1;
}

.form-Ï {
    background: rgba(239, 68, 68, 0.18);
    color: #f87171;
}

.recent-match-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.recent-match {
    display: grid;
    grid-template-columns: 110px 1fr 80px 1fr 40px;
    gap: 15px;
    align-items: center;
    padding: 14px 10px;
    border-bottom: 1px solid #1e293b;
    transition: 0.2s ease;
}

.recent-match-link:last-child .recent-match {
    border-bottom: none;
}

.recent-match-link:hover .recent-match {
    background: #0d1728;
}

.recent-match-date {
    color: #64748b;
    font-size: 13px;
}

.recent-match-score {
    text-align: center;
    font-size: 18px;
}

.recent-match-teams {
    font-size: 14px;
}

@media (max-width: 700px) {
    .recent-match {
        grid-template-columns: 80px 1fr 55px 1fr 34px;
        gap: 7px;
        padding: 12px 4px;
    }

    .recent-match-date {
        font-size: 11px;
    }

    .recent-match-teams {
        font-size: 12px;
    }
}

.form-win {
    background: rgba(34, 197, 94, 0.18);
    color: #4ade80;
}

.form-draw {
    background: rgba(148, 163, 184, 0.18);
    color: #cbd5e1;
}

.form-loss {
    background: rgba(239, 68, 68, 0.18);
    color: #f87171;
}

/* ===== MATCH ROUNDS ===== */

.rounds-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 28px;
}

.round-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 42px;
    height: 38px;
    padding: 0 10px;

    border: 1px solid #24324a;
    border-radius: 8px;

    background: #101b2e;
    color: #94a3b8;

    text-decoration: none;
    font-weight: 600;

    transition: 0.2s ease;
}

.round-button:hover {
    background: #16243a;
    color: #ffffff;
    border-color: #3b82f6;
}

.round-button.active {
    background: #2563eb;
    border-color: #3b82f6;
    color: #ffffff;
}

@media (max-width: 700px) {
    .rounds-panel {
        gap: 6px;
    }

    .round-button {
        min-width: 38px;
        height: 36px;
        padding: 0 8px;
        font-size: 13px;
    }
}

/* ===== MATCH CARD DATE AND STATUS ===== */

.match-card-datetime {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
}

.score .match-status {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
}

.score .match-status.finished {
    color: #94a3b8;
}

.score .match-status.upcoming {
    color: #38bdf8;
}

.score .match-status.live {
    color: #22c55e;
}

/* ===== MATCH DATE GROUP ===== */

.match-date-group {
    margin: 28px 0 12px;
    color: #94a3b8;
    font-size: 15px;
    font-weight: 700;
}

/* ===== PROBABILITY HISTORY CHART ===== */

.probability-chart-wrap {
    width: 100%;
    margin-top: 20px;
    overflow: hidden;
}

#probability-chart {
    display: block;
    width: 100%;
}
