:root {
    /* Color Palette: Earth & Spirit */
    --bg-deep: #0a0c0b;
    --spirit-emerald: #132a13;
    --spirit-emerald-rgb: 19, 42, 19;
    --sand-gold: #c5a059;
    --sand-gold-glow: rgba(197, 160, 89, 0.2);
    --bone-white: #f8f5f1;
    --text-muted: rgba(248, 245, 241, 0.6);
    --surface-glass: rgba(248, 245, 241, 0.03);
    --gold-gradient: linear-gradient(135deg, #c5a059 0%, #8e6e3a 100%);

    /* Typography */
    --font-display: 'Syne', sans-serif;
    --font-arabic: 'Amiri', serif;
    --font-body: 'Outfit', sans-serif;

    /* Layout */
    --card-radius: 16px;
    --section-spacing: 10rem;
    --glass-bg: rgba(248, 245, 241, 0.04);
    --glass-border: rgba(248, 245, 241, 0.12);
    --glass-blur: 12px;
    --transition-base: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-deep);
    color: var(--bone-white);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.15;
    pointer-events: none;
    z-index: 9999;
}

.mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(at 0% 0%, var(--spirit-emerald) 0%, transparent 50%),
        radial-gradient(at 100% 100%, #1a1a1a 0%, transparent 50%),
        radial-gradient(at 100% 0%, #000 0%, transparent 50%),
        radial-gradient(at 50% 50%, rgba(19, 42, 19, 0.2) 0%, transparent 50%);
    filter: blur(80px);
    animation: mesh-pulse 20s ease-in-out infinite alternate;
}

@keyframes mesh-pulse {
    0% {
        transform: scale(1) rotate(0deg);
    }

    100% {
        transform: scale(1.1) rotate(5deg);
    }
}

main {
    padding-bottom: 180px;
}

.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 2rem 0;
    transition: var(--transition-base);
}

.glass-nav.scrolled {
    padding: 1rem 0;
    background: rgba(10, 12, 11, 0.82);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4rem;
}

.logo {
    font-family: var(--font-arabic);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--sand-gold);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: var(--transition-base);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--bone-white);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.search-container {
    position: relative;
}

.search-container input {
    background: transparent;
    border: 1px solid var(--glass-border);
    padding: 0.7rem 1.5rem;
    padding-right: 3rem;
    color: var(--bone-white);
    font-family: var(--font-body);
    font-size: 0.85rem;
    width: 200px;
    transition: var(--transition-base);
}

.search-container input:focus {
    outline: none;
    width: 260px;
    border-color: var(--sand-gold);
    background: rgba(248, 245, 241, 0.05);
}

.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
    font-size: 0.9rem;
}

.btn-lang {
    background: transparent;
    border: 1px solid var(--sand-gold);
    color: var(--sand-gold);
    padding: 0.45rem 1rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-lang:hover {
    background: var(--sand-gold);
    color: var(--bg-deep);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.2);
}

.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 4rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.badge {
    font-family: var(--font-arabic);
    font-size: 1.1rem;
    color: var(--sand-gold);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.badge::after {
    content: "";
    width: 40px;
    height: 1px;
    background: var(--sand-gold);
    opacity: 0.4;
}

h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.05em;
    margin-bottom: 2rem;
    max-width: 900px;
}

[lang="ar"] h1 {
    font-family: var(--font-arabic);
    line-height: 1.3;
    letter-spacing: 0;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 550px;
    margin-bottom: 3.5rem;
    font-weight: 300;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.btn-white,
.btn-outline {
    padding: 1.25rem 2.8rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: var(--transition-base);
}

.btn-white {
    background: var(--bone-white);
    color: var(--bg-deep);
}

.btn-white:hover {
    transform: translateY(-5px);
    background: var(--sand-gold);
}

.btn-outline {
    border: 1px solid var(--glass-border);
    color: var(--bone-white);
}

.btn-outline:hover {
    border-color: var(--bone-white);
    background: var(--glass-bg);
}

.bento-section {
    padding: 8rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    margin-bottom: 4rem;
    letter-spacing: -0.03em;
}

[lang="ar"] .section-title {
    font-family: var(--font-arabic);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 2rem;
}

.bento-item {
    grid-column: span 4;
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    aspect-ratio: 1/1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
    overflow: hidden;
}

.bento-item:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--sand-gold);
    background: rgba(248, 245, 241, 0.07);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--sand-gold-glow);
}

