/* Import fonts from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Russo+One&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Russo One', 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0015 0%, #1a0b2e 25%, #2d1b4e 50%, #1a0b2e 75%, #0f0520 100%);
    background-size: 400% 400%;
    animation: cyberpunk-gradient 15s ease infinite;
    min-height: 100vh;
    color: white;
    position: relative;
    overflow-x: hidden;
}

@keyframes cyberpunk-gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Starry background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(2px 2px at 20% 30%, white, transparent),
    radial-gradient(2px 2px at 60% 70%, white, transparent),
    radial-gradient(1px 1px at 50% 50%, white, transparent),
    radial-gradient(1px 1px at 80% 10%, white, transparent),
    radial-gradient(2px 2px at 90% 60%, #ffd700, transparent),
    radial-gradient(1px 1px at 33% 80%, #00ffff, transparent);
    background-size: 200% 200%;
    animation: starTwinkle 3s ease-in-out infinite;
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

@keyframes starTwinkle {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.8;
    }
}

/* Floating star animation */
@keyframes floatStar {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* SVG star decorations */
.star-decoration {
    position: absolute;
    color: #00f5ff;
    opacity: 0.6;
    pointer-events: none;
    animation: floatStar 6s ease-in-out infinite;
    z-index: 0;
    filter: drop-shadow(0 0 8px #00f5ff) drop-shadow(0 0 15px #00f5ff);
    top: 100px;
}

.star-decoration.pink {
    color: #ff1493;
    filter: drop-shadow(0 0 8px #ff1493) drop-shadow(0 0 15px #ff1493);
}

.star-decoration.yellow {
    color: #ffd700;
    filter: drop-shadow(0 0 8px #ffd700) drop-shadow(0 0 15px #ffd700);
}

.star-decoration.green {
    color: #00ff88;
    filter: drop-shadow(0 0 8px #00ff88) drop-shadow(0 0 15px #00ff88);
}

/* Logo Styles */
.app-logo {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(0, 245, 255, 0.5));
}

.app-logo:hover {
    filter: drop-shadow(0 0 15px rgba(0, 245, 255, 0.8));
    transform: scale(1.05);
}

.logo-image {
    width: 180px;
    height: auto;
    display: block;
}

/* Responsive logo sizing */
@media (max-width: 768px) {
    .app-logo {
        top: 15px;
        left: 15px;
    }

    .logo-image {
        width: 140px;
    }
}

@media (max-width: 480px) {
    .app-logo {
        top: 10px;
        left: 10px;
    }

    .logo-image {
        width: 120px;
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

/* User Menu (Top Right Corner) */

#user-menu-container {
    position: relative;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: end;
    padding-top: 4px;
}

.user-menu-toggle {
    background: rgba(0, 245, 255, 0.05);
    border: 2px solid rgba(0, 245, 255, 0.3);
    border-radius: 50px;
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 15px 8px 8px;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 10px;
}

.user-menu-toggle:hover {
    background: rgba(0, 245, 255, 0.1);
    border-color: #00f5ff;
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
}

.user-menu-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #00f5ff;
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.5);
    flex-shrink: 0;
}

#user-menu-name {
    flex: 1;
    text-align: left;
    font-weight: 500;
}

.menu-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.user-menu-toggle.active {
    background: rgba(0, 245, 255, 0.15);
    border-color: #00f5ff;
}

.user-menu-toggle.active .menu-arrow {
    transform: rotate(180deg);
}

.user-menu-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    position: absolute;
    top: 60px;
    padding: 0;
    width: 250px;
    padding: 10px 15px;
}

.user-menu-dropdown.active {
    max-height: 500px;
    background: #1e0e34;

}

.dropdown-section-header {
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    color: rgba(0, 245, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 8px 12px 4px 12px;
    margin-bottom: 8px;
    font-weight: 600;
}

.dropdown-loading {
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    padding: 8px 12px;
    text-align: center;
}

.create-watchlist-item {
    background: rgba(0, 255, 136, 0.1) !important;
    border-color: rgba(0, 255, 136, 0.3) !important;
}

.create-watchlist-item:hover {
    background: rgba(0, 255, 136, 0.2) !important;
    border-color: #00ff88 !important;
    color: #00ff88 !important;
}

.dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.2), transparent);
    margin: 8px 0;
}

.menu-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 8px;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
}

.menu-dropdown-item:hover {
    background: rgba(0, 245, 255, 0.1);
    border-color: #00f5ff;
    color: #00f5ff;
    transform: translateX(5px);
}

.menu-dropdown-item.logout-item {
    background: rgba(255, 100, 100, 0.1);
    border-color: rgba(255, 100, 100, 0.3);
}

.menu-dropdown-item.logout-item:hover {
    background: rgba(255, 100, 100, 0.2);
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.menu-item-icon {
    font-size: 16px;
}

/* Watchlist dropdown items with counts */
.watchlist-dropdown-name {
    flex: 1;
}

.watchlist-dropdown-count {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: auto;
}

.menu-dropdown-item.active {
    background: rgba(0, 245, 255, 0.2);
    border-color: #00f5ff;
    color: #00f5ff;
}

.menu-dropdown-item.active .watchlist-dropdown-count {
    background: rgba(0, 245, 255, 0.3);
}

/* Default Watchlists Pills */
.default-watchlists-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    width: 100%;
}

.default-watchlist-pill {
    font-family: 'Russo One', sans-serif;
    background: rgba(0, 245, 255, 0.1);
    border: 2px solid rgba(0, 245, 255, 0.3);
    border-radius: 50px;
    padding: 6px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #00f5ff;
    font-size: 0.95em;
}

.default-watchlist-pill:hover {
    background: rgba(0, 245, 255, 0.2);
    border-color: #00f5ff;
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.4);
    transform: translateY(-2px);
}

.default-watchlist-pill.active {
    background: linear-gradient(135deg, #00f5ff 0%, #667eea 100%);
    border-color: #00f5ff;
    color: #1a0b2e;
    box-shadow: 0 0 25px rgba(0, 245, 255, 0.6);
}

.pill-icon {
    font-size: 20px;
}

.pill-name {
    font-weight: 400;
    letter-spacing: 0.5px;
}

.pill-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.default-watchlist-pill.active .pill-count {
    background: rgba(26, 11, 46, 0.3);
}

/* Page Title */
.page-title {
    font-family: 'Press Start 2P', cursive;
    text-align: center;
    font-size: 1.5em;
    color: #fff;
    background: linear-gradient(90deg, #00f5ff 0%, #ff00ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 20px 0 20px 0;
    text-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
    line-height: 1.6;
}

.page-title-container {
    text-align: center;
    margin: 20px 0;
}

.page-title-icon {
    font-size: 3em;
    display: block;
    margin-bottom: 10px;
    animation: tv-glow 2s ease-in-out infinite;
}

@keyframes tv-glow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(0, 245, 255, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(255, 0, 255, 0.8));
    }
}

