@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Orbitron:wght@400;500;600;700;800;900&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', sans-serif;
    background: #0a0a0f;
    color: #e5e5e5;
    min-height: 100vh;
}
.bg-effects {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.bg-effects .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.1;
}
.bg-effects .orb:nth-child(1) {
    width: 400px; height: 400px;
    top: -100px; left: -100px;
    background: #7c3aed;
}
.bg-effects .orb:nth-child(2) {
    width: 500px; height: 500px;
    bottom: -100px; right: -100px;
    background: #6d28d9;
}
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    background: rgba(10,10,15,0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(124,58,237,0.2);
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.navbar .logo {
    display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.navbar .logo-icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    box-shadow: 0 0 30px rgba(168,85,247,0.3);
}
.navbar .logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(to right, #a855f7, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.navbar .nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}
.navbar .nav-links a {
    padding: 8px 18px;
    background: transparent;
    border: 1px solid rgba(168, 85, 247, 0.12);
    border-radius: 10px;
    color: #8a8a8a;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}
.navbar .nav-links a:hover {
    background: rgba(168, 85, 247, 0.08);
    border-color: rgba(168, 85, 247, 0.3);
    color: #a855f7;
    transform: translateY(-1px);
}
.navbar .nav-links a.active {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid #a855f7;
    color: #a855f7;
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.15);
}
.navbar .btn-login {
    padding: 8px 24px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 30px rgba(168,85,247,0.2);
}
.navbar .btn-login:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(168,85,247,0.4);
}
.mobile-menu-toggle {
    display: none;
    width: 42px;
    height: 38px;
    border: 1px solid rgba(168,85,247,0.3);
    border-radius: 10px;
    color: #c084fc;
    background: rgba(168,85,247,0.08);
    cursor: pointer;
    font-size: 21px;
    line-height: 1;
    position: relative;
    z-index: 70;
    flex: 0 0 auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.main {
    position: relative;
    z-index: 1;
    padding-top: 100px;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 24px; padding-right: 24px;
}
.neon-text-glow {
    text-shadow: 0 0 20px rgba(168,85,247,0.8);
}
.neon-box-glow {
    box-shadow: 0 0 20px rgba(147,51,234,0.4);
}
.hover-neon-glow:hover {
    box-shadow: 0 0 30px rgba(168,85,247,0.6);
    transform: translateY(-4px);
}
.avatar {
    width: 100px; height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    display: flex; align-items: center; justify-content: center;
    font-size: 36px; font-weight: 700; color: white;
    flex-shrink: 0;
    box-shadow: 0 0 60px rgba(168,85,247,0.2);
}
.stat-card {
    background: rgba(18,18,26,0.5);
    border: 1px solid rgba(124,58,237,0.08);
    border-radius: 12px;
    padding: 16px 20px;
    text-align: center;
    transition: all 0.3s;
}
.stat-card:hover {
    border-color: rgba(168,85,247,0.2);
}
.stat-card .number {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: white;
}
.stat-card .label {
    color: #666;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}
.category-tab {
    padding: 6px 18px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}
.category-tab:hover {
    border-color: rgba(168,85,247,0.3);
    color: #a855f7;
}
.category-tab.active {
    background: rgba(168,85,247,0.15);
    border-color: rgba(168,85,247,0.3);
    color: #a855f7;
}
.film-card {
    background: rgba(18,18,26,0.6);
    border: 1px solid rgba(124,58,237,0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s;
    backdrop-filter: blur(4px);
}
.film-card:hover {
    transform: translateY(-6px);
    border-color: rgba(168,85,247,0.3);
    box-shadow: 0 0 40px rgba(168,85,247,0.08);
}
.film-card .poster {
    height: 160px;
    background: linear-gradient(135deg, #1a1a2e, #2d1b4e);
    display: flex; align-items: center; justify-content: center;
    font-size: 48px;
    position: relative;
}
.film-card .poster .tag {
    position: absolute; top: 10px; left: 10px;
    padding: 2px 12px;
    background: rgba(168,85,247,0.2);
    border: 1px solid rgba(168,85,247,0.2);
    border-radius: 12px;
    font-size: 10px; color: #a855f7; font-weight: 600;
}
.film-card .info { padding: 16px; }
.film-card .info .title { font-weight: 600; font-size: 15px; color: white; }
.film-card .info .year { color: #666; font-size: 13px; }
.film-card .info .meta { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.film-card .info .meta span {
    padding: 2px 10px;
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    font-size: 10px; color: #666; font-weight: 500;
}
.film-card .info .rating {
    display: flex; align-items: center; gap: 4px;
    margin-top: 8px;
    color: #fbbf24;
    font-size: 13px; font-weight: 600;
}
.footer {
    padding: 32px 0;
    border-top: 1px solid rgba(255,255,255,0.04);
    margin-top: 40px;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 16px;
}
.footer .copyright { color: #444; font-size: 13px; }
@media (max-width: 768px) {
    .navbar {
        height: 64px;
        padding: 0 14px;
    }
    .navbar .logo-text {
        font-size: 17px;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .navbar .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 12px;
        right: 12px;
        padding: 10px;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        border: 1px solid rgba(168,85,247,0.25);
        border-radius: 14px;
        background: rgba(13,11,20,0.98);
        box-shadow: 0 18px 45px rgba(0,0,0,0.45);
        z-index: 65;
    }
    .navbar.menu-open .nav-links {
        display: flex;
    }
    .navbar .nav-links a,
    .navbar .nav-links .btn-login {
        width: 100%;
        padding: 12px 14px;
        text-align: left;
    }
    .navbar .nav-links .btn-login {
        margin-top: 2px;
    }
    .main {
        padding-top: 88px;
    }
}

/* Live data states */
.loading-state,.empty-state{grid-column:1/-1;text-align:center;padding:48px 20px;color:#777}
.profile-film-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.profile-film-grid .empty-state{grid-column:1/-1}
@media(max-width:768px){.profile-film-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:480px){.profile-film-grid{grid-template-columns:1fr}}
