/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors - WCAG AA Compliant (4.5:1 contrast ratio minimum) */
    --color-bg-primary: #0a0a0a;
    --color-bg-secondary: #1a1a1a;
    --color-bg-tertiary: #2a2a2a;
    --color-text-primary: #ffffff;        /* White on dark background - 21:1 ratio */
    --color-text-secondary: #d1d5db;      /* Improved from #b0b0b0 for better contrast */
    --color-accent: #6366f1;              /* Brighter accent for better visibility */
    --color-accent-hover: #4f46e5;        /* Darker hover state */
    --color-border: #4b5563;              /* Improved border contrast */
    --color-overlay: rgba(0, 0, 0, 0.7);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-size-xs: 0.75rem;    /* 12px */
    --font-size-sm: 0.875rem;   /* 14px */
    --font-size-base: 1rem;     /* 16px */
    --font-size-lg: 1.125rem;   /* 18px */
    --font-size-xl: 1.25rem;    /* 20px */
    --font-size-2xl: 1.5rem;    /* 24px */
    --font-size-3xl: 1.875rem;  /* 30px */
    --font-size-4xl: 2.25rem;   /* 36px */
    --font-size-5xl: 3rem;      /* 48px */
    
    /* Spacing */
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.25rem;   /* 20px */
    --space-6: 1.5rem;    /* 24px */
    --space-8: 2rem;      /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */
    --space-16: 4rem;     /* 64px */
    --space-20: 5rem;     /* 80px */
    --space-24: 6rem;     /* 96px */
    --space-32: 8rem;     /* 128px */
    
    /* Layout */
    --container-max-width: 1200px;
    --container-padding: var(--space-4);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size for rem calculations */
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Loading Screen - Pulse Text Only */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-container {
    text-align: center;
    color: var(--color-text-primary);
}

.loader-text {
    animation: pulse-text 2s infinite ease-in-out;
}

.loader-name {
    display: block;
    font-size: clamp(var(--font-size-3xl), 8vw, var(--font-size-5xl));
    font-weight: 700;
    margin-bottom: var(--space-4);
    background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse-text 1.5s infinite ease-in-out;
}

.loader-tagline {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    font-weight: 300;
    opacity: 0.8;
    animation: pulse-text 2s infinite ease-in-out;
    animation-delay: 0.3s;
}

@keyframes pulse-text {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* Main Content */
.main-content {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.main-content.visible {
    opacity: 1;
    visibility: visible;
}

.content-container {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: row;
}

/* About Section - Fixed Left Column */
.about-section-fixed {
    position: fixed;
    left: 0;
    top: 0;
    width: 40%;
    height: calc(100vh - 80px); /* Subtract footer height */
    background-color: var(--color-bg-primary);
    padding: var(--space-16) var(--space-4);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 10;
    transition: all 0.3s ease;
}

/* Album Info Panel in Left Column */
.about-section-fixed.album-mode {
    background-color: var(--color-bg-secondary);
    border-right: 1px solid var(--color-border);
}

.album-info-panel {
    display: none;
    text-align: center;
    width: 100%;
    max-width: 500px;
}

.album-info-panel.active {
    display: block;
    animation: fadeInUp 0.5s ease forwards;
}

.about-content.original-content {
    display: block;
}

.about-content.original-content.hidden {
    display: none;
}

.about-content.album-content {
    display: none;
}

.about-content.album-content.active {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    animation: fadeInUp 0.5s ease forwards;
}

.album-panel-cover {
    width: 200px;
    height: 200px;
    border-radius: var(--space-3);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    margin: 0 auto var(--space-4);
}

.album-panel-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-panel-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-3);
}

.album-panel-year {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-4);
}

