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

/* CSS Variables for consistent theming */
:root {
    --primary-color: #667eea;
    --accent-color: #764ba2;
    --card-bg: rgba(255, 255, 255, 0.12);
    --border-color: rgba(255, 255, 255, 0.15);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --text-muted: rgba(255, 255, 255, 0.65);
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --info-color: #3b82f6;

    /* Media type colors for GitHub-style bar */
    --image-color: #3b82f6;
    --video-color: #ef4444;
    --gif-color: #10b981;
    --other-color: #6b7280;
}

/* CUSTOM SCROLLBAR */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #7b8ef0, #8659b8);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    color: #ffffff;
    min-height: 100vh;
    position: relative;
}

/* Animated background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: backgroundMove 20s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes backgroundMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

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

.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 25px;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-details h1 {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 5px;
    background: linear-gradient(45deg, #fff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-details p {
    opacity: 0.8;
    font-size: 1.1rem;
    font-weight: 400;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 0 10px;
}

/* Stats Section and Carousel */
.stats-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.stats-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.stats-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.stats-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.toggle-icon {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.stats-toggle.expanded .toggle-icon {
    transform: rotate(180deg);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

/* Initially show only first 8 cards (2 rows of 4) */
.stats-grid:not(.expanded) .stat-card:nth-child(n+9) {
    display: none;
}

/* Show all cards when expanded */
.stats-grid.expanded .stat-card {
    display: block !important;
}

/* Stat cards layout */

.stat-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-color);
    backdrop-filter: blur(25px);
}

.stat-card:hover::before {
    opacity: 1;
}

/* Different card types with enhanced backgrounds */
.stat-card.primary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(147, 51, 234, 0.08) 100%);
    border-color: rgba(147, 51, 234, 0.25);
}

.stat-card.secondary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(59, 130, 246, 0.08) 100%);
    border-color: rgba(59, 130, 246, 0.25);
}

.stat-card.tertiary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(16, 185, 129, 0.08) 100%);
    border-color: rgba(16, 185, 129, 0.25);
}

.stat-card.accent {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(245, 158, 11, 0.08) 100%);
    border-color: rgba(245, 158, 11, 0.25);
}

.stat-card.special {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(239, 68, 68, 0.08) 100%);
    border-color: rgba(239, 68, 68, 0.25);
}

.stat-card.highlight {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 215, 0, 0.12) 100%);
    border-color: rgba(255, 215, 0, 0.3);
}

.stat-card.coom {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(147, 51, 234, 0.15) 100%);
    border-color: rgba(147, 51, 234, 0.3);
}

.stat-card.coom .stat-number {
    color: #e879f9;
    text-shadow: 0 2px 8px rgba(147, 51, 234, 0.4);
}

.stat-card.highlight .stat-number {
    color: #fbbf24;
    text-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.rank-suffix {
    font-size: 1.5rem;
    opacity: 0.8;
    font-weight: 600;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    font-family: 'Orbitron', monospace;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-trend,
.stat-percentage,
.stat-change,
.stat-meta {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    display: inline-block;
    margin-top: 0.4rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-trend {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.25);
}

.stat-trend.negative {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.25);
}

.stat-percentage {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.25);
}

.stat-change {
    background: rgba(147, 51, 234, 0.15);
    color: #c4b5fd;
    border-color: rgba(147, 51, 234, 0.25);
}

.stat-change.positive::before {
    content: '↗ ';
}

.stat-change.negative::before {
    content: '↘ ';
}

.stat-meta {
    background: rgba(107, 114, 128, 0.15);
    color: var(--text-muted);
    border-color: rgba(107, 114, 128, 0.25);
    font-style: italic;
}

/* GitHub-style Media Type Bar */
.media-type-bar {
    width: 100%;
    height: 8px;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    margin: 1rem 0;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
    position: relative;
}

