:root {
    --primary-gold: #c6a664;
    --primary-gold-bright: #eecf8a;
    --secondary-dark: #0a0a0a;
    --secondary-light: #151515;
    --text-main: #ffffff;
    --text-muted: #b3b3b3;
    --accent-glow: rgba(198, 166, 100, 0.3);
    --glass-bg: rgba(20, 20, 20, 0.75);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font-heading: 'Amiri', serif;
    --font-body: 'Tajawal', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    background-color: var(--secondary-dark);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    background-image: radial-gradient(circle at 50% 0%, #1a1505 0%, var(--secondary-dark) 60%);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-dark);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-gold);
}

/* Typography Enhancements */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.4;
}

/* Islamic Geometric Background Pattern */
/* Islamic Geometric Background Pattern - Enhanced */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Complex Geometric Pattern using Gradients */
    background-color: var(--secondary-dark);
    background-image:
        radial-gradient(circle at 50% 50%, rgba(198, 166, 100, 0.05) 0%, transparent 50%),
        linear-gradient(0deg, transparent 24%, rgba(198, 166, 100, 0.02) 25%, rgba(198, 166, 100, 0.02) 26%, transparent 27%, transparent 74%, rgba(198, 166, 100, 0.02) 75%, rgba(198, 166, 100, 0.02) 76%, transparent 77%),
        linear-gradient(90deg, transparent 24%, rgba(198, 166, 100, 0.02) 25%, rgba(198, 166, 100, 0.02) 26%, transparent 27%, transparent 74%, rgba(198, 166, 100, 0.02) 75%, rgba(198, 166, 100, 0.02) 76%, transparent 77%);
    background-size: 100px 100px;
    z-index: -1;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------------- Hero Section ---------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 0 40px;
    overflow: hidden;
}

/* Ambient Light Effects */
.light-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: floatOrb 10s infinite alternate ease-in-out;
    z-index: 0;
}

.orb-1 {
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-gold) 0%, transparent 70%);
}

.orb-2 {
    bottom: 10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #444 0%, transparent 70%);
    animation-delay: -5s;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 50px);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    /* Removed opacity: 0 and animation to ensure visibility */
}

/* Profile Image with Islamic Decoration Ring */
/* Profile Image with Simplified Elegant Islamic Frame */
.profile-image-container {
    width: 220px;
    height: 220px;
    margin: 0 auto 2.5rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* Outer Rotating Ring - Decorative */
.profile-image-container::before {
    content: '';
    position: absolute;
    inset: -15px;
    border-radius: 50%;
    border: 2px solid var(--primary-gold);
    border-top: 2px solid transparent;
    border-bottom: 2px solid transparent;
    box-shadow: 0 0 15px rgba(198, 166, 100, 0.1);
    animation: spinSlow 15s linear infinite;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Inner Rotating Ring - Dashed */
.profile-image-container::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px dashed var(--primary-gold);
    opacity: 0.5;
    animation: spinReverse 20s linear infinite;
    transition: all 0.5s;
}

/* Interaction: Frame Glows and Spins Faster on Hover */
.profile-image-container:hover::before {
    border-color: var(--primary-gold-bright);
    border-top-color: transparent;
    border-bottom-color: transparent;
    box-shadow: 0 0 40px rgba(198, 166, 100, 0.4);
    animation-duration: 2s;
    /* Speed up significantly */
    inset: -20px;
    /* Expand slightly */
}

.profile-image-container:hover::after {
    opacity: 0.9;
    border-color: var(--primary-gold-bright);
    animation-duration: 4s;
}

/* The Image Itself - STATIC */
.profile-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--secondary-dark);
    /* Separation */
    box-shadow: 0 0 0 2px var(--primary-gold);
    /* Static gold rim */
    position: relative;
    z-index: 2;
    transition: transform 0.5s ease;
}

/* Slight scale effect on image when hovering frame, but NO rotation */
.profile-image-container:hover .profile-image {
    transform: scale(0.96);
}



@keyframes spinReverse {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

@keyframes spinSlow {
    100% {
        transform: rotate(360deg);
    }
}

/* Hero Text */
.hero h1 {
    font-family: 'Reem Kufi', sans-serif;
    font-size: 4.8rem;
    background: linear-gradient(to right, #fff 20%, var(--primary-gold-bright) 50%, #fff 80%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shineText 5s linear infinite;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

@keyframes shineText {
    to {
        background-position: 200% center;
    }
}

.subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* Quran Calligraphy Image */
.quran-image-container {
    margin: 1.5rem auto;
    display: flex;
    justify-content: center;
    position: relative;
    max-width: 300px;
    /* Adjust size based on image */
}

.quran-logo {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(198, 166, 100, 0.4));
    transition: var(--transition-smooth);
}

.quran-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(198, 166, 100, 0.7));
}

