:root {
    --bg-dark: #0a0a0b;
    --bg-card: rgba(255, 255, 255, 0.05);
    --accent-purple: #7c4dff;
    --accent-blue: #448aff;
    --text-main: #ffffff;
    --text-dim: #a0a0a0;
    --glass-border: rgba(255, 255, 255, 0.1);
    --hero-gradient: linear-gradient(180deg, rgba(10, 10, 11, 0) 0%, rgba(10, 10, 11, 1) 100%);
    --card-gradient: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 50%);
    --glow-shadow: 0 0 20px rgba(124, 77, 255, 0.3);
    --skeleton-bg: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ─── Global Navbar ───────────────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(10, 10, 11, 0.65);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    z-index: 1000;
    transition: background 0.3s ease;
}

.nav-container {
    width: 100%;
    max-width: 1400px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left {
    display: flex;
    align-items: center;
    flex: 1;
}

.hamburger-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.nav-center {
    display: flex;
    justify-content: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #e50914; /* Premium Red Netflix feel, or solid white if preferred. Let's use pure white for ultra premium */
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    flex: 1;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

/* Circle nav link — prominent accent style */
.nav-link-network {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-link-network:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.3);
}

.nav-link-network-guest {
    opacity: 0.7;
}

.nav-search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-search-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.nav-search-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.nav-search-input-wrapper {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    overflow: hidden;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #1a1a1c;
    border-radius: 30px;
    display: flex;
    align-items: center;
}

.nav-search-input-wrapper.active {
    width: 260px;
    padding: 0 16px;
    border: 1px solid var(--glass-border);
}

.nav-search-input {
    background: none;
    border: none;
    color: white;
    padding: 10px 0;
    width: 100%;
    font-size: 0.9rem;
    outline: none;
}

.profile-nav-item {
    position: relative;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.user-avatar:hover {
    border-color: var(--accent-purple);
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 220px;
    background: rgba(10, 10, 11, 0.95);
    backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 1100;
}

.profile-dropdown.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.dropdown-item.logout {
    color: #ef4444;
}

.dropdown-item.logout:hover {
    background: rgba(239, 68, 68, 0.1);
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 8px;
}

/* ─── Side Panel (Sidebar) ────────────────────────────────────────────────── */
.side-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100%;
    background: #0a0a0b;
    border-right: 1px solid var(--glass-border);
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    padding: 32px 24px;
}

.side-panel.active {
    transform: translateX(0);
}

.side-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.side-panel-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.side-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.side-panel-title {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.side-panel-close {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.2rem;
    cursor: pointer;
}

.side-nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.side-nav-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 14px;
    transition: all 0.2s ease;
}

.side-nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.side-nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

/* ─── Mobile Bottom Nav ───────────────────────────────────────────────────── */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(10, 10, 11, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    z-index: 1000;
    padding: 0 16px;
}

.mobile-nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.mobile-nav-item i {
    font-size: 1.2rem;
}

.mobile-nav-item.active {
    color: var(--accent-purple);
}

#mobileNetworkNavItem {
    flex: 1;
    display: flex;
}

@media (max-width: 850px) {
    .nav-links { display: none; }
    .mobile-bottom-nav { display: block; }
    #navbar { justify-content: space-between; }
    .nav-center { flex: 1; text-align: center; }
    .nav-left, .nav-right { flex: 0; }
}

/* ─── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
    background: #0a0a0b;
    border-top: 1px solid var(--glass-border);
    padding: 80px 20px 40px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
}

.footer-brand .logo {
    display: block;
    margin-bottom: 16px;
}

.footer-tagline {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 250px;
}

.footer-section h4 {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: white;
}

.footer-bottom {
    max-width: 1200px;
    margin: 60px auto 0;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dim);
    font-size: 0.85rem;
}

@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding-bottom: 100px; /* Space for mobile nav */
    }
}


/* Movie Sections */
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.movie-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 5px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Platform logo in section title (Netflix, Prime, Hotstar) */
.platform-logo-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #000;
}

.platform-logo-premium {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.platform-logo-premium:hover {
    transform: scale(1.15) rotate(2deg);
    box-shadow: 0 0 20px rgba(124, 77, 255, 0.5);
    border-color: var(--accent-purple);
}

/* Streaming sections slide in when shown */
.streaming-section {
    animation: fadeInCard 0.5s ease both;
}

.view-all {
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.movie-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 5vw 20px;
    scrollbar-width: none; /* Firefox */
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.movie-carousel::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Movie Card */
.movie-card {
    flex: 0 0 calc(38% - 12px); /* Shows ~2.5 cards on mobile */
    aspect-ratio: 2/3;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    background: var(--bg-card);
    scroll-snap-align: start;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    animation: fadeInCard 0.5s ease both;
}

@keyframes fadeInCard {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.movie-card:active {
    transform: scale(0.98);
}

.movie-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--card-gradient);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
}

.movie-info {
    opacity: 1; /* Visible on mobile */
    transition: all 0.3s ease;
}

.movie-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    font-size: 0.8rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating {
    color: #ffc107;
}

/* Desktop Enhancements */
@media (min-width: 1024px) {
    .movie-card {
        flex: 0 0 calc(20% - 16px); /* 5 cards visible */
    }

    .movie-card:hover {
        transform: translateY(-8px) scale(1.05);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
        border-color: rgba(255, 255, 255, 0.4);
        z-index: 10;
    }

    .movie-card:hover .movie-poster {
        transform: scale(1.1);
    }

    .movie-info {
        opacity: 0;
        transform: translateY(10px);
    }

    .movie-card:hover .movie-info {
        opacity: 1;
        transform: translateY(0);
    }

    .hero-title {
        font-size: 4rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .movie-card {
        flex: 0 0 calc(33.333% - 14px); /* 3 cards visible */
    }
}

.footer {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-dim);
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
}

/* Skeleton Loading */
.skeleton-card {
    flex: 0 0 calc(50% - 15px);
    aspect-ratio: 2/3;
    background: linear-gradient(135deg, #161026 0%, #0a0a0b 100%); /* Dark purple to black base */
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(124, 77, 255, 0.05); /* Subtle purple edge */
    box-shadow: 0 8px 24px rgba(124, 77, 255, 0.06); /* Soft purple glow */
}

.skeleton-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(124, 77, 255, 0.08), transparent);
    animation: shimmer 1.8s infinite ease-in-out;
}

@keyframes shimmer {
    0% { transform: translateX(-150%); }
    100% { transform: translateX(150%); }
}

