/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Header Styles */
.header {
    position: sticky;
    top: 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0.5rem 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.logo-img {
    width:370px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: #f0f0f0;
    min-width: 370px;
    min-height: 50px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ff0000;
}

.nav {
    display: flex;
    gap: 0.5rem;
}

.nav-tab {
    padding: 0.75rem 1.5rem;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.nav-tab:hover,
.nav-tab.active {
    background: #ff0000;
    color: #fff;
}

.youtube-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #ff0000;
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.youtube-link:hover {
    background: #cc0000;
    transform: translateY(-2px);
}

.youtube-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Main Content */
.main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: calc(100vh - 200px);
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
    gap: 1rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff0000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(1.05); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1.05); }
}

/* Load More Button Styles */
.load-more-container {
    text-align: center;
    margin: 3rem 0;
    padding: 1rem;
}

.load-more-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.load-more-btn:active {
    transform: translateY(0);
}

.load-more-text {
    font-weight: 600;
}

.load-more-count {
    opacity: 0.8;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Loading state for load more button */
.load-more-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.load-more-btn.loading .load-more-text::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

/* Floating Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
}

.scroll-to-top:active {
    transform: translateY(-1px);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.scroll-to-top:hover svg {
    transform: translateY(-2px);
}

/* Scroll to top button responsive */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .scroll-to-top {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
    
    .scroll-to-top svg {
        width: 18px;
        height: 18px;
    }
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.retry-btn {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: #ff0000;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    background: #cc0000;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Hero Section */
.hero-section {
    margin-bottom: 3rem;
}

.hero-video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.hero-video,
.hero-video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-video iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Hero Short Section */
.hero-short-section {
    margin-bottom: 3rem;
    text-align: center;
}

.hero-short-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #333;
}

.hero-short-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.hero-short,
.hero-short-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-short iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* Section Titles */
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #333;
}

/* Videos Grid */
.videos-section {
    margin-bottom: 3rem;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.video-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #f0f0f0;
    overflow: hidden;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
    background: #f0f0f0;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-info {
    padding: 1rem;
}

.video-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #666;
}

/* Shorts List */
.shorts-section {
    margin-bottom: 3rem;
}

.shorts-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 100%;
    margin: 0 auto;
}

.short-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.short-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.short-thumbnail {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 177.78%; /* 9:16 aspect ratio */
    background: #f0f0f0;
    overflow: hidden;
}

.short-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
    background: #f0f0f0;
}

.short-card:hover .short-thumbnail img {
    transform: scale(1.05);
}

.short-info {
    padding: 1rem;
}

.short-title {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.short-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: #666;
}

/* Skeleton Loader */
.skeleton-loader {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Watch Page Styles */
.watch-main {
    padding: 1rem;
}

.watch-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.video-player-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.video-player-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.video-player,
.video-player-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-player iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.video-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.video-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #666;
}

.subscribe-cta {
    text-align: center;
    padding: 1rem;
}

.subscribe-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: #ff0000;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.subscribe-btn:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

/* Share Section */
.share-section {
    margin-top: 1rem;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.share-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #666;
    text-align: center;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #fff;
    min-width: auto;
}

.share-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.share-btn.whatsapp {
    background: #25D366;
}

.share-btn.whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

.share-btn.facebook {
    background: #1877F2;
}

.share-btn.facebook:hover {
    background: #166FE5;
    transform: translateY(-2px);
}

.share-btn.twitter {
    background: #000000;
}

.share-btn.twitter:hover {
    background: #14171A;
    transform: translateY(-2px);
}

.share-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
}

.share-btn.instagram:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.share-btn.pinterest {
    background: #E60023;
}

.share-btn.pinterest:hover {
    background: #BD081C;
    transform: translateY(-2px);
}

.share-btn.linkedin {
    background: #0A66C2;
}

.share-btn.linkedin:hover {
    background: #004182;
    transform: translateY(-2px);
}

.share-btn.telegram {
    background: #0088CC;
}

.share-btn.telegram:hover {
    background: #0077B3;
    transform: translateY(-2px);
}

