/* css/style.css */

/* Общие стили */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #333333;
    color: #ffffff;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Шапка сайта с полоской и тенью */
.site-header {
    background-color: #222222;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    border-bottom: 2px solid #3399cc;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 18px;
}

.site-title {
    font-size: 24px;
    font-weight: 400;
    color: #3399cc;;
}

/* Пиксельный логотип */
.pixel-logo {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    width: 40px;
    height: 40px;
    gap: 1px;
}

.pixel {
    background-color: #3399cc;
    border-radius: 1px;
    opacity: 1;
}

/* Кошелек с иконкой */
.wallet-container {
    position: relative;
}

.wallet-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 20px;
    background-color: #444444;
    transition: background-color 0.3s;
}

.wallet-icon:hover {
    background-color: #555555;
}

.wallet-icon svg {
    width: 20px;
    height: 20px;
    fill: #3399cc;
}

.wallet-amount {
    font-size: 16px;
    color: #ffffff;
}

.wallet-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #444444;
    border-radius: 8px;
    padding: 15px;
    width: 250px;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1001;
    margin-top: 10px;
    border: 1px solid #3399cc;
}

.wallet-dropdown.show {
    display: block;
}

.wallet-info p {
    margin: 5px 0;
    font-size: 14px;
}

.btn {
    background-color: #3399cc;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 400;
    transition: background-color 0.3s;
    display: block;
    width: 100%;
    margin-top: 10px;
}

.btn:hover {
    background-color: #3399cc;
}

/* Вкладки - фиксированное позиционирование */
.tabs-container {
    display: flex;
    margin: 30px 0 30px 0;
    border-radius: 8px;
    overflow: hidden;
    position: sticky;
    top: 80px; /* Отступ от шапки */
    z-index: 100;
    background-color: transparent;
    gap: 8px;
}

.tab-btn {
    flex: 1;
    background-color: #444444;
    color: #ffffff;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s;
    border-radius: 8px;
}

.tab-btn:hover {
    background-color: #555555;
}

.tab-btn.active {
    background-color: #3399cc;
    color: #ffffff;
}

