/**
 * Filmy4wap1 - Homepage UI Styles (FIXED)
 * Premium OTT App Style with Dark Gradient Background
 */

/* ============================================
   GLOBAL BACKGROUND STYLES
   ============================================ */

/* Dark gradient background with grid and aurora effect */
.filmy4wap1-homepage {
    background: radial-gradient(1200px 600px at 12% 8%, rgba(255, 69, 58, 0.12), transparent 60%),
                radial-gradient(900px 540px at 92% 16%, rgba(56, 189, 248, 0.12), transparent 58%),
                linear-gradient(140deg, #0a0a0c, #1a0f14, #140d1f, #10232f);
    background-size: 160% 160%;
    animation: bodyShift 22s ease-in-out infinite;
    position: relative;
    min-height: 100vh;
}

/* Grid overlay */
.filmy4wap1-homepage::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

/* Aurora effect */
.filmy4wap1-homepage::after {
    content: '';
    position: fixed;
    inset: -25%;
    background: conic-gradient(from 0deg, rgba(255, 46, 99, 0.18), rgba(14, 165, 233, 0.16), rgba(251, 146, 60, 0.18), rgba(168, 85, 247, 0.12), rgba(255, 46, 99, 0.18));
    filter: blur(85px);
    pointer-events: none;
    z-index: -1;
}

@keyframes bodyShift {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    position: relative;
    z-index: 2;
}

/* Section Styles */
.filmy4wap1-section {
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-title-wrapper {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.section-title i {
    color: #a855f7;
    font-size: 1.3rem;
}

.section-view-all {
    color: #a855f7;
    font-size: 0.875rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.section-view-all:hover {
    color: #c084fc;
}

.section-controls {
    display: flex;
    gap: 10px;
}

.scroll-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
}

.scroll-btn:hover {
    background: rgba(168, 85, 247, 0.5);
    border-color: #a855f7;
}

/* Movies Grid */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 480px) {
    .movies-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 640px) {
    .movies-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) {
    .movies-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 1024px) {
    .movies-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Scroll Wrapper for Horizontal Scrolling */
.premium-scroll-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    position: relative;
    z-index: 2;
}

.premium-scroll-wrapper::-webkit-scrollbar {
    height: 4px;
}

.premium-scroll-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.premium-scroll-wrapper::-webkit-scrollbar-thumb {
    background: #a855f7;
    border-radius: 10px;
}

.premium-scroll-row {
    display: flex;
    gap: 12px;
    padding-bottom: 8px;
}

/* TOP 10 Section */
.filmy4wap1-top10-section {
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.top10-big-number {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ef4444, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -2px;
}

.top10-item {
    flex-shrink: 0;
    width: 130px;
    position: relative;
}

.top10-rank {
    position: absolute;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.15);
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    bottom: -10px;
    left: -10px;
    z-index: 1;
    font-family: monospace;
}

/* Popular TV Shows Section */
.filmy4wap1-popular-tv-section {
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

/* Glass Card Effect for Sections */
.filmy4wap1-section,
.filmy4wap1-top10-section,
.filmy4wap1-popular-tv-section {
    background: rgba(15, 15, 23, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 24px;
    padding: 20px 16px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Browse By Section Glass Box */
.browse-by-section {
    background: rgba(15, 15, 23, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 24px;
    padding: 20px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.2rem;
    }
    
    .top10-big-number {
        font-size: 2rem;
    }
    
    .top10-item {
        width: 110px;
    }
    
    .top10-rank {
        font-size: 3rem;
        bottom: -5px;
        left: -8px;
    }
    
    .filmy4wap1-section,
    .filmy4wap1-top10-section,
    .filmy4wap1-popular-tv-section {
        padding: 16px 12px;
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .movies-grid {
        gap: 12px;
    }
    
    .filmy4wap1-section,
    .filmy4wap1-top10-section,
    .filmy4wap1-popular-tv-section {
        padding: 12px 10px;
        border-radius: 16px;
    }
}