:root {
    --primary-color: #d40000;
    --primary-glow: rgba(212, 0, 0, 0.6);
    --dark-bg: #111111;
    --card-bg: #1a1a1a;
    --text-color: #ffffff;
    --secondary-text: #bbbbbb;
    --filter-bg: #1a1a2e;
    --glow-color: rgba(255, 0, 0, 0.5);
    --age-bg: #1a1a1a;
    --age-text: #ffffff;
    --age-border: #d40000;
    --age-exit-bg: #2a2a2a;
}

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

/* Age Verification Styles */
.age-verification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.age-verification-overlay.show {
    display: flex;
}

.age-verification-popup {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(0, 0, 0, 0.95));
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 30px var(--glow-color),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 2px solid var(--age-border);
    position: relative;
    animation: agePopupSlideIn 0.5s ease-out;
}

@keyframes agePopupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.age-verification-content h1 {
    color: var(--age-text);
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 25px;
    line-height: 1.2;
    background: linear-gradient(45deg, var(--primary-color), #ff6666);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px var(--primary-glow);
}

.age-verification-text {
    color: var(--age-text);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: left;
}

.age-verification-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.age-enter-btn {
    background: linear-gradient(135deg, var(--primary-color), #ff3333);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(212, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.age-enter-btn:hover {
    background: linear-gradient(135deg, #ff3333, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 0, 0, 0.4);
}

.age-exit-btn {
    background-color: var(--age-exit-bg);
    color: var(--age-border);
    border: 2px solid var(--age-border);
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    backdrop-filter: blur(10px);
}

.age-exit-btn:hover {
    background-color: var(--age-border);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 0, 0, 0.3);
}

.age-verification-footer {
    color: var(--secondary-text);
    font-size: 0.9rem;
    margin-top: 20px;
    font-style: italic;
}

/* Age verification overlay will cover the entire screen */

/* Responsive design for age verification */
@media (max-width: 768px) {
    .age-verification-popup {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .age-verification-content h1 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .age-verification-text {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .age-verification-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .age-enter-btn,
    .age-exit-btn {
        min-width: 100%;
        padding: 12px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .age-verification-popup {
        padding: 25px 15px;
    }
    
    .age-verification-content h1 {
        font-size: 1.6rem;
    }
    
    .age-verification-text {
        font-size: 0.95rem;
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
}

.app-container {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

header {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(26, 26, 46, 0.95));
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.6), 
        0 0 30px var(--glow-color),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-bottom: 2px solid rgba(212, 0, 0, 0.3);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    width: 100%;
}

.menu-icon {
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.menu-icon:hover {
    background: rgba(212, 0, 0, 0.3);
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--primary-glow);
}

.user-icon {
    font-size: 28px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
}

.user-icon:hover {
    background: rgba(212, 0, 0, 0.3);
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--primary-glow);
}

header h1 {
    font-size: 1.8rem;
    font-weight: 500;
    background: linear-gradient(45deg, var(--primary-color), #ff6666);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px var(--primary-glow);
}

/* Category Section */
.category-section {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8), rgba(0, 0, 0, 0.9));
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 0, 0, 0.1);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.category-nav {
    padding: 0 15px;
}

.category-buttons {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-buttons::-webkit-scrollbar {
    display: none;
}

.category-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    white-space: nowrap;
    min-width: fit-content;
    overflow: hidden;
    height: 44px;
    box-sizing: border-box;
}

.category-btn i {
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.category-btn .btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary-color), transparent, var(--primary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
    z-index: -1;
}

.category-btn:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(212, 0, 0, 0.3);
    background: rgba(212, 0, 0, 0.1);
}

.category-btn:hover .btn-glow {
    opacity: 0.2;
}

.category-btn:hover i {
    transform: scale(1.2);
    color: var(--primary-color);
}

.category-btn.active {
    background: linear-gradient(135deg, var(--primary-color), #ff3333);
    border-color: var(--primary-color);
    box-shadow: 0 0 25px var(--primary-glow);
    transform: translateY(-2px);
    border-radius: 8px;
}

.category-btn.active i {
    color: white;
    transform: scale(1.1);
}

.category-btn.active .btn-glow {
    opacity: 0.3;
}

.content {
    padding: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.video-card {
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--card-bg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 5px var(--glow-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.video-player {
    position: relative;
    /* Removed fixed padding-top for flexible aspect ratio */
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    width: 100%; /* Ensure it takes full width */
    height: 0; /* Will be controlled by aspect-ratio */
    padding-bottom: 56.25%; /* Default to 16:9 for general layout */
}

.gif-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.gif-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed from cover to contain */
    background-color: black; /* To fill empty space */
    /* Mobile optimization */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Fallback thumbnail for mobile */
.fallback-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: black;
    display: none; /* Hidden by default, shown when video fails */
}

/* Mobile video optimization */
@media (max-width: 768px) {
    .gif-preview {
        /* Force hardware acceleration on mobile */
        -webkit-transform: translate3d(0,0,0);
        transform: translate3d(0,0,0);
        /* Optimize for mobile performance */
        will-change: transform;
    }
    
    /* Show fallback thumbnail on mobile if video fails */
    .gif-container:not(.video-loaded) .fallback-thumbnail {
        display: block;
    }
    
    .gif-container:not(.video-loaded) .gif-preview {
        display: none;
    }
    
    /* Mobile-specific video optimizations */
    .mobile-device .gif-preview {
        /* Reduce video quality on mobile for better performance */
        image-rendering: -webkit-optimize-contrast;
        image-rendering: optimize-contrast;
    }
    
    /* iOS Safari specific fixes */
    .mobile-device .gif-container {
        /* Fix iOS video display issues */
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    /* Mobile thumbnail loading states */
    .gif-container.loading::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 40px;
        height: 40px;
        border: 3px solid rgba(255, 255, 255, 0.3);
        border-top: 3px solid var(--primary-color);
        border-radius: 50%;
        animation: spin 1s linear infinite;
        z-index: 10;
    }
}

/* Loading animation for mobile */
@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Slightly darker overlay */
    opacity: 1;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gif-container.playing .play-overlay {
    opacity: 0; /* Fully hide when playing */
    pointer-events: none;
}

.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9)); /* Darker gradient */
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s;
}

.gif-container:hover .video-controls,
.gif-container.playing .video-controls {
    opacity: 1; /* Show on hover or when playing */
}

.progress-bar {
    height: 5px; /* Slightly thicker progress bar */
    width: 100%;
    background-color: rgba(255, 255, 255, 0.4); /* Slightly more visible */
    margin-bottom: 8px;
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

.control-buttons {
    display: flex;
    align-items: center;
    color: white;
    padding: 0 5px; /* Add some horizontal padding */
}

.play-pause, .volume, .fullscreen {
    margin-right: 15px;
    cursor: pointer;
    font-size: 16px; /* Slightly larger icons */
}

.duration {
    margin-left: auto;
    margin-right: 10px;
    font-size: 13px; /* Slightly larger font */
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--primary-color);
    width: 40px; /* Smaller play button to match other controls */
    height: 40px; /* Smaller play button to match other controls */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 0 15px var(--primary-glow), 0 0 30px var(--primary-glow);
    animation: pulse 1.8s infinite alternate; /* Slightly slower pulse */
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 20px var(--primary-glow), 0 0 40px var(--primary-glow);
    }
    100% {
        box-shadow: 0 0 25px var(--primary-glow), 0 0 50px var(--primary-glow);
    }
}

.play-button i {
    color: white;
    font-size: 16px; /* Smaller icon to match button size */
}

/* Make the duration more integrated */
.duration {
    /* Removed absolute positioning */
    background-color: transparent; /* Make background transparent */
    padding: 0; /* Remove padding */
    border-radius: 0; /* Remove border-radius */
    font-size: 0.9rem;
}

.video-info {
    padding: 12px;
}

.video-info h3 {
    margin-bottom: 5px;
    font-weight: 500;
}

.video-stats {
    display: flex;
    align-items: center;
    color: var(--secondary-text);
    font-size: 0.9rem;
}

.quality-badge {
    background-color: var(--primary-color);
    color: white;
    padding: 2px 8px; /* Slightly more padding */
    border-radius: 4px; /* Slightly larger radius */
    margin-right: 10px;
    font-size: 0.85rem; /* Slightly larger font */
    box-shadow: 0 0 10px var(--primary-glow);
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
    animation: badgePulse 2.5s infinite alternate; /* Slower pulse */
}

@keyframes badgePulse {
    0% { box-shadow: 0 0 10px var(--primary-glow); }
    100% { box-shadow: 0 0 15px var(--primary-glow), 0 0 7px var(--primary-glow); }
}

.views {
    margin-left: 5px;
}

/* Filter drawer */
.filter-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--filter-bg), rgba(0, 0, 0, 0.95));
    z-index: 200;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    backdrop-filter: blur(20px);
    border-right: 2px solid rgba(212, 0, 0, 0.3);
}

