        html, body { 
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            background-color: #121212; 
            color: #e0e0e0; 
            margin: 0; 
            width: 100%;
            max-width: 100%;
            overflow-x: hidden;
            -webkit-text-size-adjust: 100%;
            position: relative;
            min-height: 100vh;
        }

        /* Стили для фильтров */
        .filters-section {
            position: sticky;
            top: 0;
            background: rgba(18, 18, 18, 0.95);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            padding: 15px 0;
            z-index: 100;
            margin-bottom: 10px;
        }

        .filters-container {
            max-width: 600px;
            margin: 0 auto;
            padding: 0 15px;
        }

        .filter-tabs {
            display: flex;
            gap: 8px;
            background: rgba(42, 42, 42, 0.3);
            border-radius: 16px;
            padding: 4px;
            overflow-x: auto;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        .filter-tabs::-webkit-scrollbar {
            display: none;
        }

        .filter-tab {
            flex: 1;
            min-width: 0;
            padding: 12px 16px;
            background: transparent;
            border: none;
            border-radius: 12px;
            color: rgba(255, 255, 255, 0.6);
            font-size: 14px;
            font-weight: 500;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            white-space: nowrap;
            position: relative;
            overflow: hidden;
        }

        .filter-tab.active {
            background: linear-gradient(135deg, #1A73E8, #4285F4);
            color: white;
            box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
            transform: translateY(-1px);
        }

        .filter-tab:hover:not(.active) {
            background: rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.8);
        }

        .filter-tab::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(26, 115, 232, 0.1), rgba(66, 133, 244, 0.1));
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .filter-tab:hover::before {
            opacity: 1;
        }

        /* Индикатор количества */
        .filter-count {
            display: inline-block;
            margin-left: 6px;
            padding: 2px 6px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 8px;
            font-size: 11px;
            font-weight: 600;
            min-width: 16px;
            text-align: center;
        }

        .filter-tab.active .filter-count {
            background: rgba(255, 255, 255, 0.3);
        }

        /* Общие стили для всех элементов */
        .casino {
            background-color: transparent !important;
            border: none !important;
            margin-bottom: 20px !important;
        }

        .info-panel, .bonus-panel, .casino, .action-button, .likes-count, .casino-actions, .casino-header, .casino-info, .casino-background, .background-logo, .play-button {
            border-radius: 13px !important;
            overflow: hidden !important;
        }

        .action-button, .likes-count {
            background-color: rgba(42, 42, 42, 0.2) !important;
            backdrop-filter: blur(10px) !important;
            -webkit-backdrop-filter: blur(10px) !important;
        }

        .play-button {
            background: linear-gradient(90deg, #772eff, rgb(0, 173, 255)) !important;
        }

        .casino-header {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
            position: relative;
            z-index: 2;
            border-radius: 24px;
            background-color: rgba(42, 42, 42, 0);
        }

        .casino-info {
            flex-grow: 1;
            padding-left: 15px;
            background-color: rgba(42, 42, 42, 0);
            border-radius: 24px;
        }

        .casino-name {
            margin: 0;
            font-size: 18px;
            font-weight: 600;
            color: #fff;
        }

        .casino-category {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.6);
            margin-top: 2px;
        }

        .info-panel {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background-color: #2a2a2a;
            border-radius: 12px;
            padding: 20px;
            width: 90%;
            max-width: 400px;
            z-index: 1000;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        }

        .info-panel .panel-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid #3A3A3A;
        }

        .info-panel .panel-header h3 {
            margin: 0;
            font-size: 18px;
            color: #fff;
        }

        .info-panel .panel-content {
            font-size: 16px;
            line-height: 1.5;
            color: #ffffff;
            padding: 10px;
            background-color: rgba(255, 255, 255, 0);
            border-radius: 8px;
        }

        .action-button.show-bonus svg {
            transition: transform 0.2s ease;
        }

        .action-button.show-bonus:hover svg {
            transform: scale(1.1);
        }

        .play-button {
            padding: 8px 16px;
            font-size: 14px;
            transform: scale(0.9);
        }

        .play-button svg {
            width: 25px;
            height: 25px;
        }

        .casino-container { 
            width: calc(100% - 30px); 
            max-width: 600px;
            margin: 0 auto; 
            padding: 0 15px 0px 15px;
            border-radius: 12px; 
            position: relative;
            z-index: 1;
        }
        .casino-grid {
    margin: 0;
    padding: 10px 0 0px 0; /* Убрали нижний padding */
    border-radius: 12px;
}
        .casino-grid { 
            display: flex;
            flex-direction: column;
            gap: 10px;
            width: 100%;
            border-radius: 12px; 
        }
        .casino { 
            
            border-radius: 24px; 
            padding: 15px;
            display: flex;
            flex-direction: column;
            position: relative;
            background-color: rgba(42, 42, 42, 0.1);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }

        .casino:hover {
            
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
        }
        
        .casino::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: radial-gradient(circle at center, transparent 0%, #1E1E1E 100%);
            z-index: 1;
        }

        .casino-background {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            overflow: hidden;
            opacity: 0.07;
        }

        .background-logo {
            position: absolute;
            width: 200px;
            height: 200px;
            filter: blur(2px);
            opacity: 0.05;
            mix-blend-mode: soft-light;
        }

        .background-logo:nth-child(1) {
            top: 10%;
            left: 10%;
            transform: scale(0.8);
        }

        .background-logo:nth-child(2) {
            top: 10%;
            left: 50%;
            transform: translateX(-50%) scale(0.8);
        }

        .background-logo:nth-child(3) {
            top: 10%;
            right: 10%;
            transform: scale(0.8);
        }

        .background-logo img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }
        .casino-header {
            display: flex;
            align-items: center;
            gap: 15px;
            position: relative;
            z-index: 2;
            padding: 10px;
            background: rgba(24, 24, 24, 0.736);
            border-radius: 12px;
            margin-bottom: 10px;
        }

        .casino-actions {
            display: flex;
            align-items: center;
            gap: 8px; /* Уменьшили gap */
            padding: 10px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 12px;
        }

        .play-button {
            display: flex;
            align-items: center;
            gap: 6px; /* Уменьшили gap внутри кнопки */
            padding: 10px 16px; /* Уменьшили padding */
            background: linear-gradient(to right, #40E0D0, #1E90FF);
            color: white;
            border: none;
            cursor: pointer;
            font-weight: bold;
            transition: all 0.2s ease;
            border-radius: 12px;
            text-transform: uppercase;
            font-size: 13px; /* Уменьшили размер шрифта */
            letter-spacing: 0.5px;
            flex: 1;
            min-width: 0; /* Важно для flex */
            flex-shrink: 0; /* Не сжимать кнопку */
            min-width: 100px; /* Минимальная ширина */
        }


        .action-button {
            background: rgba(255, 255, 255, 0.1);
            border: none;
            padding: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
            color: #fff;
            border-radius: 12px;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .action-button:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .likes-count {
            display: flex;
            align-items: center;
            gap: 5px;
            padding: 8px 12px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .likes-count:hover {
            background: rgba(255, 255, 255, 0.2);
        }
        .casino-logo {
            width: 60px;
            height: 60px;
            border-radius: 8px;
            background-color: #2d2d2d;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        }
        .casino-logo img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }
        .casino-name {
            font-size: 24px;
            font-weight: bold;
            color: #fff;
            margin: 0;
        }
        .info-panels-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 0;
            z-index: 1000;
        }

        .info-panels {
            position: relative;
        }

        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(2px);
            display: none;
            z-index: 999;
        }

        .overlay.active {
            display: block;
        }

        .info-panel {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%) translateY(-10px);
            background-color: #1E1E1E;
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
            opacity: 0;
            transition: opacity 0.3s ease, transform 0.3s ease;
            display: none;
            width: calc(100% - 40px);
            max-width: 600px;
            max-height: calc(100vh - 40px);
            overflow-y: auto;
            color: #fff;
            font-size: 16px;
            line-height: 1.5;
            background: #2a2a2a00;
            border-radius: 8px;
            margin: 10px 0;
            overflow: hidden;
            transform-origin: top;
            transform: scaleY(0);
            opacity: 0;
            transition: transform 0.3s ease, opacity 0.3s ease;
            z-index: 10000;
        }
        .info-panel.active {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
            display: block;
        }
        .panel-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin: -20px -20px 20px -20px;
            padding: 20px;
            background-color: rgba(255, 255, 255, 0.05);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .panel-header h3 {
            margin: 0;
            font-size: 20px;
            font-weight: 500;
            color: #fff;
        }

        .close-panel {
            background: none;
            border: none;
            color: rgba(255, 255, 255, 0.7);
            font-size: 28px;
            line-height: 1;
            cursor: pointer;
            padding: 0;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.2s ease;
        }

        .close-panel:hover {
            background-color: rgba(255, 255, 255, 0.1);
            color: #fff;
        }

        .number-updated {
            animation: numberPop 0.3s ease-out;
        }

        @keyframes numberPop {
            0% { transform: scale(1); }
            50% { transform: scale(1.2); }
            100% { transform: scale(1); }
        }

        .info-panel p {
            margin: 0;
            color: rgba(255, 255, 255, 0.9);
            padding: 0 20px 20px;
            font-size: 16px;
            line-height: 1.5;
        }
        .close-panel {
            background: none;
            border: none;
            color: #999;
            font-size: 24px;
            cursor: pointer;
            padding: 0;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .close-panel:hover {
            color: #fff;
        }
        .panel-content {
            padding: 16px;
            color: #999;
            line-height: 1.4;
        }
        .casino-actions {
            display: flex;
            gap: 10px;
            align-items: center;
            position: relative;
            z-index: 2;
        }
        .play-button {
            background-color: #1A73E8;
            color: white;
            border: none;
            border-radius: 8px;
            padding: 12px 24px;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            flex: 1;
        }
        .play-button:hover {
            background-color: #1557B0;
        }
        .action-button {
            background-color: #2A2A2A;
            border: none;
            border-radius: 8px;
            width: 48px;
            height: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background-color 0.2s ease;
        }

        .action-button:hover {
            background-color: #3A3A3A;
        }

        .action-button.show-bonus {
            position: relative;
        }

        .action-button.show-bonus:after {
            content: 'Бонус';
            position: absolute;
            bottom: -20px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 10px;
            white-space: nowrap;
            opacity: 0;
            transition: opacity 0.2s ease;
        }

        .info-panel {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background-color: #2A2A2A;
            border-radius: 12px;
            padding: 20px;
            width: 90%;
            max-width: 400px;
            z-index: 1000;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        }

        .info-panel .panel-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid #3A3A3A;
        }

        .info-panel .panel-header h3 {
            margin: 0;
            font-size: 18px;
            color: #fff;
        }

        .info-panel .close-panel {
            background: none;
            border: none;
            color: #fff;
            font-size: 24px;
            cursor: pointer;
            padding: 0;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0.7;
            transition: opacity 0.2s ease;
        }

        .info-panel .close-panel:hover {
            opacity: 1;
        }

        .info-panel .panel-content {
            font-size: 14px;
            line-height: 1.5;
            color: #e0e0e0;
            max-height: 60vh;
            overflow-y: auto;
            padding-right: 10px;
        }

        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.7);
            z-index: 999;
            display: none;
        }

        .action-button.show-bonus:hover:after {
            opacity: 1;
        }
        .likes-count {
            background-color: #2A2A2A;
            border-radius: 8px;
            padding: 12px;
            display: flex;
            align-items: center;
            gap: 5px;
            color: #999;
            cursor: pointer;
        }
        .likes-count.liked {
            color: #ff4081;
        }
        .casino {
            border-radius: 0;
            padding: 12px;
            margin: 0;
            width: 100%;
            box-sizing: border-box;
        }
        @media screen and (min-width: 768px) {
            .casino {
                border-radius: 12px;
                margin: 0 auto;
                max-width: 600px;
            }
        }
        
        .like-icon {
            position: fixed;
            pointer-events: none;
            animation: likeAnimation 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
            text-shadow: 0 0 5px rgba(255, 64, 129, 0.5);
            z-index: 1002;
        }

        @keyframes likeAnimation {
            0% {
                opacity: 1;
                transform: translate(var(--x), 0) scale(0.8);
            }
            20% {
                opacity: 0.9;
                transform: translate(calc(var(--x) * 1.2), calc(var(--y) * 0.3)) scale(1.2);
            }
            100% {
                opacity: 0;
                transform: translate(var(--x), var(--y)) scale(0.6);
            }
        }

        /* Стили для кнопки "Стать партнером" */
        .partner-section {
            margin-top: 30px;
            padding: 20px 0;
        }

        .partner-card {
            background-color: rgba(42, 42, 42, 0.1);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-radius: 24px;
            padding: 20px;
            position: relative;
            overflow: hidden;
        }

        .partner-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: radial-gradient(circle at center, transparent 0%, #1E1E1E 100%);
            z-index: 1;
        }

        .partner-content {
            position: relative;
            z-index: 2;
            text-align: center;
        }

        .partner-title {
            font-size: 22px;
            font-weight: 700;
            color: #fff;
            margin: 0 0 10px 0;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .partner-description {
            font-size: 16px;
            color: rgba(255, 255, 255, 0.8);
            margin: 0 0 20px 0;
            line-height: 1.5;
        }

        .partner-button {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            padding: 15px 20px;
            background: linear-gradient(45deg, #1A73E8, rgb(103, 11, 146));
            color: white;
            border: none;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            box-shadow: 0 4px 20px rgba(33, 2, 83, 0.3);
        }

        .partner-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 25px rgba(35, 2, 55, 0.4);
            background: linear-gradient(45deg, #1A73E8, rgb(56, 6, 142));
        }

        .partner-button svg {
            width: 24px;
            height: 24px;
        }

        /* Навигация в конце контента */
        .nav-header {
            position: relative;
            background: rgba(18, 18, 18, 0.95);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-top: 1px solid rgba(255, 255, 255, 0);
            padding: 2px 0;
            margin-top: -10px;
        }
        
        .nav-container {
            max-width: 600px;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            justify-content: space-between;
            gap: 15px;
        }
        
        .nav-link {
            flex: 1;
            text-align: center;
            padding: 12px 20px;
            background: rgba(255, 255, 255, 0.1);
            color: white;
            text-decoration: none;
            border-radius: 12px;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0);
        }
        
        .nav-link:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

        /* ───── 18+ & предупреждение ───── */
.risk-footer{
   position:relative;      /* можно заменить на fixed, если нужен «липкий» низ */
   background:rgba(18,18,18,.95);
   backdrop-filter:blur(10px);
   -webkit-backdrop-filter:blur(10px);
   border-top:1px solid rgba(255, 255, 255, 0);
   padding:20px 0;
   width:100%;
   box-sizing:border-box;
   z-index:5;              /* выше контента, но ниже поп-апов */
}

.risk-inner{
   max-width:600px;
   margin:0 auto;
   padding:0 20px;
   display:flex;
   align-items:center;
   gap:14px;
}

.age-badge{
   flex:0 0 56px;
   height:56px;
   border-radius:14px;
   background:#5714144e;     /* глубокий бордовый как на скрине */
   display:flex;
   align-items:center;
   justify-content:center;
   font-weight:700;
   font-size:22px;
   color:#ff4747;
   letter-spacing:1px;
}

.risk-text{
   flex:1;
   font-size:12px;
   line-height:1.45;
   color:#777;            /* мягко-серый, как на примере */
   user-select:none;
}

/* Чтобы текст не прилипал к краям на очень узких экранах */
@media(max-width:370px){
   .risk-text{font-size:12.5px}
   .age-badge{flex:0 0 48px;height:48px;font-size:18px;}
}

        /* Анимация для скрытия/показа карточек */
        .casino.hidden {
            display: none !important;
        }

        .casino.show {
            animation: fadeInUp 0.4s ease-out forwards;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Сообщение о пустом результате */
        .empty-message {
            text-align: center;
            padding: 40px 20px;
            color: rgba(255, 255, 255, 0.6);
            font-size: 16px;
        }

        .empty-message svg {
            width: 48px;
            height: 48px;
            margin-bottom: 16px;
            opacity: 0.5;
        }
.loading-spinner {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
}

.video-item {
    /* Стили для каждого видео, скопируйте из вашего текущего CSS */
    background-color: rgba(42, 42, 42, 0.1);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 10px;
}

/* Кнопка комментариев */
.action-button.show-comments {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #fff;
    border-radius: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto; /* Выравниваем вправо */
}

.action-button.show-comments:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Модалка для комментариев (расширяем существующие стили info-panel) */
#commentsModal {
    top: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
}

#commentsModal .panel-content textarea {
    resize: none;
    font-size: 14px;
}

