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

:root {
    --bg-dark: hsl(240, 15%, 4%);
    --bg-card: hsl(240, 10%, 9%);
    --bg-input: hsl(240, 10%, 14%);
    
    /* Vibrant HSL Neon Gradients */
    --accent: hsl(342, 100%, 53%); /* Neon Pink */
    --accent-blue: hsl(190, 100%, 45%); /* Neon Teal */
    --accent-purple: hsl(263, 90%, 50%); /* Neon Purple */
    --accent-gradient: linear-gradient(135deg, var(--accent), var(--accent-purple));
    --accent-glow: 0 0 15px rgba(255, 0, 92, 0.4);
    
    --text-main: hsl(0, 0%, 100%);
    --text-muted: hsl(240, 5%, 70%);
    --text-dark: hsl(240, 5%, 40%);
    
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-bg-hover: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(20px);
    
    --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* -------------------------------------------------------------
   1. RESET & INITIAL SETUP
------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    overflow: hidden;
    height: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
    display: flex;
}

/* Scrollbar customization */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* -------------------------------------------------------------
   2. DESKTOP & RESPONSIVE LAYOUT SHELL
------------------------------------------------------------- */
.app-container {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Desktop Navigation Sidebar (hidden on mobile) */
.desktop-sidebar {
    width: 320px;
    background: linear-gradient(180deg, var(--bg-dark) 0%, hsl(240, 15%, 2%) 100%);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 24px;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.logo-container:hover {
    transform: scale(1.02);
}

.logo-graphic {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-graphic svg, .logo-graphic img {
    width: 100%;
    height: 100%;
    display: block;
}

.logo-icon {
    font-size: 24px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: var(--accent-glow);
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-text span {
    color: hsl(358, 100%, 50%); /* Vibrant Red color */
    text-shadow: 0 0 12px rgba(255, 0, 0, 0.6);
}

.mobile-top-header {
    display: none;
}

.sidebar-menu {
    list-style: none;
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border-radius: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.menu-item svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    transition: var(--transition-smooth);
}

.menu-item:hover, .menu-item.active {
    color: var(--text-main);
    background: var(--glass-bg-hover);
}

.menu-item.active svg {
    stroke: var(--accent);
    filter: drop-shadow(0 0 5px rgba(255,0,92,0.5));
}

.upload-cta-btn {
    margin-top: 24px;
    background: var(--accent-gradient);
    border: none;
    color: var(--text-main);
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: var(--accent-glow);
    transition: var(--transition-bounce);
}

.upload-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 0, 92, 0.7);
}

.sidebar-footer {
    font-size: 12px;
    color: var(--text-dark);
    line-height: 1.5;
}

.sidebar-footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.sidebar-footer a:hover {
    color: var(--accent);
    text-shadow: 0 0 8px rgba(255, 0, 92, 0.4);
}

/* -------------------------------------------------------------
   3. REEL VIEWPORT MAIN PANEL
------------------------------------------------------------- */
.main-content {
    flex: 1;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, hsl(240, 12%, 8%) 0%, var(--bg-dark) 100%);
    position: relative;
}

/* Reel Feed Viewport Container */
.feed-container {
    width: 100%;
    height: 100%;
    max-width: 480px; /* Perfect smartphone aspect-ratio envelope on Desktop */
    background-color: #000;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    scrollbar-width: none; /* Hide default scrollbar Firefox */
    position: relative;
    box-shadow: var(--shadow-premium);
    will-change: transform;
}

/* Hidden scrollbar Webkit */
.feed-container::-webkit-scrollbar {
    display: none;
}

/* -------------------------------------------------------------
   4. REEL CARD & CUSTOM VIDEO PLAYER
------------------------------------------------------------- */
.reel-card {
    height: 100%;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
}

.video-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.video-player {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crucial for full aspect ratio crop */
    cursor: pointer;
}

/* Loader indicator overlay */
.video-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    transition: var(--transition-smooth);
}

.video-loader.active {
    opacity: 1;
}

.loader-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tap Play/Pause Indicator Pulse Overlay */
.play-pause-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    z-index: 4;
}

.play-pause-pulse svg {
    width: 36px;
    height: 36px;
    fill: #fff;
}

.play-pause-pulse.animate {
    animation: pulseFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pulseFade {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

/* Double-Tap Floating Heart Animation */
.floating-heart {
    position: absolute;
    pointer-events: none;
    z-index: 10;
    animation: heartFlyUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.floating-heart svg {
    width: 70px;
    height: 70px;
    fill: var(--accent);
    filter: drop-shadow(0 0 10px rgba(255, 0, 92, 0.8));
}

@keyframes heartFlyUp {
    0% { transform: translate(-50%, -50%) scale(0) rotate(0deg); opacity: 0; }
    15% { transform: translate(-50%, -50%) scale(1.2) rotate(-15deg); opacity: 0.9; }
    30% { transform: translate(-50%, -50%) scale(1) rotate(10deg); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(0.8) translateY(-120px) rotate(-20deg); opacity: 0; }
}

/* Global Mute Toggle Floating Button */
.global-mute-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 12;
    transition: var(--transition-bounce);
    display: flex;
    align-items: center;
    justify-content: center;
}

.global-mute-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--text-main);
    stroke-width: 2;
}

.global-mute-btn:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.6);
}



/* Floating volume pulse overlay on screen */
.volume-pulse-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
    animation: pulseFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.volume-pulse-indicator svg {
    width: 36px;
    height: 36px;
    stroke: #fff;
    stroke-width: 2.5;
    fill: none;
}

/* -------------------------------------------------------------
   5. REEL INFO OVERLAY (CAPTION & LABELS)
------------------------------------------------------------- */
.reel-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 80px 80px 24px 18px; /* Extra padding on right to clear the action bar */
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.85) 100%);
    pointer-events: none;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reel-info-overlay * {
    pointer-events: auto; /* Enable clicks inside info panel */
}

