/* Movie Treasure - Complete Sci-Fi Blue Theme */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: linear-gradient(135deg, #080c14, #101824);
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

.header {
    background: linear-gradient(90deg, rgba(8, 12, 20, 0.95), rgba(16, 24, 36, 0.95));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
}

.nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    max-width: 1400px; 
    margin: 0 auto; 
}

.brand__logo {
    background: linear-gradient(45deg, #3b82f6, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.8rem;
    font-weight: bold;
}

.nav__menu { 
    display: flex; 
    list-style: none; 
    gap: 0.5rem; 
}

.nav__link { 
    color: #d1d5db; 
    text-decoration: none; 
    padding: 0.5rem 1rem; 
    border-radius: 8px; 
    transition: all 0.3s ease; 
    font-weight: 600; 
}

.nav__link:hover, .nav__link.active { 
    background: linear-gradient(135deg, #3b82f6, #06b6d4); 
    color: white; 
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3); 
}

.nav__actions { 
    display: flex; 
    align-items: center; 
    gap: 1rem; 
}

.nav__search { 
    background: rgba(16, 24, 36, 0.8); 
    border: 1px solid rgba(59, 130, 246, 0.3); 
    border-radius: 25px; 
    padding: 0.5rem 1rem; 
    display: flex; 
    align-items: center; 
    gap: 0.5rem; 
}

.search__input { 
    background: transparent; 
    border: none; 
    color: white; 
    padding: 0.5rem; 
    outline: none; 
    width: 200px; 
}

.btn { 
    border: none; 
    padding: 0.7rem 1.5rem; 
    border-radius: 8px; 
    cursor: pointer; 
    font-weight: 600; 
    transition: all 0.3s ease; 
}

.btn--primary { 
    background: linear-gradient(135deg, #3b82f6, #4f46e5); 
    color: white; 
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2); 
}

.btn--primary:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4); 
}

.btn--block { 
    width: 100%; 
}

.hero {
    height: 55vh;
    min-height: 400px;
    max-height: 500px;
    background: linear-gradient(135deg, 
        rgba(8, 12, 20, 0.9), 
        rgba(16, 24, 36, 0.8), 
        rgba(59, 130, 246, 0.1)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero__content {
    position: relative;
    z-index: 1;
    padding: 30px 20px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(168, 85, 247, 0.15) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg); 
        opacity: 1;
    }
    33% { 
        transform: translate(30px, -30px) rotate(120deg); 
        opacity: 0.8;
    }
    66% { 
        transform: translate(-20px, 20px) rotate(240deg); 
        opacity: 0.9;
    }
}

.hero__title {
    font-size: 3.2rem; /* Balanced size */
    font-weight: bold;
    background: linear-gradient(45deg, #60a5fa, #22d3ee, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: 0 0 40px rgba(59, 130, 246, 0.3);
    animation: titleGlow 3s ease-in-out infinite;
    line-height: 1.2;
}

@keyframes titleGlow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.3)); }
    50% { filter: drop-shadow(0 0 40px rgba(34, 211, 238, 0.5)); }
}

.hero__subtitle {
    font-size: 1.3rem;
    color: #d1d5db;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.movies-section {
    padding: 100px 2rem 4rem;
    min-height: 100vh;
    display: block; /* Will be controlled by JS */
}

.movies-section.hidden {
    display: none;
}

.container { 
    max-width: 1400px; 
    margin: 0 auto; 
}

.section__title { 
    font-size: 2rem; 
    margin-bottom: 2rem; 
    background: linear-gradient(45deg, #3b82f6, #22d3ee); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
}

.movie-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
    gap: 2rem; 
    padding-top: 20px; 
}

