/**
 * Стили для главной страницы (index.html)
 * Вынесено из inline стилей для оптимизации производительности
 * Версия: 1.0.0
 */

/* Адаптивное отображение кнопки "Состав на игру" */
.lineup-button-mobile {
    display: block;
    margin-bottom: 1rem;
}

.lineup-button-desktop {
    display: none;
}

html.lineup-button-hidden .lineup-button-mobile,
html.lineup-button-hidden .lineup-button-desktop {
    display: none !important;
}

.home-upcoming-match-card {
    border-radius: 1.5rem;
    min-height: 22rem;
}

.home-upcoming-section--loading {
    background: #f5f7fb !important;
}

.home-upcoming-section--loading.winter-hero::before,
.home-upcoming-section--loading .winter-snow,
.home-upcoming-section--loading > .absolute {
    display: none !important;
}

.home-upcoming-section--loading .home-upcoming-match-card--loading {
    background: var(--app-skeleton-surface, #fff);
    border: 1px solid var(--app-skeleton-border, rgba(148, 163, 184, 0.2));
    box-shadow: var(--app-skeleton-shadow, 0 16px 36px rgba(15, 23, 42, 0.07));
}

.home-upcoming-section--loading .home-upcoming-match-vs {
    color: #94a3b8 !important;
}

.home-upcoming-section--loading .home-upcoming-event-ticket-kicker,
.home-upcoming-section--loading .home-upcoming-event-ticket-label,
.home-upcoming-section--loading .home-upcoming-match-chip-label {
    color: #94a3b8 !important;
}

.home-upcoming-section--loading .home-upcoming-event-ticket-countdown {
    background: var(--app-skeleton-fill, #e9eef6);
    border-color: transparent;
    color: transparent !important;
}

.home-upcoming-section--loading .home-upcoming-event-ticket {
    background: var(--app-skeleton-surface-muted, #f7f9fc);
    border-color: var(--app-skeleton-border, rgba(148, 163, 184, 0.2));
}

.home-upcoming-section--loading .home-upcoming-event-ticket::before,
.home-upcoming-section--loading .home-upcoming-event-ticket-divider {
    background: var(--app-skeleton-border, rgba(148, 163, 184, 0.2));
}

.home-upcoming-section--loading .home-upcoming-countdown-card,
.home-upcoming-section--loading .home-upcoming-match-chip {
    background: var(--app-skeleton-surface-muted, #f7f9fc) !important;
    border-color: var(--app-skeleton-border, rgba(148, 163, 184, 0.2)) !important;
}

.home-upcoming-section--loading .home-upcoming-countdown-head i,
.home-upcoming-section--loading .home-upcoming-match-chip i {
    color: #cbd5e1 !important;
}

.home-upcoming-section--loading .home-upcoming-countdown-grid > div > div {
    background: var(--app-skeleton-fill, #e9eef6) !important;
}

.home-upcoming-section--loading .home-upcoming-countdown-grid span {
    color: transparent !important;
}

.home-upcoming-section--loading .app-skeleton-inline,
.home-upcoming-section--loading .home-upcoming-team-logo--loading,
.calendar-day--skeleton .app-skeleton-line,
.stats-leader-skeleton .app-skeleton-line,
.stats-leader-skeleton .app-skeleton-circle,
.stats-list-skeleton .app-skeleton-line {
    background: linear-gradient(
        90deg,
        var(--app-skeleton-fill, #e9eef6) 0%,
        var(--app-skeleton-fill-strong, #dfe7f2) 45%,
        var(--app-skeleton-fill, #e9eef6) 90%
    );
    background-size: 220% 100%;
    animation: home-skeleton-shimmer 1.8s ease-in-out infinite;
}

@keyframes home-skeleton-shimmer {
    0% {
        background-position: 120% 0;
    }
    100% {
        background-position: -120% 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-upcoming-section--loading .app-skeleton-inline,
    .home-upcoming-section--loading .home-upcoming-team-logo--loading,
    .calendar-day--skeleton .app-skeleton-line,
    .stats-leader-skeleton .app-skeleton-line,
    .stats-leader-skeleton .app-skeleton-circle,
    .stats-list-skeleton .app-skeleton-line {
        animation: none;
    }
}

html.lineup-button-hidden .home-upcoming-match-card {
    min-height: 22rem;
}

.calendar-day--skeleton {
    min-width: 4.7rem;
    min-height: 4.6rem;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 0.45rem;
    background: var(--app-skeleton-surface-muted, #f7f9fc);
    border-color: var(--app-skeleton-border, rgba(148, 163, 184, 0.2));
    pointer-events: none;
}

.calendar-day--skeleton .app-skeleton-line-xs {
    width: 1.45rem;
}

.calendar-day--skeleton .app-skeleton-line-sm {
    width: 2.5rem;
}

.stats-leader-skeleton {
    display: block;
}

.stats-leader-skeleton .app-skeleton-circle {
    --app-skeleton-size: 3rem;
}

.stats-leader-skeleton__display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 3rem;
}

.stats-leader-skeleton__info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    flex: 1;
}

.stats-leader-skeleton__details {
    display: grid;
    gap: 0.48rem;
    min-width: 0;
    flex: 1;
}

.stats-leader-skeleton__value {
    display: grid;
    justify-items: center;
    gap: 0.42rem;
    width: 3.8rem;
    margin-left: 1rem;
}

.stats-list-skeleton {
    display: grid;
    gap: 0;
}

.stats-list-skeleton .app-skeleton-line {
    height: 3.5rem;
    border-radius: 0.5rem;
}

.home-upcoming-match-body {
    padding: 1.5rem;
}

.home-upcoming-team {
    min-width: 0;
}

.home-upcoming-team-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-upcoming-team-logo--loading {
    border-radius: 999px;
    background: var(--app-skeleton-fill, #e9eef6);
    background-size: 200% 100%;
    box-shadow: none;
}

.home-upcoming-team-logo--loading::before,
.home-upcoming-team-logo--loading::after {
    display: none !important;
}

.home-upcoming-team-logo--loading .winter-logo {
    filter: none;
}

.home-upcoming-match-card--loading .app-skeleton-inline,
.home-upcoming-match-card--loading .home-upcoming-team-logo--loading {
    background: var(--app-skeleton-fill, #e9eef6);
    box-shadow: none;
}

.home-upcoming-match-card--loading .home-upcoming-team-name.app-skeleton-inline {
    display: block;
    height: 1.5rem;
    margin-left: auto;
    margin-right: auto;
}

.home-upcoming-match-card--loading .home-upcoming-team {
    min-height: 8.25rem;
}

.home-upcoming-match-card--loading .home-upcoming-event-ticket-time-value.app-skeleton-inline,
.home-upcoming-match-card--loading .home-upcoming-event-ticket-venue-value.app-skeleton-inline,
.home-upcoming-match-card--loading .home-upcoming-match-chip-value.app-skeleton-inline {
    height: 1rem;
}

.home-upcoming-team-logo img,
.team-logo-left img,
.team-logo-right img {
    color: transparent;
    font-size: 0;
    text-indent: -9999px;
}

.home-upcoming-match-card.home-upcoming-match-card--loading,
.home-upcoming-match-card.home-upcoming-match-card--loading [data-aos],
.home-upcoming-match-card.home-upcoming-match-card--loading .aos-init,
.home-upcoming-match-card.home-upcoming-match-card--loading .aos-animate {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
}

.home-upcoming-team-name {
    line-height: 1.2;
    text-wrap: balance;
}

.home-upcoming-match-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.home-upcoming-countdown-inline {
    display: none;
}

.home-upcoming-event-ticket {
    display: block;
    position: relative;
    width: min(100%, 35rem);
    margin-top: 0.1rem;
    padding: 1rem 1.1rem 1.06rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(18, 28, 58, 0.22), rgba(24, 38, 78, 0.26));
    border: 1px solid rgba(148, 163, 184, 0.07);
    box-shadow: none;
    overflow: hidden;
}

.home-upcoming-event-ticket::before {
    content: "";
    position: absolute;
    left: 1.15rem;
    right: 1.15rem;
    top: 0.78rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(148,163,184,0), rgba(148,163,184,0.28), rgba(148,163,184,0));
}

.home-upcoming-event-ticket-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.home-upcoming-event-ticket-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 1.5rem;
    padding: 0 0.08rem;
    color: rgba(226, 232, 240, 0.78);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
}

.home-upcoming-event-ticket-countdown {
    display: inline-flex;
    align-items: baseline;
    gap: 0.16rem;
    min-height: 2.1rem;
    padding: 0.46rem 0.72rem;
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.008);
    color: #fff;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    border: 1px solid rgba(148, 163, 184, 0.07);
}

.home-upcoming-event-ticket-countdown-value {
    font-size: 1.36rem;
    letter-spacing: -0.04em;
    line-height: 1;
}

.home-upcoming-event-ticket-countdown-unit,
.home-upcoming-event-ticket-countdown-separator {
    font-size: 0.68rem;
    color: rgba(203, 213, 225, 0.74);
    font-weight: 700;
    line-height: 1;
}

.home-upcoming-event-ticket-body {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) auto minmax(0, 1.1fr);
    align-items: stretch;
    gap: 0.9rem;
}

.home-upcoming-event-ticket-time,
.home-upcoming-event-ticket-venue {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.home-upcoming-event-ticket-label {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(203, 213, 225, 0.68);
    line-height: 1.2;
    margin-bottom: 0.34rem;
}

.home-upcoming-event-ticket-time {
    text-align: left;
}

.home-upcoming-event-ticket-time-value {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 0.94;
    color: rgba(255, 255, 255, 0.96);
}

.home-upcoming-event-ticket-divider {
    width: 1px;
    align-self: stretch;
    background: linear-gradient(180deg, rgba(148,163,184,0), rgba(148,163,184,0.32), rgba(148,163,184,0));
}

.home-upcoming-event-ticket-venue {
    text-align: left;
}

.home-upcoming-event-ticket-venue-value {
    min-width: 0;
    white-space: normal;
    word-break: break-word;
    line-height: 1.24;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
}

.home-upcoming-countdown-card,
.home-upcoming-match-meta {
    display: none !important;
}

.match-voting-section--inline {
    display: block;
    margin-top: 0.82rem;
    padding-top: 0.72rem;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.match-voting-section--inline::before {
    display: none;
}

.match-voting-section--inline #matchVotingContainer {
    max-width: 100%;
    margin: 0;
}

.match-voting-section--inline .app-skeleton-vote {
    max-width: 100%;
    margin: 0;
    padding: 0.72rem 0.84rem;
    gap: 0.52rem;
    border-radius: 0.72rem;
    background: var(--app-skeleton-surface, #fff);
    border: 1px solid var(--app-skeleton-border, rgba(148, 163, 184, 0.2));
    backdrop-filter: none;
}

.match-voting-section--inline .app-skeleton-vote__line {
    height: 0.72rem;
    background: var(--app-skeleton-fill, #e9eef6);
}

.match-voting-section--inline .voting-buttons-wrapper,
.match-voting-section--inline .voting-results-wrapper {
    align-items: stretch;
    gap: 0.5rem;
}

.match-voting-section--inline .voting-question,
.match-voting-section--inline .voting-results-header {
    justify-content: space-between;
    gap: 0.5rem;
}

.match-voting-section--inline .voting-text {
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: rgba(203, 213, 225, 0.7);
}

.match-voting-section--inline .voting-total {
    margin-left: 0;
    padding: 0.16rem 0.38rem;
    border-radius: 0.45rem;
    font-size: 0.52rem;
    background: rgba(255,255,255,0.04);
    color: rgba(203, 213, 225, 0.68);
}

.match-voting-section--inline .voting-buttons,
.match-voting-section--inline .voting-results {
    gap: 0.4rem;
}

.match-voting-section--inline .vote-btn,
.match-voting-section--inline .vote-result-item {
    min-height: 2.9rem;
    max-width: none;
    border-radius: 0.62rem;
    padding: 0.44rem 0.42rem;
    box-shadow: none;
    transform: none !important;
}

.match-voting-section--inline .vote-btn {
    gap: 0.24rem;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(15, 23, 42, 0.2);
    color: rgba(241, 245, 249, 0.94);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.match-voting-section--inline .vote-home,
.match-voting-section--inline .vote-draw,
.match-voting-section--inline .vote-away {
    background: rgba(15, 23, 42, 0.2);
    color: rgba(241, 245, 249, 0.94);
    border-color: rgba(148, 163, 184, 0.12);
}

.match-voting-section--inline .vote-btn::before {
    display: none;
}

.match-voting-section--inline .vote-btn-icon {
    width: 1.32rem;
    height: 1.32rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 0.44rem;
    background: rgba(255, 255, 255, 0.015);
    color: rgba(241, 245, 249, 0.72);
}

.match-voting-section--inline .vote-btn-icon svg,
.match-voting-section--inline .vote-result-header svg {
    width: 0.92rem;
    height: 0.92rem;
    display: block;
}

.match-voting-section--inline .vote-mark {
    display: inline-block;
    font-size: 0.86rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.match-voting-section--inline .vote-team-name,
.match-voting-section--inline .vote-result-team {
    max-width: none;
    font-size: 0.72rem;
    line-height: 1.18;
}

.match-voting-section--inline .vote-result-item {
    gap: 0.26rem;
    background: rgba(15, 23, 42, 0.16);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.match-voting-section--inline .vote-result-header {
    justify-content: center;
    gap: 0.3rem;
}

.match-voting-section--inline .vote-result-header svg {
    width: 0.9rem;
    height: 0.9rem;
    color: rgba(241, 245, 249, 0.68);
    flex: 0 0 auto;
}

.match-voting-section--inline .vote-result-header .vote-mark {
    display: inline-block;
    min-width: 0.9rem;
    text-align: center;
    color: rgba(241, 245, 249, 0.72);
}

.match-voting-section--inline .vote-result-percent {
    font-size: 0.92rem;
    line-height: 1;
    color: rgba(248, 250, 252, 0.98);
    font-weight: 700;
}

.match-voting-section--inline .vote-result-item.user-voted {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(241, 245, 249, 0.16);
    box-shadow: none;
}

.match-voting-section--inline .vote-result-item.leading {
    background: rgba(255, 255, 255, 0.028);
    border-color: rgba(148, 163, 184, 0.14);
}

.match-voting-section--inline .vote-result-item.leading.user-voted {
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(241, 245, 249, 0.18);
}

.match-voting-section--inline .vote-result-item.user-voted::after {
    top: 4px;
    right: 6px;
    font-size: 0.48rem;
    color: rgba(241, 245, 249, 0.7);
}

.match-voting-section--inline .voting-error {
    margin-top: 0.34rem;
    padding: 0.34rem 0.46rem;
    border-radius: 0.5rem;
    font-size: 0.62rem;
    line-height: 1.35;
}

.match-voting-section--inline .vote-btn.loading {
    opacity: 0.55;
}

.match-voting-section--inline .vote-btn:disabled {
    opacity: 0.7;
}

.match-voting-section--inline .vote-team-name {
    font-weight: 600;
    color: rgba(241, 245, 249, 0.88);
}

.match-voting-section--inline .vote-result-team {
    color: rgba(241, 245, 249, 0.82);
    font-weight: 600;
}

.match-voting-section--inline .vote-home .vote-btn-icon,
.match-voting-section--inline .vote-result-item:nth-child(1) .vote-result-header svg,
.match-voting-section--inline .vote-result-item:nth-child(1) .vote-result-header .vote-mark {
    color: rgba(226, 232, 240, 0.86);
}

.match-voting-section--inline .vote-draw .vote-btn-icon,
.match-voting-section--inline .vote-result-item:nth-child(2) .vote-result-header svg,
.match-voting-section--inline .vote-result-item:nth-child(2) .vote-result-header .vote-mark {
    color: rgba(203, 213, 225, 0.78);
}

.match-voting-section--inline .vote-away .vote-btn-icon,
.match-voting-section--inline .vote-result-item:nth-child(3) .vote-result-header svg,
.match-voting-section--inline .vote-result-item:nth-child(3) .vote-result-header .vote-mark {
    color: rgba(226, 232, 240, 0.7);
}

@media (max-width: 640px) {
    .home-upcoming-match-card {
        min-height: 19.5rem;
    }

    html.lineup-button-hidden .home-upcoming-match-card {
        min-height: 19.5rem;
    }

    .home-upcoming-match-body {
        padding: 1rem 0.75rem 0.95rem;
    }

    .home-upcoming-match-hero {
        grid-template-columns: minmax(0, 1fr) minmax(6.9rem, 7.8rem) minmax(0, 1fr);
        grid-template-areas:
            "home vs away"
            "ticket ticket ticket"
            "button button button";
        gap: 0.58rem 0.45rem;
        align-items: center;
    }

    .home-upcoming-team {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.4rem;
    }

    .home-upcoming-team--home {
        grid-area: home;
    }

    .home-upcoming-team--away {
        grid-area: away;
    }

    .home-upcoming-team-logo {
        width: 4.1rem !important;
        height: 4.1rem !important;
        margin-bottom: 0 !important;
        padding: 0.52rem !important;
    }

    .home-upcoming-team-name {
        font-size: 0.78rem !important;
        font-weight: 700;
        max-width: 5.8rem;
        margin: 0;
    }

    .home-upcoming-match-center {
        display: contents;
    }

    .home-upcoming-match-vs {
        grid-area: vs;
        margin: 0 !important;
        font-size: 1.15rem !important;
        line-height: 1;
        align-self: center;
    }

    .home-upcoming-countdown-card {
        display: none !important;
    }

    .home-upcoming-match-meta {
        display: none !important;
    }

    .home-upcoming-event-ticket {
        grid-area: ticket;
        display: block;
        position: relative;
        width: 100%;
        margin-top: 0.1rem;
        padding: 0.82rem 0.9rem 0.88rem;
        border-radius: 0.8rem;
        background:
            linear-gradient(180deg, rgba(18, 28, 58, 0.26), rgba(24, 38, 78, 0.3));
        border: 1px solid rgba(148, 163, 184, 0.07);
        box-shadow: none;
        overflow: hidden;
    }

    .home-upcoming-event-ticket::before {
        content: "";
        position: absolute;
        left: 0.95rem;
        right: 0.95rem;
        top: 0.64rem;
        height: 1px;
        background: linear-gradient(90deg, rgba(148,163,184,0), rgba(148,163,184,0.28), rgba(148,163,184,0));
    }

    .home-upcoming-event-ticket-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        margin-bottom: 0.72rem;
    }

    .home-upcoming-event-ticket-kicker {
        display: inline-flex;
        align-items: center;
        min-height: 1.3rem;
        padding: 0 0.08rem;
        color: rgba(226, 232, 240, 0.78);
        font-size: 0.56rem;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .home-upcoming-event-ticket-countdown {
        display: inline-flex;
        align-items: baseline;
        gap: 0.12rem;
        min-height: 1.8rem;
        padding: 0.36rem 0.56rem;
        border-radius: 0.55rem;
        background: rgba(255, 255, 255, 0.008);
        color: #fff;
        font-weight: 800;
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
        border: 1px solid rgba(148, 163, 184, 0.07);
        box-shadow: none;
    }

    .home-upcoming-event-ticket-countdown-value {
        font-size: 0.96rem;
        letter-spacing: -0.03em;
        line-height: 1;
    }

    .home-upcoming-event-ticket-countdown-unit,
    .home-upcoming-event-ticket-countdown-separator {
        font-size: 0.56rem;
        color: rgba(203, 213, 225, 0.74);
        font-weight: 700;
        line-height: 1;
    }

    .home-upcoming-event-ticket-body {
        display: grid;
        grid-template-columns: minmax(0, 0.88fr) auto minmax(0, 1.12fr);
        align-items: stretch;
        gap: 0.72rem;
    }

    .home-upcoming-event-ticket-time,
    .home-upcoming-event-ticket-venue {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-width: 0;
    }

    .home-upcoming-event-ticket-label {
        font-size: 0.54rem;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: rgba(203, 213, 225, 0.68);
        line-height: 1.2;
        margin-bottom: 0.28rem;
    }

    .home-upcoming-event-ticket-time {
        text-align: left;
    }

    .home-upcoming-event-ticket-time-value {
        font-size: 1.38rem;
        font-weight: 800;
        letter-spacing: -0.04em;
        line-height: 0.95;
        color: rgba(255, 255, 255, 0.96);
    }

    .home-upcoming-event-ticket-divider {
        width: 1px;
        align-self: stretch;
        background:
            linear-gradient(180deg, rgba(148,163,184,0), rgba(148,163,184,0.32), rgba(148,163,184,0));
    }

    .home-upcoming-event-ticket-venue {
        text-align: left;
    }

    .home-upcoming-event-ticket-venue-value {
        min-width: 0;
        white-space: normal;
        word-break: break-word;
        line-height: 1.22;
        font-size: 0.84rem;
        font-weight: 600;
        color: rgba(255,255,255,0.9);
    }

    .match-voting-section--inline {
        display: block;
        margin-top: 0.72rem;
        padding-top: 0.62rem;
        border-top: 1px solid rgba(148, 163, 184, 0.14);
    }

    .match-voting-section--inline::before {
        display: none;
    }

    .match-voting-section--inline #matchVotingContainer {
        max-width: 100%;
        margin: 0;
    }

    .match-voting-section--inline .app-skeleton-vote {
        max-width: 100%;
        margin: 0;
        padding: 0.6rem 0.7rem;
        gap: 0.45rem;
        border-radius: 0.55rem;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(148, 163, 184, 0.1);
        backdrop-filter: none;
    }

    .match-voting-section--inline .app-skeleton-vote__line {
        height: 0.68rem;
        background: linear-gradient(90deg, rgba(148,163,184,.14) 0%, rgba(226,232,240,.24) 50%, rgba(148,163,184,.14) 100%);
    }

    .match-voting-section--inline .voting-buttons-wrapper,
    .match-voting-section--inline .voting-results-wrapper {
        align-items: stretch;
        gap: 0.42rem;
    }

    .match-voting-section--inline .voting-question,
    .match-voting-section--inline .voting-results-header {
        justify-content: space-between;
        gap: 0.4rem;
    }

    .match-voting-section--inline .voting-text {
        font-size: 0.52rem;
        font-weight: 700;
        letter-spacing: 0.12em;
        color: rgba(203, 213, 225, 0.7);
    }

    .match-voting-section--inline .voting-total {
        margin-left: 0;
        padding: 0.12rem 0.3rem;
        border-radius: 0.4rem;
        font-size: 0.48rem;
        background: rgba(255,255,255,0.04);
        color: rgba(203, 213, 225, 0.68);
    }

    .match-voting-section--inline .voting-buttons,
    .match-voting-section--inline .voting-results {
        gap: 0.34rem;
    }

    .match-voting-section--inline .vote-btn,
    .match-voting-section--inline .vote-result-item {
        min-height: 2.46rem;
        max-width: none;
        border-radius: 0.42rem;
        padding: 0.32rem 0.28rem;
        box-shadow: none;
        transform: none !important;
    }

    .match-voting-section--inline .vote-btn {
        gap: 0.18rem;
        border: 1px solid rgba(148, 163, 184, 0.12);
        background: rgba(15, 23, 42, 0.18);
        color: rgba(241, 245, 249, 0.94);
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .match-voting-section--inline .vote-home,
    .match-voting-section--inline .vote-draw,
    .match-voting-section--inline .vote-away {
        background: rgba(15, 23, 42, 0.18);
        color: rgba(241, 245, 249, 0.94);
    }

    .match-voting-section--inline .vote-home {
        border-color: rgba(148, 163, 184, 0.12);
    }

    .match-voting-section--inline .vote-draw {
        border-color: rgba(148, 163, 184, 0.12);
    }

    .match-voting-section--inline .vote-away {
        border-color: rgba(148, 163, 184, 0.12);
    }

    .match-voting-section--inline .vote-btn::before {
        display: none;
    }

    .match-voting-section--inline .vote-btn-icon {
        width: 1.04rem;
        height: 1.04rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(148, 163, 184, 0.12);
        border-radius: 0.32rem;
        background: rgba(255, 255, 255, 0.015);
        color: rgba(241, 245, 249, 0.72);
    }

    .match-voting-section--inline .vote-btn-icon svg,
    .match-voting-section--inline .vote-result-header svg {
        width: 0.82rem;
        height: 0.82rem;
        display: block;
    }

    .match-voting-section--inline .vote-mark {
        display: inline-block;
        font-size: 0.68rem;
        line-height: 1;
        font-weight: 700;
        letter-spacing: 0.02em;
    }

    .match-voting-section--inline .vote-team-name,
    .match-voting-section--inline .vote-result-team {
        max-width: none;
        font-size: 0.53rem;
        line-height: 1.18;
    }

    .match-voting-section--inline .vote-result-item {
        gap: 0.22rem;
        background: rgba(15, 23, 42, 0.14);
        border: 1px solid rgba(148, 163, 184, 0.1);
    }

    .match-voting-section--inline .vote-result-header {
        justify-content: center;
        gap: 0.26rem;
    }

    .match-voting-section--inline .vote-result-header svg {
        width: 0.78rem;
        height: 0.78rem;
        color: rgba(241, 245, 249, 0.68);
        flex: 0 0 auto;
    }

    .match-voting-section--inline .vote-result-header .vote-mark {
        display: inline-block;
        min-width: 0.78rem;
        text-align: center;
        color: rgba(241, 245, 249, 0.72);
    }

    .match-voting-section--inline .vote-result-percent {
        font-size: 0.74rem;
        line-height: 1;
    }

    .match-voting-section--inline .vote-result-item.user-voted {
        background: rgba(255, 255, 255, 0.035);
        border-color: rgba(241, 245, 249, 0.16);
        box-shadow: none;
    }

    .match-voting-section--inline .vote-result-item.leading {
        background: rgba(255, 255, 255, 0.028);
        border-color: rgba(148, 163, 184, 0.14);
    }

    .match-voting-section--inline .vote-result-item.leading.user-voted {
        background: rgba(255, 255, 255, 0.045);
        border-color: rgba(241, 245, 249, 0.18);
    }

    .match-voting-section--inline .vote-result-item.user-voted::after {
        top: 2px;
        right: 3px;
        font-size: 0.42rem;
        color: rgba(241, 245, 249, 0.7);
    }

    .match-voting-section--inline .voting-error {
        margin-top: 0.35rem;
        padding: 0.26rem 0.34rem;
        border-radius: 0.42rem;
        font-size: 0.56rem;
        line-height: 1.3;
    }

    .match-voting-section--inline .vote-btn.loading {
        opacity: 0.55;
    }

    .match-voting-section--inline .vote-btn:disabled {
        opacity: 0.7;
    }

    .match-voting-section--inline .vote-team-name {
        font-weight: 600;
        color: rgba(241, 245, 249, 0.88);
    }

    .match-voting-section--inline .vote-result-team {
        color: rgba(241, 245, 249, 0.82);
        font-weight: 600;
    }

    .match-voting-section--inline .vote-result-percent {
        color: rgba(248, 250, 252, 0.98);
        font-weight: 700;
    }

    .match-voting-section--inline .vote-home .vote-btn-icon,
    .match-voting-section--inline .vote-result-item:nth-child(1) .vote-result-header svg,
    .match-voting-section--inline .vote-result-item:nth-child(1) .vote-result-header .vote-mark {
        color: rgba(226, 232, 240, 0.86);
    }

    .match-voting-section--inline .vote-draw .vote-btn-icon,
    .match-voting-section--inline .vote-result-item:nth-child(2) .vote-result-header svg,
    .match-voting-section--inline .vote-result-item:nth-child(2) .vote-result-header .vote-mark {
        color: rgba(203, 213, 225, 0.78);
    }

    .match-voting-section--inline .vote-away .vote-btn-icon,
    .match-voting-section--inline .vote-result-item:nth-child(3) .vote-result-header svg,
    .match-voting-section--inline .vote-result-item:nth-child(3) .vote-result-header .vote-mark {
        color: rgba(226, 232, 240, 0.7);
    }

    .lineup-button-mobile {
        grid-area: button;
        display: flex;
        justify-content: center;
        margin-top: 0.22rem;
        margin-bottom: 0;
    }

    .lineup-button-mobile button {
        width: auto;
        max-width: 100%;
        justify-content: center;
        padding: 0.62rem 1rem;
        min-height: 2.35rem;
        font-size: 0.88rem;
        line-height: 1;
        white-space: nowrap;
        border-radius: 0.7rem;
        box-shadow: none;
    }
}

@media (max-width: 380px) {
    .home-upcoming-match-hero {
        grid-template-columns: minmax(0, 1fr) minmax(6.25rem, 6.8rem) minmax(0, 1fr);
        gap: 0.42rem 0.35rem;
    }

    .home-upcoming-team-logo {
        width: 3.65rem !important;
        height: 3.65rem !important;
    }

    .home-upcoming-team-name {
        font-size: 0.7rem !important;
        max-width: 4.9rem;
    }

    .home-upcoming-countdown-card {
        display: none !important;
    }

    .home-upcoming-event-ticket {
        padding: 0.76rem 0.82rem 0.84rem;
    }

    .home-upcoming-event-ticket-head {
        gap: 0.5rem;
        margin-bottom: 0.72rem;
    }

    .home-upcoming-event-ticket-kicker,
    .home-upcoming-event-ticket-label {
        font-size: 0.5rem;
    }

    .home-upcoming-event-ticket-countdown {
        padding: 0.32rem 0.48rem;
    }

    .home-upcoming-event-ticket-countdown-value {
        font-size: 0.88rem;
    }

    .home-upcoming-event-ticket-countdown-unit,
    .home-upcoming-event-ticket-countdown-separator {
        font-size: 0.52rem;
    }

    .home-upcoming-event-ticket-body {
        grid-template-columns: minmax(0, 0.9fr) auto minmax(0, 1.1fr);
        gap: 0.6rem;
    }

    .home-upcoming-event-ticket-time-value {
        font-size: 1.24rem;
    }

    .home-upcoming-event-ticket-venue-value {
        font-size: 0.78rem;
    }

    .match-voting-section--inline .vote-btn,
    .match-voting-section--inline .vote-result-item {
        min-height: 2.38rem;
        padding: 0.34rem 0.28rem;
    }

    .match-voting-section--inline .vote-team-name,
    .match-voting-section--inline .vote-result-team {
        font-size: 0.54rem;
    }

    .match-voting-section--inline .vote-result-percent {
        font-size: 0.76rem;
    }

    .lineup-button-mobile button {
        padding: 0.56rem 0.86rem;
        font-size: 0.8rem;
    }
}

@media (min-width: 640px) {
    .lineup-button-mobile {
        display: none;
    }
    
    .lineup-button-desktop {
        display: block;
    }
}

/* ==================== Стили для нового календаря ==================== */
/* Скрытие скроллбара */
.calendar-scroll::-webkit-scrollbar {
    display: none;
}
.calendar-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Базовый день календаря - компактный */
.calendar-day {
    flex-shrink: 0;
    width: 100px;
    height: 120px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.875rem;
    box-shadow: 0 2px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.calendar-day:hover {
    box-shadow: 0 2px 20px -3px rgba(0, 0, 0, 0.1), 0 4px 8px -4px rgba(0, 0, 0, 0.05);
    border-color: #d1d5db;
}

/* День с матчем (предстоящий) */
.match-day {
    background: white !important;
    border-top: 2px solid #3b82f6 !important;
    border-left: 1px solid #e5e7eb !important;
    border-right: 1px solid #e5e7eb !important;
    border-bottom: 1px solid #e5e7eb !important;
    box-shadow: 0 2px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.3s ease !important;
    height: 120px !important;
    width: 100px !important;
    min-height: 120px !important;
    max-height: 120px !important;
}

.match-day:hover {
    box-shadow: 0 4px 25px -5px rgba(59, 130, 246, 0.15) !important;
    transform: none !important;
}

.calendar-match-meta {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    z-index: 2;
}

.calendar-match-date {
    font-size: 0.8rem;
    font-weight: 800;
    color: #111827;
    line-height: 1;
    letter-spacing: -0.02em;
}

.calendar-match-dayname {
    font-size: 0.55rem;
    font-weight: 700;
    color: #6b7280;
    line-height: 1;
    letter-spacing: 0.08em;
}

/* Стили для прошедших матчей */
.match-day.past-match {
    background: white !important;
    border-top: 2px solid #3b82f6 !important;
    border-left: 1px solid #e5e7eb !important;
    border-right: 1px solid #e5e7eb !important;
    border-bottom: 1px solid #e5e7eb !important;
    box-shadow: 0 2px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.02) !important;
}

.match-day.past-match:hover {
    box-shadow: 0 4px 25px -5px rgba(59, 130, 246, 0.15) !important;
    transform: none !important;
}

.match-score {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
    line-height: 1;
    letter-spacing: -0.025em;
    font-family: 'Inter', sans-serif;
}

/* Текущий день - с верхней синей линией */
.calendar-day.today {
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.1), 0 4px 25px -5px rgba(59, 130, 246, 0.15) !important;
    overflow: hidden;
}

.calendar-day.today::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: rgba(59, 130, 246, 0.8);
}

/* Стили для контейнера календаря */
#weekCalendar {
    align-items: center;
    min-height: 140px;
    min-width: 0;
    display: flex;
    justify-content: flex-start !important;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    user-select: none;
    scroll-behavior: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: none;
}

@media (min-width: 769px) {
    #weekCalendar {
        display: grid !important;
        grid-template-columns: repeat(7, minmax(5.25rem, 1fr));
        justify-content: stretch !important;
    }

    #weekCalendar .calendar-day,
    #weekCalendar .match-day {
        width: 100% !important;
        min-width: 0;
    }
}

/* Скрыть scrollbar но оставить функциональность */
#weekCalendar::-webkit-scrollbar {
    height: 4px;
}

#weekCalendar::-webkit-scrollbar-track {
    background: transparent;
}

#weekCalendar::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.3);
    border-radius: 2px;
}

#weekCalendar::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.5);
}

.match-day-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 24px 8px 8px;
    gap: 8px;
}

.match-team-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.match-day:hover .match-team-logo {
    filter: grayscale(0%);
}

.match-team-logo-calendar {
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.match-day:hover .match-team-logo-calendar {
    opacity: 1 !important;
}

/* Адаптивные стили для планшетов */
@media (max-width: 768px) {
    .calendar-day, .match-day {
        width: 90px !important;
        height: 110px !important;
        min-height: 110px !important;
        max-height: 110px !important;
    }
    
    .match-score {
        font-size: 1.25rem;
    }

    .calendar-match-meta {
        top: 7px;
        left: 7px;
    }

    .calendar-match-date {
        font-size: 0.74rem;
    }

    .calendar-match-dayname {
        font-size: 0.5rem;
    }
    
    .match-time {
        font-size: 0.875rem;
    }
    
    .normal-day, .today-day {
        font-size: 1.25rem;
    }
}

/* Адаптивные стили для мобильных устройств */
@media (max-width: 640px) {
    .calendar-day, .match-day {
        width: 75px !important;
        height: 95px !important;
        min-height: 95px !important;
        max-height: 95px !important;
        border-radius: 0.75rem !important;
    }
    
    .match-score {
        font-size: 1rem;
    }
    
    .match-time {
        font-size: 0.75rem;
    }
    
    .normal-day, .today-day {
        font-size: 1.25rem;
    }
    
    .normal-day-name, .today-label, .match-team-name {
        font-size: 0.5rem;
    }

    .calendar-match-meta {
        top: 6px;
        left: 6px;
    }

    .calendar-match-date {
        font-size: 0.68rem;
    }

    .calendar-match-dayname {
        font-size: 0.46rem;
    }
    
    .match-team-logo-calendar {
        width: 12px !important;
        height: 12px !important;
    }
    
    #weekCalendar {
        gap: 0.375rem !important;
        padding: 0.5rem 0 !important;
        overflow-x: auto !important;
    }
    
    #calendarSection {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }
}

/* Очень маленькие экраны */
@media (max-width: 380px) {
    .calendar-day, .match-day {
        width: 65px !important;
        height: 85px !important;
        min-height: 85px !important;
        max-height: 85px !important;
        border-radius: 0.625rem !important;
    }
    
    .match-score {
        font-size: 0.875rem;
    }
    
    .match-time {
        font-size: 0.625rem;
    }
    
    .normal-day, .today-day {
        font-size: 1.125rem;
    }
    
    .normal-day-name, .today-label, .match-team-name {
        font-size: 0.45rem;
    }
    
    .match-team-logo-calendar {
        width: 10px !important;
        height: 10px !important;
    }
    
    #weekCalendar {
        gap: 0.25rem !important;
    }
}

