
::-webkit-scrollbar {
  width: 10px; 
  height: 10px; 
}

::-webkit-scrollbar-track {
  background: #1a1a1a; 
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background-color: #F1BE48; 
  border-radius: 5px; 
  border: 2px solid #1a1a1a; 
}


::-webkit-scrollbar-thumb:hover {
  background-color: #ffd46c; 
}

/* Для Firefox */
* {
  scrollbar-width: thin; /* или 'auto' */
  scrollbar-color: #F1BE48 #1a1a1a;
}

body {
    background-color: #000000;
    margin: 0;
    font-family: 'Sofia Sans Condensed', sans-serif;
    color: white;
}

.main-section {
    position: relative;
    padding: 24px 20px;
    text-align: center;
    min-height: 876px;
    height: 100%;
    overflow: hidden;
}

.decor-left,
.decor-right {
    position: absolute;
    top: 0;
    height: 100%;
    z-index: 0;
}

.decor-left {
    left: 0;
}

.decor-right {
    right: 0;
}

.logo {
    width: 80px;
    height: 80px;
    z-index: 2;
    position: relative;
}

.main-title {
    font-family: 'Sofia Sans Extra Condensed', sans-serif;
    font-size: 44px;
    margin-bottom: 5px;
    margin-top: 0;
    text-transform: uppercase;
    z-index: 2;
    position: relative;
}

.subtitle {
    font-size: 20px;
    max-width: 450px;
    margin: 0 auto 40px;
    z-index: 2;
    text-transform: uppercase;
    position: relative;
}

.clubs-grid {

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    max-width: 1044px;
    margin: 0 auto;
    z-index: 2;
    position: relative;
}

.club-slider-btn {
    display: none;
}

.club {
    width: 120px;
    height: 133px;
    text-align: center;
}

.club-frame {
    position: relative;
    width: 120px;
    height: 108px;
    border-radius: 6px;
    cursor: pointer;
    overflow: hidden;
}

.club-frame img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 6px;
    transition: transform 0.2s ease;
}

.club-frame img:hover {
    transform: scale(1.05);
}

.hover-border {
    position: absolute;
    inset: 0;
    border-radius: 6px;
    pointer-events: none;
    z-index: 2;
    display: none;
    background: linear-gradient(125deg, #AE4E00, #B47E11, #EFD983, #FEF1A2, #EFD983, #BC881B, #A54E07);
    padding: 3px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    box-sizing: border-box;
}

.club:hover .hover-border {
    display: block;
}

.club-name {
    margin-top: 5px;
    font-size: 14px;
    font-family: 'Sofia Sans Condensed', sans-serif;
    color: white;
}

/* POPUP OVERLAY */
.club-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* POPUP CONTENT */
.popup-inner {
    width: 420px;
    height: 488px;
    background: #000;
    border: 1px solid #FFFFFF66;
    border-radius: 12px;
    box-sizing: border-box;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    /* убрали паддинг */
    overflow: hidden;
}

.popup-image-wrapper {
    width: 100%;
    height: 320px;
    overflow: hidden;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    position: relative;
}

.popup-club-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 48px;
    height: 48px;
    z-index: 10;
    cursor: pointer;
}

.popup-text {
    font-family: 'Sofia Sans Extra Condensed', sans-serif;
    font-weight: 900;
    font-size: 28px;
    text-align: center;
    max-width: 372px;
    text-transform: uppercase;
    color: white;
    padding: 20px 16px 12px;
}

