/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0f0f0f;
    color: #e0e0e0;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* Header Styles */
.header {
    background: #1a1a1a;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

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

.logo-section {
    flex: 0 0 auto;
}

.site-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #ff4444;
    text-decoration: none;
}

.search-section {
    flex: 1;
    max-width: 600px;
}

.search-form {
    display: flex;
    background: #2a2a2a;
    border-radius: 25px;
    overflow: hidden;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: #e0e0e0;
    outline: none;
}

.search-input::placeholder {
    color: #888;
}

.search-btn {
    padding: 12px 20px;
    color: #e0e0e0;
    transition: color 0.3s;
}

.search-btn:hover {
    color: #ff4444;
}

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

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2a2a2a;
    border-radius: 50%;
    color: #e0e0e0;
    transition: all 0.3s;
}

.social-icon:hover {
    background: #ff4444;
    transform: translateY(-2px);
}

/* Telegram Banner */
.telegram-banner {
    background: linear-gradient(135deg, #0088cc 0%, #005580 100%);
    padding: 15px 0;
    text-align: center;
}

.telegram-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 600;
    padding: 10px 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    transition: all 0.3s;
}

.telegram-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Category Navigation */
.category-nav {
    background: #1a1a1a;
    padding: 15px 0;
    border-bottom: 1px solid #2a2a2a;
}

.category-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.category-link {
    padding: 8px 20px;
    color: #e0e0e0;
    font-weight: 500;
    border-radius: 20px;
    transition: all 0.3s;
}

.category-link:hover {
    background: #ff4444;
    color: white;
}

/* Main Content */
.main-content {
    padding: 30px 0;
    min-height: calc(100vh - 300px);
}

.category-section {
    margin-bottom: 50px;
}

.section-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #fff;
    padding-left: 10px;
    border-left: 4px solid #ff4444;
}

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

.video-card {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 68, 68, 0.3);
}

.video-thumbnail {
    position: relative;
    display: block;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background: #000;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.video-thumbnail:hover .play-icon {
    opacity: 1;
}

.video-info {
    padding: 15px;
}

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

.video-title:hover {
    color: #ff4444;
}

.video-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #888;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.video-actions {
    display: flex;
    gap: 10px;
}

.react-btn,
.share-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px;
    background: #2a2a2a;
    color: #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
}

.react-btn:hover {
    background: #ff4444;
    color: white;
}

.share-btn:hover {
    background: #0088cc;
    color: white;
}

/* View More Button */
.view-more-container {
    text-align: center;
    margin-top: 30px;
}

.view-more-btn {
    display: inline-block;
    padding: 12px 40px;
    background: #ff4444;
    color: white;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s;
}

.view-more-btn:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 68, 68, 0.4);
}

/* Watch Page Layout */
.watch-page {
    padding: 30px 0;
}

.watch-layout {
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 30px;
}

.video-player-section {
    width: 100%;
}

.video-player-wrapper {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

#videoPlayer {
    width: 100%;
    height: auto;
    max-height: 600px;
    display: block;
}

.video-details {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.video-title-main {
    font-size: 22px;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.4;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.video-stats-main {
    display: flex;
    gap: 20px;
    font-size: 15px;
    color: #888;
}

.video-actions-main {
    display: flex;
    gap: 10px;
}

.react-btn-main,
.share-btn-main {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #2a2a2a;
    color: #e0e0e0;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
}

.react-btn-main:hover {
    background: #ff4444;
    color: white;
}

.share-btn-main:hover {
    background: #0088cc;
    color: white;
}

/* Related Videos */
.related-section {
    margin-top: 30px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Sidebar */
.video-sidebar {
    width: 100%;
}

.sidebar-title {
    font-size: 20px;
    color: #fff;
    margin-bottom: 20px;
    padding-left: 10px;
    border-left: 4px solid #ff4444;
}

.sidebar-videos {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-videos .video-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 12px;
}

.sidebar-videos .video-thumbnail {
    padding-top: 0;
    height: 85px;
}

.sidebar-videos .video-info {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sidebar-videos .video-title {
    font-size: 14px;
    -webkit-line-clamp: 2;
}

.sidebar-videos .video-stats {
    font-size: 12px;
    margin-bottom: 8px;
}

.sidebar-videos .video-actions {
    display: none;
}

/* Search Results */
.search-results {
    margin-bottom: 40px;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 18px;
}

/* Footer */
.footer {
    background: #1a1a1a;
    padding: 30px 0;
    text-align: center;
    color: #888;
    border-top: 1px solid #2a2a2a;
    margin-top: 50px;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .watch-layout {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sidebar-videos .video-card {
        grid-template-columns: 1fr;
    }
    
    .sidebar-videos .video-thumbnail {
        padding-top: 56.25%;
        height: auto;
    }
    
    .sidebar-videos .video-info {
        padding: 15px;
    }
    
    .sidebar-videos .video-actions {
        display: flex;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .logo-section {
        width: 100%;
        text-align: center;
        order: 1;
    }
    
    .search-section {
        width: 100%;
        max-width: 100%;
        order: 3;
    }
    
    .social-icons {
        width: 100%;
        justify-content: center;
        order: 2;
        margin: 10px 0;
    }
    
    .category-links {
        gap: 15px;
    }
    
    .category-link {
        padding: 6px 15px;
        font-size: 14px;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .video-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .video-actions-main {
        width: 100%;
    }
    
    .react-btn-main,
    .share-btn-main {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 20px;
    }
    
    .video-title-main {
        font-size: 18px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .telegram-link {
        font-size: 14px;
        padding: 8px 20px;
    }
}