/* Live Ticker Styles */
.live-ticker {
    background: transparent;
    color: #999;
    padding: 8px 0;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.ticker-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    position: relative;
}

.ticker-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 150px;
    height: 100%;
    background: linear-gradient(to right, rgba(245, 240, 232, 1) 0%, rgba(245, 240, 232, 1) 90%, transparent 100%);
    z-index: 3;
    pointer-events: none;
}

.ticker-label {
    background: rgba(153, 153, 153, 0.2);
    color: #999;
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: normal;
    font-size: 14px;
    position: absolute;
    left: 0;
    z-index: 4;
    flex-shrink: 0;
}

.ticker-text {
    animation: scroll-left 90s linear infinite;
    font-size: 14px;
    font-weight: normal;
    color: #999;
    padding-left: 120px;
    z-index: 1;
}

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

.ticker-text:hover {
    animation-play-state: paused;
}

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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, rgba(245, 240, 232, 0.9), rgba(232, 220, 198, 0.8));
    min-height: 100vh;
    padding: 20px;
}

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

.header {
    text-align: center;
    margin-bottom: 30px;
    color: #8b7762;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.firebase-status {
    text-align: center;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 10px;
    font-weight: bold;
}

.firebase-connected {
    background: rgba(144, 169, 144, 0.3);
    color: #2d5016;
    border: 1px solid rgba(119, 153, 141, 0.5);
}

.firebase-error {
    background: rgba(205, 133, 133, 0.3);
    color: #8b0000;
    border: 1px solid rgba(188, 143, 143, 0.5);
}