@media (min-width: 1024px) {
    .skeleton-card {
        flex: 0 0 calc(20% - 16px);
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .skeleton-card {
        flex: 0 0 calc(33.333% - 14px);
    }
}

/* Movie Detail Page */
.movie-detail-container {
    min-height: calc(100vh - 70px);
}

/* Movie Detail Skeleton (Cinematic & Subdued) */
.skeleton-detail {
    position: relative;
    width: 100%;
    height: 85vh;
    background: #0a0a0b;
    overflow: hidden;
    z-index: 2000;
}

.skeleton-hero-bg {
    width: 100%;
    height: 100%;
    background: #0a0a0b;
    position: relative;
}

.skeleton-detail-content {
    position: absolute;
    bottom: 15%;
    left: 5%;
    width: 90%;
    max-width: 1400px;
    z-index: 2010;
}

.skeleton-line {
    background: linear-gradient(90deg, #12121c 25%, #1a1a2e 50%, #12121c 75%);
    background-size: 200% 100%;
    animation: shimmer 3s infinite linear;
    border-radius: 12px;
    margin-bottom: 24px;
}

.skeleton-detail-content {
    position: absolute;
    bottom: 12%;
    left: 5%;
    width: 90%;
    max-width: 1400px;
    z-index: 2010;
}

.skeleton-line {
    background: linear-gradient(90deg, #101018 25%, #1a1a2e 50%, #101018 75%);
    background-size: 200% 100%;
    animation: shimmer 4s infinite linear; /* Slower shimmer */
    border-radius: 12px;
    margin-bottom: 24px;
}

.skeleton-line.title { 
    height: 64px; 
    width: 55%; 
    max-width: 700px; 
}

.skeleton-line.meta { 
    height: 24px; 
    width: 30%; 
    max-width: 300px; 
    margin-bottom: 48px; 
}

.skeleton-actions { 
    display: flex; 
    gap: 16px; 
    margin-bottom: 48px; 
}

.skeleton-btn { 
    height: 52px; 
    width: 200px; 
    background: linear-gradient(90deg, #101018 25%, #1a1a2e 50%, #101018 75%);
    background-size: 200% 100%;
    animation: shimmer 4s infinite linear;
    border-radius: 14px; 
}

.skeleton-btn.circle {
    width: 52px;
    border-radius: 50%;
}

.skeleton-line.desc-1 { height: 18px; width: 85%; max-width: 900px; margin-bottom: 12px; }
.skeleton-line.desc-2 { height: 18px; width: 80%; max-width: 850px; }

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ─── Homepage Hero Skeleton ─── */
.hero-skeleton {
    width: 100%;
    padding-top: 100px;
}

.hero-skeleton .skeleton-line.hero-pill { height: 20px; width: 120px; margin-bottom: 15px; border-radius: 4px; }
.hero-skeleton .skeleton-line.hero-title { height: 70px; width: 60%; max-width: 700px; margin-bottom: 25px; }
.hero-skeleton .skeleton-line.hero-meta { height: 20px; width: 30%; max-width: 300px; margin-bottom: 35px; }
.hero-skeleton .skeleton-line.hero-desc { height: 18px; width: 80%; max-width: 900px; margin-bottom: 40px; }

.hero-skeleton .skeleton-actions { display: flex; gap: 16px; }
.hero-skeleton .skeleton-btn { height: 52px; width: 180px; border-radius: 12px; }

.detail-hero {
    position: relative;
    width: 100%;
    height: 85vh; /* Match skeleton height */
    min-height: 500px;
    background-size: cover;
    background-position: center;
    animation: fadeInCard 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.detail-hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, 
        rgba(10,10,11,1) 0%, 
        rgba(10,10,11,0.95) 15%, 
        rgba(10,10,11,0.4) 60%, 
        transparent 100%);
}

.hero-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 20px;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%);
}

.detail-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.9);
    line-height: 1.1;
}

.detail-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 20px;
}

.detail-rating {
    color: #ffc107;
    font-weight: 600;
}

.detail-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 60px;
    animation: fadeInCard 0.6s ease both;
    animation-delay: 0.1s;
}

.detail-overview {
    font-size: 1.1rem;
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 800px;
}

/* ─── Where to Watch ─────────────────────────────────────────────────────── */
.watch-providers-section {
    margin-top: 10px;
    margin-bottom: 40px;
}

.watch-providers-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.watch-providers-title i {
    color: var(--accent-purple);
    font-size: 0.85rem;
}

/* Best option badge */
.best-option-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #f5c518;
    background: rgba(245, 197, 24, 0.1);
    border: 1px solid rgba(245, 197, 24, 0.25);
    border-radius: 20px;
    padding: 5px 14px;
    margin-bottom: 12px;
    width: fit-content;
}

.best-option-badge i { font-size: 0.7rem; }

/* "Available on" label */
.available-on-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 10px;
    opacity: 0.6;
}

/* Pill row */
/* Streaming Providers Redesign */
.providers {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
}

.primary-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: fit-content;
}

.secondary-group {
    display: contents;
}

.provider {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease, transform 0.15s ease;
    width: fit-content;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.provider-clicked {
    transform: scale(0.97);
}

.provider.primary.provider-clicked {
    border-color: #8b5cf6;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

/* Opening Tooltip */
.opening-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #1f1f1f;
    color: #e5e5e5;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 100;
}

.opening-tooltip.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Loading Spinner */
.provider-loading-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.1);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.provider img {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    margin-right: 2px;
}

/* PRIMARY (selected) */
.provider.primary {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.08);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.2);
    color: #ffffff;
}

.provider.primary:hover {
    transform: scale(1.03);
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.35);
}

/* SECONDARY */
.provider.secondary {
    color: rgba(255, 255, 255, 0.85);
}

.provider.secondary:hover {
    transform: scale(1.03);
}

/* Badge */
.provider-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5f5;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-left: 10px;
}

/* Included highlight */
.provider-badge.included {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.provider-badge.rent {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* ─── Detail Section ─── */
.detail-section {
    margin-top: 40px;
    margin-bottom: 48px;
}

.detail-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ─── Carousel Wrapper & Navigation ─── */
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.carousel-wrapper:hover .carousel-nav-btn {
    opacity: 1;
    visibility: visible;
}

.carousel-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav-btn.prev {
    left: -20px;
}

.carousel-nav-btn.next {
    right: -20px;
}

@media (max-width: 768px) {
    .carousel-nav-btn {
        display: none !important;
    }
}

/* ─── Cast Carousel ─── */
.cast-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 4px 4px 16px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.cast-carousel::-webkit-scrollbar {
    display: none;
}

.cast-card {
    flex: 0 0 140px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.cast-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(124, 77, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cast-avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    margin: 0 auto 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.05);
    transition: border-color 0.3s ease;
}

.cast-card:hover .cast-avatar {
    border-color: var(--accent-purple);
}

.cast-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cast-name {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cast-character {
    font-size: 0.75rem;
    color: var(--text-dim);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cast-skeleton {
    flex: 0 0 140px;
    height: 180px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 18px;
    position: relative;
    overflow: hidden;
}

.cast-skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
    animation: shimmer 2s infinite linear;
}

.provider-badge.rent {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Label under primary (if still needed, keep it subtle or remove) */
.provider-label {
    display: none; /* Hide for now as badges replace it */
}

.available-on-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    opacity: 0.8;
}

.card-status-badge.status-intent {
    background: rgba(255, 152, 0, 0.9);
    color: white;
}

.continue-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(139, 92, 246, 0.9);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Hero Carousel and other spacing */
.movie-section {
    margin-bottom: 40px;
}

.provider-pill-skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(124,77,255,0.07), transparent);
    animation: shimmer 1.8s infinite ease-in-out;
}

/* Watch Now CTA */
.watch-now-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    color: #fff;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
    box-shadow: 0 6px 24px rgba(124, 77, 255, 0.35);
    margin-top: 4px;
}

.watch-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(124, 77, 255, 0.45);
}

.watch-now-btn:active {
    transform: scale(0.97);
    opacity: 0.9;
}

/* Empty / fallback state */
.no-providers {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dim);
    font-size: 0.88rem;
    padding: 14px 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    width: fit-content;
}

.no-providers i {
    font-size: 1.1rem;
    opacity: 0.4;
}

.genre-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.pill {
    padding: 8px 20px;
    background: rgba(124, 77, 255, 0.1);
    border: 1px solid rgba(124, 77, 255, 0.3);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-main);
    backdrop-filter: blur(5px);
}

.detail-actions {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 14px 28px;
    border-radius: 8px; /* Sharper */
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: #ffffff;
    color: #000000;
    box-shadow: none !important;
}

.btn-primary:hover {
    background: #e6e6e6;
    transform: scale(1.04);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn.active {
    background: #4caf50;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

@media (min-width: 1024px) {
    .detail-hero {
        height: 70vh;
    }
    
    .detail-title {
        font-size: 3.5rem;
    }
    
    .hero-info {
        padding-bottom: 60px;
    }
}

/* User Profile & Auth UI */
.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--accent-purple);
    transition: transform 0.2s ease;
    object-fit: cover;
}