.filter-drawer.active {
    transform: translateX(0);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid rgba(212, 0, 0, 0.3);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
}

.filter-header h2 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-header h2::before {
    content: '\f0b0';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1.2rem;
}

.filter-close-btn {
    width: 40px;
    height: 40px;
    background: rgba(212, 0, 0, 0.2);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-close-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--primary-glow);
}

.filter-content {
    padding: 20px;
}

.filter-content h3 {
    margin: 20px 0 10px;
    font-size: 1.1rem;
    color: var(--text-color);
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(212, 0, 0, 0.3);
}

.filter-option {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 12px 15px;
    margin: 6px 0;
    border-radius: 8px;
    cursor: pointer;
}

.filter-option.active {
    background-color: var(--primary-color);
}

.action-button {
    background-color: rgba(255, 255, 255, 0.1);
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    margin: 15px 0;
    cursor: pointer;
}

.drawer-footer {
    margin-top: 30px;
    color: var(--secondary-text);
    font-size: 0.9rem;
    text-align: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 150;
    display: none;
}

/* Video Popup */
.video-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 300;
    display: none;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

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

.popup-video-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    height: 90vh;
    max-width: 90vw;
    max-height: 90vh;
    box-shadow: 0 0 30px var(--glow-color);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
}

.popup-video-player {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #000;
}

