/* Gallery Demo Specific Styles */

/* Override colors to use purple theme instead of green/blue */
:root {
    --accent-color: var(--primary-color);
    --success-color: var(--primary-color);
    --text-cyan: var(--primary-color);
    
    /* Override depth layers to use purple */
    --blue-depth-10: var(--depth-10);
    --blue-depth-20: var(--depth-20);
    --blue-depth-40: var(--depth-40);
    --blue-depth-60: var(--depth-60);
    --blue-depth-80: var(--depth-80);
    
    /* Override glow effects to use purple */
    --glow-subtle-blue: var(--glow-subtle);
    --glow-medium-blue: var(--glow-medium);
    --glow-strong-blue: var(--glow-strong);
    --glow-dramatic-blue: var(--glow-dramatic);
}

/* Video placeholder and loading states */
.video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(20, 20, 20, 0.8);
    color: var(--primary-color);
    width: 100%;
    height: 100%;
    min-height: 180px;
    border: 1px solid rgba(100, 65, 165, 0.3);
    position: relative;
}

.video-placeholder .placeholder-icon {
    font-size: 24px;
    margin-bottom: 8px;
    opacity: 0.7;
    animation: pulse 2s infinite;
}

.video-placeholder .placeholder-text {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    text-transform: uppercase;
    opacity: 0.8;
    letter-spacing: 1px;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* Video error states */
.video-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(40, 20, 20, 0.8);
    color: #ff6b6b;
    width: 100%;
    height: 100%;
    min-height: 180px;
    border: 1px solid rgba(255, 107, 107, 0.3);
    text-align: center;
    padding: 20px;
}

.video-error-icon {
    font-size: 24px;
    margin-bottom: 8px;
    opacity: 0.7;
}

.video-error-text {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    text-transform: uppercase;
    opacity: 0.8;
    letter-spacing: 1px;
    line-height: 1.4;
}

body {
    transition: opacity 0.3s ease;
}

/* Improved loading performance for videos */
.video-loaded video {
    transition: opacity 0.3s ease;
}