.user-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(124, 77, 255, 0.5);
}

.login-btn {
    font-size: 0.9rem;
    padding: 10px 20px;
    white-space: nowrap;
}

#authSection {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Movie Card Status Badges — real HTML elements (more reliable than ::after) */
.card-status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    z-index: 6;
    box-shadow: 0 3px 10px rgba(0,0,0,0.5);
    animation: badgePop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(4px);
}
.card-platform-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    background: rgba(10, 10, 11, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    animation: badgePop 0.4s ease-out;
}

.card-platform-badge img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.status-watched {
    background: rgba(76, 175, 80, 0.9);
    color: white;
    border: 1px solid rgba(76, 175, 80, 0.5);
}

.status-watchlist {
    background: rgba(33, 150, 243, 0.85);
    color: white;
    border: 1px solid rgba(33, 150, 243, 0.4);
}

/* Subtle dim overlay on watched cards */
.watched-dim {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.18);
    border-radius: inherit;
    z-index: 1;
    pointer-events: none;
}

@keyframes badgePop {
    0%   { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Profile Page */

.profile-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.empty-state {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-dim);
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px dashed var(--glass-border);
    margin: 20px 0;
}

.empty-state > i {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
    opacity: 0.5;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

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

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

/* ─── Search Results ─────────────────────────────────────────────────────── */
.search-results-section {
    animation: fadeIn 0.25s ease;
}

.search-results-content {
    padding-top: 0; /* Removed padding to allow tightest possible alignment */
    padding-bottom: 80px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Search group (Movies / People) */
.search-group {
    margin-bottom: 40px;
    animation: fadeIn 0.3s ease both;
}

.search-group-header {
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--glass-border);
}

.search-group-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.search-group-title i {
    color: var(--accent-purple);
    font-size: 0.9rem;
}

/* Movie results grid */
.search-results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    min-height: 100px;
}

@media (min-width: 480px) { .search-results-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 768px) { .search-results-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1024px){ .search-results-grid { grid-template-columns: repeat(6, 1fr); } }

.search-results-grid .skeleton-card,
.search-results-grid .movie-card {
    flex: unset;
}

/* ─── Person Card ────────────────────────────────────────────────────────── */
.search-people-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.person-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    animation: fadeIn 0.35s ease both;
}

.person-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.person-card:active {
    transform: scale(0.97);
}

.person-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #161026;
    border: 1px solid rgba(124, 77, 255, 0.15);
}

.person-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.person-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 1.2rem;
    opacity: 0.5;
}

.person-info {
    flex: 1;
    min-width: 0;
}

.person-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.person-dept {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-purple);
    margin: 0 0 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.person-known {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.person-arrow {
    color: var(--text-dim);
    font-size: 0.75rem;
    opacity: 0.4;
    flex-shrink: 0;
}

/* Person card skeleton */
.person-card-skeleton {
    pointer-events: none;
}

.skeleton-avatar-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #161026 0%, #0a0a0b 100%);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.skeleton-avatar-circle::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(124,77,255,0.08), transparent);
    animation: shimmer 1.8s infinite ease-in-out;
}

