
:root {
    --bg-dark: #000000;
    --bg-green-grad: #022017;
    --emerald-primary: #059669;
    --emerald-dark: #064e3b;
    --emerald-light: #34d399;
    --gold-primary: #e5c158;
    --gold-light: #ffd700;
    --gold-dark: #b8860b;
    --text-white: #ffffff;
    --text-gray: #a3a3a3;
    --text-dark-gray: #525252;
    --glass-bg: rgba(255, 255, 255, 0.065);
    --glass-border: rgba(255, 255, 255, 0.16);
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --font-arabic: 'Amiri', serif;
}

* {
    margin: 0;
    padding: 0;
    box-index: border-box;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: linear-gradient(180deg, var(--bg-green-grad) 0%, var(--bg-dark) 100%) fixed;
    color: var(--text-white);
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--emerald-dark);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--emerald-primary);
}

/* Ambient Arabic calligraphy background (Disabled) */
.ambient-bg, .ambient-word {
    display: none !important;
}

/* Flashlight pointer layer */
.flashlight {
    position: fixed;
    top: -350px;
    left: -350px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle 350px at center, rgba(52, 211, 153, 0.05) 0%, transparent 80%);
    pointer-events: none;
    z-index: 1; /* Sits behind the card (z-index: 10) but above body background */
    mix-blend-mode: screen;
    will-change: transform;
    transform: translate3d(var(--x, 50vw), var(--y, 50vh), 0);
    transition: opacity 0.3s ease;
}

/* Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--emerald-light);
}

nav {
    display: flex;
    gap: 1.5rem;
}

nav a {
    text-decoration: none;
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid transparent;
}

nav a:hover, nav a.active {
    color: var(--emerald-light);
    background: rgba(5, 150, 105, 0.06);
    border-color: rgba(5, 150, 105, 0.2);
    box-shadow: 0 0 15px rgba(5, 150, 105, 0.15);
    text-shadow: 0 0 8px rgba(52, 211, 153, 0.3);
}

/* Main Container */
main {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 4rem;
}

.hero h2 {
    font-family: var(--font-heading);
    color: var(--emerald-light);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    font-weight: 700;
    font-style: italic;
}

.hero p {
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Search Bar */
.search-container {
    max-width: 600px;
    margin: 0 auto 3rem auto;
    position: relative;
}

.search-input {
    width: 100%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1.25rem 1.5rem;
    padding-left: 3rem;
    border-radius: 1.5rem;
    color: var(--text-white);
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.search-input:focus {
    outline: none;
    border-color: rgba(5, 150, 105, 0.5);
    box-shadow: 0 0 20px rgba(5, 150, 105, 0.1);
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dark-gray);
}

/* Names Grid */
.names-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Name Card */
.name-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    backdrop-filter: blur(16px);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05), 0 8px 32px rgba(0, 0, 0, 0.3);
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

.name-card:hover {
    transform: translateY(-5px);
    border-color: rgba(5, 150, 105, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(5, 150, 105, 0.1);
}

.name-card:active {
    transform: scale(0.97) translateY(0);
    border-color: rgba(52, 211, 153, 0.4);
    background: rgba(5, 150, 105, 0.08);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4), 0 0 15px rgba(5, 150, 105, 0.15);
}

