/* Spotify-inspired Premium Design - FINAL VERSION */
.radio-station-charts {
    background: linear-gradient(135deg, #191414 0%, #1a1a1a 100%);
    color: #ffffff;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    margin: 30px 0;
    border: 1px solid rgba(255,255,255,0.1);
}

.charts-header {
    background: rgba(0,0,0,0.9);
    padding: 30px;
    text-align: center;
    border-bottom: 3px solid #1DB954;
    position: relative;
}

.charts-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #1DB954, transparent);
}

.charts-header h2 {
    font-size: 3em;
    margin: 0;
    background: linear-gradient(45deg, #1DB954, #1ed760);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -1px;
}

.chart-week {
    font-size: 1.3em;
    opacity: 0.9;
    margin-top: 10px;
    font-weight: 300;
    color: #1DB954;
}

.charts-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 600px;
}

/* LINKE SPALTE - TOP 1-10 (EDEL & ELEGANT) */
.charts-left-column {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    padding: 25px;
    border-right: 2px solid rgba(255,255,255,0.1);
    position: relative;
    backdrop-filter: blur(10px);
}



/* RECHTE SPALTE - CHARTS 11-30 (SCHICK & KOMPAKT) */
.charts-right-column {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    padding: 25px;
    position: relative;
    backdrop-filter: blur(10px);
}



/* ÜBERSCHRIFTEN */
.charts-left-column h3,
.charts-right-column h3 {
    text-align: center;
    margin: 0 0 25px 0;
    padding: 15px;
    background: rgba(29, 185, 84, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(29, 185, 84, 0.3);
    font-size: 1.4em;
    font-weight: 600;
}

/* ===== PLATZ 1-10 - OPTIMIERTES DESIGN ===== */
.chart-entry.premium-entry {
    display: grid;
    grid-template-columns: 80px 70px 1fr 180px;
    grid-template-rows: auto auto;
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(255,255,255,0.03);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 130px;
    align-items: start;
}

.chart-entry.premium-entry:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(29, 185, 84, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* Premium Position - Elegant OHNE KRONEN */
.premium-position {
    grid-column: 1;
    grid-row: 1 / span 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.6em;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 15px 10px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.15);
    height: 100%;
    min-height: 80px;
}

.position-number {
    font-size: 1.8em;
    font-weight: 900;
    background: linear-gradient(135deg, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Spezielles Styling für Platz 1-3 - OHNE KRONEN */
.chart-entry.premium-entry[data-position="1"] {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 165, 0, 0.05) 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.chart-entry.premium-entry[data-position="1"] .premium-position {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.1));
    border-color: rgba(255, 215, 0, 0.4);
}

.chart-entry.premium-entry[data-position="1"] .position-number {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.chart-entry.premium-entry[data-position="2"] {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.1) 0%, rgba(160, 160, 160, 0.05) 100%);
    border: 2px solid rgba(192, 192, 192, 0.3);
}

.chart-entry.premium-entry[data-position="2"] .premium-position {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.15), rgba(160, 160, 160, 0.1));
    border-color: rgba(192, 192, 192, 0.4);
}

.chart-entry.premium-entry[data-position="2"] .position-number {
    background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.chart-entry.premium-entry[data-position="3"] {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.1) 0%, rgba(176, 141, 87, 0.05) 100%);
    border: 2px solid rgba(205, 127, 50, 0.3);
}

.chart-entry.premium-entry[data-position="3"] .premium-position {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.15), rgba(176, 141, 87, 0.1));
    border-color: rgba(205, 127, 50, 0.4);
}