.skeleton-line-sm {
    height: 14px;
    width: 55%;
    background: linear-gradient(135deg, #161026 0%, #0a0a0b 100%);
    border-radius: 6px;
    margin-bottom: 6px;
    position: relative;
    overflow: hidden;
}

.skeleton-line-xs {
    height: 11px;
    width: 75%;
    background: linear-gradient(135deg, #161026 0%, #0a0a0b 100%);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.skeleton-line-sm::after,
.skeleton-line-xs::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(124,77,255,0.08), transparent);
    animation: shimmer 1.8s infinite ease-in-out;
}

/* Empty State for search */
.search-empty-state {
    padding: 80px 20px;
    text-align: center;
    color: var(--text-dim);
    animation: fadeIn 0.3s ease;
}

.search-empty-state i {
    font-size: 4rem;
    display: block;
    margin-bottom: 20px;
    opacity: 0.3;
    background: linear-gradient(45deg, var(--accent-purple), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.search-empty-state p {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.search-empty-state span {
    font-size: 0.95rem;
    color: var(--text-dim);
}

/* Animated search icon when typing */
.glass-input:not(:placeholder-shown) ~ .search-icon,
.glass-input:focus ~ .search-icon {
    color: var(--accent-purple);
}

/* ─── Micro-interactions ─────────────────────────────────────────────────── */

/* Tap → scale on any movie card */
.movie-card:active {
    transform: scale(0.95) !important;
    transition: transform 0.1s ease !important;
}

/* Bookmark watchlist badge pulse on click */
@keyframes badgePulse {
    0%   { box-shadow: 0 0 0 0 rgba(33,150,243,0.6); }
    50%  { box-shadow: 0 0 0 8px rgba(33,150,243,0); }
    100% { box-shadow: 0 0 0 0 rgba(33,150,243,0); }
}

.status-watchlist.pulse {
    animation: badgePulse 0.5s ease forwards;
}

/* Watched badge glow pulse on click */
@keyframes watchedPulse {
    0%   { box-shadow: 0 0 0 0 rgba(76,175,80,0.6); }
    50%  { box-shadow: 0 0 0 8px rgba(76,175,80,0); }
    100% { box-shadow: 0 0 0 0 rgba(76,175,80,0); }
}

.status-watched.pulse {
    animation: watchedPulse 0.5s ease forwards;
}

/* ─── Toast Notifications ────────────────────────────────────────────────── */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(20, 20, 30, 0.92);
    color: white;
    padding: 14px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 9999;
    white-space: nowrap;
}

.toast.toast-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.toast-success {
    border-color: rgba(76, 175, 80, 0.5);
    box-shadow: 0 8px 30px rgba(76, 175, 80, 0.2);
}

.toast.toast-success i {
    color: #4caf50;
}

.toast.toast-info i {
    color: var(--accent-blue);
}

/* ─── Broken Image Placeholder ───────────────────────────────────────────── */
.poster-placeholder {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: linear-gradient(160deg, #1a1a2e 0%, #12121c 100%);
    color: var(--text-dim);
    border-radius: inherit;
}

.poster-placeholder i {
    font-size: 2.5rem;
    background: linear-gradient(45deg, var(--accent-purple), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.6;
}

.poster-placeholder span {
    font-size: 0.72rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.4;
    text-align: center;
    padding: 0 12px;
    max-width: 100px;
    line-height: 1.4;
}

/* Hide broken <img> when placeholder is shown */
.movie-poster.img-error {
    opacity: 0;
    position: absolute;
}

/* ─── Star Rating Widget (Movie Detail) ─────────────────────────────────── */
.star-rating-widget {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
    animation: fadeIn 0.3s ease;
}

.star-rating-label {
    font-size: 0.85rem;
    color: var(--text-dim);
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
}

.stars {
    display: flex;
    gap: 6px;
}

.star-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.2);
    transition: color 0.15s ease, transform 0.15s ease;
    padding: 2px;
    line-height: 1;
}

.star-btn.active,
.star-btn.hover {
    color: #ffc107;
    transform: scale(1.15);
}

.star-btn:hover {
    transform: scale(1.2);
}

.star-rating-value {
    font-size: 0.9rem;
    color: #ffc107;
    font-weight: 700;
    min-width: 30px;
}

/* ─── Card Rating Badge (Profile) ───────────────────────────────────────── */
.card-rating-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    color: #ffc107;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 6;
    border: 1px solid rgba(255, 193, 7, 0.3);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.card-rating-badge i {
    font-size: 0.65rem;
}

/* ─── Empty State Explore CTA ────────────────────────────────────────────── */
.empty-state .explore-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 0.85rem;
    padding: 10px 22px;
    text-decoration: none;
    width: auto !important;
    min-width: unset !important;
    border-radius: 30px;
}

.empty-state .explore-cta i {
    font-size: 0.85rem;
    display: inline;
    opacity: 1;
    margin: 0;
}

/* ─── Color-Coded Rating Badges ──────────────────────────────────────────── */
.card-rating-badge.badge-high {
    color: #4caf50;
    border-color: rgba(76, 175, 80, 0.4);
    background: rgba(76, 175, 80, 0.12);
}

.card-rating-badge.badge-mid {
    color: #ffc107;
    border-color: rgba(255, 193, 7, 0.4);
    background: rgba(255, 193, 7, 0.10);
}

.card-rating-badge.badge-low {
    color: rgba(255,255,255,0.45);
    border-color: rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
}

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

.profile-section-header .section-title {
    margin-bottom: 0;
}

.sort-controls {
    display: flex;
    gap: 8px;
}

.sort-btn {
    background: rgba(255,255,255,0.05);
    color: var(--text-dim);
    border: 1px solid var(--glass-border);
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sort-btn:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.sort-btn.active {
    background: rgba(124, 77, 255, 0.15);
    color: var(--accent-purple);
    border-color: rgba(124, 77, 255, 0.4);
}

/* ─── Profile Section Spacing ────────────────────────────────────────────── */
.profile-section {
    margin-bottom: 50px;
}

/* Fix: gap between heading and grid cards */
.profile-section > .section-title,
.profile-section > .profile-section-header {
    margin-bottom: 24px;
}

.profile-section > .profile-grid {
    margin-top: 0; /* reset - handled by section-title margin */
}

/* Ensure Top Rated section heading also has space */
#topRatedSection > .section-title {
    margin-bottom: 24px;
}


/* ─── Your Taste Chips (Profile) ────────────────────────────────────────── */
.taste-section {
    max-width: 1200px;
    margin: 0 auto 36px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.taste-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
    opacity: 0.7;
    white-space: nowrap;
    margin: 0;
}

.taste-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.taste-chip {
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: rgba(124, 77, 255, 0.12);
    color: var(--accent-purple);
    border: 1px solid rgba(124, 77, 255, 0.3);
    transition: background 0.2s ease, transform 0.2s ease;
    cursor: default;
}

.taste-chip:hover {
    background: rgba(124, 77, 255, 0.22);
    transform: translateY(-1px);
}

/* Staggered entrance animation for taste chips */
@keyframes chipFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.taste-chip {
    animation: chipFadeIn 0.35s ease both;
}
.taste-chip:nth-child(1) { animation-delay: 0.05s; }
.taste-chip:nth-child(2) { animation-delay: 0.15s; }
.taste-chip:nth-child(3) { animation-delay: 0.25s; }

/* Profile header taste display — inline below the name */
.taste-display {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 32px;
}

.taste-chips-inline {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.taste-empty {
    font-size: 0.8rem;
    color: var(--text-dim);
    opacity: 0.6;
    font-style: italic;
    margin: 0;
}

/* ─── Glow on status badges ─────────────────────────────────────────────── */
.status-watched {
    box-shadow: 0 2px 12px rgba(76, 175, 80, 0.4), 0 0 0 2px rgba(76, 175, 80, 0.15);
}

.status-watchlist {
    box-shadow: 0 2px 12px rgba(33, 150, 243, 0.4), 0 0 0 2px rgba(33, 150, 243, 0.15);
}

/* Watchlist pulse micro-interaction */
@keyframes watchlistPulse {
    0%   { box-shadow: 0 0 0   0   rgba(68, 138, 255, 0);   }
    40%  { box-shadow: 0 0 18px 5px rgba(68, 138, 255, 0.55); }
    100% { box-shadow: 0 0 0   0   rgba(68, 138, 255, 0);   }
}

.btn-watchlist-flash {
    animation: watchlistPulse 0.65s ease;
}

/* ─── Section Subtitle ───────────────────────────────────────────────────── */
.section-subtitle {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin: 4px 0 0;
    letter-spacing: 0.3px;
    opacity: 0.7;
}

/* ─── Watched Button Flash (micro-interaction) ───────────────────────────── */
@keyframes successFlash {
    0%   { box-shadow: 0 0 0   0   rgba(76, 175, 80, 0);   }
    35%  { box-shadow: 0 0 18px 4px rgba(76, 175, 80, 0.65); }
    100% { box-shadow: 0 0 0   0   rgba(76, 175, 80, 0);   }
}

.btn-success-flash {
    animation: successFlash 0.7s ease;
}

/* ─── Star Bounce (micro-interaction) ───────────────────────────────────── */
@keyframes starBounce {
    0%   { transform: scale(1); }
    35%  { transform: scale(1.5) rotate(-10deg); }
    65%  { transform: scale(0.88); }
    100% { transform: scale(1.15); }
}

.star-btn.star-clicked {
    animation: starBounce 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97);
    color: #ffc107 !important;
}

/* ─── Lazy Loading Fade-in ──────────────────────────────────────────────── */
.lazy-image {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.lazy-image.loaded {
    opacity: 1;
}


/* ─── Browse Pages (View All) ───────────────────────────────────────────── */
.browse-container {
    padding: 100px 5% 80px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
}

.browse-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 20px;
}

.browse-title-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.browse-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
}

.browse-subtitle {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin: 0;
    opacity: 0.75;
}

/* Sort pill bar */
.browse-sort-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sort-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.2s ease;
}

.sort-pill:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.sort-pill.active {
    background: #ffffff;
    border-color: #ffffff;
    color: #000000;
    box-shadow: none;
}

/* Movie grid */
.browse-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 20px;
}

@media (min-width: 480px) { .browse-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .browse-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px){ .browse-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1280px){ .browse-grid { grid-template-columns: repeat(6, 1fr); } }

.browse-card {
    width: 100%;
    flex: unset;        /* override carousel flex-shrink */
    animation: fadeInCard 0.4s ease both;
}

/* Inline loading skeletons (for pages 2+) */
.browse-loading-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 20px;
}

