.winners-page {
    min-height: 100vh;
    min-height: 100dvh;
    background: #294ea1;
    position: relative;
    overflow-x: hidden;
    padding-top: 140px;

    img {
        pointer-events: none;
    }
}

.winners-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 588px;
    margin: 0 auto;
    padding: 0 1rem 6rem;

    .img-wrapper {
        pointer-events: none;
    }
}

.winners-wrapper .bg-pattern-3 {
    position: fixed;
    bottom: auto;
    right: 0;
    width: 400px;
    height: 420px;
    max-height: 1100px;
    z-index: -1;
    background-size: contain;
    background-position: top left;
    background-repeat: no-repeat;
    opacity: 0.5;
}

.winners-wrapper .bg-pattern-4 {
    position: fixed;
    bottom: 10vh;
    left: 100px;
    width: 400px;
    height: 420px;
    max-height: 1100px;
    z-index: -1;
    background-size: contain;
    background-position: top left;
    background-repeat: no-repeat;
    opacity: 0.2;
    transform: rotate(-45deg);
}

.winners-wrapper .bg-pattern-5 {
    position: fixed;
    top: 70px;
    width: 40vw;
    bottom: auto;
    right: 0;
    height: 110px;
    background-color: #294ea1;
    background-blend-mode: color-burn;
    z-index: -1;
    background-size: contain;
    background-position: top left;
    background-repeat: no-repeat;
    opacity: 0.5;
}

.winners-title {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 56px;
    line-height: 110%;
    text-align: center;
    color: #fff;
    margin: 0 auto 20px;
}

.winners-subtitle {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 24px;
    line-height: 120%;
    text-align: center;
    color: #fff;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.winners-search {
    width: 100%;
    margin: 0 auto 32px;
}

.winners-search__wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.winners-search__icon {
    position: absolute;
    left: 20px;
    width: 14px;
    height: 14px;
    color: #9ca3af;
    pointer-events: none;
    z-index: 1;
}

.winners-search__input {
    width: 100%;
    height: 48px;
    padding: 12px 20px 12px 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #fff;
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 24px;
    color: #fff;
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.winners-search__input::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.winners-search__input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: #3cd39d;
}

.winners-content {
    width: 100%;
    max-width: 588px;
    margin: 0 auto;
}

.ajax-result {
    transition: opacity 0.3s ease;
}

.winners-loading,
.winners-error,
.winners-empty {
    text-align: center;
    color: #fff;
    font-family: var(--font-family);
    font-size: 18px;
    padding: 40px 20px;
}

.winners-table {
    width: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    backdrop-filter: blur(10px);
    padding: 24px;
    box-shadow: 0 20px 40px rgba(9, 20, 66, 0.2);
}

.winners-table__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 16px;
    padding: 0 0 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.winners-table__head-cell {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.05em;
    padding-left: 26px;
}

.winners-table__head-cell--id {
    text-align: right;
    padding-right: 33px;
    padding-left: 0;
}

.winners-table__body {
    overflow: hidden;
    padding-top: 12px;
}

.winners-table__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    align-items: center;
    gap: 16px;
    padding: 12px 24px;
    transition: background-color 0.2s ease;
    border-radius: 8px;
    cursor: default;
}



.winners-table__row:nth-child(even) {
    background: rgba(255, 255, 255, 0.05);
}

.winners-table__row:hover {
    background: #38589F;
}

.winners-table__row--empty {
    grid-template-columns: 1fr;
    cursor: default;
    margin-bottom: 0;
}

.winners-table__row--empty:hover {
    background: transparent;
}

.winners-table__row--active {
    background: #38589F;
}

.winners-table__cell {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    color: #fff;
}

.winners-table__cell--name {
    word-break: break-word;
}

.winners-table__cell--id {
    text-align: right;
    font-weight: 500;
}

.winners-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.winners-pagination__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: transparent;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.winners-pagination__btn:hover:not(.disabled) {
    background-color: #0E317F;
}

.winners-pagination__btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.winners-pagination__btn svg {
    width: 100%;
    height: auto;
}

.winners-pagination__pages {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.winners-pagination__page {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.winners-pagination__page:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.winners-pagination__page.active {
    background: #fff;
    color: #294ea1;
    border-color: #fff;
    font-weight: 600;
}

.winners-pagination__ellipsis {
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-family);
    font-size: 14px;
    padding: 0 4px;
}

.winners-footer {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.winners-footer__button {
    min-width: 340px;
    text-align: center;
    justify-content: center;
}

@media screen and (max-width: 768px) {
    .winners-page {
        padding-top: 100px;
    }

    .winners-wrapper {
        padding: 0 1rem 4rem;
    }

    .winners-title {
        font-size: 36px;
        margin-bottom: 16px;
    }

    .winners-subtitle {
        font-size: 18px;
        margin-bottom: 32px;
    }

    .winners-search {
        margin-bottom: 32px;
    }

    .winners-search__input {
        height: 48px;
        padding: 12px 16px 12px 48px;
        font-size: 16px;
    }

    .winners-search__icon {
        left: 16px;
        width: 18px;
        height: 18px;
    }

    .winners-table__head,
    .winners-table__row {
        padding: 12px 16px;
        gap: 12px;
    }

    .winners-table__head-cell,
    .winners-table__cell {
        font-size: 16px;
    }

    .winners-table__cell--name {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 100%;
    }

    .winners-table__body {
        max-height: 400px;
    }

    .winners-pagination {
        margin-top: 32px;
        gap: 12px;
    }

    .winners-pagination__btn,
    .winners-pagination__page {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 16px;
    }

    .winners-pagination__btn svg {
        width: 18px;
        height: 18px;
    }

    .winners-footer {
        margin-top: 40px;
    }
}

@media screen and (max-width: 480px) {
    .winners-wrapper .results-title_panel {
        display: none;
    }

    .winners-subtitle {
        padding: 0 32px;
        font-size: 20px;
    }

    .winners-title {
        font-size: 32px;
        margin-bottom: 16px;
    }

    .winners-wrapper {
        padding: 0 20px 80px;
    }

    .winners-table {
        padding: 16px;
        border-radius: 16px;
    }

    .winners-search {
        margin-bottom: 16px;
    }

    .winners-table__head-cell,
    .winners-table__cell {
        font-size: 14px;
        line-height: 1;
    }

    .winners-table__cell--name {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 100%;
    }

    .winners-pagination {
        margin-top: 20px;
        gap: 3px;
    }

    .winners-pagination__page {
        font-size: 14px;
    }

    .winners-table__head-cell {
        padding-left: 2px;
    }

    .winners-table__head-cell--id {
        padding-left: 0;
        padding-right: 9px;
    }

    .winners-table__row {
        margin-bottom: 0;
        padding: 14px 16px;
    }

    .winners-table__head {
        padding: 6px 14px 14px;
    }

    .winners-table__body {
        max-height: 430px;
    }

}