:root {
    --primary: #FF6B00;
    --primary-dark: #E05D00;
    --dark: #121212;
    --darker: #0A0A0A;
    --medium: #1E1E1E;
    --light: #2D2D2D;
    --lighter: #3D3D3D;
    --text: #FFFFFF;
    --text-secondary: #B3B3B3;
    --text-dark: #777777;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/*       */
header {
    background-color: var(--darker);
    padding: 0 20px;
    border-bottom: 3px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.logo h1 {
    color: var(--primary);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo span {
    color: var(--text);
    font-weight: 300;
}

/*           */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
    position: relative;
}

nav ul li a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    font-size: 16px;
    transition: color 0.2s;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary);
    bottom: 0;
    left: 0;
    transition: width 0.3s;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

nav ul li a:hover {
    color: var(--primary);
}

/*                  */
.main-container {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
    min-height: calc(100vh - 200px);
}

/*              */
.hero {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('https://images.unsplash.com/photo-1574717024453-3545e7cc3bfd?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center center;
    background-size: cover;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    padding: 0 20px;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--primary);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

/*        */
.btn {
    display: inline-block;
    background-color: var(--primary);
    color: var(--text);
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    border: none;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--text);
}

/*        */
.section {
    margin-bottom: 50px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 24px;
    font-weight: 500;
    color: var(--text);
    position: relative;
    padding-left: 15px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background-color: var(--primary);
    border-radius: 2px;
}

.see-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
}

.see-all:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/*             */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/*                */
.video-card {
    background-color: var(--medium);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.2);
}

.video-thumbnail {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

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

.video-info {
    padding: 15px;
}

.video-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 45px;
}

.video-author {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.video-stats {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: var(--text-dark);
}

.video-views::after {
    content: ' ';
    margin: 0 5px;
}

/*             */
.video-player-container {
    display: none;
    margin-bottom: 40px;
    background-color: var(--medium);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.video-player-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    background-color: #000;
}

.video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-player-info {
    padding: 20px;
}

.player-video-title {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--text);
}

.player-video-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.player-video-description {
    line-height: 1.6;
    color: var(--text-secondary);
    white-space: pre-line;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    margin-bottom: 20px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
}

.back-btn:hover {
    color: var(--primary-dark);
}

.back-btn svg {
    margin-right: 5px;
}

/*           */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background-color: var(--medium);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    padding: 30px 20px;
    border: 1px solid var(--light);
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.1);
    border-color: var(--primary);
}

.category-icon {
    font-size: 40px;
    margin-bottom: 15px;
    color: var(--primary);
}

.category-name {
    font-size: 18px;
    font-weight: 500;
}

.category-count {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 5px;
}

/*                */
.upload-container {
    display: none;
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--medium);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.upload-header {
    text-align: center;
    margin-bottom: 30px;
}

.upload-title {
    font-size: 24px;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 10px;
}

.upload-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border-radius: 4px;
    border: 1px solid var(--light);
    background-color: var(--dark);
    color: var(--text);
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.file-upload {
    position: relative;
    margin-bottom: 10px;
}

.file-upload-label {
    display: block;
    padding: 40px 20px;
    border: 2px dashed var(--light);
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.file-upload-label:hover {
    border-color: var(--primary);
    background-color: rgba(255, 107, 0, 0.05);
}

.file-upload-icon {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 10px;
}

.file-upload-text {
    font-weight: 500;
    margin-bottom: 5px;
}

.file-upload-hint {
    color: var(--text-secondary);
    font-size: 14px;
}

.file-upload-input {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-name {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 5px;
}

.upload-progress {
    display: none;
    margin-top: 20px;
    background-color: var(--dark);
    border-radius: 4px;
    height: 6px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary);
    width: 0;
    transition: width 0.3s;
}

.upload-status {
    display: none;
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    font-weight: 500;
}

.upload-success {
    background-color: rgba(0, 200, 83, 0.1);
    color: #00C853;
}

.upload-error {
    background-color: rgba(255, 0, 0, 0.1);
    color: #FF0000;
}

/*        */
footer {
    background-color: var(--darker);
    padding: 50px 0 20px;
    border-top: 3px solid var(--primary);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    display: block;
}

.footer-about {
    margin-bottom: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--medium);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s;
}

