:root {
    --primary-color: #fca311;
    --primary-hover: #e0910f;
    --text-light: #f8fafc;
    --text-dim: #cbd5e1;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --bg-dark: #0f172a;
    --blur-strength: 20px;
    --transition-speed: 0.4s;
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(252, 163, 17, 0.3);
}

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

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
    background-color: var(--bg-dark);
    line-height: 1.6;
}

/* Premium Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s var(--ease-out), visibility 1s;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-size: 3rem;
    margin-bottom: 2rem;
    animation: pulse 2s infinite ease-in-out;
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    border-radius: 10px;
}

.loader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    animation: loading 2s infinite ease-in-out;
    box-shadow: 0 0 15px var(--primary-color);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(0.98);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes loading {
    0% {
        left: -100%;
    }

    50% {
        left: 0;
    }

    100% {
        left: 100%;
    }
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Dynamic Background */
.background-overlay {
    position: fixed;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-image: url('https://images.unsplash.com/photo-1514890547357-a9ee288728e0?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    z-index: -1;
    filter: brightness(0.5) saturate(1.2);
    animation: backgroundFloat 20s ease-in-out infinite alternate;
}

@keyframes backgroundFloat {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(-2%, -2%) scale(1.05);
    }
}

/* Typography */
h1,
h2,
h3,
.logo {
    font-family: 'Cinzel', serif;
    background: linear-gradient(135deg, #fff 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}

/* Glassmorphism Utilities */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-strength));
    -webkit-backdrop-filter: blur(var(--blur-strength));
    border: 1px solid transparent;
    background-image: linear-gradient(var(--glass-bg), var(--glass-bg)), linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent, rgba(255, 255, 255, 0.1));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: var(--glass-shadow);
    border-radius: 24px;
    padding: 2.5rem;
    transition: transform var(--transition-speed) var(--ease-out),
        box-shadow var(--transition-speed) var(--ease-out),
        border-color var(--transition-speed);
}

.glass-card:hover {
    border-color: rgba(252, 163, 17, 0.3);
}

.glass-header {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1000;
    border-radius: 100px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transition: all var(--transition-speed) var(--ease-out);
}

.glass-header.scrolled {
    background: rgba(15, 23, 42, 0.9);
    padding: 0.6rem 2rem;
    width: 85%;
}

/* Sections */
section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* View Transitions */
.view {
    position: relative;
    width: 100%;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity var(--transition-speed) var(--ease-out),
        transform var(--transition-speed) var(--ease-out);
    pointer-events: none;
}

.view.active-view {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.hidden {
    display: none !important;
}

/* Login Section */
#login-section {
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    /* Enable 3D space */
}

.login-card {
    width: 100%;
    max-width: 400px;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
    transform-style: preserve-3d;
    /* For child 3D elements */
    transition: transform 0.1s ease-out;
    /* Smooth movement */
    background: rgba(20, 20, 20, 0.6);
    /* Slightly darker for contrast */
}

.login-card h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.subtitle {
    margin-bottom: 2rem;
    opacity: 0.8;
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
}

.input-group input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: white;
    font-size: 16px;
    /* Minimum 16px to prevent iOS zoom */
    outline: none;
    transition: var(--transition-speed);
}

.input-group input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(252, 163, 17, 0.3);
    /* Glow effect */
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    outline: none;
}

#login-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: var(--text-dark);
    font-weight: bold;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: var(--transition-speed);
    text-transform: uppercase;
    letter-spacing: 1px;
}

#login-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.error-message {
    color: #ff6b6b;
    margin-bottom: 1rem;
    min-height: 1.2em;
    font-size: 0.9rem;
}

/* App Section */
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.header-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

select {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
}

option {
    background: #1a1a2e;
    /* Dark bg for dropdown options */
    color: white;
}

#logout-btn {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    transition: all var(--transition-speed) var(--ease-out);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#logout-btn:hover {
    background: rgba(255, 71, 87, 0.2);
    border-color: #ff4757;
    color: #ff4757;
}