.popup-button {
    font-family: 'Sofia Sans Condensed', sans-serif;
    font-weight: 700;
    font-size: 20px;
    text-transform: uppercase;
    text-align: center;
    padding: 14px;
    width: 100%;
    max-width: 189px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: black;
    background: linear-gradient(135deg, #f67d01 0%, #fff776 50%, #f67f01 100%);
    box-shadow: 0 0 12px rgba(255, 189, 0, 0.4);
    transition: transform 0.2s ease;
}

.popup-button:hover {
    transform: scale(1.03);
}

.results-section {
    position: relative;
    padding: 32px;
    margin: 40px auto 0;
    max-width: 680px;
    border-radius: 24px;
    background: #000;
    z-index: 1;
}

.results-section::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: 24px;
    background: linear-gradient(45deg, #a65108, #fbeb9a, #a65108);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
    pointer-events: none;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.result-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(205, 164, 66, 0) 0%, #CDA442 50%, rgba(205, 164, 66, 0) 100%);
    margin: 8px 0;
}

.result-logo {
    width: 48px;
    height: 48px;
    margin-right: 16px;
}

.result-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.result-name {
    font-family: "Sofia Sans Condensed", sans-serif;
    font-weight: 700;
    font-size: 24px;
    text-transform: uppercase;
    line-height: 100%;
}

.result-right {
    font-family: "Sofia Sans Condensed", sans-serif;
    font-weight: 700;
    font-size: 32px;
    text-transform: uppercase;
    line-height: 100%;
}

.your-vote-tag {
    background: #F1BE48;
    color: black;
    font-size: 16px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    margin-left: 12px;
    vertical-align: middle;
    text-transform: uppercase;
}

.results-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Sofia Sans Condensed', sans-serif;
    font-weight: 700;
    font-size: 20px;
    text-transform: uppercase;
    border-radius: 8px;
    padding: 14px 24px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-btn {
    position: relative;
    background: #00000000;
    color: white;
    font-family: 'Sofia Sans Condensed', sans-serif;
    font-weight: 700;
    font-size: 20px;
    text-transform: uppercase;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    overflow: hidden;
    transition: transform 0.2s ease;
}

/* Стили для контейнера ссылки, чтобы позиционировать уведомление */
.share-link-box {
    position: relative;
}

/* Стили для самого уведомления */
.copy-feedback {
    position: absolute;
    top: -40px;
    /* Положение над полем ввода */
    left: 50%;
    transform: translateX(-50%);
    background-color: #f1be48;
    /* Зеленый цвет успеха */
    color: rgb(8, 8, 8);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    opacity: 0;
    /* Изначально полностью прозрачный */
    visibility: hidden;
    /* Изначально скрыт */
    transition: opacity 0.3s ease, visibility 0.3s ease;
    /* Плавный переход */
    white-space: nowrap;
    /* Чтобы текст не переносился */
}

/* Класс, который будет добавляться для показа уведомления */
.copy-feedback.show {
    opacity: 1;
    visibility: visible;
}

.share-btn img {
    width: 20px;
    height: 20px;
    margin-left: 8px;
    filter: brightness(1.5);
}

/* Верхняя и нижняя полоска — по умолчанию градиент */
.share-btn::after,
.share-btn::before {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(205, 164, 66, 0) 0%, #CDA442 50%, rgba(205, 164, 66, 0) 100%);
    z-index: 0;
    transition: background 0.2s ease;
}

.share-btn::before {
    top: 0;
}

.share-btn::after {
    bottom: 0;
}

/* ХОВЕР: увеличение и сплошные линии */
.share-btn:hover {
    transform: scale(1.05);
}

.share-btn:hover::after,
.share-btn:hover::before {
    background: #CDA442;
}

.bonus-btn {
    background: linear-gradient(135deg, #f67d01 0%, #fff776 50%, #f67f01 100%);
    color: black;
    box-shadow: 0 0 12px rgba(255, 189, 0, 0.4);
    font-family: 'Sofia Sans Condensed', sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Ховер эффект */
.bonus-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 189, 0, 0.6);
}

.share-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.share-popup-inner {
    background: #000;
    padding: 32px 24px;
    border: 1px solid #fff2;
    border-radius: 16px;
    text-align: center;
    width: 100%;
    max-width: 310px;
    position: relative;
}

.share-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.share-club-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
}

