* {
    box-sizing: border-box;
}

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

.app {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

.hero,
.panel {
    background: #0d0d0d;
    border: 1px solid #222;
    border-radius: 28px;
    padding: 24px;
}

.hero h1 {
    margin: 10px 0;
    font-size: 2.4rem;
}

.eyebrow {
    margin: 0;
    color: #8d8d8d;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
}

.subtitle {
    color: #b7b7b7;
    max-width: 760px;
    line-height: 1.6;
}

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

.section-head h2 {
    margin: 8px 0 0 0;
}

.section-head-spaced {
    margin-top: 22px;
}

.competition-list,
.leg-mode-list,
.matchday-list,
.match-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
}

.competition-card,
.leg-mode-option,
.match-option,
.matchday-option {
    width: 100%;
    border: 1px solid #2a2a2a;
    background: #141414;
    color: white;
    border-radius: 20px;
    padding: 16px;
    cursor: pointer;
    text-align: left;
    transition: 0.2s ease;
}

.competition-card:hover,
.leg-mode-option:hover,
.match-option:hover,
.matchday-option:hover:not(:disabled) {
    border-color: #4b4b4b;
    transform: translateY(-1px);
}

.competition-card.active,
.leg-mode-option.active,
.match-option.active,
.matchday-option.active {
    background: #f2f2f2;
    color: #000;
    border-color: #f2f2f2;
}

.matchday-option.disabled,
.matchday-option:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.competition-card-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.competition-icon,
.competition-fallback-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: contain;
    background: #ffffff;
    padding: 6px;
    flex-shrink: 0;
}

.competition-fallback-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #000;
}

.competition-name {
    font-size: 1rem;
    font-weight: bold;
}

.competition-sub,
.option-sub {
    color: #9b9b9b;
    font-size: 0.88rem;
    margin-top: 4px;
}

.option-head {
    font-size: 1rem;
    font-weight: bold;
}

.competition-card.active .competition-sub,
.match-option.active .competition-sub,
.leg-mode-option.active .option-sub {
    color: #444;
}

.controls {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.controls input[type="number"] {
    background: #141414;
    color: white;
    border: 1px solid #2a2a2a;
    border-radius: 14px;
    padding: 12px;
}

.checkbox-row {
    flex-direction: row;
    align-items: center;
}

.simulate-btn {
    width: 100%;
    margin-top: 18px;
    border: none;
    border-radius: 18px;
    background: #f2f2f2;
    color: #000;
    padding: 16px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
}

.simulate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.status {
    margin-top: 16px;
    color: #a0a0a0;
    font-size: 0.95rem;
}

.left-empty-state,
.empty-state {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #9d9d9d;
    text-align: center;
    border: 1px dashed #2a2a2a;
    border-radius: 20px;
    margin-top: 18px;
    padding: 18px;
}

.left-empty-state h3,
.empty-state h2 {
    margin-bottom: 8px;
}

.coming-soon-box,
.small-info-box,
.competition-info {
    margin-top: 18px;
    background: #151515;
    border: 1px solid #242424;
    border-radius: 20px;
    padding: 18px;
    color: #cfcfcf;
}

.hidden {
    display: none !important;
}

.result-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
}

.result-header h2 {
    margin: 8px 0 0 0;
    font-size: 2rem;
}

.top-pick-box {
    background: #151515;
    border: 1px solid #2a2a2a;
    border-radius: 20px;
    padding: 14px 16px;
    text-align: right;
}

.top-pick-box span,
.top-pick-box small {
    display: block;
    color: #a0a0a0;
}

.top-pick-box strong {
    display: block;
    margin: 6px 0;
    font-size: 1.1rem;
}

.cards-row {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.mini-card,
.big-card,
.knockout-card {
    background: #151515;
    border-radius: 22px;
    padding: 18px;
    border: 1px solid #242424;
}

.mini-card p,
.big-card p,
.knockout-card p {
    margin-top: 0;
    color: #a0a0a0;
}

.xg-box {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
}

.xg-box span {
    display: block;
    color: #8d8d8d;
    font-size: 0.8rem;
}

.xg-box strong {
    font-size: 2rem;
}

.colon {
    color: #666;
    font-size: 2rem;
}

.right-box {
    text-align: right;
}

#best-score {
    display: block;
    font-size: 2rem;
    margin-top: 10px;
}

