/* Stunning Black & Dark Grey Theme */
:root {
    /* Core black and grey backgrounds */
    --main-bg-color: #000000; /* Pure black background */
    --sidebar-bg-color: #000000; /* Match main background - pure black */
    --card-bg-color: #1a1a1a; /* Dark grey card background */
    --card-bg-hover: #222222; /* Slightly lighter grey for hover */
    --transport-bg: #0f0f0f; /* Very dark grey for transport section */
    --player-bg: #141414; /* Dark grey for player */

    /* Text colors */
    --text-color: #ffffff; /* Pure white text */
    --text-secondary: #cccccc; /* Light grey secondary text */
    --text-muted: #888888; /* Muted grey text */

    /* Highlight colors */
    --highlight-color: #bcabdf; /* Light purple highlight */
    --secondary-highlight: #d0c3ec; /* Lighter purple */
    --tertiary-highlight: #9f8bc7; /* Darker purple */
    --button-color: #bcabdf;
    --button-hover-color: #d0c3ec;

    /* Borders and effects */
    --border-color: rgba(188, 171, 223, 0.2); /* Subtle purple border */
    --border-subtle: rgba(255, 255, 255, 0.1); /* Subtle white border */
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.6); /* Deep black shadow */
    --card-shadow-hover: 0 12px 48px rgba(0, 0, 0, 0.8); /* Deeper hover shadow */
    --glow-purple: 0 0 20px rgba(188, 171, 223, 0.3); /* Purple glow effect */

    /* Gradients */
    --gradient-card: linear-gradient(145deg, #1a1a1a, #0f0f0f); /* Card gradient */
    --gradient-hover: linear-gradient(145deg, #222222, #1a1a1a); /* Hover gradient */
    --gradient-accent: linear-gradient(90deg, transparent, rgba(188, 171, 223, 0.1), transparent); /* Accent gradient */

    /* Legacy variables for compatibility */
    --highlight-color-rgb: 188, 171, 223;
    --youtube-pro-border: linear-gradient(to right, #bcabdf, #9f8bc7, #bcabdf);
    --hover-color: rgba(188, 171, 223, 0.2);
    --accent-dark: #000000;
    --accent-light: #e6ddf0;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--main-bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .chakra-category, .crystal-name, .detail-crystal-name, .landing-title {
    font-family: 'Orbitron', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Now Playing Popup - Compact transport style in top left */
.now-playing-popup {
    position: fixed;
    top: 20px;
    left: 20px;
    width: auto;
    max-width: 320px;
    background: rgba(18, 18, 18, 0.98);
    /* Fallback for browsers that don't support backdrop-filter */
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.98), rgba(26, 26, 30, 0.98));
    /* Use backdrop-filter only where supported */
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border: 2px solid var(--highlight-color);
    border-radius: 12px;
    z-index: 150;
    padding: 12px;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out, box-shadow 0.2s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

.now-playing-popup.visible {
    transform: translateX(0);
}

.now-playing-popup:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    transform: translateX(0) translateY(-2px);
}

.now-playing-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.now-playing-crystal-image {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.3);
}

.now-playing-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.now-playing-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0; /* Allow text to truncate */
}

.now-playing-name {
    color: var(--highlight-color);
    font-weight: 600;
    font-size: 0.85rem;
    font-family: 'Orbitron', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.now-playing-freq {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.7rem;
    font-family: 'Orbitron', monospace;
    line-height: 1.2;
}

.now-playing-stop-btn {
    background: rgba(255, 59, 48, 0.2);
    border: 1px solid rgba(255, 59, 48, 0.4);
    color: #ff3b30;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.7rem;
    font-weight: 600;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.now-playing-stop-btn:hover {
    background: rgba(255, 59, 48, 0.3);
    border-color: rgba(255, 59, 48, 0.6);
    color: #ff1a0d;
    transform: translateY(-1px);
}

/* Mobile adjustments for now playing popup */
@media (max-width: 768px) {
    .now-playing-popup {
        top: 10px;
        left: 10px;
        max-width: 280px;
        padding: 10px;
        z-index: 1001; /* Above mobile header */
        /* More solid background for mobile devices */
        background: rgba(18, 18, 18, 0.99);
        background: linear-gradient(135deg, rgba(18, 18, 18, 0.99), rgba(26, 26, 30, 0.99));
    }

    .now-playing-content {
        gap: 8px;
    }

    .now-playing-crystal-image {
        width: 35px;
        height: 35px;
    }

    .now-playing-name {
        font-size: 0.75rem;
    }

    .now-playing-freq {
        font-size: 0.65rem;
    }

    .now-playing-stop-btn {
        padding: 5px 10px;
        font-size: 0.65rem;
    }
}

/* Android-specific fixes */
@supports not (backdrop-filter: blur(15px)) {
    .now-playing-popup {
        background: rgba(18, 18, 18, 0.99);
        background: linear-gradient(135deg, rgba(18, 18, 18, 0.99), rgba(26, 26, 30, 0.99));
    }
}

/* Mobile Header */
.mobile-header {
    display: flex;
    padding: 15px;
    background-color: var(--main-bg-color); /* Match main background - pure black */
    border-bottom: 1px solid var(--border-color);
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Hide mobile header on desktop */
@media (min-width: 769px) {
    .mobile-header {
        display: none;
    }
}

/* User Profile Container and Dropdown */
.user-profile-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-profile {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.user-profile:hover {
    background: rgba(188, 171, 223, 0.2);
    border-color: var(--highlight-color);
    transform: translateY(-1px);
}

.user-profile-text {
    font-weight: 500;
    font-family: 'Rajdhani', sans-serif;
}

/* Mobile Info Button */
.mobile-info-button {
    background: rgba(188, 171, 223, 0.2);
    color: var(--highlight-color);
    border: 1px solid var(--highlight-color);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 0;
    line-height: 1;
}

.mobile-info-button:hover {
    background-color: var(--highlight-color);
    color: #000000;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(188, 171, 223, 0.4);
}

.gemfreq-info-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    font-size: 0.9rem;
    font-weight: bold;
    line-height: 16px;
    text-align: center;
}

.user-profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95), rgba(18, 18, 18, 0.98));
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    min-width: 220px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 8px;
}

.user-profile-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-options {
    padding: 12px 0;
}

.user-info {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 8px;
    background: linear-gradient(135deg, rgba(188, 171, 223, 0.1), rgba(188, 171, 223, 0.05));
    border-radius: 8px 8px 0 0;
}

.user-name {
    display: block;
    color: var(--highlight-color);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 6px;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.user-subscription {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 12px;
    display: inline-block;
    margin-top: 2px;
}

/* Enhanced subscription status styling */
.user-subscription.free-member {
    background: rgba(52, 199, 89, 0.2);
    color: #34c759;
    border: 1px solid rgba(52, 199, 89, 0.3);
}

.user-subscription.premium-member {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.user-subscription.free-account {
    background: rgba(255, 255, 255, 0.1);
    color: #cccccc;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-option {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-color);
    padding: 10px 16px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-family: 'Rajdhani', sans-serif;
}

.profile-option:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--highlight-color);
}

.profile-option i {
    width: 16px;
    text-align: center;
}

/* Profile sections for better organization */
.profile-section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 8px;
    padding-bottom: 8px;
}

.profile-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Special styling for different option types */
.upgrade-option {
    color: #ffd700 !important;
}

.upgrade-option:hover {
    background: rgba(255, 215, 0, 0.1) !important;
    color: #ffd700 !important;
}

.billing-option:hover {
    background: rgba(52, 199, 89, 0.1) !important;
    color: #34c759 !important;
}

.plan-option:hover {
    background: rgba(0, 122, 255, 0.1) !important;
    color: #007aff !important;
}

.cancel-option {
    color: #ff6b6b !important;
}

.cancel-option:hover {
    background: rgba(255, 107, 107, 0.1) !important;
    color: #ff6b6b !important;
}

.logout-option {
    color: #ff6b6b !important;
}

.logout-option:hover {
    background: rgba(255, 107, 107, 0.1) !important;
    color: #ff6b6b !important;
}

.upgrade-option:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
}

.logout-option:hover {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
}

/* Mobile Layout - Hide sidebar and make crystals full width */
@media (max-width: 768px) {
    .mobile-header {
        display: flex;
    }

    .sidebar {
        display: none !important; /* Completely hide sidebar on mobile */
    }

    .app-container {
        flex-direction: column !important;
    }

    .main-content {
        width: 100% !important; /* Take full width */
        margin-left: 0 !important;
        padding: 0 !important;
    }

    /* Remove background crystal images on mobile for cleaner look */
    .main-content::before {
        display: none !important;
    }
}

/* Main title styling for both PC and mobile */
.main-title {
    text-align: center;
    color: #bcabdf; /* Explicitly using the purple hex code */
    font-size: 2.5rem;
    font-weight: bold;
    margin: 20px 0;
    padding: 0 20px;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Collection subtitle styling - now within same container as title */
.collection-subtitle {
    text-align: center;
    color: rgba(188, 171, 223, 0.8);
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0 0 15px 0; /* No negative margin since it's in same container */
    padding: 0 20px 15px; /* Added bottom padding for container spacing */
    letter-spacing: 0.5px;
    font-style: italic;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .main-title {
        font-size: 1.8rem;
        margin: 15px 0;
    }

    .collection-subtitle {
        font-size: 0.95rem;
        margin: -8px 0 12px 0;
        padding: 0 15px;
    }
}

/* App Container */
.app-container {
    display: none; /* Start hidden behind landing page */
    min-height: 100vh;
    opacity: 0; /* Start transparent */
    transition: opacity 1s ease-in;
    flex-direction: row;
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    min-width: 280px;
    background-color: var(--main-bg-color); /* Match main background - pure black */
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    padding-bottom: 20px;
    height: 100vh;
    position: sticky;
    top: 0;
    left: 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.sidebar-header {
    padding: 15px 10px; /* Reduced padding: top/bottom 15px, left/right 10px */
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    background-color: var(--main-bg-color); /* Match main background - pure black */
}

.subtitle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 5px;
}

.info-button {
    background-color: rgba(188, 171, 223, 0.2); /* More opaque background */
    color: var(--highlight-color);
    border: 1px solid var(--highlight-color);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 0;
    line-height: 1;
}

.info-button:hover {
    background-color: var(--highlight-color);
    color: #000000;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(188, 171, 223, 0.4);
}

.info-icon-text {
    display: inline-block;
    width: 14px;
    height: 14px;
    font-size: 14px;
    font-weight: bold;
    line-height: 14px;
    text-align: center;
}

/* Sidebar My Account Button */
.sidebar-account-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.sidebar-my-account-btn {
    width: 100%;
    background-color: rgba(188, 171, 223, 0.1);
    border: 1px solid rgba(188, 171, 223, 0.3);
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-color);
}

.sidebar-my-account-btn:hover {
    background-color: rgba(188, 171, 223, 0.2);
    border-color: rgba(188, 171, 223, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(188, 171, 223, 0.3);
}

.sidebar-my-account-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(188, 171, 223, 0.2);
}

.account-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.sidebar-user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--highlight-color);
}

.sidebar-user-type {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.account-arrow {
    font-size: 16px;
    color: var(--highlight-color);
    transition: transform 0.3s ease;
}

.sidebar-my-account-btn:hover .account-arrow {
    transform: translateX(3px);
}

/* Simple My Account Button */
.my-account-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(188, 171, 223, 0.2);
    display: block !important;
    visibility: visible !important;
}

.my-account-btn {
    width: 100%;
    background: linear-gradient(135deg, rgba(188, 171, 223, 0.15), rgba(188, 171, 223, 0.25));
    border: 1px solid rgba(188, 171, 223, 0.4);
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center;
    gap: 8px;
    color: var(--highlight-color);
    font-size: 14px;
    font-weight: 600;
    font-family: 'Rajdhani', sans-serif;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 999;
}

.my-account-btn:hover {
    background: linear-gradient(135deg, rgba(188, 171, 223, 0.25), rgba(188, 171, 223, 0.35));
    border-color: rgba(188, 171, 223, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(188, 171, 223, 0.3);
}

.my-account-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(188, 171, 223, 0.2);
}

.my-account-btn i {
    font-size: 16px;
    color: var(--highlight-color);
}

/* Mobile responsive styles for My Account button */
@media (max-width: 768px) {
    .my-account-section {
        margin-top: 10px;
        padding-top: 10px;
    }

    .my-account-btn {
        padding: 8px 10px;
        font-size: 13px;
    }

    .my-account-btn i {
        font-size: 14px;
    }
}

.sidebar-header h2 {
    color: #bcabdf; /* Explicitly using the purple hex code */
    margin-bottom: 10px;
    font-family: 'Noefire', sans-serif;
}

.sidebar-content {
    padding: 5px; /* Reduced padding from 10px to 5px */
}

.sidebar-crystal-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-bottom: 30px;
}

.sidebar-crystal-item {
    background-color: var(--card-bg-color); /* Use consistent card background */
    padding: 10px; /* Reduced padding from 12px to 10px */
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
    margin: 0 5px 5px 5px; /* Reduced side margins from 10px to 5px */
    border: 1px solid var(--border-subtle);
    color: var(--text-color); /* Ensure text is visible */
}

.sidebar-crystal-item:hover {
    transform: translateX(5px);
    background-color: rgba(188, 171, 223, 0.4) !important; /* More opaque purple */
    border-color: rgba(188, 171, 223, 0.6);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.sidebar-crystal-item:active {
    transform: translateX(2px) scale(0.98);
}

/* Main Content */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100vh;
    width: calc(100% - 280px);
    background-color: var(--main-bg-color);
    position: relative;
}

/* Glimmery crystal background */
.main-content::before {
    content: '';
    position: fixed;
    top: 0;
    left: 280px; /* Match sidebar width */
    right: 0;
    bottom: 0;
    background-image:
        url('crystals/Amethyst Third Eye.jpg'),
        url('crystals/Clear Quartz Crown.jpg'),
        url('crystals/Rose Quartz.jpg');
    background-position:
        calc(100% - 50px) 15%,
        15% 85%,
        85% 50%;
    background-repeat: no-repeat;
    background-size:
        300px auto,
        250px auto,
        200px auto;
    opacity: 0.07;
    pointer-events: none;
    z-index: 0;
    filter: blur(3px) brightness(1.5);
    animation: crystalGlow 20s infinite alternate ease-in-out;
}

@keyframes crystalGlow {
    0% {
        opacity: 0.05;
        filter: blur(3px) brightness(1.3) hue-rotate(0deg);
    }
    50% {
        opacity: 0.08;
        filter: blur(2px) brightness(1.5) hue-rotate(15deg);
    }
    100% {
        opacity: 0.06;
        filter: blur(4px) brightness(1.4) hue-rotate(30deg);
    }
}

.transport-section {
    background: var(--transport-bg);
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    max-height: none;
    overflow: visible;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    margin-bottom: 40px;
    border-bottom: 2px solid var(--border-color);
    backdrop-filter: blur(20px);
}

/* Mobile Transport Section - Optimized for Award-Winning Layout */
@media (max-width: 768px) {
    .transport-section {
        position: sticky !important;
        top: 60px !important; /* Below mobile header */
        z-index: 99 !important;
        padding: 15px !important;
        margin-bottom: 0 !important; /* No margin since crystals have their own background */
        max-height: none !important;
        overflow: visible !important;
        height: auto !important;
        background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(15, 15, 20, 0.98) 100%) !important;
        border-bottom: 2px solid rgba(188, 171, 223, 0.4) !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8) !important;
        backdrop-filter: blur(20px) !important;
    }

    /* Hide collection header on mobile to save space */
    .collection-header {
        display: none !important;
    }

    /* Make player container more compact on mobile */
    .player-container {
        padding: 10px !important;
        margin-bottom: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
}