/* Контент вкладок */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Область загрузки */
.upload-container {
    background-color: #3a3a3a;
    border: 2px dashed #555555;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    cursor: pointer;
    transition: border-color 0.3s;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.upload-container:hover {
    border-color: #3399cc;
}

.upload-icon {
    margin-bottom: 15px;
}

.upload-text {
    color: #aaaaaa;
    font-size: 16px;
    margin-bottom: 10px;
}

.upload-hint {
    color: #888888;
    font-size: 14px;
}

/* Настройки */
.settings-section {
    background-color: #3a3a3a;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
    /* убираем фиксированную высоту, контейнер сам подстроится */
}

.setting-group {
    margin-bottom: 35px;
}

.setting-group:last-child {
    margin-bottom: 50; /* у последней группы убираем отступ */
}

textarea {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #555555;
    background-color: #444444;
    color: #ffffff;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    resize: vertical;
    min-height: 150px;
}

.char-counter {
    text-align: right;
    font-size: 14px;
    color: #aaaaaa;
    margin-top: 5px;
}

/* Селекторы длительности и разрешения */
.duration-selector, .aspect-ratio-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.duration-btn, .resolution-btn {
    background-color: #444444;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    min-width: 80px;
    text-align: center;
}

.duration-btn:hover, .resolution-btn:hover {
    background-color: #555555;
}

.duration-btn.active, .resolution-btn.active {
    background-color: #3399cc;
    color: #ffffff;
}

/* Кнопка создания - меньше и с динамической ценой */
.send-btn {
    background-color: #3399cc;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 12px 50px;
    cursor: pointer;
    font-size: 20px;
    font-weight: 400;
    transition: background-color 0.3s;
    display: block;
    width: 100%;
    margin: 20px 0;
}

.send-btn:hover {
    background-color: #55bbbb;
}

.send-btn:disabled {
    background-color: #555555;
    cursor: not-allowed;
}

/* Результаты генерации */
.video-results-container {
    margin: 30px 0;
    padding: 20px;
    background-color: #3a3a3a;
    border-radius: 10px;
}

.preloader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #444444;
    border-top: 5px solid #3399cc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

.video-container {
    text-align: center;
}

.video-container video {
    max-width: 100%;
    border-radius: 10px;
}

/* Информационные блоки */
.info-section {
    margin: 30px 0;
    padding: 16px;
    border-radius: 10px;
}

.save-warning, .create-invitation {
    text-align: left;
    margin: 10px 0;
    color: #cccccc;
    font-size: 14px; /* Уменьшенный размер текста */
    line-height: 1.4;
}

/* Галерея видео */
.gallery-section {
    margin: 30px 0;
}

.gallery-section h3 {
    margin-bottom: 20px;
    text-align: center;
}

.videos-container {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: #3399cc #333333;
}

.videos-container::-webkit-scrollbar {
    height: 8px;
}

.videos-container::-webkit-scrollbar-track {
    background: #333333;
}

.videos-container::-webkit-scrollbar-thumb {
    background-color: #3399cc;
    border-radius: 4px;
}

.gallery-item {
    flex: 0 0 auto;
    width: 200px;
    height: 150px;
    background-color: #444444;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gallery-placeholder {
    color: #888888;
    text-align: center;
    padding: 20px;
    width: 100%;
}

/* Вопросы-ответы (аккордеон) с 5 вопросами */
.faq-section {
    margin: 30px 0;
}

.faq-section h3 {
    margin-bottom: 16px;
    text-align: center;
}

.accordion-item {
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #3a3a3a;
}

.accordion-header {
    width: 100%;
    background-color: #444444;
    color: #ffffff;
    border: none;
    padding: 15px 20px;
    text-align: left;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header:hover {
    background-color: #555555;
}

.accordion-header::after {
    content: '+';
    font-size: 16px;
}

.accordion-header.active::after {
    content: '-';
}

.accordion-content {
    background-color: #3a3a3a;
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.accordion-content.open {
    padding: 18px;
    max-height: 500px;
}

/* Иконка обратной связи - 150x150 */
.feedback-icon {
    position: fixed;
    bottom: 0;
    right: 0px;
    z-index: 1000;
    cursor: pointer;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.feedback-icon img {
    display: block;
    width: 180px;
    height: 180px;
    object-fit: contain;
}

/* Модальные окна */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background-color: #333333;
    border-radius: 10px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    border: 1px solid #3399cc;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 18px;
    cursor: pointer;
    color: #aaaaaa;
    background: none;
    border: none;
}

.close-btn:hover {
    color: #ffffff;
}

.modal-content h2 {
    margin-bottom: 20px;
    text-align: center;
    color: #3399cc;
}

.feedback-form, .auth-form, .refill-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input[type="email"], input[type="tel"], input[type="text"], input[type="number"] {
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #555555;
    background-color: #444444;
    color: #ffffff;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
}

.modal-text {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
}

.modal-text p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Подвал */
.site-footer {
    margin-top: 50px;
    padding: 20px 0;
    border-top: 1px solid #444444;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    color: #3399cc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #55bbbb;
    text-decoration: underline;
}

.footer-info p {
    color: #888888;
    font-size: 16px;
    text-align: center;
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header-content {
        flex-direction: row; /* Оставляем в ряд */
        gap: 10px;
        justify-content: space-between;
    }
    
    .logo-container {
        gap: 10px;
    }
    
    .site-title {
        font-size: 20px;
    }
    
    .pixel-logo {
        width: 40px;
        height: 40px;
    }
    
    .wallet-icon {
        padding: 6px 12px;
        gap: 6px;
    }
    
    .wallet-icon svg {
        width: 22px;
        height: 22px;
    }
    
    /* === Стили для примеров видео на мобильных === */
    .example-item {
        width: 220px; /* Уменьшаем ширину */
        height: 150px; /* Уменьшаем высоту */
    }

    .wallet-amount {
        font-size: 16px;
    }
    
    .tabs-container {
        position: sticky;
        top: 70px; /* Уменьшенный отступ на мобильных */
        z-index: 100;
        background-color: transparent;
        width: 100%;
        margin: 20px 0 15px 0;
        border-radius: 8px;
    }
    
    .tab-btn {
        padding: 12px 8px; /* Уменьшены отступы */
        font-size: 16px;
        min-width: 0; /* Убираем минимальную ширину */
        /* Исправление растягивания */
        flex: 0 1 auto; /* Не растягиваем, разрешаем сжатие */
        white-space: nowrap; /* Предотвращаем перенос текста */
    }
    
    .upload-container {
        padding: 30px 15px;
        min-height: 180px;
    }
    
    .upload-text {
        font-size: 16px; /* Уменьшенный размер текста */
    }
    
    .upload-hint {
        font-size: 16px; /* Уменьшенный размер текста */
    }
    
    /* === ИСПРАВЛЕНИЕ РАСТЯГИВАНИЯ КНОПОК НА МОБИЛЬНЫХ === */
    /* Изменяем поведение контейнеров селекторов */
    .duration-selector, .aspect-ratio-selector {
        flex-direction: row; /* Возвращаем row */
        flex-wrap: wrap; /* Разрешаем перенос */
        justify-content: flex-start; /* Выравниваем по левому краю */
        gap: 8px; /* Уменьшаем отступы между кнопками */
    }

    /* Изменяем поведение самих кнопок */
    .duration-btn, .resolution-btn {
        width: auto; /* Отменяем width: 100% */
        padding: 15px 15px; /* Слегка уменьшаем отступы */
        font-size: 16px; /* Слегка уменьшаем шрифт */
        min-width: 75px; /* Задаем минимальную ширину */
        flex: 0 0 auto; /* Запрещаем растягивание и сжатие */
        text-align: center; /* Центрируем текст */
    }
    /* === КОНЕЦ ИСПРАВЛЕНИЯ === */
    
    .send-btn {
        padding: 10px 15px; /* Уменьшены отступы */
        font-size: 16px;
        /* Исправление растягивания */
        width: auto; /* Отменяем width: 100% */
        margin: 20px auto; /* Центрируем кнопку */
    }
    
    .videos-container {
        flex-direction: column;
    }
    
    .gallery-item {
        width: 100%;
        height: 200px;
    }
    
    .feedback-icon img {
        width: 120px; /* Уменьшена иконка на мобильных */
        height: 120px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .footer-link {
        font-size: 14px;
    }
    
    .footer-info p {
        font-size: 14px;
    }
    
    .save-warning, .create-invitation {
        font-size: 14px; /* Еще меньше на мобильных */
    }
    
    .modal-content {
        padding: 20px;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 16px;
    }
    
    .pixel-logo {
        width: 40px;
        height: 40px;
    }
    
    .wallet-icon {
        padding: 5px 10px;
    }
    
    .wallet-amount {
        font-size: 14px;
    }
    
    .tab-btn {
        padding: 10px 5px; /* Еще меньше отступы */
        font-size: 14px;
    }
    
    .upload-text {
        font-size: 14px;
    }
    
    .upload-hint {
        font-size: 11px;
    }
    
    /* Дополнительная корректировка на очень маленьких экранах */
    .duration-btn, .resolution-btn {
        padding: 8px 12px;
        font-size: 16px;
        min-width: 65px; /* Ещё меньше минимальная ширина */
    }
    
    .send-btn {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .feedback-icon img {
        width: 160px; /* Еще меньше на очень маленьких экранах */
        height: 160px;
    }
    
    .modal-content {
        padding: 15px;
    }
}
/* ... (все предыдущие стили до @media остаются без изменений) ... */

/* Кнопка создания - меньше и с динамической ценой */
/* ИСПРАВЛЕНИЕ: Убираем растягивание на больших экранах */
.send-btn {
    background-color: #3399cc;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 14px 50px;
    cursor: pointer;
    font-size: 18px;
    font-weight: normal;
    transition: background-color 0.3s;
    /* display: block; */ /* Убираем block */
    /* width: 100%; */ /* Убираем 100% ширину */
    width: auto; /* Возвращаем автоматическую ширину */
    margin: 20px auto; /* Центрируем */
}

.send-btn:hover {
    background-color: #336699;
}

.send-btn:disabled {
    background-color: #555555;
    cursor: not-allowed;
}

/* ... (все стили между .send-btn и @media остаются без изменений) ... */

/* Адаптивность */
@media (max-width: 768px) {
    /* ... (другие стили мобильной версии остаются без изменений) ... */
    
    .tabs-container {
        position: sticky;
        top: 80px; /* Уменьшенный отступ на мобильных */
        z-index: 90;
        background-color: transparent;
        width: 100%;
        margin: 20px 0 15px 0;
        border-radius: 8px;
        /* ВОЗВРАЩАЕМ поведение вкладок как было */
        display: flex; /* Убедимся, что display flex */
    }
    
    /* ВОЗВРАЩАЕМ стиль кнопок вкладок как было */
    .tab-btn {
        flex: 1; /* Возвращаем растягивание */
        background-color: #444444;
        color: #ffffff;
        border: none;
        padding: 12px 8px; /* Уменьшены отступы */
        cursor: pointer;
        font-size: 18px;
        transition: background-color 0.3s;
        border-radius: 8px;
        min-width: 0; /* Убираем ограничение минимальной ширины */
    }
    
    /* ... (остальные стили мобильной версии остаются без изменений) ... */
    
    /* === ИСПРАВЛЕНИЕ РАСТЯГИВАНИЯ КНОПОК НА МОБИЛЬНЫХ === */
    /* (этот блок остается как было - он для кнопок длительности/разрешения) */
    .duration-selector, .aspect-ratio-selector {
        flex-direction: row; /* Возвращаем row */
        flex-wrap: wrap; /* Разрешаем перенос */
        justify-content: flex-start; /* Выравниваем по левому краю */
        gap: 10px; /* Уменьшаем отступы между кнопками */
    }

    .duration-btn, .resolution-btn {
        width: auto; /* Отменяем width: 100% */
        padding: 15px 10px; /* Слегка уменьшаем отступы */
        font-size: 15px; /* Слегка уменьшаем шрифт */
        min-width: 75px; /* Задаем минимальную ширину */
        flex: 0 0 auto; /* Запрещаем растягивание и сжатие */
        text-align: center; /* Центрируем текст */
    }
    /* === КОНЕЦ ИСПРАВЛЕНИЯ === */
    
    /* ИСПРАВЛЕНИЕ: Кнопка "Создать" на мобильных */
    .send-btn {
        padding: 10px 15px; /* Уменьшены отступы */
        font-size: 16px;
        /* Исправление растягивания - оставляем как для кнопок длительности */
        width: auto; /* Отменяем width: 100% */
        margin: 50px auto; /* Центрируем кнопку */
    }
    
}

@media (max-width: 480px) {
    /* ... (другие стили этой секции остаются без изменений) ... */
    
    /* Дополнительная корректировка на очень маленьких экранах */
    .duration-btn, .resolution-btn {
        padding: 8px 12px;
        font-size: 14px;
        min-width: 65px; /* Ещё меньше минимальная ширина */
    }
    
    .send-btn {
        padding: 10px 30px;
        font-size: 16px;
    }
    
}

/* === Лента с примерами видео === */
.examples-section {
    margin: 30px 0;
    padding: 15px;
    background-color: #2d2d2d;
    border-radius: 10px;
    border: 1px solid #444;
}

.examples-section h3 {
    margin-bottom: 15px;
    color: #ffffff;
    text-align: center;
    font-weight: 600;
}

/* КОНТЕЙНЕР - ГЛАВНОЕ: горизонтальная прокрутка */
.examples-container {
    display: flex;
    flex-direction: row; /* обязательно ряд */
    flex-wrap: nowrap; /* НЕ ПЕНОСИТЬ на новую строку */
    overflow-x: auto; /* горизонтальный скролл */
    overflow-y: hidden;
    gap: 15px;
    padding: 10px 5px;
    scrollbar-width: thin;
    scrollbar-color: #3399cc #1a1a1a;
    white-space: nowrap;
}

/* ЭЛЕМЕНТЫ ЛЕНТЫ */
.example-item {
    flex: 0 0 auto; /* НЕ растягивать, НЕ сжимать */
    width: auto; /* ширина по содержимому */
    height: auto;
}

/* ВИДЕО */
.example-item video {
    width: auto;
    height: 200px; /* фиксированная высота */
    max-width: 300px; /* максимальная ширина */
    border-radius: 8px;
    border: 1px solid #555;
    display: block;
    object-fit: contain; /* не обрезать */
    background-color: #000;
}

/* Для мобильных */
@media (max-width: 768px) {
    .example-item video {
        height: 180px;
        max-width: 250px;
    }
    
    .examples-container {
        gap: 10px;
    }
}

/* Стили для полноэкранного режима */
.example-item {
    position: relative;
    cursor: pointer;
}

.example-item video {
    width: auto;
    height: 200px;
    max-width: 300px;
    border-radius: 8px;
    border: 1px solid #555;
    display: block;
    object-fit: contain;
    background-color: #000;
}

/* Стили для скрытия SEO-заголовка */
.seo-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.save-warning {
    color: #ffffff; /* Белый цвет текста */
    font-size: 12px; /* Размер шрифта 14px */
    line-height: 1.5; /* Улучшает читаемость */
    position: relative; /* Для позиционирования иконки */
    padding-left: 25px; /* Отступ для иконки */
}

/* Создаем оранжевую иконку "!" с помощью псевдоэлемента */
.save-warning::before {
    content: "!"; /* Символ восклицательного знака */
    color: #ff9900; /* Оранжевый цвет */
    font-weight: bold;
    font-size: 12px; /* Размер иконки */
    position: absolute;
    left: 0; /* Позиционируем слева */
    top: 50%;
    transform: translateY(-50%); /* Центрируем по вертикали */
    width: 20px;
    height: 20px;
    text-align: center;
    /* Делаем круглый фон для иконки (опционально, но красивее) */
    background-color: rgba(255, 153, 0, 0.2); /* Светло-оранжевый полупрозрачный фон */
    border-radius: 50%;
    padding: 2px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    /* Основной контейнер вкладки */
    #photo-video-tab.active, #text-video-tab.active {
        display: flex;
        flex-direction: column;
        gap: 18px;
        padding: 5px;
    }
    
    /* Область настроек */
    .settings-section {
        background-color: #3a3a3a;
        border-radius: 8px;
        padding: 15px 12px !important;
        margin: 0 !important;
        flex: 1;
    }
    
    /* Группы настроек */
    .setting-group {
        margin-bottom: 18px !important;
        padding: 0 !important;
    }
    
    .setting-group label {
        margin-bottom: 20px !important;
        font-size: 15px;
    }
    
    /* Кнопки настроек */
    .duration-selector, .aspect-ratio-selector {
        gap: 6px;
        margin: 5px 0 !important;
    }
    
    .duration-btn, .resolution-btn {
        padding: 10px 8px !important;
        font-size: 13px !important;
        min-width: 80px !important;
    }
    
    /* Кнопка Создать - поднимаем выше */
    .send-btn {
        margin: 10px auto 15px auto !important; /* ↑ почти нет отступа сверху */
        padding: 15px 35px !important;
        width: 92% !important;
    }
}

/* ИСПРАВЛЕНИЕ ДЛЯ МОБИЛЬНЫХ */
@media (max-width: 768px) {
    .container {
        padding: 10px !important;
    }
    
    .main-content {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .settings-section {
        background-color: #3a3a3a;
        border-radius: 10px;
        padding: 20px 15px !important;
        margin: 0 !important;
        order: 1;
    }
    
    .send-btn {
        order: 2;
        margin-top: 50px !important; /* Кнопка "создать" */
        margin: 10 auto 20px auto !important;
        padding: 14px 40px !important;
        font-size: 17px !important;
        width: calc(100% - 30px) !important;
        max-width: 300px !important;
        display: block !important;
    }
    
    /* Фиксируем кнопки настроек */
    .duration-selector, .aspect-ratio-selector {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
        margin: 15px 0 !important;
    }
    
    .duration-btn, .resolution-btn {
        flex: 0 0 calc(50% - 10px) !important;
        min-width: 120px !important;
        padding: 12px 10px !important;
        font-size: 14px !important;
        text-align: center;
    }
}

/* СТИЛИ ТОЛЬКО ДЛЯ ДЕСКТОПОВ (большие экраны) */
@media (min-width: 769px) {
    .setting-group {
        margin-bottom: 40px !important;
    }
    
    .setting-group label {
        margin-bottom: 20px !important;
        font-size: 16px !important;
    }
    
    .send-btn {
        margin: 30px auto !important;
        padding: 16px 50px !important;
        font-size: 18px !important;
        width: auto !important;
        max-width: none !important;
        margin-top: 30px !important; /* нормальный отступ */
    }
    
    .settings-section {
        padding: 30px 25px !important;
        margin-bottom: 20px !important;
    }
    
    /* Кнопки настроек для десктопа */
    .duration-selector, .aspect-ratio-selector {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        justify-content: flex-start !important;
        margin: 10px 0 !important;
    }
    
    .duration-btn, .resolution-btn {
        flex: 0 0 auto !important;
        min-width: 100px !important;
        padding: 12px 20px !important;
        font-size: 14px !important;
        text-align: center !important;
    }
}
/* Стили для результатов видео */
.video-result {
    background: #3a3a3a;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #444;
}

.video-player {
    margin-bottom: 15px;
    text-align: center;
}

.video-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
}

.video-info {
    background: #2d2d2d;
    border-radius: 10px;
    padding: 15px;
    font-size: 14px;
}

.video-info p {
    margin-bottom: 5px;
    color: #cccccc;
}

.video-info p:last-child {
    margin-bottom: 0;
}

/* Стили для галереи видео */
.gallery-item {
    background: #3a3a3a;
    border-radius: 10px;
    padding: 15px;
    transition: transform 0.3s ease;
    border: 1px solid #444;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-video video {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 10px;
}

.gallery-info {
    margin-bottom: 10px;
}

.gallery-info p {
    margin-bottom: 5px;
    font-size: 12px;
    color: #cccccc;
}

.gallery-actions {
    display: flex;
    gap: 5px;
    justify-content: flex-end;
}

/* Адаптивность для галереи */
@media (max-width: 768px) {
    .video-actions {
        flex-direction: column;
    }
    
    .video-actions .btn {
        width: 100%;
    }
    
    .gallery-item {
        margin-bottom: 15px;
    }
}

/* Стили для кнопок в галерее */
.gallery-btn {
    background: #3399cc;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin: 0 5px;
    transition: background 0.3s;
}

.gallery-btn:hover {
    background: #2678a6;
}

.gallery-btn.delete-btn {
    background: #cc6666;
}

.gallery-btn.delete-btn:hover {
    background: #b35555;
}

/* Горизонтальная галерея для десктопа */
@media (min-width: 768px) {
    .videos-container {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 20px;
        padding: 10px 0;
    }
    
    .gallery-item {
        flex: 0 0 auto;
        width: 250px;
    }
}

/* Вертикальная галерея для мобильных */
@media (max-width: 767px) {
    .videos-container {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .gallery-item {
        width: 100%;
    }
}
