/* ===== MEDIA PORTFOLIO STYLES ===== */

/* Compact search (Media page): collapsed by default, expands when container has .open */
.search-compact #searchInput { width: 0; opacity: 0; padding: .6rem 0; border: 1px solid transparent; transition: width .2s ease, opacity .15s ease, padding .2s ease, border-color .2s ease; border-radius: 10px; }
.search-compact.open #searchInput { width: 260px; opacity: 1; padding: .6rem .75rem; border-color: var(--gray-300); }
@media (max-width: 520px){ .search-compact.open #searchInput { width: 200px; } }

/* Spotify Player Styles */
.spotify-expanded-player {
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 12px;
    padding: 1rem;
    margin: 0.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.spotify-expanded-player iframe {
    width: 100% !important;
    max-width: 100% !important;
    height: 200px !important;
    border-radius: 8px !important;
    border: none !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.spotify-expanded-player .close-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.spotify-expanded-player .close-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Ensure parent containers don't overflow */
.audio-item {
    overflow: hidden !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.audio-item-content {
    overflow: hidden !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Spotify Error State */
.spotify-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    color: #dc2626;
}

.spotify-error p {
    margin: 0.5rem 0;
    font-size: 1rem;
}

.spotify-error p:first-child {
    font-weight: bold;
    font-size: 1.1rem;
}

/* Responsive Spotify Player */
@media (max-width: 768px) {
    .spotify-expanded-player {
        padding: 0.75rem;
        margin: 0.25rem 0;
    }
    
    .spotify-expanded-player iframe {
        height: 180px !important;
    }
    
    .spotify-expanded-player .close-btn {
        width: 28px;
        height: 28px;
        font-size: 16px;
        top: 0.25rem;
        right: 0.25rem;
    }
}

@media (max-width: 480px) {
    .spotify-expanded-player {
        padding: 0.5rem;
    }
    
    .spotify-expanded-player iframe {
        height: 160px !important;
    }
    
    .spotify-expanded-player .close-btn {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }
}

/* Hero Section */
.media-hero {
    background: linear-gradient(135deg, var(--primary-400), var(--primary-300));
    color: white;
    text-align: center;
    padding: 6rem 2rem;
    margin-top: 0px;
}


.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: var(--font-bold);
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Filter Navigation */
.media-filters {
    background: var(--gray-50);
    padding: 2rem 0;
    border-bottom: 1px solid var(--gray-200);
    text-align: center;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--gray-300);
    color: var(--gray-700);
    padding: 0.75rem 1.5rem;
    margin: 0 0.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: var(--font-medium);
    position: relative;
    overflow: hidden;
}

.filter-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    transition: left 0.8s ease;
}

.filter-btn:hover:before {
    left: 100%;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-500);
    border-color: var(--primary-500);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

/* Featured Video Section */
.featured-video {
    padding: 4rem 0;
    background: var(--gray-50);
}

.featured-video h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--gray-800);
}

.video-player {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
}

.video-player video {
    width: 100%;
    height: auto;
    display: block;
}

.video-info {
    padding: 2rem;
}

.video-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--gray-800);
}

.video-info p {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.video-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.video-meta span {
    background: var(--gray-100);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    color: var(--gray-700);
}

/* Media Grid Section */
.media-grid-section {
    background-color: var(--primary-400);
    padding: 4rem 0;
}

.media-grid-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--gray-800);
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.media-item {
    background: linear-gradient(145deg, var(--gray-50) 0%, var(--gray-200) 50%, var(--gray-100) 100%);
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    width: 100%;
    height: auto;
    position: relative;
    display: block;
}

.media-item:hover {
    /* No hover effects - just movement */
}

/* Hidden items - completely removed from grid flow */
.media-item.hidden {
    display: none !important;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(0);
}

/* Visible items - normal grid behavior */
.media-item.visible {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    width: 100%;
    height: auto;
}

/* Animation for items appearing */
.media-item.visible {
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive grid adjustments */
@media (max-width: 1200px) {
    .media-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .media-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1rem;
        padding: 0 1rem;
    }
}