.share-title {
    font-family: 'Sofia Sans Extra Condensed', sans-serif;
    font-size: 28px;
    font-weight: 900;
    text-transform: uppercase;
    color: white;
}

.share-subtitle {
    font-family: 'Sofia Sans Condensed', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: white;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.share-link-box {
    display: flex;
    align-items: center;
    background: #1b1b1b;
    border-radius: 8px;
    padding: 11px 14px;
}

#shareLink {
    flex: 1;
    border: none;
    background: transparent;
    color: white;
    font-size: 20px;
    font-family: 'Sofia Sans Condensed', sans-serif;
}

#shareLink:focus {
    outline: none;
}

#copyButton {
    width: 20px;
    height: 20px;
    margin-left: 12px;
    cursor: pointer;
}

.bonus-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.bonus-popup-inner {
    background: #000;
    padding: 28px 16px;
    border: 1px solid #fff2;
    border-radius: 16px;
    text-align: center;
    width: 100%;
    max-width: 326px;
    position: relative;
}

.bonus-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.fixtures-section {
    position: relative;
    background-color: #F1BE48;
    height: 360px;
    overflow: hidden;
    text-align: center;
}

.fixtures-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 360px;
    background: url("../img/line.webp") no-repeat center;
    background-size: auto 100%;
    width: 100%;
    pointer-events: none;
    z-index: 0;
}

.fixtures-title {
    font-family: 'Sofia Sans Extra Condensed', sans-serif;
    font-weight: 900;
    font-size: 44px;
    text-transform: uppercase;
    color: black;
    margin-top: 30px;
    z-index: 1;
    position: relative;
}

.fixtures-slider-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    position: relative;
    z-index: 1;
}

.slider-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 40px;
    height: 40px;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.slider-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.slider-btn.disabled {
    opacity: 1;
    /* Делаем ее полупрозрачной */
    cursor: default;
    /* Убираем курсор-руку */
}

.fixtures-slider-container {
    overflow: hidden;
    width: 1316px;
}

.fixtures-slider {
    display: flex;
    gap: 12px;
    transition: transform 0.5s ease-in-out;
}

.fixtures-card {
    background: linear-gradient(252.81deg, #000000 0%, #242424 50%, #000000 100%);
    border-radius: 12px;
    padding: 12px;
    width: 296px;
    height: 152px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
    text-decoration: none;
}

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

.fixtures-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 4px 8px 0;
}

.fixtures-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.fixtures-name {
    font-family: 'Sofia Sans Condensed', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: white;
    text-align: center;
}

.fixtures-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fixtures-time {
    display: flex;
    align-items: center;
    font-family: 'Sofia Sans Condensed', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #FFFFFF99;
    gap: 5px;
}

.fixtures-clock {
    width: 12px;
    height: 12px;
}

.fixtures-date {
    font-family: 'Sofia Sans Condensed', sans-serif;
    font-weight: 500;
    font-size: 20px;
    color: #fff;
    margin-top: 4px;
}

.fixtures-odds {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 0;
}

.odds-box {
    display: flex;
    background: #333333;
    border-radius: 8px;
    padding: 0 12px;
    font-family: 'Sofia Sans Condensed', sans-serif;
    font-size: 14px;
    width: 94px;
    height: 32px;
    color: #fff;
    text-align: center;
    justify-content: space-between;
    align-items: center;
}

.odds-box strong {
    display: block;
    font-size: 14px;
}

/* ---- Promo Footer Styles ---- */

/* ---- Стили для промо-футера ---- */

.promo-footer {
    height: 144px;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Центральный блок теперь по центру */
    padding: 0 20px;
    overflow: hidden;
    position: relative;
    /* Необходимо для позиционирования боковых картинок */
}