.movie-card { 
    background: linear-gradient(145deg, #101824, #141e2c); 
    border: 1px solid rgba(59, 130, 246, 0.2); 
    border-radius: 12px; 
    overflow: hidden; 
    cursor: pointer; 
    transition: all 0.4s ease; 
    position: relative; 
}

.movie-card:hover { 
    transform: translateY(-15px); 
    border-color: #3b82f6; 
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(59, 130, 246, 0.2); 
}

.movie-poster { 
    width: 100%; 
    height: 300px; 
    object-fit: cover; 
}

.movie-info { 
    padding: 1rem; 
    position: relative; 
    z-index: 2; 
}

.movie-title { 
    font-size: 1.1rem; 
    font-weight: bold; 
    margin-bottom: 0.5rem; 
}

.movie-languages { 
    color: #22d3ee; 
    font-size: 0.9rem; 
}

.movie-list-btn { 
    position: absolute; 
    top: 10px; 
    right: 10px; 
    width: 40px; 
    height: 40px; 
    background: rgba(0, 0, 0, 0.8); 
    border: 2px solid rgba(255, 255, 255, 0.3); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    z-index: 10; 
    transition: all 0.3s ease; 
    opacity: 0; 
}

.movie-card:hover .movie-list-btn { 
    opacity: 1; 
}

.movie-list-btn.in-list { 
    opacity: 1; 
    background: linear-gradient(135deg, #ef4444, #dc2626); 
    border-color: #ef4444; 
}

.my-list-empty { 
    grid-column: 1 / -1; 
    text-align: center; 
    padding: 80px 20px; 
}

.empty-icon { 
    font-size: 5rem; 
    margin-bottom: 20px; 
    opacity: 0.5; 
}

.empty-title { 
    color: #3b82f6; 
    font-size: 2rem; 
    margin-bottom: 15px; 
}

.empty-action { 
    background: linear-gradient(135deg, #3b82f6, #06b6d4); 
    color: white; 
    border: none; 
    padding: 15px 30px; 
    border-radius: 10px; 
    font-size: 1.1rem; 
    font-weight: 600; 
    cursor: pointer; 
}

.list-notification { 
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    background: linear-gradient(135deg, #101824, #1a1a2a); 
    border: 2px solid #3b82f6; 
    border-radius: 12px; 
    padding: 20px 25px; 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    z-index: 10000; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); 
    animation: slideIn 0.4s ease; 
}

@keyframes slideIn { 
    from { 
        transform: translateX(400px); 
    } to { 
        transform: translateX(0); 
    } 
}

.user-profile-container { 
    position: relative; 
    display: inline-block; 
}

.user-profile-btn { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    background: rgba(16, 24, 36, 0.8); 
    border: 1px solid rgba(59, 130, 246, 0.3); 
    border-radius: 20px; 
    padding: 8px 15px; 
    color: white; 
    cursor: pointer; 
}

.user-avatar { 
    width: 32px; 
    height: 32px; 
    border-radius: 50%; 
    border: 2px solid #3b82f6; 
}

.user-dropdown { 
    position: absolute; 
    top: 100%; 
    right: 0; 
    width: 280px; 
    background: rgba(16, 24, 36, 0.95); 
    border: 2px solid #3b82f6; 
    border-radius: 12px; 
    z-index: 9999; 
    margin-top: 10px; 
    opacity: 0; 
    visibility: hidden; 
    transition: all 0.3s ease; 
}

.user-dropdown.active { 
    opacity: 1; 
    visibility: visible; 
}

.dropdown-header { 
    padding: 20px; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
    display: flex; 
    align-items: center; 
}

.dropdown-item { 
    padding: 12px 20px; 
    color: white; 
    text-decoration: none; 
    display: flex; 
    align-items: center; 
    cursor: pointer; 
}

.dropdown-item:hover { 
    background: rgba(59, 130, 246, 0.1); 
}

.modal-overlay { 
    position: fixed; 
    inset: 0; 
    background: rgba(0, 0, 0, 0.8); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    z-index: 10000; 
}

.modal-overlay.hidden { 
    display: none; 
}

.modal { 
    background: linear-gradient(145deg, #101824, #141e2c); 
    border: 2px solid #3b82f6; 
    border-radius: 16px; 
    padding: 40px; 
    max-width: 450px; 
    width: 90%; 
    position: relative; 
}

.modal-close { 
    position: absolute; 
    top: 15px; 
    right: 15px; 
    background: none; 
    border: none; 
    color: #9ca3af; 
    font-size: 2rem; 
    cursor: pointer; 
}

.modal-header h2 { 
    background: linear-gradient(45deg, #3b82f6, #22d3ee); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    margin-bottom: 20px; 
}

.form-group { 
    margin-bottom: 20px; 
}

.form-group input { 
    width: 100%; 
    padding: 12px; 
    background: rgba(16, 24, 36, 0.8); 
    border: 1px solid rgba(59, 130, 246, 0.3); 
    border-radius: 8px; 
    color: white; 
    outline: none; 
}

.form-group input:focus { 
    border-color: #3b82f6; 
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2); 
}

.movie-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.movie-popup-overlay.hidden {
    display: none;
}

.movie-popup-overlay.active {
    opacity: 1;
}

.movie-popup {
    background: rgba(16, 24, 36, 0.3);
    backdrop-filter: blur(10px);
    border: 2px solid #3b82f6;
    border-radius: 16px;
    max-width: 1000px;
    width: 95%;
    max-height: 85vh;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(59, 130, 246, 0.3);
    animation: popupSlideIn 0.4s ease;
}

@keyframes popupSlideIn {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.popup-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.popup-background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.popup-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
        rgba(16, 24, 36, 0.95) 0%,
        rgba(16, 24, 36, 0.8) 40%,
        rgba(16, 24, 36, 0.5) 70%,
        transparent 100%
    );
    z-index: 1;
}

/* Content over video */
.popup-content {
    padding: 40px;
    display: flex;
    gap: 30px;
    position: relative;
    z-index: 2;
    align-items: flex-start;
}

.popup-left {
    flex-shrink: 0;
}

.popup-poster {
    width: 180px;
    height: 270px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid #3b82f6;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(59, 130, 246, 0.3);
}

.popup-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 600px;
}

.popup-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 1rem;
}

.popup-year, .popup-duration {
    color: #d1d5db;
    font-weight: 500;
}

.popup-rating {
    color: #ffd700;
    font-weight: bold;
    font-size: 1.1rem;
}

.popup-genres {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.popup-genres span {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.3), 
        rgba(6, 182, 212, 0.3)
    );
    border: 1px solid rgba(59, 130, 246, 0.5);
    color: #22d3ee;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.popup-description {
    color: #e5e7eb;
    line-height: 1.6;
    font-size: 1rem;
    margin: 8px 0;
    max-height: 100px;
    overflow-y: auto;
}

