<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">/**
 * Artist Credits Component
 * 
 * Interactive artist pills with photos and links
 * Used in: song-player.php, mixtape-player.php, video-player.php
 * 
 * Features:
 * - Responsive layout with flex wrap
 * - Touch-optimized for mobile
 * - Smooth hover animations
 * - Fallback image support
 * - Multi-artist support (up to 9)
 */

/* Artist Credits Container */
.artist-credits {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

/* Individual Artist Pill */
.artist-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent; /* Remove mobile tap highlight */
    user-select: none; /* Prevent text selection on tap */
}

/* Hover State */
.artist-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Active/Touch State */
.artist-item:active {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.15);
}

/* Artist Photo */
.artist-pic {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05); /* Fallback bg */
}

/* Artist Name Text */
.artist-item span {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Desktop Responsive (1024px+) - Explicit left alignment */
@media (min-width: 1024px) {
    .artist-credits {
        justify-content: flex-start; /* Explicit left alignment */
    }
}

/* Tablet Responsive (768px - 1024px) */
@media (max-width: 1024px) {
    .artist-credits {
        gap: 12px;
        margin-bottom: 22px;
    }
    
    .artist-item {
        padding: 7px 14px;
        font-size: 0.85rem;
    }
    
    .artist-pic {
        width: 28px;
        height: 28px;
    }
}

/* Mobile Responsive (max-width: 768px) */
@media (max-width: 768px) {
    .artist-credits {
        justify-content: center;
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .artist-item {
        position: relative; /* FIX: Added to properly align ::before pseudo-element touch target */
        padding: 6px 12px;
        font-size: 0.8rem;
        /* Enhanced touch target */
        min-height: 44px; /* iOS recommended touch target */
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .artist-pic {
        width: 25px;
        height: 25px;
        border-width: 1.5px;
    }
    
    /* Optimize for touch - larger tap area */
    .artist-item::before {
        content: '';
        position: absolute;
        top: -8px;
        right: -8px;
        bottom: -8px;
        left: -8px;
    }
    
    /* Touch feedback */
    .artist-item:active {
        background: rgba(255, 255, 255, 0.25);
        transform: scale(0.98);
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .artist-credits {
        gap: 8px;
        margin-bottom: 18px;
    }
    
    .artist-item {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
    
    .artist-pic {
        width: 22px;
        height: 22px;
    }
    
    .artist-item span {
        max-width: 100px;
    }
}

/* Loading State */
.artist-credits.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Empty State (hidden) */
.artist-credits:empty,
.artist-credits[style*="display: none"] {
    display: none !important;
    margin: 0;
}

/* Multi-Artist Layout Optimization */
.artist-credits:has(.artist-item:nth-child(5)) {
    /* When 5+ artists, optimize spacing */
    gap: 10px;
}

.artist-credits:has(.artist-item:nth-child(7)) {
    /* When 7+ artists, smaller pills */
    .artist-item {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .artist-pic {
        width: 25px;
        height: 25px;
    }
}

/* Dark Theme Support (future) */
@media (prefers-color-scheme: dark) {
    .artist-item {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .artist-item:hover {
        background: rgba(255, 255, 255, 0.2);
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .artist-item {
        border: 1px solid white;
    }
    
    .artist-pic {
        border-width: 3px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .artist-item {
        transition: none;
    }
    
    .artist-item:hover {
        transform: none;
    }
}

/* Focus State for Keyboard Navigation */
.artist-item:focus {
    outline: 2px solid var(--accent-color, #dc3545);
    outline-offset: 2px;
}

.artist-item:focus:not(:focus-visible) {
    outline: none;
}

/* Animation for Dynamic Updates */
@keyframes fadeInPill {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.artist-item.new {
    animation: fadeInPill 0.3s ease-out;
}

/* Specific Player Adjustments */
/* Video player - bottom slide modal compatibility */
.video-player .artist-credits {
    position: relative;
    z-index: 1;
}

/* Mixtape player - DJ credits styling */
.mixtape-player .artist-credits {
    /* Can add mixtape-specific styles if needed */
}

/* Single artist responsive behavior */
@media (max-width: 1023px) {
    .song-player .artist-credits:has(.artist-item:only-child) {
        /* Center single artist pill on mobile/tablet only */
        justify-content: center;
    }
}

/* Desktop single artist - explicit left alignment */
@media (min-width: 1024px) {
    .song-player .artist-credits:has(.artist-item:only-child) {
        /* Explicit left alignment on desktop */
        justify-content: flex-start;
    }
}</pre></body></html>