.card-arabic {
    font-family: var(--font-arabic);
    font-size: 3rem;
    color: var(--emerald-light);
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.name-card:hover .card-arabic {
    transform: scale(1.05);
    text-shadow: 0 0 15px rgba(52, 211, 153, 0.4);
}

.name-card:active .card-arabic {
    transform: scale(1.03);
    text-shadow: 0 0 20px rgba(52, 211, 153, 0.6);
}

/* Card Tap Interactive Cue */
.card-tap-cue {
    font-size: 0.72rem;
    color: var(--emerald-light);
    opacity: 0.5;
    margin-top: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.name-card:hover .card-tap-cue {
    opacity: 1;
    color: var(--text-white);
}

.card-number {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 99px;
    background: rgba(5, 150, 105, 0.08);
    color: var(--emerald-light);
    border: 1px solid rgba(5, 150, 105, 0.15);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.card-transliteration {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.card-meaning {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Modal Popup for Name Details */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 5, 3, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 1.5rem;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.18);
    max-width: 500px;
    width: 100%;
    padding: 3rem 2rem;
    border-radius: 2rem;
    position: relative;
    text-align: center;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 20px 50px rgba(0, 0, 0, 0.8);
    transform: translateY(30px);
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    backdrop-filter: blur(25px);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--text-white);
}

.modal-arabic {
    font-family: var(--font-arabic);
    font-size: 5rem;
    color: var(--emerald-light);
    text-shadow: 0 0 15px rgba(52, 211, 153, 0.25);
    margin-bottom: 1rem;
}

.modal-transliteration {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.modal-translation {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.modal-divider {
    height: 1px;
    background: var(--glass-border);
    width: 60%;
    margin: 0 auto 1.5rem auto;
}

.modal-benefit {
    font-size: 1rem;
    line-height: 1.6;
    color: #d1d5db;
}

/* PDF Sign Up Form container */
.signup-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    max-width: 550px;
    margin: 0 auto;
    padding: 3rem;
    border-radius: 2rem;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05), 0 15px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.1rem 1.25rem;
    border-radius: 1.25rem;
    color: var(--text-white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: rgba(5, 150, 105, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.btn-primary {
    width: 100%;
    background: var(--text-white);
    color: var(--bg-dark);
    border: none;
    padding: 1.1rem;
    border-radius: 1.25rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: #e5e5e5;
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(1px);
}

/* Newsletter Page flip-book styling */
.book-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.book-viewer {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    padding: 1.5rem;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6);
    aspect-ratio: 4/5;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.book-page {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 1rem;
    display: none;
}

.book-page.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.book-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding: 0 1rem;
}

.btn-nav {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-white);
    padding: 0.75rem 1.25rem;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-nav:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    color: var(--emerald-light);
    border-color: rgba(5, 150, 105, 0.3);
}

.btn-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-indicator {
    color: var(--text-gray);
    font-size: 0.95rem;
    font-weight: 600;
}

/* Premium Gate / Passcode page */
.premium-gate {
    max-width: 450px;
    margin: 4rem auto 0 auto;
    text-align: center;
}

.premium-icon {
    font-size: 3rem;
    color: var(--emerald-light);
    margin-bottom: 1.5rem;
}

.gate-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.gate-desc {
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Premium Content (Hidden by default) */
.premium-content {
    display: none;
    animation: fadeIn 0.8s ease-in-out;
}

.premium-content.unlocked {
    display: block;
}

.premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.premium-card {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.05) 0%, rgba(0,0,0,0.4) 100%);
    border: 1px solid rgba(5, 150, 105, 0.15);
    border-radius: 2rem;
    padding: 2.5rem;
    text-align: left;
    transition: all 0.3s ease;
}

.premium-card:hover {
    border-color: var(--emerald-primary);
    box-shadow: 0 10px 30px rgba(5, 150, 105, 0.1);
}

.premium-tag {
    background: var(--emerald-dark);
    color: var(--emerald-light);
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

/* Responsive Footer */
footer {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-dark-gray);
    font-size: 0.85rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 6rem;
    position: relative;
    z-index: 10;
}

/* Utility Animations */
.animate-fade-in {
    animation: fadeInUp 0.8s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive Optimizations */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 0.85rem;
        padding: 1rem;
    }

    nav {
        gap: 0.35rem;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    nav a {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    main {
        padding: 7.5rem 1rem 3rem 1rem;
    }

    .hero {
        margin-bottom: 2.5rem;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .search-container {
        margin-bottom: 2rem;
    }

    .search-input {
        padding: 1rem 1.25rem 1rem 2.75rem;
        font-size: 0.95rem;
        border-radius: 1.1rem;
    }

    .search-icon {
        left: 1rem;
    }

    .names-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    .name-card {
        padding: 1.25rem 0.5rem !important;
        border-radius: 1rem !important;
    }

    .card-arabic {
        font-size: 2.25rem !important;
        margin-bottom: 0.25rem !important;
    }

    .card-transliteration {
        font-size: 0.9rem !important;
    }

    .card-meaning {
        font-size: 0.75rem !important;
        line-height: 1.2 !important;
        margin-top: 0.25rem !important;
    }

    .card-number {
        font-size: 0.65rem !important;
        margin-bottom: 0.25rem !important;
    }

    /* Modal Mobile Adaptations */
    .modal {
        padding: 1rem;
    }

    .modal-content {
        padding: 2.25rem 1.5rem;
        border-radius: 1.5rem;
    }

    .modal-arabic {
        font-size: 3.5rem;
        margin-bottom: 0.75rem;
    }

    .modal-transliteration {
        font-size: 1.6rem;
    }

    .modal-translation {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }

    .modal-benefit {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Signup Card overrides for PDF and Donate pages */
    .signup-card {
        padding: 2rem 1.25rem !important;
        border-radius: 1.5rem !important;
    }

    .signup-card h1 {
        font-size: 1.75rem !important;
    }

    .signup-card p {
        font-size: 0.875rem !important;
        line-height: 1.5 !important;
    }

    .form-input {
        padding: 0.95rem 1.1rem;
        font-size: 0.95rem;
        border-radius: 1rem;
    }

    .btn-primary {
        padding: 0.95rem;
        font-size: 0.95rem;
        border-radius: 1rem;
    }

    /* Support Page adaptations */
    .supporters-section {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    /* Ambient and Interactive pointer effects hidden on mobile */
    .flashlight {
        display: none !important;
    }

    footer {
        margin-top: 4rem;
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .modal-arabic {
        font-size: 3rem;
    }
}

/* Background Mesh Glow Orbs (Dynamic premium backdrops) */
/* Animated Floating Glow Orbs */
@keyframes floatOrb1 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(6%, 4%) scale(1.08); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes floatOrb2 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-4%, -6%) scale(1.05); }
    100% { transform: translate(0, 0) scale(1); }
}

.bg-glow-top {
    position: fixed;
    top: -10%;
    left: -10%;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.18) 0%, rgba(52, 211, 153, 0.05) 50%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    filter: blur(120px);
    animation: floatOrb1 15s infinite ease-in-out;
}

.bg-glow-bottom {
    position: fixed;
    bottom: -10%;
    right: -10%;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, rgba(229, 193, 88, 0.12) 0%, rgba(5, 150, 105, 0.03) 50%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    filter: blur(120px);
    animation: floatOrb2 18s infinite ease-in-out;
}

/* CTA Pulse Animation (Attention-grabbing psychological driver) */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(5, 150, 105, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(5, 150, 105, 0);
    }
}

.btn-pulse {
    animation: pulseGlow 2s infinite;
}

/* Shiny reflection sheen sweep (High-end conversion visual cue) */
.btn-shiny {
    position: relative;
    overflow: hidden;
}

.btn-shiny::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 30%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.65) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    pointer-events: none;
    z-index: 2;
    animation: shinySweep 2.8s infinite ease-in-out;
}

