body {
    font-family: 'Inter', sans-serif;
    background-color: #121212;
    color: #E0E0E0;
}
.bebas-font {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 500; /* Bold */
    letter-spacing: 0.5px;
    font-size: 1.5em; /* Увеличенный размер */
}
.category {
    display: inline-block;
    background-color: #1a0000;
    color: #ff4d4d;
    border: 2px solid #4d0000;
    border-radius: 9999px;
    padding: 6px 16px;
    font-family: sans-serif;
    font-weight: 600;
    font-size: 14px;
    box-shadow: inset 0 0 10px rgba(255, 0, 0, 0.3);
    user-select: none;
}
.carousel-container {
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}
.carousel-container::-webkit-scrollbar {
    display: none;
}
.carousel-item {
    width: 100%;
    flex-shrink: 0;
    scroll-snap-align: center;
}
@media (min-width: 768px) {
    .carousel-item {
        width: calc(50% - 1rem);
    }
}
@media (min-width: 1024px) {
    .carousel-item {
        width: calc(33.333333% - 1.333333rem);
    }
}
.carousel-button {
    transition: all 0.3s ease;
}
.contact-text {
    text-align: center;
    margin-bottom: 40px;
}
.contact-text h2 {
    font-size: 28px;
    color: white;
    margin-bottom: 10px;
}
.contact-text p {
    font-size: 18px;
    color: #ccc;
}
.contact-form,
.contact-info {
    background-color: #1d1d1d;
    padding: 20px;
    border-radius: 12px;
    color: white;
}
.footer-text {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: bold;
    font-size: 18px;
    color: #888;
    text-align: center;
    margin-top: 30px;
    margin-bottom: 10px;
}
.glow {
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.8), 0 0 10px rgba(255, 215, 0, 0.5);
}

/* СТИЛИ ДЛЯ КНОПОК В ПРОМО-БАННЕРЕ */
.promo-banner .buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.promo-banner .filter-button {
    padding: 12px 24px;
    font-size: 16px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.promo-banner .filter-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.promo-banner .filter-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Адаптивность для мобильных */
@media (max-width: 767px) {
    .promo-banner .buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .promo-banner .filter-button {
        width: 100%;
        max-width: 280px;
    }
}

.admin-panel {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    display: none;
}
.admin-visible .admin-panel {
     display: block !important; /* Принудительно показываем когда авторизованы */
}
.admin-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ff4d4d;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
}
html {
    scroll-behavior: smooth;
}
.avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #303030;
    border-radius: 50%;
    border: 2px solid #ff4d4d;
    color: white;
    font-weight: bold;
    font-size: 18px;
}
.rating-option {
    display: inline-block;
    margin-right: 10px;
    cursor: pointer;
}
.rating-option input[type="radio"] {
    display: none;
}
.rating-option label {
    padding: 5px 10px;
    background: #2d2d2d;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.rating-option input[type="radio"]:checked + label {
    background: #ff4d4d;
}
.avatar-preview {
    max-width: 100%;
    height: auto;  /* Обновлено: авто-высота */
    max-height: none;  /* Убрано ограничение */
    width: 100%;
    object-fit: contain;
    border-radius: 8px;
    margin-top: 10px;
    display: block;
}

/* ОБНОВЛЕННЫЕ СТИЛИ ДЛЯ ПРОМО-БАННЕРА */
.promo-banner {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #000;
    color: white;
}