.firebase-config-section {
    background: rgba(255, 248, 220, 0.9);
    border: 2px solid rgba(255, 165, 0, 0.3);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.firebase-config-section h2 {
    color: #d2691e;
    margin-bottom: 20px;
    text-align: center;
}

.config-step {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #d2691e;
}

.config-step h3 {
    color: #8b4513;
    margin-bottom: 10px;
}

.config-step ol {
    margin-left: 20px;
}

.config-step li {
    margin-bottom: 8px;
    color: #654321;
}

.config-input-section {
    background: rgba(245, 240, 232, 0.5);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.config-input-section h4 {
    color: #8b4513;
    margin-bottom: 15px;
}

.firebase-config-inputs {
    display: grid;
    gap: 15px;
    margin-bottom: 20px;
}

.login-section, .admin-panel {
    background: rgba(250, 247, 242, 0.9);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(139, 119, 101, 0.1);
    animation: slideUp 0.5s ease-out;
    border: 1px solid rgba(200, 185, 156, 0.3);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-form {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
    justify-content: center;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #8b7762;
}

input[type="text"], input[type="url"], textarea, select {
    padding: 12px;
    border: 1px solid rgba(200, 185, 156, 0.5);
    border-radius: 15px;
    font-size: 16px;
    transition: all 0.3s ease;
    min-width: 200px;
    background: rgba(255, 253, 250, 0.8);
}

input[type="text"]:focus, input[type="url"]:focus, textarea:focus, select:focus {
    border-color: rgba(181, 164, 139, 0.7);
    outline: none;
    transform: scale(1.02);
    background: rgba(255, 255, 255, 0.9);
}

.btn {
    padding: 12px 25px;
    background: linear-gradient(45deg, rgba(181, 164, 139, 0.8), rgba(160, 134, 118, 0.9));
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 3px 10px rgba(181, 164, 139, 0.2);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(181, 164, 139, 0.3);
    background: linear-gradient(45deg, rgba(181, 164, 139, 0.9), rgba(160, 134, 118, 1));
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    background: linear-gradient(45deg, rgba(144, 169, 144, 0.8), rgba(119, 153, 141, 0.9));
}

.btn-primary:hover {
    background: linear-gradient(45deg, rgba(144, 169, 144, 0.9), rgba(119, 153, 141, 1));
}

.btn-danger {
    background: linear-gradient(45deg, rgba(205, 133, 133, 0.8), rgba(188, 143, 143, 0.9));
}

.btn-success {
    background: linear-gradient(45deg, rgba(144, 169, 144, 0.8), rgba(119, 153, 141, 0.9));
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 15px;
}

/* Main Navigation Styles */
.main-navigation {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.team-card {
    background: rgba(250, 247, 242, 0.8);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 6px 20px rgba(139, 119, 101, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(200, 185, 156, 0.3);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 119, 101, 0.15);
    border-color: rgba(181, 164, 139, 0.5);
}

.team-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.team-icon {
    font-size: 2rem;
    margin-right: 15px;
    padding: 10px;
    background: linear-gradient(45deg, rgba(181, 164, 139, 0.7), rgba(160, 134, 118, 0.8));
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-icon img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.team-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #8b7762;
}

.song-item {
    background: rgba(255, 253, 250, 0.7);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid rgba(181, 164, 139, 0.6);
    box-shadow: 0 3px 10px rgba(181, 164, 139, 0.08);
}

.song-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.song-cover {
    flex-shrink: 0;
}

.song-cover img {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

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

.song-details {
    flex: 1;
    min-width: 0;
}

.song-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.song-title {
    font-weight: bold;
    color: #8b7762;
    font-size: 1.1rem;
}

.song-stats {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #a08676;
}

.audio-player {
    margin: 15px 0;
}

.audio-player audio {
    width: 100%;
    border-radius: 10px;
}

.rating-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.star-rating {
    display: flex;
    gap: 2px;
}

.star {
    font-size: 1.5rem;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
}

.star:hover, .star.active {
    color: #ffd700;
    transform: scale(1.1);
}

.comment-box {
    width: 100%;
    margin: 10px 0;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(200, 185, 156, 0.4);
    resize: vertical;
    min-height: 60px;
    background: rgba(255, 253, 250, 0.8);
}

.user-rating-display {
    background: rgba(181, 164, 139, 0.1);
    padding: 10px;
    border-radius: 10px;
    margin: 10px 0;
    border-left: 3px solid rgba(181, 164, 139, 0.5);
}

.admin-section {
    margin-top: 20px;
    padding: 20px;
    background: rgba(181, 164, 139, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(200, 185, 156, 0.3);
}

.admin-form {
    display: grid;
    gap: 15px;
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.stat-card {
    background: rgba(250, 247, 242, 0.8);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(139, 119, 101, 0.1);
    border: 1px solid rgba(200, 185, 156, 0.3);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: rgba(181, 164, 139, 0.9);
}

.stat-label {
    color: #8b7762;
    margin-top: 5px;
}

.hidden {
    display: none;
}

.user-info {
    background: rgba(181, 164, 139, 0.2);
    padding: 15px;
    border-radius: 15px;
    color: #8b7762;
    text-align: center;
    margin-bottom: 20px;
    border: 1px solid rgba(200, 185, 156, 0.3);
    backdrop-filter: blur(5px);
}

.dashboard-team-card {
    background: linear-gradient(135deg, rgba(181, 164, 139, 0.6), rgba(160, 134, 118, 0.7));
    border-radius: 20px;
    padding: 30px;
    color: white;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(139, 119, 101, 0.2);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(200, 185, 156, 0.3);
}

.dashboard-team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.dashboard-team-card:hover::before {
    left: 100%;
}

.dashboard-team-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(181, 164, 139, 0.3);
    border-color: rgba(181, 164, 139, 0.5);
}

.dashboard-team-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    display: block;
}

.dashboard-team-name {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.dashboard-team-stats {
    font-size: 0.9rem;
    opacity: 0.9;
}

.team-management {
    background: rgba(181, 164, 139, 0.15);
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    border: 1px solid rgba(200, 185, 156, 0.3);
}

.team-management-item {
    background: rgba(250, 247, 242, 0.9);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(200, 185, 156, 0.3);
    transition: all 0.3s ease;
}

.team-management-item:hover {
    background: rgba(245, 240, 232, 1);
    border-color: rgba(181, 164, 139, 0.5);
}

.team-management-item.editing {
    background: rgba(255, 248, 220, 1);
    border-color: rgba(210, 180, 140, 0.7);
}

.team-edit-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex: 1;
}

.team-edit-input {
    padding: 8px;
    border: 1px solid rgba(181, 164, 139, 0.5);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
}

.team-edit-name {
    flex: 1;
    min-width: 150px;
}

.team-edit-icon {
    width: 80px;
}

.team-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.team-info-icon {
    font-size: 1.8rem;
    padding: 8px;
    background: linear-gradient(45deg, rgba(181, 164, 139, 0.3), rgba(160, 134, 118, 0.4));
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-info-icon img {
    width: 29px;
    height: 29px;
    border-radius: 50%;
    object-fit: cover;
}

.team-info-details h4 {
    margin: 0;
    color: #8b7762;
    font-size: 1.1rem;
}

.team-info-stats {
    font-size: 0.9rem;
    color: #a08676;
    margin-top: 2px;
}

.team-actions {
    display: flex;
    gap: 10px;
}

.song-management {
    background: rgba(250, 247, 242, 0.8);
    padding: 20px;
    border-radius: 15px;
    margin: 10px 0;
    border-left: 3px solid rgba(181, 164, 139, 0.6);
}

.export-section {
    margin: 20px 0;
    text-align: center;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* ====== ALBUM VIEW STYLES ====== */

/* Album Cover Container */
.album-cover-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.album-cover-placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(181, 164, 139, 0.3), rgba(160, 134, 118, 0.4));
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 15px 35px rgba(139, 119, 101, 0.2);
    border: 3px solid rgba(200, 185, 156, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.album-cover-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 48%, rgba(255, 255, 255, 0.1) 50%, transparent 52%);
    animation: vinyl-shine 3s ease-in-out infinite;
}

@keyframes vinyl-shine {
    0%, 100% { transform: translateX(-100%) rotate(-45deg); }
    50% { transform: translateX(100%) rotate(-45deg); }
}

.album-cover-placeholder:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 20px 40px rgba(139, 119, 101, 0.3);
    border-color: rgba(181, 164, 139, 0.6);
}

.album-cover-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.1));
}

.album-cover-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: #8b7762;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
    line-height: 1.4;
    max-width: 250px;
}

