body {
    background: #111;
    color: #fff;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
}

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

h1 {
    color: #fff;
    text-align: center;
    margin-bottom: 30px;
}

h2 {
    color: #fff;
    margin-top: 0;
    font-size: 1.2em;
}

h3 {
    color: #fff;
    margin-top: 0;
    font-size: 1.4em;
}

.genre-selector {
    text-align: center;
/*    margin: 30px 0; */
}

.genre-selector select {
    appearance: none;
    background: #222 url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23ffffff%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E") no-repeat right 1em top 50%;
    background-size: .65em auto;
    border: 2px solid #333;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-size: 1em;
    line-height: 1.5;
    padding: 12px 45px 12px 20px;
    width: auto;
    min-width: 250px;
    transition: all 0.2s ease;
}

.genre-selector select:hover {
    background-color: #2a2a2a;
    border-color: #afafaf;
}

.genre-selector select:focus {
    border-color: #afafaf;
    box-shadow: 0 0 0 2px rgba(0, 255, 150, 0.2);
    outline: none;
}

.genre-selector select option {
    background: #222;
    color: #fff;
    padding: 12px;
}

.genre-selector select option:hover {
    background: #2a2a2a;
}

/* Gemeinsame Styles für Label und Artist Sections */
.artist-name {
    color: rgba(255, 255, 255);
}

.label-section, .artist-section {
    background: #222;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.label-header {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
}

.artist-header {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
}

.artist-info-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.artist-info-header img {
    width: 60px;
    height: 60px;
    border-radius: 5px;
    object-fit: cover;
    opacity: 0.8;
}

.artist-info-header h3 {
    margin: 0;
    color: #fff;
    font-size: 1.6em;
}

.label-info-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.label-info-header img {
    width: 60px;
    height: 60px;
    border-radius: 5px;
    object-fit: cover;
    opacity: 0.8;
}

.label-info-header .label-name {
    margin: 0;
    color: #fff;
    font-size: 1.6em;
}

.position {
    font-size: 1.2em;
    min-width: 42px;
}

/* Stats Bereich */
.label-stats, .artist-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-left: 62px;  /* Einheitlicher Abstand */
    padding: 0px 0;     /* Einheitliches Padding */
}

/* Stats Items */
.total-points {
    padding: 4px 12px;
    color: #888;
    font-size: 0.9em;
    background: rgba(0, 0, 0, 0.2);  /* Leichter Hintergrund */
    border-radius: 4px;              /* Abgerundete Ecken */
    transition: background 0.2s;      /* Smooth Hover-Effekt */
}

.total-points:hover {
    background: rgba(0, 0, 0, 0.5);  /* Dunklerer Hintergrund beim Hover */
}

/* Track Liste */
.track-list {
    margin: 15px 0 0 50px;
}

.track-item {
    display: flex;
    gap: 15px;
    padding: 8px;
    border-bottom: 1px solid #333;
    align-items: center;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: background-color 0.2s;
}

.track-item:hover {
    background: rgba(71, 71, 71, 0.5);
    border-radius: 4px;
}

.track-item:last-child {
    border-bottom: none;
}

.track-position {
    min-width: 60px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(200, 200, 200);
}

.track-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

/* Track Cover Bild neben Track in Rankings */
.track-cover {
    width: 25px;
    height: 25px;
    border-radius: 4px;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.track-name {
    color: rgba(225, 225, 225);
    font-weight: 600;
}

.track-points {
    font-size: 0.85em;
    color: #888;
    font-weight: 500;
}

.mix-name {
    color: rgba(200, 200, 200);
}

.label-name {
    color: rgba(175, 175, 175);
    font-size: 1.0em;
}


/* Button Styles */
.back-button, .button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1a1a1a;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    border: 2px solid #333;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 20px;
}

.back-button:hover, .button:hover {
    background: #222;
    border-color: #afafaf;
    color: #afafaf;
    transform: translateY(-2px);
}