.popup-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.95rem;
}

.popup-details p {
    margin: 0;
    color: #d1d5db;
}

.popup-details strong {
    color: #22d3ee;
    font-weight: 600;
    margin-right: 8px;
}

.popup-title {
    font-size: 2.2rem;
    font-weight: bold;
    margin: 0;
    background: linear-gradient(45deg, #60a5fa, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

.popup-watch-btn {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: white;
    border: none;
    padding: 14px 35px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    align-self: flex-start;
}

.popup-watch-btn:hover {
    background: linear-gradient(135deg, #60a5fa, #22d3ee);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
}

.popup-watch-btn:active {
    transform: translateY(0) scale(1);
}

/* Responsive popup */
@media (max-width: 768px) {
    .popup-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 20px;
    }
    
    .popup-poster {
        width: 150px;
        height: 225px;
    }
    
    .popup-title {
        font-size: 1.8rem;
    }
    
    .popup-right {
        max-width: 100%;
    }
    
    .popup-watch-btn {
        align-self: center;
    }
    
    .popup-gradient {
        background: linear-gradient(to bottom,
            transparent 0%,
            rgba(16, 24, 36, 0.7) 30%,
            rgba(16, 24, 36, 0.95) 60%,
            rgba(16, 24, 36, 0.98) 100%
        );
    }
}

.popup-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.8rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.popup-close-btn:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-color: #ef4444;
    transform: rotate(90deg) scale(1.1);
}

.video-player-overlay {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-player-overlay.hidden {
    display: none;
}

.video-player {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
}

.player-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    cursor: pointer;
}

.player-video::-webkit-media-controls {
    display: none !important;
}

.player-video::-webkit-media-controls-enclosure {
    display: none !important;
}

.player-back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.player-back-btn:hover {
    background: linear-gradient(135deg, #60a5fa, #22d3ee);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

/* Movie Title Header */
.player-header {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    text-align: center;
}

.player-title {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    margin: 0;
}

.player-controls {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.video-player:hover .player-controls {
    opacity: 1;
}

.player-controls > * {
    pointer-events: auto;
}

/* Top Controls */
.controls-top {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 80px 20px 20px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
}

.top-controls-right {
    display: flex;
    gap: 10px;
}

/* Bottom Controls */
.controls-bottom {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.7) 50%, transparent);
    padding: 20px;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    margin-bottom: 15px;
    cursor: pointer;
    position: relative;
    transition: height 0.2s ease;
}

.progress-bar:hover {
    height: 8px;
}

.progress-filled {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #22d3ee);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* Main Controls */
.controls-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.controls-left,
.controls-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Control Buttons */
.control-btn {
    background: rgba(16, 24, 36, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.control-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    border-color: #60a5fa;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.control-btn:active {
    transform: translateY(0);
}

/* Volume Slider */
.volume-slider {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #3b82f6, #22d3ee);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #3b82f6, #22d3ee);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Time Display */
.time-display {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 120px;
    text-align: center;
}

/* Watermark */
.player-watermark {
    position: absolute;
    bottom: 80px;
    right: 30px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 12px;
    border-radius: 15px;
    z-index: 999;
    backdrop-filter: blur(5px);
}

/* Settings Panels */
.settings-panel {
    position: absolute;
    top: 80px;
    right: 20px;
    background: linear-gradient(145deg, 
        rgba(16, 24, 36, 0.95), 
        rgba(20, 30, 44, 0.95)
    );
    border: 2px solid #3b82f6;
    border-radius: 12px;
    padding: 20px;
    min-width: 200px;
    z-index: 5000;
    backdrop-filter: blur(15px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.settings-panel.hidden {
    display: none;
}

.settings-panel h4 {
    color: #22d3ee;
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    text-align: center;
}

.settings-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.setting-option {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    display: block;
    width: 100%;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.setting-option:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
}

.setting-option.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    border-color: #22d3ee;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}


.security-alert-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(10px);
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
    }
    to { 
        opacity: 1; 
    }
}

.security-alert-content {
    background: linear-gradient(145deg, 
        rgba(16, 24, 36, 0.95), 
        rgba(20, 30, 44, 0.95),
        rgba(59, 130, 246, 0.05)
    );
    border: 2px solid #3b82f6;
    border-radius: 16px;
    padding: 40px 35px;
    text-align: center;
    max-width: 450px;
    min-width: 350px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: securitySlideIn 0.4s ease;
}

/* ROTATING GLOWING BORDER EFFECT */
.security-alert-content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        transparent, 
        rgba(59, 130, 246, 0.6), 
        transparent, 
        rgba(6, 182, 212, 0.6), 
        transparent,
        rgba(168, 85, 247, 0.6),
        transparent
    );
    border-radius: 16px;
    z-index: -1;
    animation: borderGlow 3s linear infinite;
}

.security-alert-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(59, 130, 246, 0.8), transparent),
        radial-gradient(2px 2px at 40% 70%, rgba(6, 182, 212, 0.6), transparent),
        radial-gradient(1px 1px at 60% 15%, rgba(168, 85, 247, 0.8), transparent),
        radial-gradient(1px 1px at 80% 90%, rgba(34, 211, 238, 0.6), transparent);
    background-size: 200px 200px, 180px 180px, 160px 160px, 220px 220px;
    animation: particles 8s linear infinite;
    pointer-events: none;
    border-radius: 16px;
    opacity: 0.7;
}

@keyframes particles {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-10px, -15px); }
    50% { transform: translate(10px, -10px); }
    75% { transform: translate(-5px, 15px); }
    100% { transform: translate(0, 0); }
}