.album-panel-description {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Mobile adjustments for album panel */
@media (max-width: 768px) {
    .about-section-fixed {
        width: 100%;
        position: relative;
        height: auto;
        min-height: 50vh;
        padding: var(--space-8) var(--space-4);
    }
    
    .album-panel-cover {
        width: 150px;
        height: 150px;
    }
    
    .album-panel-title {
        font-size: var(--font-size-2xl);
    }
}



/* Albums Section - Scrollable Right Column */
.albums-section-scroll {
    position: fixed;
    right: 0;
    top: 0;
    width: 60%;
    height: calc(100vh - 80px); /* Subtract footer height */
    overflow-y: auto;
    background-color: var(--color-bg-secondary);
    padding: var(--space-16) var(--space-8);
    scroll-behavior: smooth;
}

/* About Section - Left Column */
.about-section-fixed {
    padding: var(--space-16) var(--space-4);
    background-color: var(--color-bg-primary);
    display: flex;
    align-items: center;
}

.about-container {
    max-width: 600px;
    margin: 0 auto;
}

.main-title {
    font-size: clamp(var(--font-size-4xl), 6vw, var(--font-size-5xl));
    font-weight: 700;
    margin-bottom: var(--space-8);
    background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-heading {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    margin-bottom: var(--space-3);
    color: var(--color-text-primary);
}

.discography-count {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-6);
    font-weight: 400;
    opacity: 0.8;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.about-text {
    font-size: var(--font-size-lg);
    line-height: 1.8;
    color: var(--color-text-secondary);
}

/* Albums Container */
.albums-container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

/* Albums List - Vertical Layout */
.albums-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    padding: var(--space-4) 0;
}

/* Album Item */
.album-item {
    width: 100%;
}

/* Clickable Album Card */
.album-card-clickable {
    background-color: var(--color-bg-primary);
    border-radius: 1rem;
    padding: var(--space-6);
    border: 1px solid var(--color-border);
    transition: all var(--transition-normal);
    cursor: pointer;
    display: flex;
    gap: var(--space-6);
    align-items: center;
    outline: none;
    min-height: 88px; /* Ensures 44px touch targets for all screen sizes */
    min-width: 100%;  /* Full width for better mobile experience */
    position: relative;
}

.album-card-clickable:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-accent);
}

/* Skeleton Loading States */
.album-cover-large img,
.panel-cover-image,
.fullscreen-cover-image {
    position: relative;
}

.album-cover-large img::before,
.panel-cover-image::before,
.fullscreen-cover-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-bg-tertiary) 25%, var(--color-bg-secondary) 50%, var(--color-bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: loading-skeleton 1.5s infinite;
    border-radius: inherit;
}

@keyframes loading-skeleton {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Loading states for content */
.album-title.loading,
.album-year.loading,
.album-description.loading {
    background: var(--color-bg-tertiary);
    border-radius: var(--space-1);
    animation: loading-skeleton 1.5s infinite;
}

.album-title.loading {
    height: 1.5rem;
    width: 70%;
    margin-bottom: var(--space-2);
}

.album-year.loading {
    height: 1rem;
    width: 40%;
    margin-bottom: var(--space-3);
}

.album-description.loading {
    height: 3rem;
    width: 100%;
}

.album-card-clickable:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    border-color: var(--color-accent);
}

.album-card-clickable:active {
    transform: translateY(-2px) scale(0.98);
}

/* Micro-animations for enhanced UX */
@keyframes card-entrance {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.album-item {
    animation: card-entrance 0.6s ease forwards;
}

.album-item:nth-child(1) { animation-delay: 0.1s; }
.album-item:nth-child(2) { animation-delay: 0.2s; }
.album-item:nth-child(3) { animation-delay: 0.3s; }
.album-item:nth-child(4) { animation-delay: 0.4s; }
.album-item:nth-child(5) { animation-delay: 0.5s; }

/* Smooth focus transitions */
.album-card-clickable {
    transition: all var(--transition-normal), transform 0.15s ease, box-shadow 0.15s ease;
}

/* Album info panel micro-animations */
.album-panel-title {
    transition: color var(--transition-fast);
}

.album-panel-year {
    transition: opacity var(--transition-fast);
}

.album-panel-description {
    transition: opacity var(--transition-fast);
}

/* Button micro-interactions */
.album-fullscreen-close {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.album-fullscreen-close:hover {
    transform: translateX(-4px);
}

.album-fullscreen-close:active {
    transform: translateX(-2px) scale(0.95);
}

.album-cover-large {
    width: 120px;
    height: 120px;
    border-radius: 0.75rem;
    overflow: hidden;
    flex-shrink: 0;
}

/* Album Cover Images */
.album-cover-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

.album-info {
    flex: 1;
}

.album-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--space-2);
    color: var(--color-text-primary);
}

.album-year {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-3);
}

