.homepage-topmatches {
    width:100%;
    background:var(--card);
    font-size:13px;
        display: flex;
    flex-direction: column;
    height: 100%;
}
.homepage-topmatches__content {
    flex: 1;
}
/* header */
.homepage-topmatches__header {
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:15px;
}

.homepage-topmatches__title span {
    display:inline-block;
    position:relative;
    font-weight:700;
    color:var(--title-card);
    top:-5px; 
}

.homepage-topmatches__title span::after {
    content:"";
    position:absolute;
    left:0;
    bottom:-6px;
    width:100%;
    height:2px;
    background:#06b374;
}
.homepage-topmatches__select-wrap {
    padding:0 15px 15px;
    display:flex;
    justify-content:center;
}

/* select */
.homepage-topmatches__select {
    position:relative;
    max-width:240px;
    font-size:13px;
    width:100%;
}

/* selected */
.homepage-topmatches__selected {
    position:relative;
    display:flex;
    align-items:center;
    border-radius:6px;
    gap:8px;
    border:1px solid #e5e7eb;
    padding:8px 28px 8px 10px; 
    cursor:pointer;
    background:#f5f5f5;
}

/* иконка */
.homepage-topmatches__selected i {
    font-size:14px;
    color:#555;
}

/* текст */
.homepage-topmatches__selected span {
    white-space:nowrap;
}

/* стрелка */
.homepage-topmatches__selected::after {
    content:"";
    position:absolute;
    right:10px;
    top:50%;
    width:6px;
    height:6px;
    border-right:1.5px solid #888;
    border-bottom:1.5px solid #888;
    transform:translateY(-60%) rotate(45deg);
    transition:transform .2s ease;
}

/* открытие */
.homepage-topmatches__select.open .homepage-topmatches__selected::after {
    transform:translateY(-40%) rotate(-135deg);
}

/* dropdown */
.homepage-topmatches__dropdown {
    display:none;
    position:absolute;
    top:100%;
    left:0;
    width:100%;
    background:#fff;
    border:1px solid #e5e7eb;
    z-index:20;
}

/* open */
.homepage-topmatches__select.open .homepage-topmatches__dropdown {
    display:block;
}

/* option */
.homepage-topmatches__option {
    display:flex;
    align-items:center;
    gap:8px;
    padding:8px 10px;
    cursor:pointer;
}

/* hover */
.homepage-topmatches__option:hover {
    background:#f5f7fa;
}

/* active */
.homepage-topmatches__option.active {
    background:#eef2f7;
    font-weight:600;
}
.homepage-topmatches__list {
    display:none;
}

.homepage-topmatches__list.active {
    display:block;
    padding-bottom:15px;
}
/* match */
.homepage-topmatches__match {
    display:block;
    padding:10px 0;
    border-bottom:1px solid #eee;
    text-decoration:none;
    color:#111;
    transition: background 0.15s ease;
}

.homepage-topmatches__match:hover {
    background:#f8fafc;
}
.homepage-topmatches__match .row {
    display:grid;
    grid-template-columns:60px 1fr 70px 1fr 140px;
    align-items:center;
}

/* TIME */
.time {
    font-size:12px;
    padding-left:15px;
}

/* TEAMS */
.team {
    display:flex;
    align-items:center;
    gap:6px;
    overflow:hidden;
    color:#36393f;
}

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


.team.away {
    justify-content:flex-start;
    text-align:left;
}


.team.home span {
    order:1;
}

.team.home img {
    order:2;
}

.team.away img {
    order:1;
}

.team.away span {
    order:2;
}
.team img {
    width:16px;
    height:16px;
}

.team span {
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.score{
text-align:center;

}

/* SCORE */
.score span{
    padding:2px 6px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 3px;
    background: #e2e6ee;
    color: #64748b;
}
/* LIVE */
.homepage-topmatches__match.live .score span {
    background:#fe6161;
    color:#fff;
}
.time {
    font-size:12px;
    padding-left:15px;
    display:flex;
    align-items:center;
    gap:4px;
}

.time-live {
    color:#fe6161;
}

.live-dot {
    width:6px;
    height:6px;
    min-width:6px;
    border-radius:50%;
    background:#fe6161;
    display:inline-block;
}

.live-half {
    font-weight:600;
    color:#fe6161;
}

.live-time {
    font-weight:600;
    color:#fe6161;
}

.homepage-topmatches__match.live .score span {
    background:#fe6161;
    color:#fff;
}
/* LEAGUE */
.league {
    display:flex;
    align-items:center;
    gap:6px;
    font-size:11px;
    color:#777;
    overflow:hidden;
}
.league span {
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.league img {
    width:14px;
    height:14px;
}

.homepage-topmatches__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
}

.homepage-topmatches__all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;

    color: #06b374;
    border: 1px solid #06b374;
    border-radius: 6px;

    text-decoration: none;
    transition: all .15s ease;
}

