/* TuneTwist Dark Glassmorphism Theme - Seine Musik Page */
/* Basiert auf derclub.css */

/* Reset & Base für main content */
main * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #ff006e;
    --secondary: #00ff88;
    --accent: #3b82f6;
    --dark: #0a0a0a;
    --light: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --glass: rgba(255, 255, 255, 0.05);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    min-height: 100vh;
    line-height: 1.6;
}

/* Header Overrides für Dark Theme */
header {
    background-color: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1000;
}

header .logo img {
    filter: brightness(1.2);
}

header nav ul li a {
    color: var(--light) !important;
    opacity: 0.9;
    transition: all 0.3s ease;
}

header nav ul li a:hover {
    color: var(--primary) !important;
    opacity: 1;
}

/* Music Page Wrapper */
.music-page-wrapper {
    background-color: var(--dark);
    color: var(--light);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    background: rgba(255, 0, 110, 0.3);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: all 0.1s ease;
    z-index: 10000;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    background: rgba(0, 255, 136, 0.2);
    border: 1px solid rgba(0, 255, 136, 0.5);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 9999;
}

/* Loading State */
.loading-container {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.loading-container.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-wave {
    display: flex;
    gap: 5px;
}

.loading-wave div {
    width: 10px;
    height: 60px;
    background: var(--gradient);
    border-radius: 5px;
    animation: wave 1.2s ease-in-out infinite;
}

.loading-wave div:nth-child(2) { animation-delay: 0.1s; }
.loading-wave div:nth-child(3) { animation-delay: 0.2s; }
.loading-wave div:nth-child(4) { animation-delay: 0.3s; }
.loading-wave div:nth-child(5) { animation-delay: 0.4s; }

@keyframes wave {
    0%, 100% { transform: scaleY(0.5); }
    50% { transform: scaleY(1); }
}

/* Hero Section für Musik */
.music-hero-section {
    min-height: 50vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 100px 20px 80px;
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.1) 0%, rgba(0, 255, 136, 0.05) 100%);
}

.music-hero-section .hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(10, 10, 10, 0.5) 70%);
}

.music-hero-section .hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

.music-hero-section h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { filter: brightness(1) drop-shadow(0 0 20px var(--primary)); }
    50% { filter: brightness(1.2) drop-shadow(0 0 40px var(--primary)); }
}

.music-hero-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    color: var(--light);
}

/* Songs Container */
.songs-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px 100px;
}

/* Artist Section */
.artist-section {
    margin-bottom: 60px;
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.artist-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-bottom: 20px;
}

.artist-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
}

/* Songs Grid */
.songs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

/* Song Card */
.song-card {
    background: linear-gradient(135deg, var(--glass) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    animation: fadeIn 0.6s ease-out forwards;
}

.song-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.song-card:hover {
    transform: translateY(-10px);
    border-color: transparent;
    box-shadow: 0 20px 40px rgba(255, 0, 110, 0.3);
}

.song-card:hover::before {
    opacity: 0.5;
}

/* Song Cover */
.song-cover-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.song-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.song-card:hover .song-cover {
    transform: scale(1.1);
}

/* Song Overlay */
.song-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.song-card:hover .song-overlay {
    opacity: 1;
}

.play-btn-overlay {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 0, 110, 0.5);
}

.play-btn-overlay:hover {
    transform: scale(1.1);
}

/* Song Info */
.song-info {
    padding: 20px;
}

.song-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-artist {
    font-size: 1rem;
    opacity: 0.7;
    color: var(--light);
}

/* Song Controls */
.song-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0 20px 20px;
}

.control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: var(--gradient);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 0, 110, 0.5);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 100px 20px;
    opacity: 0.7;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.empty-state p {
    font-size: 1.2rem;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95) 0%, rgba(30, 30, 30, 0.9) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

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

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--gradient);
    transform: scale(1.1);
}