/* Social Icons Styled */
.social-links {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 1.4rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.social-icon:hover {
    color: var(--primary-gold-bright);
    border-color: var(--primary-gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px -5px var(--accent-glow);
}

.social-icon:hover::before {
    transform: translateX(100%);
}

/* Main Button */
.btn-gold-glow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--primary-gold), #9e8246);
    color: #000;
    font-weight: 800;
    /* Bold as requested */
    font-size: 1.1rem;
    border-radius: 50px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: 0 0 20px rgba(198, 166, 100, 0.4);
}

.btn-gold-glow:hover {
    transform: scale(1.03);
    box-shadow: 0 0 35px rgba(198, 166, 100, 0.6);
}

/* Scroll To Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-gold);
    /* Golden */
    color: #000;
    border: none;
    border-radius: 50%;
    display: flex;
    /* Flex to center icon */
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(198, 166, 100, 0.4);
    /* Glowing */
    transition: var(--transition-smooth);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: #fff;
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.6);
}



.quran-text::before,
.quran-text::after {
    content: '۞';
    font-size: 1.2em;
    color: var(--primary-gold);
    vertical-align: middle;
    margin: 0 15px;
}

/* About Section */
.about-section {
    margin: 4rem 0;
    position: relative;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.about-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    margin-top: 1rem;
}

.about-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.2));
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(198, 166, 100, 0.2);
}

.about-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-gold);
    box-shadow: 0 0 15px rgba(198, 166, 100, 0.3);
}

.about-text p {
    color: #ddd;
    line-height: 1.8;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .about-card {
        flex-direction: column;
        text-align: center;
    }
}



/* Separator Ornament */
.separator-ornament {
    width: 100%;
    max-width: 300px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
    margin: 1.5rem auto;
    position: relative;
    opacity: 0.7;
}

.separator-ornament::before {
    content: '◈';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary-gold);
    background: var(--secondary-dark);
    padding: 0 10px;
    font-size: 1.2rem;
}

/* ---------------- Main Content ---------------- */
.main-section {
    position: relative;
    padding-bottom: 120px;
    /* Space for player */
}

.section-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
    gap: 1.5rem;
    text-align: center;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--primary-gold-bright);
    display: flex;
    align-items: center;
    gap: 15px;
    text-shadow: 0 0 20px rgba(198, 166, 100, 0.2);
}

.section-title h2 i {
    font-size: 0.8em;
    opacity: 0.8;
}

/* Search Box Modern */
.search-container {
    position: relative;
    width: 400px;
    max-width: 90%;
}

.search-input {
    width: 100%;
    padding: 18px 50px 18px 25px;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(198, 166, 100, 0.2);
    border-radius: 16px;
    color: #fff;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
    font-family: inherit;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

.search-input:focus {
    outline: none;
    background: rgba(25, 25, 25, 0.95);
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 1px var(--primary-gold), 0 10px 30px rgba(0, 0, 0, 0.5);
}

.search-icon {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-gold);
    pointer-events: none;
    font-size: 1.1rem;
}

/* Glass Table */
.quran-list-container {
    background: var(--glass-bg);
    border-radius: 24px;
    border: var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.quran-table {
    width: 100%;
    border-collapse: collapse;
}

.quran-table th {
    text-align: center;
    padding: 24px;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary-gold);
    border-bottom: 1px solid rgba(198, 166, 100, 0.2);
    background: linear-gradient(180deg, rgba(198, 166, 100, 0.08), transparent);
}

.quran-table td {
    text-align: center;
    padding: 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.2s;
    font-size: 1.1rem;
}

.quran-table tr {
    transition: transform 0.2s, background 0.2s;
    cursor: default;
}

.quran-table tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Active Row Style */
.quran-table tr.active {
    background: linear-gradient(90deg, rgba(198, 166, 100, 0.15), transparent);
    position: relative;
    border-right: 4px solid var(--primary-gold);
    /* RTL support */
}

.quran-table tr.active td {
    color: var(--primary-gold-bright);
    font-weight: 600;
}

/* Custom Show More Button */
.show-more-container {
    display: flex;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-show-more {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-smooth);
}