.video-loaded .video-placeholder {
    display: none;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.gallery-section {
    padding: 60px 0;
    background: var(--bg-darker);
    min-height: 100vh;
}

/* NEW FILE SYSTEM INTERFACE STYLES */

/* File System Terminal Interface */
.file-system-terminal {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    box-shadow: var(--shadow-cyan), inset 0 0 20px var(--blue-depth-10);
    overflow: hidden;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 700px;
}

/* Navigation Bar */
.navigation-bar {
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 20px;
    border-bottom: 1px solid var(--blue-depth-40);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.breadcrumb {
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
    font-size: 14px;
}

.path-segment {
    color: var(--secondary-color);
    cursor: pointer;
    transition: color 0.3s ease;
}

.path-segment.active {
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
}

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

.nav-btn {
    background: var(--blue-depth-10);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--blue-depth-20);
    box-shadow: var(--glow-medium-blue);
}

/* Filter Bar */
.filter-bar {
    background: rgba(0, 0, 0, 0.4);
    padding: 15px 20px;
    border-bottom: 1px solid var(--blue-depth-20);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.search-container {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 14px;
}

.filter-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-select {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 12px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    cursor: pointer;
}

.filter-btn {
    background: var(--depth-20);
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--depth-40);
}

/* Tag Filter Panel */
.tag-filter-panel {
    background: rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid var(--blue-depth-20);
    padding: 20px;
}

.tag-categories {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tag-category {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-label {
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: bold;
    min-width: 120px;
}

.tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    background: var(--blue-depth-10);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
}

.tag:hover {
    background: var(--blue-depth-20);
}

.tag.active {
    background: var(--primary-color);
    color: #000;
}

/* Main Gallery Layout */
.gallery-main {
    display: flex;
    min-height: 500px;
}

/* File Explorer Sidebar */
.file-explorer {
    width: 280px;
    background: rgba(0, 0, 0, 0.6);
    border-right: 1px solid var(--blue-depth-40);
    overflow-y: auto;
}

.explorer-header {
    background: var(--blue-depth-10);
    padding: 12px 15px;
    border-bottom: 1px solid var(--blue-depth-40);
    display: flex;
    align-items: center;
    gap: 8px;
}

.explorer-title {
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: bold;
}

.folder-tree {
    padding: 15px 0;
}

.folder-item {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-left: 3px solid transparent;
}

.folder-item:hover {
    background: var(--blue-depth-10);
    border-left-color: var(--primary-color);
}

.folder-item.active {
    background: var(--blue-depth-20);
    border-left-color: var(--primary-color);
}


.folder-item-icon {
    margin-right: 8px;
    font-size: 14px;
}

.folder-item-name {
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    font-size: 13px;
    flex: 1;
}

.folder-item-count {
    color: var(--secondary-color);
    font-family: 'Courier New', monospace;
    font-size: 11px;
    opacity: 0.8;
}

.folder-item-content {
    display: flex;
    align-items: center;
    width: 100%;
}

.folder-toggle {
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    font-size: 12px;
    margin-right: 8px;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 3px;
    transition: background-color 0.3s ease;
    user-select: none;
}

.folder-toggle:hover {
    background: var(--blue-depth-20);
}

.folder-spacer {
    width: 20px;
    margin-right: 8px;
}

.folder-children {
    overflow: hidden;
}

.folder-children .folder-item {
    padding-left: 35px;
}

/* Content Area */
.content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content-header {
    background: rgba(0, 0, 0, 0.4);
    padding: 15px 20px;
    border-bottom: 1px solid var(--blue-depth-20);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.current-location {
    display: flex;
    align-items: center;
    gap: 8px;
}

.location-text {
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: bold;
}

.item-count {
    color: var(--secondary-color);
    font-family: 'Courier New', monospace;
    font-size: 12px;
    opacity: 0.8;
}

.loading-indicator {
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    animation: spin 1s linear infinite;
}

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

/* Content Grid */
.content-grid {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: max-content;
    align-content: start;
}

.content-grid.list-view {
    grid-template-columns: 1fr;
    gap: 10px;
}

.content-grid.grid-view {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* Empty State */
.empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 64px;
    opacity: 0.5;
    margin-bottom: 20px;
}

.empty-text {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}

.empty-subtext {
    font-size: 14px;
    opacity: 0.7;
}

/* Content Cards */
.content-card {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--blue-depth-40);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    height: fit-content;
    max-height: 500px;
}

.content-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--glow-strong-blue);
    transform: translateY(-2px);
}

.card-header {
    padding: 12px 15px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--blue-depth-20);
}