/* Watchlist Progress */
.watchlist-progress-container {
    max-width: 800px;
    margin: 0 auto 30px auto;
    padding: 20px;
    background: rgba(26, 11, 46, 0.6);
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.progress-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
    gap: 20px;
}

.progress-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Russo One', sans-serif;
}

.stat-icon {
    font-size: 1.2em;
}

.stat-label {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 1.1em;
    font-weight: 600;
    background: linear-gradient(90deg, #00f5ff 0%, #ff00ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-total {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.5);
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00f5ff 0%, #ff00ff 50%, #00ff88 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.5);
    width: 0%;
}

@media (max-width: 768px) {
    .progress-stats {
        flex-direction: column;
        gap: 12px;
    }

    .progress-stat {
        justify-content: center;
    }
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
}

.header-icon {
    font-size: 60px;
    margin-bottom: 10px;
    display: block;
}

header h1 {
    font-family: 'Press Start 2P', cursive;
    font-size: 3em;
    font-weight: 400;
    letter-spacing: 8px;
    background: linear-gradient(90deg, #00f5ff 0%, #ff00ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(0, 245, 255, 0.5);
}

.header-subtitle {
    font-family: 'Russo One', sans-serif;
    color: #ff1493;
    font-size: 0.9em;
    margin-bottom: 30px;
}

/* Profile Info */
.profile-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.profile-name {
    font-family: 'Russo One', sans-serif;
    color: #00f5ff;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar-header {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #00f5ff;
    object-fit: cover;
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
    background: rgba(0, 0, 0, 0.5);
}

.logout-btn {
    font-family: 'Russo One', sans-serif;
    background: rgba(255, 20, 147, 0.2);
    border: 2px solid #ff1493;
    color: #ff1493;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 400;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: #ff1493;
    color: white;
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.6);
}

/* Profile Dropdown */
.profile-dropdown {
    position: relative;
}

.profile-dropdown-toggle {
    font-family: 'Russo One', sans-serif;
    background: rgba(0, 245, 255, 0.1);
    border: 2px solid rgba(0, 245, 255, 0.3);
    color: #00f5ff;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    font-weight: 400;
}

.profile-dropdown-toggle:hover {
    background: rgba(0, 245, 255, 0.2);
    border-color: #00f5ff;
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.4);
}

.dropdown-arrow {
    font-size: 0.7em;
    transition: transform 0.3s;
}

.profile-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(26, 11, 46, 0.98);
    border: 2px solid rgba(0, 245, 255, 0.3);
    border-radius: 15px;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: none;
    overflow: hidden;
    z-index: 1000;
}

.profile-dropdown.active .profile-dropdown-menu {
    display: block;
    animation: slideDown 0.3s ease;
}

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

.dropdown-item {
    font-family: 'Russo One', sans-serif;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95em;
}

.dropdown-item:hover {
    background: rgba(0, 245, 255, 0.1);
    color: #00f5ff;
}

.dropdown-item.logout-item:hover {
    background: rgba(255, 20, 147, 0.1);
    color: #ff1493;
}

.dropdown-icon {
    font-size: 1.2em;
}

.dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.3), transparent);
    margin: 5px 0;
}

/* Stats */
.stats {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.stat-badge {
    background: rgba(255, 20, 147, 0.15);
    border: 2px solid #ff1493;
    border-radius: 25px;
    padding: 12px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}

.stat-number {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.8em;
    font-weight: 400;
    color: #00f5ff;
}

.stat-label {
    font-family: 'Russo One', sans-serif;
    font-size: 0.75em;
    color: #ff1493;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
}

/* Filter Buttons */
.filter-bar {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    font-family: 'Russo One', sans-serif;
    background: rgba(0, 245, 255, 0.1);
    border: 2px solid rgba(0, 245, 255, 0.3);
    color: #00f5ff;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 400;
    transition: all 0.3s;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 1px;
}

.filter-btn.active {
    background: #00f5ff;
    color: #1a0b2e;
    border-color: #00f5ff;
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.6);
}

.filter-btn:hover:not(.active) {
    background: rgba(0, 245, 255, 0.2);
    border-color: #00f5ff;
}

/* Search and Controls */
.controls {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.search-input, .control-select {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 245, 255, 0.3);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 0.9em;
    min-width: 200px;
}

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

.search-input:focus, .control-select:focus {
    outline: none;
    border-color: #00f5ff;
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.3);
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 245, 255, 0.3);
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkbox-container:hover {
    border-color: #00f5ff;
    background: rgba(0, 245, 255, 0.1);
}

.checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #00f5ff;
    min-height: 18px;
    min-width: 18px;
}

.checkbox-container span {
    color: white;
    font-size: 0.9em;
    user-select: none;
}

/* Bulk Actions Bar */
.bulk-actions-bar {
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.1) 0%, rgba(0, 255, 136, 0.1) 100%);
    border: 2px solid rgba(255, 0, 255, 0.3);
    border-radius: 15px;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideDown 0.3s ease;
}

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

.bulk-actions-info {
    font-family: 'Russo One', sans-serif;
    color: #ff00ff;
    font-size: 1.1em;
}

.bulk-actions-info span {
    font-family: 'Press Start 2P', cursive;
    color: #00ff88;
    font-size: 1.2em;
}

.bulk-actions-buttons {
    display: flex;
    gap: 10px;
}

.bulk-action-btn {
    font-family: 'Russo One', sans-serif;
    padding: 10px 20px;
    border: 2px solid;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s;
    text-transform: uppercase;
}