/* Album Info Section */
.album-info {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(250, 247, 242, 0.6);
    border-radius: 15px;
    border: 1px solid rgba(200, 185, 156, 0.3);
}

.album-title {
    font-size: 2.2rem;
    color: #8b7762;
    margin-bottom: 10px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
}

.album-subtitle {
    font-size: 1.1rem;
    color: #a08676;
    margin-bottom: 15px;
    font-style: italic;
}

.album-stats {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 0.9rem;
    color: #8b7762;
    flex-wrap: wrap;
}

/* Album Tracklist */
.album-tracklist {
    background: rgba(255, 253, 250, 0.8);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(139, 119, 101, 0.1);
    border: 1px solid rgba(200, 185, 156, 0.3);
    margin-bottom: 30px;
}

.tracklist-header {
    display: grid;
    grid-template-columns: 50px 60px 1fr 150px 120px;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(181, 164, 139, 0.15);
    border-radius: 10px;
    margin-bottom: 15px;
    font-weight: bold;
    color: #8b7762;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.track-number {
    text-align: center;
}

.track-play {
    text-align: center;
}

.track-title {
    text-align: left;
}

.track-team {
    text-align: center;
}

.track-rating {
    text-align: center;
}

/* Individual Track Items */
.album-track-item {
    display: grid;
    grid-template-columns: 50px 60px 1fr 150px 120px;
    gap: 15px;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    align-items: center;
    border: 1px solid transparent;
}

.album-track-item:hover {
    background: rgba(181, 164, 139, 0.1);
    border-color: rgba(181, 164, 139, 0.3);
    transform: translateX(5px);
}

.album-track-item.playing {
    background: rgba(144, 169, 144, 0.2);
    border-color: rgba(119, 153, 141, 0.5);
    box-shadow: 0 3px 10px rgba(144, 169, 144, 0.2);
}

.album-track-number {
    text-align: center;
    font-weight: bold;
    color: #8b7762;
    font-size: 1.1rem;
}

.album-track-play {
    text-align: center;
}

.album-play-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(45deg, rgba(181, 164, 139, 0.8), rgba(160, 134, 118, 0.9));
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(181, 164, 139, 0.3);
}

.album-play-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(181, 164, 139, 0.4);
    background: linear-gradient(45deg, rgba(181, 164, 139, 0.9), rgba(160, 134, 118, 1));
}

.album-play-button.playing {
    background: linear-gradient(45deg, rgba(144, 169, 144, 0.8), rgba(119, 153, 141, 0.9));
    animation: pulse 2s ease-in-out infinite;
}

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