@keyframes borderGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes securitySlideIn {
    from { 
        opacity: 0; 
        transform: scale(0.8) translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
    }
}

.security-alert-icon {
    font-size: 64px;
    margin-bottom: 20px;
    display: inline-block;
    filter: drop-shadow(0 0 20px rgba(255, 165, 0, 0.6));
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse { 
    0%, 100% {
        transform: scale(1);
    } 50% { 
        transform: scale(1.1);
    } 
}

.security-alert-content h3 {
    background: linear-gradient(45deg, #22d3ee, #3b82f6, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 20px 0;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(34, 211, 238, 0.3);
    letter-spacing: 1px;
}

.security-alert-content p {
    color: #e5e7eb;
    margin: 15px 0;
    line-height: 1.6;
    font-size: 1.1rem;
    font-weight: 400;
}

.security-alert-content small {
    color: #9ca3af;
    font-size: 0.85rem;
    opacity: 0.8;
    font-style: italic;
}

.security-alert-btn {
    background: linear-gradient(135deg, #3b82f6, #06b6d4, #8b5cf6);
    background-size: 200% 200%;
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 25px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 
        0 8px 25px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: buttonShimmer 2s ease-in-out infinite;
}

@keyframes buttonShimmer {
    0%, 100% { 
        background-position: 0% 50%; 
    }
    50% { 
        background-position: 100% 50%; 
    }
}

.security-alert-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent
    );
    transition: left 0.6s ease;
}

.security-alert-btn:hover::before {
    left: 100%;
}

.security-alert-btn:hover {
    background-position: 100% 0;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 15px 40px rgba(59, 130, 246, 0.4),
        0 0 30px rgba(6, 182, 212, 0.3);
}

.security-alert-btn:active {
    transform: translateY(-1px) scale(1.02);
}

@media (max-width: 768px) {
    .hero {
        height: 45vh;
        min-height: 320px;
    }
    
    .hero__title {
        font-size: 2rem;
    }
    
    .hero__subtitle {
        font-size: 1.1rem;
    }

    .nav__menu { 
        gap: 0.3rem; 
    }

    .movie-grid { 
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); 
        gap: 1rem; 
    }
}