@media (min-width: 480px) { .browse-loading-row { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .browse-loading-row { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px){ .browse-loading-row { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1280px){ .browse-loading-row { grid-template-columns: repeat(6, 1fr); } }

/* Invisible scroll sentinel */
.browse-sentinel {
    height: 1px;
    width: 100%;
}

.browse-end-msg {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
    padding: 40px 20px;
    opacity: 0.5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Enhancing View All link */
.view-all-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease, transform 0.2s ease;
    opacity: 0.8;
}

.view-all-link i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.view-all-link:hover {
    color: var(--text-main);
    opacity: 1;
}

.view-all-link:hover i {
    transform: translateX(3px);
}

/* ─── Profile Card Header ─────────────────────────────────────────────────── */

.profile-header {
    padding: 90px 20px 0;
    text-align: left;
    position: relative;
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(255, 255, 255, 0.05) 0%, transparent 70%),
        radial-gradient(ellipse 40% 30% at 20% 0%, rgba(255, 255, 255, 0.02) 0%, transparent 60%);
    isolation: isolate;
}

/* Soft fade to page bg at bottom */
.profile-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--bg-primary, #0a0a0b));
    pointer-events: none;
}

/* The card */
.profile-card {
    max-width: 560px;
    margin: 0 auto;
    background: none;
    border: none;
    border-radius: 0;
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ── Top row: avatar + info ── */
.pc-top {
    display: flex;
    align-items: center;
    gap: 18px;
}

.pc-avatar {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid rgba(124, 77, 255, 0.55);
    box-shadow: 0 0 0 4px rgba(124, 77, 255, 0.09);
}

.pc-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

/* Personality badge */
.personality-badge {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #a78bfa;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    border: 1px solid rgba(124, 77, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    width: fit-content;
}

.pc-name {
    font-size: 1.55rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pc-username {
    display: none;
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(161, 161, 170, 0.7);
    letter-spacing: 0.01em;
}

.pc-following-link {
    display: flex;
    align-items: baseline;
    gap: 5px;
    text-decoration: none;
    margin-top: 2px;
    width: fit-content;
    transition: opacity 0.2s;
}

.pc-following-link:hover { opacity: 0.7; }

.pc-following-val {
    font-size: 0.9rem;
    font-weight: 800;
    color: #fff;
}

.pc-following-label {
    font-size: 0.82rem;
    color: rgba(161, 161, 170, 0.6);
    font-weight: 400;
}

/* ── Stats row — inline icon + number ── */
.pc-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pc-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 6px;
}

/* Inline row: small icon + number */
.pc-stat-num {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pc-stat-num i {
    font-size: 0.7rem;
    color: #a78bfa;
    opacity: 0.85;
}

.pc-stat-num span {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

/* Remove old big icon box */
.pc-stat-icon { display: none; }
.pc-stat-val  { display: none; }

.pc-stat-label {
    font-size: 0.62rem;
    color: rgba(161, 161, 170, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

/* Keep old class names working (used by JS) */
.profile-name          { display: none; } /* replaced by .pc-name */
.profile-username-display { display: none !important; } /* replaced by .pc-username */
.profile-stats-grid    { display: none; }
.stat-card, .stat-value, .stat-label, .stat-info { display: none; }
.profile-social-counts { display: none !important; }
.profile-header-info   { display: none; }
.user-header-content   { display: none; }
.profile-avatar-large  { display: none; }

@media (max-width: 500px) {
    .profile-card { padding: 18px 16px; border-radius: 18px; }
    .pc-avatar { width: 68px; height: 68px; }
    .pc-name { font-size: 1.25rem; }
    .pc-stat-icon { width: 44px; height: 44px; font-size: 0.95rem; }
    .pc-stat-val { font-size: 1.2rem; }
}

.taste-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.taste-chip {
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.taste-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

@media (max-width: 768px) {
    .taste-container {
        flex-direction: column;
        gap: 32px;
    }
}

.taste-left, .taste-right {
    flex: 1;
    width: 100%;
}

.taste-human-narrative {
    margin-top: 15px;
}

.taste-main-sentence {
    font-size: 1.15rem;
    color: #fff;
    font-weight: 500;
    margin-bottom: 20px;
}

.taste-interpretation {
    font-size: 0.95rem;
    color: #a78bfa;
    margin-top: 20px;
    font-style: italic;
    font-weight: 400;
    opacity: 0.9;
}

.genre-chart-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 15px;
}

.genre-bar-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 90%;
}

.genre-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.genre-name {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.genre-perc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
}

.genre-bar-bg {
    height: 6px;
    background: #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
}

.genre-bar-fill {
    height: 100%;
    background: linear-gradient(to right, #8b5cf6, #d946ef);
    border-radius: 10px;
    width: 0;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.genre-bar-row.top-genre .genre-name {
    color: #fff;
    font-weight: 700;
}

.genre-bar-row.top-genre .genre-bar-fill {
    background: linear-gradient(to right, #a78bfa, #f472b6);
}

/* ─── Browse Filters ──────────────────────────────────────────────────────── */
.browse-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.filter-chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 70px;
    background: #0a0a0b;
    z-index: 10;
}

.filter-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-purple);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.filter-chip:hover {
    transform: translateY(-2px);
}

.filter-chip i {
    cursor: pointer;
    font-size: 0.7rem;
    opacity: 0.6;
}

.results-count {
    font-size: 0.85rem;
    color: var(--text-dim);
    opacity: 0.6;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    animation: fadeIn 0.3s ease;
}

/* Empty State */
.browse-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px;
    animation: fadeIn 0.4s ease;
}

.browse-empty-state i {
    font-size: 3rem;
    color: var(--text-dim);
    margin-bottom: 24px;
    opacity: 0.3;
}

.browse-empty-state h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.browse-empty-state p {
    color: var(--text-dim);
    margin-bottom: 30px;
    max-width: 400px;
}

/* Modal Divider */
.modal-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 32px 0;
}

/* Grid Fade */
.browse-grid {
    transition: opacity 0.3s ease;
}

.grid-loading {
    opacity: 0.4;
    pointer-events: none;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content.filter-modal {
    background: rgba(10, 10, 11, 0.65);
    backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex-grow: 1;
}

.filter-group {
    margin-bottom: 24px;
}

.filter-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.option-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-dim);
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.option-chip.active {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.5);
    color: var(--accent-purple);
}

.modal-footer {
    padding: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 12px;
}

.modal-btn {
    flex: 1;
    padding: 14px;
    border-radius: 16px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.modal-btn.btn-primary {
    background: var(--accent-purple);
    color: white;
}

.modal-btn.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--glass-border);
}

.modal-btn:hover {
    transform: translateY(-2px);
}

/* ─── Smart Nudges ───────────────────────────────────────────────────────── */
.nudge-container {
    width: 100%;
    margin-bottom: 24px;
    padding: 24px 0 0;
    animation: slideDownIn 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.nudge-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(33, 150, 243, 0.08));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 18px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: nudge-pulse 4s infinite ease-in-out;
}

.nudge-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nudge-icon {
    width: 44px;
    height: 44px;
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    animation: gentle-bounce 3s infinite ease-in-out;
}

.nudge-text-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nudge-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #a78bfa;
    opacity: 0.95;
}

.nudge-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.nudge-meta {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.nudge-meta i {
    font-size: 0.7rem;
    color: #ffc107;
}

.nudge-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

@keyframes nudge-pulse {
    0%, 100% { box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); border-color: rgba(139, 92, 246, 0.25); }
    50% { box-shadow: 0 10px 50px rgba(139, 92, 246, 0.15); border-color: rgba(139, 92, 246, 0.45); }
}

@keyframes gentle-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}


.nudge-btn {
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    white-space: nowrap;
}

.nudge-btn.btn-nudge-primary {
    background: var(--accent-purple);
    color: white;
}

.nudge-btn.btn-nudge-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

.nudge-dismiss {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 8px;
    opacity: 0.5;
    transition: all 0.2s ease;
}

.nudge-dismiss:hover {
    color: white;
    opacity: 1;
    transform: rotate(90deg);
}

@keyframes slideDownIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
    .nudge-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }
    .nudge-actions {
        width: 100%;
        justify-content: flex-end;
    }
    .nudge-dismiss {
        position: absolute;
        top: 10px;
        right: 10px;
    }
}


/* ─── Browse Controls (Enhanced) ────────────────────────────────────────── */
.browse-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 32px;
}

.browse-search-wrapper {
    flex: 1;
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    transition: all 0.3s ease;
}

.browse-search-wrapper:focus-within {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-purple);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
}

.browse-search-wrapper i {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-right: 12px;
}

.browse-search-input {
    background: none;
    border: none;
    color: white;
    padding: 12px 0;
    width: 100%;
    font-size: 0.95rem;
    outline: none;
}

.browse-controls-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

@media (max-width: 700px) {
    .browse-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
}

/* ─── Recently Watched (Reduced Priority) ──────────────────────────────── */
.recently-watched-carousel .movie-card {
    width: 150px;
    height: 225px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.recently-watched-carousel .movie-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.recently-watched-carousel .movie-card::after {
    display: none; /* Remove hover glow */
}

.recently-watched-carousel .movie-title {
    font-size: 0.8rem;
}

/* ─── Hero Section (Premium Cinematic Redesign) ────────────────────────── */
.hero {
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px; /* Navbar space */
}

.hero-bg-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

.hero-bg-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center 20%;
    transition: opacity 1.5s ease-in-out;
    animation: hero-pan-zoom 20s linear infinite alternate;
}