.media-type-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s ease-in-out;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.media-type-segment {
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.media-type-segment:hover {
    transform: scaleY(1.2);
    filter: brightness(1.1);
}

.media-type-segment:first-child {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.media-type-segment:last-child {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

.media-type-segment.images {
    background: var(--image-color);
}

.media-type-segment.videos {
    background: var(--video-color);
}

.media-type-segment.gifs {
    background: var(--gif-color);
}

.media-type-segment.cooms {
    background: linear-gradient(45deg, #9333ea, #c084fc);
}

.media-type-segment.other {
    background: var(--other-color);
}

.media-type-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.75rem;
    font-size: 0.85rem;
}

.media-type-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.media-type-legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.media-type-legend-color.images {
    background: var(--image-color);
}

.media-type-legend-color.videos {
    background: var(--video-color);
}

.media-type-legend-color.gifs {
    background: var(--gif-color);
}

.media-type-legend-color.cooms {
    background: linear-gradient(45deg, #9333ea, #c084fc);
}

.media-type-legend-color.other {
    background: var(--other-color);
}

/* Media overview card */
.media-overview-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.media-overview-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.media-overview-title::before {
    content: '📊';
    font-size: 1.1em;
}

.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 10px;
}

.items-per-page {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.items-per-page label {
    font-weight: 500;
    font-size: 0.9rem;
}

.items-per-page select {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 8px 12px;
    color: white;
    font-weight: 500;
    outline: none;
    cursor: pointer;
}

.items-per-page select option {
    background: #2d3748;
    color: white;
}

.pagination-info {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 500;
    font-size: 0.9rem;
}

.loading,
.error {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 30px 0;
}

.loading {
    position: relative;
}

.loading::before {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
    display: block;
}

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

    100% {
        transform: rotate(360deg);
    }
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.media-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    position: relative;
}

.media-preview {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.media-icon {
    font-size: 3rem;
    opacity: 0.6;
    text-align: center;
}

.media-info {
    padding: 12px;
}

.media-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.media-meta span {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.media-type {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.no-media {
    text-align: center;
    padding: 80px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.2rem;
    opacity: 0.8;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.pagination button:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination button.current-page {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .header {
        padding: 20px;
    }

    .user-info {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .user-details h1 {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 5px;
    }

    .stats-section {
        padding: 20px;
    }

    .stats-header {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .stats-title {
        font-size: 1.25rem;
    }

    /* Show only 4 cards initially on tablet */
    .stats-grid:not(.expanded) .stat-card:nth-child(n+5) {
        display: none;
    }

    .stat-card {
        padding: 1.5rem 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .controls {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 8px;
    }

    .pagination button {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stats-grid.carousel-view {
        height: 160px;
        /* Smaller on mobile */
    }

    /* Show only 2 cards initially on mobile */
    .stats-grid:not(.expanded) .stat-card:nth-child(n+3) {
        display: none;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .media-type-legend {
        gap: 0.75rem;
        font-size: 0.8rem;
    }

    .media-type-legend-item {
        flex: 1;
        min-width: 0;
        justify-content: center;
    }

    .media-overview-card {
        padding: 1.5rem 1rem;
    }

    .media-grid {
        grid-template-columns: 1fr;
    }

    .media-meta {
        flex-direction: column;
        gap: 8px;
    }
}

/* COOM COUNTER BADGE */
.coom-counter-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: glow 2s ease-in-out infinite alternate;
}

.coom-counter-badge.normie {
    background: linear-gradient(135deg, rgba(155, 134, 102, 0.8), rgba(139, 121, 94, 0.9));
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.coom-counter-badge.naughty {
    background: linear-gradient(135deg, rgba(155, 134, 102, 0.9), rgba(170, 147, 118, 0.9));
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.coom-counter-badge.pervert {
    background: linear-gradient(135deg, rgba(217, 132, 61, 0.9), rgba(255, 159, 64, 0.9));
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.coom-counter-icon {
    font-size: 1.1em;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

@keyframes glow {
    from {
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    }

    to {
        box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
    }
}

/* THEMING BASED ON COOM COUNTER ROLE */
body.theme-normie {
    background: linear-gradient(135deg, #8B7562 0%, #6B5D4F 100%);
}

body.theme-naughty {
    background: linear-gradient(135deg, #A0916B 0%, #8B7562 100%);
}

body.theme-pervert {
    background: linear-gradient(135deg, #D9843D 0%, #FF9F40 100%);
}

/* MEDIA MODAL STYLES */
.media-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;
}

.media-modal.active {
    opacity: 1;
}

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

.media-modal-content {
    position: relative;
    width: 90%;
    height: 90%;
    max-width: 1200px;
    max-height: 800px;
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.media-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

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

.media-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.media-modal-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.media-modal-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.media-modal-nav:disabled:hover {
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
}

.media-modal-prev {
    left: 20px;
}

.media-modal-next {
    right: 20px;
}

.media-modal-media {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 80px 20px 80px;
    overflow: hidden;
}

.media-modal-media img,
.media-modal-media video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.media-modal-media video {
    background: #000;
}

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

.media-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.media-modal-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.media-modal-counter {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .media-modal-content {
        width: 95%;
        height: 95%;
    }

    .media-modal-media {
        padding: 60px 20px 20px 20px;
    }

    .media-modal-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .media-modal-prev {
        left: 10px;
    }

    .media-modal-next {
        right: 10px;
    }

    .media-modal-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}