@media (max-width: 480px) {
    .hero {
        height: 40vh;
        min-height: 280px;
    }
    
    .hero__title {
        font-size: 1.8rem;
    }
    
    .hero__subtitle {
        font-size: 1rem;
    }
}

.hidden { 
    display: none !important; 
}

/* === SEARCH & FILTER SYSTEM === */

/* Enhanced Search in Header */
.nav__search {
    background: rgba(16, 24, 36, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.nav__search:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    background: rgba(16, 24, 36, 0.95);
}

.search__input {
    background: transparent;
    border: none;
    color: white;
    padding: 0.5rem;
    outline: none;
    width: 250px;
    font-size: 0.95rem;
}

.search__input::placeholder {
    color: #9ca3af;
}

.search__icon {
    font-size: 1.2rem;
    opacity: 0.7;
}

/* Filter Bar */
.filter-bar {
    background: linear-gradient(135deg, 
        rgba(16, 24, 36, 0.98), 
        rgba(20, 30, 44, 0.98)
    );
    border-bottom: 2px solid rgba(59, 130, 246, 0.2);
    padding: 15px 2rem;
    margin-top: 70px; /* Space for fixed header */
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: sticky; /* Makes it stick on scroll */
    top: 70px; /* Sticks below the header */
    z-index: 999;
    transition: all 0.3s ease;
}

.filter-bar.scrolled {
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(59, 130, 246, 0.2);
}

.filter-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-label {
    color: #22d3ee;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.filter-select {
    background: linear-gradient(135deg, 
        rgba(16, 24, 36, 0.9), 
        rgba(20, 30, 44, 0.9)
    );
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    outline: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 140px;
}

.filter-select:hover {
    border-color: #3b82f6;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.filter-select:focus {
    border-color: #22d3ee;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.3);
}

.filter-select option {
    background: #1a1a2a;
    color: white;
    padding: 10px;
}

.filter-clear-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    padding: 9px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: auto;
}

.filter-clear-btn:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    transform: translateY(-2px);
}

.filter-results {
    color: #9ca3af;
    font-size: 0.95rem;
    text-align: center;
}

.filter-results #resultsCount {
    color: #22d3ee;
    font-weight: 700;
    font-size: 1.1rem;
}

/* No Results State */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
}

.no-results-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-results-title {
    color: #3b82f6;
    font-size: 2rem;
    margin-bottom: 15px;
}