.promo-content {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.glitch-title {
    font-size: 5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 2rem;
    position: relative;
    text-shadow: 
        3px 3px 0 #ff0000, 
        -3px -3px 0 #000000;
    animation: glitch 2s infinite;
    font-family: 'Bebas Neue', sans-serif;
}

@keyframes glitch {
    0% { text-shadow: 3px 3px 0 #ff0000, -3px -3px 0 #000000; }
    10% { text-shadow: -3px -3px 0 #ff0000, 3px 3px 0 #000000; }
    20% { text-shadow: 3px -3px 0 #ff0000, -3px 3px 0 #000000; }
    30% { text-shadow: -3px 3px 0 #ff0000, 3px -3px 0 #000000; }
    40% { text-shadow: 3px 3px 0 #ff0000, -3px -3px 0 #000000; }
    100% { text-shadow: 3px 3px 0 #ff0000, -3px -3px 0 #000000; }
}

.promo-subtitle {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    line-height: 1.4;
}

.promo-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.promo-btn {
    padding: 18px 40px;
    font-size: 1.4rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    font-family: 'Bebas Neue', sans-serif;
}

.promo-btn-primary {
    background: linear-gradient(45deg, #ff0000, #8b0000);
    color: white;
    opacity: 0.7; /* Неактивная кнопка */
    cursor: not-allowed;
}

.promo-btn-secondary {
    background: rgba(0,0,0,0.3);
    color: white;
    border: 2px solid #ff0000;
}

.promo-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.promo-btn:active {
    transform: translateY(0);
}

/* СТИЛИ ДЛЯ ФОНОВОГО СЛАЙД-ШОУ */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

/* СТИЛИ ДЛЯ НОВОГО ПРОМО-БАННЕРА */
.promo-banner .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.promo-banner .content {
  position: relative;
  z-index: 3;
  max-width: 600px;
}

.promo-banner .recommended {
  font-size: 14px;
  color: #ffd700; /* Изменен цвет на золотой */
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.8), 0 0 10px rgba(255, 215, 0, 0.5); /* Добавлено свечение */
  animation: glowPulse 2s infinite alternate; /* Добавлена анимация пульсации */
}

@keyframes glowPulse {
  from {
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.8), 0 0 10px rgba(255, 215, 0, 0.5);
  }
  to {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.9), 0 0 20px rgba(255, 215, 0, 0.7), 0 0 30px rgba(255, 215, 0, 0.6);
  }
}

.promo-banner .recommended::before {
  content: "★ ";
  margin-right: 5px;
}

.promo-banner h1 {
  font-size: 40px;
  line-height: 1.2;
  margin-bottom: 15px;
  font-family: 'Bebas Neue', sans-serif;
}

.promo-banner p {
  font-size: 16px;
  margin-bottom: 25px;
  color: #ccc;
}

.promo-banner .buttons {
  display: flex;
  gap: 15px;
}

.promo-banner .btn {
  background: #e50914;
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.promo-banner .btn:hover {
  background: #b20710;
}

.promo-banner .btn.secondary {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid white;
}

.promo-banner .btn.secondary:hover {
  background: rgba(255, 255, 255, 0.3);
}

.promo-banner .btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 767px) {
  .promo-banner h1 {
    font-size: 32px;
  }
  
  .promo-banner p {
    font-size: 14px;
  }
  
  .promo-banner .buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .promo-banner .btn {
    width: 100%;
    padding: 10px 15px;
  }
}

.video-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1);
    transition: 
        opacity 1.5s ease-in-out,
        transform 10s linear;
}

.video-slide.active {
    opacity: 0.7;
    transform: scale(1.15);
}

.portfolio-stats {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.portfolio-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); /* твоя сетка */
gap: 16px; /* или сколько нужно */
justify-content: center; /* <-- выравнивание по центру */
max-width: 1600px; /* или другое ограничение ширины */
margin: 0 auto; /* центрируем весь блок */
}

.portfolio-card {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 400px;  /* Добавлено: минимальная высота карточки */
}

.portfolio-header {
    position: relative;
    height: auto;  /* Обновлено: авто-высота вместо фиксированной */
    min-height: 200px;  /* Минимальная для десктопа */
    overflow: hidden;
    display: flex;  /* Добавлено: flex для центрирования */
    align-items: center;
    justify-content: center;
}

.portfolio-iframe {
    width: 100%;
    height: auto;  /* Обновлено: авто */
    aspect-ratio: 16 / 9;  /* Добавлено: пропорции для видео */
    object-fit: cover;
    border: none;
    border-radius: 12px 12px 0 0;
    display: block;
}

.portfolio-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
    line-height: 1.2;
    cursor: pointer; /* Добавлен курсор-указатель */
}

.portfolio-subtitle {
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
}

.portfolio-channel {
    font-size: 1rem;
    font-weight: 600;
    color: #ff4d4d;
    margin-bottom: 8px;
}

.portfolio-description {
    font-size: 0.95rem;
    color: #aaa;
    margin-bottom: 15px;
    line-height: 1.5;
    flex-grow: 1;
}

.portfolio-footer {
display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 10px; /* Уменьшенный gap для меньших пробелов */
    width: 100%;
}

.portfolio-rating {
font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0; /* Не сжимается */
}

.portfolio-authors-wrapper {
flex: 0 1 auto; /* Не растягивается, но может сжиматься */
    min-width: 0;
    display: flex;
    justify-content: flex-end; /* Правый край для авторов */
    text-align: right; /* Дополнительно: выравнивание текста по правому краю */
    margin-left: auto; /* Толкает authors к правому краю без растяжки */
}

.portfolio-authors {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    width: 100%;
    max-width: 100%;
}
/* УДАЛЕНА СЕКЦИЯ .portfolio-views */

.portfolio-category {
    display: inline-block;
    background-color: #1a0000;
    color: #ff6b6b;
    border: 1px solid #4d0000;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 0.85rem;
    font-weight: 500;
}

.portfolio-category {
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    color: #ff4d4d;
    font-weight: 600;
}

/* Новые стили для слайд-шоу */
.about-slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.05);
    transition: 
        opacity 1.5s ease-in-out,
        transform 10s linear;
}