#commentsModal .panel-content button {
    cursor: pointer;
    transition: background 0.2s ease;
}

#commentsModal .panel-content button:hover {
    background: #1557B0;
}

        /* Существующие стили для видео */
        .videos-section {
            max-width: 600px;
            margin: 30px auto 20px;
            padding: 0 15px;
        }

        .videos-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 20px;
            padding: 0 5px;
            flex-wrap: nowrap;
        }

        .videos-title {
            font-size: 22px;
            font-weight: 700;
            color: #fff;
            margin: 0;
            display: flex;
            align-items: center;
            gap: 10px;
            flex-shrink: 0
        }

        .videos-title svg {
            width: 24px;
            height: 24px;
            color: #1A73E8;
        }
.view-all-link {
            color: #1A73E8;
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            padding: 6px 12px;
            border-radius: 8px;
            transition: all 0.2s ease;
            border: 1px solid rgba(26, 115, 232, 0.3);
            white-space: nowrap;
            flex-shrink: 0;
        }

        .view-all-link:hover {
            background: rgba(26, 115, 232, 0.1);
            border-color: #1A73E8;
        }

        .videos-grid {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .video-card {
            background: rgba(42, 42, 42, 0.1);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-radius: 16px;
            overflow: hidden;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .video-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
            background: rgba(42, 42, 42, 0.15);
        }

        .video-thumbnail {
            position: relative;
            width: 100%;
            height: 200px;
            background: #1e1e1e;
            overflow: hidden;
            border-radius: 12px;
        }

        .video-preview {
            width: 100%;
            height: 100%;
            object-fit: cover;
            cursor: pointer;
            transition: transform 0.3s ease;
        }

        .video-preview:hover {
            transform: scale(1.05);
        }

        .video-thumbnail img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .video-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(45deg, rgba(26, 115, 232, 0.1), rgba(0, 0, 0, 0.3));
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .video-card:hover .video-overlay {
            opacity: 1;
        }

        .play-icon {
            width: 60px;
            height: 60px;
            background: rgba(255, 255, 255, 0.9);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transform: scale(0.8);
            transition: transform 0.3s ease;
        }

        .video-card:hover .play-icon {
            transform: scale(1);
        }

        .play-icon svg {
            width: 24px;
            height: 24px;
            color: #1A73E8;
            margin-left: 2px;
        }

        .video-duration {
            position: absolute;
            bottom: 8px;
            right: 8px;
            background: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 500;
        }

        .video-content {
            padding: 15px;
        }

        .video-title {
            font-size: 16px;
            font-weight: 600;
            color: #fff;
            margin: 0 0 8px 0;
            line-height: 1.3;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .video-description {
            font-size: 10px;
            color: rgba(255, 255, 255, 0.7);
            line-height: 1.4;
            margin: 0 0 10px 0;
            display: -webkit-box;
         
        }

        .video-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 12px;
            color: rgba(255, 255, 255, 0.5);
        }

        .video-date {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .video-views {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        /* Модальное окно для видеоплеера */
        .video-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.95);
            z-index: 2000;
            display: none;
            align-items: center;
            justify-content: center;
        }

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

        .video-player-container {
            position: relative;
            width: 90%;
            max-width: 900px;
            max-height: 90%;
            background: #000;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
        }

        .video-player {
            width: 100%;
            height: auto;
            display: block;
            background: #000;
        }

        .video-header {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, transparent 100%);
            padding: 20px;
            z-index: 10;
            display: flex;
            justify-content: space-between;
            align-items: center;
            opacity: 1;
            transition: opacity 0.3s ease;
        }

         .video-title-modal {
            color: white;
            font-size: 18px;
            font-weight: 600;
            margin: 0;
            max-width: 80%;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .video-close {
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: white;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            font-size: 18px;
        }

        .video-close:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: scale(1.1);
        }

        .video-controls {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, transparent 100%);
            padding: 20px;
            z-index: 10;
            opacity: 1;
            transition: opacity 0.3s ease;
        }

        .video-progress {
            width: 100%;
            height: 4px;
            background: rgba(255, 255, 255, 0.3);
            border-radius: 2px;
            margin-bottom: 15px;
            cursor: pointer;
            position: relative;
        }

        .video-progress-filled {
            height: 100%;
            background: #1A73E8;
            border-radius: 2px;
            width: 0%;
            transition: width 0.1s ease;
        }

        .video-buttons {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .video-control-btn {
            background: none;
            border: none;
            color: white;
            cursor: pointer;
            padding: 8px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        .video-control-btn:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .video-time {
            color: white;
            font-size: 14px;
            font-weight: 500;
            margin-left: auto;
        }

        /* Скрытие контролов при бездействии */
        .video-player-container.hide-controls .video-header,
        .video-player-container.hide-controls .video-controls {
            opacity: 0;
            pointer-events: none;
        }

        /* Стили для пагинации */
        .load-more-container {
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 20px 0;
            padding: 0 0px;
        }

        .load-more-btn {
            background: linear-gradient(135deg, hsla(240, 1%, 20%, 0.583) 0%, #3d3e3f66 100%);
            border: none;
            border-radius: 10px;
            color: white;
            font-size: 12px;
            font-weight: 600;
            padding: 5px 10px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: -10px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.16);
            position: relative;
            overflow: hidden;
            min-width: 40px;
            justify-content: center;
            top: -45px; /* Поднимает кнопку на 20 пикселей выше */
        }

        .load-more-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(51, 51, 51, 0.4);
            background: linear-gradient(135deg, #161617 0%, #2b2c2c 100%);
        }

        .load-more-btn:active {
            transform: translateY(0);
            box-shadow: 0 4px 15px rgba(14, 14, 15, 0.15);
        }

        .load-more-btn.loading {
            pointer-events: none;
            opacity: 0.8;
        }

        .load-more-btn .btn-text {
            transition: opacity 0.3s ease;
        }

        .load-more-btn.loading .btn-text {
            opacity: 0.7;
        }

        .load-more-spinner {
            display: none;
            width: 20px;
            height: 20px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-top: 2px solid white;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        .load-more-btn.loading .load-more-spinner {
            display: block;
        }

        .load-more-btn.loading .load-more-icon {
            display: none;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .load-more-icon {
            width: 20px;
            height: 20px;
            transition: transform 0.3s ease;
        }

        .load-more-btn:hover .load-more-icon {
            transform: translateY(2px);
        }

        /* Стили для скрытых казино */
        .casino.hidden-pagination {
            display: none;
        }

        .casino.show-animation {
            animation: slideInUp 0.5s ease-out forwards;
        }

        @keyframes slideInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Индикатор количества */
        .casinos-counter {
            text-align: center;
            margin: 20px 0;
            color: rgba(255, 255, 255, 0.6);
            font-size: 14px;
        }

        .casinos-counter .counter-highlight {
            color: #1A73E8;
            font-weight: 600;
        }

        /* Адаптив для мобильных */
        @media (max-width: 480px) {
            .videos-header {
           
                align-items: flex-start;
                gap: 10px;
            }

            .video-thumbnail {
                height: 180px;
            }

            .videos-title {
                font-size: 16px;
            }

            .video-player-container {
                width: 95%;
                max-height: 95%;
            }

            .video-header {
                padding: 15px;
            }

            .video-title-modal {
                font-size: 16px;
            }

            .video-controls {
                padding: 15px;
            }

            .video-buttons {
                gap: 10px;
            }

            .load-more-btn {
                font-size: 14px;
                padding: 12px 25px;
                min-width: 160px;
            }

            .load-more-container {
                margin: 30px 0;
            }
        }

        /* Дополнительные стили для видео */
        .video-size {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 12px;
            color: rgba(255, 255, 255, 0.5);
        }

        .video-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
            font-size: 12px;
            color: rgba(255, 255, 255, 0.5);
            flex-wrap: wrap;
        }

        .video-title {
            font-size: 15px;
            font-weight: 600;
            color: #fff;
            margin: 0 0 8px 0;
            line-height: 1.3;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
            word-break: break-word;
        }

        .video-description {
            font-size: 13px;
            color: rgba(255, 255, 255, 0.7);
            line-height: 1.4;
            margin: 0 0 10px 0;
            display: -webkit-box;
           
            word-break: break-word;
        }

        @media (max-width: 480px) {
            .video-meta {
               
            
                align-items: flex-start;
                gap: 5px;
            }
            
            .video-title {
                font-size: 14px;
                -webkit-line-clamp: 2;
            }
            
            .video-description {
                font-size: 8px;
                -webkit-line-clamp: 3;
            }
            
        }

        .video-player-container{
    /* занимаем нужное место ещё до загрузки метаданных */
    aspect-ratio: 16/9;          /* можно заменить на 4/3 или другое соотношение */
    width: 90vw;                 /* ширина от экрана */
    max-width: 900px;            /* как у вас и было */
    height: auto;                /* высоту теперь контролирует aspect-ratio */
}

/* чтобы само видео сразу растягивалось на весь контейнер */
.video-player{
    width: 100%;
    height: 100%;
    object-fit: contain;         /* без «пульсации» по высоте */
}

        .action-button.show-comments {
            background: rgba(255, 255, 255, 0.1);
            border: none;
            padding: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
            color: #fff;
            border-radius: 12px;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-left: auto; /* Выравниваем вправо */
            z-index: 10000;
        }

        .action-button.show-comments:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        /* Модалка для комментариев (расширяем существующие стили info-panel) */
        #commentsModal {
            top: 50%;
            transform: translate(-50%, -50%);
            width: 90%;
            max-width: 400px;
        }

        #commentsModal .panel-content textarea {
            resize: none;
            font-size: 14px;
        }

        #commentsModal .panel-content button {
            cursor: pointer;
            transition: background 0.2s ease;
        }

        #commentsModal .panel-content button:hover {
            background: #1557B0;
        }

        .comments-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
}
.comments-list p {
    margin: 8px 0;
    padding: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    font-size: 14px;
}
.comments-list:empty::before {
    content: 'Нет комментариев';
    color: #888;
    display: block;
    text-align: center;
}