@keyframes hero-pan-zoom {
    0% { transform: scale(1.05) translateX(-1%); }
    100% { transform: scale(1.15) translateX(1%); }
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: 
        /* Deep left fade for text readability */
        linear-gradient(90deg, rgba(10, 10, 11, 1) 0%, rgba(10, 10, 11, 0.85) 35%, rgba(10, 10, 11, 0) 75%),
        /* Bottom fade into content */
        linear-gradient(0deg, rgba(10, 10, 11, 1) 0%, rgba(10, 10, 11, 0.95) 15%, rgba(10, 10, 11, 0) 50%);
    z-index: 2;
}

/* Cinematic Grain */
.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.03;
    pointer-events: none;
    z-index: 3;
}

.hero-content-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    flex-direction: column;
    gap: 36px; /* Increased vertical breathing space */
    z-index: 10;
    position: relative;
}

.hero-movie-info {
    max-width: 650px;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Ensure skeleton is visible immediately */
.hero-movie-info:has(.hero-skeleton),
.hero-movie-info.active {
    opacity: 1;
    transform: translateX(0);
}

.hero-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-purple);
    font-weight: 700;
    margin-bottom: 12px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem); /* Slightly reduced size */
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 2 lines max */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.hero-rating-val {
    color: #ffc107;
    font-weight: 700;
}

.hero-desc {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    line-height: 1.5;
    font-weight: 400;
    display: none; /* Hidden on mobile */
}

@media (min-width: 768px) {
    .hero-desc { display: block; }
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-hero {
    height: 52px;
    padding: 0 32px;
    border-radius: 8px; /* Sharper */
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
}

.btn-hero-primary {
    background: white;
    color: black;
}

.btn-hero-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-hero-rate {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    padding: 0 12px;
}

.btn-hero-rate:hover { color: #ffc107; transform: scale(1.1); }

.btn-hero-tertiary {
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-weight: 600;
    border: none; /* Ensure no border */
    padding: 0 16px; /* Less padding since it's a subtle link */
    height: auto;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.btn-hero-tertiary:hover { color: white; }

/* ─── Global Search Bar (Positioned outside hero for clipping-free discovery) ─── */
.hero-search-wrapper {
    position: relative;
    top: -45px; /* Overlap effect */
    left: 0;
    width: 100%;
    margin-bottom: -15px; /* Compensate for overlap */
    padding: 0 5%; /* Align with content */
    z-index: 500;
    display: flex;
    justify-content: center;
}

.hero-search-bar {
    width: 100%;
    max-width: 580px;
    pointer-events: auto;
}

body.searching-active .hero-search-wrapper {
    position: relative;
    z-index: 5000 !important;
}

body.searching-active .hero {
    /* Do not hide hero, let the search bar remain in normal flow below it */
    opacity: 0.3;
}

/* Hide all homepage sections during active search via CSS */
body.searching-active .movie-section,
body.searching-active .nudge-container,
body.searching-active .personalization-banner {
    display: none !important;
}

body.searching-active .search-results-section {
    margin-top: 20px !important; 
    display: block !important;
    position: relative;
    z-index: 180;
}

.hero-search-bar {
    display: flex;
    align-items: center;
    background: rgba(25, 25, 28, 0.85); /* Darker floating card */
    backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0 20px;
    height: 60px; /* Slightly taller for prominence */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); /* Floating shadow */
    transition: all 0.3s ease;
}

body.searching-active .hero-search-bar {
    background: rgba(255, 255, 255, 0.12) !important;
    height: 64px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5) !important;
}

body.searching-active .hero-search-input {
    font-size: 1.2rem;
}

body.searching-active #searchStatus {
    color: white;
    text-align: center;
    padding: 40px;
    font-size: 1.2rem;
}

/* Overlay for clicking out of search */
.search-backdrop {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(12px);
    z-index: 150;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

body.searching-active .search-backdrop {
    opacity: 1;
    pointer-events: auto;
}



/* ─── Restore Missing Slider & Layout Styles ─────────────────────────── */
.hero-indicators {
    position: absolute;
    bottom: 50px;
    right: 5%;
    display: flex;
    gap: 12px;
    z-index: 20;
}

.hero-dot {
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-dot.active {
    width: 28px;
    background: var(--accent-purple);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

.hero-fade-strip {
    height: 200px;
    background: linear-gradient(to bottom, transparent, var(--bg-dark));
    margin-top: -200px;
    position: relative;
    z-index: 5;
    pointer-events: none;
}

.movie-section:first-of-type {
    padding-top: 60px;
}

@media (max-width: 768px) {
    .hero { height: auto; padding-top: 120px; padding-bottom: 60px; }
    .hero-title { font-size: 2.8rem; }
    .hero-actions { gap: 12px; }
    .btn-hero { padding: 0 20px; height: 48px; }
    .hero-indicators { bottom: 20px; right: 50%; transform: translateX(50%); }
}

/* ─── Search Transition Core (Re-stabilized) ────────────────────────── */
body.searching-active { overflow-x: hidden; }

body.searching-active .hero-movie-info,
body.searching-active .hero-bg-slide,
body.searching-active .hero-indicators {
    opacity: 0 !important;
    pointer-events: none;
    transform: translateY(-20px);
    transition: all 0.4s ease;
}

body.searching-active .hero-overlay {
    background: var(--bg-dark);
    transition: all 0.6s ease;
}

.hero-search-icon {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.1rem;
    margin-right: 16px;
}

.hero-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 1.05rem;
}

.hero-search-input::placeholder { color: rgba(255, 255, 255, 0.25); }

.hero-search-clear {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
}

.hero-search-clear:hover { color: white; background: rgba(255, 255, 255, 0.1); }

/* ─── Icon Buttons (Navbar Utility) ─────────────────────────────────────── */
.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 1.2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none; /* For link-based icon-btns like back button */
}

.icon-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.1);
}

.icon-btn:active {
    transform: scale(0.95);
}

#shareBtn:hover {
    color: var(--accent-blue);
    background: rgba(68, 138, 255, 0.1);
}

#backBtn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ─── Detail Page Action Enhancements ─────────────────────────────────── */
.icon-btn-detail {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 52px; /* Match height of primary/secondary buttons */
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.2rem;
    margin-left: 8px;
}

.icon-btn-detail:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.icon-btn-detail:active {
    transform: translateY(0) scale(0.95);
}

.icon-btn-detail i {
    transition: transform 0.3s ease;
}

.icon-btn-detail:hover i {
    transform: rotate(-15deg);
}

/* ─── Onboarding Flow ─────────────────────────────────────────────────────── */
.onboarding-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: radial-gradient(circle at center, #1a1a2e 0%, #0a0a0b 100%);
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
}