.album-track-title {
    font-weight: bold;
    color: #8b7762;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-track-team {
    text-align: center;
    color: #a08676;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.album-track-team-icon {
    font-size: 1.2rem;
}

.album-track-team-icon img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.album-track-rating {
    text-align: center;
    color: #8b7762;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.album-track-rating-stars {
    color: #ffd700;
    font-size: 0.9rem;
}

.album-track-rating-count {
    color: #a08676;
    font-size: 0.8rem;
    margin-left: 5px;
}

/* Album Footer */
.album-footer {
    text-align: center;
    padding: 20px;
    background: rgba(181, 164, 139, 0.1);
    border-radius: 15px;
    color: #8b7762;
    font-style: italic;
    border: 1px solid rgba(200, 185, 156, 0.3);
}

/* Hidden Audio Elements for Album Tracks */
.album-audio-player {
    display: none;
}

/* ====== MOBILE RESPONSIVE OPTIMIZATIONS ====== */

@media (max-width: 768px) {
    /* General Mobile Improvements */
    body {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .login-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .input-group {
        width: 100%;
    }
    
    input[type="text"], input[type="url"] {
        min-width: unset;
        width: 100%;
    }

    .song-content {
        flex-direction: column;
        gap: 15px;
    }

    .song-cover img {
        width: 100px;
        height: 100px;
    }
    
    /* ENHANCED ALBUM MOBILE OPTIMIZATIONS */
    .album-cover-placeholder {
        width: 250px;
        height: 250px;
    }
    
    .album-title {
        font-size: 1.8rem;
    }
    
    .album-subtitle {
        font-size: 1rem;
    }
    
    .album-tracklist {
        padding: 15px;
    }
    
    /* Improved Tracklist Mobile Layout */
    .tracklist-header {
        grid-template-columns: 40px 50px 1fr 80px;
        gap: 8px;
        font-size: 0.8rem;
        padding: 12px 8px;
    }
    
    .album-track-item {
        grid-template-columns: 40px 50px 1fr 80px;
        gap: 8px;
        padding: 12px 8px;
    }
    
    /* Hide team column on mobile */
    .track-team {
        display: none;
    }
    
    .album-track-team {
        display: none;
    }
    
    /* Optimize track title on mobile */
    .album-track-title {
        font-size: 0.9rem;
        line-height: 1.3;
        white-space: normal; /* Allow wrapping */
        overflow: visible;
        text-overflow: unset;
        max-height: 2.6em; /* Limit to 2 lines */
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    
    .album-play-button {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .album-track-rating {
        flex-direction: column;
        gap: 2px;
    }
    
    .album-track-rating-stars {
        font-size: 0.8rem;
    }
    
    .album-track-rating-count {
        font-size: 0.7rem;
        margin-left: 0;
    }
    
    .album-stats {
        flex-direction: column;
        gap: 5px;
    }
    
    .main-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .album-cover-placeholder {
        width: 200px;
        height: 200px;
    }
    
    .album-cover-text {
        font-size: 1rem;
    }
    
    .album-title {
        font-size: 1.5rem;
    }
    
    .album-tracklist {
        padding: 10px;
    }
    
    /* Even more compact mobile layout */
    .tracklist-header {
        grid-template-columns: 30px 40px 1fr 60px;
        gap: 5px;
        padding: 8px 5px;
        font-size: 0.7rem;
    }
    
    .album-track-item {
        grid-template-columns: 30px 40px 1fr 60px;
        gap: 5px;
        padding: 8px 5px;
    }
    
    .album-track-number {
        font-size: 0.9rem;
    }
    
    .album-play-button {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .album-track-title {
        font-size: 0.8rem;
        line-height: 1.2;
    }
    
    .album-track-rating {
        font-size: 0.8rem;
    }
    
    .album-track-rating-stars {
        font-size: 0.7rem;
    }
    
    .album-track-rating-count {
        font-size: 0.6rem;
    }
}

/* ====== IMAGE LIGHTBOX MODAL ====== */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.image-modal.active {
    display: flex;
}

.image-modal img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 10000;
    transition: transform 0.2s ease;
}

.image-modal-close:hover {
    transform: scale(1.2);
}