.no-results-description {
    color: #9ca3af;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Responsive Filters */
@media (max-width: 1024px) {
    .filter-controls {
        gap: 10px;
    }
    
    .filter-select {
        min-width: 120px;
        padding: 7px 12px;
        font-size: 0.85rem;
    }

    .filter-bar {
        padding: 12px 1rem;
    }
}

@media (max-width: 768px) {
    .filter-bar {
        padding: 12px 1rem;
        top: 70px;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .filter-group {
        width: 100%;
        justify-content: space-between;
    }
    
    .filter-select {
        flex: 1;
        min-width: auto;
    }
    
    .filter-clear-btn {
        margin-left: 0;
        width: 100%;
    }
    
    .search__input {
        width: 150px;
    }
}

/* === CONTINUE WATCHING SECTION === */
.continue-watching-section {
    padding: 40px 2rem 20px;
    background: linear-gradient(180deg, 
        rgba(8, 12, 20, 0.5) 0%, 
        rgba(16, 24, 36, 0.3) 100%
    );
}

.section__subtitle {
    color: #9ca3af;
    font-size: 1rem;
    font-weight: 400;
    margin-left: 15px;
}

.section_title { 
    font-size: 2rem; 
    margin-bottom: 2rem; 
    background: linear-gradient(45deg, #3b82f6, #22d3ee); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
}

.continue-watching-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 20px;
}

/* Continue Watching Card */
.continue-watching-card {
    background: linear-gradient(145deg, #101824, #141e2c);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
}

.continue-watching-card:hover {
    transform: translateY(-10px);
    border-color: #3b82f6;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 25px rgba(59, 130, 246, 0.2);
}

.continue-watching-poster {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.continue-watching-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Play Button Overlay */
.continue-play-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.continue-watching-card:hover .continue-play-overlay {
    opacity: 1;
}

.continue-play-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.continue-watching-card:hover .continue-play-btn {
    transform: scale(1);
}

/* Progress Bar on Thumbnail */
.continue-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
}

.continue-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #22d3ee);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
}

/* Card Info */
.continue-watching-info {
    padding: 15px;
}

.continue-watching-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: white;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.continue-watching-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #9ca3af;
    margin-bottom: 8px;
}

.continue-time-left {
    color: #22d3ee;
    font-weight: 600;
}

.continue-percentage {
    color: #9ca3af;
}

/* Remove Button */
.continue-remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.8);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

.continue-watching-card:hover .continue-remove-btn {
    opacity: 1;
}

.continue-remove-btn:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    transform: scale(1.1);
}

/* Empty State */
.continue-watching-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.continue-watching-empty-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Hide section if empty */
.continue-watching-section.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .continue-watching-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
    }
}

/* === NETFLIX-STYLE CAROUSELS === */
.carousels-section {
    padding: 40px 0;
    background: linear-gradient(180deg, 
        rgba(16, 24, 36, 0.5) 0%, 
        rgba(8, 12, 20, 0.5) 100%
    );
}

.container-full {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

.carousel-container {
    margin-bottom: 50px;
    position: relative;
}

.carousel-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #22d3ee;
    margin-bottom: 20px;
    margin-left: 2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
}

.carousel {
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding: 0 2rem;
}

.carousel-items {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    scrollbar-width: none; /* Hide scrollbar */
}

.carousel-items::-webkit-scrollbar {
    display: none; /* Hide scrollbar on Chrome */
}

/* Carousel Item */
.carousel-item {
    flex: 0 0 22%;
    min-width: 200px;
    background: linear-gradient(145deg, #101824, #141e2c);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.carousel-item:hover {
    transform: scale(1.08) translateY(-20px);
    border-color: #3b82f6;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(59, 130, 246, 0.3);
    z-index: 10;
}

.carousel-item-poster {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.carousel-item-info {
    padding: 12px;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.9) 100%);
}

.carousel-item-title {
    font-size: 0.95rem;
    font-weight: bold;
    color: white;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.carousel-item-rating {
    font-size: 0.85rem;
    color: #ffd700;
    font-weight: 600;
}

/* Carousel Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.8), rgba(6, 182, 212, 0.8));
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 100;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.carousel-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-btn-left {
    left: 0;
}

.carousel-btn-right {
    right: 0;
}

/* Hover preview on carousel items */
.carousel-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.9) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.carousel-item:hover .carousel-item-overlay {
    opacity: 1;
}