.popup-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px; /* Larger close button */
    height: 35px; /* Larger close button */
    background-color: rgba(0, 0, 0, 0.7); /* Slightly darker */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px; /* Larger icon */
    cursor: pointer;
    z-index: 10;
    opacity: 0.8; /* Slightly more visible by default */
    transition: opacity 0.2s;
}

.popup-close-btn:hover {
    opacity: 1;
}

.popup-video {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: black;
}

.popup-controls-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9)); /* Darker gradient */
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s; /* Smooth transition */
}

.popup-video-container:hover .popup-controls-overlay {
    opacity: 1; /* Show on hover */
}

.popup-play-button {
    position: absolute;
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Adjust for centering */
    width: 50px; /* Smaller play button to match other controls */
    height: 50px; /* Smaller play button to match other controls */
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 15px var(--primary-glow), 0 0 30px var(--primary-glow);
    z-index: 1; /* Ensure it's above controls but below close button */
    animation: pulse 1.8s infinite alternate; /* Re-use pulse animation */
}

.popup-progress {
    display: flex;
    align-items: center;
    gap: 10px;
}

.popup-progress-bar {
    flex-grow: 1;
    height: 5px; /* Slightly thicker */
    background-color: rgba(255, 255, 255, 0.4); /* Slightly more visible */
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
}

.popup-progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    width: 0%;
    box-shadow: 0 0 8px var(--primary-glow);
    transition: width 0.1s linear;
}

.popup-time-remaining {
    color: white;
    font-size: 13px; /* Slightly larger font */
    min-width: 45px; /* Adjust min-width */
    text-align: right;
}

.popup-controls {
    display: flex;
    align-items: center;
}

.popup-control {
    color: white;
    margin-right: 15px;
    cursor: pointer;
    font-size: 16px; /* Slightly larger icons */
}