.bento-item.large {
    grid-column: span 8;
    aspect-ratio: 2/1;
}

.bento-item h3 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

[lang="ar"] .bento-item h3 {
    font-family: var(--font-arabic);
    font-size: 2.8rem;
}

.bento-item p {
    font-size: 1.05rem;
    color: var(--text-muted);
}

.card-icon {
    font-size: 3.5rem;
    opacity: 0.1;
    align-self: flex-end;
}

.player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 12, 11, 0.96);
    backdrop-filter: blur(40px);
    border-top: 1px solid var(--glass-border);
    padding: 1.5rem 4rem;
    z-index: 1001;
}

.player-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 2fr 1.2fr;
    align-items: center;
    gap: 4rem;
}

.now-playing {
    display: flex;
    flex-direction: column;
}

.track-title {
    font-family: var(--font-arabic);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--sand-gold);
}

.track-artist {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

.player-controls {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.playback-btns {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
}

.control-btn {
    background: none;
    border: none;
    color: var(--bone-white);
    cursor: pointer;
    transition: var(--transition-base);
    opacity: 0.6;
}

.control-btn:hover {
    opacity: 1;
    color: var(--sand-gold);
}

.play-pause {
    background: var(--sand-gold);
    color: var(--bg-deep);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.progress-area {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.progress-bar {
    flex: 1;
    height: 2px;
    background: rgba(248, 245, 241, 0.1);
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background: var(--sand-gold);
}

.time-display {
    font-family: var(--font-display);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.player-volume {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: flex-end;
}

.volume-slider {
    width: 80px;
    accent-color: var(--sand-gold);
}

#speed-toggle {
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 35px;
}

.control-btn#repeat-toggle.active {
    color: var(--sand-gold);
    opacity: 1;
    filter: drop-shadow(0 0 5px var(--sand-gold-glow));
}

.empty-message {
    padding: 4rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    margin: 2rem 0;
}

.empty-message p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 4rem;
    opacity: 0.2;
}

.page-content {
    padding-top: 12rem;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 4rem;
    padding-right: 4rem;
}

.page-header {
    margin-bottom: 6rem;
}

.tracks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
}

.tracks-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.track-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: var(--transition-base);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}

.track-card:hover {
    border-color: var(--sand-gold);
    background: rgba(248, 245, 241, 0.06);
}

.track-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
}

.track-expand-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.track-expand-btn:hover {
    color: var(--sand-gold);
}

.track-card.expanded .track-expand-btn {
    transform: rotate(180deg);
    color: var(--sand-gold);
}

.track-actions-panel {
    display: none;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--glass-border);
    gap: 1rem;
    justify-content: center;
}

.track-card.expanded .track-actions-panel {
    display: flex;
}

.track-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--bone-white);
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition-base);
    border-radius: 4px;
}

.track-action-btn:hover {
    border-color: var(--sand-gold);
    color: var(--sand-gold);
    background: rgba(197, 160, 89, 0.1);
}

.track-action-btn svg {
    opacity: 0.8;
}

.track-action-btn:hover svg {
    opacity: 1;
}


.track-title-card {
    font-family: var(--font-arabic);
    font-size: 1.4rem;
    font-weight: 700;
}

.play-btn {
    background: var(--sand-gold);
    color: var(--bg-deep);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-base);
}

