:root {
    --primary-color: #000000;
    --secondary-color: #0a0a0a;
    --accent-color: #8b0000; /* Blood Red */
    --text-color: #e0e0e0;
    --heading-font: 'Cinzel', serif;
    --body-font: 'Lato', sans-serif;
    --player-height: 70px;
    --player-bg: #111;
}

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

body {
    background-color: var(--primary-color);
    color: var(--text-color);
    font-family: var(--body-font);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: var(--player-height); /* Prevent footer from being hidden */
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(139, 0, 0, 0.5);
}

/* Header / Hero */
header {
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.8)), url('assets/img/bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    z-index: -1;
    filter: grayscale(80%) contrast(120%);
    animation: slowZoom 20s infinite alternate;
}

nav {
    position: fixed; /* Changed from absolute to fixed */
    top: 0;
    width: 100%;
    padding: 20px 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent);
    z-index: 100;
    display: flex;
    justify-content: center; /* Center content by default */
    align-items: center;
    transition: background 0.3s ease, padding 0.3s ease;
}

nav.scrolled {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
    padding: 10px 0; /* Slightly smaller on scroll */
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-color);
    position: absolute;
    right: 20px;
    top: 15px;
    z-index: 101;
    transition: transform 0.3s ease;
}

.menu-toggle:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    font-family: var(--heading-font);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav ul li a:hover::after {
    width: 100%;
}

.hero-content {
    z-index: 1;
    padding: 20px;
    opacity: 0; /* For animation */
    animation: fadeIn 2s ease-in-out forwards 0.5s;
}

.main-logo {
    max-width: 800px;
    width: 90%;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(0,0,0,0.8));
    animation: pulse 4s infinite ease-in-out;
}

h1 {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    margin-bottom: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-color);
    text-shadow: 2px 2px 4px #000;
    opacity: 0;
    animation: slideUp 1s ease-out forwards 1.5s;
}

.release-date {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #ccc;
    opacity: 0;
    animation: slideUp 1s ease-out forwards 2s;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid var(--text-color);
    color: var(--text-color);
    font-family: var(--heading-font);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    opacity: 0;
    animation: slideUp 1s ease-out forwards 2.5s;
    background: transparent;
    cursor: pointer;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    z-index: -1;
    transition: left 0.3s ease;
}

.cta-button:hover::before {
    left: 0;
}

.cta-button:hover {
    color: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.6);
}

/* Sections */
.content-section {
    padding: 100px 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.content-section.visible {
    opacity: 1;
    transform: translateY(0);
}

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

h2 {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-bottom: 1px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 10px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.dark-bg {
    background-color: var(--secondary-color);
}

/* Bio */
.bio-text {
    font-size: 1.1rem;
    text-align: justify;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.bio-text p {
    margin-bottom: 25px;
}

/* Members */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    text-align: center;
}

.member-card {
    background: #0f0f0f;
    padding: 25px;
    border: 1px solid #222;
    transition: all 0.4s ease;
    position: relative;
}

.member-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.member-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(139, 0, 0, 0.2);
}

.member-card:hover::after {
    opacity: 1;
}

.member-img-container {
    width: 100%;
    height: 350px; /* Taller images */
    overflow: hidden;
    margin-bottom: 25px;
    border-bottom: 3px solid #222;
    transition: border-color 0.4s ease;
}

.member-card:hover .member-img-container {
    border-color: var(--accent-color);
}

.member-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(120%);
    transition: transform 0.5s ease, filter 0.5s ease;
}

.member-card:hover .member-img-container img {
    filter: grayscale(0%) contrast(110%);
    transform: scale(1.05);
}

.member-card h3 {
    font-family: var(--heading-font);
    font-size: 1.6rem;
    margin-bottom: 5px;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.member-card:hover h3 {
    color: #fff;
}

.member-card .role {
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.member-card .desc {
    font-size: 0.95rem;
    color: #bbb;
}

/* Music */
.album-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    align-items: flex-start;
}

.album-art {
    flex: 1;
    min-width: 300px;
    text-align: center;
    position: relative;
}

.album-art img {
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    margin-bottom: 25px;
    transition: transform 0.5s ease;
}

.album-art:hover img {
    transform: scale(1.02);
}

.album-info p {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #aaa;
    border-bottom: 1px solid #222;
    padding-bottom: 5px;
    display: inline-block;
    width: 100%;
    text-align: left;
}

.album-info p strong {
    color: var(--text-color);
    margin-right: 10px;
}

.album-tracks {
    flex: 2;
    min-width: 300px;
}

.album-desc {
    margin-bottom: 40px;
    font-style: italic;
    color: #ccc;
    font-size: 1.05rem;
    border-left: 3px solid var(--accent-color);
    padding-left: 20px;
    background: linear-gradient(to right, rgba(139,0,0,0.05), transparent);
    padding: 20px;
}

.tracklist-preview {
    text-align: center;
    padding: 20px;
    background: #0f0f0f;
    border: 1px solid #222;
    border-radius: 4px;
}

.tracklist-preview p {
    margin-bottom: 20px;
    color: #888;
}

/* Fixed Player */
.fixed-player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--player-height);
    background-color: var(--player-bg);
    border-top: 1px solid #333;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.8);
    transition: transform 0.3s ease;
    transform: translateY(0); /* Always visible */
}