/* Visualizer */
.visualizer-container {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    height: 108px; /* Increased by 20% from 90px to 108px */
    margin-bottom: 5px; /* Further reduced margin */
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(188, 171, 223, 0.3);
}

.visualizer-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--highlight-color), transparent);
    opacity: 0.6;
}

/* Collection Header */
.collection-header {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

/* Unified Player Container */
.player-container {
    background: var(--player-bg);
    border-radius: 18px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.player-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--highlight-color), transparent);
    opacity: 0.8;
}

.player-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--highlight-color), transparent);
    opacity: 0.4;
}

/* Player Info Bar */
.player-info-bar {
    background-color: #1a1a1a; /* Fully opaque background */
    border-radius: 10px;
    padding: 6px 10px; /* Further reduced padding */
    margin-bottom: 8px; /* Reduced margin */
    text-align: center;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(188, 171, 223, 0.2);
}

.now-playing-name {
    font-weight: 700;
    color: var(--highlight-color);
    margin-bottom: 2px; /* Reduced margin */
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.5px;
    font-size: 1.2rem; /* Reduced font size */
    line-height: 1.2; /* Tighter line height */
}

.now-playing-freq {
    font-size: 0.9rem; /* Reduced font size */
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.2; /* Tighter line height */
}

/* Player Controls Area */
.player-controls-area {
    display: flex;
    margin-bottom: 0; /* No margin between controls and status */
    gap: 8px; /* Further reduced gap */
    background-color: #1a1a1a; /* Match status bar background */
    border-radius: 8px 8px 0 0; /* Rounded top corners only */
    padding: 10px;
    border: 1px solid rgba(188, 171, 223, 0.2);
    border-bottom: none; /* Remove bottom border */
}

.player-controls-left {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px; /* Fixed width */
    position: relative;
    overflow: hidden;
}

.player-controls-left::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(188, 171, 223, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.player-controls-right {
    flex: 1;
    position: relative;
    overflow: hidden;
    padding: 0 5px;
}

.player-controls-right::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(188, 171, 223, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Status Bar */
.status-bar {
    background-color: #1a1a1a; /* Fully opaque background */
    border-radius: 0 0 8px 8px; /* Rounded bottom corners only */
    padding: 8px; /* Slightly increased padding */
    margin-bottom: 0;
    text-align: center;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(188, 171, 223, 0.2);
    border-top: none; /* Remove top border */
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    letter-spacing: 0.5px;
}

.status-text {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Removed visual separator after the transport section */

.volume-controls {
    display: flex;
    flex-direction: column;
    gap: 12px; /* Increased gap for better spacing */
    width: 100%;
    padding: 5px 0; /* Added padding for better spacing */
}

.volume-control-box {
    background-color: #151515; /* Fully opaque background */
    border-radius: 10px; /* Increased radius */
    padding: 12px; /* Increased padding for more space */
    border: 1px solid rgba(188, 171, 223, 0.4); /* Increased opacity for better visibility */
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Added shadow for depth */
}

.volume-control-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px; /* Increased height */
    background: linear-gradient(90deg, transparent, rgba(188, 171, 223, 0.5), transparent);
}

.volume-control {
    display: flex;
    flex-direction: column;
    width: 100%;
    font-size: 0.9rem; /* Increased font size for better readability */
    position: relative;
}

/* Add a subtle glow effect when interacting with sliders */
.volume-control:has(input[type="range"]:focus) {
    filter: drop-shadow(0 0 8px rgba(188, 171, 223, 0.3));
}

.volume-control label {
    margin-bottom: 8px; /* Increased margin for better spacing */
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #bcabdf; /* Explicitly using the purple hex code */
    font-weight: 600; /* Increased font weight */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); /* Added text shadow for better readability */
}

/* Modern responsive volume slider with ultra-smooth movement */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px; /* Sleeker track height */
    background: transparent; /* Transparent background, track will handle styling */
    border-radius: 3px;
    outline: none;
    opacity: 1;
    transition: all 0.1s ease; /* Faster transitions for more responsive feel */
    margin: 20px 0; /* More margin for larger touch area */
    cursor: pointer;
    position: relative;
    /* Increase touch area without affecting visual appearance */
    padding: 15px 0;
    margin-top: 15px;
    margin-bottom: 15px;
    /* Enable hardware acceleration for smoother movement */
    will-change: transform;
    transform: translateZ(0);
}

/* Modern slider thumb - ultra-smooth and responsive */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: #bcabdf;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.9);
    transition: all 0.1s ease; /* Faster transitions for smoother feel */
    position: relative;
    z-index: 2;
    /* Enable hardware acceleration for ultra-smooth movement */
    will-change: transform, box-shadow;
    transform: translateZ(0);
}

/* Hover and active states for desktop */
input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(188, 171, 223, 0.3);
}

input[type="range"]::-webkit-slider-thumb:active {
    transform: scale(1.2);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5), 0 0 0 3px rgba(188, 171, 223, 0.5);
}

/* Firefox slider thumb */
input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: #bcabdf;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.9);
    transition: all 0.15s ease;
    -moz-appearance: none;
}

input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(188, 171, 223, 0.3);
}

input[type="range"]::-moz-range-thumb:active {
    transform: scale(1.2);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5), 0 0 0 3px rgba(188, 171, 223, 0.5);
}

/* Hide the range input thumb on the right side */
input[type="range"]::-webkit-slider-thumb:after {
    content: '';
    display: none;
}

/* Hide the scrollbar handles */
::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

::-webkit-scrollbar-track {
    display: none;
}

::-webkit-scrollbar-thumb {
    display: none;
}

/* Modern slider track with progress indication */
input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    border: none;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    position: relative;
}

/* Create a filled track effect using a pseudo-element approach */
input[type="range"] {
    background: linear-gradient(to right,
        rgba(188, 171, 223, 0.8) 0%,
        rgba(188, 171, 223, 0.8) var(--slider-progress, 50%),
        rgba(255, 255, 255, 0.1) var(--slider-progress, 50%),
        rgba(255, 255, 255, 0.1) 100%);
    background-size: 100% 6px;
    background-repeat: no-repeat;
    background-position: center;
}

input[type="range"]:hover {
    background: linear-gradient(to right,
        rgba(188, 171, 223, 0.9) 0%,
        rgba(188, 171, 223, 0.9) var(--slider-progress, 50%),
        rgba(255, 255, 255, 0.15) var(--slider-progress, 50%),
        rgba(255, 255, 255, 0.15) 100%);
}

/* Firefox track */
input[type="range"]::-moz-range-track {
    height: 6px;
    background: linear-gradient(to right,
        rgba(188, 171, 223, 0.8) 0%,
        rgba(188, 171, 223, 0.4) 100%);
    border-radius: 3px;
    border: none;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

input[type="range"]::-moz-range-track {
    height: 12px; /* Increased height to match input */
    background: rgba(188, 171, 223, 0.4); /* Increased opacity for better visibility */
    border-radius: 8px; /* Increased border radius */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Added subtle border */
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3); /* Added inner shadow for depth */
}

input[type="range"]:hover {
    opacity: 1;
}

/* Updated Player Toggle Button Styling - More Compact */
.player-toggle {
    background-color: var(--highlight-color); /* Uses the current crystal color */
    color: #121212;
    border: none;
    width: 45px; /* Further reduced size */
    height: 45px; /* Further reduced size */
    border-radius: 50%;
    margin: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem; /* Further reduced font */
    font-weight: bold;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

/* Ensure all content inside the player-toggle is non-interactive */
.player-toggle * {
    pointer-events: none;
}

.player-toggle::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    opacity: 0.6;
    border-radius: 50%;
    pointer-events: none; /* Ensure the pseudo-element doesn't interfere with clicks */
}

.player-toggle::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(188, 171, 223, 0.5), transparent);
    border-radius: 50%;
    z-index: -1;
    animation: rotate 4s linear infinite;
    pointer-events: none; /* Ensure the pseudo-element doesn't interfere with clicks */
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Center the player controls in the player bar */
.player-controls {
    display: flex;
    justify-content: flex-start;
    margin: 0;
}

/* Update the player bar layout to be more compact */
.player-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    margin-top: 10px;
    border: 1px solid rgba(188, 171, 223, 0.1);
    position: relative;
    overflow: hidden;
}

.player-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--highlight-color), transparent);
    opacity: 0.6;
}

.player-info {
    text-align: right;
    margin: 0;
    flex-grow: 1;
    padding-left: 15px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.now-playing-name {
    font-weight: 600;
    color: var(--highlight-color);
    margin-bottom: 3px;
    font-family: 'Noefire', sans-serif;
    letter-spacing: 0.5px;
}

.now-playing-freq {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Section Title */
.section-title {
    color: #bcabdf !important; /* Light purple color - force override */
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    text-align: center;
    margin: 0 auto 10px; /* Reduced bottom margin since subtitle will be in same container */
    padding: 15px 20px 0; /* Removed bottom padding */
    letter-spacing: 1.2px;
    scroll-margin-top: 250px; /* Ensure this element has space when scrolled to */
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    width: 100%; /* Ensure full width for proper centering */
    display: block; /* Ensure block display for centering */
}

/* Add a decorative element to the section title */
.section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--highlight-color), transparent);
}

/* Enhanced Crystal Card Styles - Original Layout Restored */
.crystals-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
    gap: 15px !important;
    padding: 20px !important; /* Original padding restored */
    width: 100%;
    margin: 0 auto;
    justify-content: center;
}

/* Clean Mobile Crystal Layout */
@media (max-width: 768px) {
    .crystals-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 8px !important;
        gap: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        background-color: var(--main-bg-color) !important;
    }
}

@media (max-width: 992px) {
    /* Medium screens */
    .crystals-container {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
        gap: 16px !important; /* Consistent gap */
        padding: 16px !important; /* Even padding all around */
        justify-content: space-evenly; /* Even distribution */
    }
}

/* Crystal section separator */
.crystal-section-separator {
    height: 20px;
    margin: 20px 0;
    position: relative;
    display: none; /* Hidden by default, shown only on mobile */
}

@media (max-width: 768px) {
    /* Mobile screens */
    .crystal-section-separator {
        display: block; /* Show on mobile */
    }

    .section-title {
        font-size: 1.6rem;
        margin: 0 0 15px;
        padding: 12px 15px;
        scroll-margin-top: 220px; /* Adjusted for mobile to ensure it's not hidden by playbar */
        position: relative;
        z-index: 5;
    }

    .section-title::after {
        width: 80px;
    }

    .crystals-container {
        grid-template-columns: 1fr !important; /* Force exactly one crystal per row on mobile */
        gap: 16px !important; /* Consistent gap */
        padding: 16px !important; /* Even padding all around */
        margin-top: 5px !important; /* Very minimal margin */
        width: 100%; /* Ensure full width */
        max-width: 100%; /* Override any max-width constraints */
        justify-content: center; /* Center single column */
    }
}

@media (max-width: 768px) {
    /* Ensure crystal cards display properly on mobile */
    .crystal-card {
        max-width: 100%;
        margin-bottom: 5px; /* Reduced margin since we have gap in the grid */
        background-color: rgba(30, 30, 35, 0.9); /* Darker background for better contrast */
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); /* Enhanced shadow for depth */
        border: 1px solid rgba(188, 171, 223, 0.3);
        min-height: 300px; /* Slightly smaller on mobile */
        max-height: 420px;
    }

    /* Make sure crystal content is visible */
    .crystal-card-content {
        padding: 15px;
        min-height: 100px;
        max-height: none; /* Remove max height restriction */
        background-color: rgba(30, 30, 35, 0.95);
    }

    /* Ensure title and frequency display properly */
    .crystal-title-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 8px;
    }

    /* Adjust crystal title header for mobile */
    .crystal-title-header {
        padding: 8px 12px;
        background-color: var(--highlight-color);
    }

    .crystal-title {
        font-size: 1.0rem;
        font-weight: 700;
    }
}

