/* Modern Video Platform CSS */

/* Hero Section - Netflix Style */
.hero-section {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 40px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 30px;
    line-height: 1.4;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.hero-btn-primary {
    background: #fff;
    color: #000;
}

.hero-btn-primary:hover {
    background: rgba(255,255,255,0.8);
    transform: scale(1.05);
}

.hero-btn-secondary {
    background: rgba(109, 109, 110, 0.7);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}

.hero-btn-secondary:hover {
    background: rgba(109, 109, 110, 0.9);
    border-color: rgba(255,255,255,0.5);
}

/* Modern-style channel sections */
.channel-section {
    margin-bottom: 40px;
    position: relative;
}

.channel-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 20px;
}

.channel-icon {
    font-size: 24px;
    margin-right: 12px;
}

.channel-title {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin-right: 15px;
}

.channel-count {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
}

.horizontal-scroll-wrapper {
    position: relative;
}

.horizontal-scroll {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding: 0 60px 20px 60px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* iOS smooth scrolling */
}

.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    transition: all 0.3s ease;
    user-select: none;
    opacity: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.channel-section:hover .scroll-arrow {
    opacity: 1;
}

.scroll-arrow:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
}

.scroll-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.scroll-arrow.left {
    left: 10px;
}

.scroll-arrow.right {
    right: 10px;
}

.scroll-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Touch/Swipe Support */
.horizontal-scroll {
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

/* Modern-style cards */
.playlist-card-modern {
    flex: 0 0 300px;
    background: #1F2124;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    scroll-snap-align: start;
}

.playlist-card-modern:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
    z-index: 10;
}

.playlist-card-modern.current {
    border-color: #e50914;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
}

.playlist-card-modern .playlist-thumbnail {
    width: 100%;
    height: 168px;
    object-fit: cover;
    background: #000;
    transition: transform 0.3s ease;
}

.playlist-card-modern:hover .playlist-thumbnail {
    transform: scale(1.1);
}

.playlist-card-modern .playlist-info {
    padding: 16px;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.8) 100%);
}

.playlist-card-modern .playlist-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #fff;
    height: 42px;
}

.playlist-card-modern .playlist-meta {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.playlist-card-modern .play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.playlist-card-modern:hover .play-overlay {
    opacity: 1;
}

.play-button {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    color: #000;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-button:hover {
    background: #fff;
    transform: scale(1.1);
}

/* Scroll indicators */
.scroll-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.8);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.channel-section:hover .scroll-indicator {
    opacity: 1;
}

.scroll-left {
    left: -25px;
}

.scroll-right {
    right: -25px;
}

/* Trending Section Styles - Simple Netflix Style */
.trending-section {
    margin-bottom: 50px;
    position: relative;
}

.trending-header {
    margin-bottom: 20px;
    padding: 0 20px;
}

.trending-title {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.trending-scroll-wrapper {
    position: relative;
}

.trending-card {
    flex: 0 0 300px;
    cursor: pointer;
    position: relative;
    scroll-snap-align: start;
}

.trending-thumbnail-container {
    position: relative;
    width: 100%;
    height: 169px; /* 16:9 aspect ratio */
    border-radius: 4px;
    overflow: hidden;
    background: #000;
}

.trending-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trending-rank {
    position: absolute;
    bottom: -5px;
    left: 8px;
    font-size: 80px;
    font-weight: 900;
    color: #000;
    text-shadow: 2px 2px 0px #fff, -2px -2px 0px #fff, 2px -2px 0px #fff, -2px 2px 0px #fff, 0px 2px 0px #fff, 2px 0px 0px #fff, 0px -2px 0px #fff, -2px 0px 0px #fff;
    z-index: 2;
}

.trending-info {
    padding: 8px 0;
}

.trending-video-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .hero-section {
        height: 50vh;
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-btn {
        width: 200px;
        justify-content: center;
    }
    
    /* Trending Section Mobile Styles */
    .trending-header {
        padding: 0 15px;
    }
    
    .trending-title {
        font-size: 20px;
    }
    
    .trending-card {
        flex: 0 0 200px;
    }
    
    .trending-thumbnail-container {
        height: 112px;
    }
    
    .trending-rank {
        font-size: 50px;
        bottom: -3px;
        left: 6px;
    }
    
    .trending-video-title {
        font-size: 12px;
    }
    
    .channel-header {
        padding: 0 15px;
    }
    
    .channel-title {
        font-size: 18px;
    }
    
    .horizontal-scroll {
        padding: 0 50px 20px 50px;
        gap: 12px;
    }
    
    .playlist-card-modern {
        flex: 0 0 calc((100vw - 124px) / 3); /* Show 3 cards on mobile */
        min-width: 200px;
        max-width: 250px;
    }
    
    .playlist-card-modern .playlist-thumbnail {
        height: 120px;
    }
    
    .playlist-card-modern:hover {
        transform: translateY(-4px) scale(1.02);
    }
    
    .scroll-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .scroll-arrow.left {
        left: 5px;
    }
    
    .scroll-arrow.right {
        right: 5px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 40vh;
        min-height: 300px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .playlist-card-modern {
        flex: 0 0 200px;
    }
    
    .playlist-card-modern .playlist-thumbnail {
        height: 112px;
    }
}