.chart-entry.premium-entry[data-position="3"] .position-number {
    background: linear-gradient(135deg, #CD7F32, #B08D57);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Cover für Premium */
.premium-cover-container {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.premium-cover {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
}

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

.premium-cover.placeholder {
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 1.5em;
}

/* Song Info - Kompakter */
.premium-info {
    grid-column: 3;
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    min-height: 80px;
}

.song-main-info {
    margin-bottom: 10px;
}

.premium-artist {
    font-weight: 700;
    font-size: 1.0em;
    color: #1DB954;
    margin-bottom: 5px;
    line-height: 1.2;
    word-wrap: break-word;
}

.premium-title {
    font-size: 1em;
    opacity: 0.9;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 5px;
    word-wrap: break-word;
}

.premium-label {
    font-size: 0.8em;
    opacity: 0.7;
    font-style: italic;
    color: rgba(255,255,255,0.8);
    margin-bottom: 8px;
}

/* Stats Row - NEBENEINANDER statt untereinander */
.premium-stats {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    align-items: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.05);
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.stat-icon {
    font-size: 1em;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-weight: 600;
    font-size: 0.85em;
    white-space: nowrap;
}

.stat-label {
    font-size: 0.7em;
    opacity: 0.7;
    margin-top: 1px;
    white-space: nowrap;
}

/* Actions - Premium Buttons */
.premium-actions {
    grid-column: 4;
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    gap: 10px;
    min-width: 160px;
    height: 100%;
    min-height: 80px;
}

.premium-vote-btn {
    background: linear-gradient(45deg, #1DB954, #1ed760);
    border: none;
    color: white;
    padding: 10px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(29, 185, 84, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 130px;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9em;
}

.premium-vote-btn:hover:not(:disabled):not(.voted) {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(29, 185, 84, 0.4);
}

.premium-vote-btn.voted {
    background: #666 !important;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.premium-music-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.links-title {
    font-size: 0.75em;
    opacity: 0.7;
    margin-bottom: 3px;
    text-align: right;
}

.links-container {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.music-link.premium-spotify,
.music-link.premium-apple,
.music-link.premium-amazon {
    color: white;
    padding: 5px 8px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.7em;
    display: flex;
    align-items: center;
    gap: 3px;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.music-link.premium-spotify:hover { 
    background: #1DB954; 
    color: white;
}
.music-link.premium-apple:hover { 
    background: #FA243C; 
    color: white;
}
.music-link.premium-amazon:hover { 
    background: #FF9900; 
    color: white;
}

/* ===== PLATZ 11-30 - SCHICKES KOMPAKT DESIGN ===== */
.chart-entry.compact-entry {
    display: grid;
    grid-template-columns: 50px 60px 1fr auto;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 15px;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}

.chart-entry.compact-entry:hover {
    background: rgba(255,255,255,0.06);
    transform: translateX(3px);
    border-color: rgba(29, 185, 84, 0.2);
}

/* Position für Kompakt */
.chart-position.compact-position {
    font-weight: 700;
    font-size: 1.1em;
    text-align: center;
    background: rgba(255,255,255,0.08);
    padding: 8px;
    border-radius: 8px;
    min-width: 40px;
}

/* Cover für Kompakt */
.chart-cover.compact-cover {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
}

.chart-cover.compact-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chart-cover.compact-cover.placeholder {
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 1.2em;
}

/* Info für Kompakt */
.chart-info.compact-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.track-details {
    display: flex;
    flex-direction: column;
}

.chart-artist {
    font-weight: 600;
    font-size: 0.90em;
    color: #1DB954;
}

.chart-title {
    font-size: 0.85em;
    opacity: 0.9;
}

.chart-meta.compact-meta {
    display: flex;
    gap: 10px;
    align-items: center;
}

.chart-votes {
    background: rgba(29, 185, 84, 0.15);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    border: 1px solid rgba(29, 185, 84, 0.2);
}

.vote-count {
    font-weight: bold;
    color: #1DB954;
}

.chart-weeks.compact-weeks {
    background: rgba(255,255,255,0.1);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    border: 1px solid rgba(255,255,255,0.1);
}

.chart-trend {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
}

.trend-up {
    background: rgba(29, 185, 84, 0.15);
    color: #1DB954;
    border: 1px solid rgba(29, 185, 84, 0.2);
}

.trend-down {
    background: rgba(226, 33, 52, 0.15);
    color: #E22134;
    border: 1px solid rgba(226, 33, 52, 0.2);
}

.trend-same {
    background: rgba(136, 136, 136, 0.15);
    color: #888;
    border: 1px solid rgba(136, 136, 136, 0.2);
}

/* Actions für Kompakt */
.chart-actions.compact-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 100px;
}

.vote-btn.compact-vote-btn {
    background: linear-gradient(45deg, #1DB954, #1ed760);
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 80px;
    justify-content: center;
}

.vote-btn.compact-vote-btn:hover:not(:disabled):not(.voted) {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(29, 185, 84, 0.3);
}

.vote-btn.compact-vote-btn.voted {
    background: #666 !important;
    cursor: not-allowed;
}

.music-links.compact-links {
    display: flex;
    gap: 6px;
}

.music-link {
    color: white;
    opacity: 0.7;
    transition: all 0.3s ease;
    padding: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    font-size: 1em;
}

.music-link:hover {
    opacity: 1;
    transform: scale(1.1);
}

.music-link.spotify:hover { 
    background: #1DB954; 
    color: white;
}
.music-link.apple-music:hover { 
    background: #FA243C; 
    color: white;
}
.music-link.amazon-music:hover { 
    background: #FF9900; 
    color: white;
}

/* Footer & Actions */
.charts-actions {
    text-align: center;
    padding: 30px;
    background: rgba(0,0,0,0.7);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.download-pdf {
    background: linear-gradient(45deg, #E22134, #ff1f44);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(226, 33, 52, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.download-pdf:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(226, 33, 52, 0.4);
}

.charts-footer {
    text-align: center;
    padding: 20px;
    background: rgba(0,0,0,0.5);
    font-size: 0.9em;
    opacity: 0.8;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .charts-columns {
        grid-template-columns: 1fr;
    }
    
    .charts-left-column {
        border-right: none;
        border-bottom: 2px solid rgba(255,255,255,0.1);
    }
    
    /* Mobile Anpassungen für Premium */
    .chart-entry.premium-entry {
        grid-template-columns: 60px 60px 1fr;
        grid-template-rows: auto auto auto auto;
        gap: 10px;
        min-height: auto;
        padding: 15px;
    }
    
    .premium-position {
        grid-column: 1;
        grid-row: 1;
        min-height: 60px;
    }
    
    .premium-cover-container {
        grid-column: 2;
        grid-row: 1;
    }
    
    .premium-info {
        grid-column: 1 / span 3;
        grid-row: 2;
        margin-left: 0;
        margin-top: 0;
        padding: 8px 0;
        min-height: auto;
    }
    
    .premium-stats {
        grid-column: 1 / span 3;
        grid-row: 3;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .premium-actions {
        grid-column: 1 / span 3;
        grid-row: 4;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 10px;
        min-height: auto;
        height: auto;
    }
    
    .premium-music-links {
        align-items: center;
    }
    
    .links-title {
        text-align: center;
    }
    
    .links-container {
        justify-content: center;
    }
    
    /* Mobile Anpassungen für Kompakt */
    .chart-entry.compact-entry {
        grid-template-columns: 40px 50px 1fr;
        grid-template-rows: auto auto;
        gap: 8px;
        padding: 12px;
    }
    
    .chart-actions.compact-actions {
        grid-column: 1 / span 3;
        grid-row: 2;
        flex-direction: row;
        justify-content: space-between;
        margin-top: 8px;
    }
}

/* Message Styling */
.charts-message {
    padding: 15px;
    text-align: center;
    margin-bottom: 20px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1em;
}

.success-message {
    background: rgba(29, 185, 84, 0.2);
    color: #1DB954;
    border: 2px solid rgba(29, 185, 84, 0.3);
}

.error-message {
    background: rgba(226, 33, 52, 0.2);
    color: #E22134;
    border: 2px solid rgba(226, 33, 52, 0.3);
}

/* Loading Animation */
.charts-loading {
    text-align: center;
    padding: 60px;
    font-size: 1.2em;
}

.charts-loading::after {
    content: "";
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { content: "🔄 Charts laden"; }
    25% { content: "🔄 Charts laden."; }
    50% { content: "🔄 Charts laden.."; }
    75% { content: "🔄 Charts laden..."; }
}

/* Empty State */
.charts-empty {
    text-align: center;
    padding: 60px;
    opacity: 0.7;
}

.charts-empty::before {
    content: "🎵";
    font-size: 3em;
    display: block;
    margin-bottom: 15px;
}