.match-time {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.025em;
    font-family: 'Inter', sans-serif;
}

/* Название команды под логотипом */
.match-team-name {
    font-size: 10px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: 'Inter', sans-serif;
}

/* Индикатор под командой */
.match-indicator {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.4);
    margin-top: 4px;
}

/* Обычный день без матча */
.normal-day {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    font-family: 'Inter', sans-serif;
}

.normal-day-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    margin-top: 4px;
    letter-spacing: 0.05em;
    font-family: 'Inter', sans-serif;
}

/* Сегодняшний день */
.today-day {
    font-size: 1.75rem;
    font-weight: 800;
    color: #111827;
    font-family: 'Inter', sans-serif;
}

.today-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #3b82f6;
    text-transform: uppercase;
    margin-top: 4px;
    letter-spacing: 0.05em;
    font-family: 'Inter', sans-serif;
}

/* Стили для компактного заголовка месяца */
#currentMonthDisplay {
    font-size: 12px;
    letter-spacing: 0.1em;
    transition: all 0.2s ease;
}

#currentMonthDisplay:hover {
    color: #3B82F6;
    background-color: rgba(59, 130, 246, 0.08);
}

.calendar-expanded {
    max-height: 600px;
    transition: max-height 0.5s ease-in-out;
}

.calendar-collapsed {
    max-height: 120px;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

/* ==================== Стили для статистики ==================== */
.stats-header {
    margin-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.stats-title {
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    color: #6B7280 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
}

.stats-icon {
    width: 0.875rem;
    height: 0.875rem;
    margin-right: 0.5rem;
    color: #3B82F6;
    flex-shrink: 0;
}

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

.leader-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.leader-details {
    min-width: 0;
    flex: 1;
}

.leader-name {
    font-weight: 700 !important;
    color: #111827 !important;
    font-size: 0.95rem !important;
    margin: 0 0 0.25rem 0 !important;
    line-height: 1.2 !important;
}

.leader-team {
    color: #6B7280 !important;
    font-size: 0.8rem !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.team-mini-logo {
    width: 0.875rem;
    height: 0.875rem;
    margin-right: 0.25rem;
    flex-shrink: 0;
}

.leader-stats {
    text-align: center;
    margin-left: 1rem;
    flex-shrink: 0;
}

.stat-value {
    font-size: 2rem !important;
    font-weight: 800 !important;
    color: #111827 !important;
    line-height: 1 !important;
    margin-bottom: 0.25rem !important;
}

.stat-label {
    font-size: 0.625rem !important;
    color: #9CA3AF !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    font-weight: 600 !important;
    line-height: 1 !important;
}

/* Обновление иконок после рендера */
.stats-card [data-feather] {
    stroke-width: 2;
}

/* Мобильная адаптация статистики */
@media (max-width: 640px) {
    .stat-value {
        font-size: 1.75rem !important;
    }

    .leader-info {
        gap: 0.5rem;
    }

    .leader-stats {
        margin-left: 0.75rem;
    }

    .stats-title {
        font-size: 0.75rem !important;
    }
}

/* Компактные стили для секции статистики */
section.py-8 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

/* Компактный переключатель */
#skatersTab, #goaliesTab {
    font-size: 0.875rem;
    padding: 0.375rem 1rem;
    min-width: 70px;
    text-align: center;
}

/* Уменьшенные отступы для карточек статистики */
.stats-card .p-6 {
    padding: 1.25rem !important;
}

/* Компактный заголовок статистики в карточках */
.stats-card h3 {
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin-bottom: 1rem !important;
    text-align: left !important;
    display: flex !important;
    align-items: center !important;
}

.stats-card h3 i {
    margin-right: 0.5rem;
    color: #3B82F6;
    flex-shrink: 0;
}

.stats-card h3.text-center {
    text-align: left !important;
}

/* Обеспечиваем правильные отступы в карточке */
.stats-card .p-6 > div:first-child {
    margin-bottom: 1rem;
}

/* Оптимизация для мобильных */
@media (max-width: 640px) {
    .stats-card .p-6 {
        padding: 1rem !important;
    }

    h2.text-2xl {
        font-size: 1.5rem !important;
    }

    .gap-4 {
        gap: 0.75rem !important;
    }
}

.leader-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
}

.player-list-photo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
}