.onboarding-container {
    width: 90%;
    max-width: 800px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    animation: onboardingFadeIn 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes onboardingFadeIn {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.onboarding-progress {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, var(--accent-purple), var(--accent-blue));
    width: 25%;
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#onboardingStepCounter {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dim);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.onboarding-step-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(to right, #fff, rgba(255,255,255,0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.onboarding-step-desc {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 30px;
    max-width: 600px;
}

/* Chips Selection */
.onboarding-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.onboarding-chip {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.onboarding-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.onboarding-chip.selected {
    background: white;
    color: black;
    border-color: white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Movie Selection Grid */
.onboarding-movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    max-height: 50vh;
    overflow-y: auto;
    padding: 10px;
    padding-right: 20px;
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

.onboarding-movie-card {
    position: relative;
    aspect-ratio: 2/3;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.onboarding-movie-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.onboarding-movie-card.selected {
    border-color: var(--accent-blue);
    transform: scale(0.95);
    box-shadow: 0 0 30px rgba(68, 138, 255, 0.4);
}

.onboarding-movie-card.selected::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    inset: 0;
    background: rgba(68, 138, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    backdrop-filter: blur(2px);
}

.onboarding-movie-card:hover img {
    transform: scale(1.1);
}

/* Footer Buttons */
.onboarding-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
}

.onboarding-btn-skip {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.onboarding-btn-skip:hover { color: white; }

.onboarding-btn-next {
    background: white;
    color: black;
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.onboarding-btn-next:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
}

.onboarding-btn-next:not(:disabled):hover {
    transform: translateX(5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* Loading Animation */
.onboarding-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.cinema-loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s infinite linear;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .onboarding-step-title { font-size: 1.8rem; }
    .onboarding-movie-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
}

/* ─── Trailer Modal Cinematic Enhancements ──────────────────────────────── */
.trailer-content {
    background: #000;
    width: 95%;
    max-width: 1100px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .trailer-content {
    transform: scale(1);
}

.trailer-iframe-container {
    width: 100%;
    height: 100%;
}

.trailer-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.trailer-modal .modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.trailer-modal .modal-close-btn:hover {
    background: rgba(231, 76, 60, 0.8);
    border-color: #ff4757;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.4);
}

@media (max-width: 768px) {
    .trailer-content {
        width: 100vw;
        height: auto;
        border-radius: 0;
        aspect-ratio: 16 / 9;
        border: none;
    }
    
    .trailer-modal .modal-close-btn {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
    }
}

/* ─── Onboarding Enhancements ─────────────────────────────────────────── */
.onboarding-movie-card.selected {
    border-color: var(--accent-blue) !important;
    transform: scale(1.05) !important; /* Slight scale up */
    box-shadow: 0 0 0 4px rgba(68, 138, 255, 0.4), 0 0 30px rgba(68, 138, 255, 0.6) !important; /* Glow ring */
}

.onboarding-summary {
    display: flex;
    flex-direction: column;
    gap: 30px;
    animation: summaryPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes summaryPop {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.summary-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.summary-tag {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
}

.summary-movies {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.summary-movie-poster {
    width: 80px;
    aspect-ratio: 2/3;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Personalization Banner */
.personalization-banner {
    margin: 20px 0;
    padding: 24px;
    background: linear-gradient(135deg, rgba(68, 138, 255, 0.15), rgba(147, 51, 234, 0.15));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(10px);
}

.p-banner-text h4 {
    font-size: 1.1rem;
    margin: 0 0 4px 0;
}

.p-banner-text p {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin: 0;
}

.btn-p-banner {
    background: white;
    color: black;
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    margin-left: 20px;
}

/* ─── Settings & Account Deletion ────────────────────────────────────────── */
.settings-section {
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 40px;
}

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.settings-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.settings-info h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.settings-info p {
    font-size: 0.9rem;
    color: var(--text-dim);
}

.btn-destructive {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-destructive:hover:not(:disabled) {
    background: #ef4444;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(239, 68, 68, 0.3);
}

.btn-destructive:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.delete-modal-content {
    max-width: 500px;
    text-align: center;
    padding: 40px;
}

.delete-modal-title {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: #ef4444;
}

.delete-modal-desc {
    color: var(--text-dim);
    margin-bottom: 30px;
    line-height: 1.6;
}

.delete-confirmation-box {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.confirm-text {
    font-family: monospace;
    font-weight: 800;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.delete-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 8px;
    color: white;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-top: 15px;
}

.delete-input:focus {
    border-color: #ef4444;
    outline: none;
    background: rgba(239, 68, 68, 0.05);
}

.delete-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.loader-small {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s infinite linear;
}

.settings-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 20px 0;
}

.destructive-item {
    background: rgba(239, 68, 68, 0.02) !important;
    border-color: rgba(239, 68, 68, 0.1) !important;
}

.btn-sm {
    padding: 6px 16px;
    font-size: 0.85rem;
}

.coming-soon {
    opacity: 0.5;
    cursor: default;
}

/* Animations */
.taste-human-narrative {
    animation: fadeInSlide 0.8s ease-out forwards;
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.empty-state-suggestion {
    margin-top: 20px;
    text-align: left;
}

.suggestion-label {
    font-size: 0.8rem;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

/* ─── Review & Activity System ─────────────────────────────────────────────── */

.review-compose-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 40px;
}

.review-compose-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.review-author {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.review-stars-input {
    display: flex;
    gap: 8px;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.review-stars-input .star-btn {
    transition: color 0.2s ease, transform 0.2s ease;
}

.review-stars-input .star-btn:hover {
    transform: scale(1.2);
}

.review-stars-input .star-btn.active {
    color: #ffc107;
}

.review-vibes-input {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.vibe-chip-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vibe-chip-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.vibe-chip-btn.active {
    background: white;
    color: black;
    border-color: white;
}

.review-textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    min-height: 100px;
    resize: vertical;
    margin-bottom: 20px;
    transition: border-color 0.3s ease;
}

.review-textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
}

.review-compose-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.review-feedback {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Reviews List */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.review-card:hover {
    background: rgba(255, 255, 255, 0.04);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.review-meta {
    flex: 1;
}

.review-date {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.review-actions {
    display: flex;
    gap: 8px;
}

.review-stars-display {
    color: rgba(255, 255, 255, 0.1);
    font-size: 1rem;
    margin-bottom: 16px;
    display: flex;
    gap: 4px;
}

.review-stars-display .active {
    color: #ffc107;
}

.review-vibes-display {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.vibe-chip {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.review-text {
    font-size: 1rem;
    color: var(--text-main);
    line-height: 1.6;
}

.icon-btn-small {
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    transition: color 0.2s ease;
}

.icon-btn-small:hover {
    color: #ef4444;
}

/* ─── Compact Profile Reviews ─── */
.my-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.my-review-compact-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.my-review-compact-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(124, 77, 255, 0.3);
}

.my-review-poster {
    width: 60px;
    height: 90px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.my-review-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.my-review-content {
    flex: 1;
    min-width: 0;
}

.my-review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.my-review-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 8px;
}

.my-review-title:hover {
    color: var(--accent-purple);
}

.my-review-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}


/* ─── Following CTA (empty state) ────────────────────────────────────────── */

.following-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 36px 24px;
    margin: 0 auto;
    max-width: 420px;
    width: 100%;
}

.following-cta-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(124, 77, 255, 0.12);
    border: 1px solid rgba(124, 77, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.following-cta-icon i {
    font-size: 1.4rem;
    color: var(--accent-purple);
}

.following-cta-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 8px;
}

.following-cta-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 20px;
}

.following-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    background: var(--accent-purple);
    color: #fff;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    transition: background 0.2s, transform 0.15s;
}

.following-cta-btn:hover {
    background: #9061f9;
    transform: translateY(-1px);
}

/* ─── Social Review Card (Following Top Rated) ────────────────────────────── */

.following-person-row {
    margin-bottom: 28px;
}

.following-person-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 4px 10px;
}

.following-person-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(124, 77, 255, 0.4);
    flex-shrink: 0;
}

.following-person-avatar-placeholder {
    background: rgba(124, 77, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-purple);
    font-size: 0.8rem;
}

.following-person-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.15s;
}

.following-person-name:hover {
    color: var(--accent-purple);
}

.following-person-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 400;
    text-transform: lowercase;
}

.following-person-carousel {
    /* inherits .movie-carousel scroll behaviour */
}

.social-review-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.72);
    color: #f59e0b;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 20px;
    letter-spacing: 0.03em;
    pointer-events: none;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.social-review-overlay {
    opacity: 0;
    transition: opacity 0.25s ease;
}

.social-review-card:hover .social-review-overlay {
    opacity: 1;
}

.social-review-reviewer {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-purple);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.social-review-reviewer i {
    font-size: 0.75rem;
}

.social-review-user-rating {
    color: #f59e0b;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.social-review-text {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    line-height: 1.45;
    margin: 6px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    border-left: 2px solid rgba(255, 255, 255, 0.3);
    padding-left: 6px;
}

/* ── Watchlist quick-add button on social review cards ── */
.social-wl-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.65);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
    z-index: 3;
    transition: background 0.2s, color 0.2s, transform 0.15s;
    opacity: 0;
}

.social-review-card:hover .social-wl-btn {
    opacity: 1;
}

.social-wl-btn:hover {
    background: rgba(124, 77, 255, 0.85);
    color: #fff;
    transform: scale(1.12);
}

.social-wl-btn.in-wl {
    background: rgba(124, 77, 255, 0.75);
    color: #fff;
    opacity: 1;
}

.social-wl-btn.is-watched {
    background: rgba(34, 197, 94, 0.65);
    color: #fff;
    opacity: 1;
    cursor: default;
}

/* ─── Following User Card ─────────────────────────────────────────────────── */

.following-user-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    min-height: 72px;
}

.following-user-card:hover {
    background: rgba(124, 77, 255, 0.08);
    border-color: rgba(124, 77, 255, 0.25);
    transform: translateY(-2px);
}

.following-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.08);
}

.following-user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.following-user-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.following-user-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.following-user-sub i {
    margin-right: 4px;
}

@media (max-width: 600px) {
    .following-user-card {
        padding: 12px 14px;
    }
    .following-user-avatar {
        width: 40px;
        height: 40px;
    }
    .following-user-name {
        font-size: 0.95rem;
    }
}

/* ─── Following Compact List ──────────────────────────────────────────────── */

.following-list-compact {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 420px;
    overflow-y: auto;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
    padding: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.following-list-compact::-webkit-scrollbar { width: 4px; }
.following-list-compact::-webkit-scrollbar-track { background: transparent; }
.following-list-compact::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 4px; }

.following-list-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.15s ease;
    cursor: pointer;
}

.following-list-row:hover {
    background: rgba(124, 77, 255, 0.1);
}

.following-list-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1.5px solid rgba(255,255,255,0.08);
}

.following-list-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.following-list-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.following-list-username {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.following-list-chevron {
    color: rgba(255,255,255,0.2);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.section-count {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 6px;
}

/* ─── Username Setup Modal ────────────────────────────────────────────────── */

.username-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeIn 0.3s ease;
}

.username-modal {
    background: rgba(18, 18, 24, 0.98);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 40px 36px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}

.username-modal-icon {
    width: 64px;
    height: 64px;
    background: rgba(124, 77, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 1.6rem;
}

.username-modal h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.username-modal p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0 0 28px;
    line-height: 1.6;
}

.username-input-wrap {
    position: relative;
    margin-bottom: 12px;
}

.username-prefix {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-purple);
    font-weight: 700;
    font-size: 1rem;
    pointer-events: none;
}

.username-input {
    width: 100%;
    padding: 14px 16px 14px 34px;
    background: rgba(255,255,255,0.05);
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.username-input:focus { border-color: var(--accent-purple); }
.username-input.valid   { border-color: #4ade80; }
.username-input.invalid { border-color: #ef4444; }

.username-feedback {
    min-height: 22px;
    font-size: 0.82rem;
    text-align: left;
    margin-bottom: 20px;
    transition: color 0.2s;
    padding-left: 4px;
}

.username-feedback.ok    { color: #4ade80; }
.username-feedback.error { color: #ef4444; }
.username-feedback.checking { color: var(--text-muted); }

.username-submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--accent-purple);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    font-family: 'Outfit', sans-serif;
}

.username-submit-btn:hover:not(:disabled) { background: #9061f9; transform: translateY(-1px); }
.username-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.username-rules {
    margin-top: 20px;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.7;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 480px) {
    .username-modal { padding: 28px 20px; }
    .username-modal h2 { font-size: 1.3rem; }
}

/* ─── People Search Section ───────────────────────────────────────────────── */

.people-search-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.people-search-header {
    margin-bottom: 24px;
}

.people-search-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 6px;
}

.people-search-title i {
    color: var(--accent-purple);
    margin-right: 10px;
}

.people-search-sub {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.people-search-bar {
    position: relative;
    margin-bottom: 20px;
    max-width: 480px;
}

.people-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-purple);
    font-size: 1rem;
}

.people-search-input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    background: rgba(255,255,255,0.05);
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    color: var(--text-main);
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.people-search-input:focus {
    border-color: var(--accent-purple);
    background: rgba(255,255,255,0.07);
}

.people-search-hint {
    color: var(--text-muted);
    font-size: 0.88rem;
    padding: 12px 0;
}

.people-search-results {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 640px;
}

.people-result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    transition: background 0.15s;
}

.people-result-row:hover {
    background: rgba(255,255,255,0.06);
}

.people-result-link {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    flex: 1;
    min-width: 0;
}

.people-result-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.08);
}