.slide.active {
    opacity: 1;
    transform: scale(1.15);
}

.photo-thumb {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.photo-thumb:hover {
    transform: scale(1.05);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

/* Стили для адаптивной шапки */
.nav-links {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Стили для тегов авторов */
.author-tag {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 4px;
    background-color: rgba(255, 0, 0, 0.2);
    color: #ff6b6b;
    border: 1px solid #5a1a1a;
    text-align: right;
    white-space: normal;        /* перенос строк */
    overflow-wrap: anywhere;    /* перенос даже длинных слов */
    word-break: break-word;     /* запасной вариант */
    hyphens: auto;              /* мягкие дефисы */
    max-width: 100%;
}

          /*  .portfolio-authors {
                display: flex;
                flex-wrap: wrap;
                gap: 8px;
                justify-content: flex-end;
            }

/* Стили для карточек портфолио */
.portfolio-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    opacity: 0.8;
    transition: opacity 0.3s ease, background 0.3s ease;
    z-index: 2;  /* Добавлено: поверх превью */
}

.portfolio-thumb:hover .play-icon {
    opacity: 1;
    background: rgba(255, 0, 0, 0.8);
}

.portfolio-thumb-container {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.portfolio-thumb-img {
    width: 100%;
    height: auto;  /* Обновлено: авто */
    max-height: none;
    object-fit: cover;  /* Или contain */
    border-radius: 12px 12px 0 0;
    display: block;
}

.portfolio-thumb-container iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;  /* Добавлено для iframe */
    border: none;
}

.thumbnail-preview {
    max-width: 100%;
    height: auto;  /* Обновлено */
    max-height: none;
    width: 100%;
    object-fit: contain;
    border-radius: 8px;
    margin-top: 10px;
    display: block;
}

/* СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА АВТОРИЗАЦИИ TELEGRAM */
#telegramAuthModal {
    transition: opacity 0.3s ease;
    z-index: 10000; /* Убедимся, что модальное окно поверх всех элементов */
}

#telegramAuthModal.hidden {
    opacity: 0;
    pointer-events: none;
}

#telegramAuthModal:not(.hidden) {
    opacity: 1;
    display: flex;
}

/* Стили для кнопки авторизации Telegram */
.telegram-login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #0088cc;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.telegram-login-button:hover {
    background-color: #006da0;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.telegram-login-button:active {
    transform: translateY(0);
}

/* Стили для кнопки выхода */
.logout-btn {
    transition: all 0.3s ease;
    margin-left: auto;
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ОБНОВЛЕНИЕ: Стили для управления видимостью DOTA 2 ссылки */
.dota-link {
    transition: opacity 0.3s, max-width 0.3s, padding 0.3s;
    white-space: nowrap;
    overflow: hidden;
    max-width: 200px;
    opacity: 1;
    padding-right: 0;
}

.dota-link.hidden {
    max-width: 0;
    opacity: 0;
    padding: 0;
}

.separator {
    transition: opacity 0.3s;
}

.separator.hidden {
    opacity: 0;
}

/* Загрузчик */
.loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Новые стили для выпадающих списков */
.datalist-container {
    position: relative;
}

.datalist-container input {
    width: 100%;
}

.author-input, .category-input {
    position: relative;
}

.author-input::after, .category-input::after {
    content: '\f0d7';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
    pointer-events: none;
}

/* Добавленный стиль для якоря портфолио */
#portfolio-section {
    scroll-margin-top: 100px;
}

/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ ===== */
/* Шапка для мобильных */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: auto;
    z-index: 100;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99;
    padding-top: 70px;
    overflow-y: auto;
}