.media-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--gray-200);
}

.media-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.media-item:hover .media-thumbnail img {
    /* No hover effects */
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

/* Ensure video poster play button is perfectly centered in results/search */
.video-poster .play-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: grid !important;
    place-items: center !important;
    transform: none !important;
    pointer-events: none !important;
    background: transparent !important;
    border-radius: 0 !important;
}

.media-item:hover .play-overlay {
    /* No hover effects */
}

.play-icon {
    font-size: 1.5rem;
    margin-left: 3px;
}

.media-type {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-400);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: var(--font-medium);
}

/* Audio Thumbnail */
.audio-thumbnail {
    background: linear-gradient(135deg, var(--primary-200), var(--primary-300));
    display: flex;
    align-items: center;
    justify-content: center;
}

.waveform {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 60px;
}

.wave-bar {
    width: 4px;
    background: white;
    border-radius: 2px;
    animation: wave 2s ease-in-out infinite;
}

.wave-bar:nth-child(1) { height: 20px; animation-delay: 0s; }
.wave-bar:nth-child(2) { height: 40px; animation-delay: 0.1s; }
.wave-bar:nth-child(3) { height: 60px; animation-delay: 0.2s; }
.wave-bar:nth-child(4) { height: 30px; animation-delay: 0.3s; }
.wave-bar:nth-child(5) { height: 50px; animation-delay: 0.4s; }
.wave-bar:nth-child(6) { height: 25px; animation-delay: 0.5s; }
.wave-bar:nth-child(7) { height: 45px; animation-delay: 0.6s; }
.wave-bar:nth-child(8) { height: 35px; animation-delay: 0.7s; }

@keyframes wave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.5); }
}

.media-info {
    padding: 1.5rem;
}

.media-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--gray-800);
}

.media-info p {
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.media-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* Audio Showcase Section */
.audio-showcase {
    padding: 4rem 0;
    background: var(--gray-50);
}

.audio-showcase h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--gray-800);
}

.audio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.audio-player {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.audio-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--gray-800);
}

.audio-info p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.play-btn {
    background: var(--primary-500);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.play-btn:hover {
    background: var(--primary-600);
    transform: scale(1.05);
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
}

.progress {
    height: 100%;
    background: var(--primary-400);
    width: 0%;
    transition: width 0.3s ease;
}

.time {
    font-size: 0.9rem;
    color: var(--gray-600);
    min-width: 80px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .media-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .audio-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .filter-btn {
        margin: 0.25rem;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .video-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .video-meta span {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .media-hero {
        padding: 4rem 1rem;
    }
    
    .featured-video,
    .media-grid-section,
    .audio-showcase {
        padding: 2rem 0;
    }
    
    .video-info,
    .media-info,
    .audio-player {
        padding: 1rem;
    }
}

/* Filter Animation */
.media-item {
    transition: all 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.media-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.media-item.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
} 

/* Enhanced Media Item Animations */
.media-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    opacity: 1;
}

.media-item.hidden {
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
}

.media-item.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* Audio Showcase Enhancements */
.audio-showcase {
    transition: background 0.5s ease;
    border-radius: var(--radius-lg);
    margin: 2rem;
    padding: 2rem;
}

.audio-player {
    transition: all 0.3s ease;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    cursor: pointer;
}

.audio-player:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
} 

/* Loading States */
.loading-media {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--gray-600);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-200);
    border-top: 4px solid var(--primary-400);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

/* Dynamic Content Styles */
.dynamic-content {
    position: relative;
}

.dynamic-content .media-source {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: var(--font-medium);
}

.dynamic-content.youtube .media-source {
    background: #FF0000;
}

.dynamic-content.notion .media-source {
    background: var(--primary-600);
}

/* Featured Badge */
.featured-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500) !important;
    color: var(--gray-900) !important;
    font-weight: var(--font-bold);
    padding: 0.25rem 0.5rem !important;
    border-radius: 12px !important;
    font-size: 0.75rem !important;
}