.album-description {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.album-info-mini {
    text-align: center;
}

.album-title-mini {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--space-1);
    color: var(--color-text-primary);
}

.album-year-mini {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

/* Collapsible Playlist */
.playlist-collapse {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: var(--color-bg-tertiary);
    border-radius: 0.75rem;
    margin-top: var(--space-4);
}

.playlist-collapse.expanded {
    max-height: 600px;
}

.playlist-container {
    padding: var(--space-6);
}

.playlist-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--space-5);
    color: var(--color-text-primary);
    text-align: center;
}

/* Track List */
.track-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.track-item {
    display: grid;
    grid-template-columns: 3rem 1fr auto;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    border-radius: 0.5rem;
    transition: background-color var(--transition-fast);
    cursor: pointer;
}

.track-item:hover {
    background-color: var(--color-bg-secondary);
}

.track-number {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text-secondary);
    text-align: center;
}

.track-name {
    font-size: var(--font-size-sm);
    color: var(--color-text-primary);
    font-weight: 500;
}

.track-duration {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    font-weight: 400;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-6);
    font-size: var(--font-size-sm);
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    min-height: 2.75rem;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--color-accent);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background-color: var(--color-bg-secondary);
    color: var(--color-text-primary);
    border-color: var(--color-text-secondary);
}

/* Widget Container */
.widget-container {
    margin: var(--space-6) 0;
}

.widget-placeholder {
    background-color: var(--color-bg-tertiary);
    border: 2px dashed var(--color-border);
    border-radius: 0.5rem;
    padding: var(--space-8);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 8rem;
}

.widget-placeholder-content {
    text-align: center;
    color: var(--color-text-secondary);
}

.widget-placeholder-content svg {
    width: 2rem;
    height: 2rem;
    margin-bottom: var(--space-3);
    color: var(--color-accent);
}

.widget-placeholder-content span {
    font-size: var(--font-size-sm);
    display: block;
}

/* Fixed Footer */
.footer-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background-color: var(--color-bg-primary);
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.footer-content-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--container-max-width);
    padding: 0 var(--space-8);
    gap: var(--space-8);
}

.footer-section-compact {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.footer-title {
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin: 0;
    color: var(--color-text-primary);
    white-space: nowrap;
}

.main-site-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    padding: var(--space-2) var(--space-3);
    border-radius: 0.5rem;
    transition: all var(--transition-fast);
}

.main-site-link:hover {
    color: var(--color-accent);
    background-color: var(--color-bg-secondary);
}

.main-site-link svg {
    width: 1rem;
    height: 1rem;
}

/* Compact Social Links */
.social-links-compact {
    display: flex;
    gap: var(--space-3);
}

.social-link {
    width: 3.5rem;      /* 56px - larger and more visible */
    height: 3.5rem;     /* 56px - larger and more visible */
    min-width: 44px;  /* Ensures accessibility compliance */
    min-height: 44px; /* Ensures accessibility compliance */
    background-color: var(--color-bg-secondary);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
    padding: 0.75rem; /* Ensures comfortable touch area */
    cursor: pointer; /* Show pointer cursor for clickable links */
}

.social-link:hover {
    background-color: var(--color-accent);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.social-link:hover img,
.social-link:hover svg {
    filter: brightness(1.2);
}

/* Enhanced social link micro-interactions */
.social-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
    pointer-events: none; /* Allow clicks to pass through */
}

.social-link:hover::before {
    width: 100px;
    height: 100px;
}

.social-link svg,
.social-link img {
    width: 1.5rem;
    height: 1.5rem;
    color: inherit;
}

/* Fallback SVG for failed image loads */
.social-link img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Widget Fallback Styles */
.widget-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    background-color: var(--color-bg-secondary);
    border-radius: 0.5rem;
    padding: var(--space-6);
    text-align: center;
    color: var(--color-text-secondary);
}

.widget-fallback-content {
    max-width: 400px;
}

.widget-fallback .btn {
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    background: var(--color-accent);
    color: white;
    display: inline-block;
    margin: var(--space-4) 0;
    transition: background-color var(--transition-fast);
}

.widget-fallback .btn:hover {
    background-color: var(--color-accent-hover);
}

/* Footer Bottom */
.footer-bottom-compact {
    text-align: center;
}