.creator-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.creator-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--text-main);
    object-fit: cover;
    background: var(--accent-gradient);
    cursor: pointer;
    transition: var(--transition-bounce);
}

.creator-avatar:hover {
    transform: scale(1.15) rotate(5deg);
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.6);
}

.creator-handle {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-main);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.creator-handle:hover {
    color: var(--accent-blue);
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
    text-decoration: none;
}

.reel-caption {
    font-size: 14px;
    line-height: 1.4;
    color: #f1f1f1;
    font-weight: 400;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.reel-caption a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    margin-right: 4px;
}

.reel-caption a:hover {
    text-decoration: underline;
}

.music-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.music-row svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    flex-shrink: 0;
}

/* Infinite marquee track for music name */
.music-ticker-container {
    overflow: hidden;
    width: 100%;
    white-space: nowrap;
    position: relative;
}

.music-ticker-track {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 12s linear infinite;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

@keyframes marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* -------------------------------------------------------------
   6. FLOATING RIGHT ACTION SIDEBAR
------------------------------------------------------------- */
.reel-actions-sidebar {
    position: absolute;
    bottom: 24px;
    right: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    z-index: 3;
}

.action-btn-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.action-icon-wrapper {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

/* Subtle inner shimmer highlight */
.action-icon-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.action-icon-wrapper svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

/* Hover: neon glow ring + shimmer sweep */
.action-btn-group:hover .action-icon-wrapper {
    transform: scale(1.15);
    background: rgba(255, 0, 92, 0.12);
    border-color: rgba(255, 0, 92, 0.5);
    box-shadow: 0 0 20px rgba(255, 0, 92, 0.3), 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.action-btn-group:hover .action-icon-wrapper::before {
    left: 100%;
}

.action-btn-group:hover .action-icon-wrapper svg {
    filter: drop-shadow(0 0 6px rgba(255, 0, 92, 0.5));
}

/* Active press feedback */
.action-btn-group:active .action-icon-wrapper {
    transform: scale(0.92);
    transition-duration: 0.1s;
}

/* Active Liked State */
.action-btn-group.liked .action-icon-wrapper {
    color: var(--accent);
    background: rgba(255, 0, 92, 0.18);
    border-color: rgba(255, 0, 92, 0.45);
    box-shadow: 0 0 16px rgba(255, 0, 92, 0.35), 0 4px 16px rgba(0, 0, 0, 0.3);
    animation: likedPulse 2s ease-in-out infinite;
}

.action-btn-group.liked .action-icon-wrapper svg {
    fill: var(--accent);
    stroke: var(--accent);
    filter: drop-shadow(0 0 8px rgba(255, 0, 92, 0.6));
}

@keyframes likedPulse {
    0%, 100% { box-shadow: 0 0 16px rgba(255, 0, 92, 0.35), 0 4px 16px rgba(0, 0, 0, 0.3); }
    50% { box-shadow: 0 0 22px rgba(255, 0, 92, 0.5), 0 4px 16px rgba(0, 0, 0, 0.3); }
}

.action-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-main);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9), 0 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.2px;
}

/* Spinning Vinyl Sound cover */
.music-vinyl-disc {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 3px solid #0a0a0a;
    background:
        radial-gradient(circle at center, transparent 6px, rgba(40,40,40,0.8) 6px, rgba(40,40,40,0.8) 7px, transparent 7px),
        conic-gradient(
            rgba(30,30,30,0.9) 0deg, rgba(60,60,60,0.6) 30deg,
            rgba(25,25,25,0.9) 60deg, rgba(55,55,55,0.6) 90deg,
            rgba(30,30,30,0.9) 120deg, rgba(60,60,60,0.6) 150deg,
            rgba(25,25,25,0.9) 180deg, rgba(55,55,55,0.6) 210deg,
            rgba(30,30,30,0.9) 240deg, rgba(60,60,60,0.6) 270deg,
            rgba(25,25,25,0.9) 300deg, rgba(55,55,55,0.6) 330deg,
            rgba(30,30,30,0.9) 360deg
        );
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6), inset 0 0 3px rgba(255,255,255,0.05);
    animation: rotateVinyl 4s linear infinite;
    cursor: pointer;
    transition: var(--transition-smooth);
}

/* Neon gradient center label */
.vinyl-mock {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-gradient);
    box-shadow: 0 0 8px rgba(255, 0, 92, 0.5), 0 0 16px rgba(121, 40, 202, 0.3);
    border: 2px solid rgba(0, 0, 0, 0.5);
}

/* Spindle hole */
.vinyl-mock::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #0a0a0a;
    box-shadow: inset 0 0 2px rgba(0,0,0,0.8);
}

.music-vinyl-disc img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    transform: scale(0.9);
}

/* Control disc rotation based on play status */
.music-vinyl-disc.paused {
    animation-play-state: paused;
}

@keyframes rotateVinyl {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* -------------------------------------------------------------
   7. SLIDING COMMENTS DRAWER
------------------------------------------------------------- */
.comments-drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 15;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

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

.comments-drawer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65%; /* 65% of viewport height on mobile */
    background: rgba(18, 18, 22, 0.95);
    backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--glass-border);
    border-radius: 16px 16px 0 0;
    display: flex;
    flex-direction: column;
    z-index: 16;
    transform: translateY(100%);
    transition: var(--transition-bounce);
    overflow: hidden;
}

.comments-drawer-overlay.active .comments-drawer {
    transform: translateY(0);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--glass-border);
}

.drawer-title {
    font-size: 15px;
    font-weight: 700;
}

.drawer-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: var(--transition-smooth);
    display: flex;
}

.drawer-close-btn:hover {
    color: var(--text-main);
    background: var(--glass-bg);
}

.drawer-close-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
}

/* Comment list scroll container */
.comments-list-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.comment-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-gradient);
    flex-shrink: 0;
    object-fit: cover;
}