.back-button:active, .button:active {
    transform: translateY(1px);
}

/* Zurück-Button Pfeil */
.back-button::before {
    content: '←';
    margin-right: 8px;
    transition: transform 0.2s ease;
}

/* Ansehen-Button Pfeil */
.button::after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.back-button:hover::before {
    transform: translateX(-4px);
}

.button:hover::after {
    transform: translateX(4px);
}

/* Position Changes */
.position-change {
    display: inline-block;
    width: 20px;
    text-align: center;
    font-size: 0.8em;
    font-weight: 500;
}

.up { 
    color: #00ff96; 
    transform: scale(0.75);
}

.down { 
    color: #ff4444;
    transform: scale(0.75) rotate(180deg);
}

.same { 
    color: #888;
    font-size: 1.2em;
}

.new { 
    color: #ffd700; 
    transform: scale(0.75) rotate(90deg);
}

/* Spotify Integration */
.spotify-link {
    color: #888;
    font-size: 0.9em;
    text-decoration: none;
}

.artist-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.artist-image {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    object-fit: cover;
    opacity: 0.8;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.artist-info h3 {
    margin: 0;
    color: #fff;
    font-size: 1.8em;
}

/* Analysis Cards */
.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.analysis-card, .footer  {
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 8px;
    padding: 25px;
    transition: all 0.2s ease;
}

.analysis-card:hover {
    transform: translateY(-5px);
    background: #222;
}

.analysis-card h3 {
    color: #fff;
    margin-top: 0;
    font-size: 1.4em;
}

.analysis-card p {
    color: #888;
    margin-bottom: 25px;
    line-height: 1.5;
}


/* Überschreibe die max-width für Buttons in Cards */
.analysis-card .button {
    max-width: none;
}

/* Mix Analysis Styles */
.mix-section {
    background: #222;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.mix-header {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
}

.mix-header h3 {
    margin: 0;
    color: rgb(205, 205, 205);
    font-size: 1em;
}

.mix-header-bold {
    margin: 0;
    color: rgb(255, 255, 255);
    font-size: 1.1em;
}

/* Track Liste in Mix Analysis */
.mix-analysis .track-list {
    margin: 15px 0 0 50px;
}

.mix-analysis .track-item {
    display: flex;
    gap: 15px;
    padding: 8px;
    border-bottom: 1px solid #333;
    align-items: center;
}

.mix-analysis .track-position {
    min-width: 60px;
    color: rgba(200, 200, 200);
}

.mix-analysis .track-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mix-analysis .track-name {
    flex: 1;
}

.mix-analysis .spotify-link {
    color: #888;
    font-size: 0.9em;
    text-decoration: none;
    display: inline-block;
}

.mix-analysis .spotify-link:hover {
    color: #00ff96;
}

.mix-analysis .mix-name {
    color: rgba(200, 200, 200);
}



/* Mix Analysis Styles */
.mix-analysis .track-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.mix-analysis .track-name {
    flex: 1;
}

/* Animated Background Card */
.analysis-card.animated-bg {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.analysis-card.animated-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: -1;
    animation: fadeBackground 5s infinite;
}

@keyframes fadeBackground {
    0%, 20% {
        opacity: 0.15;
        transform: scale(1);
    }
    5%, 15% {
        opacity: 0.3;
        transform: scale(1.1);
    }
}

.artist-stats .stat {
    display: flex;
    align-items: center;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;

}

.artist-stats .stat .label {
    color: rgb(136, 136, 136);
    align-items: center;
    padding: 4px 8px;
}

.artist-stats .stat .value-position {
    padding: 4px 8px;
    color: rgb(200, 200, 200);
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
}


/* Entferne das flex-wrap von artist-stats */
.artist-stats {
    display: flex;
    gap: 15px;
    margin-left: 62px;
    padding: 0px 0;
    align-items: center;
}


.label-stats .stat {
    display: flex;
    align-items: center;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.label-stats .stat .label {
    color: rgb(136, 136, 136);
    align-items: center;
    padding: 4px 8px;
}

.label-stats .stat .value-position {
    padding: 4px 8px;
    color: rgb(200, 200, 200);
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
}

.label-stats {
    display: flex;
    gap: 15px;
    margin-left: 62px;
    padding: 0px 0;
    align-items: center;
}

/* Anpassung des Abstands zum Stats-Bereich */
.label-stats {
    margin-top: 5px;
}

/* Playlist Styles */
.genre-section {
    background: rgb(34, 34, 34);
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 15px;
}



/* Füge diese neuen Styles hinzu */
.analysis-card.animated-bg.new-tracks-bg::before {
    background-image: var(--random-bg);
    opacity: 0.2;
    transition: opacity 0.3s;
}

.analysis-card.animated-bg.new-tracks-bg:hover::before {
    opacity: 0.3;
}


/* Spotify Embed Styling */
.spotify-embed {
    margin: 20px 0 40px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background: #1a1a1a;
    padding: 10px;
}

.spotify-embed iframe {
    display: block;
    width: 100%;
    height: 352px;
    border: none;
    border-radius: 8px;
}

/* No Tracks Message */
.no-tracks {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 40px 20px;
    background: #1a1a1a;
    border-radius: 8px;
    border: 2px solid #333;
}

/* Label Trends Styling */

.genre-selector, .time-selector {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.genre-selector label, .time-selector label {
    color: #888;
    font-size: 0.9em;
    font-weight: 600;
    text-align: left;
    min-width: 80px;
}

.genre-selector select, .time-selector select {
    background: #333;
    color: #fff;
    border: 1px solid #555;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 0.9em;
    flex: 1;
    min-width: 180px;
    max-width: 300px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.genre-selector select:focus, .time-selector select:focus {
    outline: none;
    border-color: #555;
}

.trend-section {
    margin: 30px 0;
}

.trend-section h2 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.4em;
}

.trend-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
    max-width: 100%;
}

@media (max-width: 768px) {
    .trend-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .trend-grid {
        grid-template-columns: 1fr;
    }
}

.trend-card {
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.trend-card:hover {
    transform: translateY(-2px);
    background: #222;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}


.trend-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.label-image {
    width: 40px;
    height: 40px;
    border-radius: 6px; 
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.trend-card h3 {
    color: #fff;
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
    flex: 1;
}

.trend-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trend-stats .stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid #333;
}

.trend-stats .stat:last-child {
    border-bottom: none;
}

.trend-stats .label {
    color: #888;
    font-size: 0.9em;
}

.trend-stats .value {
    color: #fff;
    font-weight: 600;
}

.trend-stats .value.positive {
    color: #00ff96;
}

.trend-stats .value.negative {
    color: #ff4444;
}

.trend-stats .value:first-child {
    font-weight: 700;
    font-size: 1.2em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .genre-selector, .time-selector {
        justify-content: flex-start;
        margin-bottom: 15px;
    }
    
    .genre-selector label, .time-selector label {
        min-width: 70px;
        text-align: left;
    }
    
    .genre-selector select, .time-selector select {
        min-width: 200px;
        max-width: 320px;
        flex: 0 1 auto;
    }
}

/* Beta-Status für Label Trends */
.analysis-card.label-trends-bg {
    border: 3px solid transparent;
    background: linear-gradient(#1a1a1a, #1a1a1a) padding-box,
                repeating-linear-gradient(
                    45deg,
                    #ffcc00 0px,
                    #ffcc00 8px,
                    #000000 8px,
                    #000000 16px
                ) border-box;
}

/* Artist Position Change Indicators - same as track indicators */

.artist-stats .stat .value {
    padding: 4px 8px;
    color: rgb(200, 200, 200);
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
}