.stats-card {
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
}

.player-row {
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.player-row:hover {
    background-color: rgba(59, 130, 246, 0.05);
}

.leader-card {
    transition: all 0.3s ease;
}

.leader-card:hover {
    transform: scale(1.02);
}

/* ==================== Модальное окно состава ==================== */
.lineup-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 60;
    overflow-y: auto;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.lineup-modal.active {
    display: flex;
}

/* ==================== Новый дизайн состава команды ==================== */
.team-roster {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: geometricPrecision;
}

.team-roster::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

/* Информация о матче с логотипами */
.match-info-with-logos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding: 0 1rem;
}

.team-logo-left,
.team-logo-right {
    display: flex;
    align-items: center;
}

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

/* Компактная информация о матче */
.match-info-compact {
    text-align: center;
    color: white;
    flex: 1;
    margin: 0 0.75rem;
}

.match-date {
    font-size: 0.85rem;
    font-weight: 800;
    color: #dc2626;
    margin-bottom: 0.1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.match-info-compact .match-time {
    font-size: 1.1rem;
    font-weight: 900;
    color: white;
    margin-bottom: 0.15rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    display: block;
}

.match-location {
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.05rem;
}

.match-stage {
    font-size: 0.6rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

.roster-lines {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    z-index: 2;
}

.roster-line {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 0.5rem;
    backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 90px;
    position: relative;
}

.line-number {
    font-size: 1.2rem;
    font-weight: 900;
    color: white;
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
    background: #dc2626;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #000000;
}

.line-players {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    padding-bottom: 0.5rem;
}

.players-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.defenders-row {
    margin-bottom: 0;
}

.forwards-row {
    margin-top: -1.5rem;
}

.player-card {
    position: relative;
}

.player-card .pos-badge {
    position: absolute;
    top: -6px;
    left: -6px;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    color: #ffffff;
    z-index: 2;
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(4px);
}

.player-card.empty .player-avatar {
    display: none;
}

.player-card.empty {
    opacity: 0.7;
}

.player-card.empty .player-info {
    background: rgba(255, 255, 255, 0.18) !important;
}

@media (max-width: 640px) {
    .players-row {
        gap: 0.6rem;
    }
    .player-card .pos-badge {
        top: -4px;
        left: -4px;
        font-size: 9px;
        padding: 2px 5px;
    }
}

/* Защитники и нападающие теперь в отдельных строках */
.players-row .player-card {
    flex: 0 0 auto;
}

.line-players::-webkit-scrollbar {
    height: 4px;
}

.line-players::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.line-players::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.line-players::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* ==================== Карточки игроков ==================== */
.player-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
    height: 100px;
}

/* Стили для защитников */
.player-card.defender .player-info {
    background: #2563eb;
}

.player-card.defender .player-number {
    background: rgba(255, 255, 255, 0.3);
}

/* Стили для нападающих */
.player-card.forward .player-info {
    background: #dc2626;
}

.player-card.forward .player-number {
    background: rgba(255, 255, 255, 0.3);
}

.player-card:hover .player-avatar {
    transform: scale(1.1);
}

.player-avatar {
    width: 50px;
    height: 60px;
    border-radius: 0;
    border: none;
    box-shadow: none;
    overflow: visible;
    margin-bottom: -15px;
    position: relative;
    display: flex;
    align-items: flex-end;
    z-index: 1;
}

.player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
}