.comment-content-box {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-username {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.comment-username:hover {
    color: var(--accent-blue);
    text-shadow: 0 0 6px rgba(0, 240, 255, 0.4);
}

.comment-time {
    font-size: 10px;
    color: var(--text-dark);
}

.comment-text {
    font-size: 13px;
    color: #e1e1e1;
    line-height: 1.4;
    word-break: break-word;
}

/* Empty state styling */
.comments-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-dark);
    gap: 8px;
    text-align: center;
}

.comments-empty-state svg {
    width: 48px;
    height: 48px;
    stroke: currentColor;
    stroke-width: 1.5;
}

/* Comment Form Footer */
.comment-form-footer {
    padding: 14px 16px;
    border-top: 1px solid var(--glass-border);
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comment-input-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.comment-textbox {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 10px 16px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 13px;
    outline: none;
    transition: var(--transition-smooth);
}

.comment-textbox:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(255, 0, 92, 0.2);
}

.comment-username-box {
    width: 100px;
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 10px 12px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 12px;
    outline: none;
    transition: var(--transition-smooth);
}

.comment-username-box:focus {
    border-color: var(--accent-blue);
}

.comment-submit-btn {
    background: var(--accent-gradient);
    border: none;
    color: var(--text-main);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition-bounce);
}

.comment-submit-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--accent-glow);
}

.comment-submit-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

/* -------------------------------------------------------------
   8. DRAG & DROP UPLOAD MODAL
------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    z-index: 110;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

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

.upload-modal {
    background: rgba(22, 22, 28, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    width: 90%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-premium);
    transform: scale(0.9);
    transition: var(--transition-bounce);
    display: flex;
    flex-direction: column;
}

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

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 20px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    transition: var(--transition-smooth);
}

.modal-close-btn:hover {
    color: var(--text-main);
    background: rgba(255,255,255,0.05);
}

.modal-close-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2.5;
}

.modal-body {
    padding: 24px;
}

/* Drag Area Setup */
.drag-drop-area {
    border: 2px dashed var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.drag-drop-area:hover, .drag-drop-area.dragover {
    border-color: var(--accent);
    background: rgba(255, 0, 92, 0.04);
}

.drag-drop-area svg {
    width: 48px;
    height: 48px;
    stroke: var(--text-muted);
    stroke-width: 1.5;
    transition: var(--transition-smooth);
}

.drag-drop-area:hover svg, .drag-drop-area.dragover svg {
    stroke: var(--accent);
    transform: translateY(-4px);
}

.drag-caption {
    font-size: 15px;
    font-weight: 600;
}

.drag-subtext {
    font-size: 12px;
    color: var(--text-dark);
}

.file-input {
    display: none;
}

/* Selected File HUD */
.selected-file-hud {
    display: none;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 12px 16px;
    border-radius: 12px;
    gap: 12px;
    margin-top: 14px;
    width: 100%;
}

.selected-file-hud.active {
    display: flex;
}

.selected-file-hud svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent-blue);
    stroke-width: 2;
}

.file-info {
    flex: 1;
    overflow: hidden;
}

.file-name {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.file-size {
    font-size: 11px;
    color: var(--text-dark);
}

.remove-file-btn {
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    padding: 4px;
    display: flex;
    transition: var(--transition-smooth);
}

.remove-file-btn:hover {
    color: var(--accent);
}

.remove-file-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2.5;
}

/* Metadata Form fields */
.upload-form {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
}

.form-input, .form-textarea {
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: var(--transition-smooth);
    width: 100%;
}

.form-textarea {
    resize: none;
    height: 80px;
}

.form-input:focus, .form-textarea:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

/* Upload Submit button */
.upload-submit-btn {
    background: var(--accent-gradient);
    border: none;
    color: var(--text-main);
    padding: 14px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition-bounce);
    box-shadow: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.upload-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 0, 92, 0.7);
}

.upload-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Upload HUD and Progress Circle/Bar */
.upload-progress-hud {
    display: none;
    margin-top: 16px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 16px;
    border-radius: 16px;
    flex-direction: column;
    gap: 10px;
}

.upload-progress-hud.active {
    display: flex;
}

.progress-header-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
}

.progress-track-bg {
    background: var(--bg-input);
    border-radius: 10px;
    height: 8px;
    width: 100%;
    overflow: hidden;
}

.progress-bar-fill {
    background: var(--accent-gradient);
    height: 100%;
    width: 0%;
    border-radius: 10px;
    transition: width 0.1s linear;
}

/* -------------------------------------------------------------
   9. MOBILE CORE RESPONSIVENESS & SHELL
------------------------------------------------------------- */
.bottom-bar {
    display: none; /* Desktop hidden */
}

/* Hide scrollbars globally */
body, html {
    scrollbar-width: none;
}