@keyframes shinySweep {
    0% {
        left: -60%;
    }
    15% {
        left: 140%;
    }
    100% {
        left: 140%;
    }
}

/* Dedicated High-Gloss 3D Support Button styling */
.btn-support {
    background: linear-gradient(180deg, #10b981 0%, #059669 50%, #047857 100%) !important;
    color: white !important;
    border: 1px solid rgba(52, 211, 153, 0.5) !important;
    font-weight: 700 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0 20px rgba(5, 150, 105, 0.25) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease !important;
}

.btn-support:hover {
    transform: translateY(-2px) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 0 30px rgba(16, 185, 129, 0.5) !important;
    background: linear-gradient(180deg, #34d399 0%, #059669 50%, #046c4e 100%) !important;
}

.btn-support:active {
    transform: translateY(1px) !important;
}

/* Mobile Bottom Tab Bar (Tab bar UX for thumb navigation) */
.mobile-tab-bar {
    display: none;
}

@media (max-width: 768px) {
    /* Prevent content overlap with bottom tab bar */
    body {
        padding-bottom: 75px !important;
    }

    body.fullscreen-active {
        padding-bottom: 0 !important;
    }

    body.fullscreen-active .mobile-tab-bar {
        display: none !important;
    }

    /* Hide standard header menu links, keeping only logo */
    header nav {
        display: none !important;
    }

    .nav-container {
        justify-content: center !important;
        padding: 0.85rem 1rem !important;
    }

    main {
        padding: 5.5rem 1rem 3rem 1rem !important; /* Decrease top padding since header is compact */
    }

    /* Bottom Tab Bar Container */
    .mobile-tab-bar {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 65px;
        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(20px);
        border-top: 1px solid var(--glass-border);
        z-index: 1000;
        justify-content: space-around;
        align-items: center;
        padding-bottom: env(safe-area-inset-bottom);
    }

    /* Tab Items */
    .tab-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: var(--text-gray);
        font-size: 0.72rem;
        font-weight: 500;
        gap: 0.25rem;
        flex: 1;
        height: 100%;
        transition: all 0.3s ease;
        opacity: 0.65;
    }

    .tab-item i {
        font-size: 1.15rem;
    }

    .tab-item.active {
        color: var(--emerald-light);
        opacity: 1;
        text-shadow: 0 0 10px rgba(52, 211, 153, 0.3);
    }
}

/* Locked Volume Card & Shake Animation */
.volume-card.locked {
    opacity: 0.65;
    cursor: not-allowed;
}

.volume-card.locked:hover {
    transform: translateY(0);
    box-shadow: none !important;
    border-color: var(--glass-border) !important;
}

.volume-card.locked .volume-cover {
    filter: blur(2px) grayscale(60%);
    background: rgba(0, 0, 0, 0.5) !important;
}

@keyframes cardShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.volume-card.locked-shake {
    animation: cardShake 0.4s ease-in-out !important;
}

/* Progress Bar Tweaks */
#readingProgressSection {
    transition: all 0.5s ease-in-out;
}