.modal-body {
    padding: 30px;
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-info-grid {
    display: grid;
    gap: 15px;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-label {
    font-weight: 600;
    opacity: 0.7;
}

.info-value {
    text-align: right;
}

.modal-actions {
    display: flex;
    justify-content: center;
}

.btn-modal {
    padding: 12px 30px;
    background: var(--gradient);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-modal:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 0, 110, 0.5);
}

/* Now Playing Bar */
.now-playing-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.98) 0%, rgba(30, 30, 30, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.now-playing-bar.active {
    transform: translateY(0);
}

.now-playing-content {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.now-playing-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 0 0 300px;
}

.now-playing-cover {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.now-playing-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.now-playing-artist {
    font-size: 0.85rem;
    opacity: 0.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.now-playing-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.now-playing-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.now-playing-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.now-playing-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.main-play-btn {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    box-shadow: 0 5px 20px rgba(255, 0, 110, 0.5);
}

.main-play-btn:hover {
    box-shadow: 0 8px 30px rgba(255, 0, 110, 0.7);
}

.now-playing-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 600px;
}

.time-current,
.time-total {
    font-size: 0.8rem;
    opacity: 0.7;
    min-width: 45px;
}

.progress-container {
    flex: 1;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2.5px;
    cursor: pointer;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: var(--gradient);
    border-radius: 2.5px;
    width: 0%;
    transition: width 0.1s linear;
}

.now-playing-extras {
    flex: 0 0 150px;
    display: flex;
    justify-content: flex-end;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-slider {
    width: 100px;
    height: 5px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2.5px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    background: var(--gradient);
    border-radius: 50%;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background: var(--gradient);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Particles */
.particle {
    position: fixed;
    pointer-events: none;
    opacity: 0;
    animation: particleFloat 4s ease-out forwards;
}

@keyframes particleFloat {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(0);
    }
    100% {
        opacity: 0;
        transform: translate(var(--x), var(--y)) scale(1);
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer Override */
footer {
    background-color: #1a1a1a !important;
    color: var(--light) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .songs-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .music-hero-section {
        min-height: 40vh;
        padding: 80px 20px 60px;
    }
    
    .music-hero-section h1 {
        font-size: 2rem;
    }
    
    .artist-title {
        font-size: 2rem;
    }
    
    .songs-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 20px;
    }
    
    .song-cover-container {
        height: 180px;
    }
    
    .now-playing-content {
        gap: 15px;
    }
    
    .now-playing-info {
        flex: 0 0 200px;
    }
    
    .now-playing-extras {
        display: none;
    }
}

@media (max-width: 480px) {
    .songs-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .song-info {
        padding: 15px;
    }
    
    .song-title {
        font-size: 1rem;
    }
    
    .song-controls {
        padding: 0 15px 15px;
    }
    
    .control-btn {
        width: 35px;
        height: 35px;
    }
    
    .now-playing-bar {
        padding: 10px 15px;
    }
    
    .now-playing-info {
        flex: 0 0 150px;
    }
    
    .now-playing-cover {
        width: 45px;
        height: 45px;
    }
    
    .now-playing-btn {
        width: 35px;
        height: 35px;
    }
    
    .main-play-btn {
        width: 45px;
        height: 45px;
    }
    
    .time-current,
    .time-total {
        display: none;
    }
    
    .cursor,
    .cursor-follower {
        display: none;
    }
}


/* Search Container */
.search-container {
    margin-top: 40px;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-box {
    position: relative;
    background: linear-gradient(135deg, var(--glass) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 0, 110, 0.1), 0 15px 40px rgba(255, 0, 110, 0.3);
    transform: translateY(-2px);
}

.search-icon {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1.2rem;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 15px 50px 15px 60px;
    background: transparent;
    border: none;
    color: var(--light);
    font-size: 1.1rem;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-clear {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: var(--light);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-clear:hover {
    background: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.search-stats {
    margin-top: 15px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
    height: 20px;
    transition: all 0.3s ease;
}

/* Search Highlight Effect */
@keyframes highlight {
    0% { background: rgba(255, 0, 110, 0.2); }
    100% { background: transparent; }
}

.song-card.search-highlight {
    animation: highlight 1s ease-out;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .search-container {
        margin-top: 30px;
    }
    
    .search-box {
        margin: 0 10px;
    }
    
    .search-input {
        padding: 12px 45px 12px 50px;
        font-size: 1rem;
    }
    
    .search-icon {
        left: 20px;
        font-size: 1rem;
    }
    
    .search-clear {
        width: 30px;
        height: 30px;
        right: 15px;
    }
}