.mobile-menu.open {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    border-bottom: 1px solid #333;
}

.mobile-menu a:hover {
    background: #ff4d4d;
}

.mobile-menu .logo-section {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
}

/* Адаптация для админ-панели */
.admin-tabs-mobile {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.admin-tab-mobile {
    flex: 1 0 calc(50% - 5px);
    text-align: center;
    padding: 8px 5px;
    font-size: 0.85rem;
}

@media (min-width: 1920px) {
.portfolio-grid {
   grid-template-columns: repeat(5, minmax(350px, 1fr));
}
}

/* Общие адаптации */
@media (max-width: 767px) {
    /* Шапка */
    header.bg-black {
        padding: 0.75rem 1rem !important;
    }
    
    .logo-section a.text-red-600 {
        font-size: 1.2rem;
    }
    
    .mobile-menu-btn {
        font-size: 1.2rem;
        padding: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .logo-section .flex:not(.mobile-visible) {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    /* Скрываем навигационные ссылки в мобильной версии */
    .nav-links {
        display: none !important;
    }
    
    /* Промо-баннер */
    .glitch-title {
        font-size: 2.5rem;
    }
    
    .promo-subtitle {
        font-size: 1.2rem;
    }
    
    .promo-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .promo-btn {
        padding: 14px 25px;
        font-size: 1.1rem;
    }
    
    /* Портфолио - ОБНОВЛЕНО ДЛЯ АДАПТИВНОСТИ */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .portfolio-header {
        height: auto !important;  /* Принудительно авто */
        min-height: 180px;  /* Минимальная для мобильных */
    }
    
    .portfolio-thumb-container,
    .portfolio-thumb-img,
    .portfolio-iframe {
        aspect-ratio: 16 / 9;  /* Сохраняем пропорции */
        object-fit: cover;  /* Или contain */
    }
    
    .portfolio-title {
        font-size: 1.4rem;
    }
    
    .portfolio-subtitle {
        font-size: 1.2rem;
    }
    
    /* Админ-панель */
    .admin-panel {
  display: none; /* По умолчанию скрыта */
    }
    
    /* Скрываем десктопные вкладки в мобильной версии */
    .admin-tabs {
        display: none !important;
    }

.promo-title {
font-family: 'Russo One', 'Bebas Neue', sans-serif;
font-weight: 700;
}

    .admin-tabs-mobile {
        display: flex;
    }
    
    .admin-tab-content table {
        font-size: 0.8rem;
    }
    
    .admin-tab-content th, 
    .admin-tab-content td {
        padding: 8px 5px;
    }
    
    .grid.grid-cols-1.md\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .datalist-container {
        margin-bottom: 10px;
    }
    
    /* Секция "Обо мне" */
    .about-slider {
        height: 300px;
    }
    
    /* Секция "Контакты" */
    .contact-form, 
    .contact-info {
        padding: 15px;
    }
    
    .grid.grid-cols-1.md\:grid-cols-2 {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Карусель отзывов */
    .carousel-button {
        display: none;
    }
    
    /* Форма заказа */
    .grid.grid-cols-1.md\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    /* Фильтры портфолио */
    #categoryFiltersContainer, 
    #authorsFilter {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
        margin-bottom: 15px;
        -webkit-overflow-scrolling: touch;
    }
    
    .filter-button, 
    .filter-author-btn {
        flex-shrink: 0;
        margin: 0 5px 5px 0;
    }
    
    /* Тексты */
    h1, h2, h3 {
        font-size: 1.8rem !important;
    }
    
    .text-4xl {
        font-size: 2rem !important;
    }
    
    .text-3xl {
        font-size: 1.7rem !important;
    }
    
    .text-2xl {
        font-size: 1.5rem !important;
    }
    
    .text-xl {
        font-size: 1.3rem !important;
    }
    
    /* НОВЫЕ СТИЛИ ДЛЯ МОБИЛЬНОЙ ШАПКИ */
    /* Скрываем все элементы в лого-секции кроме самого логотипа */
    .logo-section .flex:not(.logo-text) {
        display: none;
    }
    
    /* Делаем логотип кликабельным и выделяем */
    .logo-text {
        font-size: 1.2rem;
        font-weight: bold;
        color: #ff4d4d;
        cursor: pointer;
        transition: transform 0.3s ease;
    }
    
    .logo-text:hover {
        transform: scale(1.05);
    }
    
    /* Центрируем элементы в шапке */
    header.bg-black {
        justify-content: space-between;
    }
    
    /* Скрываем разделитель и ссылку Dota 2 */
    .separator, .dota-link {
        display: none;
    }
}

@media (max-width: 480px) {
    /* Ещё более мелкие экраны */
    header.bg-black {
        padding: 0.5rem 0.75rem !important;
    }
    
    .logo-section a.text-red-600 {
        font-size: 1.1rem;
    }
    
    .glitch-title {
        font-size: 2rem;
    }
    
    .promo-subtitle {
        font-size: 1rem;
    }
    
    /* Портфолио - ОБНОВЛЕНО */
    .portfolio-header {
        height: auto !important;
        min-height: 150px;  /* Минимальная для маленьких экранов */
    }
    
    .portfolio-thumb-container,
    .portfolio-thumb-img {
        min-height: 120px;
    }
    
    .portfolio-title {
        font-size: 1.2rem;
    }
    
    .portfolio-subtitle {
        font-size: 1rem;
    }
    
    .portfolio-description {
        font-size: 0.85rem;
    }
    
    .about-slider {
        height: 250px;
    }
    
    .admin-tab-mobile {
        font-size: 0.75rem;
        padding: 6px 3px;
    }
    
    .admin-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
        bottom: 15px;
        right: 15px;
    }
}

/* НОВЫЕ СТИЛИ ДЛЯ МОБИЛЬНОГО МЕНЮ */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #333;
    background: #1a1a1a;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff4d4d;
}

.mobile-menu-items {
    padding: 20px 0;
}

.mobile-menu-item {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    border-bottom: 1px solid #333;
    transition: background 0.3s;
}

.mobile-menu-item:hover {
    background: #ff4d4d;
}

/* НОВЫЕ СТИЛИ ДЛЯ МОБИЛЬНЫХ СТРЕЛОК */
.mobile-carousel-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.mobile-carousel-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
}