.content-type {
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.type-text {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: var(--primary-color);
    font-weight: bold;
}

.category-badge {
    font-family: 'Courier New', monospace;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
}

.streamer-badge {
    background: var(--blue-depth-20);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.community-badge {
    background: var(--depth-20);
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

.featured-badge {
    background: var(--depth-20);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.accounts-badge {
    background: var(--depth-20);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.card-video {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    position: relative;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-error {
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--text-light);
    font-family: var(--font-mono);
    font-size: 12px;
    text-align: center;
    padding: 10px;
    border: 1px dashed var(--primary-color);
}

.video-error-icon {
    font-size: 24px;
    margin-bottom: 8px;
    opacity: 0.6;
}

.video-error-text {
    opacity: 0.8;
    line-height: 1.4;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--blue-depth-80);
    color: #000;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
}

.content-card:hover .play-overlay {
    background: var(--primary-color);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--primary-color);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
}

.card-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.card-title {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 8px;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-description {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: var(--primary-color);
    line-height: 1.4;
    margin-bottom: 12px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    max-height: 4em;
}

.card-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.meta-row span {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 3px;
}

.streamer-name, .donation-amount {
    color: var(--primary-color);
    font-weight: bold;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.content-tag {
    background: var(--depth-20);
    color: var(--secondary-color);
    font-family: 'Courier New', monospace;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 8px;
    border: 1px solid rgba(101, 64, 165, 0.5);
}

/* List View Styles */
.content-card.list-card {
    display: flex;
    align-items: center;
    padding: 0;
}

.list-card .card-video {
    width: 200px;
    flex-shrink: 0;
}

.list-card .card-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.list-card .card-header {
    border: none;
    padding: 0;
}

/* Profile Card Styles */
.profile-card {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(0, 191, 255, 0.3);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.profile-card:hover {
    border-color: var(--primary-color);
    background: var(--depth-10);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 191, 255, 0.2);
}

.profile-avatar {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    background: rgba(0, 191, 255, 0.1);
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.social-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 191, 255, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

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

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

.social-text {
    font-family: 'Orbitron', monospace;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-link-preview {
    font-size: 11px;
    color: var(--primary-color);
    background: var(--depth-10);
    padding: 5px 8px;
    border-radius: 4px;
    border: 1px solid rgba(0, 191, 255, 0.3);
    margin-top: 8px;
    word-break: break-all;
}

/* Folder Grid View (Root Directory) */
.folder-grid-view {
    gap: 25px;
    padding: 30px;
}

.folder-card {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--depth-40);
    border-radius: 12px;
    padding: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 120px;
    position: relative;
    overflow: hidden;
}

.folder-card:hover {
    border-color: var(--primary-color);
    background: var(--depth-10);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px var(--depth-20);
}

.folder-card-icon {
    font-size: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--blue-depth-10);
    border: 1px solid var(--blue-depth-40);
    border-radius: 50%;
    flex-shrink: 0;
}

.folder-card-content {
    flex: 1;
}

.folder-card-title {
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 8px 0;
    letter-spacing: 1px;
}

.folder-card-description {
    color: var(--secondary-color);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    margin: 0 0 12px 0;
    opacity: 0.9;
    line-height: 1.4;
}

.folder-card-count {
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: bold;
    opacity: 0.8;
}

.folder-card-arrow {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: bold;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.folder-card:hover .folder-card-arrow {
    opacity: 1;
    transform: translateX(5px);
}

/* Streamer Profile View */
.streamer-profile-view {
    gap: 20px;
    padding: 30px;
}

.streamer-profile-card {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--depth-40);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: fit-content;
    max-height: 400px;
}

.streamer-profile-card:hover {
    border-color: var(--primary-color);
    background: var(--depth-10);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--depth-40);
}

.profile-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid var(--blue-depth-20);
}

.profile-avatar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-icon {
    font-size: 40px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-depth-10);
    border: 2px solid var(--depth-40);
    border-radius: 50%;
}


.profile-info {
    flex: 1;
}

.streamer-name {
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 10px 0;
    letter-spacing: 1px;
}

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

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

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

.stat-value {
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
}

.stat-label {
    color: var(--secondary-color);
    font-family: 'Courier New', monospace;
    font-size: 11px;
    opacity: 0.8;
}

.profile-preview {
    flex: 1;
    position: relative;
    min-height: 120px;
}

.preview-video {
    width: 100%;
    height: 120px;
    position: relative;
    background: rgba(0, 0, 0, 0.9);
}

.preview-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.streamer-profile-card:hover .preview-overlay {
    opacity: 1;
}

.preview-text {
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}

.preview-date {
    color: var(--secondary-color);
    font-family: 'Courier New', monospace;
    font-size: 11px;
}

.preview-placeholder {
    width: 100%;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
}

.placeholder-icon {
    font-size: 32px;
    opacity: 0.5;
    margin-bottom: 8px;
}

.placeholder-text {
    color: var(--secondary-color);
    font-family: 'Courier New', monospace;
    font-size: 12px;
    opacity: 0.7;
}

.profile-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--depth-20);
}

.view-clips-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: bold;
}

.btn-arrow {
    opacity: 0.6;
    transition: all 0.3s ease;
}

.streamer-profile-card:hover .btn-arrow {
    opacity: 1;
    transform: translateX(5px);
}