/* Декоративные картинки слева и справа, добавленные через CSS */
.promo-footer::after,
.promo-footer::before {
    content: '';
    /* Обязательное свойство */
    position: absolute;
    top: 0;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Левая картинка */
.promo-footer::before {
    left: 0;
    background-image: url("../img/fleft.webp");
    /* ВАЖНО: Укажите здесь реальную ширину вашего изображения fleft.webp */
    width: 312px;
}

/* Правая картинка */
.promo-footer::after {
    right: 0;
    background-image: url("../img/fright.webp");
    /* ВАЖНО: Укажите здесь реальную ширину вашего изображения fright.webp */
    width: 312px;
}

/* Контейнер для центрального контента */
.promo-footer-content {
    display: flex;
    align-items: center;
    gap: 24px;
    /* Отступ между элементами в центре */
    z-index: 1;
    /* Чтобы контент был гарантированно поверх боковых картинок */
}

/* Стили для подарочной коробки с анимацией */
.promo-footer-box {
    animation: energetic-shake-animation 2s infinite;
}

/* Заголовок в футере */
.promo-footer-title {
    font-family: 'Sofia Sans Extra Condensed', sans-serif;
    font-size: 48px;
    font-weight: 900;
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
}

/* Кнопка "Sign Up" */
.promo-footer-button {
    background-color: #F1BE48;
    color: #000000;
    border: none;
    border-radius: 6px;
    padding: 14px 28px;
    font-family: 'Sofia Sans Condensed', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease;
    white-space: nowrap;
}

.promo-footer-button:hover {
    transform: scale(1.05);
}

/* ---- Анимация "Энергичная тряска с подпрыгиванием" ---- */
@keyframes energetic-shake-animation {
    0%,
    100% {
        transform: translateX(0) rotate(0);
    }
    20%,
    60% {
        transform: translateX(-3px) rotate(-4deg);
    }
    40%,
    80% {
        transform: translateX(3px) rotate(4deg);
    }
    50% {
        /* Момент подпрыгивания */
        transform: translateY(-10px) rotate(0) scale(1.1);
    }
}

@media (max-width: 1460px) {
    .decor-left {
        content: url("../img/main_left_tab.webp");
    }
    .decor-right {
        content: url("../img/main_right_tab.webp");
    }

    .fixtures-slider-wrapper {
        padding-left: 12px;
        padding-right: 12px;
    }
    .fixtures-slider-container {
        overflow: hidden;
        width: 984px;
    }
}

/* --- Адаптация для ПЛАНШЕТОВ (1024px и меньше) --- */
@media (max-width: 1024px) {

    .decor-left {
        content: url("../img/main_left_mob.webp");
        height: 444px;
    }
    .decor-right {
        content: url("../img/main_right_mob.webp");
        height: 444px;
    }

    .main-section {
        min-height: 548px;
        padding: 24px 6px;
    }

    /* Общая обертка слайдера клубов */
    .clubs-slider-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        /* Этот отступ теперь контролирует расстояние кнопок от блока */
        position: relative;
    }

    /* Кнопки-стрелки слайдера клубов */
    .clubs-slider-wrapper > .club-slider-btn {
        display: block;
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        width: 32px;
        height: 32px;
        z-index: 10;
        flex-shrink: 0;
    }

    /* Селекторы оставлены на случай других стилей, но позиционирование убрано */

    .club-slider-btn.disabled {
        opacity: 0.3;
        cursor: default;
    }

    /* Контейнер, который обрезает видимую область ("окно" слайдера) */
    .clubs-grid-container {
        overflow: hidden;
        width: 648px;
        /* Фиксированная ширина для 5 клубов */
    }

    /* Сама сетка клубов, которая двигается */
    .clubs-grid {
        grid-template-columns: none;
        display: grid;
        grid-auto-flow: column;
        grid-template-rows: repeat(2, auto);
        width: max-content;
        margin: 0;
        max-width: none;
        transform: translateX(0);
        transition: transform 0.6s ease-in-out;
    }

    /* Стили для слайдера матчей остаются без изменений */
    .fixtures-section {
        height: auto;
        padding-bottom: 20px;
    }

    .fixtures-slider-container {
        width: 1220px;
        overflow: visible;
    }

    .fixtures-slider {
        flex-wrap: wrap;
        justify-content: center;
        transform: none !important;
    }

    .fixtures-section .slider-btn {
        display: none;
    }

    .promo-footer::before {
        left: 0;
        background-image: url("../img/ffleft.webp");
        /* ВАЖНО: Укажите здесь реальную ширину вашего изображения fleft.webp */
        width: 110px;
    }

    .promo-footer {
        height: 112px;
    }
    .promo-footer-title {
        font-size: 36px;
    }
    /* Правая картинка */
    .promo-footer::after {
        right: 0;
        background-image: url("../img/ffright.webp");
        /* ВАЖНО: Укажите здесь реальную ширину вашего изображения fright.webp */
        width: 312px;
    }

    .results-section {
        position: relative;
        padding: 32px;
        margin: 40px auto 0;
        max-width: 680px;
        border-radius: 24px;
        background: #000;
        z-index: 1;
    }

}