/* Animations Utility Classes */
.animate-fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideDownIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-down {
    animation: slideDownIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* GPU acceleration & Micro-animations for buttery smooth feel */
/* GPU acceleration & Micro-animations for buttery smooth feel */
.btn-primary, .btn-support, .back-btn, .btn-nav, .tab-item, .modal-content,
.playlist-tab, .control-btn, .play-pause-btn, .favorite-btn, .mute-btn {
    will-change: transform, opacity, filter;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), 
                filter 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
                background-color 0.2s ease, 
                border-color 0.2s ease, 
                box-shadow 0.2s ease,
                color 0.2s ease;
}

.btn-primary:active, .btn-support:active, .back-btn:active, .btn-nav:active:not(:disabled),
.control-btn:active, .play-pause-btn:active, .favorite-btn:active, .mute-btn:active {
    transform: scale(0.94) translate3d(0, 0, 0) !important;
    filter: blur(0.8px) brightness(0.95); /* Micro motion blur on click/press */
}

.track-item:active {
    transform: scale(0.98) translate3d(0, 0, 0) !important;
    filter: blur(0.5px);
}

.tab-item:active {
    transform: scale(0.92) translate3d(0, 0, 0) !important;
    filter: blur(0.8px);
}

/* ==========================================
   Divine Audio Player Page Styles
   ========================================== */