.no-streamers {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--secondary-color);
    font-family: 'Courier New', monospace;
    font-size: 16px;
    padding: 60px 20px;
    opacity: 0.7;
}

/* Content Modal */
.content-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.content-modal.open {
    opacity: 1;
}

.content-modal.closing {
    opacity: 0;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 10px 50px var(--depth-40);
    display: flex;
    flex-direction: column;
}

.modal-header {
    background: var(--blue-depth-10);
    padding: 15px 20px;
    border-bottom: 1px solid var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 16px;
}

.modal-close {
    background: var(--depth-20);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 18px;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 71, 87, 0.4);
    transform: scale(1.1);
}

.modal-video-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background: #000;
}

.modal-video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.modal-info {
    padding: 20px;
    border-top: 1px solid var(--depth-20);
    background: rgba(0, 0, 0, 0.8);
}

.modal-description {
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.modal-meta span {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

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

.social-link {
    background: var(--depth-20);
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.social-link:hover {
    background: var(--depth-40);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-main {
        flex-direction: column;
    }
    
    .file-explorer {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--blue-depth-40);
    }
    
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .search-container {
        max-width: none;
    }
    
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }
}

/* Command Terminal Interface */
.command-terminal {
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-purple);
    overflow: hidden;
}

.terminal-header-bar {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color));
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terminal-title {
    font-family: var(--font-tech);
    color: var(--bg-darker);
    font-weight: bold;
    font-size: 14px;
}

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

.terminal-btn {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-darker);
    color: var(--accent-color);
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.terminal-btn:hover {
    background: var(--text-light);
    color: var(--bg-darker);
}

.command-line-interface {
    padding: 20px;
}

.command-prompt {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.search-symbol {
    color: var(--primary-color);
    font-size: 16px;
    text-shadow: 0 0 5px var(--primary-color);
    animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
    0% { text-shadow: 0 0 5px var(--primary-color); }
    100% { text-shadow: 0 0 15px var(--primary-color), 0 0 25px var(--primary-color); }
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-family: var(--font-mono);
    font-size: 14px;
    outline: none;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    transition: border-color 0.3s;
}

.search-input:focus {
    border-bottom-color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
}

.search-input::placeholder {
    color: var(--border-color);
    font-style: italic;
}

.command-output {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent-color);
    opacity: 0.8;
    white-space: pre-wrap;
    line-height: 1.4;
}

/* Gallery Container */
.gallery-container {
    position: relative;
    min-height: 600px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 30px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.matrix-rain-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(180deg, transparent 0%, rgba(139, 92, 246, 0.03) 50%, transparent 100%);
    /* Removed expensive animations for performance */
}

/* Streamer Grid */
.streamer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    position: relative;
    z-index: 2;
}

/* Individual Streamer Cards */
.streamer-card {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    will-change: transform;
    contain: layout style paint;
    transform: translateZ(0); /* Force hardware acceleration */
}

.streamer-card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: var(--primary-color);
    box-shadow: 
        0 8px 20px rgba(139, 92, 246, 0.2),
        0 0 15px rgba(139, 92, 246, 0.1);
}

.streamer-card.focused {
    transform: scale(1.03);
    z-index: 10;
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
    /* Simplified animation for better performance */
}

/* Terminal Window Frame */
.video-terminal-frame {
    background: var(--bg-darker);
    padding: 8px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.video-terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
}

.video-terminal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: terminalShine 8s infinite;
}

@keyframes terminalShine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

.video-title {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--bg-darker);
    font-weight: bold;
    position: relative;
    z-index: 1;
}

.video-controls {
    display: flex;
    gap: 4px;
    position: relative;
    z-index: 1;
}

.video-control-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-darker);
    font-size: 8px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.video-control-btn:hover {
    background: var(--text-light);
    transform: scale(1.2);
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    height: 180px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--bg-darker);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.streamer-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    filter: brightness(0.9) contrast(1.1);
}

.streamer-card:hover .streamer-video {
    transform: scale(1.05);
    filter: brightness(1) contrast(1.2);
}