/* --- Адаптация для МОБИЛЬНЫХ (767px и меньше) --- */
@media (max-width: 767px) {

    /* 1. Основной контейнер и заголовки */
    .main-section {
        min-height: auto;
        padding: 24px 0;
        /* <-- ИЗМЕНЕНИЕ: боковые отступы теперь здесь */
    }

    .main-title {
        font-size: 28px;
    }

    .subtitle {
        font-size: 16px;
        max-width: 248px;
        margin: 0 auto 20px;
    }

    /* 2. Слайдер клубов становится ОДНОРЯДНЫМ */

    .clubs-slider-wrapper {
        gap: 0;
        /* Убираем отступ, т.к. кнопок не будет */
    }

    /* Скрываем стрелки на мобильных */
    .club-slider-btn {
        display: none;
    }

    /* Контейнер-окно теперь занимает почти всю ширину */
    .clubs-grid-container {
        width: 100%;
        overflow: hidden;
        padding: 0 8px;
        /* <-- ИЗМЕНЕНИЕ: убираем паддинг отсюда */
        box-sizing: border-box;
    }

    .clubs-grid {
        grid-template-rows: auto;
        gap: 8px;
        padding-right: 16px;
        box-sizing: content-box;
    }

    /* 3. Адаптируем секцию с результатами */
    .results-section {
        padding: 24px 16px;
        margin: 32px 16px 0;
    }
    .result-name {
        font-size: 20px;
    }
    .result-right {
        font-size: 28px;
    }

    /* 4. Адаптируем слайдер с матчами */
    .fixtures-section {
        height: auto;
        padding-bottom: 32px;
    }

    .fixtures-slider-container {
        /* Пересчитываем ширину для 2-х карточек, например */
        width: 604px;
        /* (296px * 2) + 12px */
    }

    /* 5. Адаптируем футер */
    .promo-footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .promo-footer {
        height: auto;
        padding: 24px 16px;
        min-height: 260px;
    }
    .promo-footer-title {
        font-size: 28px;
    }

    .club-slider-btn.left {
        display: none;
    }
    .club-slider-btn.right {
        display: none;
    }

    .club {
        width: 132px;
        height: 190px;
        text-align: center;
    }

    .club-frame {
        position: relative;
        width: 132px;
        height: 160px;
        border-radius: 6px;
        cursor: pointer;
        overflow: hidden;
    }

    .popup-inner {
        width: 342px;
        height: 410px;
    }

    .popup-button {
        margin-bottom: 20px;
    }

    .popup-text {
        font-size: 24px;
        padding: 16px 16px 12px;
    }

    .promo-footer-content {
        flex-direction: column;
    }

    .promo-footer::before {
        left: 0;
        background-image: url("../img/fleftm.webp");
        width: 109px;
        left: -10px;
    }

    .promo-footer::after {
        right: 0;
        background-image: url("../img/frightm.webp");
        width: 114px;
        right: -10px;
    }

    .promo-footer-button {
        width: 344px;
    }

}