.popup-quality {
    background-color: var(--primary-color);
    color: white;
    padding: 3px 8px; /* Slightly more padding */
    border-radius: 4px; /* Slightly larger radius */
    font-size: 13px; /* Slightly larger font */
    margin-left: auto;
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Media queries for responsiveness */
@media (min-aspect-ratio: 1/1) {
    /* Landscape video-cards, adjust padding-bottom to match video aspect ratio */
    .video-card .video-player {
        padding-bottom: 56.25%; /* 16:9 */
    }
}
@media (max-aspect-ratio: 1/1) {
    /* Portrait video-cards, adjust padding-bottom to match video aspect ratio */
    .video-card .video-player {
        padding-bottom: 177.77%; /* 9:16 */
    }
}

/* Tablet View */
@media (max-width: 1024px) and (min-width: 769px) {
    .content {
        gap: 12px;
        padding: 12px;
    }
}

/* Mobile Landscape and Small Tablets */
@media (max-width: 768px) {
    .popup-video-container {
        width: 95vw;
        height: 95vh;
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .popup-close-btn {
        width: 40px;
        height: 40px;
        font-size: 24px;
        top: 15px;
        right: 15px;
    }
    
    .header-top {
        padding: 12px;
    }
    
    header h1 {
        font-size: 1.6rem;
    }
    
    .category-section {
        padding: 12px 0;
    }
    
    .category-nav {
        padding: 0 12px;
    }
    
    .category-btn {
        padding: 10px 14px;
        font-size: 0.85rem;
        gap: 6px;
        height: 40px;
        border-radius: 8px;
    }
    
    .filter-drawer {
        width: 85%;
    }
    
    .filter-close-btn {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    
    .filter-header {
        padding: 15px;
    }
    
    .filter-header h2 {
        font-size: 1.3rem;
    }
    
    .filter-content {
        padding: 15px;
    }
    
    .content {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 10px;
    }
    
    .video-card {
        font-size: 0.9rem;
    }
    
    .video-info {
        padding: 8px;
    }
    
    .video-info h3 {
        font-size: 0.95rem;
        margin-bottom: 3px;
    }
    
    .video-stats {
        font-size: 0.8rem;
    }
    
    .quality-badge {
        padding: 1px 6px;
        font-size: 0.75rem;
        margin-right: 8px;
    }
    
    /* Footer Mobile Optimizations */
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        padding: 25px 15px;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .footer-section p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .social-links {
        gap: 12px;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    
    .footer-links li {
        margin-bottom: 8px;
    }
    
    .footer-links a {
        font-size: 0.9rem;
        padding: 4px 0;
    }
    
    .footer-features li {
        margin-bottom: 8px;
        font-size: 0.9rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
    }
    
    .footer-badges {
        justify-content: center;
        gap: 12px;
    }
    
    .footer-badge {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .popup-video-container {
        width: 98vw;
        height: 98vh;
        max-width: 98vw;
        max-height: 98vh;
        border-radius: 4px;
    }
    
    .popup-close-btn {
        width: 35px;
        height: 35px;
        font-size: 20px;
        top: 10px;
        right: 10px;
    }
    
    .popup-controls-overlay {
        padding: 10px;
    }
    
    .popup-play-button {
        width: 40px;
        height: 40px;
    }
    
    .header-top {
        padding: 10px;
    }

    header h1 {
        font-size: 1.4rem;
    }
    
    .user-icon {
        font-size: 24px;
    }
    
    .category-section {
        padding: 10px 0;
    }
    
    .category-nav {
        padding: 0 10px;
    }
    
    .category-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        gap: 5px;
        height: 36px;
        border-radius: 6px;
    }
    
    .category-btn i {
        font-size: 1rem;
    }
    
    .filter-drawer {
        width: 95%;
    }
    
    .filter-close-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .filter-header {
        padding: 12px;
    }
    
    .filter-header h2 {
        font-size: 1.2rem;
    }
    
    .filter-content {
        padding: 12px;
    }
    
    .filter-content h3 {
        font-size: 1rem;
    }
    
    .filter-option {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .action-button {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .drawer-footer {
        font-size: 0.8rem;
        padding: 12px;
        margin-top: 20px;
    }
    
    .content {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 8px;
    }
    
    .video-card {
        margin-bottom: 0;
    }
    
    .video-info {
        padding: 6px;
    }
    
    .video-info h3 {
        font-size: 0.85rem;
        line-height: 1.2;
    }
    
    .video-stats {
        font-size: 0.7rem;
    }
    
    .quality-badge {
        padding: 1px 4px;
        font-size: 0.65rem;
        margin-right: 6px;
    }
    
    /* Footer Small Mobile Optimizations */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 12px;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
        text-align: center;
    }
    
    .footer-section h4 {
        font-size: 0.95rem;
        margin-bottom: 10px;
        text-align: center;
    }
    
    .footer-section p {
        font-size: 0.85rem;
        margin-bottom: 12px;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
        gap: 10px;
    }
    
    .social-link {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .footer-links {
        text-align: center;
    }
    
    .footer-links li {
        margin-bottom: 6px;
    }
    
    .footer-links a {
        font-size: 0.85rem;
        padding: 3px 0;
        justify-content: center;
    }
    
    .footer-features {
        text-align: center;
    }
    
    .footer-features li {
        margin-bottom: 6px;
        font-size: 0.85rem;
        justify-content: center;
    }
    
    .footer-bottom {
        padding: 15px 12px;
    }
    
    .footer-bottom-content {
        gap: 10px;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
    
    .footer-badges {
        flex-wrap: wrap;
        gap: 6px;
        justify-content: center;
    }
    
    .footer-badge {
        font-size: 0.7rem;
        padding: 4px 8px;
        gap: 3px;
    }
    
    .footer-badge i {
        font-size: 0.8rem;
    }
}

/* Very Small Mobile Devices */
@media (max-width: 360px) {
    .popup-video-container {
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .popup-close-btn {
        width: 30px;
        height: 30px;
        font-size: 18px;
        top: 5px;
        right: 5px;
        background-color: rgba(0, 0, 0, 0.8);
    }
    
    .popup-controls-overlay {
        padding: 8px;
    }
    
    .popup-play-button {
        width: 40px;
        height: 40px;
    }
    
    .category-btn {
        padding: 6px 10px;
        font-size: 0.75rem;
        gap: 4px;
        height: 32px;
        border-radius: 6px;
    }
    
    .category-btn i {
        font-size: 0.9rem;
    }
    
    .content {
        grid-template-columns: 1fr 1fr;
        padding: 5px;
        gap: 6px;
    }
    
    header {
        padding: 10px;
    }
    
    .video-info {
        padding: 4px;
    }
    
    .video-info h3 {
        font-size: 0.8rem;
        line-height: 1.1;
    }
    
    .video-stats {
        font-size: 0.65rem;
    }
    
    .quality-badge {
        padding: 1px 3px;
        font-size: 0.6rem;
        margin-right: 4px;
    }
    
    .load-more-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Footer Very Small Mobile Optimizations */
    .footer-content {
        gap: 15px;
        padding: 15px 10px;
    }
    
    .footer-section h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .footer-section h4 {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .footer-section p {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }
    
    .social-links {
        gap: 8px;
    }
    
    .social-link {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    
    .footer-links li {
        margin-bottom: 5px;
    }
    
    .footer-links a {
        font-size: 0.8rem;
        padding: 2px 0;
    }
    
    .footer-features li {
        margin-bottom: 5px;
        font-size: 0.8rem;
    }
    
    .footer-bottom {
        padding: 12px 10px;
    }
    
    .footer-bottom-content {
        gap: 8px;
    }
    
    .footer-bottom p {
        font-size: 0.75rem;
    }
    
    .footer-badges {
        gap: 4px;
    }
    
    .footer-badge {
        font-size: 0.65rem;
        padding: 3px 6px;
        gap: 2px;
    }
    
    .footer-badge i {
        font-size: 0.7rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .video-card {
        transition: transform 0.2s;
    }
    
    .video-card:active {
        transform: scale(0.95);
    }
    
    .play-button {
        width: 50px;
        height: 50px;
    }
    
    .play-button i {
        font-size: 20px;
    }
}

/* Download popup */
.download-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--filter-bg);
    width: 90%;
    max-width: 400px;
    border-radius: 15px;
    z-index: 300;
    display: none;
    animation: popIn 0.3s forwards;
    box-shadow: 0 0 25px var(--glow-color), 0 0 40px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(255, 0, 0, 0.2);
    border: 1px solid rgba(255, 0, 0, 0.3);
}

@keyframes popIn {
    from { transform: translate(-50%, -50%) scale(0.9); opacity: 0; }
    to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.popup-content {
    padding: 25px 20px;
    text-align: center;
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

.download-popup h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.download-popup p {
    color: var(--secondary-text);
    margin-bottom: 20px;
}

.app-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: 10px;
}

.feature i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.download-button {
    display: block;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1rem;
    margin: 20px 0;
    box-shadow: 0 0 15px var(--primary-glow), 0 0 30px var(--primary-glow);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
}

.download-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.download-button:hover {
    transform: translateY(-3px);
}

.download-button:hover::before {
    opacity: 1;
    animation: ripple 1.5s infinite;
}

@keyframes ripple {
    from {
        transform: scale(0.8);
        opacity: 0.5;
    }
    to {
        transform: scale(1.2);
        opacity: 0;
    }
}

.app-version {
    font-size: 0.85rem;
    margin-top: 15px;
}

/* Load More button */
.load-more {
    text-align: center;
    padding: 15px;
    margin-bottom: 20px;
    display: block !important; /* Force display */
    grid-column: 1 / -1; /* Span across all columns in grid */
}

.load-more-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 15px var(--primary-glow), 0 0 25px var(--primary-glow);
    position: relative;
    overflow: hidden;
}

.load-more-button::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--primary-color);
    border-radius: 35px;
    opacity: 0;
    animation: expandGlow 2s infinite;
    pointer-events: none;
}

@keyframes expandGlow {
    0% {
        opacity: 0.7;
        transform: scale(0.95);
    }
    100% {
        opacity: 0;
        transform: scale(1.1);
    }
}

.load-more-button:hover {
    background-color: #ff0000;
    transform: translateY(-3px);
    box-shadow: 0 0 20px var(--primary-glow), 0 0 40px var(--primary-glow);
}

.load-more-button i {
    font-size: 1.1rem;
}

/* Animation for loading download */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes downloadPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.load-more-button.loading i {
    animation: downloadPulse 0.8s infinite ease-in-out;
}

/* APK Unlock Popup Styles */
.apk-unlock-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    backdrop-filter: blur(10px);
}

.apk-unlock-popup.show {
    display: flex;
}

.apk-unlock-popup .popup-content {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(0, 0, 0, 0.95));
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 30px var(--glow-color),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 2px solid var(--primary-color);
    position: relative;
    animation: apkPopupSlideIn 0.5s ease-out;
}

@keyframes apkPopupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.popup-header {
    margin-bottom: 25px;
}

.unlock-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-shadow: 0 0 20px var(--primary-glow);
}

.popup-header h2 {
    color: var(--text-color);
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 10px;
    background: linear-gradient(45deg, var(--primary-color), #ff6666);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.popup-description {
    color: var(--secondary-text);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.unlock-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.unlock-features .feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.unlock-features .feature i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.unlock-features .feature span {
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.download-section {
    margin-bottom: 25px;
}

.download-apk-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--primary-color), #ff3333);
    color: white;
    text-decoration: none;
    padding: 18px 35px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(212, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.download-apk-btn:hover {
    background: linear-gradient(135deg, #ff3333, var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(212, 0, 0, 0.4);
}

.download-apk-btn i {
    font-size: 1.3rem;
}

.app-info {
    color: var(--secondary-text);
    font-size: 0.9rem;
    margin-top: 15px;
    font-style: italic;
}

.popup-footer {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.popup-footer p {
    color: var(--secondary-text);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.popup-footer i {
    color: var(--primary-color);
}

/* Responsive design for APK popup */
@media (max-width: 768px) {
    .apk-unlock-popup .popup-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .popup-header h2 {
        font-size: 1.5rem;
    }
    
    .unlock-features {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .download-apk-btn {
        padding: 15px 25px;
        font-size: 1.1rem;
    }
    
    .popup-footer {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .apk-unlock-popup .popup-content {
        padding: 25px 15px;
    }
    
    .popup-header h2 {
        font-size: 1.3rem;
    }
    
    .unlock-icon {
        font-size: 2.5rem;
    }
    
    .download-apk-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
}

/* APK Download Section Styles */
.apk-download-section {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(0, 0, 0, 0.95));
    padding: 60px 0;
    margin-top: 40px;
    border-top: 2px solid rgba(212, 0, 0, 0.3);
    border-bottom: 2px solid rgba(212, 0, 0, 0.3);
}

.apk-download-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.apk-download-content {
    text-align: center;
}

.apk-download-header {
    margin-bottom: 40px;
}

.apk-download-header i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 0 0 30px var(--primary-glow);
}

.apk-download-header h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 15px;
    background: linear-gradient(45deg, var(--primary-color), #ff6666);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.apk-download-header p {
    font-size: 1.2rem;
    color: var(--secondary-text);
    max-width: 600px;
    margin: 0 auto;
}

.apk-download-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    align-items: start;
}

.apk-version-info {
    text-align: left;
}

.version-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-color), #ff3333);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(212, 0, 0, 0.3);
}

.version-badge i {
    font-size: 1.2rem;
}

.version-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.version-details span {
    color: var(--secondary-text);
    font-size: 1rem;
}

.apk-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(212, 0, 0, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.feature-item span {
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 500;
}

.apk-download-actions {
    margin-bottom: 40px;
}

.main-download-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-color), #ff3333);
    color: white;
    text-decoration: none;
    padding: 25px 50px;
    font-size: 1.4rem;
    font-weight: 600;
    border-radius: 35px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(212, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.main-download-btn:hover {
    background: linear-gradient(135deg, #ff3333, var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(212, 0, 0, 0.4);
    color: white;
}

.main-download-btn i {
    font-size: 1.8rem;
}

.main-download-btn small {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 400;
}

.download-alternatives {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.alt-download-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.alt-download-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.alt-download-btn i {
    margin-right: 8px;
}

.apk-download-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 20px;
}

.download-stats {
    display: flex;
    gap: 20px;
}

.download-stats span {
    color: var(--secondary-text);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.download-stats i {
    color: var(--primary-color);
}

.download-notes {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.download-notes p {
    color: var(--secondary-text);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.download-notes i {
    color: var(--primary-color);
}

/* Responsive design for APK download section */
@media (max-width: 768px) {
    .apk-download-section {
        padding: 40px 0;
    }
    
    .apk-download-header h2 {
        font-size: 2rem;
    }
    
    .apk-download-info {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .apk-features {
        grid-template-columns: 1fr;
    }
    
    .main-download-btn {
        padding: 20px 40px;
        font-size: 1.2rem;
    }
    
    .apk-download-footer {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .apk-download-header h2 {
        font-size: 1.8rem;
    }
    
    .apk-download-header i {
        font-size: 3rem;
    }
    
    .main-download-btn {
        padding: 18px 30px;
        font-size: 1.1rem;
    }
    
    .download-alternatives {
        flex-direction: column;
        align-items: center;
    }
}

/* Download Progress Overlay */
.download-progress-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.download-progress-content {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(0, 0, 0, 0.95));
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 30px var(--glow-color);
    border: 2px solid var(--primary-color);
    max-width: 400px;
    width: 90%;
}

.download-progress-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 0 0 30px var(--primary-glow);
}

.download-progress-content h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 25px;
}

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

.download-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #ff3333);
    width: 0%;
    transition: width 1.5s ease-in-out;
    border-radius: 4px;
}

.download-progress-text {
    color: var(--secondary-text);
    font-size: 1rem;
}

/* Download Success Message */
.download-success-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.download-success-content {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(0, 0, 0, 0.95));
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 30px var(--glow-color);
    border: 2px solid #4CAF50;
    max-width: 400px;
    width: 90%;
}

.download-success-content i {
    font-size: 4rem;
    color: #4CAF50;
    margin-bottom: 20px;
}

.download-success-content h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.download-success-content p {
    color: var(--secondary-text);
    font-size: 1rem;
    margin-bottom: 25px;
}

.close-success-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.close-success-btn:hover {
    background: linear-gradient(135deg, #45a049, #4CAF50);
    transform: translateY(-2px);
}

/* QR Code Modal */
.qr-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.qr-modal-content {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(0, 0, 0, 0.95));
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 30px var(--glow-color);
    border: 2px solid var(--primary-color);
    max-width: 400px;
    width: 90%;
    overflow: hidden;
}

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

.qr-modal-header h3 {
    color: var(--text-color);
    margin: 0;
    font-size: 1.3rem;
}

.close-qr-btn {
    background: none;
    border: none;
    color: var(--secondary-text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-qr-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

.qr-modal-body {
    padding: 30px;
    text-align: center;
}

.qr-code-placeholder {
    padding: 40px 20px;
}

.qr-code-placeholder i {
    font-size: 6rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    opacity: 0.5;
}

.qr-code-placeholder p {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.qr-code-placeholder small {
    color: var(--secondary-text);
    font-size: 0.9rem;
}

/* Footer Styles */
.app-footer {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(26, 26, 46, 0.95));
    margin-top: 40px;
    border-top: 2px solid rgba(212, 0, 0, 0.3);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Tablet Footer */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
        padding: 30px 20px;
    }
}

.footer-section h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section h3 i {
    font-size: 1.5rem;
}

.footer-section h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(212, 0, 0, 0.3);
}

.footer-section p {
    color: var(--secondary-text);
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--primary-glow);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--secondary-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    padding: 5px 0;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-links a i {
    font-size: 0.9rem;
    width: 16px;
}

.footer-features {
    list-style: none;
}

.footer-features li {
    color: var(--secondary-text);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-features i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    color: var(--secondary-text);
    margin: 0;
}

.footer-badges {
    display: flex;
    gap: 15px;
}

.footer-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: rgba(212, 0, 0, 0.1);
    border: 1px solid rgba(212, 0, 0, 0.3);
    border-radius: 15px;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 500;
}

.footer-badge i {
    font-size: 0.9rem;
}