/* Custom Language Selector */
.custom-lang-selector {
    position: relative;
    user-select: none;
}

.selected-lang {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    transition: all var(--transition-speed);
}

.selected-lang:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

.selected-lang i {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.custom-lang-selector.open .selected-lang i {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0.8rem;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-speed) var(--ease-out);
    z-index: 2000;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.custom-lang-selector.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    padding: 0.6rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.lang-option:hover {
    background: rgba(252, 163, 17, 0.1);
    color: var(--primary-color);
}

main {
    flex: 1;
    padding: 8rem 2rem 2rem;
    /* Increased top padding for floating header */
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

#dashboard-title {
    margin-bottom: 0;
    font-size: 3.5rem;
    border-bottom: none;
    padding-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 8px;
    font-weight: 700;
}

/* Dashboard Controls */
.dashboard-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 4rem;
    gap: 2rem;
}

.filter-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-wrapper {
    position: relative;
    width: 250px;
}

.search-wrapper i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

#search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    border-radius: 50px;
    color: white;
    font-size: 16px;
    /* Minimum 16px to prevent iOS zoom */
    outline: none;
    transition: all var(--transition-speed) var(--ease-out);
    backdrop-filter: blur(5px);
}

#search-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(252, 163, 17, 0.15);
    width: 350px;
}

.glass-btn-small {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 0.6rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-speed);
}

.glass-btn-small:hover,
.glass-btn-small.active {
    background: var(--primary-color);
    color: var(--text-dark);
    box-shadow: 0 0 15px rgba(252, 163, 17, 0.4);
    transform: scale(1.1);
}

/* Grid */
.attractions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.attraction-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition-speed) var(--ease-out),
        background var(--transition-speed),
        box-shadow var(--transition-speed) var(--ease-out);
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.attraction-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(252, 163, 17, 0.4);
}

/* Visited style removed */

.read-time-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    color: #ccc;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.card-image {
    width: 110%;
    /* Extra width for parallax */
    height: 120%;
    /* Extra height for parallax */
    object-fit: cover;
    transition: transform 0.5s var(--ease-out);
    position: absolute;
    top: -10%;
    left: -5%;
}

.attraction-card:hover .card-image {
    transform: scale(1.05);
}

.card-image-wrapper {
    width: 100%;
    height: 220px;
    position: relative;
    overflow: hidden;
}

.fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: rgba(255, 255, 255, 0.7);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
}

.fav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.1);
}

.fav-btn.active {
    color: #ff4757;
    background: rgba(255, 255, 255, 0.9);
    animation: heartPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

.card-title {
    padding: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.5px;
    color: var(--text-light);
    background: linear-gradient(to top, rgba(15, 23, 42, 0.8), transparent);
}

/* Detail View */
#detail-view {
    max-width: 1400px;
}

#back-btn {
    background: transparent;
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#back-btn:hover {
    color: var(--primary-color);
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0;
    padding: 0;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 32px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.detail-image-container {
    height: 100%;
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

#detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    /* Allow scrolling for long text */
    max-height: 80vh;
    /* Limit height to viewport */
}

/* Scrollbar styling for detail info */
.detail-info::-webkit-scrollbar {
    width: 8px;
}

.detail-info::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.detail-info::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

#detail-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

#detail-desc {
    line-height: 1.8;
    /* Better readability */
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: #e2e8f0;
    /* Softer white for reading */
}

/* Chapters Styles */
#chapters-container {
    margin-top: 2rem;
    margin-bottom: 2rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
}

.chapter-item {
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 2.5rem;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.6s var(--ease-out);
    transform: translateY(30px);
    opacity: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.chapter-item.revealed {
    transform: translateY(0);
    opacity: 1;
}

.chapter-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(252, 163, 17, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.chapter-title {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-family: 'Cinzel', serif;
}

.chapter-text {
    line-height: 1.6;
    color: #cbd5e1;
    font-size: 1rem;
}

.chapter-audio {
    margin-top: 1rem;
    width: 100%;
}

.audio-player {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
    transition: all var(--transition-speed);
}

.audio-player:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color);
}