.bulk-action-btn:nth-child(1) {
    background: linear-gradient(90deg, #00ff88 0%, #00cc66 100%);
    border-color: #00ff88;
    color: #1a0b2e;
}

.bulk-action-btn:nth-child(2) {
    background: linear-gradient(90deg, #ff1493 0%, #ff0066 100%);
    border-color: #ff1493;
    color: white;
}

.bulk-action-btn.cancel {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.bulk-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 255, 0.4);
}

.movie-card.bulk-select-mode {
    cursor: pointer;
}

.movie-card.bulk-selected {
    border-color: #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.bulk-checkbox {
    position: absolute;
    top: 50px;
    left: 10px;
    width: 30px;
    height: 30px;
    background: rgba(26, 11, 46, 0.9);
    border: 2px solid #00ff88;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    color: #00ff88;
    z-index: 15;
    cursor: pointer;
}

/* Export Buttons */
.export-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.export-btn {
    font-family: 'Russo One', sans-serif;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 2px solid #667eea;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 500;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    border-color: #764ba2;
}

.export-btn:active {
    transform: translateY(0);
}

/* Movie Grid */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 35px;
    margin-bottom: 50px;
}

/* Responsive grid */
@media (max-width: 1600px) {
    .movie-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .movie-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .movie-grid {
        grid-template-columns: 1fr;
    }
}

.movie-card {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(0, 245, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

.movie-card:hover {
    transform: translateY(-10px);
    border-color: #00f5ff;
    box-shadow: 0 10px 40px rgba(0, 245, 255, 0.3);
}

.movie-card.watched {
    opacity: 0.6;
}

.movie-poster {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.movie-rank-badge {
    font-family: 'Press Start 2P', cursive;
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #00f5ff 0%, #667eea 100%);
    color: #1a0b2e;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 400;
    font-size: 0.7em;
    border: 2px solid #00f5ff;
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
    z-index: 10;
}

.movie-rating-badge {
    font-family: 'Press Start 2P', cursive;
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 20, 147, 0.9);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 400;
    font-size: 0.7em;
    z-index: 10;
}

.movie-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.movie-title {
    font-family: 'Russo One', sans-serif;
    font-size: 1.1em;
    font-weight: 400;
    color: white;
    margin-bottom: 8px;
}

.movie-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 0.8em;
}

.movie-year {
    font-family: 'Russo One', sans-serif;
    color: #00f5ff;
    font-weight: 400;
}

.movie-genre {
    font-family: 'Russo One', sans-serif;
    color: #ff1493;
    font-weight: 400;
    text-transform: uppercase;
}

/* User Rating */
.user-rating-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.rating-label {
    font-family: 'Russo One', sans-serif;
    font-size: 0.75em;
    color: #00f5ff;
    text-transform: uppercase;
}

.star-rating-wrapper {
    display: flex;
    gap: 3px;
}

.star-rating {
    font-size: 1.2em;
    color: #ffd700;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.star-rating:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 5px #ffd700);
}

.movie-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

/* Primary Watched Button - Full Width, Prominent */
.btn-add-to-list {
    font-family: 'Russo One', sans-serif;
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 25px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 15px rgba(0, 245, 255, 0.3);
}

.btn-add-to-list.added {
    background: linear-gradient(90deg, #00ff88 0%, #00cc66 100%);
    color: #1a0b2e;
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.5);
}

.btn-add-to-list.not-added {
    background: linear-gradient(90deg, #00f5ff 0%, #ff00ff 100%);
    color: white;
}

.btn-add-to-list:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 245, 255, 0.6);
}

.btn-add-to-list.added:hover {
    box-shadow: 0 8px 30px rgba(0, 255, 136, 0.7);
}

/* Secondary Ignore Button - Subtle Outline Style */
.btn-ignore {
    font-family: 'Russo One', sans-serif;
    width: 100%;
    padding: 8px 16px;
    border: 1px solid rgba(255, 107, 107, 0.4);
    border-radius: 20px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    font-size: 0.75em;
    letter-spacing: 1px;
    background: transparent;
    color: rgba(255, 107, 107, 0.8);
}

.btn-ignore.ignored {
    background: rgba(102, 102, 102, 0.2);
    border-color: rgba(102, 102, 102, 0.5);
    color: #999;
}

.btn-ignore:hover {
    background: rgba(255, 107, 107, 0.1);
    border-color: rgba(255, 107, 107, 0.7);
    color: #ff6b6b;
    transform: translateY(-1px);
}

.btn-ignore.ignored:hover {
    background: rgba(102, 102, 102, 0.3);
    border-color: rgba(102, 102, 102, 0.7);
}

/* Streaming tags */
.streaming-services {
    display: flex;
    gap: 5px;
    margin-top: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.streaming-tag {
    font-family: 'Russo One', sans-serif;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.65em;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

.streaming-tag.netflix {
    background: rgba(229, 9, 20, 0.3);
    border: 1px solid #E50914;
    color: #E50914;
}

.streaming-tag.netflix.active {
    background: #E50914;
    color: white;
}

.streaming-tag.hbo {
    background: rgba(155, 93, 229, 0.3);
    border: 1px solid #9b5de5;
    color: #9b5de5;
}

.streaming-tag.hbo.active {
    background: #9b5de5;
    color: white;
}

.streaming-tag.appletv {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #fff;
    color: #fff;
}

.streaming-tag.appletv.active {
    background: #000;
    color: white;
}

.streaming-tag.disney {
    background: rgba(17, 60, 207, 0.3);
    border: 1px solid #113CCF;
    color: #113CCF;
}

.streaming-tag.disney.active {
    background: #113CCF;
    color: white;
}

/* TMDB Provider tags */
.streaming-tag.tmdb-provider {
    border: none;
    font-size: 0.6em;
    padding: 5px 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.streaming-tag.no-streaming {
    background: rgba(102, 102, 102, 0.3);
    border: 1px solid #666;
    color: #888;
    font-size: 0.6em;
    cursor: default;
}

/* Footer */
footer {
    font-family: 'Russo One', sans-serif;
    text-align: center;
    padding: 30px;
    color: #ff1493;
    font-weight: 400;
}

footer::before {
    content: '★';
    margin-right: 10px;
}

footer::after {
    content: '★';
    margin-left: 10px;
}

/* Profile Screen - keep existing styles but update colors */
.profile-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.profile-container {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 245, 255, 0.3);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 400px;
    width: 100%;
    backdrop-filter: blur(10px);
}

.profile-container h1 {
    font-family: 'Press Start 2P', cursive;
    font-weight: 400;
    text-align: center;
    background: linear-gradient(90deg, #00f5ff 0%, #ff00ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.profile-subtitle {
    font-family: 'Russo One', sans-serif;
    text-align: center;
    color: #ff1493;
    margin-bottom: 30px;
}

.profile-input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 245, 255, 0.3);
    border-radius: 10px;
    color: white;
    font-size: 16px;
}

.profile-input:focus {
    outline: none;
    border-color: #00f5ff;
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.3);
}

