h3 {
    margin-top: 15px;
}

.c-page__container {
    max-width: 1820px;
}

.banner-section {
    display: flex;
    padding-bottom: 20px;
}

.c-footer__banner {
    max-width: 600px;
    margin: auto;
}

.c-footer__banner__big-prize {
    height: 130px;
}

.c-table-of-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    list-style: none;
    padding: 0 15px;
    margin: 0;
}

.c-table-of-content__item {
    background: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    /* легкая тень для глубины */
    transition: background 0.3s;
}

.c-table-of-content__item:hover {
    background: #ececec;
}

.c-table-of-content__item a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    display: block;
}

.c-footer__banner__big-prize {
    width: 100%;
    background-color: #1f6aed;
    background-image: url(../img/prizebg.webp);
    background-position: center;
    background-size: cover;
    border-radius: 10px;
    position: relative;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px
}

.c-footer__banner__info__title {
    color: #fffc;
    font-size: 15px
}

.c-footer__banner__info__subtitle {
    font-size: 23px;
    font-weight: 800
}

.c-footer__banner__badge {
    width: 100px;
    height: 50px;
    background-color: #fff;
    border-radius: 10px;
    color: #45433f;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    white-space: nowrap
}

.c-footer__banner__badge__description {
    font-size: 10px;
    font-weight: 700;
    margin-bottom: -5px
}

.c-footer__banner__badge__date {
    font-size: 18px;
    font-weight: 900
}

.c-footer__chat {
    border-radius: 10px;
    padding: 20px;
    transition: height .25s ease;
    overflow: hidden;
    height: 52px;
    margin-bottom: 20px;
    background-color: #fff
}

/* Контейнер слайдера */

.live-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 130px;
    overflow: hidden;
    background: #fff;
    padding: 15px 0px;
    border-radius: 5px;
    margin: 10px 0px;
}

.win {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin: 0 5px;
    padding: 4px 4px;
    height: 100%;
    transition: transform 0.3s;
    border: 1px solid #eff0f3;
}

.win:hover {
    transform: scale(1.05);
}

.win img {
    height: 100%;
    width: auto;
    margin-right: 8px;
    max-width: 40%;
    border-radius: 10px;
}

.win .info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.win .info .name {
    font-size: 16px;
    color: #333;
    text-decoration: none;
    margin-bottom: 2px;
    font-weight: 600;
}

.win .flex {
    display: flex;
    align-items: center;
    font-size: 10px;
    color: #666;
}

.win .flex .player {
    margin-right: 5px;
    text-decoration: none;
    color: #666;
}

.win .flex .amount {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #f5bb4a;
    font-size: 12px;
}

.win .flex svg {
    margin-right: 3px;
}

.live-winner-text {
    margin: auto;
    display: block;
    text-align: center;
    font-weight: 600;
    font-size: 23px;
}

.money-bag {
    margin-left: 3px;
    display: inline-block;
    animation: pulsate 1s ease-in-out infinite;
}

@keyframes pulsate {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.4);
    }
}

.c-slot__overflow-demo {
    height: 50px;
    font-size: 14px;
    padding: 0 5px;
}

.c-text-container {
    padding: 20px 30px;
}

/* Стили для верхней панели (табы, поиск, провайдеры) */

.c-slots__tabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.tabs {
    list-style: none;
    display: flex;
    gap: 15px;
    padding: 0;
    margin: 0;
}

.tabs li {
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    background-color: #8522c1;
    font-weight: bold;
    color: #fff;
}

.tabs li.active {
    background-color: #178be3;
}

.search-and-providers {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box {
    position: relative;
}

.search-box input {
    padding: 6px 30px 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.search-box .search-icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.providers-btn {
    padding: 6px 12px;
    border: none;
    background-color: #eee;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.providers-btn .arrow-down {
    display: inline-block;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.providers-btn .arrow-down.active {
    transform: rotate(180deg);
}

/* Стили для слотов */

.c-slots__container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.c-slots {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.c-slot {
    box-sizing: border-box;
}

.c-slot__icon {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background-color: #fff;
}

.c-slot__image {
    width: 100%;
    display: block;
}

.c-slot__overflow {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 5px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.c-slot__icon:hover .c-slot__overflow {
    opacity: 1;
}

/* Стили для провайдеров */

.providers-block {
    display: none;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    margin: 20px 0;
    align-items: center;
    justify-items: center;
    background-color: #e2e3e9;
    padding: 15px 15px;
    border-radius: 10px;
}

.provider {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.provider img {
    max-width: 100%;
    max-height: 50px;
    object-fit: contain;
    display: block;
}

.c-text ul {
    list-style-type: none;
    margin-bottom: 5px;
}

.video-section {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.video-section h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.video-grid iframe {
    width: 100%;
    height: 200px;
    border: none;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .video-grid iframe {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
    .video-grid iframe {
        height: 160px;
    }
}

@media screen and (max-width: 767px) {
    .c-page__container {
        padding: 20px 10px;
    }
    .banner-section {
        display: block;
    }
    .c-footer__banner {
        margin-bottom: 20px;
    }
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    /* изначально скрыто */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup {
    position: relative;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    background-size: cover;
}

.popup img {
    max-width: 100%;
    border-radius: 8px;
    width: 100%;
}

.popup h2 {
    margin-top: 15px;
    font-size: 40px;
    color: #000000;
    font-weight: 600;
    background-color: azure;
    border-radius: 10px;
}

.popup button {
    margin-top: 20px;
    padding: 15px 30px;
    font-size: 18px;
    background: #ff6d00;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.popup button:hover {
    background: #e65c00;
}

.popup .close {
    position: absolute;
    top: -40px;
    right: -30px;
    font-size: 36px;
    color: #fff;
    cursor: pointer;
}

.popup .close:hover,
.popup .close:focus {
    color: #fff;
}

.slots-li {
    background-color: #178be3;
    max-width: 210px;
    text-align: center;
    border-radius: 5px;
    color: #fff;
    font-size: 20px;
    margin-bottom: 10px;
}

@media only screen and (max-width: 768px) {
   .live-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .live-section .win {
    flex: 0 0 calc(50% - 10px);
    margin: 5px;
    box-sizing: border-box;
  }
  .c-table__wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .c-table__wrapper table {
    width: 100%;
    border-collapse: collapse;
  }
  .c-table__wrapper td,
  .c-table__wrapper th {
    padding: 8px;
    text-align: left;
    white-space: nowrap;
  }
  .c-text ul {
    padding-left: 0;
    font-size: 1.2rem;
  }
  .providers-block {
    grid-template-columns: repeat(4, 1fr);
  }
  .search-and-providers {
    display: block;
  }
  .providers-btn {
    margin-top: 10px;
  }
  .tag-cloud {
    padding: 15px;
  }
  
  .tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }
  
  .tag-item {
    flex: 1 1 auto;
  }
  
  .tag-link {
    font-size: 1.6rem;
    padding: 8px 12px;
    background-color: #f0f0f0;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    display: inline-block;
    transition: background-color 0.3s;
  }
  
  .tag-link:hover {
    background-color: #e0e0e0;
  }
}