/* RESPONSIVE DESIGN TRANSITIONS */
@media (max-width: 800px) {
    /* Hide desktop sidebar on smaller viewports */
    .desktop-sidebar {
        display: none;
    }
    
    .main-content {
        background: #000;
    }
    
    /* ---- Unified Mobile Top Header Bar ---- */
    .mobile-top-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: calc(56px + env(safe-area-inset-top, 0px));
        padding-top: env(safe-area-inset-top, 0px);
        z-index: 101;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding-left: 16px;
        padding-right: 16px;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.35) 60%, transparent 100%);
        pointer-events: none;
    }
    
    .mobile-top-header > * {
        pointer-events: auto;
    }
    
    .mobile-header-logo {
        display: flex;
        align-items: center;
        gap: 7px;
        text-decoration: none;
        color: var(--text-main);
        flex-shrink: 0;
        transition: var(--transition-bounce);
    }
    
    .mobile-header-logo:hover {
        transform: scale(1.05);
    }
    
    .mobile-header-logo .logo-graphic {
        width: 22px;
        height: 22px;
    }
    
    .mobile-header-logo .logo-text {
        font-size: 17px;
        font-weight: 800;
        letter-spacing: -0.3px;
        line-height: 1;
        text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
    }
    
    .mobile-header-logo .logo-text span {
        color: hsl(358, 100%, 50%);
        text-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
    }
    
    /* Reposition mute button inside header visual space on mobile */
    .global-mute-btn {
        position: fixed;
        top: calc(12px + env(safe-area-inset-top, 0px));
        right: 16px;
        z-index: 102;
    }
    
    /* Lock feed container to full-viewport dimensions on mobile */
    .feed-container {
        max-width: 100%;
        height: 100vh;
        height: 100dvh;
        box-shadow: none;
    }

    /* Enforce fixed viewport layout for all dialog overlays on mobile to bypass browser viewport shifting */
    .comments-drawer-overlay {
        position: fixed !important;
        z-index: 105 !important;
    }

    /* Change comments drawer height on mobile */
    .comments-drawer {
        height: 60%;
    }
    
    /* Full-screen Discover Overlay page on mobile, sitting cleanly above the bottom navigation bar */
    #discover-overlay {
        position: fixed !important;
        height: calc(100% - 58px - env(safe-area-inset-bottom, 0px)) !important;
        bottom: calc(58px + env(safe-area-inset-bottom, 0px)) !important;
        top: 0 !important;
        z-index: 105 !important;
    }
    
    #discover-overlay .comments-drawer {
        height: 100% !important;
        bottom: 0 !important;
        border-radius: 0 !important;
    }
    
    /* Adjust actions layout */
    .reel-actions-sidebar {
        bottom: calc(58px + env(safe-area-inset-bottom, 0px) + 16px);
        right: 12px;
    }
    
    .reel-info-overlay {
        bottom: calc(58px + env(safe-area-inset-bottom, 0px));
        padding-bottom: 12px;
    }

    /* Floating bottom mobile navigation tabs */
    .bottom-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: calc(58px + env(safe-area-inset-bottom, 0px));
        background: rgba(10, 10, 12, 0.9);
        backdrop-filter: blur(15px);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        z-index: 20; /* Raised from 10 to clear overlays and maintain interactivity */
        justify-content: space-around;
        align-items: center;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
    
    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: var(--text-muted);
        text-decoration: none;
        font-size: 10px;
        font-weight: 700;
        gap: 3px;
        cursor: pointer;
        position: relative;
        transition: var(--transition-smooth);
    }

    .bottom-nav-item span {
        font-size: 10px;
        font-weight: 700;
        line-height: 1.1;
        display: block;
        transition: var(--transition-smooth);
    }
    
    .bottom-nav-item svg {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        transition: var(--transition-smooth);
    }
    
    .bottom-nav-item.active {
        color: var(--text-main);
    }
    
    .bottom-nav-item.active svg {
        stroke: var(--accent);
        filter: drop-shadow(0 0 6px rgba(255,0,92,0.6));
    }
    
    /* Glowing neon underline below active bottom tab */
    .bottom-nav-item.active::after {
        content: '';
        position: absolute;
        bottom: -5px; /* Positioned cleanly below the text instead of overlapping it */
        left: 50%;
        transform: translateX(-50%);
        width: 16px;
        height: 3px;
        border-radius: 3px;
        background: var(--accent);
        box-shadow: 0 0 8px rgba(255, 0, 92, 0.7), 0 0 16px rgba(255, 0, 92, 0.3);
        animation: glowPulseBar 2s ease-in-out infinite;
    }
    
    @keyframes glowPulseBar {
        0%, 100% { box-shadow: 0 0 8px rgba(255, 0, 92, 0.7), 0 0 16px rgba(255, 0, 92, 0.3); }
        50% { box-shadow: 0 0 12px rgba(255, 0, 92, 0.9), 0 0 24px rgba(255, 0, 92, 0.5); }
    }
    
    /* Glowing central upload Plus button */
    .bottom-nav-item.upload-plus {
        background: var(--accent-gradient);
        border-radius: 12px;
        padding: 8px 14px;
        color: var(--text-main);
        box-shadow: var(--accent-glow);
    }
    
    .bottom-nav-item.upload-plus svg {
        stroke: var(--text-main);
        stroke-width: 3;
    }
}

/* -------------------------------------------------------------
   8. 18+ ADULT DISCLAIMER OVERLAY
------------------------------------------------------------- */
.disclaimer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, rgba(10, 10, 14, 0.99) 0%, rgba(5, 5, 8, 1) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.disclaimer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.disclaimer-card {
    background: rgba(18, 18, 22, 0.85);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 48px 36px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.9), 0 0 50px rgba(255, 61, 154, 0.15);
    transform: scale(0.92);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.disclaimer-overlay.active .disclaimer-card {
    transform: scale(1);
}

.disclaimer-badge {
    background: linear-gradient(135deg, #FF3D9A 0%, #FF8A00 100%);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(255, 61, 154, 0.3);
    animation: disclaimerPulse 2.5s infinite alternate ease-in-out;
}

@keyframes disclaimerPulse {
    0% { box-shadow: 0 0 15px rgba(255, 61, 154, 0.25); transform: scale(1); }
    100% { box-shadow: 0 0 30px rgba(255, 61, 154, 0.6); transform: scale(1.04); }
}

.disclaimer-title {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 40%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.disclaimer-description {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.disclaimer-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 12px;
    margin-top: 8px;
}

.btn-confirm {
    background: var(--accent-gradient);
    border: none;
    color: var(--text-main);
    padding: 16px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    box-shadow: var(--accent-glow);
    transition: var(--transition-bounce);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 0, 92, 0.7);
}

.btn-confirm svg {
    stroke-width: 3px;
}

.btn-reject {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 14px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-reject:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.2);
}