/* Page Viewport Constraints */
body.audio-page-body.viewport-fixed {
    background: linear-gradient(rgba(2, 32, 23, 0.55), rgba(0, 0, 0, 0.85)), 
                url('audio/assets/ambient_bg.webp') no-repeat center center fixed;
    background-size: cover;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

body.viewport-fixed header {
    position: relative !important;
    flex-shrink: 0;
    z-index: 100;
    height: 60px;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.6) !important;
}

body.viewport-fixed header .nav-container {
    padding: 0 2rem !important;
    width: 100%;
}

.audio-viewport-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 2rem 2rem 2rem; /* Symmetric padding to vertically center and provide bottom breathing room */
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    z-index: 10;
    width: 100%;
}

/* Compact Title Area */
.player-compact-title {
    text-align: center;
    margin-bottom: 0.85rem;
    flex-shrink: 0;
}

.player-compact-title h1 {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 300;
    margin: 0;
    color: var(--text-white);
}

.player-compact-title h1 span {
    font-weight: 700;
    font-style: italic;
    color: var(--emerald-light);
}

.player-compact-title p {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin: 0.15rem 0 0 0;
}

/* Unified Rectangle Card */
.player-unified-card {
    display: grid;
    grid-template-columns: 260px 1px 1fr; /* Reduced left column width from 300px to 260px */
    width: 100%;
    max-width: 900px; /* Reduced overall max-width from 960px to 900px */
    height: 480px; /* Reduced overall height from 550px to 480px to prevent vertical cutoff */
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 2rem;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 20px 50px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

/* Interactive Lens warp refraction (Duplicated background scaled & shifted dynamically via JS) */
.player-unified-card::before {
    content: '';
    position: absolute;
    inset: -30px; /* Offset to prevent blank edges during shift */
    background: linear-gradient(rgba(2, 32, 23, 0.65), rgba(0, 0, 0, 0.85)), 
                url('audio/assets/ambient_bg.webp') no-repeat center center;
    background-size: cover;
    filter: blur(35px) saturate(120%) brightness(1.02);
    z-index: -2;
    pointer-events: none;
    transform: translate(var(--warp-x, 0px), var(--warp-y, 0px));
    transition: transform 0.15s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Clean glass glare highlight (No yellow tint) */
.player-unified-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 40%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

/* Left & Right Panels */
.player-left-panel {
    padding: 0.8rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.player-panel-divider {
    background: rgba(255, 255, 255, 0.08);
    height: 100%;
    width: 100%;
}

.player-right-panel {
    padding: 0.8rem 1rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Header Inside Panel */
.player-panel-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
    flex-shrink: 0;
}

.text-emerald {
    color: var(--emerald-light);
}

/* Cover Image Wrapper */
.track-cover-wrapper {
    width: 100%;
    max-width: 140px; /* Reduced cover max-width to 140px */
    aspect-ratio: 1 / 1;
    border-radius: 0.85rem;
    overflow: hidden;
    position: relative;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.4);
    margin: 0.15rem auto 0.35rem auto;
    flex-shrink: 0;
}

.track-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.track-cover-img.playing {
    animation: coverPulse 8s infinite alternate ease-in-out;
}

@keyframes coverPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.arabic-overlay-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    padding: 0 0.5rem;
    box-sizing: border-box;
    text-align: center;
    font-family: 'Outfit', 'Inter', sans-serif;
    font-weight: 800;
    font-size: 0.95rem; /* Scaled down overlay font size */
    color: #ffffff;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.95), 0 0 10px rgba(0, 0, 0, 0.7);
    pointer-events: none;
    z-index: 5;
    user-select: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Track Metadata */
.active-track-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem; /* Explicit layout gap prevents text overlapping */
    text-align: center;
    margin-bottom: 0.15rem;
    flex-shrink: 0;
}

.active-heading {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--emerald-light);
    margin: 0;
    font-weight: 600;
}