.copyright {
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    margin: 0;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Mobile First - основной дизайн для мобильных (320px - 767px) */
@media (max-width: 767px) {
    /* Контейнер для мобильных */
    .content-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    
    /* Левая колонка (Обо мне) - полная ширина на мобильных */
    .about-section-fixed {
        position: relative;
        width: 100%;
        height: auto;
        min-height: 50vh;
        padding: var(--space-8) var(--space-4);
        order: 1; /* Сначала показываем описание */
    }
    
    /* Правая колонка (Альбомы) - полная ширина на мобильных */
    .albums-section-scroll {
        position: relative;
        width: 100%;
        height: auto;
        padding: var(--space-8) var(--space-4);
        order: 2; /* Потом альбомы */
    }
    
    /* Заголовки */
    .main-title {
        font-size: var(--font-size-3xl);
        margin-bottom: var(--space-6);
        text-align: center;
    }
    
    .section-heading {
        font-size: var(--font-size-xl);
        margin-bottom: var(--space-4);
        text-align: center;
    }
    
    .about-text {
        font-size: var(--font-size-base);
        text-align: center;
        line-height: 1.6;
    }
    
    /* Карточки альбомов на мобильных */
    .album-card-clickable {
        flex-direction: column;
        text-align: center;
        gap: var(--space-4);
        padding: var(--space-6) var(--space-4);
        min-height: 120px;
    }
    
    .album-cover-large {
        width: 100px;
        height: 100px;
        align-self: center;
    }
    
    .album-title {
        font-size: var(--font-size-lg);
    }
    
    .album-year {
        font-size: var(--font-size-sm);
    }
    
    .album-description {
        font-size: var(--font-size-sm);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    /* Футер на мобильных - становится обычным потоком, не фиксированным */
    .footer-fixed {
        position: static;
        height: auto;
        padding: var(--space-6) 0;
        margin-top: var(--space-8);
    }
    
    .footer-content-compact {
        flex-direction: column;
        gap: var(--space-4);
        padding: 0 var(--space-4);
        text-align: center;
    }
    
    .footer-section-compact {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* Добавляем отступ снизу основному контенту для компенсации футера */
    .main-content {
        padding-bottom: 120px;
    }
    
    .social-link {
        width: 48px;
        height: 48px;
        padding: 0.75rem;
    }
    
    /* Полноэкранный режим на мобильных */
    .album-fullscreen {
        padding: var(--space-4);
    }
    
    .album-fullscreen-header {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-4);
        text-align: center;
    }
    
    .album-fullscreen-title {
        font-size: var(--font-size-2xl);
    }
    
    .album-fullscreen-info {
        flex-direction: column;
        gap: var(--space-6);
        text-align: center;
    }
    
    .album-fullscreen-cover {
        width: 150px;
        height: 150px;
        align-self: center;
    }
    
    .album-fullscreen-widget iframe {
        height: 280px;
        max-width: calc(100vw - 2rem);
        width: 100%;
    }
    
    /* Панель альбома на мобильных */
    .album-panel-cover {
        width: 120px;
        height: 120px;
        margin: 0 auto var(--space-4);
    }
    
    .album-panel-title {
        font-size: var(--font-size-xl);
        text-align: center;
    }
    
    .album-panel-year {
        font-size: var(--font-size-base);
        text-align: center;
    }
    
    .album-panel-description {
        font-size: var(--font-size-sm);
        text-align: center;
    }
    
    /* Убираем анимации на мобильных для производительности */
    .album-item {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* Планшеты (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .content-container {
        height: 100vh;
        flex-direction: row;
    }
    
    .about-section-fixed {
        position: fixed;
        left: 0;
        width: 45%;
        height: calc(100vh - 80px);
        padding: var(--space-12) var(--space-6);
        order: 1;
    }
    
    .albums-section-scroll {
        position: fixed;
        right: 0;
        width: 55%;
        height: calc(100vh - 80px);
        padding: var(--space-12) var(--space-6);
        order: 2;
    }
    
    .main-title {
        font-size: var(--font-size-4xl);
    }
    
    .album-card-clickable {
        padding: var(--space-5);
        gap: var(--space-5);
    }
    
    .album-cover-large {
        width: 100px;
        height: 100px;
    }
    
    .album-fullscreen {
        padding: var(--space-8);
    }
    
    .album-fullscreen-widget iframe {
        height: 320px;
    }
}

/* Десктопы (1024px+) */
@media (min-width: 1024px) {
    .about-section-fixed {
        padding: var(--space-16) var(--space-4);
    }
    
    .albums-section-scroll {
        padding: var(--space-16) var(--space-8);
    }
    
    .album-fullscreen-widget iframe {
        height: 400px;
    }
}

/* Большие экраны (1200px+) */
@media (min-width: 1200px) {
    .content-container {
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .albums-container {
        max-width: 800px;
    }
}

/* Очень маленькие экраны (до 480px) */
@media (max-width: 480px) {
    .about-section-fixed,
    .albums-section-scroll {
        padding: var(--space-6) var(--space-3);
    }
    
    .album-card-clickable {
        padding: var(--space-4);
        gap: var(--space-3);
        min-height: 100px;
    }
    
    .album-cover-large {
        width: 80px;
        height: 80px;
    }
    
    .album-title {
        font-size: var(--font-size-base);
        font-weight: 600;
    }
    
    .album-year,
    .album-description {
        font-size: var(--font-size-xs);
    }
    
    .footer-content-compact {
        padding: 0 var(--space-3);
        gap: var(--space-3);
    }
    
    .social-link {
        width: 44px;
        height: 44px;
        padding: 0.5rem;
    }
    
    .album-fullscreen {
        padding: var(--space-3);
    }
    
    .album-fullscreen-cover {
        width: 120px;
        height: 120px;
    }
    
    /* Ограничение ширины iframe для предотвращения горизонтального скролла */
    .album-fullscreen-widget iframe,
    .widget-container iframe,
    .album-modal-widget iframe {
        max-width: calc(100vw - 2rem) !important;
        width: 100% !important;
        height: auto !important;
        min-height: 250px;
    }
    
    /* Дополнительная защита для iframe в полноэкранном режиме */
    .album-fullscreen-widget {
        max-width: 100%;
        overflow-x: hidden;
        padding: 0;
    }
    
    .album-fullscreen-widget iframe {
        height: 250px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 0.5rem;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 0.25rem;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-secondary);
}

/* Focus States */
.btn:focus,
.social-link:focus,
.project-link:focus,
.track-item:focus,
.album-card-collapsible:focus,
.expand-button:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Keyboard Navigation Support */
.expand-button[role="button"]:hover,
.track-item[role="button"]:hover {
    background-color: var(--color-bg-secondary);
    cursor: pointer;
}

.expand-button[role="button"]:active,
.track-item[role="button"]:active {
    background-color: var(--color-accent);
    color: white;
}

/* Widget Container Styling */
.widget-container {
    margin-top: var(--space-6);
    border-radius: var(--space-3);
    overflow: hidden;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    padding: var(--space-4);
}

.widget-container iframe {
    border-radius: var(--space-2);
    box-shadow: var(--shadow-md);
}

/* Widget Fallback Content */
.widget-fallback {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--space-2);
    padding: var(--space-8);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.widget-fallback-content {
    text-align: center;
    color: var(--color-text-secondary);
}

.widget-fallback-content p {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-4);
    color: var(--color-text-secondary);
}

.widget-fallback-content a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    padding: var(--space-3) var(--space-6);
    border: 1px solid var(--color-accent);
    border-radius: var(--space-2);
    transition: all var(--transition-fast);
    display: inline-block;
}

.widget-fallback-content a:hover {
    background-color: var(--color-accent);
    color: white;
}

/* Album Modal */
.album-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.album-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-overlay);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
}

.album-details {
    background-color: var(--color-bg-primary);
    border-radius: 1.5rem;
    padding: var(--space-8);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-border);
}