/* -------------------------------------------------------------
   10. GLASSMORPHIC AUTHENTICATION SYSTEM STYLING
------------------------------------------------------------- */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(12, 12, 16, 0.95) 0%, rgba(4, 4, 6, 0.98) 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.auth-card {
    position: relative;
    background: rgba(18, 18, 22, 0.75);
    border: 1px solid var(--glass-border);
    border-top: 3px solid var(--accent);
    border-radius: 28px;
    width: 90%;
    max-width: 440px;
    padding: 40px 32px;
    box-shadow: var(--shadow-premium), 0 0 40px rgba(255, 0, 92, 0.05);
    display: flex;
    flex-direction: column;
    gap: 24px;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-overlay.active .auth-card {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.auth-header {
    text-align: center;
}

.auth-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.auth-title span {
    color: var(--accent);
    text-shadow: var(--accent-glow);
}

.auth-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 2px;
    gap: 16px;
}

.auth-tab {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 12px 6px;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    transition: var(--transition-smooth);
    text-align: center;
}

.auth-tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 10px;
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.auth-tab:hover {
    color: var(--text-main);
}

.auth-tab.active {
    color: var(--text-main);
}

.auth-tab.active::after {
    transform: scaleX(1);
    box-shadow: var(--accent-glow);
}

.auth-error-banner {
    display: none;
    background: rgba(255, 0, 92, 0.1);
    border: 1px solid rgba(255, 0, 92, 0.25);
    color: var(--accent);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.5;
    animation: authShake 0.4s ease-in-out;
}

@keyframes authShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

.auth-form {
    display: none;
    flex-direction: column;
    gap: 18px;
}

.auth-form.active {
    display: flex;
}

.auth-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-input-group label {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-input-group input {
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 500;
    outline: none;
    transition: var(--transition-smooth);
}

.auth-input-group input::placeholder {
    color: var(--text-dark);
}

.auth-input-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(255, 0, 92, 0.15);
    background: rgba(255, 255, 255, 0.02);
}

/* Dual Focus Color Variant for Registration */
#form-signup .auth-input-group input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.auth-submit-btn {
    background: var(--accent-gradient);
    border: none;
    color: var(--text-main);
    padding: 16px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--accent-glow);
    transition: var(--transition-bounce);
    margin-top: 6px;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 0, 92, 0.7);
}

.auth-submit-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    transition: transform 0.3s;
}

.auth-submit-btn:hover svg {
    transform: translateX(4px);
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-dark);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 4px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--glass-border);
}

.auth-divider span {
    padding: 0 12px;
}

.btn-guest-login {
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.2);
    color: var(--accent-blue);
    padding: 14px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-bounce);
}

.btn-guest-login:hover {
    background: rgba(0, 240, 255, 0.15);
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
    color: #fff;
    transform: translateY(-2px);
}

.btn-guest-login svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* -------------------------------------------------------------
   11. PROFILE DIALOG & METADATA PANELS
------------------------------------------------------------- */
/* -------------------------------------------------------------
   11. PROFILE DIALOG & METADATA PANELS
------------------------------------------------------------- */
.profile-modal {
    background: rgba(18, 18, 22, 0.7);
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    width: 90%;
    max-width: 390px;
    padding: 32px 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 50px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: modalEntrance 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    position: relative;
}

.profile-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
}

.profile-avatar-large {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent));
    box-shadow: 0 0 25px rgba(255, 0, 92, 0.35), 0 0 50px rgba(138, 43, 226, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    border: 3px solid rgba(255, 255, 255, 0.15);
    position: relative;
    transition: var(--transition-bounce);
    cursor: pointer;
    user-select: none;
}

.profile-avatar-large:hover {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 0 35px rgba(255, 0, 92, 0.55), 0 0 65px rgba(138, 43, 226, 0.35);
    border-color: rgba(255, 255, 255, 0.3);
}

.profile-name-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.profile-handle-sub {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-blue);
    margin-top: -8px;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.profile-badge-row {
    margin-top: -2px;
}

.profile-badge-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition-smooth);
}

.profile-badge-pill:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--accent-blue);
}

.profile-info-grid {
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    margin-top: 10px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.01);
    transition: var(--transition-smooth);
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.04);
}

.info-label {
    font-size: 10.5px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.info-icon {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: var(--accent-blue);
    stroke-width: 2.5;
    display: inline-block;
    vertical-align: middle;
    transition: var(--transition-smooth);
}

.info-item:hover .info-icon {
    stroke: var(--accent);
    transform: scale(1.1);
}

.info-value {
    font-size: 13.5px;
    color: var(--text-main);
    font-weight: 600;
    letter-spacing: 0.2px;
    padding-left: 22px;
}

.profile-logout-btn {
    background: rgba(255, 0, 92, 0.08);
    border: 1px solid rgba(255, 0, 92, 0.2);
    color: var(--accent);
    padding: 14px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-bounce);
    margin-top: 14px;
    position: relative;
    overflow: hidden;
}

.profile-logout-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 0 20px rgba(255, 0, 92, 0.5);
    transform: translateY(-2px);
}

.profile-logout-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    transition: var(--transition-smooth);
}

.profile-logout-btn:hover svg {
    transform: translateX(3px);
}

/* -------------------------------------------------------------
   8. DISCOVER DRAWER & GRID STYLING
------------------------------------------------------------- */
#discover-search-input:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 12px rgba(255, 0, 92, 0.3) !important;
}

/* Enhanced discover tags carousel styling */
.discover-tags-carousel {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.discover-carousel-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.discover-tags-scroll {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    flex: 1;
    scrollbar-width: none; /* Firefox */
    padding: 4px 2px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
}

.discover-tags-scroll::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

/* Arrow Navigation Buttons */
.tags-arrow {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: rgba(22, 22, 28, 0.9);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.25s ease;
    z-index: 3;
}

.tags-arrow svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

.tags-arrow:hover {
    background: var(--glass-bg-hover);
    border-color: var(--accent);
    color: var(--text-main);
    box-shadow: 0 0 12px rgba(255, 0, 92, 0.25);
    transform: scale(1.1);
}

.tags-arrow:active {
    transform: scale(0.92);
}

.tags-arrow.hidden {
    opacity: 0;
    pointer-events: none;
}

.discover-tag-chip {
    flex-shrink: 0;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.discover-tag-chip:hover {
    background: var(--glass-bg-hover);
    border-color: var(--accent);
    color: var(--text-main);
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(255, 0, 92, 0.2);
}

.discover-tag-chip.active-tag {
    background: var(--accent-gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 0 14px rgba(255, 0, 92, 0.4);
    transform: scale(1.06);
}

/* Enhanced discover categories grid */
.discover-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
}

.discover-category-card {
    height: 90px;
    border-radius: 16px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 12px;
    transition: var(--transition-bounce);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-premium);
}

.discover-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
    transition: var(--transition-smooth);
}

