.music-hero {
    height: 60vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('photos/Tali pics(57) echterlicht.webp') no-repeat center 35%;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.music-visualizer-large {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.visualizer-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wave-container {
    position: absolute;
    width: 200px;
    height: 200px;
}

.wave {
    position: absolute;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: waveExpand 3s ease-in-out infinite;
    will-change: transform, opacity;
}

.wave-1 {
    width: 100px;
    height: 100px;
    top: 50px;
    left: 50px;
    animation-delay: 0s;
}

.wave-2 {
    width: 150px;
    height: 150px;
    top: 25px;
    left: 25px;
    animation-delay: 1s;
}

.wave-3 {
    width: 200px;
    height: 200px;
    top: 0;
    left: 0;
    animation-delay: 2s;
}

.frequency-bars {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 3px;
    align-items: end;
    height: 100px;
}

.freq-bar {
    width: 6px;
    background: var(--accent-color);
    border-radius: 3px;
    height: 20px;
    animation: freqBar 1.5s ease-in-out infinite;
    will-change: height;
}

.freq-bar:nth-child(1) { animation-delay: 0s; }
.freq-bar:nth-child(2) { animation-delay: 0.1s; }
.freq-bar:nth-child(3) { animation-delay: 0.2s; }
.freq-bar:nth-child(4) { animation-delay: 0.3s; }
.freq-bar:nth-child(5) { animation-delay: 0.4s; }
.freq-bar:nth-child(6) { animation-delay: 0.5s; }
.freq-bar:nth-child(7) { animation-delay: 0.6s; }
.freq-bar:nth-child(8) { animation-delay: 0.7s; }
.freq-bar:nth-child(9) { animation-delay: 0.8s; }
.freq-bar:nth-child(10) { animation-delay: 0.9s; }

.music-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
}

.music-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.music-subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s both;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.featured-tracks {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.tracks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.track-card {
    background: var(--bg-primary);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    will-change: transform;
}

.track-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

.track-card.playing {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.track-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #000;
}

.track-image iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.track-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    will-change: transform;
}

.track-card:hover .track-image img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.play-btn {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    will-change: transform;
}

.play-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.1);
    color: white;
    text-decoration: none;
}

.track-info {
    padding: 1.5rem;
}

.track-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.track-year {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.track-description {
    color: #000000;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.track-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Audio Player Section - Replaces Spotify */
.audio-player-section {
    padding: 6rem 0;
    background: var(--bg-primary);
    position: relative;
}

.audio-player-container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-large);
    border: 1px solid var(--border-color);
}

/* Player Header */
.audio-player-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.audio-track-image {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: var(--shadow-medium);
    flex-shrink: 0;
}

.audio-track-info {
    flex: 1;
    min-width: 0;
}

.audio-track-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.audio-track-artist {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Visualizer */
.audio-visualizer-container {
    flex: 1;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-tertiary);
    position: relative;
}

#audio-visualizer {
    width: 100%;
    height: 100%;
    display: block;
}

/* Player Controls */
.audio-player-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.audio-control-btn {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: var(--accent-color);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    will-change: transform;
}

.audio-control-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.1);
}

.audio-control-btn:active {
    transform: scale(0.95);
}

.audio-control-btn.active {
    background: var(--accent-hover);
    box-shadow: 0 0 0 4px rgba(34, 139, 34, 0.2);
}

.audio-control-btn.play-pause {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
    background: var(--gradient-primary);
}

.audio-control-btn.play-pause:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 20px rgba(34, 139, 34, 0.4);
}

.audio-control-btn.repeat-none i::after {
    content: '';
}

.audio-control-btn.repeat-all {
    position: relative;
}

.audio-control-btn.repeat-one {
    position: relative;
}

/* Progress Bar */
.audio-progress-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.audio-time-display {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
    min-width: 45px;
    text-align: center;
}

.audio-progress-bar {
    flex: 1;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.audio-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
    position: relative;
}

.audio-progress::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.audio-progress-bar:hover .audio-progress::after {
    opacity: 1;
}

/* Volume Control */
.audio-volume-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.audio-volume-slider {
    flex: 1;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.audio-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.audio-volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: var(--accent-hover);
}

.audio-volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.audio-volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    background: var(--accent-hover);
}

.audio-volume-display {
    font-size: 0.75rem;
    color: var(--text-muted);
    min-width: 35px;
    text-align: right;
}

/* Playlist */
.audio-playlist {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--bg-tertiary);
}