.modal-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--color-bg-secondary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 10;
}

.modal-close:hover {
    background-color: var(--color-accent);
    color: white;
    transform: scale(1.1);
}

.modal-close svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Album Details Content */
.album-modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-6);
}

.album-modal-cover {
    width: 200px;
    height: 200px;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.album-modal-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--space-2);
    color: var(--color-text-primary);
}

.album-modal-year {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-6);
}

.album-modal-description {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    line-height: 1.6;
    max-width: 600px;
    margin-bottom: var(--space-8);
}

.album-modal-widget {
    width: 100%;
    max-width: 614px;
}

.album-modal-widget iframe {
    width: 100%;
    height: 556px;
    border-radius: var(--space-2);
    border: none;
}

/* Album Full-Screen Mode */
.album-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--color-bg-primary);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow-y: auto;
    padding: var(--space-16) var(--space-8);
}

.album-fullscreen.active {
    opacity: 1;
    visibility: visible;
}

.album-fullscreen-content {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

/* Album Full-Screen Header */
.album-fullscreen-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--color-border);
}

.album-fullscreen-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0;
    flex: 1;
}

.album-fullscreen-close {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    padding: var(--space-4) var(--space-6); /* Increased padding for 44px touch target */
    border-radius: var(--space-2);
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    min-height: 44px; /* Accessibility compliance */
    min-width: 44px;  /* Accessibility compliance */
    justify-content: center;
}