.fixed-player.hidden {
    /* Class kept for logic if needed, but currently unused for hiding */
    transform: translateY(100%); 
}

.player-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 20px;
    position: relative;
}

.progress-container {
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: 4px;
    background: #333;
    cursor: pointer;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: var(--accent-color);
    transition: width 0.1s linear;
}

.progress-container:hover .progress-bar {
    background: #ff0000; /* Brighter on hover */
}

.player-controls-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.control-btn {
    background: none;
    border: none;
    color: #ccc;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    color: var(--accent-color);
}

.control-btn.play {
    font-size: 1.8rem;
    color: var(--text-color);
}

.player-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 2;
    justify-content: center;
}

#player-art {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border: 1px solid #333;
}

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

#player-track-title {
    font-weight: bold;
    color: var(--text-color);
    font-size: 0.95rem;
}

#player-artist {
    font-size: 0.8rem;
    color: #888;
}

.player-controls-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    justify-content: flex-end;
}

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

.vol-icon {
    font-size: 1.2rem;
}

#volume-slider {
    width: 80px;
    accent-color: var(--accent-color);
    cursor: pointer;
}

#expand-btn {
    font-size: 1.5rem;
    transform: rotate(0deg);
    transition: transform 0.3s;
}

/* Expanded Player View */
.expanded-player {
    position: fixed;
    bottom: var(--player-height);
    right: 0;
    width: 100%; /* Default full width for mobile or just wide */
    max-width: 500px; /* Limit width on desktop */
    height: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--accent-color);
    border-left: 1px solid #333;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    z-index: 999;
}

.expanded-player.open {
    height: 60vh; /* Takes up 60% of screen height */
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #888;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
}

.close-btn:hover {
    color: var(--accent-color);
}

.expanded-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px;
    overflow-y: auto;
}

.expanded-playlist, .expanded-lyrics {
    margin-bottom: 20px;
}

.expanded-playlist h3, .expanded-lyrics h3 {
    font-family: var(--heading-font);
    color: var(--accent-color);
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

#playlist-ul {
    list-style: none;
}

.playlist-item {
    padding: 10px;
    border-bottom: 1px solid #222;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    justify-content: space-between;
}

.playlist-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.playlist-item.active {
    background: rgba(139, 0, 0, 0.2);
    border-left: 3px solid var(--accent-color);
}

.playlist-item.active .item-title {
    color: var(--accent-color);
    font-weight: bold;
}

.item-duration {
    color: #666;
    font-size: 0.8rem;
}

#lyrics-display {
    white-space: pre-wrap;
    font-family: var(--body-font);
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.8;
    text-align: center;
    padding: 10px;
    background: #050505;
    border: 1px solid #222;
}

.no-lyrics {
    font-style: italic;
    color: #666;
}

/* Contacts */
.contacts-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contacts-container p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #ccc;
}

.contact-link {
    display: inline-block;
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 40px;
    font-weight: bold;
    position: relative;
}

.contact-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.contact-link:hover::after {
    width: 100%;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #aaa;
    transition: all 0.3s ease;
}

.social-icon svg {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    color: #ff0000; /* YouTube Red */
}

.social-icon:hover svg {
    transform: scale(1.2);
    fill: #ff0000;
}

.social-icon span {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
footer {
    padding: 50px 20px;
    text-align: center;
    background: #000;
    border-top: 1px solid #1a1a1a;
    font-size: 0.9rem;
    color: #555;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { filter: drop-shadow(0 0 10px rgba(0,0,0,0.8)); transform: scale(1); }
    50% { filter: drop-shadow(0 0 25px rgba(139,0,0,0.4)); transform: scale(1.02); }
    100% { filter: drop-shadow(0 0 10px rgba(0,0,0,0.8)); transform: scale(1); }
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        justify-content: flex-end; /* Align toggle to right */
    }

    nav ul {
        flex-direction: column;
        background: rgba(0,0,0,0.95);
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
    }

    nav.active ul {
        right: 0;
    }
    
    .album-layout {
        flex-direction: column;
    }

    /* Fixed Player Mobile */
    .player-info {
        display: none; /* Hide info on very small screens or rearrange */
    }
    
    .player-controls-left {
        flex: 2;
        justify-content: flex-start;
    }

    .player-controls-right {
        flex: 1;
    }

    #volume-slider {
        display: none; /* Hide volume slider on mobile */
    }

    .expanded-player {
        max-width: 100%;
        bottom: var(--player-height);
    }
    
    .expanded-player.open {
        height: calc(100vh - var(--player-height)); /* Full screen minus player */
    }
}

@media (min-width: 769px) {
    .player-info {
        display: flex;
    }
}
