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

:root {
    /* Light Theme Colors */
    --primary-color: #e74c3c;
    --primary-dark: #c0392b;
    --secondary-color: #3498db;
    --background-color: #ffffff;
    --surface-color: #f8f9fa;
    --card-color: #ffffff;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --border-color: #e9ecef;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    
    /* Dark Theme Colors */
    --dark-bg: #1a1a1a;
    --dark-surface: #2d2d2d;
    --dark-card: #3a3a3a;
    --dark-text: #ffffff;
    --dark-text-secondary: #b0b0b0;
    --dark-border: #404040;
    --dark-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    --dark-shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Dark Theme */
.dark-theme {
    --background-color: var(--dark-bg);
    --surface-color: var(--dark-surface);
    --card-color: var(--dark-card);
    --text-primary: var(--dark-text);
    --text-secondary: var(--dark-text-secondary);
    --border-color: var(--dark-border);
    --shadow: var(--dark-shadow);
    --shadow-hover: var(--dark-shadow-hover);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* App Container */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: var(--card-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

/* Prevent any pseudo-elements from appearing on header */
.header::before,
.header::after,
.header *::before,
.header *::after {
    display: none !important;
    content: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0;
}

.logo::before,
.logo::after {
    display: none !important;
    content: none !important;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--surface-color);
    transform: scale(1.1);
}


/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem 1rem 4rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Pages */
.page {
    display: none;
    animation: fadeIn 0.3s ease;
}

.page.active {
    display: block;
}

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

/* Featured Section */
.featured-section {
    margin-bottom: 8rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 2rem 1rem 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.page-header h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Channels Grid */
.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    margin-top: 2rem;
}

.channel-card {
    background: var(--card-color);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.channel-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.channel-logo {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.channel-logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.channel-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0;
}

/* Player Page Styles */
.back-section {
    margin-bottom: 2rem;
}

.back-to-home {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.back-to-home:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Channel Header - Simplified */
.channel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--card-color);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.channel-logo-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.channel-logo-large {
    width: 80px;
    height: 80px;
    background: transparent;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    box-shadow: none;
}

.channel-logo-large img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 15px;
}

.channel-info {
    flex: 1;
}

.channel-name-large {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.channel-category-large {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* Video Player Section */
.video-player-section {
    margin-bottom: 3rem;
}

.video-container {
    position: relative;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: none;
    aspect-ratio: 16/9;
    max-width: 900px;
    margin: 0 auto;
    cursor: pointer;
    width: 100%;
    /* Prevent any darkening effects on hover/touch */
    transition: none !important;
}

/* Remove any darkening effects on video container */
.video-container:hover {
    box-shadow: none;
    /* Remove any background changes */
    background: #000 !important;
}

/* Desktop fullscreen video container */
@media (min-width: 768px) {
    .video-container {
        max-width: 100%;
        width: 100%;
    }
}

.video-container:hover {
    box-shadow: none;
}

/* Centered Play Button Overlay - Only show when video is paused */
.video-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: auto;
    box-shadow: 0 8px 30px rgba(231, 76, 60, 0.6);
}

/* Show play button by default on all devices when video is paused */
.video-container::after {
    opacity: 0.9;
}

/* Show play button on hover for better UX */
.video-container:hover::after {
    opacity: 1;
}

/* Hide play button when video is playing */
.video-container.playing::after {
    opacity: 0 !important;
}

/* Video container stays black when playing */
.video-container.playing {
    background: #000 !important;
}

/* Mobile-specific play button sizing - smaller */
@media (max-width: 768px) {
    .video-container::after {
        width: 60px;
        height: 60px;
    }
}

/* Play icon inside the button */
.video-container::before {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-45%, -50%);
    color: white;
    font-size: 2rem;
    z-index: 11;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: auto;
}

/* Show play icon by default on all devices when video is paused */
.video-container::before {
    opacity: 1;
}

/* Show play icon on hover for better UX */
.video-container:hover::before {
    opacity: 1;
}

/* Hide play icon when video is playing */
.video-container.playing::before {
    opacity: 0 !important;
}

/* Mobile-specific play icon sizing - smaller */
@media (max-width: 768px) {
    .video-container::before {
        font-size: 1.5rem;
    }
}

/* Live indicator badge (simplified) */
.video-player-section {
    position: relative;
}

.video-player-section::before {
    content: '🔴 LIVE';
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(231, 76, 60, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
    pointer-events: none;
    display: block;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Ensure the live indicator only appears on video player section */
.header .logo::before,
.header::before {
    display: none !important;
    content: none !important;
}

#videoPlayer {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    /* Only hide the play button, keep other controls */
    -webkit-media-controls-play-button: none !important;
    -webkit-media-controls-start-playback-button: none !important;
    -webkit-media-controls-overlay-play-button: none !important;
    /* Prevent any darkening effects */
    filter: none !important;
    opacity: 1 !important;
}

/* Prevent any overlay effects on video */
#videoPlayer:hover,
#videoPlayer:focus,
#videoPlayer:active {
    filter: none !important;
    opacity: 1 !important;
    background: #000 !important;
}

/* Completely disable any browser video overlays */
#videoPlayer::-webkit-media-controls-overlay-play-button {
    display: none !important;
}

#videoPlayer::-webkit-media-controls-start-playback-button {
    display: none !important;
}