.social-icon:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-links-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    max-width: 1400px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--light);
    text-align: center;
    color: var(--text-dark);
    font-size: 14px;
}

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

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/*              */
@media (max-width: 992px) {
    .hero h2 {
        font-size: 36px;
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 10px 5px;
    }
    
    .hero {
        height: 300px;
    }
    
    .hero h2 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 576px) {
    .hero {
        height: 250px;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .upload-container {
        padding: 20px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
/*                        styles.css */
.video-error {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--medium);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.video-error i {
    font-size: 50px;
    margin-bottom: 20px;
}

.video-error p {
    font-size: 18px;
    font-weight: 500;
}
/*             */
.video-player-container {
    display: none;
    position: relative;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.video-player {
    width: 100%;
    height: auto;
    max-height: 70vh;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    padding: 20px 30px;
    font-size: 24px;
}

.video-error {
    padding: 40px;
    text-align: center;
    color: var(--primary);
}

.video-error i {
    font-size: 40px;
    margin-bottom: 15px;
}

.footer-nav a {
    cursor: pointer;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: var(--primary);
}


.page-container {
    display: none;
}


.page-container {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Стили для видеоплеера */
.video-player-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    background: #000;
}

.video-player {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Вертикальное видео */
.video-player.vertical-video {
    max-height: 80vh;
    width: auto;
    max-width: 100%;
}

/* Горизонтальное видео */
.video-player.horizontal-video {
    width: 100%;
    height: auto;
}

.video-player-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.video-player-overlay .play-overlay {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.video-player-overlay .play-overlay:hover {
    background: rgba(255, 255, 255, 0.3);
}

.video-player-info {
    padding: 15px;
    background: #fff;
    color: #333;
}

.player-video-title {
    font-size: 1.5rem;
    margin: 0 0 10px 0;
}

.player-video-meta {
    display: flex;
    gap: 15px;
    color: #666;
    margin-bottom: 15px;
}

.player-video-description {
    white-space: pre-line;
    line-height: 1.5;
}
.upload-warning {
    margin-top: 15px;
    padding: 10px;
    background-color: rgba(255, 59, 48, 0.1);
    border-radius: 5px;
    display: flex;
    align-items: center;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.upload-warning i {
    color: #ff3b30;
    margin-right: 10px;
    font-size: 16px;
}

.upload-warning span {
    color: #ff3b30;
    font-size: 14px;
    line-height: 1.4;
}
/* Стили для видеоплеера */
.video-player-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    margin-bottom: 20px;
}

.video-player {
    max-width: 100%;
    max-height: 80vh;
}

/* Стили для описания видео */
.player-video-description {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 30px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 5px;
}

/* Стили для секции комментариев */
.comments-section {
    margin-top: 30px;
    padding: 0 15px;
}

.comments-section h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.comments-container {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.comment {
    padding: 15px;
    margin-bottom: 15px;
    background: #f9f9f9;
    border-radius: 5px;
    border-left: 3px solid #e0e0e0;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.comment-author {
    font-weight: bold;
    color: #333;
}

.comment-date {
    color: #999;
}

.comment-text {
    color: #333;
    line-height: 1.4;
}

.no-comments {
    color: #999;
    text-align: center;
    padding: 20px;
}

.add-comment {
    margin-top: 20px;
}

.add-comment textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    margin-bottom: 10px;
}

.add-comment button {
    background: #ff0000;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}

.add-comment button:hover {
    background: #cc0000;
}
.video-player-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.video-player-wrapper {
    position: relative;
    width: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.video-player {
    max-width: 100%;
    max-height: 80vh;
    display: block;
}

.video-player-info {
    margin-top: 15px;
}

.player-video-title {
    font-size: 24px;
    margin-bottom: 10px;
}

.player-video-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.player-video-description {
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}
.comments-section {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.comment {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.comment:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.comment-author {
    font-weight: bold;
    margin-bottom: 5px;
}

.comment-text {
    font-size: 14px;
    line-height: 1.4;
}

#comment-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 10px;
    resize: vertical;
}