.mobile-carousel-button:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Стили для анимированной мышки */
.mouse-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid #fff;
    border-radius: 12px;
    position: relative;
    margin: 0 auto;
}

.mouse-wheel {
    width: 4px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

.author-link {
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
    text-shadow: 0 0 5px currentColor, 0 0 10px currentColor;
    transition: all 0.3s ease;
}
.author-link:hover {
    text-shadow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 30px currentColor;
    transform: scale(1.05);
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(16px);
    }
}

.mouse-arrow {
    margin-top: 10px;
    text-align: center;
    animation: pulse 2s infinite;
    font-size: 16px;
}

@keyframes pulse {
    0%, 100% { 
        opacity: 0.6;
        transform: translateY(0);
    }
    50% { 
        opacity: 1;
        transform: translateY(5px);
    }
}

.mouse-scroll.hidden {
    opacity: 0;
    pointer-events: none;
}

@media (min-width: 768px) {
    .mobile-carousel-buttons {
        display: none;
    }
    
    /* Показываем десктопные вкладки только на больших экранах */
    .admin-tabs {
        display: flex;
    }
    
    .admin-tabs-mobile {
        display: none;
    }
}

.section-divider::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(28px) saturate(110%);
  -webkit-backdrop-filter: blur(28px) saturate(110%);
  /* Мягкое затухание краёв, чтобы не было цветных полос */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
  pointer-events: none;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Адаптация модального окна авторизации для мобильных */
@media (max-width: 767px) {
    #telegramAuthModal {
        padding: 20px;
    }
    
    #telegramAuthModal .bg-zinc-900 {
        padding: 20px;
    }
    
    .telegram-login-button {
        width: 100%;
        padding: 14px 20px;
        font-size: 14px;
    }
}

/* Дополнительные стили для улучшения UX */
#telegramAuthModal .bg-zinc-900 {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
}

#closeTelegramAuthModal {
    transition: all 0.3s ease;
}

#closeTelegramAuthModal:hover {
    background: #5a5a5a;
}

.hidden {
    display: none !important;
}



#telegramAuthModal.fade-out {
  opacity: 0;
  transition: opacity 0.3s ease;
}
#telegramAuthModal {
  transition: opacity 0.3s ease;
}


#telegramAuthModal {
  opacity: 0;
  transition: opacity 0.3s ease;
}

#telegramAuthModal.active {
  opacity: 1;
  display: flex !important; /* чтобы всегда отображалась при показе */
}

#telegramAuthModal.fade-out {
  opacity: 0;
}