.discover-category-card:hover::before {
    background: rgba(0, 0, 0, 0.05);
}

.discover-category-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Beautiful bespoke category card gradients */
.discover-category-card.amateur {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
}
.discover-category-card.amateur:hover {
    box-shadow: 0 8px 24px rgba(255, 75, 43, 0.3);
}

.discover-category-card.pov {
    background: linear-gradient(135deg, #8a2387 0%, #e94057 50%, #f27121 100%);
}
.discover-category-card.pov:hover {
    box-shadow: 0 8px 24px rgba(233, 64, 87, 0.3);
}

.discover-category-card.creampie {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}
.discover-category-card.creampie:hover {
    box-shadow: 0 8px 24px rgba(42, 82, 152, 0.3);
}

.discover-category-card.teen {
    background: linear-gradient(135deg, #f857a6 0%, #ff5858 100%);
}
.discover-category-card.teen:hover {
    box-shadow: 0 8px 24px rgba(248, 87, 166, 0.3);
}

.category-icon {
    font-size: 24px;
    position: absolute;
    top: 8px;
    right: 12px;
    z-index: 2;
    transition: var(--transition-bounce);
}

.discover-category-card:hover .category-icon {
    transform: rotate(12deg) scale(1.2);
}

.category-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.category-tag {
    font-size: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    margin-top: 2px;
}


.discover-results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
    margin-top: 4px;
}

.discover-result-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-bounce);
    position: relative;
    aspect-ratio: 9/16;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.discover-result-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-blue);
    box-shadow: 0 8px 24px rgba(0, 240, 255, 0.15);
}

.discover-result-video-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.65;
    transition: var(--transition-smooth);
}

.discover-result-card:hover .discover-result-video-preview {
    opacity: 0.95;
    transform: scale(1.05);
}

.discover-result-info {
    position: relative;
    z-index: 2;
    padding: 10px;
    background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    width: 100%;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 4px;
    pointer-events: none; /* Let the card capture all clicks */
}

.discover-result-user {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-blue);
}

.discover-result-caption {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.discover-result-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 4px;
}

.discover-result-likes {
    display: flex;
    align-items: center;
    gap: 3px;
}

.discover-result-likes svg {
    width: 11px;
    height: 11px;
    fill: var(--accent);
    stroke: none;
}

/* =============================================================
   12. FULL SCREEN CREATOR PROFILE DESIGN
============================================================= */
#public-profile-modal-overlay {
    background: rgba(10, 10, 14, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 200; /* Stays on top of feed cards, sidebar, and overlays */
}

#public-profile-modal-overlay .profile-modal {
    width: 100%;
    height: 100%;
    max-width: 680px; /* Centered column matching standard mobile webapp aspect ratio */
    max-height: 100vh;
    border-radius: 0;
    margin: 0;
    padding: 0;
    border: none;
    background: rgba(18, 18, 22, 0.98);
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.8);
    animation: slideUpProfile 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

@keyframes slideUpProfile {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Nav Header Bar */
.profile-nav-header {
    height: 64px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background: rgba(22, 22, 28, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 20;
}

.profile-back-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.profile-back-btn:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    box-shadow: 0 0 12px var(--accent);
}

.profile-back-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.profile-nav-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Scrollable area */
.profile-full-scrollable {
    flex: 1;
    overflow-y: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: var(--glass-border) transparent;
}

.profile-full-scrollable::-webkit-scrollbar {
    width: 6px;
}

.profile-full-scrollable::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 3px;
}

/* Hero Cover */
.profile-hero-banner {
    height: 140px;
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 0, 92, 0.25), rgba(138, 43, 226, 0.25)) center/cover no-repeat;
    background-blend-mode: overlay;
    position: relative;
    border-bottom: 1px solid var(--glass-border);
}

/* Profile Info Block */
.profile-info-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 24px 24px 24px;
    margin-top: -50px; /* Pull overlap avatar upwards */
    position: relative;
    z-index: 10;
    text-align: center;
}

.profile-info-block .profile-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    font-size: 40px;
    font-weight: 800;
    border: 4px solid #121216;
    margin-bottom: 12px;
}

.profile-info-block .profile-name-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 4px;
}

.profile-info-block .profile-handle-sub {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 12px;
}

/* Profile Stats counter row */
.profile-stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-top: 16px;
    width: 100%;
}

.profile-stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}

.profile-stat-number {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.profile-stat-label {
    font-size: 12px;
    color: var(--text-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 2px;
}

/* Reels Gallery Section */
.profile-reels-section {
    padding: 16px 20px 40px 20px;
    border-top: 1px solid var(--glass-border);
    background: rgba(22, 22, 28, 0.4);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.profile-section-title {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    text-align: left;
}

.profile-reels-section .comments-list-body {
    max-height: none !important; /* Remove height restrictions */
    overflow-y: visible !important; /* Scroll parent instead of card */
    flex: 1;
}

/* =============================================================
   13. FULL SCREEN LIKED REELS OVERLAY
============================================================= */
#liked-overlay {
    background: rgba(10, 10, 14, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 200;
}

#liked-overlay .profile-modal {
    width: 100%;
    height: 100%;
    max-width: 680px;
    max-height: 100vh;
    border-radius: 0;
    margin: 0;
    padding: 0;
    border: none;
    background: rgba(18, 18, 22, 0.98);
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.8);
    animation: slideUpProfile 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* Mobile: sit above bottom nav bar */
@media (max-width: 800px) {
    #liked-overlay {
        height: calc(100% - 58px - env(safe-area-inset-bottom, 0px)) !important;
        bottom: calc(58px + env(safe-area-inset-bottom, 0px)) !important;
        top: 0 !important;
        z-index: 105 !important;
    }
}

/* PC: constrain to 9:16 feed envelope, keep sidebar accessible */
@media (min-width: 801px) {
    #liked-overlay {
        left: 320px !important;
        width: calc(100% - 320px) !important;
        background: rgba(0, 0, 0, 0.4) !important;
    }

    #liked-overlay .profile-modal {
        max-width: 480px !important;
        border-left: 1px solid var(--glass-border) !important;
        border-right: 1px solid var(--glass-border) !important;
    }
}

