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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    /* Mysterious dark background */
    background-color: #0a0a15;
    background-image:
        /* Mysterious fog/mist effect */
        radial-gradient(ellipse at 20% 30%, rgba(75, 0, 130, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(25, 25, 112, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 70%, rgba(72, 61, 139, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(75, 0, 130, 0.08) 0%, transparent 40%),
        /* Deep shadows */
        radial-gradient(circle at 10% 50%, rgba(25, 25, 112, 0.2) 0%, transparent 30%),
        radial-gradient(circle at 90% 60%, rgba(72, 61, 139, 0.15) 0%, transparent 35%),
        /* Subtle texture */
        repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(138, 43, 226, 0.02) 3px, rgba(138, 43, 226, 0.02) 6px),
        /* Base dark gradient */
        linear-gradient(135deg, #0a0a15 0%, #1a1a2e 25%, #16213e 50%, #0a0a15 100%);
    background-attachment: fixed;
    color: #c8d3f5;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    animation: mysterySlow 20s ease-in-out infinite;
}

@keyframes mysterySlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(0.95); }
}

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

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(10, 10, 30, 0.7);
    border-radius: 15px;
    border: 2px solid #6a5acd;
    box-shadow:
        0 0 40px rgba(138, 43, 226, 0.4),
        0 0 80px rgba(75, 0, 130, 0.2),
        inset 0 0 30px rgba(138, 43, 226, 0.1);
    animation: headerPulse 4s ease-in-out infinite;
}

@keyframes headerPulse {
    0%, 100% {
        box-shadow:
            0 0 40px rgba(138, 43, 226, 0.4),
            0 0 80px rgba(75, 0, 130, 0.2),
            inset 0 0 30px rgba(138, 43, 226, 0.1);
    }
    50% {
        box-shadow:
            0 0 50px rgba(138, 43, 226, 0.5),
            0 0 100px rgba(75, 0, 130, 0.3),
            inset 0 0 40px rgba(138, 43, 226, 0.15);
    }
}

h1 {
    font-size: 3rem;
    color: #b8a4f3;
    text-shadow:
        2px 2px 8px rgba(0, 0, 0, 0.9),
        0 0 20px rgba(138, 43, 226, 0.6),
        0 0 40px rgba(147, 112, 219, 0.4),
        0 0 60px rgba(138, 43, 226, 0.2);
    margin-bottom: 10px;
    letter-spacing: 3px;
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow:
            2px 2px 8px rgba(0, 0, 0, 0.9),
            0 0 20px rgba(138, 43, 226, 0.6),
            0 0 40px rgba(147, 112, 219, 0.4),
            0 0 60px rgba(138, 43, 226, 0.2);
    }
    50% {
        text-shadow:
            2px 2px 8px rgba(0, 0, 0, 0.9),
            0 0 30px rgba(138, 43, 226, 0.8),
            0 0 50px rgba(147, 112, 219, 0.5),
            0 0 70px rgba(138, 43, 226, 0.3);
    }
}

.subtitle {
    font-size: 1.2rem;
    color: #9d8fd9;
    font-style: italic;
    text-shadow:
        0 0 10px rgba(138, 43, 226, 0.5),
        0 0 20px rgba(147, 112, 219, 0.3);
}

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

.playlist-card {
    background: rgba(15, 15, 35, 0.8);
    padding: 15px;
    border-radius: 15px;
    border: 2px solid #6a5acd;
    box-shadow:
        0 5px 25px rgba(0, 0, 0, 0.7),
        0 0 30px rgba(138, 43, 226, 0.2),
        inset 0 0 20px rgba(138, 43, 226, 0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.playlist-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.playlist-card:hover::before {
    opacity: 1;
}

.playlist-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.8),
        0 0 50px rgba(138, 43, 226, 0.5),
        0 0 80px rgba(147, 112, 219, 0.3),
        inset 0 0 30px rgba(138, 43, 226, 0.1);
    border-color: #9370db;
}

