.container { max-width: var(--max-width); margin: 0 auto; padding: 0 16px; }
#main-content { min-height: calc(100vh - var(--header-height) - var(--footer-height)); padding-top: var(--header-height); }

/* Navbar */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; height: var(--header-height);
    background: rgba(10,10,10,0.95); backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05); z-index: 1000;
    display: flex; align-items: center; justify-content: space-between; padding: 0 16px;
}
.logo { display: flex; align-items: center; gap: 8px; font-size: 1.3rem; font-weight: 800; color: var(--accent); }
.logo i { font-size: 1.5rem; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.search-trigger, .menu-toggle {
    width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: var(--bg-tertiary); color: var(--text-secondary); font-size: 1rem;
}

/* Footer Nav (Mobile App Style) */
.footer-nav {
    position: fixed; bottom: 0; left: 0; right: 0; height: var(--footer-height);
    background: rgba(10,10,10,0.98); backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.05); z-index: 1000;
    display: flex; justify-content: space-around; align-items: center; padding: 0 8px;
}
.footer-nav-item {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    color: var(--text-muted); font-size: 0.65rem; font-weight: 500;
    padding: 8px 12px; border-radius: var(--radius-sm); transition: var(--transition);
    flex: 1; max-width: 80px;
    text-decoration: none;
    min-height: 56px;
    justify-content: flex-end;
}
.footer-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    margin-bottom: 2px;
}
.footer-nav-icon i {
    font-size: 1.3rem;
    line-height: 1;
}
.footer-nav-label {
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.footer-nav-item.active { color: var(--accent); }
.footer-nav-item:active { transform: scale(0.95); }

/* Section Headers */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; padding: 0 4px; }
.section-title { font-size: 1.1rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.section-title i { color: var(--accent); font-size: 0.9rem; }
.section-link { color: var(--text-secondary); font-size: 0.8rem; font-weight: 500; display: flex; align-items: center; gap: 4px; }

/* Hero */
.hero {
    position: relative; height: 55vh; min-height: 400px; max-height: 600px;
    display: flex; align-items: flex-end; overflow: hidden; margin-bottom: 24px;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, var(--bg-primary) 0%, rgba(10,10,10,0.7) 40%, rgba(10,10,10,0.3) 100%);
    z-index: 1;
}
.hero-content { position: relative; z-index: 2; padding: 0 16px 32px; width: 100%; }
.hero-content h1 { font-size: 1.8rem; font-weight: 800; line-height: 1.2; margin-bottom: 12px; }
.hero-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.hero-meta .rating { display: flex; align-items: center; gap: 4px; background: rgba(245,197,24,0.15); color: var(--warning); padding: 4px 10px; border-radius: var(--radius-sm); font-weight: 700; font-size: 0.85rem; }
.hero-meta .year, .hero-meta .runtime { color: var(--text-secondary); font-size: 0.9rem; }
.hero-content p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-actions { display: flex; gap: 10px; }

/* Hero Badge */
.hero-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent);
    color: var(--bg-primary);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Dots */
.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: var(--transition);
}

.hero-dot.active {
    background: var(--accent);
    width: 24px;
    border-radius: 4px;
}

/* Provider Strip (horizontal logos) */
.provider-strip {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 12px 0; margin-bottom: 24px; -webkit-overflow-scrolling: touch;
}
.provider-strip::-webkit-scrollbar { display: none; }
.provider-item {
    flex: 0 0 auto; scroll-snap-align: start;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 10px 14px; background: var(--bg-card); border-radius: var(--radius-md);
    border: 1.5px solid transparent; cursor: pointer; transition: var(--transition);
    min-width: 72px;
}
.provider-item.active { border-color: var(--accent); background: var(--bg-hover); }
.provider-item img { width: 40px; height: 40px; border-radius: 8px; object-fit: contain; }
.provider-item .provider-icon {
    width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 800; font-size: 0.9rem;
}
.provider-item span { font-size: 0.65rem; font-weight: 600; color: var(--text-secondary); text-align: center; white-space: nowrap; }

/* Toast */
#toast-container { position: fixed; bottom: calc(var(--footer-height) + 16px); left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 8px; width: 90%; max-width: 400px; }
.toast {
    background: var(--bg-tertiary); border: 1px solid rgba(255,255,255,0.1); padding: 12px 16px;
    border-radius: var(--radius-md); box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px;
    animation: slideUp 0.3s ease; font-size: 0.9rem;
}
.toast.success { border-left: 3px solid var(--accent); }
.toast.error { border-left: 3px solid var(--danger); }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }

/* Empty State */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state i { font-size: 2.5rem; margin-bottom: 12px; opacity: 0.5; }
.empty-state h3 { color: var(--text-secondary); margin-bottom: 6px; font-size: 1.1rem; }
.empty-state p { font-size: 0.9rem; }