.player-info {
    background: #dc2626;
    color: white;
    padding: 0.2rem 0.4rem;
    border-radius: 5px;
    text-align: center;
    width: 95px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.2rem;
    position: relative;
    z-index: 2;
}

.player-name {
    font-family: 'Roboto Condensed', 'Arial Narrow', 'Arial', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 62px;
    line-height: 1.2;
}

.player-number {
    font-size: 0.7rem;
    font-weight: 900;
    color: #fef2f2;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.05rem 0.1rem;
    border-radius: 2px;
    min-width: 16px;
    text-align: center;
    margin-right: 0;
}

/* ==================== Карточки вратарей ==================== */
.goalkeepers-section {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.goalkeeper-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 110px;
}

.goalkeeper-card:hover .goalkeeper-avatar {
    transform: scale(1.1);
}

.goalkeeper-avatar {
    width: 60px;
    height: 70px;
    border-radius: 0;
    border: none;
    box-shadow: none;
    overflow: visible;
    margin-bottom: -20px;
    position: relative;
    display: flex;
    align-items: flex-end;
    z-index: 1;
}

.goalkeeper-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
}

.goalkeeper-info {
    background: #fbbf24;
    color: #92400e;
    padding: 0.2rem 0.4rem;
    border-radius: 5px;
    text-align: center;
    width: 105px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.2rem;
    position: relative;
    z-index: 2;
}