.btn-show-more:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: #fff;
}

.btn-show-more i {
    transition: transform 0.3s;
}

.btn-show-more:hover i {
    transform: translateY(3px);
}

/* Action Buttons Small */
.icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    margin: 0 4px;
}

.icon-btn:hover {
    background: var(--primary-gold);
    color: #000;
    transform: scale(1.1);
}

.icon-btn.playing {
    background: var(--primary-gold);
    color: #000;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(198, 166, 100, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(198, 166, 100, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(198, 166, 100, 0);
    }
}

/* Videos Sections */
.videos-section,
.latest-videos-section {
    margin-top: 2rem;
    position: relative;
    padding-bottom: 2rem;
}

.show-more-video-container {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

.show-more-video-btn {
    background: transparent;
    color: var(--primary-gold);
    border: 1px solid var(--primary-gold);
    padding: 10px 30px;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.show-more-video-btn:hover {
    background: var(--primary-gold);
    color: #000;
    box-shadow: 0 0 20px rgba(198, 166, 100, 0.4);
    transform: translateY(-3px);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.videos-grid.two-cols {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
    .videos-grid.two-cols {
        grid-template-columns: 1fr;
    }
}

.video-card {
    background: var(--glass-bg);
    border-radius: 20px;
    border: var(--glass-border);
    overflow: hidden;
    transition: var(--transition-smooth);
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-gold);
}

.video-thumb {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

.video-card:hover .video-thumb img {
    transform: scale(1.1);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3.5rem;
    color: #fff;
    opacity: 0.8;
    z-index: 2;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    transition: 0.3s;
}

.video-card:hover .play-overlay {
    transform: translate(-50%, -50%) scale(1.1);
    color: var(--primary-gold);
}

.video-info {
    padding: 1.8rem;
    text-align: right;
}

.video-info h3 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    color: #fff;
    line-height: 1.5;
}

.btn-text-gold {
    color: var(--primary-gold);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.btn-text-gold:hover {
    color: var(--primary-gold-bright);
    gap: 12px;
}

/* Force remove underline from links */
a,
.social-icon {
    text-decoration: none !important;
}

/* ---------------- Audio Player (Bottom) ---------------- */
.player-bar {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    width: 90%;
    max-width: 900px;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 15px 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.player-bar.show {
    transform: translateX(-50%) translateY(0);
}

.close-player-btn {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 35px;
    height: 35px;
    background: var(--secondary-light);
    color: var(--primary-gold);
    border: 1px solid var(--primary-gold);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 0 15px rgba(198, 166, 100, 0.3);
    transition: var(--transition-smooth);
    z-index: 1001;
}

.close-player-btn:hover {
    background: var(--primary-gold);
    color: var(--secondary-dark);
    transform: scale(1.1) rotate(90deg);
}

.track-meta {
    display: flex;
    flex-direction: column;
    min-width: 140px;
}

.track-title {
    color: var(--primary-gold-bright);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
}

.track-artist {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.controls-wrapper {
    display: flex;
    align-items: center;
    gap: 18px;
}

.ctrl-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
}

@media (hover: hover) {
    .ctrl-btn:hover {
        color: #fff;
        transform: scale(1.2);
    }
}

.ctrl-btn:focus {
    outline: none;
}

.play-pause-main {
    width: 55px;
    height: 55px;
    background: var(--primary-gold);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 0 25px rgba(198, 166, 100, 0.4);
}

@media (hover: hover) {
    .play-pause-main:hover {
        background: #fff;
        transform: scale(1.1);
    }
}

.play-pause-main:active {
    transform: scale(0.95);
    background: var(--primary-gold-bright);
}

.play-pause-main:focus {
    outline: none;
}

.progress-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.seek-slider {
    flex-grow: 1;
    height: 4px;
    /* Thinner for modern look */
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    position: relative;
    direction: ltr;
    /* Force left-to-right for consistent progress */
    transition: height 0.2s;
}

.seek-slider:hover {
    height: 6px;
}

.seek-slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: #fff;
    border: 2px solid var(--primary-gold);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(198, 166, 100, 0.5);
    transition: transform 0.2s;
}

.seek-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: var(--primary-gold);
}

.seek-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #fff;
    border: 2px solid var(--primary-gold);
    border-radius: 50%;
    cursor: pointer;
}

.speed-control {
    margin-right: 10px;
}

.speed-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--primary-gold-bright);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: var(--transition-smooth);
    appearance: none;
    -webkit-appearance: none;
    text-align: center;
    min-width: 65px;
    box-shadow: inset 0 0 10px rgba(198, 166, 100, 0.1);
}