/* =============================================================
   14. PULL-TO-REFRESH NEON GLASS INDICATOR
============================================================= */
.pull-to-refresh {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px) scale(0.8);
    opacity: 0;
    z-index: 100;
    pointer-events: none;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.ptr-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(25, 25, 35, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 0, 92, 0.25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 10px rgba(255, 0, 92, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ptr-icon-arrow {
    width: 20px;
    height: 20px;
    color: var(--accent);
    transition: transform 0.1s linear, opacity 0.2s ease;
}

/* Spinner for loading state */
.ptr-spinner-neon {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    position: absolute;
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Release ready: pulse blue/pink */
.pull-to-refresh.ptr-release-ready .ptr-circle {
    border-color: var(--accent-blue);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 240, 255, 0.4);
}

.pull-to-refresh.ptr-release-ready .ptr-icon-arrow {
    color: var(--accent-blue);
}

/* Loading state active */
.pull-to-refresh.ptr-loading .ptr-icon-arrow {
    opacity: 0;
    transform: scale(0.5);
}

.pull-to-refresh.ptr-loading .ptr-spinner-neon {
    opacity: 1;
    animation: ptr-spin 0.8s linear infinite;
}

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

/* PC Explore & Comments View Layout: 9:16 aspect ratio matching the feed container, centered, with sidebars accessible */
@media (min-width: 801px) {
    .comments-drawer-overlay {
        left: 320px !important;
        width: calc(100% - 320px) !important;
        height: 100% !important;
        top: 0 !important;
        bottom: 0 !important;
        background: rgba(0, 0, 0, 0.4) !important;
        display: flex !important;
        justify-content: center !important;
        align-items: stretch !important;
        overflow: hidden !important;
    }

    .comments-drawer-overlay .comments-drawer {
        position: relative !important;
        left: auto !important;
        bottom: auto !important;
        width: 100% !important;
        max-width: 480px !important;
        height: 100% !important;
        border-radius: 0 !important;
        border-left: 1px solid var(--glass-border) !important;
        border-right: 1px solid var(--glass-border) !important;
        border-top: none !important;
        box-shadow: var(--shadow-premium) !important;
        transform: translateY(100%) !important;
        transition: var(--transition-bounce) !important;
    }

    .comments-drawer-overlay.active .comments-drawer {
        transform: translateY(0) !important;
    }
}

/* PC: constrain to 9:16 feed envelope when desktop right sidebar is visible (> 1200px) */
@media (min-width: 1201px) {
    .comments-drawer-overlay {
        width: calc(100% - 640px) !important;
    }
    #liked-overlay {
        width: calc(100% - 640px) !important;
    }
}

/* Cookie Consent Banner Styling */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    right: 30px;
    max-width: 400px;
    background: rgba(18, 18, 22, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow-premium);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transform: translateY(150px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.cookie-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-title svg {
    width: 20px;
    height: 20px;
    fill: var(--accent);
}

.cookie-desc {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.6;
}

.cookie-desc a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.cookie-desc a:hover {
    text-shadow: var(--accent-glow);
}

.cookie-actions {
    display: flex;
    gap: 12px;
}

.cookie-btn-accept {
    flex: 1;
    background: var(--accent-gradient);
    border: none;
    color: var(--text-main);
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    box-shadow: var(--accent-glow);
    transition: var(--transition-bounce);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 0, 92, 0.7);
}

.cookie-btn-settings {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.cookie-btn-settings:hover {
    background: var(--glass-bg-hover);
    border-color: var(--text-muted);
}

@media (max-width: 600px) {
    .cookie-banner {
        bottom: 20px;
        left: 20px;
        right: 20px;
        max-width: none;
        padding: 20px;
    }
}

/* -------------------------------------------------------------
   8. Sleek Custom Video Progress Seekbar
------------------------------------------------------------- */
.video-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 24px; /* Generous touch target area */
    z-index: 14;
    display: flex;
    align-items: flex-end;
    cursor: pointer;
    padding: 0 0 2px 0;
    margin: 0;
    background: transparent;
    transition: height 0.15s ease;
}

.video-progress-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 3px; /* Sleek default track height */
    background: transparent; /* Background handled by track pseudo-elements */
    outline: none;
    cursor: pointer;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 1.5px;
    transition: height 0.15s ease;
}

/* Webkit Track (Chrome, Safari, Edge, mobile Chrome/Safari) */
.video-progress-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 3px;
    background: linear-gradient(to right,
        var(--accent) 0%,
        var(--accent) var(--progress, 0%),
        rgba(255, 255, 255, 0.3) var(--progress, 0%),
        rgba(255, 255, 255, 0.3) 100%
    );
    border: none;
    border-radius: 1.5px;
    cursor: pointer;
    transition: height 0.15s ease;
}

/* Firefox Track */
.video-progress-slider::-moz-range-track {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 1.5px;
    cursor: pointer;
    transition: height 0.15s ease;
}

/* Firefox filled portion (played progress) */
.video-progress-slider::-moz-range-progress {
    background: var(--accent);
    height: 3px;
    border-radius: 1.5px;
}

/* Expand track height on desktop hover/active or mobile touch active */
.video-progress-container:hover .video-progress-slider::-webkit-slider-runnable-track,
.video-progress-container.active .video-progress-slider::-webkit-slider-runnable-track,
.video-progress-slider:active::-webkit-slider-runnable-track {
    height: 6px;
}

