* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #1a0b1a 0%, #2d0f2d 50%, #1f0a1f 100%);
    min-height: 100vh;
    padding: 20px;
    color: #fff;
}

@keyframes neonPulse {
    0% { text-shadow: 0 0 5px #ff6ec7, 0 0 10px #ff6ec7; }
    50% { text-shadow: 0 0 15px #ff3b9e, 0 0 25px #ff3b9e; }
    100% { text-shadow: 0 0 5px #ff6ec7, 0 0 10px #ff6ec7; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(255, 20, 147, 0.3);
    padding: 40px;
    border: 1px solid rgba(255, 110, 199, 0.3);
}

/* Навигация */
.navbar {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 110, 199, 0.3);
}

.nav-container {
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.nav-container h2 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    background: linear-gradient(135deg, #ffb3d9, #ff6ec7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 15px 5px 5px;
    border-radius: 30px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #ff6ec7;
    object-fit: cover;
}

.logout-btn {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 5px 15px;
    border-radius: 30px;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: rgba(255, 110, 199, 0.2);
    color: #ffb3d9;
}

/* Информация о хранилище */
.storage-info {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 30px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 110, 199, 0.3);
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    margin-top: 10px;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #ffb3d9, #ff6ec7);
    transition: width 0.3s;
}

/* Секция загрузки */
.upload-section {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 30px;
    padding: 30px;
    margin-bottom: 30px;
}

.upload-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.tab-btn, .upload-tab-btn, .video-tab-btn {
    background: rgba(255, 110, 199, 0.2);
    color: white;
    border: 1px solid rgba(255, 110, 199, 0.4);
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Montserrat', sans-serif;
}

.tab-btn:hover, .upload-tab-btn:hover, .video-tab-btn:hover {
    background: rgba(255, 110, 199, 0.4);
    box-shadow: 0 0 15px #ff6ec7;
}

.tab-btn.active, .upload-tab-btn.active, .video-tab-btn.active {
    background: linear-gradient(135deg, #ff6ec7, #bf4aa8);
    box-shadow: 0 0 20px #ff6ec7;
}

/* Формы */
.file-input-container {
    margin: 25px 0;
}

.file-label {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #ff6ec7, #bf4aa8);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
}

.url-input {
    width: 100%;
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 110, 199, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 15px;
}

.url-input:focus {
    outline: none;
    border-color: #ff6ec7;
    box-shadow: 0 0 20px #ff6ec7;
}

.upload-btn {
    background: linear-gradient(135deg, #ff6ec7, #bf4aa8);
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 0 30px #ff6ec7;
}

.upload-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.upload-progress {
    margin-top: 25px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 30px;
}

.upload-progress.hidden {
    display: none;
}

/* Галерея */
.videos-section {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 30px;
    padding: 30px;
}

.videos-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.image-card {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 110, 199, 0.3);
    transition: all 0.3s;
    cursor: pointer;
}

.image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 110, 199, 0.4);
}

.image-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #000;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.image-card:hover .image-container img {
    transform: scale(1.05);
}

.image-info {
    padding: 15px;
}

.image-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #ffb3d9;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.image-meta {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    margin-top: 8px;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    top: 50%;
    transform: translateY(-50%);
}

.modal-img {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px;
}

.modal-info {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 15px;
    margin-top: 15px;
}

.close {
    position: absolute;
    right: 35px;
    top: 20px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}

.close:hover {
    color: #ff6ec7;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.modal-btn {
    padding: 10px 20px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.modal-btn.download {
    background: linear-gradient(135deg, #ff6ec7, #bf4aa8);
    color: white;
}

.modal-btn.copy {
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: white;
}

.modal-btn.delete {
    background: linear-gradient(135deg, #f56565, #e53e3e);
    color: white;
}

/* Кнопки в карточке */
.video-actions {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.watch-btn, .download-btn, .delete-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    color: white;
}

.watch-btn { background: linear-gradient(135deg, #48bb78, #38a169); }
.download-btn { background: linear-gradient(135deg, #ff6ec7, #bf4aa8); }
.delete-btn { background: linear-gradient(135deg, #f56565, #e53e3e); }

/* Уведомления */
.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50px;
    z-index: 1000;
    animation: slideUp 0.3s ease;
    border: 1px solid #ff6ec7;
    display: flex;
    align-items: center;
    gap: 10px;
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.no-videos {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    padding: 50px;
    grid-column: 1 / -1;
}

/* Адаптивность */
@media (max-width: 768px) {
    .container { padding: 20px; }
    .nav-container { flex-direction: column; text-align: center; }
    .images-grid { grid-template-columns: 1fr; }
    .modal-content { width: 95%; }
}