.goalkeeper-name {
    font-family: 'Roboto Condensed', 'Arial Narrow', 'Arial', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 72px;
    line-height: 1.2;
}

.goalkeeper-number {
    font-size: 0.7rem;
    font-weight: 900;
    color: #451a03;
    background: rgba(255, 255, 255, 0.3);
    padding: 0.05rem 0.1rem;
    border-radius: 2px;
    min-width: 16px;
    text-align: center;
    margin-right: 0;
}

/* ==================== Мобильная адаптация для состава ==================== */
@media (max-width: 640px) {
    .team-roster {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .match-info-with-logos {
        padding: 0 0.5rem;
        margin-bottom: 0.75rem;
    }
    
    .team-logo {
        width: 80px;
        height: 80px;
    }
    
    .match-info-compact {
        margin: 0 0.5rem;
    }
    
    .match-date {
        font-size: 0.75rem;
    }
    
    .match-info-compact .match-time {
        font-size: 0.95rem;
    }
    
    .match-location {
        font-size: 0.6rem;
    }
    
    .match-stage {
        font-size: 0.55rem;
    }

    .roster-line {
        flex-direction: column;
        gap: 0.4rem;
        padding: 0.4rem;
        min-height: 75px;
    }
    
    .line-number {
        font-size: 1rem;
        width: 28px;
        height: 28px;
        top: 6px;
        left: 6px;
        border-radius: 5px;
    }
    
    .line-players {
        gap: 0.4rem;
    }
    
    .players-row {
        gap: 0.8rem;
    }
    
    .player-card {
        height: 90px;
    }
    
    .player-avatar {
        width: 45px;
        height: 55px;
        margin-bottom: -12px;
    }
    
    .goalkeeper-card {
        height: 100px;
    }
    
    .goalkeeper-avatar {
        width: 55px;
        height: 65px;
        margin-bottom: -15px;
    }
    
    .player-info {
        width: 85px;
        padding: 0.15rem 0.3rem;
    }
    
    .player-name {
        font-size: 0.55rem;
        letter-spacing: -0.2px;
        max-width: 56px;
    }
    
    .player-number {
        font-size: 0.6rem;
    }
    
    .goalkeepers-section {
        gap: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .goalkeeper-avatar {
        width: 50px;
        height: 50px;
    }
    
    .goalkeeper-info {
        width: 95px;
        padding: 0.15rem 0.3rem;
    }
    
    .goalkeeper-name {
        font-size: 0.55rem;
        letter-spacing: -0.2px;
        max-width: 66px;
    }
    
    .goalkeeper-number {
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .team-roster {
        padding: 1rem;
        margin: 0 0.5rem;
    }
    
    .match-info-with-logos {
        padding: 0 0.3rem;
        margin-bottom: 1.2rem;
    }
    
    .team-logo {
        width: 70px;
        height: 70px;
    }
    
    .match-info {
        margin: 0 0.3rem;
    }
    
    .match-date {
        font-size: 0.85rem;
    }
    
    .match-info-compact .match-time {
        font-size: 1rem;
    }
    
    .match-location {
        font-size: 0.65rem;
    }
    
    .match-stage {
        font-size: 0.55rem;
    }
    
    .roster-line {
        min-height: 70px;
    }
    
    .line-number {
        font-size: 0.9rem;
        width: 24px;
        height: 24px;
        top: 4px;
        left: 4px;
        border-radius: 4px;
    }
    
    .line-players {
        gap: 0.3rem;
    }
    
    .players-row {
        gap: 0.6rem;
    }
    
    .player-card {
        height: 80px;
    }
    
    .player-avatar {
        width: 40px;
        height: 50px;
        margin-bottom: -10px;
    }
    
    .goalkeeper-card {
        height: 90px;
    }
    
    .goalkeeper-avatar {
        width: 50px;
        height: 60px;
        margin-bottom: -12px;
    }
    
    .player-info {
        width: 75px;
        padding: 0.1rem 0.25rem;
    }
    
    .player-name {
        font-size: 0.52rem;
        letter-spacing: -0.1px;
        max-width: 52px;
    }
    
    .player-number {
        font-size: 0.55rem;
    }
    
    .goalkeepers-section {
        gap: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .goalkeeper-avatar {
        width: 45px;
        height: 45px;
    }
    
    .goalkeeper-info {
        width: 85px;
        padding: 0.1rem 0.25rem;
    }
    
    .goalkeeper-name {
        font-size: 0.52rem;
        letter-spacing: -0.1px;
        max-width: 62px;
    }
    
    .goalkeeper-number {
        font-size: 0.55rem;
    }
}

/* Стили для отдельного блока иконок ролей */
.lineup-modal .player-role, 
.lineup-modal .goalkeeper-role {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 2px 0 !important;
    height: 20px !important;
}

.lineup-modal .player-role img, 
.lineup-modal .goalkeeper-role img {
    width: 16px !important;
    height: 16px !important;
    display: inline-block !important;
    filter: brightness(0) invert(1) !important;
    margin: 0 !important;
}

/* Возвращаем обычные стили для номеров */
.lineup-modal .player-number, 
.lineup-modal .goalkeeper-number {
    display: block !important;
    text-align: center !important;
    font-size: 0.7rem !important;
    font-weight: 900 !important;
}

/* Стили для canvas снега */
.winter-snow {
  background: none !important;
  animation: none !important;
  opacity: 1;
}
.winter-snow::before,
.winter-snow::after,
.winter-snow-extra-1,
.winter-snow-extra-2,
.winter-snow-extra-3,
.winter-snow-extra-4,
.winter-snow-extra-5 {
  display: none !important;
}
.winter-snow-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: block;
}

/* ==================== Зимнее оформление главного блока ==================== */
.winter-hero {
    position: relative;
    overflow: hidden;
}

.winter-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.12) 0, transparent 55%),
                radial-gradient(circle at top right, rgba(255, 255, 255, 0.14) 0, transparent 55%);
    opacity: 0.9;
    pointer-events: none;
}