.active-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-white);
    text-align: center;
}

.active-meaning {
    color: var(--text-gray);
    font-size: 0.72rem;
    margin: 0;
    text-align: center;
}

.active-arabic {
    font-family: var(--font-arabic);
    font-size: 1.45rem; /* Scaled slightly larger for readability */
    color: var(--emerald-light);
    text-shadow: 0 0 10px rgba(52, 211, 153, 0.3);
    margin: 0;
    margin-top: 0.15rem; /* Pushes the Arabic calligraphy down to prevent diacritic overlaps */
    line-height: 1.1;
}

/* Timeline & Seek Sliders */
.timeline-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    margin-bottom: 0.25rem;
    flex-shrink: 0;
}

.time-display {
    font-size: 0.72rem;
    color: var(--text-gray);
    width: 35px;
    text-align: center;
    font-weight: 500;
}

.slider-wrapper {
    position: relative;
    flex-grow: 1;
    display: flex;
    align-items: center;
    height: 12px;
}

.seek-slider, .volume-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    cursor: pointer;
    z-index: 10;
}

.seek-slider::-webkit-slider-runnable-track, .volume-slider::-webkit-slider-runnable-track {
    background: transparent;
}

.seek-slider::-webkit-slider-thumb, .volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold-primary);
    border: 1px solid var(--text-white);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: transform 0.1s ease;
    margin-top: -3px;
}

.seek-slider::-webkit-slider-thumb:hover, .volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
    background: var(--gold-light);
}

.seek-progress, .volume-progress {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    background: var(--emerald-light);
    border-radius: 99px;
    pointer-events: none;
    z-index: 5;
}

/* Playback Control Buttons */
.player-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
    padding: 0;
    flex-shrink: 0;
}

.control-btn {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.05);
}

.control-btn.active {
    color: var(--emerald-light);
    text-shadow: 0 0 8px rgba(52, 211, 153, 0.4);
}

.play-pause-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--text-white);
    color: var(--bg-dark);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.play-pause-btn:hover {
    transform: scale(1.06);
    background: var(--emerald-light);
    color: var(--bg-dark);
    box-shadow: 0 0 15px rgba(52, 211, 153, 0.35);
}

.play-pause-btn:active {
    transform: scale(0.95);
}

/* Micro-Animation for Play/Pause Transition Spin */
@keyframes spinIcon {
    0% { transform: rotate(0deg) scale(0.8); }
    100% { transform: rotate(360deg) scale(1); }
}

.play-pause-btn.spin-active i {
    animation: spinIcon 0.32s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Favorite and Volume Extra Bar */
.secondary-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
    flex-shrink: 0;
}

.favorite-btn, .mute-btn {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.volume-control-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.volume-slider-wrapper {
    width: 55px;
}


/* Playlist Search */
.playlist-search-box {
    position: relative;
    margin-bottom: 0.4rem;
    flex-shrink: 0;
}

.search-box-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
    font-size: 0.85rem;
}

#playlistSearch {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 0.85rem;
    padding: 0.65rem 1rem 0.65rem 2.5rem;
    color: var(--text-white);
    font-size: 0.98rem;
    transition: all 0.3s ease;
}

#playlistSearch:focus {
    outline: none;
    border-color: rgba(5, 150, 105, 0.4);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 10px rgba(5, 150, 105, 0.06);
}

/* Quick Filter Tabs */
.playlist-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
    flex-shrink: 0;
}

.playlist-tab {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 0.65rem;
    padding: 0.45rem 0.85rem;
    color: var(--text-gray);
    font-size: 0.82rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.playlist-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
}

.playlist-tab.active {
    background: rgba(5, 150, 105, 0.14);
    border-color: rgba(5, 150, 105, 0.3);
    color: var(--emerald-light);
}