.audio-player label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.audio-player audio {
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 8px;
    /* Customizing audio player is hard cross-browser, standard is fine for mvp */
}

.audio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.audio-download-btn {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.2rem 0.5rem;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    transition: all 0.2s;
}

.audio-download-btn:hover {
    background: var(--primary-color);
    color: var(--text-dark);
}

.download-section {
    margin-top: auto;
    padding-top: 2rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(252, 163, 17, 0.1);
    color: var(--primary-color);
    text-decoration: none;
    padding: 1.2rem 2.5rem;
    border: 1px solid rgba(252, 163, 17, 0.3);
    border-radius: 100px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-speed) var(--ease-out);
}

.download-btn:hover {
    background: var(--primary-color);
    color: var(--text-dark);
    box-shadow: 0 10px 30px rgba(252, 163, 17, 0.3);
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 900px) {
    .detail-content {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }

    .detail-image-container {
        height: 300px;
        min-height: 250px;
    }

    .detail-info {
        padding: 1.5rem;
        max-height: none;
        /* Let it flow on mobile */
        overflow-y: visible;
    }

    h1 {
        font-size: 2rem;
    }

    #detail-title {
        font-size: 2rem;
    }
}

/* Mobile optimizations for login card and inputs */
@media (max-width: 600px) {
    .login-card {
        max-width: 90%;
        padding: 1.5rem;
        margin: 1rem;
    }

    .login-card h1 {
        font-size: 1.8rem;
        margin-bottom: 0.3rem;
    }

    .subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .input-group {
        margin-bottom: 1rem;
    }

    .input-group input {
        padding: 0.8rem 0.8rem 0.8rem 2.5rem;
        font-size: 16px;
        /* Ensure no zoom on mobile */
    }

    #login-btn {
        padding: 0.8rem;
        font-size: 1rem;
    }

    /* Header Mobile Fixes */
    .glass-header {
        width: 95%;
        padding: 0.5rem 1rem;
        top: 10px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .header-controls {
        gap: 0.5rem;
    }

    #logout-text,
    #current-lang-text {
        display: none;
    }

    .selected-lang {
        padding: 0.5rem 0.8rem;
        gap: 0.5rem;
    }
    
    #logout-btn {
        padding: 0.5rem 0.8rem;
    }

    /* Dashboard Controls Mobile Fixes */
    .dashboard-controls {
        padding: 0 0.5rem;
        margin-bottom: 2rem;
    }

    #dashboard-title {
        font-size: 2rem;
        letter-spacing: 4px;
        margin-bottom: 1.5rem;
    }

    .filter-controls {
        width: 100%;
        display: flex;
        gap: 0.8rem;
        justify-content: space-between;
    }

    .search-wrapper {
        flex: 1;
        width: auto;
    }

    /* Ensure search input doesn't zoom and fits container */
    #search-input {
        font-size: 16px;
        width: 100%;
        padding: 0.8rem 1rem 0.8rem 2.5rem;
    }

    #search-input:focus {
        width: 100%;
        box-shadow: 0 0 15px rgba(252, 163, 17, 0.2);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Sticky Audio Player */
.glass-audio-player {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--primary-color);
    border-radius: 50px;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 100%);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.audio-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#sticky-title {
    color: var(--primary-color);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
}

.audio-controls-mini {
    display: flex;
    gap: 1rem;
}

.audio-controls-mini button {
    background: transparent;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition-speed);
}

.audio-controls-mini button:hover {
    color: var(--primary-color);
}

.audio-progress-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

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

/* Progress Bar in Header */
.glass-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.progress-bar {
    width: 100px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--progress, 0%);
    background: var(--primary-color);
    transition: width 0.5s ease;
}

#progress-text {
    font-size: 0.8rem;
    color: #ccc;
    white-space: nowrap;
}