@media (max-width: 768px) {
    .crystal-name {
        font-size: 1.2rem;
        max-width: 65%;
        font-family: 'Orbitron', sans-serif;
        color: #bcabdf !important;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .frequency-info {
        font-size: 1rem;
        min-width: 80px;
        color: var(--highlight-color);
        font-weight: 600;
        text-align: right;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    /* Ensure description is visible */
    .crystal-info {
        font-size: 1rem;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        max-height: none; /* Remove max height restriction */
        color: rgba(255, 255, 255, 0.9);
        margin: 8px 0 0 0;
    }

    /* Improved transport section for mobile */
    .transport-section {
        padding: 8px 8px 15px; /* Increased padding at the bottom */
        max-height: 18vh; /* Reduced height to take up less space */
        position: sticky;
        top: 60px; /* Height of mobile header plus some padding */
        z-index: 100;
        box-shadow: var(--container-shadow);
        background: var(--gradient-bg-2); /* Amazing purple gradient background */
        border-bottom: 1px solid rgba(188, 171, 223, 0.3);
        margin-bottom: 20px; /* Consistent margin */
    }

    /* Hide elements on mobile */
    @media (max-width: 768px) {
        .mobile-hidden {
            display: none !important;
        }
    }

    /* Adjust player container for mobile */
    .player-container {
        padding: 8px;
        margin-bottom: 8px;
    }

    /* Adjust player controls for mobile */
    .player-controls-area {
        flex-direction: row; /* Change to row layout for more compact design */
        gap: 5px;
        padding: 8px;
        align-items: center;
    }

    .player-controls-left {
        width: auto;
        display: flex;
        justify-content: center;
        padding: 5px;
    }

    .player-toggle {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

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

    .volume-controls {
        gap: 5px;
    }

    .volume-control-box {
        padding: 5px;
    }

    /* Status bar for mobile */
    .status-bar {
        padding: 10px;
    }

    .status-text {
        font-size: 0.9rem;
    }

    .volume-control label {
        font-size: 0.8rem;
        margin-bottom: 2px;
    }

    /* Mobile-optimized slider with larger touch targets */
    input[type="range"] {
        height: 8px; /* Slightly larger track for mobile */
        padding: 20px 0; /* Much larger touch area */
        margin: 25px 0; /* More spacing for easier interaction */
        position: relative;
    }

    input[type="range"]::-webkit-slider-thumb {
        width: 32px; /* Larger thumb for mobile */
        height: 32px;
        border: 3px solid rgba(255, 255, 255, 0.95);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(188, 171, 223, 0.3);
        transition: all 0.2s ease;
    }

    input[type="range"]::-moz-range-thumb {
        width: 32px; /* Larger thumb for mobile */
        height: 32px;
        border: 3px solid rgba(255, 255, 255, 0.95);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(188, 171, 223, 0.3);
    }

    /* Mobile track adjustments */
    input[type="range"]::-webkit-slider-runnable-track {
        height: 8px;
        background: linear-gradient(to right,
            rgba(188, 171, 223, 0.9) 0%,
            rgba(188, 171, 223, 0.5) 100%);
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.4rem;
        margin: 0 0 20px 0; /* Added bottom margin */
        padding: 12px 15px;
        scroll-margin-top: 150px; /* Reduced to account for smaller player controls */
        background-color: var(--main-bg-color);
        z-index: 5;
        border-radius: 10px; /* Added border radius */
        border-left: 3px solid var(--highlight-color); /* Added colored left border */
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Added subtle shadow */
        text-align: center; /* Center the text */
    }

    /* Adjust crystals container for small screens */
    .crystals-container {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important; /* Consistent gap */
        padding: 16px !important; /* Even padding all around */
        width: 100%;
        position: relative;
        z-index: 1;
        justify-content: center; /* Center single column */
    }
}

@media (max-width: 480px) {
    /* Small screen crystal card styles - optimized for single column */
    .crystal-card {
        display: flex !important;
        flex-direction: column !important;
        border-radius: 15px; /* Slightly increased border radius */
        overflow: hidden;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); /* Enhanced shadow */
        margin-bottom: 25px !important; /* Increased margin for better separation */
        background-color: var(--card-bg-color);
        height: auto !important;
        min-height: 180px !important; /* Reduced minimum height */
        max-height: none !important; /* Remove max height restriction */
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        border: 1px solid rgba(188, 171, 223, 0.3); /* Added subtle border */
        width: 100% !important; /* Force full width */
    }

    /* Ensure chakra colors work on small mobile */
    .crystal-card[data-chakra="root"] .crystal-title-header {
        background: linear-gradient(135deg, #DC143C, #FF1744) !important;
    }

    .crystal-card[data-chakra="sacral"] .crystal-title-header {
        background: linear-gradient(135deg, #FF6B35, #FF8A50) !important;
    }

    .crystal-card[data-chakra="solar-plexus"] .crystal-title-header {
        background: linear-gradient(135deg, #FFB000, #FFC107) !important;
    }

    .crystal-card[data-chakra="heart"] .crystal-title-header {
        background: linear-gradient(135deg, #00C851, #00E676) !important;
    }

    .crystal-card[data-chakra="throat"] .crystal-title-header {
        background: linear-gradient(135deg, #007BFF, #2196F3) !important;
    }

    .crystal-card[data-chakra="third-eye"] .crystal-title-header {
        background: linear-gradient(135deg, #6F42C1, #9C27B0) !important;
    }

    .crystal-card[data-chakra="crown"] .crystal-title-header {
        background: linear-gradient(135deg, #8E44AD, #AB47BC) !important;
    }

    /* Adjust crystal title header for small screens */
    .crystal-title-header {
        padding: 6px 10px;
    }

    .crystal-title {
        font-size: 0.85rem;
    }

    /* Adjust thumbnail container for small screens */
    .crystal-thumbnail-container {
        position: relative;
        width: 100%;
        height: 180px; /* Fixed height for small mobile */
        border: none;
        background-color: #000;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    /* Adjust crystal image for small screens */
    .crystal-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: contain; /* Full width display */
    }

    /* Adjust card content for small screens */
    .crystal-card-content {
        padding: 10px 12px;
        min-height: 80px;
    }

    /* Adjust title row for small screens */
    .crystal-title-row {
        margin-bottom: 6px;
    }

    /* Adjust crystal name for small screens */
    .crystal-name {
        font-size: 0.95rem;
        max-width: calc(100% - 70px);
    }

    /* Adjust frequency info for small screens */
    .frequency-info {
        font-size: 0.85rem;
        min-width: 65px;
    }

    /* Adjust crystal info for small screens */
    .crystal-info {
        font-size: 0.85rem;
        line-height: 1.4;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        max-height: 2.8em;
    }
}

@media (max-width: 768px) {
    /* Make visualizer more compact on mobile */
    .visualizer-container {
        height: 80px; /* Shorter on mobile to save space */
        margin-bottom: 5px;
    }

    /* Improve player layout on small screens */
    .player-container {
        padding: 8px 8px 15px; /* Added more padding at the bottom */
        margin-bottom: 80px; /* Significantly increased margin to ensure separation from crystals */
        background: var(--gradient-bg-3); /* Amazing purple gradient background */
        border-bottom: 1px solid rgba(188, 171, 223, 0.2); /* Added subtle border for visual separation */
        position: relative; /* For the decorative element */
        height: auto; /* Allow container to adjust to content */
        overflow: visible; /* Ensure content doesn't get cut off */
    }

    /* Add decorative element after the player container */
    .player-container::after {
        content: '';
        position: absolute;
        bottom: -40px; /* Positioned further down */
        left: 50%;
        transform: translateX(-50%);
        width: 80px; /* Wider line */
        height: 4px; /* Thicker line */
        background: linear-gradient(90deg, transparent, var(--highlight-color), transparent);
        border-radius: 4px;
        opacity: 0.7; /* Slightly more visible */
    }

    /* Add a second decorative element for more visual separation */
    .player-container::before {
        content: '';
        position: absolute;
        bottom: -55px; /* Positioned even further down */
        left: 50%;
        transform: translateX(-50%);
        width: 40px; /* Shorter than the first line */
        height: 2px; /* Thinner than the first line */
        background: linear-gradient(90deg, transparent, var(--highlight-color), transparent);
        border-radius: 2px;
        opacity: 0.4; /* More subtle than the first line */
    }

    /* Improve volume controls on mobile */
    .volume-control-box {
        padding: 10px;
        margin-bottom: 5px;
        background: var(--elevated-bg-color); /* Amazing elevated purple background */
    }

    /* Make play button more prominent */
    .player-toggle {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }

    /* Improve crystal detail view on mobile */
    .crystal-detail-view {
        padding: 15px 10px;
        margin-top: 60px; /* Reduced margin for better spacing */
    }

    .detail-content {
        padding: 15px 10px;
    }

    .detail-crystal-name {
        font-size: 1.6rem;
        margin-bottom: 5px;
    }

    .detail-crystal-freq {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }

    .detail-crystal-short-desc {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 15px;
    }

    .detail-properties {
        padding: 15px 10px;
    }

    .property-item {
        padding: 12px;
        margin-bottom: 10px;
    }
}

/* Main crystal card styles - restored fixed sizing */
.crystal-card {
    background: var(--gradient-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    user-select: none;
    display: flex;
    flex-direction: column;
    width: 320px !important; /* Fixed width for consistent sizing */
    height: auto !important; /* Auto height to accommodate full images */
    border: 1px solid var(--border-subtle);
    min-height: 400px; /* Minimum height for consistency */
    max-height: none !important; /* No max height to allow full images */
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .crystal-card {
        width: calc(100vw - 16px) !important;
        max-width: none !important;
        height: auto !important;
        min-height: 500px !important;
        max-height: none !important;
        margin-bottom: 0 !important;
        border-radius: 16px !important;
        background: var(--card-bg-color) !important;
        border: 1px solid rgba(188, 171, 223, 0.3) !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
        transition: transform 0.3s ease, box-shadow 0.3s ease !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .crystal-card:hover, .crystal-card:active {
        transform: translateY(-4px) !important;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5) !important;
        border-color: rgba(188, 171, 223, 0.5) !important;
    }
}

@media (max-width: 480px) {
    .crystal-card {
        width: calc(100vw - 16px) !important; /* Full width on small mobile too */
        height: auto !important; /* Auto height */
        min-height: 450px !important; /* Large minimum height */
        max-height: none !important; /* No max height restriction */
        margin-bottom: 0 !important;
    }
}

.crystal-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--card-shadow-hover), var(--glow-purple);
    background: var(--gradient-hover);
    border-color: var(--highlight-color);
}

.crystal-card:active {
    transform: translateY(-4px) scale(0.99);
    box-shadow: var(--card-shadow);
}

.crystal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

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

/* Crystal thumbnail container with YouTube Pro style border */
.crystal-thumbnail-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio for consistent video thumbnail look */
    overflow: hidden;
    border-radius: 0; /* Removed border radius since we have the title header above */
    /* YouTube Pro style gradient border */
    border: 2px solid;
    border-image: var(--youtube-pro-border) 1;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crystal-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed from cover to contain to preserve aspect ratio */
    transition: all 0.3s ease;
    z-index: 1;
}

/* Play button overlay - removed translucent background */
.play-button-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: transparent; /* Removed background */
    opacity: 1; /* Always visible */
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none; /* Allow clicks to pass through to the container */
}

/* Frequency math display - REMOVED (redundant frequency label) */

.play-button {
    /* Hide the play button on thumbnails */
    display: none;
}

.play-button::after {
    content: 'G';
    color: #121212;
    font-size: 18px;
    font-weight: bold;
    font-family: 'Orbitron', sans-serif;
    margin-left: 4px;
    /* Ensure the content doesn't interfere with clicks */
    pointer-events: none;
}

/* No hover effects needed since play button is always visible */

@media (max-width: 768px) {
    .crystal-title-header {
        padding: 10px 16px !important;
        background: var(--transport-bg) !important;
        border-radius: 16px 16px 0 0 !important;
        border: 1px solid rgba(188, 171, 223, 0.3) !important;
        border-bottom: none !important;
    }

    .crystal-title {
        font-size: 1rem !important;
        font-weight: 600 !important;
        color: #ffffff !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
    }

    .crystal-thumbnail-container {
        position: relative !important;
        width: 100% !important;
        height: 250px !important; /* Increased height to show more of the image vertically */
        overflow: hidden !important;
        border-radius: 0 !important;
        background: #000 !important;
        border: 1px solid rgba(188, 171, 223, 0.3) !important;
        border-top: none !important;
        border-bottom: none !important;
        flex-shrink: 0 !important;
    }

    .crystal-image {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important; /* Full width coverage */
        object-position: center 30% !important; /* Slightly favor showing the top portion of crystals */
    }

    /* Play button overlay - removed translucent background */
    .play-button-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background-color: transparent; /* Removed background */
        opacity: 1;
        z-index: 5;
    }

    /* Play button - hidden */
    .play-button {
        display: none;
    }

    /* Play button icon */
    .play-button::after {
        content: '▶';
        color: #121212;
        font-size: 20px;
        margin-left: 3px;
    }

    /* Frequency math display for mobile - REMOVED (redundant frequency label) */
}

@media (max-width: 480px) {
    /* Crystal title header for small mobile */
    .crystal-title-header {
        padding: 10px 16px !important;
    }

    .crystal-title {
        font-size: 1rem !important;
    }

    /* Crystal thumbnail container */
    .crystal-thumbnail-container {
        position: relative !important;
        width: 100% !important;
        height: 230px !important; /* Good height for small screens to show more crystal detail */
        overflow: hidden !important;
        border-radius: 0 !important;
        background-color: #000 !important;
        flex-shrink: 0 !important;
    }

    /* Crystal image for small mobile - full width with minimal cropping */
    .crystal-image {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important; /* Full width coverage */
        object-position: center 30% !important; /* Slightly favor top portion to show crystal details */
    }

    /* Small screen detail view styles */
    .back-button {
        padding: 6px 12px;
        font-size: 0.85rem;
        top: 10px;
        left: 10px;
    }

    .detail-hero-section {
        height: 40vh;
        min-height: 300px;
    }

    .detail-crystal-name {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }

    .detail-crystal-freq {
        font-size: 1.1rem;
        padding: 6px 15px;
    }

    .detail-freq-math {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    .detail-player-section {
        padding: 12px;
        transform: translateY(-30px);
        margin-bottom: 15px;
    }

    .detail-visualizer-container {
        height: 100px;
    }

    .detail-player-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .detail-description-section {
        margin-top: -15px;
        padding: 0 10px;
    }

    .detail-crystal-short-desc {
        padding: 15px;
        font-size: 1rem;
        line-height: 1.5;
    }

    .detail-sections {
        padding: 10px;
        gap: 20px;
    }

    .detail-properties,
    .detail-section {
        padding: 15px;
    }

    .detail-properties h2,
    .detail-section h2 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .property {
        padding: 10px 15px;
    }

    .property-label {
        font-size: 0.95rem;
        min-width: 90px;
    }

    .property-value {
        font-size: 0.95rem;
    }

    .detail-section-content {
        padding: 15px;
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

    /* Crystal image */
    .crystal-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    /* Play button */
    .play-button {
        width: 45px;
        height: 45px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 10;
        background: linear-gradient(145deg, rgba(188, 171, 223, 0.7), rgba(159, 139, 199, 0.7));
        border: 2px solid rgba(255, 255, 255, 0.3);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Play button icon */
    .play-button::after {
        content: '▶';
        color: #121212;
        font-size: 18px;
        margin-left: 3px;
    }

    /* Frequency math display for small screens - REMOVED (redundant frequency label) */

    .crystal-name {
        font-size: 1.3rem !important;
    }

    .crystal-info {
        font-size: 1rem !important;
    }
}

.crystal-card:hover .crystal-image {
    transform: scale(1.02);
}

.crystal-card-content {
    padding: 12px; /* Compact padding for content area */
    display: flex;
    flex-direction: column;
    gap: 6px; /* Tight spacing for content */
    flex: 1;
    background: var(--gradient-card);
    overflow: hidden;
    word-wrap: break-word;
    border-radius: 0 0 16px 16px;
    border-top: 1px solid var(--border-subtle);
    min-height: 100px; /* Reduced since image is separate */
}

/* Crystal image section - full width, no cropping */
.crystal-image-section {
    position: relative;
    width: 100%;
    height: auto; /* Auto height to accommodate full image */
    min-height: 180px; /* Minimum height for consistency */
    background-color: #000;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px; /* Small padding to ensure full visibility */
}

.crystal-image {
    width: 100%;
    height: auto; /* Auto height to preserve aspect ratio */
    max-width: 100%;
    object-fit: contain; /* Ensures complete image is visible, no cropping */
    transition: all 0.3s ease;
}

/* Desktop frequency display */
.frequency-display {
    text-align: center;
    margin-bottom: 6px;
    flex-shrink: 0;
}

.frequency-info {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    font-family: 'Mansfield', monospace;
    letter-spacing: 0.5px;
}

/* Desktop chakra info */
.chakra-info {
    text-align: center;
    margin: 4px 0 0 0;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.chakra-info span {
    color: #bcabdf;
    font-size: 0.8rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Crystal lore styles for desktop - ensure visibility */
.crystal-lore {
    font-size: 0.85rem !important;
    line-height: 1.3 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    text-align: center !important;
    margin: 6px 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    word-break: break-word !important;
    hyphens: auto !important;
    flex: 1 !important;
    min-height: 30px !important;
}

/* Clean Mobile Crystal Card Content */
@media (max-width: 768px) {
    .crystal-card-content {
        padding: 20px !important;
        gap: 15px !important;
        background: var(--card-bg-color) !important;
        border-radius: 0 0 16px 16px !important;
        min-height: 200px !important;
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .crystal-title-row {
        display: flex !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        margin-bottom: 15px !important;
    }

    .crystal-name {
        font-size: 1.4rem !important;
        font-weight: 600 !important;
        color: #bcabdf !important;
        max-width: calc(100% - 100px) !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: initial !important;
        line-height: 1.3 !important;
    }

    .frequency-info {
        font-size: 1.1rem !important;
        color: #bcabdf !important;
        min-width: 90px !important;
        text-align: right !important;
        flex-shrink: 0 !important;
        font-weight: 600 !important;
    }

    .crystal-info {
        font-size: 1.1rem !important;
        line-height: 1.6 !important;
        color: rgba(255, 255, 255, 0.95) !important;
        -webkit-line-clamp: none !important;
        line-clamp: none !important;
        max-height: none !important;
        overflow: visible !important;
        display: block !important;
        flex: 1 !important;
    }

    .frequency-display {
        text-align: center !important;
        margin: 10px 0 !important;
    }

    .frequency-display .frequency-info {
        font-size: 1.3rem !important;
        text-align: center !important;
        min-width: auto !important;
    }

    .crystal-lore {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        margin: 10px 0 !important;
        -webkit-line-clamp: none !important;
        line-clamp: none !important;
        overflow: visible !important;
        display: block !important;
        flex: 1 !important;
    }

    .chakra-info {
        margin-top: auto !important;
        padding: 8px 12px !important;
        text-align: center !important;
    }

    .chakra-info span {
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .crystal-card-content {
        padding: 18px !important; /* Still generous on small mobile */
        gap: 12px !important;
        min-height: 180px !important; /* Ensure content area is large enough */
    }
}

/* Crystal title header styles */
.crystal-title-header {
    background: var(--transport-bg);
    padding: 12px 18px;
    text-align: center;
    border-radius: 16px 16px 0 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border: 2px solid black;
    border-bottom: none;
}

.crystal-title {
    font-family: 'Noefire', sans-serif;
    font-size: 1.1rem; /* Smaller title to ensure names always fit */
    color: #ffffff !important; /* White color for better contrast on bright backgrounds */
    margin: 0;
    line-height: 1.3;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Strong text effects for readability on bright backgrounds */
    text-shadow:
        0 0 8px rgba(0, 0, 0, 0.9),
        0 2px 6px rgba(0, 0, 0, 0.8),
        0 4px 12px rgba(0, 0, 0, 0.6);
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.3);
    /* Add drop shadow to bottom of title */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}

/* Crystal title row styles */
.crystal-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    overflow: hidden; /* Prevent overflow */
}

/* Crystal name and info styles */
.crystal-name {
    font-family: 'Noefire', sans-serif;
    font-size: 1.2rem; /* Bigger crystal name */
    color: #bcabdf !important; /* Light purple color - force override */
    margin: 0;
    line-height: 1.2;
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: nowrap; /* Keep on one line */
    overflow: hidden; /* Hide overflow */
    text-overflow: ellipsis; /* Add ellipsis for very long names */
    max-width: calc(100% - 80px); /* Dynamically calculate width based on frequency width */
    /* Small drop shadow */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 480px) {
    .crystal-name {
        font-size: 0.9rem;
        max-width: calc(100% - 65px);
    }
}

.crystal-info {
    font-family: 'Mansfield', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 5px 0 0 0;
    line-height: 1.4;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 480px) {
    .crystal-info {
        font-size: 0.8rem;
        line-height: 1.3;
        margin: 3px 0 0 0;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
}

.frequency-info {
    font-size: 0.85rem; /* Further reduced from 0.9rem to fit better on one line */
    color: #bcabdf; /* Explicitly using the purple hex code */
    opacity: 0.9;
    font-weight: 600;
    text-align: right;
    font-family: 'Orbitron', sans-serif; /* Same font as the title */
    letter-spacing: 0.5px;
    display: inline-block;
    margin-left: 5px; /* Reduced from 10px */
    white-space: nowrap; /* Keep on one line */
    min-width: 70px; /* Ensure consistent spacing */
    flex-shrink: 0; /* Prevent frequency from shrinking */
}

@media (max-width: 480px) {
    .frequency-info {
        font-size: 0.75rem;
        min-width: 60px;
        letter-spacing: 0.3px;
    }
}

/* Removed active card styles */

/* Removed active state styling for play button */

/* No visual indicator for active card - removed styling */

/* Crystal Detail View - Popup with Sidebar Visible */
.crystal-detail-view {
    display: none; /* Initially hidden */
    position: fixed;
    top: 0;
    left: 250px; /* Start after sidebar width */
    width: calc(100% - 250px); /* Take remaining width after sidebar */
    height: 100%;
    background: var(--gradient-bg-1); /* Amazing deep purple gradient background */
    backdrop-filter: blur(10px);
    z-index: 10000;
    overflow-y: auto;
    font-family: 'Mansfield', sans-serif;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    visibility: hidden;
}

/* Detail container for popup */
.crystal-detail-view .detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Detail content styling for popup */
.crystal-detail-view .detail-content {
    background: var(--gradient-bg-3); /* Amazing purple gradient background */
    border-radius: 20px;
    padding: 30px;
    margin-top: 20px;
    box-shadow: var(--container-shadow);
    border: 1px solid rgba(188, 171, 223, 0.4);
    flex: 1;
}

/* Detail Play Section */
.detail-play-section {
    margin: 25px 0;
    text-align: center;
    padding: 20px;
    background: var(--gradient-bg-2); /* Amazing purple gradient background */
    border-radius: 12px;
    border: 1px solid rgba(188, 171, 223, 0.4);
    box-shadow: var(--elevated-shadow);
}

.detail-play-button {
    background: linear-gradient(135deg, var(--highlight-color), var(--secondary-highlight));
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 15px;
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(125, 80, 199, 0.3);
}

.detail-play-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(125, 80, 199, 0.4);
    background: linear-gradient(135deg, var(--secondary-highlight), var(--highlight-color));
}

.detail-play-button:active {
    transform: translateY(0);
}

.detail-play-button.playing {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.detail-play-button.playing:hover {
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.play-instruction {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.detail-container {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
}

/* Removed fixed header - back button is now in the hero overlay */

.back-button {
    background: var(--gradient-bg-2); /* Amazing purple gradient background */
    border: 1px solid rgba(188, 171, 223, 0.4);
    color: var(--accent-light);
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Mansfield', sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--elevated-shadow);
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.back-button:hover {
    background: var(--gradient-bg-3); /* Amazing lighter purple gradient on hover */
    transform: translateX(-3px);
    box-shadow: var(--container-shadow);
}

.back-button:active {
    transform: translateX(-1px);
}

.detail-content {
    background-color: var(--card-bg-color);
    padding: 0;
    overflow: hidden;
    position: relative;
    max-width: 100%;
    margin-top: 0;
}

.detail-content-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
}

.detail-main {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 40px !important;
    margin: 30px 0 40px !important;
    align-items: start !important;
    position: relative !important;
    overflow: hidden !important;
}

.detail-image-container {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3) !important;
    background-color: rgba(0, 0, 0, 0.3) !important;
    padding: 15px !important;
    border: 1px solid rgba(188, 171, 223, 0.2) !important;
}

.detail-image-container img {
    width: 100% !important;
    border-radius: 8px !important;
    object-fit: contain !important;
    max-height: 400px !important;
    transition: transform 0.5s ease !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4) !important;
}

.detail-image-container:hover img {
    transform: scale(1.03);
}

/* Immersive Hero Section with Crystal Name at Top */
.detail-hero-section {
    position: relative;
    width: 100%;
    height: 70vh; /* Taller hero section */
    min-height: 500px;
    overflow: hidden;
    margin: 0 0 30px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.detail-hero-section .detail-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: #000;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.detail-hero-section .detail-crystal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
    animation: subtle-zoom 20s infinite alternate ease-in-out;
}

@keyframes subtle-zoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}

.detail-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.1) 10%,
        rgba(0, 0, 0, 0.05) 30%,
        rgba(0, 0, 0, 0.0) 50%,
        rgba(0, 0, 0, 0.05) 70%,
        rgba(0, 0, 0, 0.2) 100%);
    text-align: center;
    padding: 20px;
}

.detail-crystal-name {
    color: #fff;
    margin-bottom: 15px;
    font-family: 'Orbitron', sans-serif;
    font-size: 4.5rem;
    letter-spacing: 2px;
    text-align: center;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
    font-weight: bold;
    transform: translateY(-20px);
    opacity: 0;
    animation: fade-in-down 1s forwards 0.3s ease-out;
    background: linear-gradient(to right, #fff, var(--highlight-color), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

@keyframes fade-in-down {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Detail frequency row */
.detail-freq-row {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 30px 0;
    flex-wrap: wrap;
    gap: 20px;
    transform: translateY(-10px);
    opacity: 0;
    animation: fade-in-up 1s forwards 0.6s ease-out;
    width: 100%;
    max-width: 800px; /* Limit width to prevent excessive stretching */
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
    box-sizing: border-box;
}

@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Detail crystal frequency */
.detail-crystal-freq {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-align: center;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
    background: var(--accent-medium); /* Amazing medium purple background */
    padding: 10px 25px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    white-space: normal; /* Allow text to wrap */
    overflow: visible; /* Ensure text is not cut off */
    max-width: 100%; /* Allow full width */
    display: inline-block; /* Ensure proper display */
    line-height: 1.4; /* Increase line height for better readability */
    word-break: break-word; /* Allow breaking long words */
}

/* Detail frequency math */
.detail-freq-math {
    font-size: 1.1rem;
    color: #fff;
    background: var(--accent-dark); /* Amazing deep purple background */
    padding: 10px 20px;
    border-radius: 30px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    box-shadow: var(--elevated-shadow);
    white-space: normal; /* Allow text to wrap */
    overflow: visible; /* Ensure text is not cut off */
    max-width: 100%; /* Allow full width */
    line-height: 1.4; /* Increase line height for better readability */
    word-break: break-word; /* Allow breaking long words */
}

/* Player Controls Section */
.detail-player-section {
    background: var(--gradient-bg-2); /* Amazing purple gradient background */
    border-radius: 20px;
    padding: 25px;
    margin: 0 auto 40px;
    box-shadow: var(--container-shadow);
    border: 1px solid rgba(188, 171, 223, 0.3);
    max-width: 1200px;
    position: relative;
    z-index: 10;
    transform: translateY(-80px);
}

/* New Crystal Detail Page Layout */
.detail-header-section {
    text-align: center;
    padding: 30px 0;
    border-bottom: 1px solid rgba(188, 171, 223, 0.2);
    margin-bottom: 30px;
}

.detail-crystal-name {
    font-size: 3rem;
    font-weight: bold;
    color: var(--highlight-color);
    margin: 0 0 20px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.detail-freq-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.detail-crystal-freq {
    background: linear-gradient(135deg, var(--highlight-color), var(--secondary-highlight));
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(125, 80, 199, 0.3);
}

.detail-freq-math {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Visualizer Section - Prominent at Top */
.detail-visualizer-section {
    background: var(--gradient-bg-2); /* Amazing purple gradient background */
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid rgba(188, 171, 223, 0.3);
    box-shadow: var(--container-shadow);
}

.visualizer-header {
    text-align: center;
    margin-bottom: 25px;
}

.visualizer-header h3 {
    color: var(--highlight-color);
    font-size: 1.5rem;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.visualizer-header p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 1rem;
}

.detail-visualizer-container {
    background: var(--accent-dark); /* Amazing deep purple background */
    border-radius: 15px;
    height: 150px;
    margin-bottom: 25px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 20px rgba(15, 8, 24, 0.8);
    border: 2px solid rgba(188, 171, 223, 0.3);
}

.detail-waveform {
    width: 100%;
    height: 100%;
}

/* Play Controls Section */
.detail-play-controls {
    text-align: center;
}

.detail-play-button {
    background: linear-gradient(135deg, var(--highlight-color), var(--secondary-highlight));
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
    box-shadow: 0 6px 20px rgba(125, 80, 199, 0.4);
    min-width: 250px;
}

.detail-play-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(125, 80, 199, 0.5);
    background: linear-gradient(135deg, var(--secondary-highlight), var(--highlight-color));
}

.detail-play-button:active {
    transform: translateY(0);
}

.detail-play-button.playing {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.detail-play-button.playing:hover {
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5);
}

.play-instruction {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin: 0;
    line-height: 1.4;
}

/* Crystal Information Grid */
.detail-info-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 40px;
    align-items: start;
}

.detail-image-section {
    position: relative;
}

.detail-image-container {
    background: var(--gradient-bg-3); /* Amazing purple gradient background */
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(188, 171, 223, 0.3);
    box-shadow: var(--container-shadow);
}

.detail-crystal-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    object-fit: cover;
    max-height: 400px;
    transition: transform 0.3s ease;
}

.detail-crystal-image:hover {
    transform: scale(1.02);
}

.detail-description-section {
    background: var(--gradient-bg-3); /* Amazing purple gradient background */
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(188, 171, 223, 0.3);
    box-shadow: var(--container-shadow);
}

.detail-description-section h3 {
    color: var(--highlight-color);
    font-size: 1.5rem;
    margin: 0 0 20px 0;
    font-weight: 600;
}

.detail-crystal-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
}

/* Responsive Design for Crystal Detail Page */
@media (max-width: 768px) {
    .detail-header-section {
        padding: 20px 0;
    }

    .detail-crystal-name {
        font-size: 2.2rem;
    }

    .detail-freq-info {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .detail-visualizer-section {
        padding: 20px;
        margin-bottom: 30px;
    }

    .detail-visualizer-container {
        height: 120px;
    }

    .detail-play-button {
        padding: 15px 30px;
        font-size: 1.1rem;
        min-width: 200px;
    }

    /* Tablet styles for detail volume controls */
    .detail-volume-controls {
        margin-top: 25px;
        padding: 18px;
    }

    .detail-volume-controls .volume-control-box {
        padding: 14px;
    }

    .detail-volume-controls .volume-control label {
        font-size: 0.95rem;
    }

    .detail-info-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .detail-image-container,
    .detail-description-section {
        padding: 20px;
    }

    .detail-crystal-image {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .detail-crystal-name {
        font-size: 1.8rem;
    }

    .detail-crystal-freq,
    .detail-freq-math {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .detail-visualizer-section {
        padding: 15px;
    }

    .detail-visualizer-container {
        height: 100px;
    }

    .detail-play-button {
        padding: 12px 25px;
        font-size: 1rem;
        min-width: 180px;
    }

    /* Mobile styles for detail volume controls */
    .detail-volume-controls {
        margin-top: 20px;
        padding: 15px;
    }

    .detail-volume-controls .volume-control-box {
        padding: 12px;
        margin-bottom: 10px;
    }

    .detail-volume-controls .volume-control label {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }

    /* Detail page volume controls - mobile optimized */
    .detail-volume-controls input[type="range"] {
        height: 10px; /* Larger track for better mobile touch */
        padding: 22px 0; /* Large touch area */
        margin: 28px 0; /* More spacing */
    }

    .detail-volume-controls input[type="range"]::-webkit-slider-thumb {
        width: 38px; /* Large thumb for detail page mobile */
        height: 38px;
        border: 4px solid rgba(255, 255, 255, 0.95);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(188, 171, 223, 0.4);
        transition: all 0.2s ease;
    }

    .detail-volume-controls input[type="range"]::-moz-range-thumb {
        width: 38px; /* Large thumb for detail page mobile */
        height: 38px;
        border: 4px solid rgba(255, 255, 255, 0.95);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(188, 171, 223, 0.4);
    }

    /* Touch feedback for detail page sliders */
    .detail-volume-controls input[type="range"]:active::-webkit-slider-thumb {
        transform: scale(0.95);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), 0 0 0 3px rgba(188, 171, 223, 0.6);
    }

    .detail-volume-controls input[type="range"]::-webkit-slider-thumb {
        width: 22px;
        height: 22px;
    }

    .detail-volume-controls input[type="range"]::-moz-range-thumb {
        width: 22px;
        height: 22px;
    }
}

.detail-player-controls {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 10px 0;
}

.detail-player-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--highlight-color);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.detail-player-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.detail-volume-controls {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detail-volume-control {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-volume-control label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-volume-control input[type="range"] {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(188, 171, 223, 0.2);
    border-radius: 3px;
    outline: none;
}

.detail-volume-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--highlight-color);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Crystal Description */
.detail-description-section {
    margin: -40px auto 40px;
    max-width: 1200px;
    position: relative;
    z-index: 5;
}

.detail-crystal-short-desc {
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    padding: 30px;
    background-color: rgba(30, 30, 35, 0.9);
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(188, 171, 223, 0.3);
    position: relative;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* Additional styling for Detail Play Button */
.detail-play-button {
    background-color: var(--highlight-color);
    color: #121212;
    border: none;
    padding: 16px 35px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 10px 0 0;
    text-align: center;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    letter-spacing: 1px;
    font-family: 'Mansfield', sans-serif;
    position: relative;
    overflow: hidden;
}

.play-icon {
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    margin-right: 5px;
}

.detail-play-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.detail-play-button:hover::before {
    left: 100%;
}

.detail-play-button.active {
    background-color: #d0c3ec;
}

/* High contrast styles for better accessibility */
.player-toggle, .detail-play-button {
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

/* Player toggle active state - no background color change */
.player-toggle.active {
    /* No background color change to ensure color stays consistent */
    content: "active"; /* Non-visual property to avoid empty ruleset warning */
}

/* Hover effect enhancement - without changing background color */
.player-toggle:hover {
    /* No background color change to ensure color stays consistent */
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

.detail-play-button:hover {
    background-color: #d0c3ec;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

.player-toggle:active {
    transform: translateY(1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.detail-play-button:active {
    transform: translateY(1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.detail-sections {
    display: grid;
    gap: 40px;
    margin: 0 auto;
    max-width: 1200px;
    padding: 20px 30px 50px;
}

.detail-properties,
.detail-section {
    background-color: rgba(20, 20, 25, 0.9);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(188, 171, 223, 0.2);
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-properties:hover,
.detail-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.detail-properties h2,
.detail-section h2 {
    color: #fff;
    font-family: 'Noefire', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 30px;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    padding-bottom: 15px;
}

.detail-properties h2::after,
.detail-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--highlight-color), transparent);
    border-radius: 3px;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.property {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.property:hover {
    background-color: rgba(188, 171, 223, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.property-label {
    font-weight: 600;
    color: var(--highlight-color);
    letter-spacing: 0.5px;
    margin-right: 15px;
    min-width: 110px;
    font-size: 1.05rem;
}

.property-value {
    color: rgba(255, 255, 255, 0.95);
    text-align: right;
    flex: 1;
    word-break: break-word;
    font-size: 1.05rem;
}

.detail-section-content {
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1.8;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.detail-section-content p {
    margin-bottom: 20px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.detail-section-content p:last-child {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .app-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        max-height: 300px;
        overflow-y: auto;
        height: auto;
        min-height: 300px;
    }

    .detail-hero-section {
        height: 60vh;
        min-height: 400px;
    }

    .detail-crystal-name {
        font-size: 3.5rem;
    }

    .detail-freq-row {
        flex-direction: column;
        gap: 15px;
    }

    .detail-player-section {
        padding: 20px;
        transform: translateY(-60px);
    }

    .detail-description-section {
        margin-top: -30px;
        padding: 0 20px;
    }

    .detail-sections {
        padding: 20px;
    }

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

    .main-content {
        width: 100%;
        height: auto;
        min-height: calc(100vh - 300px);
    }
}

@media (max-width: 768px) {
    .sidebar-crystal-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .crystals-container {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 16px !important; /* Consistent gap */
        padding: 16px !important; /* Even padding all around */
        justify-content: space-evenly; /* Even distribution */
    }

    .volume-controls {
        flex-direction: column;
    }

    /* Mobile detail view styles */
    .back-button {
        padding: 8px 15px;
        font-size: 0.9rem;
        top: 15px;
        left: 15px;
    }

    .detail-hero-section {
        height: 50vh;
        min-height: 350px;
    }

    .detail-crystal-name {
        font-size: 2.8rem;
        letter-spacing: 1px;
    }

    .detail-crystal-freq {
        font-size: 1.3rem;
        padding: 8px 20px;
    }

    .detail-freq-math {
        font-size: 0.95rem;
        padding: 8px 15px;
    }

    .detail-player-section {
        padding: 15px;
        transform: translateY(-40px);
        margin-bottom: 20px;
    }

    .detail-player-controls {
        gap: 15px;
    }

    .detail-description-section {
        margin-top: -20px;
        padding: 0 15px;
    }

    .detail-crystal-short-desc {
        padding: 20px;
        font-size: 1.1rem;
        line-height: 1.6;
    }

    .detail-sections {
        padding: 15px;
        gap: 25px;
    }

    .detail-properties,
    .detail-section {
        padding: 20px;
    }

    .detail-properties h2,
    .detail-section h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .detail-section-content {
        padding: 20px;
        font-size: 1rem;
    }

    .player-bar {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        padding: 8px;
    }

    .player-toggle {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .player-info {
        text-align: right;
        font-size: 0.8rem;
        line-height: 1.1;
    }

    .status-bar {
        padding: 8px;
        margin-bottom: 5px;
    }

    .visualizer-container {
        height: 70px;
    }

    .transport-section {
        padding: 8px;
        max-height: 180px;
    }
}

/* ===== MAGAZINE-STYLE CRYSTAL DETAIL PAGE ===== */

/* Crystal Article Layout */
.crystal-article {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    line-height: 1.7;
    font-family: 'Mansfield', sans-serif;
}

/* Article Header - Magazine Style */
.article-header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(26, 26, 30, 0.95), rgba(18, 18, 22, 0.95));
    border-radius: 20px 20px 0 0;
    border-bottom: 3px solid var(--highlight-color);
    position: relative;
    overflow: hidden;
}

.article-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(188, 171, 223, 0.1) 50%, transparent 70%);
    pointer-events: none;
}

.article-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: bold;
    color: #fff;
    margin: 0 0 20px 0;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
    letter-spacing: 2px;
    background: linear-gradient(135deg, #fff, var(--highlight-color), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.article-subtitle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.frequency-badge {
    background: linear-gradient(135deg, var(--highlight-color), var(--secondary-highlight));
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 1.3rem;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(125, 80, 199, 0.4);
    letter-spacing: 1px;
}

.frequency-details {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

/* Enhanced Visualizer Section */
.visualizer-section {
    background: linear-gradient(135deg, rgba(20, 20, 25, 0.95), rgba(15, 15, 20, 0.95));
    border-radius: 0;
    padding: 40px 30px;
    margin: 0;
    border-top: 1px solid rgba(188, 171, 223, 0.2);
    border-bottom: 1px solid rgba(188, 171, 223, 0.2);
    position: relative;
    overflow: hidden;
}

.visualizer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(188, 171, 223, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.visualizer-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.visualizer-header h2 {
    color: var(--highlight-color);
    font-size: 2rem;
    margin: 0 0 10px 0;
    font-weight: 600;
    font-family: 'Noefire', sans-serif;
    letter-spacing: 1px;
}

.visualizer-header p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 1.1rem;
    font-style: italic;
}

.enhanced-visualizer-container {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(10, 10, 15, 0.8));
    border-radius: 20px;
    height: 200px;
    margin-bottom: 30px;
    overflow: hidden;
    position: relative;
    box-shadow:
        inset 0 0 30px rgba(0, 0, 0, 0.8),
        0 10px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(188, 171, 223, 0.3);
}

/* Fullscreen Button */
.fullscreen-button {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: linear-gradient(135deg, rgba(188, 171, 223, 0.9), rgba(159, 139, 199, 0.9));
    border: none;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.fullscreen-button:hover {
    background: linear-gradient(135deg, rgba(188, 171, 223, 1), rgba(159, 139, 199, 1));
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(188, 171, 223, 0.4);
}

.fullscreen-button svg {
    width: 20px;
    height: 20px;
    fill: white;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* Fullscreen Visualizer Overlay */
.fullscreen-visualizer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background:
        radial-gradient(ellipse at center top, rgba(26, 15, 38, 0.9) 0%, rgba(0, 0, 0, 0.95) 50%),
        linear-gradient(135deg, rgba(45, 27, 61, 0.8), rgba(10, 10, 15, 0.98));
    z-index: 99999;
    display: none;
    backdrop-filter: blur(25px);
    animation: fadeIn 0.6s ease-out;
    overflow: hidden;
}

.fullscreen-visualizer-overlay.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(20px);
    }
}

/* Fullscreen Close Button */
.fullscreen-close-button {
    position: absolute;
    top: 35px;
    right: 35px;
    background:
        linear-gradient(135deg, rgba(188, 171, 223, 0.3), rgba(188, 171, 223, 0.2)),
        radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%),
        rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(188, 171, 223, 0.6);
    border-radius: 50%;
    width: 65px;
    height: 65px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100001;
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 30px rgba(188, 171, 223, 0.2);
    backdrop-filter: blur(20px);
    color: #bcabdf;
    font-size: 28px;
    font-weight: bold;
}

.fullscreen-close-button:hover {
    background:
        linear-gradient(135deg, rgba(188, 171, 223, 0.5), rgba(188, 171, 223, 0.3)),
        radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%),
        rgba(0, 0, 0, 0.5);
    border-color: rgba(188, 171, 223, 0.9);
    transform: scale(1.15) rotate(90deg);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 50px rgba(188, 171, 223, 0.5);
    color: #ffffff;
}

.fullscreen-close-button svg {
    width: 24px;
    height: 24px;
    stroke: white;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* Fullscreen Visualizer Container */
.fullscreen-visualizer-container {
    width: 95vw;
    max-width: 1600px;
    height: 75vh;
    background:
        radial-gradient(ellipse at center top, rgba(26, 15, 38, 0.9) 0%, rgba(0, 0, 0, 0.95) 50%),
        linear-gradient(135deg, rgba(45, 27, 61, 0.8), rgba(10, 10, 15, 0.98)),
        linear-gradient(180deg, rgba(0, 0, 0, 0.8), rgba(15, 15, 20, 0.9));
    border-radius: 35px;
    position: relative;
    overflow: hidden;
    box-shadow:
        inset 0 0 80px rgba(0, 0, 0, 0.9),
        0 30px 80px rgba(0, 0, 0, 0.8),
        0 0 150px rgba(188, 171, 223, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 3px solid rgba(188, 171, 223, 0.5);
    animation: scaleIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.fullscreen-visualizer-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(188, 171, 223, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.fullscreen-visualizer-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--highlight-color), transparent);
    opacity: 0.8;
    z-index: 2;
}

/* Fullscreen Canvas */
.fullscreen-waveform {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 3;
    border-radius: 30px;
}

/* Fullscreen Title */
.fullscreen-visualizer-title {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--highlight-color);
    font-family: 'Noefire', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-shadow:
        0 4px 15px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(188, 171, 223, 0.4),
        0 0 60px rgba(188, 171, 223, 0.2);
    z-index: 100001;
    text-align: center;
    animation: titleGlow 3s ease-in-out infinite alternate;
    background: linear-gradient(135deg, #bcabdf, #e6d9ff, #bcabdf);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite alternate, gradientShift 4s ease-in-out infinite;
}

@keyframes titleGlow {
    from {
        text-shadow:
            0 4px 15px rgba(0, 0, 0, 0.8),
            0 0 30px rgba(188, 171, 223, 0.4),
            0 0 60px rgba(188, 171, 223, 0.2);
    }
    to {
        text-shadow:
            0 4px 15px rgba(0, 0, 0, 0.8),
            0 0 50px rgba(188, 171, 223, 0.7),
            0 0 100px rgba(188, 171, 223, 0.4);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Mobile Responsive Styles for Fullscreen Visualizer */
@media (max-width: 768px) {
    .fullscreen-visualizer-container {
        width: 95vw;
        height: 50vh;
        border-radius: 20px;
    }

    .fullscreen-visualizer-title {
        font-size: 1.8rem;
        top: 20px;
        padding: 0 20px;
        text-align: center;
        line-height: 1.2;
    }

    .fullscreen-close-button {
        top: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .fullscreen-button {
        bottom: 8px;
        right: 8px;
        width: 35px;
        height: 35px;
    }

    .fullscreen-button svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .fullscreen-visualizer-container {
        width: 98vw;
        height: 45vh;
        border-radius: 15px;
    }

    .fullscreen-visualizer-title {
        font-size: 1.5rem;
        top: 15px;
        padding: 0 15px;
    }

    .fullscreen-close-button {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }

    .fullscreen-close-button svg {
        width: 20px;
        height: 20px;
    }
}



.visualizer-controls {
    text-align: center;
    position: relative;
    z-index: 1;
}

.enhanced-play-button {
    background: linear-gradient(135deg, var(--highlight-color), var(--secondary-highlight));
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 auto 20px;
    min-width: 250px;
    box-shadow: 0 8px 25px rgba(125, 80, 199, 0.4);
    letter-spacing: 1px;
    font-family: 'Mansfield', sans-serif;
    position: relative;
    overflow: hidden;
}

.enhanced-play-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.6s;
}

.enhanced-play-button:hover::before {
    left: 100%;
}

.enhanced-play-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(125, 80, 199, 0.6);
    background: linear-gradient(135deg, var(--secondary-highlight), var(--highlight-color));
}

.enhanced-play-button:active {
    transform: translateY(-1px);
}

.enhanced-play-button.playing {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.enhanced-play-button.playing:hover {
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.6);
}

/* Render 15min Audio Button */
.render-15min-button {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 16px 35px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
    font-family: 'Mansfield', sans-serif;
    position: relative;
    overflow: hidden;
    min-width: 200px;
}

.render-15min-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.6s;
}

.render-15min-button:hover::before {
    left: 100%;
}

.render-15min-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(76, 175, 80, 0.6);
    background: linear-gradient(135deg, #45a049, #4CAF50);
}

.render-15min-button:active {
    transform: translateY(-1px);
}

.render-15min-button:disabled {
    background: linear-gradient(135deg, #666, #555);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.render-15min-button.rendering {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.4);
    cursor: not-allowed;
}

.render-15min-button.rendering:hover {
    box-shadow: 0 12px 35px rgba(255, 152, 0, 0.6);
    transform: translateY(-3px);
}

.render-icon {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.render-text {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.render-instruction {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 5px 0 0 0;
    text-align: center;
    font-style: italic;
}

/* Download 15min Audio Button */
.download-15min-button {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    border: none;
    padding: 16px 35px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.4);
    font-family: 'Mansfield', sans-serif;
    position: relative;
    overflow: hidden;
    min-width: 200px;
}

.download-15min-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.6s;
}

.download-15min-button:hover::before {
    left: 100%;
}

.download-15min-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(33, 150, 243, 0.6);
    background: linear-gradient(135deg, #1976D2, #2196F3);
}

.download-15min-button:active {
    transform: translateY(-1px);
}

.download-15min-button:disabled {
    background: linear-gradient(135deg, #666, #555);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.download-icon {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-text {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.visualizer-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Detail Volume Section - Under Visualizer */
.detail-volume-controls {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(10, 10, 15, 0.6));
    border-radius: 15px;
    border: 1px solid rgba(188, 171, 223, 0.2);
    position: relative;
    z-index: 1;
}

.detail-volume-controls .volume-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0;
}

.detail-volume-controls .volume-control-box {
    background-color: rgba(21, 21, 21, 0.8);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(188, 171, 223, 0.3);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.detail-volume-controls .volume-control-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(188, 171, 223, 0.4), transparent);
}

.detail-volume-controls .volume-control {
    display: flex;
    flex-direction: column;
    width: 100%;
    font-size: 1rem;
}

.detail-volume-controls .volume-control label {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.detail-volume-controls input[type="range"] {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(188, 171, 223, 0.2);
    border-radius: 4px;
    outline: none;
    transition: all 0.3s ease;
}

.detail-volume-controls input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--highlight-color), var(--secondary-highlight));
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.detail-volume-controls input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}

.detail-volume-controls input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--highlight-color), var(--secondary-highlight));
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.detail-volume-control input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(125, 80, 199, 0.4);
}

.detail-volume-control input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--highlight-color), var(--secondary-highlight));
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.detail-volume-control input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(125, 80, 199, 0.4);
}

/* Crystal Hero Section - Large Centered Image */
.crystal-hero-section {
    padding: 50px 30px;
    background: linear-gradient(135deg, rgba(26, 26, 30, 0.95), rgba(18, 18, 22, 0.95));
    border-radius: 0;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.crystal-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(188, 171, 223, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.hero-image-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-crystal-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 20px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(188, 171, 223, 0.2);
    transition: all 0.5s ease;
    border: 3px solid rgba(188, 171, 223, 0.3);
}

.hero-crystal-image:hover {
    transform: scale(1.02);
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.7),
        0 0 60px rgba(188, 171, 223, 0.4);
}

/* Article Content Section */
.article-content {
    padding: 40px 30px;
    background: linear-gradient(135deg, rgba(26, 26, 30, 0.95), rgba(18, 18, 22, 0.95));
    border-radius: 0;
    margin: 0;
    border-top: 1px solid rgba(188, 171, 223, 0.2);
    border-bottom: 1px solid rgba(188, 171, 223, 0.2);
}

.content-intro h2 {
    color: var(--highlight-color);
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    margin: 0 0 25px 0;
    text-align: center;
    letter-spacing: 1px;
    position: relative;
}

.content-intro h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--highlight-color), transparent);
    border-radius: 3px;
}

.crystal-description {
    font-size: 1.3rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* Magazine-Style Content Sections */
.article-sections {
    background: linear-gradient(135deg, rgba(26, 26, 30, 0.95), rgba(18, 18, 22, 0.95));
    border-radius: 0 0 20px 20px;
    padding: 50px 30px;
    margin: 0;
}

.magazine-section {
    background: linear-gradient(135deg, rgba(35, 35, 40, 0.9), rgba(25, 25, 30, 0.9));
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid rgba(188, 171, 223, 0.2);
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.magazine-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--highlight-color), var(--secondary-highlight));
}

.magazine-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-color: rgba(188, 171, 223, 0.4);
}

.section-title {
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    margin: 0 0 30px 0;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--highlight-color), transparent);
    border-radius: 3px;
}