.comment-item{
    display:flex; gap:10px; margin:8px 0;
}
.comment-avatar{
    width:32px; height:32px; border-radius:50%; flex-shrink:0;
}
.comment-body{
    background:rgba(255,255,255,0.05); padding:6px 10px; border-radius:6px;
}
.comment-author{ font-weight:600; font-size:14px; }
.comment-date  { font-size:12px; opacity:.6; }
#commentText {
        width: 100%;
        /* гарантируем, что учтутся padding и border */
        box-sizing: border-box;
        display: block;     /* перестраховка, чтобы не оставалось лишних inline-отступов */
    }


      /* Уменьшаем имя автора */
    .comment-author {
        font-size: 8px;      /* было 14px — сделаем поменьше */
        line-height: 1.2;     /* чтобы текст не «прыгнул» */
        font-weight: 500;     /* можно оставить 600, если нужен акцент */
    }

    /* БОНУСНЫЕ БАННЕРЫ — 3 КАРТИНКИ */
.bonus-banners-section {
    margin: 30px 0 20px;
    padding: 0 15px;
}

.bonus-banners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 100%;
}

.bonus-banner-card {
    display: block;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.bonus-banner-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.6);
}

.bonus-image {
    height: 160px;
    overflow: hidden;
}

.bonus-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.bonus-banner-card:hover .bonus-image img {
    transform: scale(1.08);
}