/* Remove any dark overlays from video controls */
#videoPlayer::-webkit-media-controls-panel {
    background: transparent !important;
}

#videoPlayer::-webkit-media-controls-enclosure {
    background: transparent !important;
}

/* Prevent any pseudo-elements on video */
#videoPlayer::before,
#videoPlayer::after {
    display: none !important;
    content: none !important;
}

/* Ensure video container has no dark overlays */
.video-container::before,
.video-container::after {
    /* Only allow our custom play button, no other overlays */
}

/* Remove any additional overlays that might be added by browser */
.video-container *::before,
.video-container *::after {
    display: none !important;
    content: none !important;
    background: transparent !important;
    opacity: 0 !important;
}

/* Exception for our custom play button */
.video-container::before {
    display: block !important;
    content: '▶' !important;
}

.video-container::after {
    display: flex !important;
    content: '' !important;
}

/* Fullscreen styles */
.video-container.fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    border-radius: 0 !important;
    max-width: none !important;
    max-height: none !important;
}

.video-container.fullscreen #videoPlayer {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

/* Hide play button in fullscreen */
.video-container.fullscreen::after,
.video-container.fullscreen::before {
    display: none !important;
}

/* Completely remove all overlays on all screen sizes */
@media (max-width: 767px) {
    .video-container {
        box-shadow: none !important;
    }
    
    .video-container:hover {
        box-shadow: none !important;
    }
    
    #videoPlayer {
        box-shadow: none !important;
    }
    
    #videoPlayer:hover {
        box-shadow: none !important;
    }
}

@media (min-width: 768px) {
    .video-container {
        box-shadow: none !important;
    }
    
    .video-container:hover {
        box-shadow: none !important;
    }
    
    #videoPlayer {
        box-shadow: none !important;
    }
    
    #videoPlayer:hover {
        box-shadow: none !important;
    }
}

/* Video overlay removed to prevent darkening effect */