.album-fullscreen-close:hover {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
    transform: translateX(-2px);
}

.album-fullscreen-close:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.album-fullscreen-close svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Album Full-Screen Info */
.album-fullscreen-info {
    display: flex;
    gap: var(--space-8);
    margin-bottom: var(--space-8);
    align-items: flex-start;
}

.album-fullscreen-cover {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    border-radius: var(--space-3);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

/* Fullscreen Cover Images */
.album-fullscreen-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

.album-fullscreen-text {
    flex: 1;
    min-width: 0;
}

.album-fullscreen-year {
    font-size: var(--font-size-xl);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-4);
    font-weight: 500;
}

.album-fullscreen-description {
    font-size: var(--font-size-lg);
    color: var(--color-text-primary);
    line-height: 1.6;
    margin: 0;
}

/* Album Full-Screen Widget */
.album-fullscreen-widget {
    background: var(--color-bg-secondary);
    border-radius: var(--space-3);
    padding: var(--space-6);
    border: 1px solid var(--color-border);
}

.album-fullscreen-widget iframe {
    width: 100%;
    height: 400px;
    border-radius: var(--space-2);
    border: none;
}

/* Generic iframe styles for dynamically created widgets */
.widget-container iframe,
.album-modal-widget iframe,
.album-fullscreen-widget iframe {
    display: block;
    max-width: 100%;
    border-radius: var(--space-2);
    border: none;
    background: transparent;
}

/* Mobile Full-Screen Responsive */
@media (max-width: 768px) {
    .album-fullscreen {
        padding: var(--space-8) var(--space-4);
    }
    
    .album-fullscreen-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
    }
    
    .album-fullscreen-title {
        font-size: var(--font-size-2xl);
        text-align: left;
    }
    
    .album-fullscreen-info {
        flex-direction: column;
        gap: var(--space-6);
        text-align: center;
    }
    
    .album-fullscreen-cover {
        width: 150px;
        height: 150px;
        align-self: center;
    }
    
    .album-fullscreen-widget iframe {
        height: 300px;
    }
    
    .album-fullscreen-close span {
        display: none;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .loading-screen {
        animation: none !important;
    }
}

/* ===== PHASE 4: CONTENT AND FUNCTIONALITY ===== */

.tracklist-section {
    margin-top: var(--space-4);
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-3);
}

.tracklist-toggle {
    color: var(--color-accent);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    transition: color var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--space-2);
    border: 1px solid transparent;
    min-height: 44px; /* Touch target */
}

.tracklist-toggle:hover {
    color: var(--color-accent-hover);
    background-color: rgba(79, 70, 229, 0.05);
    border-color: rgba(79, 70, 229, 0.2);
}

.tracklist-toggle.coming-soon {
    color: var(--color-text-secondary);
    cursor: default;
    pointer-events: none;
}

.tracklist-content {
    margin-top: var(--space-4);
    background-color: var(--color-bg-secondary);
    border-radius: var(--space-2);
    padding: var(--space-4);
    border: 1px solid var(--color-border);
}

.coming-soon-content {
    text-align: center;
    color: var(--color-text-secondary);
    background-color: var(--color-bg-tertiary);
}

.coming-soon-text {
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: var(--space-2);
}

/* Tracklist Styles */
.tracklist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tracklist li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--color-border);
    transition: background-color var(--transition-fast);
}

.tracklist li:last-child {
    border-bottom: none;
}