/* Content Tags */
.content-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.content-tags .tag {
    background: var(--primary-100);
    color: var(--primary-700);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: var(--font-medium);
}

/* Modal Tags */
.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-top: 1px solid var(--gray-200);
}

.modal-tags .tag {
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Video Actions */
.video-actions {
    padding: 1rem 2rem 2rem;
    text-align: center;
    border-top: 1px solid var(--gray-200);
}

.btn-secondary {
    display: inline-block;
    background: var(--gray-100);
    color: var(--primary-600);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: var(--font-medium);
    transition: all 0.3s ease;
}

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

/* Enhanced iframe styling */
.video-container iframe {
    width: 100%;
    height: 400px;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .video-container iframe {
        height: 250px;
    }
} 

/* ===== DARK MODE ENHANCEMENTS ===== */

/* Dark mode media hero */
[data-theme="dark"] .media-hero {
    background: linear-gradient(135deg, var(--primary-300), var(--primary-400));
    color: var(--gray-100);
}

/* Dark mode filter navigation */
[data-theme="dark"] .media-filters {
    background: var(--gray-100);
    border-bottom-color: var(--gray-200);
}

/* Dark mode filter buttons */
[data-theme="dark"] .filter-btn {
    background: var(--gray-200);
    border-color: var(--gray-300);
    color: var(--gray-700);
}

[data-theme="dark"] .filter-btn:hover,
[data-theme="dark"] .filter-btn.active {
    background: var(--primary-400);
    border-color: var(--primary-400);
    color: var(--gray-100);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Dark mode media items */
[data-theme="dark"] .media-item {
    background: linear-gradient(145deg, var(--gray-200) 0%, var(--gray-400) 50%, var(--gray-300) 100%);
    border: 1px solid var(--gray-300);
}

[data-theme="dark"] .media-item:hover {
    background: linear-gradient(145deg, var(--gray-300) 0%, var(--primary-300) 50%, var(--primary-200) 100%);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4), 0 0 25px rgba(59, 130, 246, 0.2);
}

/* Dark mode media info */
[data-theme="dark"] .media-info h3 {
    color: var(--gray-800);
}

[data-theme="dark"] .media-info p {
    color: var(--gray-600);
}

/* Dark mode audio showcase */
[data-theme="dark"] .audio-showcase {
    background: var(--gray-100);
}

/* Dark mode audio players */
[data-theme="dark"] .audio-player {
    background: var(--gray-200);
    border: 1px solid var(--gray-300);
}

[data-theme="dark"] .audio-player:hover {
    background: var(--gray-300);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

/* Dark mode audio info */
[data-theme="dark"] .audio-info h3 {
    color: var(--gray-800);
}

[data-theme="dark"] .audio-info p {
    color: var(--gray-600);
}

/* Dark mode play button */
[data-theme="dark"] .play-btn {
    background: var(--primary-400);
    color: var(--gray-100);
}

[data-theme="dark"] .play-btn:hover {
    background: var(--primary-500);
}

/* Dark mode progress bar */
[data-theme="dark"] .progress-bar {
    background: var(--gray-300);
}

[data-theme="dark"] .progress {
    background: var(--primary-400);
}

/* Dark mode time display */
[data-theme="dark"] .time {
    color: var(--gray-600);
}

/* Dark mode video info */
[data-theme="dark"] .video-info h3 {
    color: var(--gray-800);
}

[data-theme="dark"] .video-info p {
    color: var(--gray-600);
}

/* Dark mode video meta */
[data-theme="dark"] .video-meta span {
    background: var(--gray-300);
    color: var(--gray-700);
}

/* ===== ENHANCED MEDIA CARDS WITH COMPOSITION RELATIONS ===== */

.performance-info {
    background: var(--gray-100);
    border-radius: var(--radius-md);
    padding: var(--space-3);
    margin: var(--space-3) 0;
    font-size: 0.85rem;
    border-left: 3px solid var(--primary-400);
}

.performance-info .performer,
.performance-info .venue,
.performance-info .date {
    margin: var(--space-1) 0;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.related-compositions {
    margin-top: var(--space-4);
    padding-top: var(--space-3);
    border-top: 1px solid var(--gray-200);
}

.compositions-header {
    margin-bottom: var(--space-3);
}

.compositions-label {
    font-weight: var(--font-semibold);
    color: var(--primary-700);
    font-size: 0.9rem;
}

.compositions-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.composition-chip {
    background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
    border: 1px solid var(--primary-200);
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.composition-chip:hover {
    background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
    border-color: var(--primary-400);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.composition-chip:active {
    transform: translateY(0);
}

.comp-title {
    display: block;
    font-weight: var(--font-semibold);
    color: var(--primary-800);
    font-size: 0.9rem;
    margin-bottom: var(--space-1);
}

.comp-instrument {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--primary-600);
    background: var(--primary-200);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    margin-right: var(--space-2);
}

.comp-year {
    font-size: 0.8rem;
    color: var(--gray-600);
    font-style: italic;
}

/* Enhanced media meta with icons */
.media-meta span {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-size: 0.8rem;
}

/* Audio and Video Container Styling for Composition Pages */
.composition-audio-container,
.composition-video-container {
    margin: var(--space-6) 0;
}

.composition-audio-player,
.composition-video-player {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin-bottom: var(--space-4);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.composition-audio-player:hover,
.composition-video-player:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-300);
}

.composition-audio-player:not(.movement-audio) .composition-audio-title { display: none; }
.multi-movement .composition-audio-title { display: flex; }
.composition-audio-title,
.composition-video-title {
    font-size: 1.1rem;
    font-weight: var(--font-semibold);
    color: var(--primary-700);
    margin-bottom: var(--space-3);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Global: make all native audio controls white with rounded corners */
audio {
    background: var(--gray-0, #fff) !important;
    border-radius: 10px !important;
    color-scheme: light;
    display: block;
}
audio::-webkit-media-controls-panel { background-color: var(--gray-0, #fff) !important; }
audio::-webkit-media-controls-enclosure { background-color: var(--gray-0, #fff) !important; border-radius: 10px !important; }

/* Enforce consistent native audio control height globally */
audio,
audio::-webkit-media-controls-panel,
audio::-webkit-media-controls-enclosure {
    height: 40px !important;
    min-height: 40px !important;
}

.audio-counter,
.video-counter {
    font-size: 0.8rem;
    background: var(--primary-100);
    color: var(--primary-700);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-weight: var(--font-medium);
}

.composition-audio-metadata,
.composition-video-metadata {
    background: var(--gray-100);
    border-radius: var(--radius-md);
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    border-left: none;
}

.composition-audio-metadata div,
.composition-video-metadata div {
    margin: 0; /* no spacing */
    color: var(--gray-700);
}

.audio-duration,
.video-duration {
    font-size: 0.8rem;
    color: var(--gray-600);
    margin-top: var(--space-2);
    font-style: italic;
}

.multi-audio-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-4);
    margin-top: var(--space-4);
    padding: var(--space-4);
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.audio-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
    border: 3px solid var(--gray-100);
    color: var(--gray-700);
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.audio-nav-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.audio-nav-info {
    font-size: 0.9rem;
    color: var(--gray-700);
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .compositions-list {
        gap: var(--space-3);
    }
    
    .composition-chip {
        padding: var(--space-4);
    }
    
    .comp-title {
        font-size: 0.95rem;
    }
    
    .multi-audio-controls {
        flex-direction: column;
        gap: var(--space-3);
        text-align: center;
    }
    
    .audio-nav-btn {
        min-width: 120px;
    }
}

/* ===== NEW LAYOUT STYLES ===== */

/* ✨ DISABLED: Secondary Navigation Container - now handled by modular template system in styles.css */
/* 
.secondary-nav {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 0;
}

.secondary-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 0 2rem;
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: var(--gray-700);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: 2px solid var(--gray-200);
    font-weight: var(--font-medium);
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.secondary-button:hover {
    background: var(--primary-500);
    color: white;
    border-color: var(--primary-500);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}
*/

/* Media Filters Container */
.media-filters-container {
    background: var(--gray-50);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.media-filters {
    text-align: center;
    margin-bottom: 1rem;
}

.filter-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.clear-all-btn {
    background: var(--red-500);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: var(--font-medium);
    transition: all 0.3s ease;
}

.clear-all-btn:hover {
    background: var(--red-600);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.search-compositions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.search-compositions:focus-within {
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-input {
    border: none;
    outline: none;
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
    min-width: 200px;
    background: transparent;
}

.search-btn {
    background: var(--primary-500);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: var(--primary-600);
}

/* ===== SINGLE COLUMN COMPOSITION CARDS ===== */

.compositions-list-section {
    background: var(--gray-50);
    padding: 4rem 0;
    min-height: 60vh;
}

.compositions-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.composition-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--gray-200);
}

.composition-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: var(--primary-300);
}

.composition-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem;
    position: relative;
}

.composition-cover {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--gray-200);
}

.composition-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.composition-card:hover .composition-cover img {
    transform: scale(1.05);
}

.composition-cover.audio-cover {
    background: linear-gradient(135deg, var(--primary-200), var(--primary-300));
    display: flex;
    align-items: center;
    justify-content: center;
}

.composition-cover .waveform {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 40px;
}

.composition-cover .wave-bar {
    width: 3px;
    background: white;
    border-radius: 1.5px;
    animation: wave 2s ease-in-out infinite;
}

.composition-cover .play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.composition-card:hover .play-overlay {
    opacity: 1;
}

.composition-main {
    flex: 1;
    min-width: 0;
}

.composition-title-section {
    margin-bottom: 0.5rem;
}

.composition-title {
    font-size: 1.4rem;
    font-weight: var(--font-semibold);
    color: var(--gray-800);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.composition-instrumentation {
    font-size: 1rem;
    color: var(--gray-600);
    margin: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    font-style: italic;
}

.composition-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
    flex-shrink: 0;
}

.buy-btn {
    background: var(--primary-500);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: var(--font-medium);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.buy-btn:hover {
    background: var(--primary-600);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.composition-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.composition-meta .duration {
    font-weight: var(--font-medium);
    color: var(--primary-600);
}

.composition-meta .year {
    color: var(--gray-500);
    font-style: italic;
}

/* Hidden/Visible states for new layout */
.composition-card.hidden {
    display: none !important;
}

.composition-card.visible {
    display: flex;
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    /* ✨ DISABLED: Secondary nav styles - now handled by modular template */
    /*
    .secondary-nav-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .secondary-button {
        padding: 0.75rem 2rem;
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
    */
    
    .filter-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-input {
        min-width: 250px;
    }
    
    .composition-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .composition-cover {
        width: 150px;
        height: 150px;
    }
    
    .composition-actions {
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }
    
    .composition-meta {
        align-items: flex-start;
    }
    
    .compositions-list {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .composition-content {
        padding: 1rem;
    }
    
    .composition-cover {
        width: 100px;
        height: 100px;
    }
    
    .composition-title {
        font-size: 1.2rem;
    }
    
    .composition-instrumentation {
        font-size: 0.9rem;
        margin: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .buy-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* Audio Item Tags */
.audio-item-tag,
.featured-audio-tag {
    display: inline-flex; /* Show tags - changed from none */
    align-items: center;
    background: var(--gray-100);
    color: var(--gray-700);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.125rem 0.5rem;
    border-radius: 0.375rem;
    margin-right: 0;
    margin-bottom: 0;
    border: 1px solid var(--gray-200);
    text-transform: capitalize;
    flex-shrink: 0;
    white-space: nowrap;
}

.featured-audio-item {
    padding: 0;
}

/* Hover effect for tags */
.audio-item-tag:hover,
.featured-audio-tag:hover {
    background: var(--gray-200);
    color: var(--gray-800);
}

/* Tag colors now use centralized chip system from ui.css - removed hardcoded colors */

/* Responsive tag display */
@media (max-width: 768px) {
    .audio-item-tag,
    .featured-audio-tag {
        font-size: 0.7rem;
        padding: 0.1rem 0.375rem;
        margin-right: 0.375rem;
    }
}

/* Featured Audio Waveform Player Styles */
.featured-audio-expanded {
    background: rgba(59, 130, 246, 0.15) !important;
    border-radius: 12px !important;
    padding: 0.25rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
}

.featured-audio-waveform-container {
    position: relative;
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.featured-audio-waveform-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}



.featured-audio-waveform {
    flex: 1;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
}

.featured-audio-waveform-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    z-index: 1;
}

.waveform-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    text-align: center;
    margin-bottom: 2px;
    line-height: 1.2;
}

.waveform-performer {
    font-size: 12px;
    color: #6b7280;
    text-align: center;
    line-height: 1.2;
}

.featured-audio-play-btn {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    z-index: 2;
    position: relative;
}

.featured-audio-play-btn:hover {
    background: #2563eb;
    transform: scale(1.05);
}

.featured-audio-close-btn {
    background: #6b7280;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
    z-index: 2;
    position: relative;
}

.featured-audio-close-btn:hover {
    background: #4b5563;
    transform: scale(1.05);
}

.featured-audio-time-display {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    font-family: monospace;
    padding-top: 8px;
    margin-top: 4px;
}

.current-time, .duration {
    font-weight: 500;
}

/* Fix border radius for scrollbar compatibility */
.featured-audio-expanded {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

/* Ensure the waveform container doesn't have border radius on the right */
.featured-audio-waveform-container {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .featured-audio-waveform-container {
        height: 70px;
        padding: 8px;
    }
    
    .featured-audio-waveform {
        height: 50px;
    }
    
    .featured-audio-controls {
        gap: 6px;
    }
    
    .featured-audio-play-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .featured-audio-close-btn {
        width: 25px;
        height: 25px;
        font-size: 16px;
    }
    
    .waveform-title {
        font-size: 12px;
    }
    
    .waveform-performer {
        font-size: 10px;
    }
}

/* Audio Item Layout Updates */
.audio-item-content {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 16px;
    padding: 16px;
    background: white;
    border-radius: 8px;
}

.audio-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.audio-item-text {
    flex: 1;
    min-width: 0;
}

.audio-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
    line-height: 1.3;
}

.audio-item-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    display: inline-block;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.audio-item-thumbnail {
    flex-shrink: 0;
    width: 64px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.audio-item-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.audio-item-thumbnail .fallback-icon {
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Icon colors based on tag type */
.audio-item-icon[data-tag="recording"] {
    background: rgba(147, 51, 234, 0.1);
    color: #9333ea;
}

.audio-item-icon[data-tag="midi"] {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.audio-item-icon[data-tag="live"] {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.audio-item-icon[data-tag="multi-track"] {
    background: rgba(249, 115, 22, 0.1);
    color: #ea580c;
}

.audio-item-icon[data-tag="spotify"] {
    background: rgba(30, 215, 96, 0.1);
    color: #1db954;
}

.audio-item-icon[data-tag="score-video"] {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.audio-item-performer {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 8px;
    line-height: 1.2;
}

.audio-item-right-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    min-width: 120px;
}

.audio-item-meta {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
    max-width: 300px;
    overflow: hidden;
    width: 100%;
}

.audio-item-year,
.audio-item-ensemble {
    font-size: 0.75rem;
    color: #6b7280;
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--gray-200);
}

/* Category gets default styling but colors come from ui.css chip system */
.audio-item-category {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    /* Default colors if no category class matched */
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

/* Show category and tag only in expanded waveform player */
.featured-audio-waveform-overlay .waveform-category,
.featured-audio-waveform-overlay .waveform-tag {
    display: inline-block;
}

.audio-item-play-btn {
    width: 40px;
    height: 40px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    flex-shrink: 0;
}

.audio-item-spotify-logo {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    background: #1db954;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.audio-item-spotify-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Related media content display */
.related-media-section {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-100);
}

.related-media-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-media-item {
    background: var(--gray-50);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid var(--gray-200);
}

.related-media-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: var(--gray-700);
}

.related-media-icon {
    font-size: 1.2rem;
}

.related-media-title {
    font-size: 0.9rem;
}

/* Related video container */
.related-video-container {
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
}

.related-video-container iframe {
    width: 100%;
    height: 200px;
    border: none;
}

/* Related audio container */
.related-audio-container {
    width: 100%;
}

.related-audio-player {
    background: white;
    border-radius: 6px;
    padding: 0.75rem;
    border: 1px solid var(--gray-200);
}

.related-audio-waveform {
    height: 60px;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    overflow: hidden;
}

.related-audio-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.related-audio-play-btn {
    background: var(--primary-500);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.related-audio-play-btn:hover {
    background: var(--primary-600);
    transform: scale(1.05);
}

.related-audio-time-display {
    display: flex;
    gap: 0.5rem;
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--gray-600);
}

/* Related Spotify container */
.related-spotify-container {
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
}

.related-spotify-container iframe {
    border: none;
}

/* Suppress iframe-related console errors */
iframe {
    /* This helps reduce console noise from blocked ads */
    pointer-events: auto;
}

/* Additional Spotify-specific error suppression */
.related-spotify-container iframe,
.spotify-expanded-player iframe {
    /* Prevent ad-related console errors */
    pointer-events: auto;
    /* Add error handling to suppress blocked ad errors */
}

/* Spotify disabled message styles */
.spotify-disabled-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    color: #166534;
    font-size: 14px;
    min-height: 80px;
}

.spotify-icon {
    font-size: 18px;
}

.spotify-text {
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .related-media-content {
        gap: 0.75rem;
    }
    
    .related-media-item {
        padding: 0.75rem;
    }
    
    .related-video-container iframe {
        height: 150px;
    }
    
    .related-audio-waveform {
        height: 50px;
    }
    
    .related-audio-play-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

/* Composition link buttons */
.composition-link-section {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-100);
}

.composition-link-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.composition-link-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--secondary-50);
    border: 1px solid var(--secondary-200);
    border-radius: 8px;
    color: #000000;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.composition-link-btn:hover {
    background: var(--secondary-100);
    border-color: var(--secondary-300);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.15);
}

.composition-link-icon {
    font-size: 1rem;
}

.composition-link-text {
    white-space: nowrap;
}

/* Waveform player buttons */
.waveform-player-buttons {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    justify-content: center;
    margin: 0 0.5rem;
}

/* Waveform meta info (category and tag) */
.waveform-meta-info {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0.5rem;
}

.waveform-category {
    font-weight: 500;
    text-transform: capitalize;
}

.waveform-tag {
    font-weight: 400;
    opacity: 0.9;
}

.waveform-divider {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.6rem;
    margin: 0 0.25rem;
    opacity: 0.8;
}

/* Audio item related buttons */
.audio-item-related-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.audio-item-related-buttons .related-media-section,
.audio-item-related-buttons .composition-link-section {
    margin: 0.25rem 0;
}

.audio-item-related-buttons .related-media-buttons,
.audio-item-related-buttons .composition-link-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.audio-item-related-buttons .related-media-btn,
.audio-item-related-buttons .composition-link-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    border-radius: 4px;
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.2);
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
    min-height: 1.75rem;
}

.audio-item-related-buttons .related-media-btn:hover,
.audio-item-related-buttons .composition-link-btn:hover {
    background: rgba(79, 70, 229, 0.2);
    border-color: rgba(79, 70, 229, 0.4);
    transform: translateY(-1px);
}

.audio-item-related-buttons .related-media-icon,
.audio-item-related-buttons .composition-link-icon {
    font-size: 0.875rem;
}

.audio-item-related-buttons .related-media-text,
.audio-item-related-buttons .composition-link-text {
    font-size: 0.75rem;
    white-space: nowrap;
}

.waveform-player-buttons .related-media-section,
.waveform-player-buttons .composition-link-section {
    margin: 0;
    padding: 0;
    border: none;
}

.waveform-player-buttons .related-media-buttons,
.waveform-player-buttons .composition-link-buttons {
    gap: 0.25rem;
}

.waveform-player-buttons .related-media-btn,
.waveform-player-buttons .composition-link-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 6px;
    min-height: auto;
}

.waveform-player-buttons .related-media-icon,
.waveform-player-buttons .composition-link-icon {
    font-size: 0.875rem;
}

.waveform-player-buttons .related-media-text,
.waveform-player-buttons .composition-link-text {
    font-size: 0.75rem;
    white-space: nowrap;
}

/* Ensure time display can accommodate buttons */
.featured-audio-time-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-height: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .audio-item-content {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .audio-item-info {
        align-self: flex-start;
        width: 100%;
    }
    
    .audio-item-right-section {
        width: 100%;
        flex-direction: column;
        align-items: flex-end;
        gap: 0.5rem;
    }
    
    .audio-item-play-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
        align-self: flex-end;
    }

    .audio-item-related-buttons {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Featured Audio Layout Updates */
.featured-audio-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 0;
    background: white;
    border-radius: 8px;
}

.featured-audio-item {
    padding: 0px;
}

.featured-audio-info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.featured-audio-text {
    flex: 1;
    min-width: 0;
}

.featured-audio-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 3px;
    line-height: 1.3;
}

.featured-audio-performer {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 6px;
    line-height: 1.2;
}

.featured-audio-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    display: inline-block;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.featured-audio-right-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Removed featured-audio-meta and category/ensemble styles as they're no longer used */

.featured-audio-play-btn {
    width: 40px;
    height: 40px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    flex-shrink: 0;
}

/* Featured Audio Icon Colors */
.featured-audio-icon[data-tag="recording"] {
    background: rgba(147, 51, 234, 0.1);
    color: #9333ea;
}

.featured-audio-icon[data-tag="midi"] {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.featured-audio-icon[data-tag="live"] {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.featured-audio-icon[data-tag="multi-track"] {
    background: rgba(249, 115, 22, 0.1);
    color: #ea580c;
}

/* Desktop padding for albums and featured content */
@media (min-width: 1024px) {
    .media-collection-section {
        padding-right: 24px;
    }
    
    .featured-audio-section {
        margin-right: 24px;
    }
    
    .albums-section {
        margin-right: 24px;
    }
}

/* Responsive adjustments for featured audio */
@media (max-width: 768px) {
    .featured-audio-content {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .featured-audio-info {
        align-self: flex-start;
        width: 100%;
    }
    
    .featured-audio-right-section {
        width: 100%;
        justify-content: space-between;
        align-self: flex-start;
    }
    
    .featured-audio-meta {
        max-width: none;
        flex: 1;
        overflow: visible;
    }
    
    .featured-audio-play-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

/* Video Player Metadata Styles */
.video-metadata {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.video-category {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-600);
    text-transform: capitalize;
    background: var(--primary-50);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}

/* Featured metadata category uses chip system */
.featured-metadata-category {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    text-transform: capitalize;
    /* Default colors if no category class matched */
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

.video-performer {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-style: italic;
}

.video-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.video-tag {
    font-size: 0.75rem;
    padding: 0.125rem 0.375rem;
    border-radius: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    display: inline-block;
    background: var(--secondary-100);
    color: var(--secondary-700);
    border: 1px solid var(--secondary-200);
}

.video-tag[data-tag="recording"] {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border-color: #1d4ed8;
}

.video-tag[data-tag="midi"] {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-color: #059669;
}

.video-tag[data-tag="live"] {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border-color: #dc2626;
}

.video-tag[data-tag="multi-track"] {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    border-color: #7c3aed;
}

/* Responsive video metadata */
@media (max-width: 768px) {
    .video-metadata {
        gap: 0.375rem;
    }
    
    .video-category {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
    }
    
    .video-performer {
        font-size: 0.8rem;
    }
    
    .video-tags {
        gap: 0.2rem;
    }
    
    .video-tag {
        font-size: 0.7rem;
        padding: 0.1rem 0.3rem;
    }
}