/* Simplified Glitch Effect */
.glitch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(139, 92, 246, 0.1);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 3;
}

.streamer-card:hover .glitch-overlay {
    opacity: 0.3;
}

/* Play Button Overlay */
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(139, 92, 246, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    opacity: 0;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    z-index: 4;
}

.streamer-card:hover .play-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
}

.play-overlay:hover {
    background: rgba(139, 92, 246, 0.9);
    transform: translate(-50%, -50%) scale(1.2) !important;
}

/* Card Info Section */
.card-info {
    padding: 20px;
    position: relative;
}

.streamer-name {
    font-family: var(--font-tech);
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-shadow: 0 0 5px rgba(139, 92, 246, 0.3);
    position: relative;
}

.streamer-name::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.streamer-card:hover .streamer-name::after {
    width: 100%;
}

/* ASCII Progress Bar */
.progress-section {
    margin-bottom: 15px;
}

.progress-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-cyan);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ascii-progress-bar {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--success-color);
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: border-color 0.3s;
}

.streamer-card:hover .ascii-progress-bar {
    border-color: var(--primary-color);
}

.progress-bar-visual {
    flex: 1;
    position: relative;
    height: 16px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success-color), var(--accent-color));
    transition: width 0.8s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: progressShimmer 2s infinite;
}

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

.progress-text {
    font-size: 11px;
    color: var(--text-light);
    font-weight: bold;
}

/* Stats Row */
.stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    position: relative;
}

.stats-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.5s ease;
}

.streamer-card:hover .stats-row::before {
    width: 100%;
}

.stat-item {
    text-align: center;
    position: relative;
    transition: transform 0.2s;
}

.stat-item:hover {
    transform: translateY(-2px);
}

.stat-value {
    font-family: var(--font-tech);
    color: var(--primary-color);
    font-size: 16px;
    font-weight: bold;
    display: block;
    transition: color 0.3s;
}

.stat-item:hover .stat-value {
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(139, 92, 246, 0.6);
}

.stat-label {
    font-family: var(--font-mono);
    color: var(--text-light);
    font-size: 10px;
    opacity: 0.7;
    text-transform: uppercase;
    transition: opacity 0.3s;
}

.stat-item:hover .stat-label {
    opacity: 1;
}

/* Loading State */
.loading-card {
    background: rgba(0, 0, 0, 0.5);
    border: 2px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: var(--text-cyan);
    font-family: var(--font-mono);
    font-size: 14px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-modal.open {
    opacity: 1;
}

.video-modal.closing {
    opacity: 0;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    background: rgba(10, 10, 20, 0.95);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        0 20px 40px rgba(139, 92, 246, 0.4),
        0 0 30px rgba(139, 92, 246, 0.3);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-family: var(--font-tech);
    color: var(--bg-darker);
    font-weight: bold;
    font-size: 16px;
}

.modal-close {
    background: none;
    border: none;
    color: var(--bg-darker);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

.modal-video-container {
    position: relative;
    padding: 20px;
}

.modal-video {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.modal-stats {
    padding: 20px;
    display: flex;
    justify-content: center;
    gap: 40px;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.3);
}

.modal-stat {
    text-align: center;
}

.modal-stat-value {
    font-family: var(--font-tech);
    color: var(--primary-color);
    font-size: 24px;
    font-weight: bold;
    display: block;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}

.modal-stat-label {
    font-family: var(--font-mono);
    color: var(--text-light);
    font-size: 12px;
    text-transform: uppercase;
    opacity: 0.8;
    margin-top: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .streamer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .search-input {
        font-size: 12px;
    }
    
    .gallery-container {
        padding: 20px;
    }
    
    .video-container {
        height: 160px;
    }
    
    .card-info {
        padding: 15px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-video {
        height: 250px;
    }
    
    .modal-stats {
        gap: 20px;
        padding: 15px;
    }
    
    .modal-stat-value {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .stats-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .stat-item {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .command-terminal {
        margin-bottom: 20px;
    }
    
    .terminal-header-bar {
        padding: 10px 15px;
    }
}