/* Memon Stream - Premium Theme V2 */

:root {
    --bg-app: #08090a;
    --bg-card: #121418;
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.5);
    --secondary: #8b5cf6;

    --text-main: #ffffff;
    --text-muted: #94a3b8;

    --header-height: 80px;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-app);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- Premium Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 60px;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(8, 9, 10, 0.95);
    backdrop-filter: blur(20px);
    height: 85px;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    z-index: 2;
    color: white;
}

.logo-wrapper {
    background: transparent;
    padding: 0;
    border: none;
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 75px;
    width: auto;
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.4));
    transition: all 0.3s ease;
}

.nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 1;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    padding: 10px 22px;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    position: relative;
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: white;
    background: rgba(59, 130, 246, 0.1);
}

.nav-right svg {
    color: white;
}

.navbar.scrolled .nav-logo {
    height: 60px;
}

/* --- Hero Slider --- */
.hero-wrapper {
    width: 100%;
    height: 100vh;
    padding: 0;
}

.hero-card {
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    transform: scale(1.1);
}

.hero-bg.active {
    opacity: 1;
    animation: slowPan 25s infinite alternate ease-in-out;
}

@keyframes slowPan {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.15) translate(-1%, -1%);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 40%, transparent 100%),
        linear-gradient(0deg, var(--bg-app) 5%, transparent 30%);
    display: flex;
    align-items: center;
    padding-left: 10%;
    z-index: 2;
}

.hero-info {
    max-width: 700px;
}

.hero-title {
    font-size: 5.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 25px;
    letter-spacing: -2px;
}

.hero-desc {
    font-size: 1.3rem;
    color: #cbd5e1;
    margin-bottom: 45px;
    line-height: 1.6;
    max-width: 550px;
}

/* --- Sections & Cards --- */
.section {
    padding: 120px 60px 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 45px;
    display: flex;
    align-items: center;
    gap: 15px;
    letter-spacing: -1px;
}

.section-title i {
    color: var(--accent);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 40px;
}

/* --- Special Section: Top 10 --- */
.top-10-grid {
    display: flex;
    gap: 60px;
    overflow-x: auto;
    padding-bottom: 40px;
    scrollbar-width: none;
}

.top-10-grid::-webkit-scrollbar {
    display: none;
}

.top-10-item {
    display: flex;
    align-items: flex-end;
    min-width: 320px;
    position: relative;
    transition: 0.5s;
}

.top-10-item:hover {
    transform: scale(1.05);
}

.rank-number {
    font-size: 15rem;
    font-weight: 900;
    line-height: normal;
    color: #08090a;
    -webkit-text-stroke: 2px #334155;
    position: absolute;
    left: -30px;
    bottom: -30px;
    z-index: 0;
    font-family: 'Inter', sans-serif;
}

.top-10-item:hover .rank-number {
    -webkit-text-stroke: 2px var(--accent);
    color: rgba(59, 130, 246, 0.1);
}

.top-10-card {
    width: 220px;
    height: 330px;
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    margin-left: 60px;
}

/* --- Wide Originals --- */
.wide-card {
    aspect-ratio: 16/9;
    grid-column: span 2;
}

@media (max-width: 768px) {
    .wide-card {
        grid-column: span 1;
    }
}

/* --- Live Pulse --- */
.live-badge {
    background: #ef4444;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    position: absolute;
    top: 15px;
    left: 15px;
}

.live-pulse {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* --- Card Meta Styling --- */
.card-meta {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.card-meta span {
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
}

.card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    border-color: rgba(59, 130, 246, 0.3);
}

.card-img-wrap {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.card.movie .card-img-wrap {
    aspect-ratio: 2/3;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.8s;
}

.card:hover .card-img {
    scale: 1.1;
}

.card-info {
    padding: 20px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

/* --- Premium Footer --- */
.app-footer {
    background: #040506;
    margin-top: 100px;
    padding: 100px 60px 40px;
    border-top: 1px solid var(--glass-border);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-brand .footer-logo {
    height: 45px;
    margin-bottom: 25px;
}

.footer-brand p {
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 320px;
}

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: white;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 15px;
    transition: 0.3s;
}

.footer-col a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.newsletter-box p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.input-group {
    display: flex;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 5px;
}

.input-group input {
    background: transparent;
    border: none;
    color: white;
    padding: 10px 15px;
    flex: 1;
    outline: none;
}

.input-group .btn-send {
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
    color: #475569;
    font-size: 0.9rem;
}

/* --- Animations & Effects --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform, opacity;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Delay System (handled via loop or JS, defining classes here) */
.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

.stagger-5 {
    transition-delay: 0.5s;
}

/* Shimmer Loading Effect */
.shimmer {
    position: relative;
    overflow: hidden;
    background: #1a1c23;
}

.shimmer::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* Enhanced Card Hover */
.card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
}

.card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.8);
    border-color: var(--accent);
    z-index: 10;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(45deg, transparent, rgba(59, 130, 246, 0.5), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: 0.6s;
}

.card:hover::before {
    opacity: 1;
}

.hero-info {
    max-width: 700px;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-card:hover .hero-info {
    transform: translateX(10px);
}

/* Badge Premium */
.badge-premium {
    background: linear-gradient(45deg, #f59e0b, #fbbf24);
    color: black;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: inline-block;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-app);
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

@media (max-width: 1024px) {
    .navbar {
        padding: 0 30px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .section {
        padding: 60px 30px 0;
    }
}