.index-match-card {
    min-width: 0;
    padding: 0;
    gap: 0;
    overflow: hidden;
    border-radius: 8px;
    background: var(--box-bg, #fff);
}

.index-match-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.index-match-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 42px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border, #e2e8f0);
    background: #f8fafc;
    color: var(--text-light, #718096);
    font-size: 0.76em;
}

.index-match-date {
    min-width: 0;
    font-weight: 700;
}

.index-match-tools,
.index-match-note {
    display: inline-flex;
    align-items: center;
}

.index-match-tools {
    justify-content: flex-end;
    gap: 7px;
    flex-shrink: 0;
}

.index-match-group {
    padding: 3px 8px;
    border: 1px solid #cfe4ff;
    border-radius: 999px;
    background: #eef6ff;
    color: #2563eb;
    font-size: 0.9em;
    font-weight: 900;
}
.index-match-new-player {
    display: inline-flex;
    align-items: center;
    padding: 3px 7px;
    border: 1px solid #f6d365;
    border-radius: 999px;
    background: #fffaf0;
    color: #975a16;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
}
.round-deadline-new-player {
    border-color: #f6d365;
    background: #fffaf0;
    color: #975a16;
}

.index-match-note {
    gap: 5px;
    padding: 4px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.index-match-note:hover,
.index-match-note:focus-visible {
    color: var(--accent, #3182ce);
    outline: none;
}

.index-match-note-icon {
    position: relative;
    font-size: 1.15em;
    line-height: 1;
}

.index-match-note-count {
    position: absolute;
    top: -8px;
    right: -10px;
    min-width: 16px;
    padding: 2px 4px;
    border: 2px solid #f8fafc;
    border-radius: 999px;
    background: #e53e3e;
    color: #fff;
    font-size: 0.58em;
    line-height: 1;
    text-align: center;
}

.index-match-info {
    margin: 9px 12px 0;
    padding: 7px 9px;
    border: 1px solid #e2e8f0;
    border-left: 3px solid var(--accent, #3182ce);
    border-radius: 5px;
    background: #f8fafc;
    color: var(--text-light, #718096);
    font-size: 0.78em;
    line-height: 1.4;
}

.index-match-teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 16px 12px 12px;
}

.index-match-team {
    display: grid;
    justify-items: center;
    gap: 7px;
    min-width: 0;
    color: var(--text-main, #2d3748);
    font-size: 0.86em;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
}

.index-match-team:hover,
.index-match-team:focus-visible {
    color: var(--accent, #3182ce);
    text-decoration: none;
}

.index-match-team img,
.index-match-team-placeholder {
    width: 42px;
    height: 42px;
}

.index-match-team img {
    object-fit: contain;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.1));
}

.index-match-team span:last-child {
    width: 100%;
    overflow-wrap: anywhere;
}

.index-match-team-placeholder {
    display: grid;
    place-items: center;
    font-size: 1.8em;
}

.index-match-vs,
.index-match-score {
    justify-self: center;
    padding: 5px 7px;
    border-radius: 5px;
    background: #edf2f7;
    text-align: center;
}

.index-match-vs {
    color: #8995a5;
    font-size: 0.75em;
    font-weight: 900;
}

.index-match-score {
    color: var(--text-main, #2d3748);
    font-size: 1.12em;
}

.index-match-forecast {
    margin: -3px 12px 10px;
}

.index-match-distribution {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin: 0 12px;
}

.index-match-distribution > span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 5px 6px;
    border-radius: 4px;
    background: #f1f5f9;
    color: var(--text-light, #718096);
    font-size: 0.72em;
    font-weight: 750;
    text-align: center;
}

.index-match-distribution > span strong {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    border-radius: 4px;
    color: #fff;
    line-height: 1;
}

.index-match-distribution > span > span {
    min-width: 34px;
    color: inherit;
    text-align: left;
}

.index-match-distribution-1 strong { background: #278d64; }
.index-match-distribution-x strong { background: #8995a5; }
.index-match-distribution-2 strong { background: #cb5656; }

.index-match-meter {
    display: flex;
    height: 7px;
    margin: 8px 12px 0;
    overflow: hidden;
    border-radius: 4px;
    background: #e7ebf0;
}

.index-match-meter span {
    display: block;
    height: 100%;
}

.index-match-meter-1 { background: #278d64; }
.index-match-meter-x { background: #8995a5; }
.index-match-meter-2 { background: #cb5656; }

.index-match-own {
    margin: 9px 12px 0;
    padding: 7px 8px;
    border-radius: 5px;
    font-size: 0.76em;
    font-weight: 800;
    text-align: center;
}

.index-match-own--saved { background: #eaf7f0; color: #276749; }
.index-match-own--missing { background: #fff2df; color: #9c5216; }
.index-match-own--guest { background: #eef4f8; color: #49677f; }

.index-match-own--empty {
    animation: indexEmptyPickHint 2.8s ease-in-out infinite;
}

@keyframes indexEmptyPickHint {
    0%, 100% { box-shadow: inset 0 0 0 1px rgba(214, 158, 46, 0.08); }
    50% { box-shadow: inset 0 0 0 1px rgba(214, 158, 46, 0.42), 0 2px 8px rgba(214, 158, 46, 0.12); }
}

.index-match-picks {
    margin: 10px 12px 0;
    padding: 0;
    border-top: 1px solid var(--border, #e2e8f0);
}

.index-match-picks-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 1px 5px;
    color: var(--accent, #3182ce);
    font-size: 0.76em;
    font-weight: 800;
}

.index-match-picks-heading span:last-child {
    color: var(--text-light, #718096);
}

.index-match-picks-list {
    display: grid;
}

.index-match-pick {
    min-width: 0;
    padding: 6px 1px;
    border-bottom: 1px solid #edf2f7;
    font-size: 0.76em;
}

.index-match-pick--hit {
    margin: 0 -5px;
    padding-right: 5px;
    padding-left: 5px;
    border-radius: 4px;
    background: #f0fff4;
}

.index-match-pick-user {
    min-width: 0;
}

.index-match-pick-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.index-match-pick-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.index-match-pick-data {
    flex-shrink: 0;
    white-space: nowrap;
}

.index-match-pick-value--hit {
    background: #c6f6d5;
    color: #276749;
}

.index-match-picks-empty {
    padding: 11px 2px;
    color: var(--text-light, #718096);
    font-size: 0.78em;
    font-style: italic;
    text-align: center;
}

.index-match-picks-empty .index-match-picks-cta {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    padding: 5px 10px;
    border: 1px solid var(--accent, #3182ce);
    border-radius: 5px;
    background: rgba(49, 130, 206, 0.1);
    color: var(--accent, #3182ce);
    font-style: normal;
    font-weight: 800;
    text-decoration: none;
}

.index-match-picks-empty .index-match-picks-cta:hover,
.index-match-picks-empty .index-match-picks-cta:focus-visible {
    background: var(--accent, #3182ce);
    color: #fff;
    outline: none;
}

.index-match-picks-toggle {
    margin: 8px 0 2px;
    border-radius: 5px;
}

.index-match-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    padding: 9px 12px;
    border-top: 1px solid var(--border, #e2e8f0);
    background: #fbfcfd;
    color: var(--text-light, #718096);
    font-size: 0.73em;
}

.index-match-footer a {
    color: var(--accent, #3182ce);
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.index-match-footer a:hover,
.index-match-footer a:focus-visible {
    text-decoration: underline;
}

.index-match-closed {
    color: #c53030;
    white-space: nowrap;
}

.index-match-saved {
    color: #276749;
    font-weight: 800;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .index-match-card {
        width: 100%;
        max-width: 100%;
    }

    .index-match-top {
        align-items: flex-start;
        padding: 9px 10px;
    }
    .index-match-tools {
        flex-wrap: wrap;
    }
    .index-match-new-player {
        max-width: 106px;
    }

    .index-match-note > span:last-child {
        display: none;
    }

    .index-match-teams {
        grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
        padding-right: 8px;
        padding-left: 8px;
    }

    .index-match-team img,
    .index-match-team-placeholder {
        width: 38px;
        height: 38px;
    }

    .index-match-team {
        font-size: 0.82em;
    }

    .index-match-pick .pick-time {
        display: none;
    }

    .index-match-footer {
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .index-match-card,
    .index-match-own--empty {
        transition: none;
        animation: none;
    }
}

