/* crazoids_style_v2.css - Style V19 (Final Audio Player Patch) */

/* ===========================
   1. Global Variables & Reset
   =========================== */
:root {
    --color-bg: #1e1f20;           /* Charcoal Background */
    --color-text: #E3E3E3;         /* Light Grey Text */
    --color-link: #FFD700;         /* Gold Links */
    --color-link-hover: #FFFFFF;   /* White on hover */
    --color-white: #FFFFFF;
    --color-text-dark: #000000;
    --color-accent: #FFD700;       /* Gold Accent */
    --color-primary-dark: #121212; /* Darker Grey */
    --color-input-bg: #2b2b2b;     /* Form inputs */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-size: 16px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container { max-width: 900px; margin: 0 auto; padding: 0 20px; }
a { color: var(--color-link); text-decoration: none; }
a:hover { color: var(--color-link-hover);text-decoration: none; }
a:visited { color: #aaaaaa; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h5 { font-weight: bold; color: var(--color-white); margin-bottom: 0.8em; }
p { margin-bottom: 1.2em; }

/* ===========================
   2. Header & Navigation
   =========================== */
.global-header {
    background-color: rgba(0, 0, 0, 0.4);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.global-header .container {
    display: flex; justify-content: space-between; align-items: center;
}
.header-logo { width: 250px; height: auto; }
.main-nav { display: none !important; }
.hamburger-menu {
    display: block !important; background: none; border: none;
    color: var(--color-link); font-size: 1.8rem; cursor: pointer;
}
.mobile-menu {
    display: none; background-color: #151515; padding: 20px;
    text-align: center; border-bottom: 1px solid var(--color-link);
}
.mobile-menu.active { display: block; }
.mobile-menu nav ul li { list-style: none; margin-bottom: 15px; }
.mobile-menu nav a { font-size: 1.2rem; font-weight: bold; color: var(--color-white); }

/* ===========================
   3. Main Content Components
   =========================== */
main { padding: 30px 0; text-align: center; flex: 1; }
.content-col { text-align: left; }

.page-title {
    font-size: 1.8rem; font-weight: bold; color: var(--color-white);
    text-align: center; margin-bottom: 20px; text-transform: uppercase;
}

.tagline {
    font-size: 1.1rem; margin-bottom: 20px; color: #cccccc; text-align: center;
}

.button-primary {
    display: inline-block; background-color: var(--color-accent);
    color: var(--color-text-dark); padding: 12px 25px;
    text-decoration: none; font-size: 1.1rem; font-weight: bold;
    border-radius: 5px; margin-top: 20px; margin-bottom: 30px;
    transition: background-color 0.3s ease; text-transform: uppercase;
    border: none; cursor: pointer;
}
.button-primary:hover { background-color: var(--color-white); color: var(--color-text-dark); }

/* --- VIDEO WRAPPER --- */
.video-responsive-wrapper {
    position: relative; padding-bottom: 56.25%; height: 0;
    overflow: hidden; margin-bottom: 5px; border: 1px solid #444;
}
.video-responsive-wrapper iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}
.video-responsive-wrapper + p { margin-top: 0; margin-bottom: 40px; }

/* Quotes */
.quote-box {
    background-color: rgba(255, 255, 255, 0.05); padding: 20px; margin: 30px 0;
    border-left: 4px solid var(--color-link); text-align: center;
}
.quote-box h5 {
    font-size: 1.5rem; font-weight: normal; color: var(--color-link) !important;
    line-height: 1.3; margin-bottom: 10px;
}
.quote-citation { font-size: 0.9rem; margin: 0; color: var(--color-white) !important; }
.quote-citation a { color: var(--color-link) !important; text-decoration: none; }

/* ===========================
   4. Page Specifics
   =========================== */
.studio-content { text-align: left; }
.studio-content::after { content: ""; display: table; clear: both; }
.media-block { display: block; clear: both; margin-bottom: 40px; overflow: hidden; }
.media-image { margin-bottom: 15px; }
.media-image img { border: 1px solid #555; width: 100%; }
.media-text { display: block; }
.media-block-full { margin-bottom: 60px; clear: both; }

.song-menu-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 30px 0; }
.song-menu-item {
    background-color: rgba(255, 255, 255, 0.05); border: 1px solid #444;
    padding: 4px 10px; border-radius: 4px; font-size: 0.85rem; transition: all 0.3s ease;
}
.song-menu-item:hover { background-color: var(--color-link); border-color: var(--color-link); }
.song-menu-item:hover a { color: var(--color-text-dark); text-decoration: none; }
.song-menu-item a { font-weight: normal; display: block; color: #cccccc; }
.song-menu-item:has(a[href*="animals"]),
.song-menu-item:has(a[href*="one-life"]),
.song-menu-item:has(a[href*="temple-of-love"]) { display: none; }

/* ===========================
   5. Contact Form
   =========================== */
.contact-form {
    max-width: 600px; margin: 0 auto; text-align: left;
    background-color: rgba(255, 255, 255, 0.03); padding: 30px;
    border: 1px solid #333; border-radius: 5px;
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: bold; margin-bottom: 8px; color: var(--color-white); }
.form-group input, .form-group textarea {
    width: 100%; padding: 10px; font-size: 1rem; border: 1px solid #444;
    background-color: var(--color-input-bg); color: var(--color-white); border-radius: 4px;
}
.form-message-box {
    display: none; padding: 15px; margin-bottom: 20px; border-radius: 4px;
    font-weight: bold; text-align: center;
}
.form-message-box.visible { display: block; }
.form-message-box.error { background-color: #3e1b1b; color: #ff9999; border: 1px solid #cc0000; }
.form-message-box.success { background-color: #1b3e1b; color: #99ff99; border: 1px solid #006600; }

/* ===========================
   6. Lightbox
   =========================== */
.lightbox-modal {
    display: none; position: fixed; z-index: 1000; left: 0; top: 0;
    width: 100%; height: 100%; overflow: auto; background-color: rgba(0, 0, 0, 0.95);
}
.lightbox-modal.visible { display: flex; align-items: center; justify-content: center; }
.lightbox-content { margin: auto; display: block; max-width: 90%; max-height: 90%; border: 3px solid var(--color-white); }
.lightbox-close {
    position: absolute; top: 20px; right: 35px; color: var(--color-white);
    font-size: 40px; font-weight: bold; cursor: pointer;
}
.lightbox-close:hover { color: var(--color-link); }

/* ===========================
   7. Footer
   =========================== */
.global-footer {
    clear: both; padding: 30px 0; text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.9rem; margin-top: auto;
}
.footer-nav { margin-bottom: 20px; }
.footer-nav a { margin: 0 5px; color: #cccccc; }
.footer-nav a:hover { color: var(--color-link); }
.small-text { font-size: 0.8rem; color: #666666; }
.footer-top-link { display: none !important; }

.back-to-top {
    position: fixed; bottom: 30px; right: 30px;
    background-color: var(--color-accent); color: var(--color-text-dark);
    width: 50px; height: 50px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 1.5rem; text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5); z-index: 999;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease, transform 0.3s ease;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-5px); color: var(--color-text-dark); background-color: var(--color-white); }

/* ===========================
   8. SOCIAL ICONS
   =========================== */
.social-container {
    text-align: center; padding: 40px 0;
    background-color: #222222; border-top: 1px solid #333333;
}
.social-links { display: inline-flex; gap: 20px; list-style: none; padding: 0; margin: 0; }
.social-icon-link {
    display: flex; align-items: center; justify-content: center;
    width: 45px; height: 45px; border-radius: 50%;
    background-color: #333333; transition: all 0.3s ease;
    text-decoration: none; border: 1px solid transparent;
}
.social-icon-link svg {
    width: 20px; height: 20px; fill: #CCCCCC; transition: fill 0.3s ease; display: block;
}
.social-icon-link:hover {
    background-color: #000000; border-color: #FFD700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3); transform: translateY(-3px);
}
.social-icon-link:hover svg { fill: #FFD700; }

/* ===========================
   9. MUSIC PAGE STYLES
   =========================== */
.music-container { max-width: 1200px; margin: 0 auto; }
.album-row { display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; margin-bottom: 60px; }
.album-col {
    flex: 1; min-width: 320px; background: #151515; padding: 25px;
    border: 1px solid #333; border-radius: 8px; display: flex; flex-direction: column;
}
.album-col h3 { color: var(--color-link); text-align: center; text-transform: uppercase; margin-top: 0; }
.album-art {
    width: 100%; height: auto; border-radius: 4px;
    margin-bottom: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
.audio-player { width: 100%; margin-bottom: 20px; border-radius: 4px; }
.tracklist {
    list-style: none; padding: 0; margin: 0 0 20px 0; text-align: left;
    max-height: 200px; overflow-y: auto; border: 1px solid #333; background: #0a0a0a;
}
.track-btn {
    display: flex; justify-content: space-between; width: 100%;
    padding: 10px 12px; background: none; border: none;
    border-bottom: 1px solid #222; color: #999; text-align: left; cursor: pointer;
}
.track-btn:hover { background: #222; color: #fff; }
.track-btn.active {
    color: var(--color-link); background: #222;
    font-weight: bold; border-left: 3px solid var(--color-link);
}
.btn-buy {
    display: inline-block; background: var(--color-link); color: #000;
    padding: 12px 25px; text-decoration: none; font-weight: bold;
    border-radius: 4px; margin-bottom: 15px; width: 100%; text-transform: uppercase;
}
.btn-explore {
    display: inline-block; color: var(--color-link); text-decoration: none;
    font-size: 0.95em; cursor: pointer; border: 1px solid var(--color-link);
    padding: 8px 20px; border-radius: 20px;
}
.bundle-section {
    text-align: center; padding: 50px 20px;
    background: linear-gradient(180deg, #1a1a1a 0%, #111 100%);
    border: 2px dashed var(--color-link); border-radius: 10px; margin-bottom: 80px;
}
.singles-row { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.single-col {
    flex: 1; min-width: 180px; max-width: 220px; text-align: center;
    background: #111; padding: 15px; border: 1px solid #333; border-radius: 6px;
}

/* ===========================
   10. DESKTOP RULES
   =========================== */
@media (min-width: 768px) {
    .header-logo { width: 400px; }
    .main-nav { display: block !important; }
    .main-nav ul { display: flex; list-style: none; flex-wrap: wrap; justify-content: center; gap: 15px; }
    .main-nav li a {
        padding: 5px 8px; font-size: 0.8rem; font-weight: bold;
        text-transform: uppercase; color: #cccccc; transition: color 0.3s ease;
    }
    .main-nav li a:hover, .main-nav li a.active {
        background-color: transparent; color: var(--color-link);
        border-bottom: 2px solid var(--color-link);
    }
    .hamburger-menu { display: none !important; }
    .mobile-menu { display: none !important; }
    .main-content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
    .main-content-grid .content-col:first-child { grid-column: 1 / 2; }
    .main-content-grid .content-col.sidebar { grid-column: 2 / 3; max-width: none; }
    .quote-box { text-align: left; }
    .media-block { display: block; }
    .media-image { width: 45%; margin-bottom: 15px; }
    .media-block.image-left .media-image { float: left; margin-right: 30px; }
    .media-block.image-right .media-image { float: right; margin-left: 30px; }
}

/* ===========================
   11. CUSTOM AUDIO PLAYER (Added Fix)
   =========================== */
.audio-player-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333; padding: 15px;
    border-radius: 8px; margin-bottom: 20px;
}
.controls-wrapper { display: flex; align-items: center; gap: 15px; }
.play-pause-btn {
    width: 50px; height: 50px; border-radius: 50%;
    background-color: var(--color-link); border: none; color: #000;
    font-size: 1.2rem; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: transform 0.2s ease, background-color 0.2s;
}
.play-pause-btn:hover { transform: scale(1.1); background-color: #ffe033; }
.progress-bar {
    flex-grow: 1; height: 6px; background-color: #333;
    border-radius: 3px; position: relative; cursor: pointer; overflow: hidden;
}
.progress-fill {
    height: 100%; background-color: var(--color-link); width: 0%; transition: width 0.1s linear;
}
.time-display {
    font-size: 0.85rem; color: #999; font-variant-numeric: tabular-nums;
    min-width: 80px; text-align: right;
}
/* --- PERSISTENT NAVIGATION HIGHLIGHTS --- */
.song-menu-item.active {
    background-color: #FFD700 !important;
    border-color: #FFD700 !important;
}
.song-menu-item.active a {
    color: #000000 !important;
    font-weight: bold !important;
}
.main-nav li a.active, 
.footer-nav a.active {
    color: #FFD700 !important;
    font-weight: bold !important;
    border-bottom: 2px solid #FFD700 !important;
}
/* FORCE ALBUM SWITCHER CENTERING */
.album-switcher {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin: 20px 0 !important;
    width: 100% !important;
}
/* --- ALBUM SWITCHER BUTTON STYLING --- */
.album-switch-btn {
    display: inline-block !important;
    padding: 8px 15px !important;
    border: 1px solid #444 !important;
    border-radius: 4px !important;
    font-size: 0.8rem !important;
    color: #cccccc !important; /* Default grey-white */
    background: rgba(255, 255, 255, 0.05) !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    margin: 5px !important;
}

/* HOVER & ACTIVE STATES (Overrides visited grey) */
.album-switch-btn:hover {
    background-color: #FFD700 !important;
    color: #000000 !important;
    border-color: #FFD700 !important;
}

.album-switch-btn.active {
    border-color: #FFD700 !important;
    color: #FFD700 !important;
    background: rgba(255, 215, 0, 0.1) !important;
    font-weight: bold !important;
}

/* PREVENT VISITED GREY OVERRIDE */
.album-switch-btn:visited {
    color: #cccccc !important;
}
.album-switch-btn.active:visited {
    color: #FFD700 !important;
}
/* --- ALBUM SWITCHER REALIGNMENT --- */
.album-switcher {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 15px !important;
    margin: 30px 0 !important;
}

/* Restores Left-Aligned Heading with Arrow */
.album-switcher span {
    width: auto !important;
    text-align: left !important;
    font-weight: bold;
    color: #FFFFFF !important;
}

.album-switcher span::after {
    content: " \2192"; /* Unicode Arrow → */
    margin-right: 5px;
    color: #FFD700;
}

/* Ensure JavaScript-driven active state is the only one visible */
.album-switch-btn.active {
    background-color: rgba(255, 215, 0, 0.2) !important;
    border-color: #FFD700 !important;
    color: #FFD700 !important;
}
/* --- FINAL ROW STABILITY --- */

/* Reduces horizontal padding to prevent row wrapping/jumping */
body .song-menu-item {
    padding: 0 7px !important;
    white-space: nowrap !important;
}

/* Ensure the container is as wide as possible */
body .song-menu-cloud {
    max-width: 95% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
/* --- PATCH: BACK TO ALBUMS LINK --- */
.back-link-container {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 40px;
}

.back-to-albums {
    color: #FFD700;
    font-size: 1.1rem;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.back-to-albums:hover {
    color: #FFFFFF;
    transform: translateY(-2px);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}
/* --- PATCH: SONG PAGES PLAYER & LAYOUT --- */

/* Center the Buy Button under the player controls */
.buy-btn-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Ensure time display is spread out (0:00 --- 4:00) */
.audio-player-container .time-display {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 8px;
    font-size: 0.8rem;
    color: #999;
}

/* Ensure the player image is centered and neat */
.player-artwork {
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    max-width: 100%;
}
/* --- PATCH: SUBTLE GOLD BUTTONS (V6 - ULTRA COMPACT) --- */

/* 1. NEUTRALIZE THE CONTAINER */
.song-menu-item, 
.song-menu-item.active {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    
    /* PARAMETER A: Spacing BETWEEN buttons */
    margin: -1px -6px !important; 
}

/* 2. STYLE THE LINK (The Compact Button) */
.song-menu-item a {
    display: inline-block !important;
    
    /* PARAMETER B: Size of the button itself (Top/Bottom  Left/Right) */
    padding: 2px 8px !important; 
    
    /* PARAMETER C: Text Size */
    font-size: 0.8rem !important; 
    
    /* THE LOOK: Subtle Gold */
    border: 1px solid rgba(255, 215, 0, 0.3) !important;
    background-color: rgba(255, 255, 255, 0.03) !important;
    color: #cccccc !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: all 0.3s ease !important;
}

/* 3. ALBUM SWITCHER (Keep slightly larger) */
.album-switch-btn {
    display: inline-block !important;
    padding: 6px 12px !important;
    font-size: 0.85rem !important;
    border: 1px solid rgba(255, 215, 0, 0.3) !important;
    background-color: rgba(255, 255, 255, 0.03) !important;
    color: #cccccc !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

/* 4. ACTIVE STATE (Shared by both) */
.song-menu-item.active a,
.song-menu-item a.active,
.album-switch-btn.active {
    border-color: #FFD700 !important;
    color: #FFD700 !important;
    background-color: rgba(255, 215, 0, 0.15) !important;
font-weight: normal !important;  /* 1. Stop the font getting wider */
    text-shadow: 0 0 0.0px #FFD700, 0 0 0.0px #FFD700 !important; /* 2. Fake the bold with shadow */    box-shadow: 0 0 0px rgba(255, 215, 0, 0.2) !important;
}

/* 5. HOVER STATE */
.song-menu-item a:hover,
.album-switch-btn:hover {
    border-color: #FFD700 !important;
    color: #FFFFFF !important;
    background-color: rgba(255, 215, 0, 0.25) !important;
}
/* --- ALBUM TITLE ALIGNMENT --- */
.album-col h3 {
    margin-top: 30px !important;
    margin-bottom: 25px !important;
    text-align: center;
    display: block;
    width: 100%;
}
/* --- BALANCED ALBUM ALIGNMENT --- */
.album-col h3 {
    margin: 25px 0 20px 0 !important;
    text-align: center;
    display: block;
}
/* --- PATCH: SONG PAGE BUY BUTTON FIX (FINAL ATTEMPT) --- */

/* Targets the specific container to override general link underlines */
.buy-btn-container a.buy-btn {
    display: inline-block !important;
    background-color: rgba(255, 255, 255, 0.03) !important;
    color: #FFD700 !important;
    padding: 12px 24px !important;
    font-size: 1rem !important;
    font-weight: bold !important;
    text-align: center !important;
    line-height: 1.3 !important;
    text-decoration: none !important; /* This kills the primary underline */
    border-radius: 4px !important;
    border: 1px solid rgba(255, 215, 0, 0.5) !important;
    transition: all 0.3s ease !important;
}

/* Specifically kills underlines on the inner span sub-text */
.buy-btn-container a.buy-btn span {
    display: block !important;
    font-size: 0.75rem !important;
    font-weight: normal !important;
    text-transform: none !important;
    margin-top: 4px !important;
    text-decoration: none !important; /* This kills the secondary underline */
}

/* Hover state maintaining the clean look */
.buy-btn-container a.buy-btn:hover {
    background-color: rgba(255, 215, 0, 0.2) !important;
    color: #FFFFFF !important;
    border-color: #FFD700 !important;
    text-decoration: none !important;
}

/* Keep music page buttons consistent */
.btn-buy, .btn-buy:hover, .btn-buy:visited {
    text-decoration: none !important;
}