.speed-select:hover {
    background: rgba(198, 166, 100, 0.15);
    box-shadow: 0 0 15px rgba(198, 166, 100, 0.2);
    transform: translateY(-2px);
}

.speed-select:focus {
    background: var(--secondary-light);
    border-color: #fff;
}

.speed-select option {
    background: var(--secondary-dark);
    color: #fff;
    padding: 10px;
}

/* Gold Glow Small Button */
.btn-gold-glow-small {
    background: rgba(198, 166, 100, 0.1);
    color: var(--primary-gold);
    border: 1px solid var(--primary-gold);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 10px rgba(198, 166, 100, 0.1);
    outline: none;
}

.btn-gold-glow-small:hover {
    background: var(--primary-gold);
    color: #000;
    box-shadow: 0 0 20px rgba(198, 166, 100, 0.4);
    transform: translateY(-2px);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding-top: 80px;
        min-height: auto;
        height: auto;
        padding-bottom: 0;
    }

    .hero h1 {
        font-size: 2.8rem;
        margin-bottom: 1.5rem;
    }

    .quran-image-container {
        margin: 1.5rem auto 2.5rem;
    }

    .hero-actions {
        margin-bottom: 3.5rem;
    }

    .separator-ornament {
        margin: 0 auto 3.5rem;
    }

    .profile-image-container {
        width: 180px;
        height: 180px;
    }

    .profile-image {
        width: 150px;
        height: 150px;
    }

    .search-container {
        width: 100%;
        margin-top: 10px;
    }

    .section-header {
        flex-direction: column;
        align-items: center;
        /* Centered */
        gap: 1rem;
        text-align: center;
        /* Centered */
    }

    .player-bar {
        flex-direction: column;
        bottom: 10px;
        padding: 20px;
        align-items: stretch;
        gap: 15px;
    }

    .track-meta {
        text-align: center;
        align-items: center;
    }

    .controls-wrapper {
        display: flex;
        justify-content: center;
        width: 100%;
        order: 2;
    }

    .progress-wrapper {
        order: 1;
        width: 100%;
    }

    .video-thumb {
        height: 180px;
    }

    .close-player-btn {
        top: -10px;
        left: unset;
        right: -10px;
        /* Better position for mobile */
    }

    .speed-control {
        margin: 10px 0 0;
        justify-content: center;
        display: flex;
    }

    .speed-select {
        min-width: 80px;
        /* Increased from 65px */
        padding: 6px 8px;
        /* Reduced side padding slightly */
    }

    /* تضييق المسافات في الجدول وتكبير الخط للهاتف */
    .quran-table th,
    .quran-table td {
        padding: 12px 5px;
        /* زيادة الحشو الجانبي قليلاً */
        font-size: 1rem;
    }

    /* عمود الرقم: تكبير الخط وتوسيق المسافة عن الجدار الأيمن */
    .quran-table th:nth-child(1),
    .quran-table td:nth-child(1) {
        padding: 12px 12px 12px 0;
        font-size: 0.95rem;
        width: 55px;
        max-width: 55px;
        text-align: center;
    }

    /* عمود اسم السورة: توسيط الاسم وموازنة المسافات */
    .quran-table th:nth-child(2),
    .quran-table td:nth-child(2) {
        padding: 12px 5px;
        font-size: 1.25rem;
        text-align: center;
    }

    /* أعمدة الأزرار (استماع، تحميل): تضييق المسافات */
    .quran-table th:nth-child(3),
    .quran-table th:nth-child(4),
    .quran-table td:nth-child(3),
    .quran-table td:nth-child(4) {
        padding: 12px 2px;
        width: 46px;
        max-width: 46px;
        text-align: center;
    }

    /* عمود اليوتيوب: زيادة المسافة عن الجدار الأيسر لمنع الالتصاق */
    .quran-table th:nth-child(5),
    .quran-table td:nth-child(5) {
        padding: 12px 0 12px 12px;
        width: 55px;
        max-width: 55px;
        text-align: center;
    }

    /* تكبير الأزرار قليلاً لتناسب الخط الجديد وتسهيل النقر */
    .icon-btn {
        width: 38px;
        height: 38px;
        font-size: 1rem;
        margin: 0 1px;
        border-radius: 10px;
    }

    /* أيقونات الأزرار */
    .icon-btn i {
        font-size: 0.95rem;
    }
}