/* Новогодние шапки на логотипах команд */
.winter-logo-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.winter-logo {
    filter: drop-shadow(0 4px 10px rgba(15, 23, 42, 0.8));
    position: relative;
    z-index: 1;
}

/* Новогодняя шапка из изображения */
.winter-logo-wrapper::before {
    content: '';
    position: absolute;
    top: -18px;
    left: 50%;
    width: 50px;
    height: 50px;
    transform: translateX(-50%) rotate(-12deg);
    background-image: url('/images/santa_hat.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    z-index: 2;
    animation: santa-hat-sway 3.5s ease-in-out infinite;
}

/* Убираем помпон, так как он уже в изображении */
.winter-logo-wrapper::after {
    display: none;
}

/* Анимация покачивания шапки (как от ветра) */
@keyframes santa-hat-sway {
    0%, 100% {
        transform: translateX(-50%) rotate(-12deg);
    }
    25% {
        transform: translateX(-50%) rotate(-8deg);
    }
    50% {
        transform: translateX(-50%) rotate(-14deg);
    }
    75% {
        transform: translateX(-50%) rotate(-10deg);
    }
}


/* Контейнер снега в блоке ближайшего матча */
.winter-snow {
    position: absolute;
    inset: -40px 0 0;
    pointer-events: none;
    z-index: 5;
    opacity: 0.8;
    background-size: 220px 220px, 320px 320px;
    background-position: 0 0, 0 0;
    animation: winter-snow-fall 32s linear infinite;
}

/* Множественные слои снега для эффекта глубины и разнообразия */
.winter-snow,
.winter-snow::before,
.winter-snow::after,
.winter-snow-extra-1,
.winter-snow-extra-2,
.winter-snow-extra-3,
.winter-snow-extra-4,
.winter-snow-extra-5 {
    content: '';
    position: absolute;
    inset: 0;
    background-repeat: repeat;
}

/* Основной слой - крупные снежинки */
.winter-snow {
    background-image:
        radial-gradient(circle, rgba(248, 250, 252, 0.95) 0, rgba(248, 250, 252, 0.95) 3px, transparent 4px),
        radial-gradient(circle, rgba(248, 250, 252, 0.85) 0, rgba(248, 250, 252, 0.85) 2px, transparent 3px),
        radial-gradient(circle, rgba(248, 250, 252, 0.75) 0, rgba(248, 250, 252, 0.75) 1px, transparent 2px);
    background-size: 280px 280px, 340px 340px, 180px 180px;
    animation: winter-snow-fall-slow 45s linear infinite;
}

/* Второй слой - средние снежинки */
.winter-snow::before {
    opacity: 0.8;
    filter: blur(0.3px);
    background-image:
        radial-gradient(circle, rgba(248, 250, 252, 0.9) 0, rgba(248, 250, 252, 0.9) 2px, transparent 3px),
        radial-gradient(circle, rgba(248, 250, 252, 0.7) 0, rgba(248, 250, 252, 0.7) 1px, transparent 2px),
        radial-gradient(circle, rgba(248, 250, 252, 0.6) 0, rgba(248, 250, 252, 0.6) 1px, transparent 2px);
    background-size: 220px 220px, 280px 280px, 160px 160px;
    background-position: 0 -60px, 0 -30px, 0 -90px;
    animation: winter-snow-fall-medium 35s linear infinite;
}

/* Третий слой - мелкие снежинки */
.winter-snow::after {
    opacity: 0.6;
    filter: blur(0.8px);
    background-image:
        radial-gradient(circle, rgba(248, 250, 252, 0.8) 0, rgba(248, 250, 252, 0.8) 1px, transparent 2px),
        radial-gradient(circle, rgba(248, 250, 252, 0.6) 0, rgba(248, 250, 252, 0.6) 1px, transparent 2px),
        radial-gradient(circle, rgba(248, 250, 252, 0.4) 0, rgba(248, 250, 252, 0.4) 1px, transparent 2px);
    background-size: 140px 140px, 200px 200px, 120px 120px;
    background-position: 0 -80px, 0 -40px, 0 -120px;
    animation: winter-snow-fall-fast 25s linear infinite;
}

/* Дополнительные слои для праздничного эффекта */
.winter-snow-extra-1 {
    opacity: 0.4;
    filter: blur(1px);
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.7) 0, rgba(255, 255, 255, 0.7) 2px, transparent 3px),
        radial-gradient(circle, rgba(248, 250, 252, 0.5) 0, rgba(248, 250, 252, 0.5) 1px, transparent 2px);
    background-size: 320px 320px, 180px 180px;
    background-position: 0 -100px, 0 -50px;
    animation: winter-snow-fall-slow 55s linear infinite reverse;
}