/* Properties Grid - Magazine Style */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.property-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 25px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(10, 10, 15, 0.6));
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    gap: 8px;
}

.property-item:hover {
    background: linear-gradient(135deg, rgba(188, 171, 223, 0.15), rgba(159, 139, 199, 0.2));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-color: rgba(188, 171, 223, 0.3);
}

.property-label {
    font-weight: 600;
    color: var(--highlight-color);
    letter-spacing: 0.5px;
    font-size: 1rem;
    margin-bottom: 4px;
    text-transform: uppercase;
    font-family: 'Orbitron', sans-serif;
}

.property-value {
    color: rgba(255, 255, 255, 0.95);
    text-align: left;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.4;
    word-wrap: break-word;
    width: 100%;
}

/* Section Content - Magazine Style */
.section-content {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(10, 10, 15, 0.6));
    border-radius: 15px;
    padding: 30px;
    margin-top: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1.8;
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.95);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4);
}

.section-content p {
    margin-bottom: 20px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.section-content p:last-child {
    margin-bottom: 0;
}

/* Responsive Design for Magazine Layout */
@media (max-width: 1024px) {
    .article-title {
        font-size: 3rem;
    }

    .enhanced-visualizer-container {
        height: 180px;
    }

    .hero-crystal-image {
        max-width: 450px;
    }

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

@media (max-width: 768px) {
    .article-header {
        padding: 30px 15px;
    }

    .article-title {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }

    .frequency-badge {
        font-size: 1.1rem;
        padding: 10px 20px;
    }

    .frequency-details {
        font-size: 1rem;
        padding: 10px 20px;
    }

    .visualizer-section {
        padding: 30px 20px;
    }

    .visualizer-header h2 {
        font-size: 1.7rem;
    }

    .enhanced-visualizer-container {
        height: 150px;
    }

    .enhanced-play-button {
        padding: 15px 30px;
        font-size: 1.1rem;
        min-width: 200px;
    }

    .detail-volume-section {
        margin-top: 25px;
        padding: 20px;
    }

    .detail-volume-section h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .crystal-hero-section {
        padding: 40px 20px;
    }

    .hero-crystal-image {
        max-width: 400px;
    }

    .article-content {
        padding: 30px 20px;
    }

    .content-intro h2 {
        font-size: 1.8rem;
    }

    .crystal-description {
        font-size: 1.1rem;
    }

    .article-sections {
        padding: 40px 20px;
    }

    .magazine-section {
        padding: 30px 20px;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .section-content {
        font-size: 1.05rem;
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .article-header {
        padding: 25px 15px;
    }

    .article-title {
        font-size: 2rem;
    }

    .article-subtitle {
        flex-direction: column;
        gap: 15px;
    }

    .frequency-badge,
    .frequency-details {
        font-size: 0.95rem;
        padding: 8px 16px;
    }

    .visualizer-section {
        padding: 25px 15px;
    }

    .visualizer-header h2 {
        font-size: 1.5rem;
    }

    .enhanced-visualizer-container {
        height: 120px;
    }

    .enhanced-play-button {
        padding: 12px 25px;
        font-size: 1rem;
        min-width: 180px;
    }

    .detail-volume-section {
        margin-top: 20px;
        padding: 15px;
    }

    .detail-volume-section h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .detail-volume-controls {
        gap: 15px;
    }

    .detail-volume-control label {
        font-size: 0.9rem;
    }

    .crystal-hero-section {
        padding: 30px 15px;
    }

    .hero-crystal-image {
        max-width: 300px;
    }

    .article-content {
        padding: 25px 15px;
    }

    .content-intro h2 {
        font-size: 1.6rem;
    }

    .crystal-description {
        font-size: 1rem;
        line-height: 1.6;
    }

    .article-sections {
        padding: 30px 15px;
    }

    .magazine-section {
        padding: 25px 15px;
        margin-bottom: 30px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .properties-grid {
        gap: 15px;
    }

    .property-item {
        padding: 16px 18px;
        gap: 6px;
    }

    .property-label {
        font-size: 0.9rem;
        margin-bottom: 3px;
    }

    .property-value {
        font-size: 1rem;
        line-height: 1.3;
    }

    .section-content {
        font-size: 1rem;
        padding: 20px 15px;
        line-height: 1.6;
    }
}

/* Additional Mobile Enhancements for Popup */
@media (max-width: 480px) {
    .crystal-detail-view .detail-container {
        padding: 15px;
    }

    .crystal-detail-view .detail-content {
        padding: 20px;
        margin-top: 10px;
    }
}

/* Ensure crystal detail view is always visible when active */
.crystal-detail-view.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 10000 !important;
}

/* Mobile responsive - full screen on mobile */
@media (max-width: 768px) {
    .crystal-detail-view {
        left: 0 !important;
        width: 100% !important;
        position: fixed !important;
        top: 0 !important;
        height: 100vh !important;
        overflow-y: auto !important;
        background-color: #121212 !important;
        z-index: 10001 !important;
        padding: 0 !important;
    }

    .crystal-detail-view .detail-container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        min-height: 100vh !important;
    }

    .crystal-detail-view .detail-content {
        background-color: #121212 !important;
        border-radius: 0 !important;
        padding: 20px 15px !important;
        margin: 0 !important;
        box-shadow: none !important;
        border: none !important;
        min-height: 100vh !important;
    }

    /* Back button positioning for mobile */
    .detail-header {
        position: sticky !important;
        top: 0 !important;
        background-color: rgba(18, 18, 18, 0.95) !important;
        backdrop-filter: blur(10px) !important;
        z-index: 100 !important;
        padding: 15px !important;
        margin: 0 !important;
        border-bottom: 1px solid rgba(188, 171, 223, 0.2) !important;
    }

    .back-button {
        background-color: rgba(188, 171, 223, 0.2) !important;
        border: 1px solid rgba(188, 171, 223, 0.4) !important;
        padding: 12px 20px !important;
        font-size: 1rem !important;
        border-radius: 8px !important;
        color: #bcabdf !important;
        font-weight: 500 !important;
    }

    .back-button:hover {
        background-color: rgba(188, 171, 223, 0.3) !important;
        transform: translateY(-1px) !important;
    }
}

    .detail-content {
        padding: 20px;
        border-radius: 12px;
    }

    .detail-main {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        margin-top: 20px !important;
    }

    .detail-sections {
        gap: 20px;
    }

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

    .detail-crystal-name {
        font-size: 1.8rem;
        margin-bottom: 20px;
        line-height: 1.2;
        word-wrap: break-word;
    }

    /* Detail frequency row for mobile */
    .detail-freq-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 15px;
    }

    /* Detail crystal frequency for mobile */
    .detail-crystal-freq {
        font-size: 1rem;
        line-height: 1.4;
        word-wrap: break-word;
        white-space: normal;
        overflow: visible;
        max-width: 100%;
        width: 100%; /* Full width on mobile */
        box-sizing: border-box;
        padding: 10px 15px;
        margin-bottom: 5px;
    }

    /* Detail frequency math for mobile */
    .detail-freq-math {
        font-size: 0.9rem;
        padding: 6px 12px;
        width: 100%;
        box-sizing: border-box;
    }

    .detail-crystal-short-desc {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 20px;
        word-wrap: break-word;
    }

    .back-button {
        width: 100%;
        margin-bottom: 15px;
        padding: 12px 20px;
    }

    .detail-play-button {
        width: 100%;
        padding: 15px;
        font-size: 1rem;
    }

    .detail-section-content {
        font-size: 1rem;
        line-height: 1.6;
        padding: 15px;
        word-wrap: break-word;
    }

    .detail-image-container {
        padding: 15px;
        margin-bottom: 15px;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: rgba(0, 0, 0, 0.3);
    }

    .detail-image-container img {
        max-height: 250px;
        max-width: 100%;
        object-fit: contain;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .property {
        padding: 15px;
        margin-bottom: 5px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .property-label {
        margin-bottom: 5px;
        font-size: 0.9rem;
        color: var(--highlight-color);
    }

    .property-value {
        font-size: 1rem;
        text-align: left;
        word-wrap: break-word;
        width: 100%;
    }

    .detail-properties h2,
    .detail-section h2 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
}

/* Enhanced slider interaction and accessibility */
.volume-control-box {
    transition: all 0.2s ease;
}

.volume-control-box:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Smooth transitions for all slider interactions */
input[type="range"] {
    transition: all 0.2s ease;
}

/* Focus styles for accessibility */
input[type="range"]:focus {
    outline: 2px solid rgba(188, 171, 223, 0.5);
    outline-offset: 2px;
}

/* Remove conflicting styles - these are handled by the main slider styles above */

/* Scroll Bar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--sidebar-bg-color);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--button-hover-color);
}

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

.detail-content,
.crystal-card {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
    animation-delay: 0.1s;
}

/* Subtle Hover Effects */
.sidebar-crystal-item,
.detail-play-button,
.back-button {
    transition: all 0.3s ease;
}

.sidebar-crystal-item:hover,
.detail-play-button:hover,
.back-button:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Print Styles */
@media print {
    body {
        background-color: white;
        color: black;
    }

    .sidebar,
    .transport-section {
        display: none;
    }

    .crystal-detail-view {
        display: block !important;
        width: 100%;
    }

    .detail-content {
        box-shadow: none;
        background-color: white;
        color: black;
    }

    .detail-crystal-name {
        color: black;
        border-bottom: 2px solid black;
        padding-bottom: 10px;
    }

    .property-label {
        color: black;
        font-weight: bold;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --main-bg-color: #000;
        --sidebar-bg-color: #111;
        --card-bg-color: #222;
        --text-color: #fff;
        --highlight-color: #ffff00;
        --secondary-highlight: #00ff00;
    }

    .detail-crystal-name {
        color: var(--highlight-color);
    }

    .property-label {
        color: var(--secondary-highlight);
    }
}

/* Final Mobile Optimization */
@media (max-width: 360px) {
    .app-container {
        font-size: 14px;
    }

    .sidebar-header h2 {
        font-size: 1.2rem;
    }

    .detail-crystal-name {
        font-size: 1.5rem;
    }

    .detail-play-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .crystal-card {
        margin-bottom: 5px;
    }

    .crystal-card-content {
        padding: 10px;
    }

    .crystal-action {
        padding: 10px;
        font-size: 0.9rem;
    }

    .chakra-category {
        font-size: 1rem;
    }

    .chakra-description {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }
}

/* Touch-friendly improvements */
@media (hover: none) {
    .crystal-card:hover {
        transform: none;
    }

    .crystal-card:active {
        transform: scale(0.98);
        background-color: rgba(var(--highlight-color-rgb), 0.1);
    }

    .sidebar-crystal-item:hover {
        transform: none;
    }

    .sidebar-crystal-item:active {
        transform: translateX(3px);
        background-color: rgba(var(--highlight-color-rgb), 0.2);
    }

    .player-toggle, .detail-play-button {
        padding: 15px;
    }

    /* Touch-optimized sliders for devices without hover */
    input[type="range"]::-webkit-slider-thumb {
        width: 40px; /* Extra large for touch devices */
        height: 40px;
        border: 4px solid rgba(255, 255, 255, 0.98);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(188, 171, 223, 0.4);
        transform: scale(1); /* Reset any transforms */
        transition: all 0.2s ease;
    }

    input[type="range"]::-moz-range-thumb {
        width: 40px; /* Extra large for touch devices */
        height: 40px;
        border: 4px solid rgba(255, 255, 255, 0.98);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(188, 171, 223, 0.4);
    }

    /* Maximum touch area for sliders on touch devices */
    input[type="range"] {
        height: 10px; /* Larger visible track */
        padding: 25px 0; /* Maximum touch padding */
        margin: 30px 0; /* Maximum spacing */
        position: relative;
    }

    /* Touch feedback - scale down on touch */
    input[type="range"]:active::-webkit-slider-thumb {
        transform: scale(0.95);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), 0 0 0 3px rgba(188, 171, 223, 0.6);
    }

    /* Enhanced track for touch devices */
    input[type="range"]::-webkit-slider-runnable-track {
        height: 10px;
        background: linear-gradient(to right,
            rgba(188, 171, 223, 1) 0%,
            rgba(188, 171, 223, 0.6) 100%);
        border-radius: 5px;
    }
}

/* Mobile Header */
.mobile-header {
    display: none;
    background-color: var(--sidebar-bg-color);
    padding: 15px;
    align-items: center;
    justify-content: space-between;
}

.hamburger-menu {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    width: 30px;
    cursor: pointer;
}

.hamburger-menu span {
    height: 3px;
    width: 100%;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: 0.4s;
}

.user-profile {
    background: none;
    border: none;
    cursor: pointer;
}

.user-profile img {
    border-radius: 50%;
}

/* Info Modal */
.info-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Darker background */
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000; /* Higher z-index to ensure it's on top */
    opacity: 0;
    transition: opacity 0.3s ease-in-out; /* Faster transition */
    backdrop-filter: blur(12px); /* Stronger blur */
}

.info-modal.active {
    display: flex;
    opacity: 1;
}

.info-container {
    background-color: rgba(26, 26, 30, 0.98); /* More opaque background */
    padding: 2.5rem;
    border-radius: 20px;
    width: 92%;
    max-width: 800px;
    max-height: 90vh; /* Slightly taller */
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7); /* Stronger shadow */
    border: 2px solid rgba(188, 171, 223, 0.4); /* More visible border */
    transform: translateY(0); /* Start at final position */
    transition: transform 0.3s ease-out, opacity 0.3s ease-out; /* Faster transition */
    opacity: 1; /* Start fully visible */
    position: relative;
}