.profile-btn.primary {
    font-family: 'Russo One', sans-serif;
    width: 100%;
    padding: 12px;
    background: linear-gradient(90deg, #00f5ff 0%, #ff00ff 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

.profile-btn.primary:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(0, 245, 255, 0.5);
}

.profile-switch {
    text-align: center;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.profile-switch a {
    font-family: 'Russo One', sans-serif;
    color: #00f5ff;
    text-decoration: none;
    font-weight: 400;
}

.profile-message.success {
    background: rgba(0, 255, 136, 0.2);
    border: 1px solid #00ff88;
    color: #00ff88;
}

.profile-message.error {
    background: rgba(255, 20, 147, 0.2);
    border: 1px solid #ff1493;
    color: #ff1493;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(26, 11, 46, 0.95);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: linear-gradient(180deg, #2d1b4e 0%, #1a0b2e 100%);
    border: 2px solid rgba(0, 245, 255, 0.3);
    border-radius: 20px;
    margin: 5% auto;
    padding: 30px;
    max-width: 800px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 245, 255, 0.3);
    position: relative;
}

.close {
    color: #00f5ff;
    background: rgba(0, 245, 255, 0.2);
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    border: 2px solid rgba(0, 245, 255, 0.3);
}

.close:hover {
    background: #00f5ff;
    color: #1a0b2e;
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.6);
}

.modal-movie-poster {
    width: 100%;
    max-width: 300px;
    border-radius: 15px;
    margin-bottom: 20px;
    border: 2px solid rgba(0, 245, 255, 0.2);
}

.modal-movie-title {
    font-family: 'Russo One', sans-serif;
    font-size: 2em;
    color: #00f5ff;
    margin-bottom: 15px;
}

.modal-movie-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.modal-movie-rating {
    color: #ffd700;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8em;
}

.modal-movie-genre {
    color: #ff1493;
    font-family: 'Russo One', sans-serif;
    text-transform: uppercase;
}

.modal-user-rating {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 245, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(0, 245, 255, 0.2);
}

.modal-rating-label {
    font-family: 'Russo One', sans-serif;
    font-size: 1em;
    color: #00f5ff;
    text-transform: uppercase;
}

.modal-star-rating-wrapper {
    display: flex;
    gap: 5px;
}