.stagger-reveal>* {
    opacity: 0;
    transform: translateY(30px);
    animation: reveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.stagger-reveal>*:nth-child(1) {
    animation-delay: 0.1s;
}

.stagger-reveal>*:nth-child(2) {
    animation-delay: 0.2s;
}

.stagger-reveal>*:nth-child(3) {
    animation-delay: 0.3s;
}

.stagger-reveal>*:nth-child(4) {
    animation-delay: 0.4s;
}

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

@media (max-width: 1024px) {
    .nav-container {
        padding: 0 1.5rem;
    }

    .hero {
        padding: 5rem 1.5rem;
        min-height: 70vh;
    }

    .page-content {
        padding: 8rem 1.5rem;
    }

    .bento-section {
        padding: 4rem 1.5rem;
    }

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

    .bento-item,
    .bento-item.large {
        grid-column: span 12;
        aspect-ratio: auto;
        min-height: 200px;
        padding: 2rem;
    }

    .player-bar {
        padding: 1rem 1.5rem;
    }

    .player-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .player-volume,
    .nav-links {
        display: none;
    }

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

    h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.2rem;
    }

    .hero {
        padding: 4rem 1rem;
        min-height: 60vh;
    }

    .hero-desc {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .btn-white,
    .btn-outline {
        padding: 1rem 1.5rem;
        font-size: 0.8rem;
        text-align: center;
    }

    .track-card {
        padding: 1.25rem;
    }

    .track-card .track-title {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .bento-item h3 {
        font-size: 1.5rem;
    }

    [lang="ar"] .bento-item h3 {
        font-size: 1.8rem;
    }

    .bento-item p {
        font-size: 0.9rem;
    }

    .card-icon {
        font-size: 2.5rem;
    }

    /* Mobile player bar */
    .player-bar {
        padding: 0.75rem 1rem;
    }

    .player-container {
        gap: 0.75rem;
    }

    .now-playing .track-title {
        font-size: 0.95rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 150px;
    }

    .now-playing .track-artist {
        font-size: 0.6rem;
    }

    .playback-btns {
        gap: 1rem;
    }

    .play-pause {
        width: 40px;
        height: 40px;
    }

    .progress-area {
        gap: 0.5rem;
    }

    .time-display {
        font-size: 0.6rem;
    }

    /* Stats */
    .stat-number {
        font-size: 3rem;
    }

    .stat-label {
        font-size: 0.75rem;
        letter-spacing: 0.1em;
    }

    /* Series cards */
    .series-card {
        aspect-ratio: 16/9;
        padding: 1.5rem;
    }

    .series-card h3 {
        font-size: 1.4rem;
    }

    [lang="ar"] .series-card h3 {
        font-size: 1.6rem;
    }

    /* Bio section */
    .bio-title {
        font-size: 2rem;
    }

    .bio-text {
        font-size: 1rem;
        line-height: 1.8;
    }

    /* Quote */
    .quote-text {
        font-size: 1.5rem;
        padding: 0 1rem;
    }

    /* Year cards */
    .year-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .year-card {
        padding: 1.25rem;
    }

    .year-number {
        font-size: 1.4rem;
    }

    .year-count {
        font-size: 0.7rem;
    }

    /* Search */
    .search-container {
        display: none;
    }

    /* Nav adjustments */
    .nav-container {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.4rem;
    }

    .glass-nav {
        padding: 1rem 0;
    }
}

.lang-en h1 {
    letter-spacing: -0.02em;
    font-weight: 700;
}

.lang-en .hero h1 {
    line-height: 1.05;
}

/* Search results and tags */
.track-category-tag {
    font-size: 0.65rem;
    background: var(--sand-gold-glow);
    color: var(--sand-gold);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.search-results-header {
    margin-bottom: 3rem;
    padding-top: 2rem;
}

.search-stats {
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: -3rem;
}

.search-section {
    margin-bottom: 5rem;
}

.subsection-title {
    font-family: var(--font-arabic);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--bone-white);
    opacity: 0.9;
    border-right: 4px solid var(--sand-gold);
    padding-right: 1.5rem;
}

.lang-en .subsection-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    border-right: none;
    border-left: 4px solid var(--sand-gold);
    padding-right: 0;
    padding-left: 1.5rem;
}

.track-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
    /* Allow it to take available space */
}

.track-card .track-duration {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-display);
    display: block;
    margin-top: 0.2rem;
}

.track-card .track-title {
    font-family: var(--font-arabic);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--sand-gold);
    display: block;
    line-height: 1.3;
}

.year-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.year-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: var(--transition-bounce);
}

.year-card:hover {
    border-color: var(--sand-gold);
    transform: translateY(-8px);
    background: rgba(248, 245, 241, 0.08);
}

.year-number {
    font-family: var(--font-arabic);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--sand-gold);
    margin-bottom: 0.5rem;
}