.info-modal.active .info-container {
    transform: translateY(0);
    opacity: 1;
}

.info-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(188, 171, 223, 0.3);
}

.go-to-crystals-header-button {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #bcabdf, #9d8df1);
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(188, 171, 223, 0.3);
    font-family: 'Noefire', sans-serif;
    letter-spacing: 0.5px;
}

.go-to-crystals-header-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(188, 171, 223, 0.5);
}

.go-to-crystals-header-button:active {
    transform: translateY(-1px) scale(1.02);
}

.info-crystal-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background-color: #bcabdf;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: glow 3s infinite ease-in-out;
    position: relative;
}

.info-crystal-icon::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    background-color: rgba(188, 171, 223, 0.5);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.info-header h2 {
    color: #bcabdf;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-family: 'Noefire', sans-serif;
    letter-spacing: 1px;
}



.info-content {
    color: #e0e0e0; /* Lighter text for better contrast with purple */
    font-family: 'Mansfield', sans-serif;
    line-height: 1.7;
}

.info-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(188, 171, 223, 0.2);
}

/* Info Modal Footer */
.info-modal-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(188, 171, 223, 0.3);
    text-align: center;
}

.enter-crystals-button {
    background: linear-gradient(135deg, #bcabdf, #9d8df1);
    border: none;
    border-radius: 50px;
    padding: 18px 40px;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 30px rgba(188, 171, 223, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 auto;
    min-width: 280px;
    position: relative;
    overflow: hidden;
}

.enter-crystals-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.enter-crystals-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(188, 171, 223, 0.6);
}

.enter-crystals-button:hover::before {
    left: 100%;
}

.enter-crystals-button:active {
    transform: translateY(-1px) scale(1.02);
}

.enter-button-text {
    font-family: 'Noefire', sans-serif;
    letter-spacing: 1px;
}

.enter-button-icon {
    font-size: 1.3rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Mobile responsive styles for enter button */
@media (max-width: 768px) {
    .enter-crystals-button {
        padding: 16px 32px;
        font-size: 1.1rem;
        min-width: 250px;
    }

    .info-modal-footer {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }

    .go-to-crystals-header-button {
        position: relative;
        top: auto;
        right: auto;
        margin: 15px auto 0;
        display: block;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

.info-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-section h3 {
    color: #bcabdf;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.info-section h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #bcabdf;
}

/* Featured section styling */
.featured-section {
    background: linear-gradient(to bottom right, rgba(188, 171, 223, 0.1), rgba(30, 30, 35, 0.3));
    border-radius: 15px;
    padding: 25px;
    margin: -10px -10px 30px -10px;
    border: 1px solid rgba(188, 171, 223, 0.2);
    position: relative;
}

.featured-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #bcabdf, transparent);
    border-radius: 15px 15px 0 0;
}

.audio-systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.audio-system-item {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(188, 171, 223, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.audio-system-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(188, 171, 223, 0.3);
}

.audio-system-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    background-color: #121212; /* Darkest color in the app */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid rgba(188, 171, 223, 0.3);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.subwoofer-icon::before {
    content: '';
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, #bcabdf 0%, transparent 70%);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s infinite;
}

.subwoofer-icon::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #bcabdf;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Solodome Audio Chair Icon - based on dome chair logo */
.chair-icon::before {
    content: '';
    width: 36px;
    height: 36px;
    border: 2px solid #bcabdf;
    border-radius: 50% 50% 45% 45%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) perspective(10px) rotateX(5deg);
    background: transparent;
    box-shadow: inset 0 0 10px rgba(188, 171, 223, 0.3);
}

.chair-icon::after {
    content: '';
    width: 30px;
    height: 30px;
    border: 2px solid #bcabdf;
    border-radius: 50% 50% 45% 45%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -48%);
    background: transparent;
    box-shadow: inset 0 0 5px rgba(188, 171, 223, 0.2);
}

.headphones-icon::before {
    content: '';
    width: 30px;
    height: 20px;
    border: 2px solid #bcabdf;
    border-radius: 20px 20px 0 0;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.headphones-icon::after {
    content: '';
    width: 10px;
    height: 10px;
    background-color: #bcabdf;
    border-radius: 50%;
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.dj-icon::before {
    content: '';
    width: 30px;
    height: 20px;
    border: 2px solid #bcabdf;
    border-radius: 5px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-10deg);
}

.dj-icon::after {
    content: '';
    width: 15px;
    height: 15px;
    border: 2px solid #bcabdf;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 60%;
    transform: translate(-50%, -50%);
    box-shadow: -20px 0 0 -5px #bcabdf;
    animation: pulse 1.5s infinite alternate;
}

.audio-system-item h4 {
    color: #bcabdf;
    font-family: 'Noefire', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.audio-system-item p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.audio-system-item strong {
    color: #bcabdf;
}

.highlight-tip {
    background-color: rgba(188, 171, 223, 0.1);
    border-left: 3px solid #bcabdf;
    padding: 15px;
    border-radius: 0 5px 5px 0;
    font-style: italic;
    margin-top: 20px;
    font-size: 1.05rem;
}

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

.info-section p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.info-section ul, .info-section ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.info-section li {
    margin-bottom: 0.5rem;
}

.info-section strong {
    color: #bcabdf;
    font-weight: 600;
}

@media (max-width: 768px) {
    .info-container {
        padding: 1.5rem;
        max-width: 90%;
    }

    .info-header h2 {
        font-size: 1.5rem;
    }

    .info-crystal-icon {
        width: 50px;
        height: 50px;
    }

    .info-section h3 {
        font-size: 1.3rem;
    }

    .info-section p, .info-section li {
        font-size: 0.95rem;
    }
}

/* Login Modal styles moved to enhanced section below */

/* Crystal Popup Menu */
.crystal-popup-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--sidebar-bg-color);
    z-index: 1000;
    transition: left 0.3s ease;
    overflow: hidden;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.crystal-popup-menu.open {
    left: 0;
}

.popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background-color: var(--sidebar-bg-color);
}

.popup-header h2 {
    margin: 0;
    color: var(--highlight-color);
}

.popup-header input {
    flex-grow: 1;
    margin: 0 15px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 5px;
}

.close-popup {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
}

.popup-crystal-list {
    height: calc(100% - 100px);
    overflow-y: auto;
    padding: 20px;
}

.popup-crystal-item {
    padding: 15px;
    background-color: var(--card-bg-color); /* Use consistent card background */
    margin-bottom: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-subtle);
    color: var(--text-color); /* Ensure text is visible */
}