/* Scrollable Tracks container */
.tracks-list-container {
    flex-grow: 1;
    height: 100%;
    overflow-y: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-right: 0.25rem;
    will-change: transform;
}

/* Scrollbar styles for list */
.tracks-list-container::-webkit-scrollbar {
    width: 5px;
}
.tracks-list-container::-webkit-scrollbar-track {
    background: transparent;
}
.tracks-list-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 99px;
}
.tracks-list-container::-webkit-scrollbar-thumb:hover {
    background: rgba(5, 150, 105, 0.25);
}

/* Playlist Row Item */
.track-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.8rem; /* Slightly more compact padding */
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease; /* Lighter transition for buttery smooth scrolling */
    user-select: none;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

.track-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.03);
}

.track-item.active {
    background: rgba(5, 150, 105, 0.06);
    border-color: rgba(5, 150, 105, 0.18);
}

.track-item-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    overflow: hidden;
}

.track-number-badge {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-gray);
    width: 25px;
    text-align: center;
}

.track-item.active .track-number-badge {
    color: var(--emerald-light);
}

.track-list-thumb-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.track-list-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.track-list-meta {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    overflow: hidden;
}

.track-list-name {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.track-item.active .track-list-name {
    color: var(--emerald-light);
}

.track-list-arabic {
    font-family: var(--font-arabic);
    font-size: 1.15rem;
    color: rgba(52, 211, 153, 0.7);
    font-weight: normal;
}

.track-list-meaning {
    font-size: 0.82rem;
    color: var(--text-gray);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.track-item-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.list-fav-btn {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.list-fav-btn:hover {
    color: var(--gold-light);
}

.text-gold {
    color: var(--gold-light) !important;
}

.track-list-duration {
    font-size: 0.85rem;
    color: var(--text-gray);
    min-width: 40px;
    text-align: right;
    font-weight: 500;
}

.track-list-duration.coming-soon {
    font-size: 0.75rem;
    color: var(--emerald-light);
    font-style: italic;
    font-weight: 500;
}

.playlist-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 180px;
    color: var(--text-gray);
    text-align: center;
}

.playlist-empty-state i {
    font-size: 1.8rem;
    opacity: 0.4;
}

.playlist-empty-state p {
    font-size: 0.8rem;
    margin: 0;
}

/* Toast Alert Notification */
.toast-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(2, 24, 18, 0.85);
    border: 1px solid rgba(5, 150, 105, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    border-radius: 1.25rem;
    padding: 0.85rem 1.15rem;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    width: 350px;
    max-width: calc(100vw - 3rem);
    transform: translateY(150px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-notification.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-grow: 1;
}

.toast-icon {
    font-size: 1.5rem;
    color: var(--emerald-light);
}

.toast-text-group {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.toast-text-group h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-white);
    margin: 0;
}

.toast-text-group p {
    font-size: 0.72rem;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.2rem;
    transition: color 0.2s ease;
}

.toast-close:hover {
    color: var(--text-white);
}

/* Repeat mode sub-indicator */
.repeat-badge-one {
    position: absolute;
    top: 2px;
    right: 1px;
    font-size: 0.5rem;
    font-weight: 800;
    background: var(--emerald-light);
    color: var(--bg-dark);
    padding: 0 0.1rem;
    border-radius: 2px;
    line-height: 1;
}

/* Footer view constraint */
body.audio-page-body.viewport-fixed footer {
    height: 40px;
    padding: 0.5rem 0;
    margin-top: 0;
    border-top: 1px solid var(--glass-border);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    background: rgba(0, 0, 0, 0.8);
    z-index: 100;
}

/* Responsiveness layout adjustments */
@media (max-width: 768px) {
    /* Performance optimizations for mobile GPUs: completely hide glows and remove fixed backgrounds */
    .bg-glow-top, .bg-glow-bottom {
        display: none !important;
    }
    
    .player-unified-card::before {
        display: none !important;
    }

    body.audio-page-body.viewport-fixed {
        background: linear-gradient(rgba(2, 32, 23, 0.75), rgba(0, 0, 0, 0.9)), 
                    url('audio/assets/ambient_bg.webp') no-repeat center center !important;
        background-attachment: scroll !important;
        background-size: cover !important;
        overflow-y: auto;
        height: auto;
    }
    
    .audio-viewport-container {
        height: auto;
        overflow: visible;
        padding: 1rem;
    }
    
    .player-unified-card {
        grid-template-columns: 1fr;
        height: auto;
        max-width: 100%;
        background: rgba(10, 25, 18, 0.8) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
    }
    
    .player-left-panel {
        height: auto;
        gap: 1rem;
        padding: 1.5rem 1.25rem;
    }
    
    .player-panel-divider {
        display: none;
    }
    
    .player-right-panel {
        height: auto;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding: 1.5rem 1.25rem;
    }
    
    .tracks-list-container {
        height: 300px;
    }

    /* Disable active/touch blur filters on mobile to make interactions snappy */
    .btn-primary:active, .btn-support:active, .back-btn:active, .btn-nav:active:not(:disabled),
    .control-btn:active, .play-pause-btn:active, .favorite-btn:active, .mute-btn:active,
    .track-item:active, .tab-item:active {
        filter: none !important;
    }
}

@media (max-width: 480px) {
    .player-compact-title h1 {
        font-size: 1.35rem;
    }
    
    .active-title {
        font-size: 1.1rem;
    }
    
    .active-arabic {
        font-size: 1.35rem;
    }
}

/* ==========================================
   Refined Symmetrical Sub-Cards & Visualizer
   ========================================== */

/* Glassmorphic Compartment for Playback Controls Only */
.player-controls-card {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.25rem;
    padding: 0.65rem 0.85rem;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.03), 0 8px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.15rem;
}

/* Dynamic CSS Audio Wave Visualizer */
.audio-visualizer-wave {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 14px;
    width: 30px;
}

.visualizer-bar {
    width: 3px;
    height: 100%;
    background: var(--emerald-light);
    border-radius: 99px;
    transform-origin: bottom;
    transform: scaleY(0.15);
    transition: transform 0.2s ease;
}

.audio-visualizer-wave.playing .visualizer-bar {
    animation: bounceBar 1s ease-in-out infinite alternate;
}

.audio-visualizer-wave.playing .visualizer-bar:nth-child(1) { animation-delay: 0.1s; }
.audio-visualizer-wave.playing .visualizer-bar:nth-child(2) { animation-delay: 0.3s; }
.audio-visualizer-wave.playing .visualizer-bar:nth-child(3) { animation-delay: 0.5s; }
.audio-visualizer-wave.playing .visualizer-bar:nth-child(4) { animation-delay: 0.2s; }
.audio-visualizer-wave.playing .visualizer-bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes bounceBar {
    0% { transform: scaleY(0.15); }
    100% { transform: scaleY(1); }
}

/* Interactive Playlist Play Icon Hover Effect */
.track-list-thumb-wrapper {
    position: relative;
}

.track-item:hover .track-list-thumb-wrapper::after {
    content: '\f04b'; /* FontAwesome Play Icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    inset: 0;
    background: rgba(0, 5, 3, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-light);
    font-size: 0.75rem;
    border-radius: 0.45rem;
    animation: fadeIn 0.2s ease;
}

.track-item.active .track-list-thumb-wrapper::after {
    content: '\f028'; /* FontAwesome Sound/Volume Icon to show playing status */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    inset: 0;
    background: rgba(0, 5, 3, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-light);
    font-size: 0.75rem;
    border-radius: 0.45rem;
}

/* Custom logo sizing and header menu alignment */
.logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
    margin-right: 0.4rem;
    display: inline-block;
    vertical-align: middle;
}