.people-result-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.people-result-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.people-result-username {
    font-size: 0.78rem;
    color: var(--accent-purple);
    font-weight: 500;
}

.people-follow-btn {
    flex-shrink: 0;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Outfit', sans-serif;
    min-width: 84px;
}

@media (max-width: 600px) {
    .people-search-bar { max-width: 100%; }
    .people-result-row { padding: 12px; gap: 10px; }
    .people-result-avatar { width: 38px; height: 38px; }
    .people-follow-btn { padding: 7px 12px; min-width: 70px; font-size: 0.8rem; }
}

/* (profile-username-display defined in profile header block) */

/* (social counts defined in profile header block) */

/* ─── View All – subtle inline link ──────────────────────────────────────── */

.view-all-inline {
    margin-top: 16px;
    text-align: center;
}

.view-all-text-link {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
    padding: 4px 0;
}

.view-all-text-link:hover { color: var(--accent-purple); }
.view-all-text-link i { font-size: 0.8rem; }

/* ─── Settings Quick Link on profile page ────────────────────────────────── */

.settings-quick-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
    cursor: pointer;
}

.settings-quick-link:hover {
    background: rgba(124,77,255,0.07);
    border-color: rgba(124,77,255,0.2);
}

.settings-quick-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.settings-quick-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(124,77,255,0.12);
    color: var(--accent-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.settings-quick-title {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
}

.settings-quick-sub {
    display: block;
    font-size: 0.78rem;
    color: rgba(161, 161, 170, 0.65);
    margin-top: 2px;
}

/* ─── Taste DNA Strip ─────────────────────────────────────────────────────── */

.taste-dna-section {
    max-width: 560px;
    margin: 4px auto 0;
    padding: 0 0 0;
}

.taste-dna-sentence {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(167, 139, 250, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 12px;
}

.taste-dna-genres {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Each genre pill */
.tdna-pill {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 10px 14px;
    min-width: 90px;
    flex-shrink: 0;
    transition: background 0.2s;
}

.tdna-pill:hover {
    background: rgba(124, 77, 255, 0.08);
    border-color: rgba(124, 77, 255, 0.2);
}

/* Top genre gets a subtle purple tint */
.tdna-pill-top {
    background: rgba(124, 77, 255, 0.1);
    border-color: rgba(124, 77, 255, 0.25);
}

.tdna-pill-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.tdna-pill-pct {
    font-size: 0.7rem;
    color: rgba(167, 139, 250, 0.8);
    font-weight: 600;
}

/* Thin progress bar inside pill */
.tdna-pill-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.tdna-pill-fill {
    height: 100%;
    background: linear-gradient(to right, #7c4dff, #a78bfa);
    border-radius: 2px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.tdna-empty {
    font-size: 0.85rem;
    color: rgba(161, 161, 170, 0.5);
    font-style: italic;
}