.tracklist li:hover {
    background-color: var(--color-bg-tertiary);
    margin: 0 calc(-1 * var(--space-4));
    padding-left: var(--space-4);
    padding-right: var(--space-4);
    border-radius: var(--space-1);
}

.track-name {
    font-weight: 500;
    color: var(--color-text-primary);
    flex: 1;
}

.track-duration {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    font-family: monospace;
    margin-left: var(--space-4);
}

.single-tracklist li {
    justify-content: flex-start;
    gap: var(--space-6);
}

/* Tracklist Animation */
.tracklist-content {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
        padding-top: var(--space-4);
        padding-bottom: var(--space-4);
    }
}

/* ===== PHASE 3: UX/UI IMPROVEMENTS ===== */

/* Loading States for Album Transitions */
.album-card-clickable.loading {
    pointer-events: none;
    opacity: 0.7;
}

.album-card-clickable.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--color-accent);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: loading-spin 1s linear infinite;
}

@keyframes loading-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Visual Feedback */
.album-card-clickable:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

.album-card-clickable.active {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.album-card-clickable.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-hover));
    border-radius: 1rem 1rem 0 0;
}



/* Loading Skeleton States */
.skeleton {
    background: linear-gradient(90deg, 
        var(--color-bg-secondary) 25%, 
        var(--color-bg-tertiary) 50%, 
        var(--color-bg-secondary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 1rem;
    border-radius: var(--space-1);
    margin-bottom: var(--space-2);
}

.skeleton-text.title {
    height: 1.5rem;
    width: 60%;
}

.skeleton-text.subtitle {
    height: 1rem;
    width: 40%;
}



/* Enhanced Focus Indicators */
.album-card-clickable:focus,
.social-link:focus,
.main-site-link:focus,
.album-fullscreen-close:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

/* Enhanced Touch Optimizations for Mobile */
@media (max-width: 768px) {
    .album-card-clickable {
        min-height: 96px; /* Larger touch target on mobile */
        padding: var(--space-6) var(--space-4);
        -webkit-tap-highlight-color: rgba(99, 102, 241, 0.1); /* iOS tap highlight */
        touch-action: manipulation; /* Remove 300ms delay */
    }
    
    .social-link {
        width: 3.5rem;   /* Larger on mobile */
        height: 3.5rem;  /* Larger on mobile */
        padding: 1rem;   /* More padding for touch */
        -webkit-tap-highlight-color: rgba(99, 102, 241, 0.1);
        touch-action: manipulation;
    }
    
    .album-fullscreen-close {
        min-height: 48px; /* Larger button on mobile */
        min-width: 48px;
        padding: var(--space-4) var(--space-6);
        -webkit-tap-highlight-color: rgba(99, 102, 241, 0.1);
        touch-action: manipulation;
    }
    
    /* Prevent text selection on interactive elements */
    .album-card-clickable,
    .social-link,
    .album-fullscreen-close,
    .main-site-link {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
    
    /* Optimize scrolling performance */
    .albums-section-scroll {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
    }
    
    /* Optimize image loading */
    .album-cover-large img,
    .panel-cover-image,
    .fullscreen-cover-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: optimize-contrast;
    }
    
    /* Reduce motion for better performance on mobile */
    .album-card-clickable {
        transition: none; /* Disable transitions on mobile for better performance */
    }
    
    .album-card-clickable:active {
        transition: transform 0.1s ease;
    }
    
    /* Improved focus indicators for mobile */
    .album-card-clickable:focus,
    .social-link:focus,
    .album-fullscreen-close:focus {
        outline-width: 3px; /* Thicker focus indicators on mobile */
        outline-offset: 3px;
    }
}

/* Touch feedback for better UX on touch devices */
@media (hover: none) and (pointer: coarse) {
    .album-card-clickable:active {
        background-color: rgba(99, 102, 241, 0.1);
        border-color: var(--color-accent);
    }
    
    .social-link:active {
        background-color: var(--color-accent);
        transform: scale(0.95);
    }
    
    .album-fullscreen-close:active {
        background-color: var(--color-accent);
        color: white;
        transform: scale(0.98);
    }
}
    
    /* Prevent text selection on interactive elements */
    .album-card-clickable,
    .social-link,
    .album-fullscreen-close,
    .main-site-link {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
    
    /* Optimize scrolling performance */
    .albums-section-scroll {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
    }
    
    /* Optimize image loading */
    .album-cover-large img,
    .panel-cover-image,
    .fullscreen-cover-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: optimize-contrast;
    }
    
    /* Reduce motion for performance */
    .album-card-clickable {
        transition: none; /* Disable transitions on mobile for better performance */
    }
    
    .album-card-clickable:active {
        transition: transform 0.1s ease;
    }


/* Touch feedback for better UX */
@media (hover: none) and (pointer: coarse) {
    .album-card-clickable:active {
        background-color: rgba(99, 102, 241, 0.1);
        border-color: var(--color-accent);
    }
    
    .social-link:active {
        background-color: var(--color-accent);
        transform: scale(0.95);
    }
    
    .album-fullscreen-close:active {
        background-color: var(--color-accent);
        color: white;
        transform: scale(0.98);
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .album-card-clickable {
        border-width: 2px;
        border-color: var(--color-text-primary);
    }
    
    .album-card-clickable:hover,
    .album-card-clickable:focus {
        border-color: var(--color-accent);
        border-width: 3px;
    }
    
    .social-link {
        border: 2px solid var(--color-text-secondary);
    }
    
    .social-link:hover,
    .social-link:focus {
        border-color: var(--color-accent);
        border-width: 3px;
    }
}

/* Widget Fallback Styles */
.widget-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
    text-align: center;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    min-height: 300px;
    gap: var(--space-4);
}

.widget-fallback p {
    color: var(--color-text-secondary);
    font-size: var(--font-size-base);
    margin: 0;
}

.widget-fallback a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    padding: var(--space-3) var(--space-6);
    border: 1px solid var(--color-accent);
    border-radius: 6px;
    transition: all 0.2s ease;
    margin-top: var(--space-2);
}

.widget-fallback a:hover {
    background: var(--color-accent);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.widget-fallback details {
    margin-top: var(--space-4);
    width: 100%;
}

.widget-fallback summary {
    color: var(--color-text-secondary);
    cursor: pointer;
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-2);
}

.widget-fallback details > div {
    background: var(--color-bg-tertiary);
    padding: var(--space-3);
    border-radius: 4px;
    font-family: monospace;
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    word-break: break-all;
    max-height: 200px;
    overflow-y: auto;
}

/* ===== FINAL OPTIMIZATIONS ===== */

/* Retina/High-DPI displays optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .album-cover-large img,
    .panel-cover-image,
    .fullscreen-cover-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: optimize-contrast;
        /* Prevent blurry images on retina */
        transform: translateZ(0);
        backface-visibility: hidden;
    }
}