.carousel-play-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.carousel-item:hover .carousel-play-btn {
    transform: scale(1);
}

/* Responsive Carousels */
@media (max-width: 1024px) {
    .carousel-item {
        flex: 0 0 28%;
        min-width: 180px;
    }
    
    .carousel-item-poster {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .carousel-item {
        flex: 0 0 35%;
        min-width: 150px;
    }
    
    .carousel-item-poster {
        height: 200px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .carousel-title {
        font-size: 1.2rem;
        margin-left: 1rem;
    }
}

@media (max-width: 480px) {
    .carousel-item {
        flex: 0 0 45%;
        min-width: 130px;
    }
    
    .carousel-item-poster {
        height: 180px;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .carousel-title {
        font-size: 1rem;
        margin-left: 0.5rem;
    }
}

/* Search Results Section on Home */
.search-results-section {
    padding: 40px 2rem;
    background: linear-gradient(180deg, 
        rgba(8, 12, 20, 0.5) 0%, 
        rgba(16, 24, 36, 0.5) 100%
    );
    min-height: 400px;
}

.search-results-section.hidden {
    display: none;
}

/* === LOADING SCREEN === */
.loading-screen {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #080c14, #101824, #1a1f2e);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Loading Logo */
.loading-logo {
    margin-bottom: 40px;
    animation: logoFadeIn 1s ease;
}

@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading-brand {
    font-size: 4rem;
    font-weight: bold;
    background: linear-gradient(45deg, #60a5fa, #22d3ee, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 10px 0;
    text-shadow: 0 0 40px rgba(59, 130, 246, 0.3);
    animation: logoGlow 2s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(34, 211, 238, 0.6));
    }
}

.loading-tagline {
    font-size: 1.2rem;
    color: #d1d5db;
    opacity: 0.8;
}

/* Animated Spinner */
.loading-spinner {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.spinner-ring:nth-child(1) {
    border-top-color: #3b82f6;
    animation-delay: 0s;
}

.spinner-ring:nth-child(2) {
    border-top-color: #22d3ee;
    animation-delay: 0.3s;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
}

.spinner-ring:nth-child(3) {
    border-top-color: #a855f7;
    animation-delay: 0.6s;
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Loading Text */
.loading-text {
    color: #22d3ee;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 25px;
    animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Progress Bar */
.loading-progress-bar {
    width: 300px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto 15px;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.loading-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #3b82f6, #22d3ee, #a855f7);
    background-size: 200% 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
    animation: progressGlow 2s linear infinite;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.6);
}

@keyframes progressGlow {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

/* Loading Percentage */
.loading-percentage {
    color: #9ca3af;
    font-size: 1rem;
    font-weight: 600;
}

/* Animated Background Particles */
.loading-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}

.loading-particle {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    animation: Float 20s infinite ease-in-out;
}

.loading-particle:nth-child(1) {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
    animation-duration: 15s;
}

.loading-particle:nth-child(2) {
    top: 70%;
    left: 70%;
    animation-delay: 2s;
    animation-duration: 18s;
}

.loading-particle:nth-child(3) {
    top: 40%;
    left: 10%;
    animation-delay: 4s;
    animation-duration: 20s;
}

.loading-particle:nth-child(4) {
    top: 20%;
    left: 80%;
    animation-delay: 6s;
    animation-duration: 16s;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.1) 0%, transparent 70%);
}

.loading-particle:nth-child(5) {
    top: 60%;
    left: 40%;
    animation-delay: 8s;
    animation-duration: 22s;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
}

@keyframes Float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, -50px) scale(1.1);
    }
    50% {
        transform: translate(-30px, 30px) scale(0.9);
    }
    75% {
        transform: translate(30px, 50px) scale(1.05);
    }
}

/* Responsive Loading Screen */
@media (max-width: 768px) {
    .loading-brand {
        font-size: 2.5rem;
    }
    
    .loading-tagline {
        font-size: 1rem;
    }
    
    .loading-progress-bar {
        width: 250px;
    }
    
    .loading-spinner {
        width: 80px;
        height: 80px;
    }
}