.homepage-topmatches__all-btn:hover {
    background: #06b374;
    color: #fff;
}
.homepage-toppr__item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 5px 15px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #111;
    transition: background .15s ease;
}

.homepage-toppr__item:hover {
    background: #f8fafc;
}

.homepage-toppr__left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 80px;
    flex: 0 0 80px;
}

.homepage-toppr__sport {
    display: flex;
    align-items: center;
    justify-content: center;
}

.homepage-toppr__sport i {
    font-size: 18px;
    color: #666;
}

.homepage-toppr__time {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.time-main {
    font-size: 13px;
    font-weight: 600;
}

.time-sub {
    font-size: 11px;
    color: #999;
}

.homepage-toppr__teams {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color:#36393f;
}

.team-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    font-size: 13px;
}

.team-row img {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.team-row span {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.homepage-toppr__bet {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    gap: 10px;
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    color:#36393f;
    pointer-events: none;
}

.homepage-toppr__odd {
    margin-left: auto;
    min-width: 44px;
    height: 24px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #3b82f6;
    color: #fff;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.homepage-toppr__item.win .homepage-toppr__odd {
    background: #16a34a;
    color: #fff;
}

.homepage-toppr__item.lose .homepage-toppr__odd {
    background: #dc2626;
    color: #fff;
}
.homepage-topwrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.homepage-topwrap__col {
    width: 100%;
}

@media (min-width: 2000px) {

    .homepage-topwrap {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        gap: 20px;
    }

    .homepage-topwrap__col {
        flex: 1;
        min-width: 0;
        display: flex;
    }

    .homepage-topwrap__col > * {
        display: flex;
        flex-direction: column;
        min-height: 0; 
    }

    .homepage-toppr {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .homepage-toppr__list {
        flex: 1;
    }

}

@media (max-width: 768px) {

    .homepage-topmatches__header {
        padding: 10px 12px;
        gap: 10px;
    }

    .homepage-topmatches__title span {
        font-size: 13px;
        top: 0;
    }

    .homepage-topmatches__title span::after {
        bottom: -4px;
    }

    .homepage-topmatches__all-btn {
        font-size: 11px;
        padding: 5px 8px;
        white-space: nowrap;
    }

    .homepage-topmatches__select {
        max-width: 150px;
        font-size: 12px;
    }

    .homepage-topmatches__selected {
        padding: 7px 26px 7px 10px;
        font-size: 12px;
    }

    .homepage-topmatches__match {
        padding: 8px 0;
    }

    .homepage-topmatches__match .row {
        grid-template-columns: 50px minmax(0,1fr) 60px minmax(0,1fr);
        gap: 4px;
    }

    .homepage-topmatches__match .row > .time {
        width: 50px;
        min-width: 50px;
        max-width: 50px;
        overflow: hidden;
    }

    .league {
        display: none;
    }

    .time {
        font-size: 11px;
        padding-left: 10px;
        white-space: nowrap;
    }

    .team {
        min-width: 0;
        overflow: hidden;
    }

    .team span {
        display: block;
        font-size: 12px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .team img {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
    }

    .score {
        flex-shrink: 0;
    }

    .score span {
        font-size: 12px;
        padding: 2px 5px;
    }

    .live-time,
    .live-half {
        font-size: 11px;
    }

    .homepage-toppr__item {
        padding: 8px 12px;
        gap: 10px;
        align-items: center;
    }

    .homepage-toppr__left {
        min-width: 70px;
        flex: 0 0 70px;
    }

    .homepage-toppr__sport i {
        font-size: 16px;
    }

    .time-main {
        font-size: 12px;
    }

    .time-sub {
        font-size: 10px;
    }

    .homepage-toppr__teams {
        gap: 3px;
        min-width: 0;
    }

    .team-row {
        font-size: 12px;
        min-width: 0;
    }

    .team-row img {
        width: 14px;
        height: 14px;
    }

    .team-row span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .homepage-toppr__bet {
        position: static;
        transform: none;
        margin-left: auto;
        font-size: 8px;
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .homepage-toppr__odd {
        min-width: 40px;
        height: 22px;
        font-size: 11px;
        padding: 0 6px;
        flex-shrink: 0;
    }

}