.winter-snow-extra-2 {
    opacity: 0.3;
    filter: blur(1.2px);
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.6) 0, rgba(255, 255, 255, 0.6) 1px, transparent 2px),
        radial-gradient(circle, rgba(248, 250, 252, 0.4) 0, rgba(248, 250, 252, 0.4) 1px, transparent 2px);
    background-size: 160px 160px, 240px 240px;
    background-position: 0 -70px, 0 -35px;
    animation: winter-snow-fall-medium 40s linear infinite;
}

.winter-snow-extra-3 {
    opacity: 0.5;
    filter: blur(0.5px);
    background-image:
        radial-gradient(circle, rgba(248, 250, 252, 0.85) 0, rgba(248, 250, 252, 0.85) 2px, transparent 3px),
        radial-gradient(circle, rgba(255, 255, 255, 0.6) 0, rgba(255, 255, 255, 0.6) 1px, transparent 2px);
    background-size: 260px 260px, 140px 140px;
    background-position: 0 -45px, 0 -90px;
    animation: winter-snow-fall-fast 30s linear infinite reverse;
}

.winter-snow-extra-4 {
    opacity: 0.35;
    filter: blur(0.7px);
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.7) 0, rgba(255, 255, 255, 0.7) 1px, transparent 2px),
        radial-gradient(circle, rgba(248, 250, 252, 0.5) 0, rgba(248, 250, 252, 0.5) 1px, transparent 2px);
    background-size: 200px 200px, 300px 300px;
    background-position: 0 -110px, 0 -55px;
    animation: winter-snow-fall-slow 50s linear infinite;
}

.winter-snow-extra-5 {
    opacity: 0.25;
    filter: blur(1.5px);
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.5) 0, rgba(255, 255, 255, 0.5) 1px, transparent 2px),
        radial-gradient(circle, rgba(248, 250, 252, 0.3) 0, rgba(248, 250, 252, 0.3) 1px, transparent 2px);
    background-size: 120px 120px, 280px 280px;
    background-position: 0 -130px, 0 -65px;
    animation: winter-snow-fall-medium 38s linear infinite reverse;
}

/* Разнообразные анимации для разных слоев */
@keyframes winter-snow-fall-slow {
    0% {
        background-position: 0 0, 0 0, 0 0;
    }
    100% {
        background-position: -60px 160px, 40px 180px, -80px 200px;
    }
}

@keyframes winter-snow-fall-medium {
    0% {
        background-position: 0 -60px, 0 -30px, 0 -90px;
    }
    100% {
        background-position: -80px 200px, 60px 160px, -100px 240px;
    }
}

@keyframes winter-snow-fall-fast {
    0% {
        background-position: 0 -80px, 0 -40px, 0 -120px;
    }
    100% {
        background-position: -120px 280px, 100px 220px, -140px 320px;
    }
}

/* Базовые анимации для совместимости */
@keyframes winter-snow-fall {
    0% {
        background-position: 0 0, 0 0;
    }
    100% {
        background-position: -80px 180px, 80px 200px;
    }
}

/* Адаптация зимних эффектов под мобильные экраны */
@media (max-width: 640px) {
    .winter-snow {
        opacity: 0.7;
    }

    .winter-logo-wrapper::before {
        width: 40px;
        height: 40px;
        top: -14px;
        animation: santa-hat-sway-mobile 3.5s ease-in-out infinite;
    }
}

/* Мобильная анимация шапки (более мягкая) */
@keyframes santa-hat-sway-mobile {
    0%, 100% {
        transform: translateX(-50%) rotate(-10deg);
    }
    25% {
        transform: translateX(-50%) rotate(-7deg);
    }
    50% {
        transform: translateX(-50%) rotate(-12deg);
    }
    75% {
        transform: translateX(-50%) rotate(-9deg);
    }
}


/* ==================== Стили для опросника "Кто победит?" - Минималистичный дизайн ==================== */

/* Контейнер опросника - компактный */
.match-voting-section {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, rgba(30, 58, 138, 0.15) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.625rem 1rem;
    position: relative;
}

.match-voting-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.4), transparent);
    border-radius: 1px;
}

#matchVotingContainer {
    max-width: 520px;
    margin: 0 auto;
}

/* Загрузка */
.voting-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
}

.voting-loader-icon {
    width: 18px;
    height: 18px;
    animation: spin 1s linear infinite;
    color: rgba(96, 165, 250, 0.7);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Обертка для кнопок голосования */
.voting-buttons-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

/* Обертка для результатов */
.voting-results-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

/* Заголовок голосования */
.voting-question,
.voting-results-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
}

.voting-header-icon {
    width: 14px;
    height: 14px;
    color: #60A5FA;
    flex-shrink: 0;
}

.voting-text {
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Кнопки голосования */
.voting-buttons {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0.375rem;
    width: 100%;
}

.vote-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.125rem;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    flex: 1;
    max-width: 130px;
    min-height: 40px;
    position: relative;
    overflow: hidden;
}

