/* Complete styles extracted from single.html */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    min-height: 100vh;
    line-height: 1.6;
}

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(46, 204, 113, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(39, 174, 96, 0.08) 0%, transparent 50%);
    animation: backgroundPulse 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

header {
    backdrop-filter: blur(20px);
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid rgba(46, 204, 113, 0.2);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: #2ECC71;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover {
    color: #27AE60;
    text-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
}

.search-container {
    flex: 1;
    max-width: 500px;
    margin: 0 2rem;
    position: relative;
}

.search-box {
    width: 100%;
    padding: 10px 40px 10px 16px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: 1px solid rgba(46, 204, 113, 0.3);
}

.search-box:focus {
    outline: 1px solid #2ECC71;
    background: rgba(255, 255, 255, 0.1);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #2ECC71;
    border: none;
    border-radius: 4px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #27AE60;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 6px;
}

.nav-link:hover {
    color: #2ECC71;
    background: rgba(46, 204, 113, 0.1);
}

main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Single page layout with sidebar */
main.single-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

/* Home page layout without sidebar */
main.home-layout {
    min-height: calc(100vh - 200px);
}

.video-section {
    min-width: 0;
}

.video-player {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.video-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(46, 204, 113, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.play-button:hover {
    transform: scale(1.1);
    background: rgba(46, 204, 113, 1);
    box-shadow: 0 0 30px rgba(46, 204, 113, 0.5);
}

.play-button::after {
    content: '▶';
    color: white;
    font-size: 24px;
    margin-left: 4px;
}

.video-info {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(46, 204, 113, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.video-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.8rem;
}

.video-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.video-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.action-btn {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.action-btn:hover {
    background: rgba(46, 204, 113, 0.2);
    border-color: #2ECC71;
}

.action-btn.active {
    background: #2ECC71;
    border-color: #2ECC71;
}

.video-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: rgba(46, 204, 113, 0.15);
    color: #2ECC71;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.comments-section {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(46, 204, 113, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.comments-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
}

.comment-form {
    margin-bottom: 2rem;
}

.comment-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(46, 204, 113, 0.2);
    border-radius: 8px;
    padding: 12px;
    color: white;
    resize: vertical;
    min-height: 80px;
    margin-bottom: 1rem;
}

.comment-input:focus {
    outline: none;
    border-color: #2ECC71;
}

.comment-submit {
    background: #2ECC71;
    border: none;
    color: white;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.comment-submit:hover {
    background: #27AE60;
}

.comment {
    border-bottom: 1px solid rgba(46, 204, 113, 0.1);
    padding: 1rem 0;
}

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

.comment-author {
    font-weight: 600;
    color: #2ECC71;
    margin-bottom: 0.5rem;
}

.comment-text {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.comment-meta {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    gap: 1rem;
}

.sidebar {
    min-width: 0;
}

.sidebar-section {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(46, 204, 113, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.related-video {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.related-video:hover {
    background: rgba(46, 204, 113, 0.05);
}

.related-thumbnail {
    width: 120px;
    height: 68px;
    background: linear-gradient(45deg, #2ECC71, #27AE60);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.related-info {
    flex: 1;
    min-width: 0;
}

.related-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.related-meta {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Home page specific styles */
.hero-section {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: #2ECC71;
    text-shadow: 0 0 20px rgba(46, 204, 113, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.category-chip {
    background: rgba(46, 204, 113, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(46, 204, 113, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-chip::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(46, 204, 113, 0.2), transparent);
    transition: left 0.5s;
}

.category-chip:hover::before {
    left: 100%;
}

.category-chip:hover {
    background: rgba(46, 204, 113, 0.2);
    border-color: #2ECC71;
    color: #2ECC71;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.2);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.video-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(46, 204, 113, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    animation: fadeInUp 0.8s ease-out;
}

.video-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(46, 204, 113, 0.5);
}

.video-thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
    position: relative;
    overflow: hidden;
}

.video-card .video-info {
    padding: 1rem;
    background: transparent;
    border: none;
    margin: 0;
}

.video-card .video-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
    line-height: 1.3;
}

.video-card .video-meta {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0;
    margin: 0;
}

.video-card .video-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: rgba(46, 204, 113, 0.8);
    margin: 0;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 3rem 0;
}

.pagination-btn {
    background: rgba(46, 204, 113, 0.1);
    border: none;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 500;
    outline: 1px solid rgba(46, 204, 113, 0.3);
}

.pagination-btn:hover {
    background: rgba(46, 204, 113, 0.2);
    outline-color: #2ECC71;
    transform: translateY(-2px);
}

.pagination-btn.active {
    background: #2ECC71;
    outline-color: #2ECC71;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn:disabled:hover {
    transform: none;
}

.page-info {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

footer {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(46, 204, 113, 0.2);
    padding: 3rem 2rem 1rem;
    margin-top: 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: #2ECC71;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: #2ECC71;
}

.footer-bottom {
    border-top: 1px solid rgba(46, 204, 113, 0.1);
    margin-top: 2rem;
    padding-top: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(46, 204, 113, 0.2);
    border-color: #2ECC71;
    transform: translateY(-2px);
}

/* General link styling */
a {
    color: #2ECC71;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #27AE60;
}

/* More related videos section on video page */
.more-related-videos {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(46, 204, 113, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.more-related-videos .video-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 0;
}

.more-related-videos .video-card {
    animation: none;
}

.more-related-videos .video-thumbnail {
    height: 120px;
}

.more-related-videos .video-title {
    font-size: 0.9rem;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive styles */
@media (max-width: 1024px) {
    /* Fix single-layout for tablets */
    main.single-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .sidebar {
        order: 2;
    }
    
    .more-related-videos .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    header {
        padding: 1rem;
    }
    
    nav {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    /* Mobile navigation */
    .nav-links {
        display: none;
    }
    
    .search-container {
        margin: 0 1rem;
        max-width: none;
        flex: 1;
    }
    
    header {
        padding: 0.75rem;
    }
    
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    /* Main content mobile adjustments */
    main {
        padding: 1rem;
    }
    
    main.single-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Video player mobile */
    .video-player {
        margin-bottom: 1rem;
        border-radius: 8px;
    }
    
    /* Video info mobile */
    .video-info {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .video-title {
        font-size: 1.2rem;
        line-height: 1.4;
    }
    
    .video-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
        font-size: 0.85rem;
    }
    
    .video-stats {
        flex-wrap: wrap;
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .stat-item {
        font-size: 0.85rem;
    }
    
    .action-buttons {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .action-btn {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
    
    /* Tags mobile */
    .tags {
        gap: 0.3rem;
    }
    
    .tag {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
    
    /* Sidebar mobile */
    .sidebar-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .sidebar-title {
        font-size: 1rem;
    }
    
    .related-video {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }
    
    .related-thumbnail {
        width: 100%;
        height: 120px;
    }
    
    .related-title {
        font-size: 0.85rem;
    }
    
    .related-meta {
        font-size: 0.75rem;
    }
    
    /* More related videos mobile */
    .more-related-videos {
        padding: 1rem;
    }
    
    .more-related-videos .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .more-related-videos .video-thumbnail {
        height: 100px;
    }
    
    .more-related-videos .video-title {
        font-size: 0.8rem;
    }
    
    /* Home page mobile */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .categories {
        gap: 0.5rem;
    }
    
    .category-chip {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    /* Small mobile devices */
    header {
        padding: 0.5rem;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .search-box {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 8px 35px 8px 12px;
    }
    
    main {
        padding: 0.75rem;
    }
    
    /* Video info very small mobile */
    .video-info {
        padding: 0.75rem;
    }
    
    .video-title {
        font-size: 1.1rem;
    }
    
    .video-meta {
        font-size: 0.8rem;
    }
    
    .video-stats {
        gap: 0.75rem;
    }
    
    .stat-item {
        font-size: 0.8rem;
    }
    
    /* Sidebar very small mobile */
    .sidebar-section {
        padding: 0.75rem;
    }
    
    .related-video {
        margin-bottom: 0.5rem;
    }
    
    .related-thumbnail {
        height: 100px;
    }
    
    /* More related videos very small mobile */
    .more-related-videos {
        padding: 0.75rem;
    }
    
    .more-related-videos .video-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .more-related-videos .video-thumbnail {
        height: 140px;
    }
    
    .more-related-videos .video-title {
        font-size: 0.85rem;
    }
    
    /* Hero section very small mobile */
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .categories {
        gap: 0.3rem;
    }
    
    .category-chip {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
}

/* Landscape mobile orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .video-player {
        margin-bottom: 0.75rem;
    }
    
    .more-related-videos .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Very small screens */
@media (max-width: 320px) {
    .logo {
        font-size: 1.2rem;
    }
    
    .video-title {
        font-size: 1rem;
    }
    
    .more-related-videos .video-thumbnail {
        height: 120px;
    }
}