.bonus-content {
    padding: 16px;
    text-align: center;
    color: white;
}

.bonus-content h3 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.bonus-content p {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    opacity: 0.9;
}

/* Мобильная версия */
@media (max-width: 768px) {
    .bonus-banners-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .bonus-image {
        height: 140px;
    }
    .bonus-content h3 {
        font-size: 17px;
    }
}

.bonus-block {
    display: flex;
    width: 100%;
    height: 100px;  /* Уменьшил высоту до 100px для миниатюрности */
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background-color: #f8f9fa;  /* Лёгкий фон для выделения */
}

.bonus-left {
    width: 50%;
    height: 100%;
    padding: 2px;  /* Маленький отступ для "рамки" */
}

.bonus-right {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 2px;  /* Отступ между правыми изображениями */
}

.bonus-right-top,
.bonus-right-bottom {
    height: 50%;
    width: 100%;
    padding: 2px;
}

.bonus-img {
    width: 100%;
    height: 100%;
    max-width: 100px;  /* Ограничение максимальной ширины */
    max-height: 100px; /* Ограничение максимальной высоты */
    object-fit: cover;  /* Заполняет контейнер без искажений, обрезая если нужно */
    display: block;
    border-radius: 4px;  /* Лёгкое скругление углов изображений */
    cursor: pointer;  /* Чтобы было понятно, что кликабельно (если добавишь ссылки) */
    transition: transform 0.2s ease;  /* Плавный эффект при наведении */
}