.vote-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.vote-btn-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.9;
}

.vote-btn:hover:not(:disabled) {
    transform: translateY(-2px);
}

.vote-btn:active:not(:disabled) {
    transform: translateY(0);
}

.vote-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.vote-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* Кнопка домашней команды */
.vote-home {
    background: linear-gradient(145deg, #10B981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

.vote-home:hover:not(:disabled) {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    border-color: rgba(16, 185, 129, 0.3);
}

/* Кнопка ничьей */
.vote-draw {
    background: linear-gradient(145deg, #64748B 0%, #475569 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(100, 116, 139, 0.25);
}

.vote-draw:hover:not(:disabled) {
    box-shadow: 0 6px 20px rgba(100, 116, 139, 0.4);
    border-color: rgba(100, 116, 139, 0.3);
}

/* Кнопка гостевой команды */
.vote-away {
    background: linear-gradient(145deg, #EF4444 0%, #DC2626 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25);
}

.vote-away:hover:not(:disabled) {
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    border-color: rgba(239, 68, 68, 0.3);
}

.vote-team-name {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
    text-align: center;
    line-height: 1.1;
}

/* Подсказка */
.voting-hint {
    display: none;
}

.voting-hint-icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* ==================== Стили результатов голосования ==================== */

.voting-total {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    margin-left: 0.5rem;
}

.voting-closed-badge {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Результаты */
.voting-results {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0.375rem;
    width: 100%;
}

.vote-result-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.125rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 0.4rem 0.625rem;
    transition: all 0.2s ease;
    flex: 1;
    max-width: 130px;
    min-height: 44px;
    position: relative;
}

.vote-result-item.user-voted {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

.vote-result-item.user-voted::after {
    content: '✓';
    position: absolute;
    top: 2px;
    right: 4px;
    font-size: 0.5rem;
    color: #60A5FA;
    font-weight: 700;
}

.vote-result-item.leading {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.25);
}

.vote-result-item.leading.user-voted {
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.15), rgba(16, 185, 129, 0.12));
    border-color: rgba(59, 130, 246, 0.35);
}

.vote-result-header {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.vote-result-team {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.65rem;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.vote-result-percent {
    font-weight: 800;
    color: white;
    font-size: 1rem;
    line-height: 1;
}

/* Скрыть бары в компактном режиме */
.vote-result-bar-wrapper {
    display: none;
}

.vote-result-bar {
    display: none;
}

.vote-result-count {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.4);
}

.your-vote-badge {
    display: none;
}

.voting-footer {
    display: none;
}

.voting-thanks-icon {
    display: none;
}

.voting-thanks {
    display: none;
}

.voting-total-footer {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.65rem;
}

.your-vote-icon {
    width: 12px;
    height: 12px;
}

.error-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Анимация успеха */
.vote-success {
    animation: vote-success-pulse 0.4s ease;
}

@keyframes vote-success-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

/* Ошибка */
.voting-error {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #FCA5A5;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

/* Мобильная адаптация опросника */
@media (max-width: 640px) {
    .match-voting-section {
        padding: 0.5rem 0.75rem;
    }

    .match-voting-section::before {
        width: 30px;
    }

    #matchVotingContainer {
        max-width: 100%;
    }
    
    .voting-buttons-wrapper,
    .voting-results-wrapper {
        gap: 0.4rem;
    }
    
    .voting-text {
        font-size: 0.6rem;
    }

    .voting-buttons {
        gap: 0.25rem;
    }
    
    .vote-btn {
        padding: 0.4rem 0.375rem;
        border-radius: 8px;
        min-height: 36px;
        max-width: none;
    }
    
    .vote-team-name {
        font-size: 0.625rem;
        max-width: 80px;
    }
    
    .voting-results {
        gap: 0.25rem;
    }
    
    .vote-result-item {
        padding: 0.35rem 0.375rem;
        border-radius: 8px;
        min-height: 40px;
        max-width: none;
    }

    .vote-result-team {
        font-size: 0.6rem;
        max-width: 75px;
    }
    
    .vote-result-percent {
        font-size: 0.9rem;
    }
    
    .vote-result-item.user-voted::after {
        font-size: 0.45rem;
        top: 2px;
        right: 3px;
    }
    
    .voting-total {
        font-size: 0.5rem;
        padding: 0.1rem 0.3rem;
        margin-left: 0.375rem;
    }
}

/* Очень маленькие экраны */
@media (max-width: 380px) {
    .match-voting-section {
        padding: 0.4rem 0.5rem;
    }
    
    .vote-btn {
        padding: 0.35rem 0.25rem;
        min-height: 34px;
    }
    
    .vote-team-name {
        font-size: 0.575rem;
        max-width: 65px;
    }
    
    .vote-result-item {
        padding: 0.3rem 0.25rem;
        min-height: 38px;
    }
    
    .vote-result-team {
        font-size: 0.55rem;
        max-width: 60px;
    }
    
    .vote-result-percent {
        font-size: 0.85rem;
    }
}

/* ========================================
   СТИЛИ ДЛЯ НЕСКОЛЬКИХ МАТЧЕЙ В ДЕНЬ
======================================== */

/* Контейнер для нескольких матчей */
.match-day-content-multi {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 100%;
    padding: 4px;
}

/* Контейнер логотипов - горизонтальный ряд */
.match-logos-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* Маленькие логотипы команд */
.match-team-logo-small {
    width: 22px;
    height: 22px;
    object-fit: cover;
    border-radius: 50%;
    filter: brightness(1.1);
    border: 1px solid rgba(255,255,255,0.2);
    background: white;
}

/* Контейнер времени - горизонтальный ряд */
.match-times-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Маленький текст времени */
.match-time-small {
    font-size: 9px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1;
}

/* Компактный результат нескольких матчей */
.match-result-stack {
    display: grid;
    gap: 3px;
    width: 42px;
    justify-items: stretch;
}

.match-score-small,
.match-score-more {
    display: block;
    min-width: 0;
    padding: 2px 4px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.06);
    color: #475569 !important;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: 0;
    text-align: center;
    text-shadow: none;
    box-shadow: inset 2px 0 0 rgba(100, 116, 139, 0.42);
}

.match-score-small.is-win {
    color: #15803d !important;
    box-shadow: inset 2px 0 0 rgba(34, 197, 94, 0.58);
}

.match-score-small.is-loss {
    color: #b91c1c !important;
    box-shadow: inset 2px 0 0 rgba(239, 68, 68, 0.52);
}

.match-score-small.is-draw,
.match-score-more {
    color: #475569 !important;
    box-shadow: inset 2px 0 0 rgba(148, 163, 184, 0.62);
}

.multi-matches-grid {
    grid-template-columns: 1fr;
    justify-items: center;
}

#matchModal .multi-matches-grid > .text-center,
#matchModal .multi-matches-grid > .text-center > div {
    width: 100%;
}

#matchModal .multi-matches-grid .max-w-sm {
    max-width: 280px;
}

#matchModal .multi-matches-grid .max-w-sm > .flex {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
    align-items: center;
    justify-items: center;
    gap: 10px !important;
}

#matchModal .multi-matches-grid .max-w-sm > .flex > .flex {
    width: 100%;
    min-width: 0;
}

#matchModal .multi-matches-grid .max-w-sm > .flex > .text-center {
    width: 64px;
    min-width: 64px;
}

#matchModal .multi-matches-grid .max-w-sm img {
    width: 48px !important;
    height: 48px !important;
}

#matchModal .multi-matches-grid .max-w-sm span {
    display: block;
    width: 100%;
    max-width: 88px;
}

/* Разделитель между матчами */
.match-separator {
    width: 1px;
    height: 12px;
    background: rgba(255,255,255,0.3);
}

@media (max-width: 640px) {
    #matchModal .multi-matches-grid .max-w-sm {
        max-width: 250px;
    }

    #matchModal .multi-matches-grid .max-w-sm > .flex {
        grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr);
        gap: 8px !important;
    }

    #matchModal .multi-matches-grid .max-w-sm > .flex > .text-center {
        width: 58px;
        min-width: 58px;
    }

    #matchModal .multi-matches-grid .max-w-sm img {
        width: 44px !important;
        height: 44px !important;
    }

    .match-team-logo-small {
        width: 20px;
        height: 20px;
    }
    
    .match-time-small {
        font-size: 9px;
    }
    
    .match-day-content-multi {
        gap: 2px;
        padding: 20px 2px 2px;
        align-items: center;
    }
    
    .match-logos-row,
    .match-times-row {
        gap: 2px;
        flex-direction: column;
    }

    .match-result-stack {
        width: 40px;
        gap: 3px;
    }

    .match-score-small,
    .match-score-more {
        font-size: 10px;
        padding: 2px 4px;
    }
}