/* Сохраняем все существующие стили из вашего style.css */

/* ДОБАВЛЯЕМ НОВЫЕ СТИЛИ ДЛЯ АДМИН-ПАНЕЛИ В КОНЕЦ ФАЙЛА */

/* admin.css - Улучшенная версия */
.admin-panel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100%;
  background: #1a1a1a;
  border-left: 2px solid #ff3333;
  transition: right 0.3s ease-in-out;
  z-index: 10000;
  padding: 0;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  color: #f0f0f0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.admin-visible .admin-panel {
  right: 0;
}

.admin-panel-header {
  background: #222;
  padding: 15px 20px;
  border-bottom: 1px solid #ff3333;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-panel-title {
  margin: 0;
  color: #fff;
  font-size: 1.2rem;
}

.admin-panel-content {
  padding: 20px;
  overflow-y: auto;
  flex-grow: 1;
}

.admin-panel-section {
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #333;
}

.admin-panel-section h3 {
  color: #ff3333;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1rem;
}

/* Стили для сетки фотографий в админке */
.admin-panel .photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 15px;
}

.admin-panel .photo-item {
  position: relative;
  transition: transform 0.2s;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.admin-panel .photo-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.admin-panel .photo-item:hover {
  transform: scale(1.03);
}

.admin-panel .photo-actions {
  position: absolute;
  top: 5px;
  right: 5px;
  display: flex;
  gap: 5px;
}

/* Стили для кнопок в админке */
.admin-btn {
  padding: 8px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-primary {
  background: #ff3333;
  color: white;
}

.btn-primary:hover {
  background: #ff5555;
}

.btn-danger {
  background: #dc2626;
  color: white;
}

.btn-danger:hover {
  background: #ef4444;
}

.btn-small {
  padding: 5px 10px;
  font-size: 0.8rem;
}

/* Кнопка переключения панели */
#adminToggleBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #ff3333;
  color: #fff;
  padding: 12px 16px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  transition: all 0.3s;
}

#adminToggleBtn:hover {
  background: #ff5555;
  transform: scale(1.1);
}

/* Формы в админке */
.admin-form {
  margin-bottom: 15px;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #333;
  border-radius: 4px;
  background: #222;
  color: #fff;
}

.admin-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

/* Уведомления */
.admin-notification {
  padding: 10px;
  margin: 10px 0;
  border-radius: 4px;
  background: #333;
  border-left: 3px solid #ff3333;
}

/* Адаптивность для админ-панели */
@media (max-width: 500px) {
  .admin-panel {
    width: 100%;
    right: -100%;
  }
  
  .admin-panel .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}

/* Мобильные вкладки админ-панели */
.admin-tabs-mobile {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.admin-tab-mobile {
  flex: 1 0 calc(50% - 5px);
  text-align: center;
  padding: 8px 5px;
  font-size: 0.85rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

/* Десктопные вкладки админ-панели */
.admin-tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid #333;
}

.admin-tab {
  padding: 10px 15px;
  border: none;
  background: transparent;
  color: #ccc;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
}

.admin-tab.active {
  color: #fff;
  border-bottom: 2px solid #ff3333;
}

/* Контент вкладок */
.admin-tab-content {
  display: none;
}

.admin-tab-content:not(.hidden) {
  display: block;
}

/* Подвкладки */
.sub-tab {
  padding: 8px 15px;
  border: none;
  background: transparent;
  color: #ccc;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
}

.sub-tab.active {
  color: #fff;
  border-bottom: 2px solid #ff3333;
}

.sub-tab-content {
  display: none;
}

.sub-tab-content:not(.hidden) {
  display: block;
}

/* Стили для таблиц в админке */
.admin-panel table {
  width: 100%;
  border-collapse: collapse;
}

.admin-panel th,
.admin-panel td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #333;
}

.admin-panel th {
  background-color: #222;
  color: #ff3333;
  font-weight: 600;
}

/* Стили для загрузчика */
.admin-panel .loader {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Прогресс-бар */
.admin-panel progress {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background-color: #333;
  border: none;
}

.admin-panel progress::-webkit-progress-bar {
  background-color: #333;
  border-radius: 4px;
}

.admin-panel progress::-webkit-progress-value {
  background-color: #ff3333;
  border-radius: 4px;
}

.admin-panel progress::-moz-progress-bar {
  background-color: #ff3333;
  border-radius: 4px;
}
