.league-template section.first-screen {
    margin-top: 80px;
    overflow: visible;
}
.league-template .compound {
    margin-top: clamp(20px, 3vw, 56px);
    overflow: visible;
}
.league-template .first-screen__title {
    margin-top: 0;
    margin-bottom: clamp( 20px, 4vw, 40px);
    font-size: clamp(24px, 4vw, 40px);
    letter-spacing: .05em;
}
.league-template .first-screen__subtitle {
    text-align: center;
    font-size: clamp(16px, 2.4vw, 24px);
    margin-top: 0px;
    margin-bottom: 10px;
    letter-spacing: .05em;
}
.league-template .first-screen__info {
    text-align: center;
    font-size: 16px;
    color: #BC0000;
    letter-spacing: .05em;
}
.league-template .first-screen__form {
    margin-top: clamp(20px, 4vw, 40px);
}
.league-template .first-screen__form label {
    margin-bottom: 0;
}
.league-template .year-tabs__options {
    display: flex;
    justify-content: center;
    align-items: stretch;
    letter-spacing: .05em;
    flex-wrap: wrap;
    max-width: 980px;
    margin: auto;
}
.league-template .year-tabs__option {
    cursor: pointer;
    padding: 16px 57.5px;
    border-radius: 0;
    background-color: #161414;
    color: #fff;
    font-size: 20px;
    text-align: center;
    font-weight: 700;
    transition: 0.3s;
    line-height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.league-template .year-tabs__option.active {
    color: #161414;
    background-color: #F5C643;
}

/*
.league-template .year-tabs__options .year-tabs__option:last-child {
    border-radius: 0 8px 8px 0;
}
.league-template .year-tabs__options .year-tabs__option:first-child {
    border-radius: 8px 0 0 8px;
}
*/

/* Mobile dropdown styles */
.league-template .year-tabs__dropdown {
    display: none;
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.league-template .year-tabs__dropdown-header {
    background-color: #F5C643;
    color: #000000;
    padding: 16px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 700;
    letter-spacing: .05em;
    transition: 0.3s;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

.league-template .year-tabs__dropdown-label {
    pointer-events: none;
}

.league-template .year-tabs__dropdown-arrow {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    pointer-events: none;
}

.league-template .year-tabs__dropdown.open .year-tabs__dropdown-arrow {
    transform: rotate(180deg);
}

.league-template .year-tabs__dropdown-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background-color: #fff;
    border-radius: 8px;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.league-template .year-tabs__dropdown.open .year-tabs__dropdown-list {
    max-height: 400px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.league-template .year-tabs__dropdown-option {
    padding: 16px 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    letter-spacing: .05em;
    color: #161414;
    background-color: #fff;
    border-bottom: 1px solid #E7ECF0;
}

.league-template .year-tabs__dropdown-option:hover {
    background-color: #f5f5f5;
}

.league-template .year-tabs__dropdown-option.active {
    background-color: #F5C643 !important;
    color: #161414 !important;
}

.league-template .year-tabs__dropdown-option.active:hover {
    background-color: #F5C643 !important;
}

.league-template .year-tabs__dropdown--mobile {
    display: none;
}


.compound__wrapper {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    align-items: flex-start;
}
.league-template-title-h3 {
    font-size: clamp(20px, 2.5vw, 32px);
    text-transform: uppercase;
    font-weight: 700;
    color: #161414;
    margin-bottom: clamp(16px,2vw, 32px);
    letter-spacing: .05em;
}
.scheme-wrapper__content {
    display: flex;
    justify-content: center;
    align-items: center;
}
.scheme-wrapper {
    position: sticky;
    top: 100px;
}
.compound__schemescheme-wrapper__scheme {
    margin-bottom: 32px;
}
.compound__schemescheme-wrapper__scheme img {
    height: auto;
}
.league-template .scheme-wrapper__subtitle {
    font-size: clamp(18px, 2.4vw, 24px);
    font-weight: 700;
    line-height: normal;
    letter-spacing: .05em;
}
.league-template .scheme-wrapper__subtitle div {
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
    margin-bottom: 4px;
    letter-spacing: .05em;
}
.command-block {
    max-width: 628px;
    width: 100%;
}
.league-template .compound__players-list {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}
.league-template .compound__players-list-item {
    background-color: transparent;
    background-image: url('/wp-content/themes/grugany/images/player-bg.svg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    border-radius: clamp(16px, 2vw, 20px);
    overflow: hidden;
    background-size: 100% auto;
    width: 100%;
    max-width: 142px;
}
.league-template .compound__players-list-item-photo {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    background-color: #161414;
    border-radius: clamp(16px, 2vw, 20px) clamp(16px, 2vw, 20px) 0 0;
    padding-top: clamp(14px, 2vw, 20px);

}
.league-template .compound__players-list-item-photo img {
    width: auto;
    max-width: 120px;
}
.league-template .compound__players-list-item-number {
    font-size: 25.357px;

    color: #F5C643;
    font-weight: 700;
    position: absolute;
    top: clamp(10px, 2vw, 20px);
    left: clamp(10px, 2vw, 20px);
}
.league-template .compound__players-list-item-name {
    text-align: center;
    padding: clamp(8px, 1vw, 10px) 10px 30px;
    letter-spacing: .05em;
}
.league-template .compound__players-list-item-name .last-name {
    font-size: 12.679px;
    font-weight: 700;
    line-height: normal;
    display: block;
    text-transform: uppercase;
}
.league-template .compound__players-list-item-name .first-name {
    font-size: 11.411px;
    font-weight: 700;
    line-height: normal;
    display: block;
}
.league-template .result__item {
    margin-bottom: 40px;
    max-width: 397px;
    width: calc(100% / 3 - (24px));
}
.league-template .result__item .result__item-info {
    font-size: 28px;
    order: 2;
    margin: 40px 0 16px;
}
.league-template .result__item .result__item-photo {
    order: 1;
    position: relative;
    aspect-ratio: 1 / 1;
}
.league-template .result__item .result__item-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.league-template .results__item-links {
    width: 100%;
    order: 3;
}
.league-template .result__date {
    font-size: 28px;
    margin-bottom: 16px;
    line-height: normal;
    font-weight: 700;
    letter-spacing: 1.4px;
}
.league-template .result__res {
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 700;
    margin-bottom: clamp(6px, 1.5vw, 16px);
    line-height: normal;
    letter-spacing: .05em;
}
.league-template .result__count {
    font-size: 16px;
    font-weight: 700;
    display: inline-block;
    padding: 13px;
    line-height: normal;
    text-align: center;
    position: absolute;
    bottom: 20px;
    border-radius: 24px;
    background: rgba(245, 198, 67, 0.80);
    backdrop-filter: blur(2px);
    transform: translate(-50%, 0);
    left: 50%;
    width: 100%;
    max-width: 310px;
}
.league-template .results__item-links {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 2vw, 20px);
    letter-spacing: .05em;
}
.league-template .results__item-link {
    font-size: 16px;
    display: flex;
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    gap: clamp(10px, 2vw, 20px);
    line-height: normal;
}
.league-template .results__item-link > span {
    width: clamp(20px, 2.5vw, 26px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.league-template .result__list {
    display: flex;
    align-items: flex-start;
    gap: clamp(20px, 3vw, 36px);
    flex-wrap: wrap;
}
.result__count__mobile {
    display: none;
}

/* Result slider wrapper for mobile */
.league-template .result__list.slick-initialized {
    position: relative;
    margin-bottom: 60px;
    width: 100%;
    max-width: 100%;
}

.league-template .result__list.slick-initialized .slick-list {
    overflow: visible;
}

.league-template .result__list.slick-initialized .slick-track {
    display: flex;
}

.league-template .result__list.slick-initialized .slick-slide {
    height: auto;
    width: 100%;
}

/* Result slider arrows for mobile */
.league-template .result__list .slick-arrow {
    position: absolute;
    bottom: -50px;
    width: 24px;
    height: 24px;
    border: none;
    background-color: transparent;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    z-index: 10;
    transition: opacity 0.3s ease;
    padding: 0;
    font-size: 0;
    line-height: 0;
}

.league-template .result__list .slick-prev {
    left: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 18L9 12L15 6' stroke='%23161414' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.league-template .result__list .slick-prev::before {
    content: '';
}

.league-template .result__list .slick-next {
    right: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 18L15 12L9 6' stroke='%23161414' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.league-template .result__list .slick-next::before {
    content: '';
}

.league-template .result__list .slick-arrow:hover {
    opacity: 0.7;
}

.league-template .result__list .slick-arrow.slick-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Result slider dots for mobile */
.league-template .result__list .slick-dots {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    bottom: -44px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
}

.league-template .result__list .slick-dots li {
    width: 4px !important;
    height: 4px !important;
    margin: 0;
    padding: 0;
}

.league-template .result__list .slick-dots li.slick-active {
    width: 6px !important;
    height: 6px !important;
}

.league-template .result__list .slick-dots li button {
    width: 4px;
    height: 4px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: rgba(22, 20, 20, 0.3);
    cursor: pointer;
    font-size: 0;
    line-height: 0;
    transition: background-color 0.3s ease;
}

.league-template .result__list .slick-dots li.slick-active button  {
    width: 6px !important;
    height: 6px !important;
    background-color: #161414;
}

.league-template .result__list .slick-dots li button::before {
    content: '';
}

.league-template .result__list .slick-dots li button:hover {
    background-color: rgba(22, 20, 20, 0.6);
}

.league-template .result__list .slick-dots li.slick-active button:hover {
    background-color: #161414;
}

@media (max-width: 1200px) {
    .scheme-wrapper {
        flex-direction: column;
        display: flex;
        position: static;
    }
    .league-template .scheme-wrapper__subtitle {
        order: 1;
        margin-bottom: 32px;
    }
    .league-template-title-h3 {
        order: 2;
    }
    .compound__schemescheme-wrapper__scheme {
        order: 3;
        margin-bottom: 0;
    }
    .compound__wrapper {
        flex-direction: column;
        align-items: center;
    }


}
@media (max-width: 1000px) {
    .league-template .year-tabs__options--desktop {
        display: none !important;
    }
    .league-template .year-tabs__dropdown--mobile {
        display: block;
    }
    .league-template .result__item {
        width: calc(100% / 2 - 20px)
    }
}
@media (max-width: 1100px) {
    .league-template .scheme-wrapper__content {
        flex-direction: column;
        gap: 20px;
    }
    .league-template .scheme-wrapper__subtitle div {
        margin-bottom: 0;
        line-height: 20px;
    }

    .league-template .result__item {
        justify-content: flex-start;
    }
    .league-template .results__item-links {
        width: auto;
    }
}
@media (max-width: 600px) {
    .league-template .year-tabs__options {
        flex-wrap: wrap;
        max-width: 400px;
        margin: 0 auto;
    }
    .league-template .compound__players-list-item {
        max-width: 155px;
    }
    .league-template .compound {
        margin-top: 40px;
    }
    .league-template .result__list {
        display: block;
    }
    .league-template .result__list:not(.slick-initialized) {
        padding-bottom: 0;
    }
    .league-template .compound__players-list {
        justify-content: center;
        gap: 20px 10px;
    }
    .league-template .result__item {
        width: 100%;
        max-width: 100%;
    }

    /* Ограничиваем ширину картинки в слайдере */
    .league-template .result__list.slick-initialized .result__item .result__item-photo {
        max-width: 100%;
    }

    .league-template .compound__players-list-item-name .last-name {
        font-size: 16px;
    }
    .league-template .compound__players-list-item-name .first-name {
        font-size: 16px;
    }
    .league-template .compound__players-list-item-name {
        padding-bottom: 35px;
    }

    /* Ensure result items display properly in slider */
    .league-template .result__list.slick-initialized .result__item {
        display: flex !important;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin-right: 20px;
    }

    .league-template .result__list.slick-initialized .slick-slide > div {
        width: 100%;
    }

}