#best-score-count {
    display: block;
    margin-top: 8px;
    color: #8d8d8d;
}

.bar-block {
    margin-bottom: 16px;
}

.bar-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #d7d7d7;
    font-size: 0.95rem;
}

.bar-track {
    height: 12px;
    background: #222;
    border-radius: 999px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: #f2f2f2;
    border-radius: 999px;
}

.score-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid #262626;
    border-radius: 18px;
    margin-bottom: 12px;
}

.score-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rank-badge {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #222;
    border-radius: 999px;
    color: #d8d8d8;
    font-size: 0.85rem;
}

.score-name {
    font-weight: bold;
}

.score-sub,
.score-count-label {
    color: #8f8f8f;
    font-size: 0.8rem;
}

.score-count {
    text-align: right;
}

.knockout-section {
    margin-top: 18px;
}

.knockout-title {
    margin: 0 0 16px 0;
    color: #a0a0a0;
    font-size: 1rem;
}

.knockout-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.knockout-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.knockout-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid #262626;
}

.knockout-row:first-of-type {
    border-top: none;
    padding-top: 0;
}

.knockout-value {
    display: block;
    font-size: 1.1rem;
    line-height: 1.5;
}

.aggregate-list {
    margin-top: 12px;
}

.support-box {
    margin-top: 20px;
}

.support-text {
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 10px;
}

.support-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #2563eb;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.2s;
}

.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    background-color: #f8fafc;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.hero-content {
    max-width: 600px;
}

.eyebrow {
    display: inline-block;
    color: #2563eb;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.hero h1 {
    font-size: 42px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 16px 0;
    letter-spacing: -1px;
    line-height: 1.2;
}

.subtitle {
    font-size: 18px;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 32px 0;
}

.support {
    margin-top: 16px;
}

.support-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    background: #0070ba;
    color: white;
    border-radius: 999px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(0, 112, 186, 0.25);
    transition: all 0.3s ease;
}

.support-btn:hover {
    background: #005ea6;
    box-shadow: 0 6px 20px rgba(0, 112, 186, 0.4);
    transform: translateY(-2px);
}

.support-btn:active {
    transform: translateY(0);
}

.paypal-icon {
    width: 20px;
    height: 20px;
}

.support-button:hover {
    background: #1d4ed8;
}

.paypal-icon {
    width: 18px;
    height: 18px;
}
.match-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.team-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.vs {
    color: #777;
    font-size: 12px;
}
.match-card-clean {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.match-team-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.match-team-side {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.team-logo-clean {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.team-name-clean {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.25;
    white-space: normal;
    word-break: break-word;
}

.match-vs-clean {
    font-size: 0.78rem;
    color: #8f8f8f;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding-left: 40px;
}
@media (max-width: 900px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .cards-row,
    .knockout-grid,
    .knockout-columns {
        grid-template-columns: 1fr;
    }

    .result-header {
        flex-direction: column;
    }

    .hero h1 {
        font-size: 1.9rem;
    }
}

@media (max-width: 768px) {
    .app {
        padding: 16px;
    }

    .hero,
    .panel {
        padding: 18px;
        border-radius: 20px;
    }

    .hero h1 {
        font-size: 1.6rem;
        line-height: 1.2;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .competition-card,
    .leg-mode-option,
    .match-option,
    .matchday-option {
        padding: 14px;
    }

    .competition-icon,
    .competition-fallback-icon {
        width: 38px;
        height: 38px;
    }

    .simulate-btn {
        padding: 14px;
        font-size: 0.95rem;
    }

    .result-header {
        flex-direction: column;
        gap: 12px;
    }

    .top-pick-box {
        width: 100%;
        text-align: left;
    }

    .xg-box strong {
        font-size: 1.6rem;
    }

    #best-score {
        font-size: 1.6rem;
    }

    .score-row {
        padding: 12px;
    }

    .rank-badge {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
    }
    
}