.video-progress-container:hover .video-progress-slider::-moz-range-track,
.video-progress-container.active .video-progress-slider::-moz-range-track,
.video-progress-slider:active::-moz-range-track {
    height: 6px;
}

.video-progress-container:hover .video-progress-slider::-moz-range-progress,
.video-progress-container.active .video-progress-slider::-moz-range-progress,
.video-progress-slider:active::-moz-range-progress {
    height: 6px;
}

/* Webkit (Chrome, Safari, Edge) - Custom Glow Thumb */
.video-progress-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 10px rgba(255, 0, 92, 0.8), var(--accent-glow);
    cursor: pointer;
    margin-top: -5.5px; /* Center 14px thumb on 3px track ((3px - 14px)/2) */
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

/* Make thumb visible on hover/active/touch */
.video-progress-container:hover .video-progress-slider::-webkit-slider-thumb,
.video-progress-container.active .video-progress-slider::-webkit-slider-thumb,
.video-progress-slider:active::-webkit-slider-thumb {
    opacity: 1;
    transform: scale(1);
    margin-top: -4px; /* Center 14px thumb on 6px track ((6px - 14px)/2) */
}

/* Firefox - Custom Glow Thumb */
.video-progress-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: none;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 10px rgba(255, 0, 92, 0.8), var(--accent-glow);
    cursor: pointer;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

/* Make Firefox thumb visible on hover/active/touch */
.video-progress-container:hover .video-progress-slider::-moz-range-thumb,
.video-progress-container.active .video-progress-slider::-moz-range-thumb,
.video-progress-slider:active::-moz-range-thumb {
    opacity: 1;
    transform: scale(1);
}

/* ---- MOBILE SEEKBAR FIXES ---- */
@media (max-width: 800px) {
    /* Move seekbar above the 58px mobile bottom navigation bar */
    .video-progress-container {
        bottom: calc(58px + env(safe-area-inset-bottom, 0px) + 2px);
        height: 28px; /* Bigger touch target on mobile */
        padding: 0 4px 2px 4px;
    }

    /* Default thin track on mobile */
    .video-progress-slider::-webkit-slider-runnable-track {
        height: 3px;
    }

    .video-progress-slider::-moz-range-track {
        height: 3px;
    }

    .video-progress-slider::-moz-range-progress {
        height: 3px;
    }

    /* Mobile thumb size (hidden by default) */
    .video-progress-slider::-webkit-slider-thumb {
        opacity: 0;
        transform: scale(0.6);
        width: 16px;
        height: 16px;
        margin-top: -6.5px; /* Center on 3px track */
    }

    .video-progress-slider::-moz-range-thumb {
        opacity: 0;
        transform: scale(0.6);
        width: 16px;
        height: 16px;
    }

    /* Pop track on mobile touch/interaction */
    .video-progress-container.active .video-progress-slider::-webkit-slider-runnable-track,
    .video-progress-slider:active::-webkit-slider-runnable-track {
        height: 6px;
    }

    .video-progress-container.active .video-progress-slider::-moz-range-track,
    .video-progress-slider:active::-moz-range-track {
        height: 6px;
    }

    .video-progress-container.active .video-progress-slider::-moz-range-progress,
    .video-progress-slider:active::-moz-range-progress {
        height: 6px;
    }

    /* Pop thumb on mobile touch/interaction */
    .video-progress-container.active .video-progress-slider::-webkit-slider-thumb,
    .video-progress-slider:active::-webkit-slider-thumb {
        opacity: 1;
        transform: scale(1);
        margin-top: -5px; /* Center 16px thumb on 6px track */
    }

    .video-progress-container.active .video-progress-slider::-moz-range-thumb,
    .video-progress-slider:active::-moz-range-thumb {
        opacity: 1;
        transform: scale(1);
    }
}

/* -------------------------------------------------------------
   11. Premium Desktop Right Sidebar
------------------------------------------------------------- */
.desktop-right-sidebar {
    width: 320px;
    background: linear-gradient(180deg, var(--bg-dark) 0%, hsl(240, 15%, 2%) 100%);
    border-left: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 24px;
    gap: 24px;
    overflow-y: auto;
    flex-shrink: 0;
}

/* Hide on smaller screens */
@media (max-width: 1200px) {
    .desktop-right-sidebar {
        display: none !important;
    }
}

/* Search widget */
.sidebar-search-box {
    position: relative;
    width: 100%;
}

.sidebar-search-box .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dark);
    display: flex;
    align-items: center;
}

.sidebar-search-box svg {
    width: 16px;
    height: 16px;
}

.sidebar-search-box input {
    width: 100%;
    padding: 12px 14px 12px 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    background: var(--bg-input);
    color: var(--text-main);
    font-size: 13px;
    font-weight: 500;
    outline: none;
    transition: var(--transition-smooth);
}

.sidebar-search-box input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(255, 0, 92, 0.2);
}

/* Widget styles */
.right-sidebar-widget {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 18px;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.widget-title {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Stats widget */
.live-pulse {
    width: 8px;
    height: 8px;
    background-color: #00ff66;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px #00ff66;
    animation: statPulse 1.5s infinite ease-in-out;
}

@keyframes statPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.stat-num {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
    font-family: monospace;
}

.stat-lbl {
    font-size: 10px;
    color: var(--text-dark);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Trending tags widget */
.trending-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sidebar-trend-tag {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.sidebar-trend-tag:hover {
    color: var(--text-main);
    background: var(--accent-gradient);
    border-color: transparent;
    box-shadow: var(--accent-glow);
    transform: translateY(-1px);
}

/* Suggested Creators Widget */
.suggested-creators-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.suggested-creator-item {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 6px;
    border-radius: 10px;
    transition: var(--transition-smooth);
}

.suggested-creator-item:hover {
    background: var(--glass-bg-hover);
}

.creator-avatar-mini {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid var(--glass-border);
    flex-shrink: 0;
}

.creator-meta-mini {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.creator-name-mini {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.creator-handle-mini {
    font-size: 10px;
    color: var(--text-dark);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