.modal-star-rating {
    font-size: 1.8em;
    color: #ffd700;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.modal-star-rating:hover {
    transform: scale(1.3);
    filter: drop-shadow(0 0 8px #ffd700);
}

.modal-movie-desc {
    font-family: 'Russo One', sans-serif;
    line-height: 1.6;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
}

.modal-movie-credits h3 {
    font-family: 'Russo One', sans-serif;
    color: #00f5ff;
    margin-top: 15px;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.modal-movie-credits p {
    font-family: 'Russo One', sans-serif;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.modal-btn {
    font-family: 'Russo One', sans-serif;
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    font-size: 0.9em;
    font-weight: 400;
}

.modal-btn.watch {
    background: linear-gradient(90deg, #00f5ff 0%, #ff00ff 100%);
    color: white;
}

.modal-btn.unwatch {
    background: linear-gradient(90deg, #00ff88 0%, #00cc66 100%);
    color: #1a0b2e;
}

.modal-btn.imdb {
    background: rgba(255, 20, 147, 0.2);
    border: 2px solid #ff1493;
    color: #ff1493;
}

.modal-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 245, 255, 0.5);
}

/* Statistics Modal */
.stats-modal-content {
    max-width: 1000px;
}

.stats-header {
    font-family: 'Press Start 2P', cursive;
    font-size: 2em;
    color: #00f5ff;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(0, 245, 255, 0.5);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(0, 245, 255, 0.05);
    border: 2px solid rgba(0, 245, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: #00f5ff;
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 245, 255, 0.3);
}

.stat-card-title {
    font-family: 'Russo One', sans-serif;
    color: #ff1493;
    font-size: 0.9em;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-card-value {
    font-family: 'Press Start 2P', cursive;
    color: #00f5ff;
    font-size: 1.8em;
    text-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}

.stat-card-subtitle {
    font-family: 'Russo One', sans-serif;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85em;
    margin-top: 5px;
}

.genre-breakdown {
    margin-top: 20px;
}

.genre-breakdown-title {
    font-family: 'Russo One', sans-serif;
    color: #ff1493;
    font-size: 1.2em;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.genre-bar {
    margin-bottom: 15px;
}

.genre-bar-label {
    font-family: 'Russo One', sans-serif;
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    color: #fff;
    font-size: 0.9em;
}

.genre-bar-fill {
    height: 25px;
    background: linear-gradient(90deg, #00f5ff 0%, #667eea 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.3);
}

.rating-distribution {
    margin-top: 20px;
}

.rating-distribution-title {
    font-family: 'Russo One', sans-serif;
    color: #ff1493;
    font-size: 1.2em;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.rating-bar {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.rating-bar-label {
    font-family: 'Russo One', sans-serif;
    width: 80px;
    color: #ffd700;
    font-size: 0.9em;
}

.rating-bar-container {
    flex: 1;
    height: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 10px;
}

.rating-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffd700 0%, #ff1493 100%);
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.rating-bar-count {
    font-family: 'Press Start 2P', cursive;
    color: #00f5ff;
    font-size: 0.7em;
    min-width: 40px;
    text-align: right;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.5em;
        letter-spacing: 2px;
    }

    .header-icon {
        font-size: 40px;
    }

    .header-subtitle {
        font-size: 0.75em;
    }

    .profile-info-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .movie-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stats {
        gap: 8px;
    }

    .stat-badge {
        min-width: 70px;
        padding: 8px 12px;
    }

    .stat-number {
        font-size: 1.3em;
    }

    .stat-label {
        font-size: 0.65em;
    }

    .filter-bar {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 15px;
        font-size: 0.75em;
    }

    .controls {
        flex-direction: column;
        gap: 10px;
    }

    .search-input, .control-select {
        width: 100%;
        min-width: auto;
    }

    .movie-poster {
        height: 250px;
    }

    .movie-title {
        font-size: 0.95em;
    }

    .movie-meta {
        font-size: 0.7em;
    }

    .user-rating-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .rating-label {
        font-size: 0.65em;
    }

    .star-rating {
        font-size: 1em;
    }

    .streaming-tag {
        font-size: 0.55em;
        padding: 3px 8px;
    }

    .btn-add-to-list {
        padding: 10px;
        font-size: 0.75em;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
        margin: 10% auto;
    }

    .modal-movie-poster {
        max-width: 100%;
    }

    .modal-movie-title {
        font-size: 1.5em;
    }

    .modal-movie-meta {
        flex-wrap: wrap;
        font-size: 0.9em;
    }

    .modal-user-rating {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .modal-star-rating {
        font-size: 1.5em;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-btn {
        width: 100%;
    }

    .profile-container {
        padding: 30px 20px;
    }

    .profile-container h1 {
        font-size: 1.2em;
    }

    footer {
        font-size: 0.85em;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    header h1 {
        font-size: 1.2em;
        letter-spacing: 1px;
    }

    .movie-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .movie-poster {
        height: 400px;
    }

    .stat-badge {
        min-width: 60px;
        padding: 6px 10px;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 0.7em;
    }
}

/* ==================== ERROR TOAST STYLES ==================== */
.error-toast {
    position: fixed;
    top: 80px;
    right: 20px;
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid #ff1493;
    border-radius: 12px;
    padding: 20px;
    max-width: 400px;
    z-index: 10000;
    box-shadow: 0 8px 32px rgba(255, 20, 147, 0.4);
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(500px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.error-toast-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.error-toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.error-toast-message {
    flex: 1;
}

.error-toast-title {
    color: #ff1493;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
}

.error-toast-text {
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
}

.error-toast-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    line-height: 20px;
    flex-shrink: 0;
    transition: color 0.2s;
}

.error-toast-close:hover {
    color: #ff1493;
}

.error-toast-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.error-toast-report,
.error-toast-dismiss {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: inherit;
}

.error-toast-report {
    background: linear-gradient(135deg, #ff1493 0%, #ff00ff 100%);
    color: #fff;
    flex: 1;
}

.error-toast-report:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 20, 147, 0.4);
}

.error-toast-dismiss {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.error-toast-dismiss:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Report Issue Modal */
.report-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 20px;
}

.report-modal-content {
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid #ff1493;
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.report-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.report-modal-title {
    color: #ff1493;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.report-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    line-height: 28px;
    transition: color 0.2s;
}

.report-modal-close:hover {
    color: #ff1493;
}

.report-form-group {
    margin-bottom: 20px;
}

.report-form-group label {
    display: block;
    color: #fff;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.report-form-input,
.report-form-textarea,
.report-form-select {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 0, 255, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.report-form-input:focus,
.report-form-textarea:focus,
.report-form-select:focus {
    outline: none;
    border-color: #ff1493;
}

.report-form-textarea {
    resize: vertical;
    min-height: 100px;
}

.report-form-hint {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin-top: 4px;
}

.report-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.report-form-submit,
.report-form-cancel {
    flex: 1;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: inherit;
}

.report-form-submit {
    background: linear-gradient(135deg, #ff1493 0%, #ff00ff 100%);
    color: #fff;
}

.report-form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 20, 147, 0.4);
}

.report-form-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.report-form-cancel:hover {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .error-toast {
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .report-modal-content {
        padding: 20px;
    }
}

/* Suggest to Friends Modal Styles */
.suggest-modal-content {
    padding: 20px;
}

.suggest-friends-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
    max-height: 300px;
    overflow-y: auto;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(255, 0, 255, 0.2);
}

.suggest-friend-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background: rgba(0, 245, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(0, 245, 255, 0.3);
    transition: all 0.3s ease;
}

.suggest-friend-item:hover {
    background: rgba(0, 245, 255, 0.2);
    transform: translateY(-2px);
}

.suggest-friend-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #00f5ff;
    margin-bottom: 8px;
}

.suggest-friend-name {
    font-size: 0.85em;
    color: #fff;
    text-align: center;
    word-break: break-word;
}

.suggest-message-group {
    margin: 20px 0;
}

.suggest-message-input {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(0, 245, 255, 0.3);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 0.95em;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.suggest-message-input:focus {
    outline: none;
    border-color: #00f5ff;
}

.suggest-message-input::placeholder {
    color: #999;
}

.suggest-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 20px;
}

.suggest-btn-cancel,
.suggest-btn-send {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1em;
}

.suggest-btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.suggest-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.suggest-btn-send {
    background: linear-gradient(90deg, #ffd700 0%, #ff6b35 100%);
    color: #1a0b2e;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.suggest-btn-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

/* ==================== TOAST NOTIFICATIONS ==================== */

.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast-message {
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.9), rgba(0, 255, 136, 0.9));
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.4s ease;
    font-weight: 600;
    max-width: 350px;
    word-wrap: break-word;
}

.toast-message.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-message.success {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.9), rgba(0, 200, 255, 0.9));
}

.toast-message.error {
    background: linear-gradient(135deg, rgba(255, 0, 85, 0.9), rgba(255, 100, 100, 0.9));
}

.toast-message.info {
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.9), rgba(100, 100, 255, 0.9));
}

.toast-message.warning {
    background: linear-gradient(135deg, rgba(255, 200, 0, 0.9), rgba(255, 100, 0, 0.9));
}

/* Mobile responsive */
@media (max-width: 768px) {
    .toast-container {
        bottom: 20px;
        right: 20px;
        left: 20px;
    }

    .toast-message {
        max-width: 100%;
    }
}

/* ==================== MODERN NAVIGATION ==================== */

/* Main Navigation Bar */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(10, 10, 30, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(0, 245, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Hamburger Menu */
.hamburger-menu {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: all 0.3s ease;
}

.hamburger-line {
    width: 28px;
    height: 3px;
    background: linear-gradient(90deg, #00f5ff 0%, #ff00ff 100%);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu:hover .hamburger-line {
    background: linear-gradient(90deg, #ff00ff 0%, #00f5ff 100%);
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.6);
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Nav Center */
.nav-center {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    justify-content: center;
}

.nav-icon {
    font-size: 32px;
    filter: drop-shadow(0 0 10px rgba(0, 245, 255, 0.6));
}

.nav-title {
    font-family: 'Russo One', sans-serif;
    font-size: 24px;
    color: #00f5ff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(0, 245, 255, 0.6);
}

/* User Avatar Button */
.user-avatar-button {
    background: none;
    border: 2px solid rgba(0, 245, 255, 0.4);
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.user-avatar-nav {
    width: 45px;
    height: 45px;
    display: block;
    border-radius: 50%;
}

.user-avatar-button:hover {
    border-color: #00f5ff;
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.6);
    transform: scale(1.1);
}

/* Main Sidebar */
.main-sidebar {
    position: fixed;
    top: 0;
    left: -350px;
    width: 320px;
    height: 100vh;
    background: rgba(10, 10, 30, 0.98);
    border-right: 2px solid rgba(0, 245, 255, 0.3);
    z-index: 1000;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}

.main-sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 20px;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.1) 0%, rgba(255, 0, 255, 0.1) 100%);
    border-bottom: 2px solid rgba(0, 245, 255, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.sidebar-header h3 {
    margin: 0;
    font-family: 'Russo One', sans-serif;
    font-size: 18px;
    color: #00f5ff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.sidebar-close {
    background: none;
    border: none;
    color: #ff00ff;
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.sidebar-close:hover {
    color: #00f5ff;
    transform: rotate(90deg);
}

/* Sidebar User Profile Section */
.sidebar-user-profile {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 245, 255, 0.2);
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.05) 0%, rgba(255, 0, 255, 0.05) 100%);
}

.sidebar-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #00f5ff;
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.4);
    margin: 0 auto 15px;
    display: block;
}

.sidebar-username {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    color: #fff;
    margin: 0;
    text-shadow: 0 0 10px rgba(0, 245, 255, 0.4);
}

/* Sidebar Sections */
.sidebar-section {
    border-bottom: 1px solid rgba(0, 245, 255, 0.1);
}

.sidebar-section-title {
    font-family: 'Russo One', sans-serif;
    font-size: 14px;
    color: #00f5ff;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 20px 20px 10px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-icon {
    font-size: 18px;
}

/* Sidebar Navigation Links */
.sidebar-nav {
    padding: 10px 0;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    background: none;
    border-top: none;
    border-right: none;
    border-bottom: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
}

.sidebar-nav-link:hover {
    background: rgba(0, 245, 255, 0.1);
    color: #00f5ff;
    border-left-color: #00f5ff;
    padding-left: 25px;
}

.sidebar-nav-link.active {
    background: linear-gradient(90deg, rgba(0, 245, 255, 0.2) 0%, rgba(255, 0, 255, 0.1) 100%);
    color: #00f5ff;
    border-left-color: #00f5ff;
    box-shadow: inset 0 0 20px rgba(0, 245, 255, 0.2);
}

.nav-link-icon {
    font-size: 20px;
    min-width: 25px;
    text-align: center;
}

.nav-link-text {
    flex: 1;
}

.logout-link {
    color: rgba(255, 100, 100, 0.8);
}

.logout-link:hover {
    color: #ff6b6b;
    border-left-color: #ff6b6b;
    background: rgba(255, 100, 100, 0.1);
}

.sidebar-content {
    padding: 20px;
}

.sidebar-loading {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.watchlist-item {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(0, 245, 255, 0.2);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.watchlist-item:hover {
    background: rgba(0, 245, 255, 0.1);
    border-color: #00f5ff;
    transform: translateX(5px);
}

.watchlist-item.active {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.2) 0%, rgba(255, 0, 255, 0.2) 100%);
    border-color: #00f5ff;
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
}

.watchlist-item.active::before {
    content: '▶';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    color: #00f5ff;
    font-size: 20px;
}

.watchlist-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.watchlist-name {
    font-family: 'Russo One', sans-serif;
    font-size: 14px;
    color: white;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.watchlist-count {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.watchlist-count span {
    color: #00f5ff;
    font-weight: bold;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
    display: none;
    backdrop-filter: blur(5px);
}

.sidebar-overlay.active {
    display: block;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .sidebar-toggle {
        top: 80px;
        left: 10px;
        padding: 10px 15px;
        font-size: 12px;
    }

    .toggle-icon {
        font-size: 16px;
    }

    .watchlist-sidebar {
        width: 280px;
        left: -300px;
    }
}

/* Sidebar Sections */
.sidebar-section {
    border-bottom: 1px solid rgba(0, 245, 255, 0.2);
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.sidebar-section:last-child {
    border-bottom: none;
}

.sidebar-section-title {
    font-family: 'Russo One', sans-serif;
    font-size: 14px;
    color: #ff00ff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 15px 20px 10px;
    margin: 0;
    background: linear-gradient(90deg, rgba(255, 0, 255, 0.1) 0%, transparent 100%);
}

/* Sidebar Navigation */
.sidebar-nav {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: rgba(0, 245, 255, 0.05);
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 8px;
    color: #00f5ff;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.sidebar-nav-link:hover {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.2) 0%, rgba(255, 0, 255, 0.2) 100%);
    border-color: #00f5ff;
    transform: translateX(5px);
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.3);
}

.sidebar-nav-link .nav-icon {
    font-size: 18px;
}

.sidebar-nav-link .nav-text {
    flex: 1;
    letter-spacing: 1px;
}

/* Adjust sidebar content padding for new layout */
.sidebar-section .sidebar-content {
    padding: 10px;
}

/* ====================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   ==================================== */

@media (max-width: 1790px) {
    .default-watchlist-pill {
        font-size: 0.8em;
    }
}

/* Tablet landscape and below (max-width: 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 15px;
        margin-top: 60px;
    }

    .page-title {
        font-size: 1.2em;
    }

    .page-title-icon {
        font-size: 2.5em;
    }

    .controls {
        flex-wrap: wrap;
        gap: 10px;
    }

    .controls select,
    .controls input {
        min-width: 150px;
    }
}

/* Tablet portrait and below (max-width: 768px) */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .container {
        padding: 10px;
        margin-top: 50px;
    }

    /* Header adjustments */
    .page-title {
        font-size: 1em;
        letter-spacing: 1px;
        margin: 15px 0;
    }

    .page-title-icon {
        font-size: 2em;
        margin-bottom: 8px;
    }

    /* Watchlist pills - make horizontal scrollable */
    .default-watchlists-container {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding: 10px 5px;
        margin: 0 -10px;
        gap: 8px;
    }

    .default-watchlist-pill {
        flex: 0 0 auto;
        min-width: 140px;
        padding: 10px 15px;
        font-size: 0.75em;
    }

    .pill-icon {
        font-size: 1.2em;
    }

    .pill-count {
        font-size: 0.9em;
        padding: 2px 8px;
    }

    /* Controls - stack vertically on mobile */
    .controls {
        flex-direction: column;
        gap: 10px;
    }

    .controls select,
    .controls input,
    .controls button {
        width: 100%;
        font-size: 14px;
        padding: 12px;
    }

    .search-container {
        width: 100%;
    }

    /* Progress stats - already handled but ensure proper spacing */
    .watchlist-progress-container {
        padding: 15px;
        margin: 15px 0;
    }

    .progress-stat {
        font-size: 0.85em;
    }

    /* Movie cards - optimize for mobile viewing */
    .movie-card {
        border-radius: 12px;
        flex-direction: row;
    }

    .movie-poster {
        height: 100%;
        width: 150px;
    }

    .movie-info {
        padding: 12px;
    }

    .movie-title {
        font-size: 1em;
        line-height: 1.3;
    }

    .movie-year {
        font-size: 0.85em;
    }

    .movie-rating {
        font-size: 0.85em;
    }

    .movie-genres {
        font-size: 0.75em;
        margin: 6px 0;
    }

    .movie-actions {
        gap: 6px;
        padding: 0 12px 12px;
    }

    .btn-add-to-list,
    .btn-ignore {
        padding: 10px 16px;
        font-size: 0.8em;
    }

    /* Modals - full screen on mobile */
    .modal-content {
        width: 95%;
        max-width: 95%;
        margin: 20px auto;
        padding: 20px;
        max-height: 85vh;
        overflow-y: auto;
    }

    .modal-header h2 {
        font-size: 1.2em;
    }

    .modal-close {
        width: 35px;
        height: 35px;
        font-size: 24px;
    }

    /* Movie details modal */
    .movie-details-grid {
        flex-direction: column;
    }

    .movie-details-poster {
        max-width: 100%;
        margin: 0 auto 20px;
    }

    /* Stats modal */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-card {
        padding: 15px;
    }

    /* Recommendations modal */
    .recommendation-card {
        flex-direction: column;
        text-align: center;
    }

    .recommendation-poster {
        margin: 0 auto 15px;
    }

    /* Friends page */
    .friends-grid {
        grid-template-columns: 1fr;
    }

    /* Settings page */
    .settings-section {
        padding: 15px;
    }

    /* Profile dropdown */
    .profile-menu {
        top: 45px;
        right: 5px;
        min-width: 180px;
    }

    /* Star decorations - reduce size on mobile */
    .star-decoration {
        width: 18px !important;
        height: 18px !important;
    }

    /* Sidebar - full width slide-in */
    .watchlist-sidebar {
        width: 85%;
        max-width: 320px;
    }

    .sidebar-toggle {
        padding: 8px 12px;
        font-size: 11px;
    }
}

/* Mobile phones (max-width: 480px) */
@media (max-width: 480px) {
    body {
        font-size: 13px;
    }

    .container {
        padding: 8px;
        margin-top: 45px;
    }

    /* Very compact header for small phones */
    .page-title {
        font-size: 0.85em;
        letter-spacing: 0.5px;
    }

    .page-title-icon {
        font-size: 1.8em;
        margin-bottom: 5px;
    }

    /* Watchlist pills - smaller */
    .default-watchlist-pill {
        min-width: 120px;
        padding: 8px 12px;
        font-size: 0.7em;
    }

    .pill-name {
        font-size: 0.85em;
    }

    /* Progress container - more compact */
    .watchlist-progress-container {
        padding: 12px;
        margin: 10px 0;
    }

    .progress-stat {
        font-size: 0.8em;
    }

    .stat-label {
        font-size: 0.85em;
    }

    /* Movie cards - optimize for small screens */
    .movie-poster {
        height: 240px;
    }

    .movie-info {
        padding: 10px;
    }

    .movie-title {
        font-size: 0.9em;
    }

    .movie-year,
    .movie-rating {
        font-size: 0.75em;
    }

    .movie-genres {
        font-size: 0.7em;
        gap: 4px;
    }

    .genre-tag {
        padding: 3px 8px;
        font-size: 0.75em;
    }

    .streaming-tag {
        padding: 3px 8px;
        font-size: 0.7em;
    }

    .rank-badge {
        width: 35px;
        height: 35px;
        font-size: 0.75em;
    }

    /* Buttons - touch-friendly */
    .btn-add-to-list,
    .btn-ignore {
        padding: 12px 18px;
        font-size: 0.75em;
        min-height: 44px; /* iOS touch target minimum */
    }

    /* Controls buttons */
    .controls button {
        padding: 12px;
        font-size: 13px;
        min-height: 44px;
    }

    /* Modals - nearly full screen */
    .modal-content {
        width: 98%;
        max-width: 98%;
        margin: 10px auto;
        padding: 15px;
        border-radius: 12px;
    }

    .modal-header {
        padding: 10px;
        margin-bottom: 15px;
    }

    .modal-header h2 {
        font-size: 1em;
    }

    .modal-close {
        width: 32px;
        height: 32px;
        font-size: 20px;
        top: 8px;
        right: 8px;
    }

    .modal-body {
        padding: 10px;
    }

    /* Movie details - compact layout */
    .movie-details-info h2 {
        font-size: 1.1em;
    }

    .movie-details-info p {
        font-size: 0.85em;
    }

    /* Stats cards - smaller */
    .stat-card h3 {
        font-size: 1em;
    }

    .stat-value {
        font-size: 1.8em;
    }

    /* Recommendations - stack everything */
    .recommendation-card {
        padding: 12px;
    }

    .recommendation-poster {
        max-width: 120px;
    }

    /* Sidebar - almost full width */
    .watchlist-sidebar {
        width: 90%;
        max-width: 280px;
    }

    .sidebar-toggle {
        top: 70px;
        left: 8px;
        padding: 6px 10px;
        font-size: 10px;
    }

    .toggle-icon {
        font-size: 14px;
    }

    /* Logo - smaller on mobile */
    .app-logo .logo-image {
        height: 35px;
    }

    /* Toast notifications */
    .toast {
        font-size: 0.85em;
        padding: 10px 15px;
        min-width: 200px;
        max-width: calc(100% - 40px);
    }

    /* Profile screen - optimize for mobile */
    .profile-container {
        padding: 20px;
        max-width: 100%;
    }

    .profile-container h1 {
        font-size: 1.2em;
    }

    .profile-input {
        padding: 12px;
        font-size: 14px;
    }

    .profile-btn {
        padding: 12px;
        font-size: 14px;
        min-height: 44px;
    }
}

/* Extra small devices (max-width: 360px) */
@media (max-width: 360px) {
    .page-title {
        font-size: 0.75em;
    }

    .page-title-icon {
        font-size: 1.5em;
    }

    .default-watchlist-pill {
        min-width: 110px;
        padding: 6px 10px;
    }

    .movie-poster {
        height: 220px;
    }

    .rank-badge {
        width: 30px;
        height: 30px;
        font-size: 0.7em;
    }
}

/* Landscape orientation optimizations */
@media (max-height: 500px) and (orientation: landscape) {
    .modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }

    .page-title-container {
        margin: 10px 0;
    }

    .watchlist-progress-container {
        padding: 10px;
        margin: 10px 0;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Increase tap targets for touch devices */
    button,
    a,
    .movie-card,
    .default-watchlist-pill,
    select,
    input[type="checkbox"] {
        min-height: 44px;
        min-width: 44px;
    }

    /* Remove hover effects on touch devices */
    .movie-card:hover {
        transform: none;
    }

    .btn-add-to-list:hover,
    .btn-ignore:hover {
        transform: none;
    }

    /* Improve scrolling on touch */
    .modal-content,
    .default-watchlists-container,
    .sidebar-content {
        -webkit-overflow-scrolling: touch;
    }
}

/* Hide scrollbar for webkit browsers while maintaining functionality */
.default-watchlists-container::-webkit-scrollbar {
    height: 4px;
}

.default-watchlists-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.default-watchlists-container::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #00f5ff, #ff00ff);
    border-radius: 10px;
}

.default-watchlists-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #ff00ff, #00f5ff);
}

/* ====================================
   MOBILE HEADER BAR
   ==================================== */

.mobile-header {
    display: flex; /* Always visible on desktop and mobile */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(135deg, rgba(26, 11, 46, 0.98) 0%, rgba(13, 6, 26, 0.98) 100%);
    border-bottom: 2px solid rgba(0, 245, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    gap: 20px;
}

.mobile-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.mobile-logo-image {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.mobile-logo-image:hover {
    transform: scale(1.05);
}

.mobile-user-menu-btn {
    background: rgba(0, 245, 255, 0.1);
    border: 2px solid rgba(0, 245, 255, 0.3);
    border-radius: 50%;
    padding: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
    margin-bottom: 5px;
}

.mobile-user-menu-btn:hover,
.mobile-user-menu-btn:active {
    background: rgba(0, 245, 255, 0.2);
    border-color: #00f5ff;
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.4);
}

.mobile-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #00f5ff;
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.3);
}

/* Watchlists Navigation Section (Desktop Pills) */
.watchlists-nav-section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    margin-top: 60px; /* Account for fixed header */
    margin-bottom: 20px;
}

/* Hamburger Button in Header (Visible on Desktop and Mobile) */
.mobile-hamburger-btn {
    display: flex; /* Always visible */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    z-index: 1001;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.mobile-hamburger-btn:hover {
    transform: scale(1.1);
}

.hamburger-line {
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, #00f5ff, #ff00ff);
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(0, 245, 255, 0.5);
}

.mobile-hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, rgba(26, 11, 46, 0.98) 0%, rgba(13, 6, 26, 0.98) 100%);
    border-right: 2px solid rgba(0, 245, 255, 0.3);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    z-index: 1002;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-sidebar.active {
    left: 0;
}

.mobile-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid rgba(0, 245, 255, 0.2);
}

.mobile-sidebar-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2em;
    background: linear-gradient(90deg, #00f5ff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.mobile-sidebar-close {
    background: transparent;
    border: none;
    color: #00f5ff;
    font-size: 2em;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-sidebar-close:hover {
    color: #ff00ff;
    transform: rotate(90deg);
}

.mobile-sidebar-content {
    padding: 10px;
}

.mobile-sidebar-item {
    width: 100%;
    padding: 15px;
    margin-bottom: 10px;
    background: rgba(0, 245, 255, 0.05);
    border: 2px solid rgba(0, 245, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-sidebar-item:hover,
.mobile-sidebar-item.active {
    background: rgba(0, 245, 255, 0.15);
    border-color: #00f5ff;
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.3);
    transform: translateX(5px);
}

.mobile-sidebar-item .pill-icon {
    font-size: 1.5em;
}

.mobile-sidebar-item .pill-name {
    flex: 1;
    text-align: left;
}

.mobile-sidebar-item .pill-count {
    background: rgba(0, 245, 255, 0.2);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.85em;
}

/* Mobile Sidebar Overlay */
.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

/* User info in dropdown */
.dropdown-user-info {
    padding: 12px 15px;
    text-align: center;
}

.dropdown-username {
    font-family: 'Orbitron', sans-serif;
    font-size: 1em;
    font-weight: 600;
    background: linear-gradient(90deg, #00f5ff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

/* Desktop and Mobile adjustments */
@media (min-width: 1690px) {
    /* Desktop: Show app logo, hide mobile logo */
    #mobile-hamburger-btn {
        display: none;
    }

    .app-logo {
        display: block;
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 999;
    }

    /* Desktop: Adjust container for fixed header */
    .container {
        margin-top: 0 !important;
    }
}

@media (max-width: 1690px) {
    .app-logo {
        display: none;
    }
    .page-title-container{
        margin-top: 70px;
    }

    /* Mobile: Hide watchlist pills, show only hamburger in header */
    .default-watchlists-container {
        display: none !important;
    }

    .watchlists-nav-section {
        display: none !important;
    }

    /* Adjust container margin for fixed mobile header */
    .container {
        margin-top: 0 !important;
    }

    .mobile-header {
        padding: 0 15px;
    }

    /* Hide sidebar toggle button since we have mobile header */
    .sidebar-toggle {
        display: none;
    }
}

@media (max-width: 480px) {
    .mobile-header {
        height: 55px;
        padding: 0 10px;
    }

    .mobile-logo-image {
        height: 35px;
    }

    .mobile-user-menu-btn {
        min-width: 44px;
        min-height: 44px;
    }

    .mobile-user-avatar {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 360px) {
    .mobile-header {
        height: 50px;
    }

    .mobile-logo-image {
        height: 30px;
    }

    .mobile-user-avatar {
        width: 32px;
        height: 32px;
    }
}