/* Very large screens optimization (4K and above) */
@media (min-width: 1920px) {
    .content-container {
        max-width: 1600px;
        margin: 0 auto;
    }
    
    .albums-container {
        max-width: 1000px;
    }
    
    .album-card-clickable {
        padding: var(--space-8);
        gap: var(--space-8);
    }
    
    .album-cover-large {
        width: 140px;
        height: 140px;
    }
    
    .album-title {
        font-size: var(--font-size-2xl);
    }
    
    .album-year {
        font-size: var(--font-size-base);
    }
    
    .album-description {
        font-size: var(--font-size-lg);
    }
}

/* Improve accessibility for screen readers */
@media (prefers-reduced-motion: no-preference) {
    .album-card-clickable {
        transition: all var(--transition-normal);
    }
    
    .social-link {
        transition: all var(--transition-fast);
    }
}

/* Print styles for better printing experience */
@media print {
    .loading-screen,
    .album-fullscreen,
    .footer-fixed {
        display: none !important;
    }
    
    .content-container {
        flex-direction: column;
        height: auto;
    }
    
    .about-section-fixed,
    .albums-section-scroll {
        position: relative;
        width: 100%;
        height: auto;
        page-break-inside: avoid;
    }
    
    .album-card-clickable {
        break-inside: avoid;
        margin-bottom: var(--space-4);
    }
}

/* Performance optimizations for slow devices */
@media (max-width: 480px) and (max-device-width: 480px) {
    /* Disable animations on very slow devices */
    .album-item,
    .fade-in {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    /* Simplify shadows */
    .album-card-clickable {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .album-cover-large,
    .panel-cover-image,
    .fullscreen-cover-image {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
}