.bonus-img:hover {
    transform: scale(1.05);  /* Лёгкое увеличение при hover для интерактива */
}

/* Адаптив для мобильных: ещё меньше, в столбик */
@media (max-width: 768px) {
    .bonus-block {
        flex-direction: column;
        height: auto;  /* Авто-высота */
        gap: 5px;
    }
    .bonus-left,
    .bonus-right {
        width: 100%;
        height: 60px;  /* Ещё меньше на мобилках */
    }
    .bonus-right {
        flex-direction: row;
    }
    .bonus-right-top,
    .bonus-right-bottom {
        height: 100%;
        width: 50%;
    }
    .bonus-img {
        max-width: 60px;
        max-height: 60px;
    }
}

 .bonus-block {
    display: flex;
    width: 100%;
    height: 100px;  /* Уменьшил высоту до 100px для миниатюрности */
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background-color: #f8f9fa;  /* Лёгкий фон для выделения */
}

.bonus-left {
    width: 50%;
    height: 100%;
    padding: 2px;  /* Маленький отступ для "рамки" */
}

.bonus-right {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 2px;  /* Отступ между правыми изображениями */
}

.bonus-right-top,
.bonus-right-bottom {
    height: 50%;
    width: 100%;
    padding: 2px;
}

.bonus-img {
    width: 100%;
    height: 100%;
    max-width: 100px;  /* Ограничение максимальной ширины */
    max-height: 100px; /* Ограничение максимальной высоты */
    object-fit: cover;  /* Заполняет контейнер без искажений, обрезая если нужно */
    display: block;
    border-radius: 4px;  /* Лёгкое скругление углов изображений */
    cursor: pointer;  /* Чтобы было понятно, что кликабельно (если добавишь ссылки) */
    transition: transform 0.2s ease;  /* Плавный эффект при наведении */
}