.audio-playlist::-webkit-scrollbar {
    width: 8px;
}

.audio-playlist::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

.audio-playlist::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

.audio-playlist::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.playlist-item:hover {
    background: var(--bg-tertiary);
    transform: translateX(4px);
}

.playlist-item.active {
    background: var(--accent-color);
    color: white;
}

.playlist-item.active .playlist-item-title,
.playlist-item.active .playlist-item-artist {
    color: white;
}

.playlist-item.playing {
    box-shadow: 0 0 0 2px var(--accent-color);
}

.playlist-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.playlist-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.playlist-item-playing {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.playlist-item-info {
    flex: 1;
    min-width: 0;
}

.playlist-item-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-item-artist {
    font-size: 0.875rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-item-duration {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .audio-player-header {
        flex-direction: column;
        text-align: center;
    }
    
    .audio-track-image {
        width: 100px;
        height: 100px;
    }
    
    .audio-visualizer-container {
        height: 60px;
    }
    
    .audio-control-btn {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    
    .audio-control-btn.play-pause {
        width: 56px;
        height: 56px;
        font-size: 1.3rem;
    }
    
    .playlist-item {
        padding: 0.75rem;
    }
    
    .playlist-item-image {
        width: 50px;
        height: 50px;
    }
}

/* Dark mode adjustments */
[data-theme="dark"] .audio-player-container {
    background: var(--bg-secondary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .audio-visualizer-container {
    background: var(--bg-primary);
}

/* Spotify Section - Keep for fallback */
.spotify-section {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.spotify-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.spotify-players {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    gap: 2rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.spotify-players::-webkit-scrollbar {
    display: none;
}

.spotify-player {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    min-width: 100%;
    flex-shrink: 0;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-color);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 100 !important;
    transition: all 0.3s ease;
    opacity: 1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    will-change: transform;
}

.scroll-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.scroll-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.scroll-btn:disabled,
.scroll-btn[style*="pointer-events: none"] {
    opacity: 0.5;
    cursor: not-allowed;
}

.scroll-left {
    left: -70px;
}

.scroll-right {
    right: -70px;
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.player-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.player-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.player-controls {
    display: flex;
    gap: 1rem;
}

.control-btn {
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
}

.control-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.1);
}

.play-pause {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
}

.progress-container {
    margin-bottom: 1.5rem;
}

.progress-bar {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.progress {
    height: 100%;
    background: var(--accent-color);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s ease;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.volume-bar {
    flex: 1;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    cursor: pointer;
}

.volume-progress {
    height: 100%;
    background: var(--accent-color);
    border-radius: 2px;
    width: 70%;
}

.spotify-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.spotify-link {
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    will-change: transform;
}

.spotify-link:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.song-stories {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

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

.story-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.story-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    opacity: 0.3;
}

.story-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.story-item:nth-child(1)::before {
    background-image: url('photos/fighter logo.jpg');
}

.story-item:nth-child(2)::before {
    background-image: url('photos/Tali pics(36) eurovision 2025 Not included.jpg');
}

.story-item:nth-child(3)::before {
    background-image: url('photos/Ocean logo.jpg');
}

.story-item:nth-child(4)::before {
    background-image: url('photos/Tali pics(29).jpg');
}

.story-item .story-image,
.story-item .story-content {
    position: relative;
    z-index: 2;
}

[data-theme="light"] .story-item::after {
    background: rgba(255, 255, 255, 0.7);
}

[data-theme="light"] .story-item {
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.story-image {
    border-radius: 15px;
    overflow: hidden;
}

.story-image img {
    width: 100%;
    height: 470px;
    object-fit: cover;
}

.story-item:nth-child(1) .story-image img {
    object-position: 50% center;
}

.story-item:nth-child(3) .story-image img {
    object-position: 30% center;
}

.story-content h3 {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #000000;
}

.story-content p {
    font-size: 1.2rem;
    color: #000000;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.story-meta {
    display: flex;
    gap: 2rem;
    font-size: 1.1rem;
    color: #000000;
}

@keyframes waveExpand {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes freqBar {
    0%, 100% {
        height: 20px;
    }
    50% {
        height: 80px;
    }
}

@media (max-width: 768px) {
    .music-title {
        font-size: 2.5rem;
    }

    .tracks-grid {
        grid-template-columns: 1fr;
    }

    .story-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .story-image {
        max-width: 200px;
        margin: 0 auto;
    }

    .spotify-links {
        flex-direction: column;
    }

    .player-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