.share-btn.copy-link {
    background: #6C757D;
}

    .share-btn.copy-link:hover {
        background: #5A6268;
        transform: translateY(-2px);
    }
    
    /* Mobile responsive for share buttons */
    @media (max-width: 768px) {
        .share-buttons {
            gap: 0.4rem;
        }
        
        .share-btn {
            padding: 0.4rem 0.6rem;
            font-size: 0.7rem;
        }
        
        .share-btn svg {
            width: 12px;
            height: 12px;
        }
    }
    
    @media (max-width: 480px) {
        .share-buttons {
            gap: 0.3rem;
        }
        
        .share-btn {
            padding: 0.35rem 0.5rem;
            font-size: 0.65rem;
        }
        
        .share-section {
            padding: 0.75rem;
        }
    }

.recommended-section {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.recommended-videos {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recommended-video {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.recommended-video:hover {
    background: #f5f5f5;
}

.recommended-thumbnail {
    width: 120px;
    height: 67.5px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.recommended-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recommended-info {
    flex: 1;
    min-width: 0;
}

.recommended-title {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommended-meta {
    font-size: 0.75rem;
    color: #666;
}

/* Footer */
.footer {
    background: #333;
    color: #fff;
    padding: 2rem 0;
    margin-top: 4rem;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    min-height: 60px;
    /* New layout order: copyright (left), footer-links (center), social-links (right) */
}

.copyright {
    font-size: 0.875rem;
    color: #ccc;
    margin: 0;
    flex-shrink: 0;
}

.footer-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
    flex-shrink: 0;
}

.footer-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #667eea;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #555;
    color: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: #ff0000;
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Ensure footer social icons have proper styling with high specificity */
.footer .social-links .social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor !important;
}

/* Additional specificity to override any conflicting rules */
.footer .social-links .social-link svg path {
    fill: currentColor !important;
}

/* Maximum specificity to ensure footer social icons are visible */
.footer .social-links .social-link svg,
.footer .social-links .social-link svg path,
.footer .social-links .social-link svg * {
    fill: currentColor !important;
    color: currentColor !important;
}

/* Ensure all social links are visible */
.footer .social-links .social-link {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure footer links are visible */
.footer .footer-links .footer-link {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure copyright is visible */
.footer .copyright {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure footer layout works properly */
.footer {
    position: relative !important;
    z-index: 9999 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    transform: none !important;
    filter: none !important;
    pointer-events: auto !important;
    user-select: auto !important;
    margin-top: auto !important;
    flex-shrink: 0 !important;
    /* Additional protection against hiding */
    max-height: none !important;
    min-height: 60px !important;
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    bottom: 0 !important;
}

/* Additional footer element visibility */
.footer .social-links,
.footer .footer-links,
.footer .copyright {
    position: relative !important;
    z-index: 1 !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    transform: none !important;
    filter: none !important;
    pointer-events: auto !important;
    user-select: auto !important;
}

/* Ensure footer placeholder is always visible */
#footer-placeholder {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    transform: none !important;
    filter: none !important;
    pointer-events: auto !important;
    user-select: auto !important;
    position: relative !important;
    z-index: 10 !important;
}

/* Ensure proper spacing between footer elements - NEW LAYOUT */
.footer .copyright {
    margin-right: auto !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.footer .footer-links {
    margin: 0 auto !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.footer .social-links {
    margin-left: auto !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure footer content is always visible */
.footer .footer-content {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    transform: none !important;
    filter: none !important;
    pointer-events: auto !important;
    user-select: auto !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .watch-container {
        grid-template-columns: 1fr 300px;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .watch-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .recommended-section {
        order: -1;
    }
    
    .recommended-videos {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .recommended-video {
        flex-direction: column;
        padding: 0;
    }
    
    .recommended-thumbnail {
        width: 100%;
        height: 0;
        padding-bottom: 56.25%;
        position: relative;
    }
    
    .recommended-thumbnail img {
        position: absolute;
        top: 0;
        left: 0;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    .logo-img {
        width: 250px;
        height: 40px;
    }
    
    .nav {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    
    .youtube-link {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .main {
        padding: 1rem 0.5rem;
    }
    
    .videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .shorts-list {
        max-width: 100%;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .hero-short-container {
        max-width: 600px;
    }
    
    .footer-content {
        flex-direction: column !important;
        text-align: center !important;
        gap: 1.5rem !important;
        padding: 1rem 0 !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .copyright {
        order: 1 !important;
        margin: 0 !important;
        text-align: center !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .footer-links {
        gap: 1rem !important;
        margin: 0 !important;
        justify-content: center !important;
        order: 2 !important;
        flex-wrap: wrap !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .social-links {
        justify-content: center !important;
        order: 3 !important;
        flex-wrap: wrap !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Reset margins for mobile */
    .footer .social-links,
    .footer .footer-links,
    .footer .copyright {
        margin: 0;
    }
    
    .load-more-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .load-more-container {
        margin: 2rem 0;
    }
}

@media (max-width: 480px) {
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .recommended-videos {
        grid-template-columns: 1fr;
    }
    
    .load-more-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .load-more-container {
        margin: 1.5rem 0;
    }
    
    .shorts-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .hero-short-container {
        max-width: 400px;
    }
    
    .video-info,
    .short-info {
        padding: 0.75rem;
    }
    
    .video-title,
    .short-title {
        font-size: 0.875rem;
    }
    
    .video-meta,
    .short-meta {
        font-size: 0.75rem;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* Lazy Loading */
.lazy-video {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-video.loaded {
    opacity: 1;
}

/* Focus Styles for Accessibility */
.nav-tab:focus,
.youtube-link:focus,
.video-card:focus,
.short-card:focus,
.subscribe-btn:focus,
.social-link:focus {
    outline: 2px solid #ff0000;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .nav,
    .youtube-link,
    .subscribe-cta {
        display: none !important;
    }
    
    .main {
        padding: 0;
    }
    
    .video-card,
    .short-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
} 

/* Additional footer visibility fixes */
.footer .social-links {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-shrink: 0 !important;
}

.footer .footer-links {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-shrink: 0 !important;
}

.footer .copyright {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-shrink: 0 !important;
}

/* Force all social links to be visible */
.footer .social-links .social-link {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-shrink: 0 !important;
}

/* Force all footer links to be visible */
.footer .footer-links .footer-link {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-shrink: 0 !important;
}

/* Ensure SVG icons are visible */
.footer .social-links .social-link svg {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    fill: currentColor !important;
}

.footer .social-links .social-link svg path {
    fill: currentColor !important;
}

/* Override any potential hiding styles */
.footer * {
    visibility: visible !important;
}

.footer .social-links *,
.footer .footer-links *,
.footer .copyright {
    display: revert !important;
    visibility: visible !important;
    opacity: 1 !important;
} 

/* Additional aggressive footer visibility fixes */
.footer,
.footer *,
.footer .social-links,
.footer .social-links *,
.footer .footer-links,
.footer .footer-links *,
.footer .copyright,
.footer .copyright * {
    display: revert !important;
    visibility: visible !important;
    opacity: 1 !important;
    clip: auto !important;
    clip-path: none !important;
    position: static !important;
    transform: none !important;
    filter: none !important;
    pointer-events: auto !important;
    user-select: auto !important;
}

/* Ensure footer containers are properly displayed */
.footer .footer-content {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-shrink: 0 !important;
}

/* Override any print styles that might be applied */
@media screen {
    .footer,
    .footer *,
    .footer .social-links,
    .footer .social-links *,
    .footer .footer-links,
    .footer .footer-links *,
    .footer .copyright,
    .footer .copyright * {
        display: revert !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Force specific display values for different element types */
.footer .social-links {
    display: flex !important;
}

.footer .social-links .social-link {
    display: flex !important;
}

.footer .footer-links {
    display: flex !important;
}

.footer .footer-links .footer-link {
    display: inline-block !important;
}

.footer .copyright {
    display: block !important;
}

.footer .social-links .social-link svg {
    display: block !important;
} 