.bonus-img:hover {
    transform: scale(1.05);  /* Лёгкое увеличение при hover для интерактива */
}

/* Адаптив для мобильных: ещё меньше, в столбик */
@media (max-width: 768px) {
    .bonus-block {
        flex-direction: column;
        height: auto;  /* Авто-высота */
        gap: 5px;
    }
    .bonus-left,
    .bonus-right {
        width: 100%;
        height: 60px;  /* Ещё меньше на мобилках */
    }
    .bonus-right {
        flex-direction: row;
    }
    .bonus-right-top,
    .bonus-right-bottom {
        height: 100%;
        width: 50%;
    }
    .bonus-img {
        max-width: 60px;
        max-height: 60px;
    }
}

/* Анимация появления казино: fade-in + slide-up с stagger */
.casino {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.casino.hidden-pagination {
  opacity: 0;
  transform: translateY(20px); /* Скрыто ниже, чтобы slide-up выглядело круто */
}

/* Класс для показа: анимированное появление */
.casino.show-animation {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition-delay: 0s; /* Будет переопределяться JS для stagger */
}

/* Сдвиг кнопки ниже: добавь margin-top */
.load-more-container {
  margin-top: 40px; /* Чуть ниже — подгони под дизайн, можно 30-50px */
  text-align: center;
  transition: opacity 0.3s ease-out; /* Для fade-out исчезновения */
}

.load-more-container.hidden {
  opacity: 0;
  height: 0;
  margin: 0;
  overflow: hidden;
}

/* Спиннер и иконка для кнопки (если хочешь улучшить) */
.load-more-btn.loading .load-more-icon {
  opacity: 0.5;
  animation: spin 1s linear infinite;
}

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