.popup-crystal-item:hover {
    background-color: rgba(188, 171, 223, 0.3); /* More opaque purple */
    border-color: rgba(188, 171, 223, 0.5);
    transform: translateX(3px);
}

.popup-crystal-item:active {
    background-color: rgba(188, 171, 223, 0.5);
}

@media (max-width: 480px) {
    .popup-header {
        padding: 15px 10px;
    }

    .popup-header input {
        margin: 0 10px;
        padding: 8px;
    }

    .popup-crystal-list {
        padding: 10px;
    }

    .popup-crystal-item {
        padding: 12px;
        margin-bottom: 8px;
    }

    /* One crystal per row on small mobile screens */
    .crystals-container {
        grid-template-columns: 1fr !important;
        gap: 16px !important; /* Consistent gap */
        padding: 16px !important; /* Even padding all around */
        max-width: 600px !important;
        justify-content: center; /* Center single column */
    }

    /* Make crystal cards more compact but still readable */
    .crystal-card {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        background-color: rgba(30, 30, 35, 0.7);
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(188, 171, 223, 0.2);
        margin-bottom: 5px;
        min-height: auto;
    }

    .crystal-thumbnail-container {
        position: relative;
        width: 100%;
        height: 200px; /* Fixed height for consistent mobile display */
        border-radius: 8px 8px 0 0;
        overflow: hidden;
        background-color: #000; /* Black background for better contrast */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .crystal-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: contain; /* Changed to contain for full width display */
    }

    .crystal-card-content {
        padding: 15px;
        background-color: rgba(30, 30, 35, 0.9);
    }

    /* Ensure chakra colors work on mobile */
    .crystal-card[data-chakra="root"] .crystal-title-header {
        background: linear-gradient(135deg, #DC143C, #FF1744) !important;
    }

    .crystal-card[data-chakra="sacral"] .crystal-title-header {
        background: linear-gradient(135deg, #FF6B35, #FF8A50) !important;
    }

    .crystal-card[data-chakra="solar-plexus"] .crystal-title-header {
        background: linear-gradient(135deg, #FFB000, #FFC107) !important;
    }

    .crystal-card[data-chakra="heart"] .crystal-title-header {
        background: linear-gradient(135deg, #00C851, #00E676) !important;
    }

    .crystal-card[data-chakra="throat"] .crystal-title-header {
        background: linear-gradient(135deg, #007BFF, #2196F3) !important;
    }

    .crystal-card[data-chakra="third-eye"] .crystal-title-header {
        background: linear-gradient(135deg, #6F42C1, #9C27B0) !important;
    }

    .crystal-card[data-chakra="crown"] .crystal-title-header {
        background: linear-gradient(135deg, #8E44AD, #AB47BC) !important;
    }

    .crystal-title-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 8px;
    }

    .crystal-name {
        font-size: 1.3rem;
        margin: 0;
        font-family: 'Orbitron', sans-serif;
        color: #bcabdf !important;
        max-width: 70%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .frequency-info {
        font-size: 1rem;
        color: var(--highlight-color);
        font-weight: 600;
        white-space: nowrap;
    }

    .crystal-info {
        font-size: 0.95rem;
        line-height: 1.5;
        margin: 8px 0 0 0;
        color: rgba(255, 255, 255, 0.9);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        max-height: 3em;
    }

    /* Make play button more visible on mobile */
    .play-button-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: rgba(0, 0, 0, 0.2);
        transition: background-color 0.3s ease;
    }

    .play-button {
        width: 60px;
        height: 60px;
        opacity: 0.9;
        background: linear-gradient(145deg, rgba(188, 171, 223, 0.7), rgba(159, 139, 199, 0.7));
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }

    .play-button:before {
        content: '';
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 12px 0 12px 20px;
        border-color: transparent transparent transparent #fff;
        margin-left: 5px;
    }

    .crystal-action {
        padding: 15px;
        font-size: 1rem;
        margin-top: 15px;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }

    .sidebar {
        display: none;
    }

    .mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px;
        background-color: var(--sidebar-bg-color);
        border-bottom: 1px solid var(--border-color);
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
    }

    /* Add padding to main content to account for fixed header */
    .main-content {
        padding: 60px 0 0 0; /* Only top padding, no left padding */
    }

    /* Enhanced mobile player bar */
    .transport-section {
        padding: 10px;
        max-height: 25vh; /* Reduced max height */
        position: sticky;
        top: 60px; /* Position below the fixed header */
        z-index: 999;
    }

    .visualizer-container {
        height: 120px; /* Reduced height */
        margin-bottom: 10px; /* Reduced margin */
        border-radius: 12px;
    }

    .player-container {
        padding: 12px; /* Reduced padding */
        border-radius: 14px;
        margin-bottom: 20px;
    }

    .player-info-bar {
        padding: 8px; /* Reduced padding */
        border-radius: 10px;
        margin-bottom: 10px;
    }

    .player-controls-area {
        flex-direction: column;
        gap: 10px; /* Reduced gap */
        margin-bottom: 10px;
    }

    .player-controls-left {
        width: 100%;
        padding: 12px; /* Reduced padding */
        display: flex;
        justify-content: center;
    }

    .player-toggle {
        width: 60px; /* Reduced size */
        height: 60px; /* Reduced size */
        font-size: 1.5rem; /* Reduced font size */
    }

    .now-playing-name {
        font-size: 1.3rem; /* Reduced font size */
        margin-bottom: 5px;
    }

    .now-playing-freq {
        font-size: 0.9rem; /* Reduced font size */
    }

    .status-bar {
        padding: 8px; /* Reduced padding */
        border-radius: 10px;
        font-size: 0.8rem; /* Reduced font size */
    }

    .volume-control-box {
        padding: 10px; /* Reduced padding */
        margin-bottom: 8px;
    }

    .volume-control label {
        font-size: 0.9rem; /* Reduced font size */
    }

    /* Enhanced volume controls for mobile */
    .volume-controls {
        gap: 15px;
        margin-bottom: 15px;
    }

    .volume-control {
        font-size: 1rem;
    }

    /* Enhanced mobile volume controls */
    input[type="range"] {
        height: 10px; /* Optimal track height for mobile */
        padding: 20px 0; /* Large touch area */
        margin: 25px 0; /* Generous spacing */
    }

    input[type="range"]::-webkit-slider-thumb {
        width: 32px; /* Increased thumb size for easier mobile interaction */
        height: 32px;
        border: 3px solid rgba(255, 255, 255, 0.9); /* Thicker border for better visibility */
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); /* Enhanced shadow */
    }

    input[type="range"]::-moz-range-thumb {
        width: 32px; /* Increased thumb size for easier mobile interaction */
        height: 32px;
        border: 3px solid rgba(255, 255, 255, 0.9); /* Thicker border for better visibility */
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); /* Enhanced shadow */
    }

    .hamburger-menu {
        background: none;
        border: none;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 20px;
        width: 30px;
        padding: 0;
    }

    .hamburger-menu span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: var(--text-color);
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    .main-title {
        color: var(--highlight-color);
        margin: 0;
        font-size: 1.3rem;
        font-family: 'Orbitron', sans-serif;
    }

    .user-profile {
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
    }

    .user-profile img {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        object-fit: cover;
    }

    .app-container {
        flex-direction: column;
    }

    .main-content {
        width: 100%;
    }

    /* Improve crystal popup menu for mobile */
    .crystal-popup-menu {
        z-index: 1001;
    }

    .popup-crystal-list {
        padding-bottom: 100px; /* Add space at bottom for better scrolling */
    }

    /* Ensure crystals container is properly displayed on mobile */
    .crystals-container {
        width: 100%;
        overflow-y: auto;
        padding: 16px !important; /* Even padding all around */
        gap: 16px !important; /* Consistent gap */
        justify-content: center; /* Center content */
    }

    /* Enhanced mobile crystal detail view */
    .crystal-detail-view {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        height: 100vh !important;
        background-color: #121212 !important;
        z-index: 10001 !important;
    }

    /* Mobile article layout improvements */
    .crystal-article {
        padding: 0 !important;
        margin: 0 !important;
    }

    .article-header {
        padding: 20px 15px 15px !important;
        text-align: center !important;
        background: linear-gradient(135deg, rgba(188, 171, 223, 0.1), rgba(188, 171, 223, 0.05)) !important;
        border-bottom: 1px solid rgba(188, 171, 223, 0.2) !important;
    }

    .article-title {
        font-size: 2.2rem !important;
        margin-bottom: 10px !important;
        line-height: 1.2 !important;
    }

    .frequency-badge {
        font-size: 1.2rem !important;
        padding: 8px 16px !important;
        background-color: rgba(188, 171, 223, 0.2) !important;
        border-radius: 20px !important;
        display: inline-block !important;
        margin: 10px 0 !important;
    }

    .frequency-details {
        font-size: 0.9rem !important;
        opacity: 0.8 !important;
    }

    /* Mobile hero section improvements */
    .crystal-hero-section {
        height: 35vh !important;
        min-height: 280px !important;
        margin: 0 !important;
        border-radius: 0 !important;
        width: 100% !important;
    }

    .hero-image-container {
        width: 100% !important;
        height: 100% !important;
        border-radius: 0 !important;
    }

    .hero-crystal-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* Mobile visualizer section improvements */
    .visualizer-section {
        padding: 20px 15px !important;
        margin: 0 !important;
        background: linear-gradient(135deg, rgba(188, 171, 223, 0.05), rgba(188, 171, 223, 0.02)) !important;
        border-top: 1px solid rgba(188, 171, 223, 0.2) !important;
        border-bottom: 1px solid rgba(188, 171, 223, 0.2) !important;
    }

    .visualizer-header h2 {
        font-size: 1.4rem !important;
        margin-bottom: 5px !important;
    }

    .visualizer-header p {
        font-size: 0.9rem !important;
        opacity: 0.8 !important;
    }

    .enhanced-visualizer-container {
        height: 200px !important;
        margin: 15px 0 !important;
        border-radius: 12px !important;
        background: rgba(0, 0, 0, 0.3) !important;
        border: 1px solid rgba(188, 171, 223, 0.3) !important;
    }

    .detail-waveform {
        width: 100% !important;
        height: 100% !important;
        border-radius: 12px !important;
    }

    /* Mobile volume controls improvements */
    .volume-controls-section {
        padding: 15px !important;
        margin: 0 !important;
    }

    .volume-control-box {
        background-color: rgba(188, 171, 223, 0.1) !important;
        border-radius: 12px !important;
        padding: 15px !important;
        border: 1px solid rgba(188, 171, 223, 0.2) !important;
    }

    .volume-control label {
        font-size: 0.9rem !important;
        margin-bottom: 8px !important;
        display: block !important;
    }

    .volume-control input[type="range"] {
        width: 100% !important;
        height: 6px !important;
        margin: 10px 0 !important;
    }

    /* Mobile play button improvements */
    .enhanced-play-button {
        width: 100% !important;
        max-width: 300px !important;
        padding: 15px 25px !important;
        font-size: 1.1rem !important;
        border-radius: 12px !important;
        margin: 15px auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        background: linear-gradient(135deg, #7d50c7, #5c3e8e) !important;
        border: none !important;
        color: white !important;
        font-weight: 600 !important;
        box-shadow: 0 4px 15px rgba(125, 80, 199, 0.3) !important;
        transition: all 0.3s ease !important;
    }

    .enhanced-play-button:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 20px rgba(125, 80, 199, 0.4) !important;
    }

    .play-text {
        font-size: 1rem !important;
    }

    .play-instruction {
        font-size: 0.85rem !important;
        text-align: center !important;
        margin-top: 10px !important;
        opacity: 0.7 !important;
    }

    /* Mobile properties section improvements */
    .properties-section {
        padding: 20px 15px !important;
        margin: 0 !important;
        background-color: rgba(18, 18, 18, 0.8) !important;
    }

    .properties-section .section-title {
        font-size: 1.3rem !important;
        margin-bottom: 15px !important;
        text-align: center !important;
        color: #bcabdf !important;
    }

    .properties-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    .property-item {
        background-color: rgba(188, 171, 223, 0.1) !important;
        border-radius: 8px !important;
        padding: 12px 15px !important;
        border: 1px solid rgba(188, 171, 223, 0.2) !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 5px !important;
    }

    .property-label {
        font-size: 0.85rem !important;
        color: rgba(188, 171, 223, 0.8) !important;
        font-weight: 500 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }

    .property-value {
        font-size: 0.95rem !important;
        color: white !important;
        font-weight: 400 !important;
        line-height: 1.4 !important;
        word-break: break-word !important;
    }

    /* Mobile content sections */
    .article-content {
        padding: 20px 15px !important;
        margin: 0 !important;
    }

    .content-intro h2 {
        font-size: 1.3rem !important;
        margin-bottom: 10px !important;
        color: #bcabdf !important;
        text-align: center !important;
    }

    .crystal-description {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        color: rgba(255, 255, 255, 0.9) !important;
        text-align: center !important;
        margin: 0 !important;
    }

    /* Mobile magazine sections */
    .magazine-section {
        margin: 0 !important;
        padding: 20px 15px !important;
        border-top: 1px solid rgba(188, 171, 223, 0.2) !important;
    }

    .magazine-section:last-child {
        padding-bottom: 40px !important;
    }

    .back-button {
        background-color: transparent;
        border: 1px solid var(--highlight-color);
        color: var(--highlight-color);
        padding: 10px 20px;
        border-radius: 30px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-family: 'Rajdhani', sans-serif;
        font-weight: 500;
        letter-spacing: 0.5px;
    }

    /* Mobile styles for award-winning layout */
    .detail-hero-section {
        height: 40vh;
        min-height: 300px;
        margin-bottom: 20px;
        border-radius: 10px;
    }

    .detail-hero-overlay {
        padding: 20px 15px;
    }

    .detail-crystal-name {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .detail-freq-row {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .detail-crystal-freq {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }

    .detail-freq-math {
        font-size: 0.9rem;
        padding: 6px 12px;
    }

    /* Mobile player section */
    .detail-player-section {
        padding: 15px;
        margin-bottom: 20px;
        border-radius: 10px;
    }

    .detail-visualizer-container {
        height: 100px;
        margin-bottom: 15px;
    }

    .detail-player-controls {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .detail-player-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .detail-volume-controls {
        width: 100%;
    }

    .detail-volume-control label {
        font-size: 0.85rem;
    }

    /* Mobile description */
    .detail-description-section {
        margin-bottom: 20px;
    }

    .detail-crystal-short-desc {
        font-size: 1rem;
        padding: 20px 15px;
        border-radius: 10px;
    }

    /* Mobile detail sections */
    .detail-sections {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .detail-properties,
    .detail-section {
        background-color: rgba(30, 30, 35, 0.7);
        border-radius: 12px;
        padding: 15px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .detail-properties h2,
    .detail-section h2 {
        color: var(--highlight-color);
        font-size: 1.3rem;
        margin-bottom: 15px;
        border-bottom: 1px solid rgba(188, 171, 223, 0.3);
        padding-bottom: 8px;
    }

    .property-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

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

    .property-label {
        font-weight: 500;
        color: var(--secondary-highlight);
    }

    .detail-section-content {
        line-height: 1.6;
        font-size: 0.95rem;
        text-align: left;
    }

    .back-button:hover {
        background-color: rgba(188, 171, 223, 0.1);
        transform: translateX(-3px);
    }

    .back-button:active {
        transform: translateX(-1px);
    }

    .detail-content {
        padding: 0;
        margin-bottom: 20px;
    }

    .detail-crystal-image {
        max-height: 300px;
        margin: 0 auto 20px;
        display: block;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }

    .property-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .property-item {
        padding: 15px;
        border-radius: 10px;
        background-color: rgba(30, 30, 35, 0.7);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    }

    .property-item h3 {
        font-size: 1.2rem;
        margin-bottom: 8px;
        color: var(--highlight-color);
    }

    .property-item p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .detail-properties h2,
    .detail-section h2 {
        font-size: 1.3rem;
    }

    .detail-section-content {
        font-size: 0.95rem;
        padding: 15px;
    }
}

/* Navigation Bar Styles */
.main-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--sidebar-bg-color);
    padding: 15px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo img {
    margin-right: 10px;
    border-radius: 50%;
}

.nav-logo span {
    font-weight: bold;
    color: var(--highlight-color);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 15px;
}

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

.nav-links a:hover {
    color: var(--highlight-color);
}

.nav-auth .auth-btn {
    background-color: var(--highlight-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.nav-auth .auth-btn:hover {
    background-color: var(--button-hover-color);
}

/* Authentication Modals */
.auth-modals {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.auth-modal {
    display: none;
    background-color: var(--card-bg-color);
    border-radius: 10px;
    width: 100%;
    max-width: 500px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.modal-content {
    position: relative;
}

.close-modal {
    position: absolute;
    top: -10px;
    right: 0;
    color: var(--text-color);
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

.auth-modal h2 {
    text-align: center;
    color: var(--highlight-color);
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--secondary-highlight);
}

.input-group input {
    width: 100%;
    padding: 10px;
    background-color: rgba(255,255,255,0.1);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-color);
}

.auth-modal button {
    width: 100%;
    padding: 12px;
    background-color: var(--highlight-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.auth-modal button:hover {
    background-color: var(--button-hover-color);
}

.modal-switch {
    text-align: center;
    margin-top: 15px;
}

.modal-switch a {
    color: var(--highlight-color);
    text-decoration: none;
}

/* Additional styles for landing page */
.landing-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--main-bg-color);
    z-index: 1000; /* Lower z-index so modal can appear over it */
    display: none; /* Hide landing page by default */
    align-items: center;
    justify-content: center;
    background-color: var(--main-bg-color);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.landing-content {
    text-align: center;
    padding: 2rem;
    background-color: rgba(15, 15, 15, 0.95); /* Darker background for better contrast */
    border-radius: 10px;
    max-width: 600px;
    backdrop-filter: blur(10px); /* Increased blur for better text separation */
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(188, 171, 223, 0.3); /* Subtle purple border */
}

.landing-title {
    color: var(--highlight-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8); /* Text shadow for better readability */
}

.landing-subtitle {
    color: #d0d0d0; /* Light grey for subtitle */
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); /* Text shadow for better readability */
    font-weight: 300;
}

.landing-description {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.8; /* Increased line height for better readability */
    color: #f5f5f5; /* Much brighter text for better contrast */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); /* Text shadow for better readability */
    font-weight: 400; /* Slightly bolder text */
}

.landing-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.landing-button {
    background-color: var(--highlight-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.landing-button:hover {
    background-color: var(--button-hover-color);
}

/* All landing buttons now use the same purple background style */

.landing-footer {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #b0b0b0; /* Light grey for footer */
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); /* Text shadow for better readability */
    opacity: 0.8;
    text-align: center;
    white-space: nowrap;
    padding: 0 20px;
}

/* Mobile responsive footer */
@media (max-width: 768px) {
    .landing-footer {
        font-size: 0.8rem;
        bottom: 15px;
        white-space: normal;
        line-height: 1.3;
        max-width: calc(100% - 40px);
    }
}

@media (max-width: 480px) {
    .landing-footer {
        font-size: 0.75rem;
        bottom: 10px;
        padding: 0 15px;
        max-width: calc(100% - 30px);
    }

    .landing-buttons {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .landing-button {
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
        font-weight: 600;
    }
}

/* Subscription Modal Styles */
.subscription-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.subscription-modal.active {
    opacity: 1;
}

.subscription-container {
    background-color: rgba(30, 30, 35, 0.95);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(188, 171, 223, 0.3);
    animation: fadeIn 0.5s ease forwards;
    position: relative;
}

.subscription-header {
    padding: 25px 30px 15px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(188, 171, 223, 0.2);
}

.subscription-crystal-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background-color: #bcabdf;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: glow 3s infinite ease-in-out;
    position: relative;
}

.subscription-crystal-icon:before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    background-color: rgba(188, 171, 223, 0.5);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.subscription-header h2 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-family: 'Noefire', sans-serif;
    letter-spacing: 1px;
}

.close-subscription-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-subscription-modal:hover {
    color: #fff;
}

.subscription-content {
    padding: 25px 30px 30px;
}

.subscription-message {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    text-align: center;
}

.subscription-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.feature-item {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    border: 1px solid rgba(188, 171, 223, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    background-color: rgba(188, 171, 223, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bcabdf;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-text h4 {
    color: #bcabdf;
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 600;
}

.feature-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.subscription-offer {
    background: linear-gradient(135deg, rgba(125, 80, 199, 0.3), rgba(188, 171, 223, 0.3));
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    margin-bottom: 25px;
    position: relative;
    border: 1px solid rgba(188, 171, 223, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.offer-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #bcabdf;
    color: #121212;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.subscription-offer h3 {
    color: #fff;
    font-size: 1.5rem;
    margin: 10px 0 5px;
}

.subscription-offer p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 1rem;
}

.subscription-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

/* Upgrade Now Button */
.upgrade-now-button {
    background: linear-gradient(135deg, #bcabdf, #9d8df1);
    color: white;
    border: none;
    padding: 15px 32px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(188, 171, 223, 0.4);
}

.upgrade-now-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(188, 171, 223, 0.6);
    background: linear-gradient(135deg, #d0c3ec, #b8a8f5);
}

.upgrade-now-button:active {
    transform: translateY(0);
}

/* Continue as Guest Button */
.continue-guest-button {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.continue-guest-button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

/* Stripe Buy Button in Modal (legacy) */
.stripe-modal-button-container {
    width: 100%;
}

.stripe-modal-button-container stripe-buy-button {
    width: 100%;
}

/* Custom styling for Stripe button in modal */
.stripe-modal-button-container stripe-buy-button::part(button) {
    background: linear-gradient(135deg, #bcabdf, #9d8df1) !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 16px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(188, 171, 223, 0.3) !important;
    color: white !important;
    text-transform: none !important;
    letter-spacing: 0.5px !important;
}

.stripe-modal-button-container stripe-buy-button::part(button):hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 25px rgba(188, 171, 223, 0.4) !important;
    background: linear-gradient(135deg, #d0c3ec, #bcabdf) !important;
}

.start-trial-button {
    background-color: #bcabdf;
    color: #121212;
    border: none;
    padding: 15px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    font-family: 'Mansfield', sans-serif;
}

.start-trial-button:hover {
    background-color: #d0c3ec;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.continue-guest-button {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: 'Mansfield', sans-serif;
}

.continue-guest-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.subscription-terms {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.subscription-terms a {
    color: #bcabdf;
    text-decoration: none;
}

.subscription-terms a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .subscription-features {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .subscription-container {
        width: 95%;
        max-height: 85vh;
    }

    .subscription-header h2 {
        font-size: 1.5rem;
    }

    .subscription-message {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .subscription-container {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .subscription-header {
        padding: 20px 20px 15px;
    }

    .subscription-content {
        padding: 20px;
    }

    .subscription-crystal-icon {
        width: 50px;
        height: 50px;
    }

    .feature-item {
        padding: 15px;
    }

    .subscription-offer {
        padding: 20px 15px;
    }

    .subscription-offer h3 {
        font-size: 1.3rem;
    }
}

/* Mobile user profile dropdown */
@media (max-width: 768px) {
    .user-profile-dropdown {
        right: -10px;
        min-width: 200px;
    }

    .user-profile {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .user-profile-text {
        display: none;
    }

    /* Mobile info button adjustments */
    .mobile-info-button {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .user-profile-container {
        gap: 8px;
    }
}

/* Guest Mode - Locked Crystal Styles */
.crystal-locked {
    position: relative;
    opacity: 0.7;
    cursor: pointer !important;
}

.crystal-locked:hover {
    opacity: 0.8;
    transform: scale(1.02) !important;
}

.crystal-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    z-index: 10;
    backdrop-filter: blur(2px);
}

.crystal-lock-overlay:hover {
    background: rgba(0, 0, 0, 0.65);
}

.crystal-lock-overlay i {
    color: #ffd700;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* GemFreq Logo Elements */
.gemfreq-lock-logo {
    position: relative;
    animation: glow 3s infinite ease-in-out;
}

.gemfreq-lock-logo::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    background: rgba(188, 171, 223, 0.3);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}



.gemfreq-close-btn {
    background: linear-gradient(45deg, #bcabdf, #d0c3ec, #9f8bc7, #bcabdf) !important;
    background-size: 400% 400% !important;
    animation: gradientBG 8s ease infinite !important;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%) !important;
    border: none !important;
    border-radius: 0 !important;
    width: 40px !important;
    height: 40px !important;
    position: relative !important;
}

.gemfreq-close-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #121212;
    font-weight: bold;
    font-size: 1.2rem;
    font-family: 'Orbitron', sans-serif;
}

/* GemFreq Icon Styles */
.gemfreq-user-icon,
.gemfreq-menu-icon,
.gemfreq-control-icon,
.gemfreq-play-icon,
.gemfreq-feature-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #bcabdf, #d0c3ec, #9f8bc7, #bcabdf);
    background-size: 400% 400%;
    animation: gradientBG 8s ease infinite;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    color: #121212;
    font-weight: bold;
    font-size: 0.8rem;
    font-family: 'Orbitron', sans-serif;
    text-align: center;
    line-height: 20px;
    margin-right: 8px;
    position: relative;
}

.gemfreq-user-icon {
    width: 16px;
    height: 16px;
    line-height: 16px;
    font-size: 0.7rem;
}

.gemfreq-play-icon {
    width: 24px;
    height: 24px;
    line-height: 24px;
    font-size: 1rem;
    margin-right: 12px;
}

.gemfreq-feature-icon {
    width: 30px;
    height: 30px;
    line-height: 30px;
    font-size: 1.2rem;
    margin: 0;
}

.gemfreq-control-icon {
    width: 18px;
    height: 18px;
    line-height: 18px;
    font-size: 0.7rem;
    margin: 0;
}

.gemfreq-hamburger {
    background: none !important;
    border: none !important;
    padding: 0 !important;
}

.gemfreq-hamburger-icon {
    width: 30px;
    height: 30px;
    background: linear-gradient(45deg, #bcabdf, #d0c3ec, #9f8bc7, #bcabdf);
    background-size: 400% 400%;
    animation: gradientBG 8s ease infinite;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    color: #121212;
    font-weight: bold;
    font-size: 1.2rem;
    font-family: 'Orbitron', sans-serif;
    text-align: center;
    line-height: 30px;
    cursor: pointer;
}

/* Sidebar locked crystal styles - removed dimming */
.sidebar-crystal-item.locked {
    position: relative;
}

.sidebar-crystal-item.locked::after {
    content: 'G';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: #bcabdf;
    font-weight: bold;
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(45deg, #bcabdf, #d0c3ec);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-crystal-item.locked:hover {
    /* No opacity change on hover */
}

/* Popup menu locked crystal styles - removed dimming */
.popup-crystal-item.locked {
    position: relative;
}

.popup-crystal-item.locked::after {
    content: '🔒';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: #ffd700;
}

.popup-crystal-item.locked:hover {
    /* No opacity change on hover */
}

/* End of styles */