.year-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.year-nav {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.year-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.year-header .section-title {
    margin-bottom: 0;
}

.year-subtitle {
    font-family: var(--font-arabic);
    font-size: 1.5rem;
    color: var(--sand-gold);
    opacity: 0.8;
}

.back-link {
    color: var(--sand-gold);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-base);
}

.back-link:hover {
    transform: translateX(5px);
}

/* ============================
   Month Navigation (Prayers)
   ============================ */
.month-layout {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.month-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1rem 0.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--card-radius);
    min-width: 56px;
    flex-shrink: 0;
}

.month-sidebar-title {
    font-family: var(--font-arabic);
    font-size: 0.85rem;
    color: var(--sand-gold);
    padding-bottom: 0.5rem;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid var(--glass-border);
    width: 100%;
    text-align: center;
    font-weight: 600;
}

.month-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-base);
    width: 100%;
    text-align: center;
}

.month-btn:hover {
    color: var(--bone-white);
    background: var(--sand-gold-glow);
}

.month-btn.active {
    color: var(--sand-gold);
    background: var(--sand-gold-glow);
    font-weight: 700;
}

.month-content {
    flex: 1;
    min-width: 0;
}

.month-section {
    margin-bottom: 2rem;
}

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

.month-heading {
    font-family: var(--font-arabic);
    font-size: 1.3rem;
    color: var(--sand-gold);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

/* Mobile: horizontal scroll sidebar */
@media (max-width: 640px) {
    .month-layout {
        flex-direction: column;
        gap: 1rem;
    }

    .month-sidebar {
        position: sticky;
        top: 60px;
        z-index: 10;
        flex-direction: row;
        overflow-x: auto;
        padding: 0.5rem 0.75rem;
        min-width: auto;
        width: 100%;
        gap: 0.1rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .month-sidebar::-webkit-scrollbar {
        display: none;
    }

    .month-sidebar-title {
        border-bottom: none;
        border-left: 1px solid var(--glass-border);
        padding-bottom: 0;
        padding-left: 0.5rem;
        margin-bottom: 0;
        margin-left: 0.25rem;
        width: auto;
        white-space: nowrap;
    }

    [dir="rtl"] .month-sidebar-title {
        border-left: none;
        border-right: 1px solid var(--glass-border);
        padding-left: 0;
        padding-right: 0.5rem;
        margin-left: 0;
        margin-right: 0.25rem;
    }

    .month-btn {
        white-space: nowrap;
        width: auto;
        padding: 0.3rem 0.6rem;
        font-size: 0.85rem;
    }
}

/* Track Detail Page */
.track-detail-page .page-header {
    margin-bottom: 3rem;
}

.track-detail-page h1 {
    font-size: 2.5rem;
    margin-top: 1rem;
}

.track-meta {
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: 0.5rem;
}

.track-player-section {
    max-width: 800px;
}

.track-player-card {
    padding: 3rem;
    border-radius: var(--card-radius);
}

.track-waveform {
    text-align: center;
    padding: 3rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.waveform-icon {
    font-size: 5rem;
    opacity: 0.3;
}

.track-controls-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.play-pause-large {
    background: var(--sand-gold);
    color: var(--bg-deep);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-bounce);
}

.play-pause-large:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(197, 160, 89, 0.3);
}

.progress-area-large {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.progress-bar-large {
    flex: 1;
    height: 6px;
    background: rgba(248, 245, 241, 0.1);
    cursor: pointer;
    border-radius: 3px;
}

.progress-bar-large .progress-fill {
    height: 100%;
    background: var(--sand-gold);
    border-radius: 3px;
}

.track-actions {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    color: var(--bone-white);
    cursor: pointer;
    font-size: 0.8rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: var(--transition-base);
    padding: 1rem 2rem;
}

.action-btn:hover {
    color: var(--sand-gold);
}

.action-btn svg {
    opacity: 0.7;
}

.action-btn:hover svg {
    opacity: 1;
}

/* Hamburger Menu */
.hamburger-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--bone-white);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--bone-white);
    margin: 5px 0;
    transition: var(--transition-base);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 12, 11, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    padding: 6rem 2rem;
    flex-direction: column;
    gap: 2rem;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav a {
    font-size: 1.5rem;
    color: var(--bone-white);
    text-decoration: none;
    font-family: var(--font-arabic);
    transition: var(--transition-base);
}