.play-button {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.play-button:hover {
    transform: scale(1.1);
    background: var(--primary-dark);
}

/* Channel Description Section - Simplified */
.channel-description-section {
    margin-bottom: 2rem;
    background: var(--card-color);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.channel-description-section h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.channel-description-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Other Channels Section */
.other-channels-section {
    margin-bottom: 2rem;
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.other-channels-section h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.other-channels-section .channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.other-channel-card {
    background: var(--card-color);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    display: block;
}

.other-channel-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.other-channel-logo {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.other-channel-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 0.5rem;
    border-radius: 5px;
}

.other-channel-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.other-channel-category {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Blog Page */
.blog-page-container {
    max-width: 900px;
    margin: 0 auto;
}

.blog-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 1rem;
    background: var(--card-color);
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.blog-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.blog-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.blog-post {
    background: var(--card-color);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.blog-post:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.blog-post.featured {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, var(--card-color) 0%, var(--surface-color) 100%);
}

.blog-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.blog-category {
    background: var(--primary-color);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.blog-post-title {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
}

.blog-post h3 {
    color: var(--text-primary);
    margin: 2rem 0 1rem 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.blog-post h4 {
    color: var(--text-primary);
    margin: 1.5rem 0 0.75rem 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.blog-post-excerpt {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--surface-color);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.blog-post-excerpt p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
    font-style: italic;
}

.blog-post-content {
    margin-bottom: 2rem;
}

.blog-post-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.blog-post-content ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.blog-post-content li {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.blog-post-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.blog-post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
}

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

.tag {
    background: var(--surface-color);
    color: var(--text-secondary);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.blog-share {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.blog-share span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.share-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

/* Newsletter Signup */
.newsletter-signup {
    background: var(--card-color);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    margin-top: 3rem;
    border: 2px solid var(--primary-color);
}

.newsletter-signup h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.newsletter-signup p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.newsletter-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
    gap: 1rem;
    flex-wrap: wrap;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 1rem;
    background: var(--background-color);
    color: var(--text-primary);
    min-width: 200px;
}

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

.newsletter-form button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Responsive Blog Styles */
@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 2rem;
    }
    
    .blog-post {
        padding: 1.5rem;
    }
    
    .blog-post-title {
        font-size: 1.5rem;
    }
    
    .blog-post-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .blog-post-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .newsletter-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .newsletter-form input {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .blog-header {
        padding: 1.5rem 1rem;
    }
    
    .blog-header h1 {
        font-size: 1.8rem;
    }
    
    .blog-post {
        padding: 1rem;
    }
    
    .blog-post-title {
        font-size: 1.3rem;
    }
    
    .newsletter-signup {
        padding: 1.5rem;
    }
}

/* About Page */
.about-container {
    max-width: 800px;
    margin: 0 auto;
}

.about-content {
    background: var(--card-color);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.about-section {
    margin-bottom: 2rem;
}

.about-section h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.about-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li::before {
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Contact Page Styles */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--card-color);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.contact-item h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-item p {
    margin: 0;
    color: var(--text-secondary);
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.faq-item {
    padding: 1.5rem;
    background: var(--card-color);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.faq-item h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.faq-item p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    padding: 0.75rem 0;
    z-index: 100;
}

.nav-item {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-width: 60px;
}

.nav-item.active {
    color: var(--primary-color);
    background: var(--surface-color);
}

.nav-item:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-item .icon {
    font-size: 1.3rem;
    line-height: 1;
}

.nav-item span:not(.icon) {
    font-size: 0.8rem;
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--surface-color);
    padding: 2rem 1rem 6rem 1rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

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

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

.footer-description {
    max-width: 900px;
    margin: 0 auto 1.5rem auto;
    padding: 1.5rem;
}

.footer-description p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    text-align: left;
}

.footer-description p:last-child {
    margin-bottom: 0;
}

.footer-text p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    display: none;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        padding: 1rem;
    }
    
    .main-content {
        padding: 1rem 0.5rem 4rem 0.5rem;
    }
    
    .channels-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .channel-card {
        padding: 1rem;
    }
    
    .channel-header {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding: 1.5rem;
    }
    
    .channel-logo-section {
        flex-direction: column;
        gap: 1rem;
    }
    
    .channel-logo-large {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .channel-name-large {
        font-size: 1.5rem;
    }
    
    .other-channels-section .channels-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.75rem;
    }
    
    .other-channel-card {
        padding: 0.75rem;
    }
    
    .other-channel-logo {
        font-size: 1.5rem;
    }
    
    .other-channel-logo-img {
        width: 30px;
        height: 30px;
    }
    
    .other-channel-name {
        font-size: 0.8rem;
    }
    
    .footer {
        padding: 1.5rem 1rem 6rem 1rem;
    }
    
    .footer-links {
        gap: 1rem;
    }
    
    .footer-description {
        padding: 1rem;
    }
    
    .footer-description p {
        font-size: 0.9rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .channels-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .channel-card {
        padding: 0.75rem;
    }
    
    .channel-logo {
        font-size: 2rem;
    }
    
    .channel-logo-img {
        width: 40px;
        height: 40px;
    }
    
    .nav-item span {
        font-size: 0.7rem;
    }
    
    .footer {
        padding: 1rem 0.5rem 6rem 0.5rem;
    }
    
    .footer-description {
        padding: 0.75rem;
    }
    
    .footer-description p {
        font-size: 0.85rem;
        text-align: center;
    }
    
    /* Mobile Video Player - Better aspect ratio and height */
    .video-container {
        aspect-ratio: 16/9 !important; /* Standard video aspect ratio */
        margin: 0 -1rem; /* Extend to screen edges */
        border-radius: 0 !important; /* Remove border radius for full width */
        max-height: 50vh !important; /* Use viewport height for better mobile experience */
        min-height: 200px !important; /* Ensure minimum height */
    }
    
    .video-player-section {
        margin-bottom: 2rem;
    }
    
    /* Channel header adjustments for mobile */
    .channel-header {
        padding: 1rem 1rem 0.5rem 1rem;
    }
    
    .channel-logo-section {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
    
    .channel-logo-large {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        background: transparent;
        color: var(--primary-color);
        box-shadow: none;
    }
    
    .channel-name-large {
        font-size: 1.2rem;
        margin: 0;
    }
}

/* Icon styling for emoji icons */
.icon {
    display: inline-block;
    line-height: 1;
    font-style: normal;
}

/* Video player styling */
video {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 15px;
    outline: none;
}

/* Hide time display for live streams */
video::-webkit-media-controls-timeline,
video::-webkit-media-controls-current-time-display,
video::-webkit-media-controls-time-remaining-display {
    display: none !important;
}

video::-moz-media-controls-timeline,
video::-moz-media-controls-current-time-display,
video::-moz-media-controls-time-remaining-display {
    display: none !important;
}

/* Simplified control panel */
video::-webkit-media-controls-panel {
    background: transparent !important;
}

video::-webkit-media-controls-enclosure {
    border-radius: 0 0 10px 10px;
}

/* Simplified custom video controls (hidden by default, use native controls) */
.video-controls-player {
    display: none;
}

/* Fullscreen video styling */
#videoPlayer:-webkit-full-screen {
    object-fit: contain !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #000;
}

#videoPlayer:-moz-full-screen {
    object-fit: contain !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #000;
}

#videoPlayer:fullscreen {
    object-fit: contain !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #000;
}

/* ============================================
   RESPONSIVE H1 & PLAYER PAGE ENHANCEMENTS
   ============================================ */

/* Base H1 Styles - Responsive Typography */
h1 {
    font-size: clamp(1.25rem, 3.5vw, 2rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Featured Section H1 */
.featured-section h1 {
    font-size: clamp(1.25rem, 4vw, 2rem);
    padding: 0 1rem;
    margin-bottom: 2rem;
}

/* Page Header H1 */
.page-header h1 {
    font-size: clamp(1.5rem, 4.5vw, 2.75rem);
}

/* Content Section H1 */
.content-section h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
}

/* Desktop (1200px and up) */
@media (min-width: 1200px) {
    h1 {
        font-size: 2rem;
    }
    
    .featured-section h1 {
        font-size: 2rem;
    }
    
    .channel-name-large {
        font-size: 2rem;
    }
    
    .video-container {
        max-width: 1200px;
        margin: 0 auto;
    }
}

/* Large Tablets & Small Desktops (992px - 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    h1 {
        font-size: 1.875rem;
    }
    
    .featured-section h1 {
        font-size: 1.875rem;
    }
    
    .channel-name-large {
        font-size: 1.875rem;
    }
}

/* Tablets (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    h1 {
        font-size: 1.625rem;
        padding: 0 0.75rem;
    }
    
    .featured-section h1 {
        font-size: 1.625rem;
    }
    
    .channel-header {
        padding: 1.5rem 1rem;
    }
    
    .channel-name-large {
        font-size: 1.75rem;
    }
    
    .video-container {
        aspect-ratio: 16/9;
    }
}

/* Small Tablets & Large Phones (576px - 767px) */
@media (max-width: 767px) and (min-width: 576px) {
    h1 {
        font-size: 1.375rem;
        padding: 0 0.5rem;
        margin-bottom: 1rem;
    }
    
    .featured-section h1 {
        font-size: 1.375rem;
        margin-bottom: 1.5rem;
    }
    
    .channel-header {
        padding: 1.25rem 0.75rem;
    }
    
    .channel-name-large {
        font-size: 1.5rem;
    }
    
    .video-container {
        aspect-ratio: 16/9;
        max-height: 40vh;
        min-height: 250px;
    }
    
    .channel-logo-large {
        width: 55px;
        height: 55px;
    }
}

/* Mobile Phones (up to 575px) */
@media (max-width: 575px) {
    h1 {
        font-size: 1.25rem;
        padding: 0 0.5rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }
    
    .featured-section h1 {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
        padding: 0 0.75rem;
    }
    
    .page-header h1 {
        font-size: 1.25rem;
    }
    
    .channel-header {
        padding: 1rem 0.5rem;
    }
    
    .channel-name-large {
        font-size: 1.25rem;
        line-height: 1.3;
    }
    
    .video-container {
        aspect-ratio: 16/9;
        max-height: 35vh;
        min-height: 200px;
    }
    
    .channel-logo-large {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .other-channels-section h2 {
        font-size: 1.25rem;
        padding: 0 0.5rem;
    }
}

/* Extra Small Phones (up to 375px) */
@media (max-width: 375px) {
    h1 {
        font-size: 1.125rem;
        padding: 0 0.5rem;
    }
    
    .featured-section h1 {
        font-size: 1.125rem;
        padding: 0 0.5rem;
    }
    
    .channel-name-large {
        font-size: 1.125rem;
    }
    
    .video-container {
        aspect-ratio: 16/9;
        max-height: 30vh;
        min-height: 180px;
    }
    
    .channel-logo-large {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
}

/* Landscape Orientation Optimization for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    h1 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .featured-section h1 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .channel-header {
        padding: 0.75rem 0.5rem;
    }
    
    .video-container {
        aspect-ratio: 16/9;
        max-height: 25vh;
        min-height: 150px;
    }
    
    .channel-name-large {
        font-size: 1rem;
    }
    
    .channel-logo-large {
        width: 40px;
        height: 40px;
    }
}

/* Player Page Specific Responsiveness */
.video-player-section {
    width: 100%;
    max-width: 100%;
}

.video-container {
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Ensure video always fits properly */
@media (max-width: 768px) {
    .video-player-section {
        padding: 0;
        margin-bottom: 1.5rem;
    }
    
    .video-container {
        border-radius: 0;
        margin: 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }
    
    /* Better touch targets for mobile */
    #videoPlayer {
        cursor: pointer;
    }
    
    /* Improve video controls visibility on mobile */
    #videoPlayer::-webkit-media-controls {
        background: transparent !important;
    }
    
    #videoPlayer::-webkit-media-controls-panel {
        background: transparent !important;
    }
}

/* Ultra-wide screens */
@media (min-width: 1920px) {
    .video-container {
        max-width: 1600px;
        margin: 0 auto;
    }
    
    h1 {
        font-size: 2.25rem;
    }
    
    .featured-section h1 {
        font-size: 2.25rem;
    }
}