.playlist-label {
    color: #b8a4f3;
    font-size: 1.3rem;
    margin-bottom: 12px;
    text-align: center;
    text-shadow:
        2px 2px 6px rgba(0, 0, 0, 0.9),
        0 0 15px rgba(138, 43, 226, 0.6),
        0 0 30px rgba(147, 112, 219, 0.4);
    font-weight: bold;
    letter-spacing: 2px;
    padding: 10px;
    background: rgba(10, 10, 30, 0.6);
    border-radius: 8px;
    border: 1px solid #6a5acd;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.3);
    position: relative;
    z-index: 1;
}

footer {
    text-align: center;
    padding: 20px;
    background: rgba(10, 10, 30, 0.7);
    border-radius: 15px;
    border: 2px solid #6a5acd;
    font-size: 1.1rem;
    color: #b8a4f3;
    box-shadow:
        0 0 30px rgba(138, 43, 226, 0.3),
        inset 0 0 20px rgba(138, 43, 226, 0.1);
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
}

/* Responsive design */
@media (max-width: 1400px) {
    .playlist-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

    h1 {
        font-size: 2.5rem;
    }
}

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

    h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }
}

/* Flickering Torches */
.torch {
    position: fixed;
    width: 60px;
    height: 80px;
    z-index: 1000;
    pointer-events: none;
}

.torch-top-left {
    top: 20px;
    left: 20px;
}

.torch-top-right {
    top: 20px;
    right: 20px;
}

.torch-bottom-left {
    bottom: 20px;
    left: 20px;
}

.torch-bottom-right {
    bottom: 20px;
    right: 20px;
}

.flame {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    background: linear-gradient(180deg,
        #4b0082 0%,
        #6a5acd 20%,
        #8a2be2 40%,
        #9370db 60%,
        #ba55d3 80%,
        transparent 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    box-shadow:
        0 0 25px #8a2be2,
        0 0 45px #9370db,
        0 0 65px rgba(138, 43, 226, 0.6);
    animation: flicker 3s ease-in-out infinite;
    filter: blur(1px);
}

.flame::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 30px;
    background: linear-gradient(180deg,
        #ba55d3 0%,
        #9370db 30%,
        #8a2be2 60%,
        transparent 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: flicker 2s ease-in-out infinite reverse;
    filter: blur(0.5px);
}

.flame::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 20px;
    background: rgba(218, 112, 214, 0.9);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: flicker 1.5s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(186, 85, 211, 0.8);
}

@keyframes flicker {
    0%, 100% {
        transform: translateX(-50%) scaleY(1) scaleX(1);
        opacity: 1;
    }
    25% {
        transform: translateX(-48%) scaleY(1.05) scaleX(0.95);
        opacity: 0.9;
    }
    50% {
        transform: translateX(-52%) scaleY(0.95) scaleX(1.05);
        opacity: 0.95;
    }
    75% {
        transform: translateX(-50%) scaleY(1.02) scaleX(0.98);
        opacity: 0.92;
    }
}

/* Torch stand */
.torch::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 60px;
    background: linear-gradient(180deg, #2d2d4a 0%, #1a1a2e 100%);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
}

/* Mysterious floating particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(138, 43, 226, 0.3), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(147, 112, 219, 0.3), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(138, 43, 226, 0.2), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(147, 112, 219, 0.2), transparent),
        radial-gradient(2px 2px at 90% 60%, rgba(138, 43, 226, 0.25), transparent),
        radial-gradient(1px 1px at 33% 90%, rgba(147, 112, 219, 0.2), transparent);
    background-size: 200% 200%;
    background-position: 0% 0%;
    pointer-events: none;
    z-index: 999;
    animation: particleFloat 30s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes particleFloat {
    0%, 100% {
        background-position: 0% 0%;
        opacity: 0.6;
    }
    50% {
        background-position: 100% 100%;
        opacity: 0.4;
    }
}

/* Mysterious vignette effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
    z-index: -1;
}

/* Responsive torch visibility */
@media (max-width: 768px) {
    .torch-bottom-left,
    .torch-bottom-right {
        display: none;
    }

    .torch {
        width: 40px;
        height: 60px;
    }

    .flame {
        width: 20px;
        height: 35px;
    }
}