.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--sand-gold);
}

@media (max-width: 1024px) {
    .hamburger-btn {
        display: block;
    }
}

@media (max-width: 480px) {
    .track-player-card {
        padding: 1.5rem;
    }

    .play-pause-large {
        width: 60px;
        height: 60px;
    }

    .play-pause-large svg {
        width: 32px;
        height: 32px;
    }

    .track-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .action-btn {
        flex-direction: row;
        justify-content: center;
        padding: 0.75rem 1rem;
    }

    .year-nav {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* Scroll Reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* New Landing Page Sections */
.stats-section {
    padding: var(--section-spacing) 4rem;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--sand-gold);
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.series-section {
    padding: var(--section-spacing) 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.series-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.series-card {
    position: relative;
    border-radius: var(--card-radius);
    overflow: hidden;
    aspect-ratio: 4/5;
    background: var(--surface-glass);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: var(--transition-bounce);
    text-decoration: none;
    color: inherit;
}

.series-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(10, 12, 11, 0.9) 0%, transparent 70%);
    z-index: 1;
}

.series-card:hover {
    transform: translateY(-15px);
    border-color: var(--sand-gold);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.series-content {
    position: relative;
    z-index: 2;
}

.series-tag {
    color: var(--sand-gold);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    display: block;
}

.series-card h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 1.1;
}

[lang="ar"] .series-card h3 {
    font-family: var(--font-arabic);
    font-size: 2.2rem;
}

.bio-section {
    padding: var(--section-spacing) 4rem;
    display: flex;
    align-items: center;
    gap: 8rem;
    max-width: 1400px;
    margin: 0 auto;
}

.bio-image {
    flex: 1;
    position: relative;
}

.bio-image img {
    width: 100%;
    border-radius: var(--card-radius);
    filter: grayscale(0.5) contrast(1.1);
    transition: var(--transition-base);
}

.bio-image::after {
    content: "";
    position: absolute;
    inset: -1rem;
    border: 1px solid var(--sand-gold);
    border-radius: var(--card-radius);
    z-index: -1;
    opacity: 0.3;
}

.bio-content {
    flex: 1.2;
}

.bio-title {
    font-family: var(--font-arabic);
    font-size: 3rem;
    color: var(--sand-gold);
    margin-bottom: 2rem;
}

.bio-text {
    font-size: 1.25rem;
    line-height: 2;
    color: var(--text-muted);
}

.quote-section {
    padding: var(--section-spacing) 4rem;
    text-align: center;
    background: radial-gradient(circle at center, rgba(197, 160, 89, 0.05) 0%, transparent 70%);
}

.quote-text {
    font-family: var(--font-arabic);
    font-size: 3.5rem;
    max-width: 1000px;
    margin: 0 auto;
    font-style: italic;
    opacity: 0.9;
}

@media (max-width: 1024px) {
    .stats-section {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 6rem 1.5rem;
    }

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

    .bio-section {
        flex-direction: column;
        gap: 4rem;
        padding: 6rem 1.5rem;
    }

    .quote-text {
        font-size: 2rem;
    }
}

/* Autoplay Modal */
.autoplay-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 12, 11, 0.95);
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

.autoplay-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.autoplay-modal {
    background: var(--glass-bg);
    border: 1px solid var(--sand-gold);
    border-radius: var(--card-radius);
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    transform: translateY(20px);
    transition: var(--transition-bounce);
}

.autoplay-modal-overlay.show .autoplay-modal {
    transform: translateY(0);
}

.autoplay-icon {
    font-size: 4rem;
    color: var(--sand-gold);
    margin-bottom: 1.5rem;
    display: block;
}

.autoplay-modal h2 {
    font-family: var(--font-arabic);
    font-size: 2rem;
    color: var(--sand-gold);
    margin-bottom: 1rem;
}

.autoplay-modal p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.btn-autoplay-play {
    background: var(--sand-gold);
    color: var(--bg-deep);
    border: none;
    padding: 1rem 3rem;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-bounce);
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.btn-autoplay-play:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(197, 160, 89, 0.4);
}