:root {
    --beige-modern: #f5f0e8;
    --beige-dark: #e8dcc8;
    --gold-metallic: #cfa341;
    --gold-light: #e8c84a;
    --gold-dark: #b8922f;
    --gold-gradient: linear-gradient(135deg, #cfa341, #b8922f);
    --dark-bg: #f5f0e8;
    --text-dark: #2c1810;
    --text-light: #5a4a3a;
    --accent-color: #d4a84a;
    --admin-bg: #f5f0e8;
    --error-red: #ff4757;
    --success-green: #2ecc71;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', 'Tahoma', sans-serif;
}

body {
    background-color: var(--beige-modern);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== شريط المعلومات ===== */
.ticker-bar {
    background: linear-gradient(135deg, #cfa341, #b8922f);
    color: white;
    padding: 4px 0;
    overflow: hidden;
    position: sticky;
    top: 0;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ticker-content {
    display: flex;
    white-space: nowrap;
    animation: tickerScroll 25s linear infinite;
    direction: ltr;
}

.ticker-text {
    font-size: 1.2rem;
    font-weight: 700;
    padding: 0 30px;
    display: inline-block;
}

@keyframes tickerScroll {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ===== الهيدر ===== */
.main-header {
    background: linear-gradient(135deg, #f5f0e8 0%, #e8dcc8 100%);
    color: var(--text-dark);
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(184, 146, 47, 0.25);
    position: sticky;
    top: 28px;
    z-index: 1000;
    border-bottom: 4px solid #cfa341;
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    max-width: 55%;
    margin: 0 auto;
}

/* ===== الشعار - حل الخلفية السوداء عبر CSS ===== */
.brand-logo .brand-logo-img {
    height: 110px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    /* ===== إزالة الخلفية السوداء ===== */
    background: transparent !important;
    /* ===== دمج الصورة مع الخلفية ===== */
    mix-blend-mode: multiply;
    /* ===== إزالة أي حدود أو ظل ===== */
    border: none !important;
    border-radius: 0;
    box-shadow: none !important;
    padding: 0;
    /* ===== تأثير تمرير ===== */
    transition: transform 0.3s ease;
}

.brand-logo .brand-logo-img:hover {
    transform: scale(1.05);
}

/* ===== دعم إضافي للمتصفحات ===== */
@supports not (mix-blend-mode: multiply) {
    .brand-logo .brand-logo-img {
        /* بديل للمتصفحات التي لا تدعم mix-blend-mode */
        background: #f5f0e8 !important;
        padding: 8px 20px;
        border-radius: 16px;
        border: 2px solid #cfa341;
    }
}

.admin-entry {
    display: none !important;
}

/* ===== أزرار الهيدر ===== */
.header-btn {
    background: rgba(255,255,255,0.7);
    border: 2px solid #cfa341;
    color: var(--text-dark);
    width: 65px;
    height: 65px;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    flex-shrink: 0;
}

.header-btn i {
    font-size: 2rem;
    line-height: 1;
}

.header-btn:hover {
    background: linear-gradient(135deg, #cfa341, #b8922f);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(207, 163, 65, 0.4);
    border-color: #b8922f;
}

.header-btn-large {
    width: 80px;
    height: 80px;
    font-size: 2rem;
}

.header-btn-large i {
    font-size: 2rem;
}

#homeBtn {
    background: rgba(255,255,255,0.7);
    border: 2px solid #cfa341;
    color: var(--text-dark);
    width: 80px;
    height: 80px;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    flex-shrink: 0;
}

#homeBtn i {
    font-size: 2rem;
}

#homeBtn:hover {
    background: linear-gradient(135deg, #cfa341, #b8922f);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(207, 163, 65, 0.4);
    border-color: #b8922f;
}

/* ===== سلايدر الإعلانات ===== */
.ad-banner-slider {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: transparent;
}

.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    border: 2px solid #cfa341;
    background: #f5f0e8;
    min-height: 60px;
}

.slider-track {
    position: relative;
    width: 100%;
    overflow: hidden;
    min-height: 80px;
}

.slider-slide {
    display: none;
    width: 100%;
    animation: fadeSlide 0.6s ease;
}

.slider-slide.active {
    display: block;
}

.slider-slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9 !important;
    min-height: 100px;
    max-height: 350px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.slider-slide a {
    display: block;
    width: 100%;
    text-decoration: none;
}

@keyframes fadeSlide {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(207, 163, 65, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.slider-btn:hover {
    background: #cfa341;
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 10px;
}

.slider-next {
    right: 10px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
    padding: 5px 0;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    background: rgba(207, 163, 65, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #cfa341;
}

.slider-dots .dot.active {
    background: #cfa341;
    transform: scale(1.2);
    border-color: #b8922f;
}

/* ===== القائمة العلوية ===== */
.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 8px 20px;
    background: linear-gradient(135deg, #f5f0e8 0%, #e8dcc8 100%);
    border-bottom: 3px solid #cfa341;
    flex-wrap: wrap;
    position: sticky;
    top: 88px;
    z-index: 999;
}

.tab-btn {
    background: rgba(255,255,255,0.6);
    border: 2px solid #e8dcc8;
    color: var(--text-dark);
    padding: 10px 24px;
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.tab-btn i {
    font-size: 1.2rem;
}

.tab-btn.active {
    background: linear-gradient(135deg, #cfa341, #b8922f);
    color: white;
    border-color: #b8922f;
    box-shadow: 0 6px 20px rgba(207, 163, 65, 0.4);
}

/* ===== المحتوى ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px 40px;
    flex: 1;
    width: 100%;
}

.tab-pane {
    display: none;
    animation: fadeSlide 0.4s ease-out;
}

.tab-pane.active {
    display: block;
}

/* ===== صفحة الفنان المنفصلة ===== */
#artistTracksPage {
    display: none;
}

#artistTracksPage.active {
    display: block;
    animation: fadeSlide 0.4s ease-out;
}

.section-title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 12px 0;
    border-bottom: 3px solid rgba(207, 163, 65, 0.3);
    padding-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.section-main-title {
    font-size: 1.6rem;
    color: var(--text-dark);
    font-weight: 800;
}

.view-more-btn {
    background: linear-gradient(135deg, #cfa341, #b8922f);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.view-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(207, 163, 65, 0.3);
}

.section-title-img {
    width: 100%;
    max-width: 250px;
    height: auto;
    display: block;
}

/* ===== الفنانين ===== */
.artists-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.artist-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid #e8dcc8;
}

.artist-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(184, 146, 47, 0.2);
    border-color: #cfa341;
}

.artist-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.artist-card-content {
    padding: 16px;
    text-align: center;
}

.artist-label {
    font-size: 0.75rem;
    color: #8a7a6a;
    margin-bottom: 4px;
    font-weight: 600;
}

.artist-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-dark);
}

/* ===== بطاقات الزفات ===== */
.tracks-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
}

#tracksList .premium-track-card {
    aspect-ratio: 16/9;
}

#exclusiveList .premium-track-card {
    aspect-ratio: 9/16;
}

#artistTracksList .premium-track-card {
    aspect-ratio: 16/9;
}

.premium-track-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    cursor: default;
    border: 2px solid #e8dcc8;
}

.premium-track-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(184, 146, 47, 0.2);
    border-color: #cfa341;
}

.premium-track-card .track-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    cursor: pointer;
    transition: transform 0.4s ease;
}

.premium-track-card:hover .track-card-bg {
    transform: scale(1.03);
}

/* ===== إخفاء كل شيء إلا الصورة ===== */
.premium-track-card .track-card-overlay {
    opacity: 0 !important;
    transition: opacity 0.5s ease !important;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(44, 24, 16, 0.95) 0%, rgba(44, 24, 16, 0.1) 60%, transparent 100%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px 16px 12px;
    color: white;
    pointer-events: none;
}

.premium-track-card.playing .track-card-overlay {
    opacity: 1 !important;
    pointer-events: auto;
}

.premium-track-card .track-controls {
    display: none !important;
}

.premium-track-card.playing .track-controls {
    display: block !important;
}

.premium-track-card.playing .track-card-overlay {
    background: linear-gradient(to top, rgba(44, 24, 16, 0.95) 0%, rgba(44, 24, 16, 0.4) 60%, transparent 100%) !important;
}

/* ===== إخفاء النصوص قبل التشغيل ===== */
.premium-track-card .track-card-info h3,
.premium-track-card .track-card-info p,
.premium-track-card .track-category {
    opacity: 0 !important;
    transition: opacity 0.4s ease !important;
}

.premium-track-card.playing .track-card-info h3,
.premium-track-card.playing .track-card-info p,
.premium-track-card.playing .track-category {
    opacity: 1 !important;
}

.track-play-icon-overlay {
    opacity: 0 !important;
    transition: opacity 0.4s ease !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    pointer-events: none;
}

.premium-track-card.playing .track-play-icon-overlay {
    opacity: 0.4 !important;
}

.track-card-info h3 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 2px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.track-card-info p {
    font-size: 0.75rem;
    opacity: 0.9;
    font-weight: 600;
    margin-bottom: 2px;
}

.track-category {
    display: inline-block;
    font-size: 0.6rem;
    background: rgba(207, 163, 65, 0.2);
    color: #cfa341;
    padding: 2px 10px;
    border-radius: 12px;
    margin-top: 3px;
    font-weight: 700;
    backdrop-filter: blur(4px);
}

.track-type-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.6rem;
    font-weight: 700;
    color: white;
    backdrop-filter: blur(4px);
}

.track-type-badge.new-release {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.track-type-badge.exclusive {
    background: linear-gradient(135deg, #cfa341, #b8922f);
}

.audio-playing-indicator {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 6;
    display: none;
    align-items: center;
    gap: 6px;
    background: rgba(0,0,0,0.5);
    padding: 5px 10px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(207, 163, 65, 0.3);
}

.audio-playing-indicator.active {
    display: flex;
}

.audio-playing-indicator i {
    color: #cfa341;
    font-size: 0.9rem;
    animation: musicPulse 0.8s ease-in-out infinite alternate;
}

.audio-playing-indicator .playing-dots {
    display: flex;
    gap: 3px;
    align-items: center;
}

.audio-playing-indicator .playing-dots span {
    display: block;
    width: 4px;
    height: 4px;
    background: #cfa341;
    border-radius: 50%;
    animation: dotBounce 0.6s ease-in-out infinite alternate;
}

.audio-playing-indicator .playing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.audio-playing-indicator .playing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes musicPulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.2); opacity: 1; }
}

@keyframes dotBounce {
    0% { transform: translateY(0); opacity: 0.3; }
    100% { transform: translateY(-6px); opacity: 1; }
}

.audio-progress-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 4px 0;
}

.progress-slider {
    flex: 1;
    height: 3px;
    -webkit-appearance: none;
    background: rgba(255,255,255,0.25);
    border-radius: 10px;
    outline: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.progress-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #cfa341;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(207, 163, 65, 0.6);
    transition: all 0.2s ease;
}

.progress-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 25px rgba(207, 163, 65, 0.8);
}

.current-time, .total-time {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.7);
    min-width: 28px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.play-pause-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(207, 163, 65, 0.3);
    color: #cfa341;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(207, 163, 65, 0.4);
    margin-top: 4px;
    backdrop-filter: blur(4px);
}

.play-pause-btn:hover {
    background: rgba(207, 163, 65, 0.6);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(207, 163, 65, 0.3);
}

.track-actions {
    display: flex;
    gap: 5px;
    margin-top: 4px;
    flex-wrap: wrap;
    align-items: center;
}

.track-share-btn, 
.track-download-btn, 
.track-wa-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.8);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.08);
}

.track-share-btn:hover,
.track-download-btn:hover,
.track-wa-btn-icon:hover {
    transform: translateY(-2px) scale(1.05);
    background: rgba(255,255,255,0.25);
    color: white;
}

.badge-hot {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 71, 87, 0.8);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.6rem;
    font-weight: 700;
    z-index: 3;
}

/* ===== القائمة الجانبية ===== */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 24, 16, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1500;
    display: none;
}

.sidebar-overlay.open {
    display: block;
}

.sidebar-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: #f5f0e8;
    z-index: 1600;
    transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 25px 18px;
    box-shadow: -10px 0 40px rgba(0,0,0,0.2);
}

.sidebar-menu.open {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #cfa341;
    padding-bottom: 12px;
    margin-bottom: 15px;
}

.sidebar-header h3 {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 800;
}

.close-sidebar {
    background: rgba(255,255,255,0.7);
    border: 2px solid #cfa341;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.close-sidebar:hover {
    background: linear-gradient(135deg, #cfa341, #b8922f);
    color: white;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-tab-btn {
    background: rgba(255,255,255,0.6);
    border: 2px solid #e8dcc8;
    padding: 10px 14px;
    text-align: right;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-tab-btn.active {
    background: linear-gradient(135deg, #cfa341, #b8922f);
    color: white;
    border-color: #b8922f;
    box-shadow: 0 4px 15px rgba(207, 163, 65, 0.3);
}

.sidebar-category {
    width: 100%;
}

.category-toggle {
    width: 100%;
    justify-content: space-between;
}

.category-arrow {
    transition: transform 0.3s ease;
    margin-right: auto;
}

.category-arrow.rotated {
    transform: rotate(180deg);
}

.category-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: rgba(255,255,255,0.3);
    border-radius: 12px;
    margin-top: 4px;
}

.category-list.open {
    max-height: 500px;
    overflow-y: auto;
}

.category-group {
    padding: 5px 8px;
}

.category-group-title {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    color: #cfa341;
    padding: 5px 5px 3px 5px;
    border-bottom: 1px solid rgba(207, 163, 65, 0.2);
    margin-bottom: 3px;
}

.category-item {
    display: block;
    width: 100%;
    padding: 5px 10px;
    text-align: right;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-item:hover {
    background: rgba(207, 163, 65, 0.15);
    color: #cfa341;
    padding-right: 14px;
}

/* ===== الفوتر ===== */
.main-footer {
    background: linear-gradient(135deg, #f5f0e8 0%, #e8dcc8 100%);
    padding: 30px 20px 25px;
    border-top: 4px solid #cfa341;
    margin-top: 30px;
    width: 100%;
    text-align: center;
    box-shadow: 0 -10px 30px rgba(184, 146, 47, 0.15);
}

.footer-brand {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-text {
    color: #5a4a3a;
    font-size: 0.9rem;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 600;
}

.footer-contact-box {
    background: rgba(255,255,255,0.6);
    padding: 20px 15px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    border: 2px solid #cfa341;
    backdrop-filter: blur(4px);
}

.contact-title {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.footer-wa-btn {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #ffffff !important;
    text-decoration: none;
    padding: 10px 35px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    direction: ltr;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
}

.footer-wa-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
}

/* ===== مودالات ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 24, 16, 0.8);
    backdrop-filter: blur(6px);
    z-index: 2000;
    display: none;
}

.modal-overlay.open {
    display: block;
}

.password-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 380px;
    background: #f5f0e8;
    border-radius: 25px;
    z-index: 2100;
    display: none;
    padding: 25px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid #cfa341;
}

.password-modal.open {
    display: block;
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 3px solid #cfa341;
    padding-bottom: 10px;
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-dark);
}

.close-modal {
    background: rgba(255,255,255,0.7);
    border: 2px solid #cfa341;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: linear-gradient(135deg, #cfa341, #b8922f);
    color: white;
}

.modal-body {
    text-align: center;
}

.modal-body p {
    margin-bottom: 12px;
    color: #5a4a3a;
    font-weight: 600;
    font-size: 0.85rem;
}

.modal-body input {
    width: 100%;
    padding: 10px;
    border-radius: 12px;
    border: 2px solid #e8dcc8;
    text-align: center;
    font-size: 1rem;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.8);
}

.modal-body input:focus {
    border-color: #cfa341;
    outline: none;
    box-shadow: 0 0 10px rgba(207, 163, 65, 0.2);
}

.error-msg {
    color: var(--error-red);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: none;
}

.modal-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #cfa341, #b8922f);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(207, 163, 65, 0.4);
}

/* ===== لوحة الإدارة ===== */
.admin-panel {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #f5f0e8;
    z-index: 2500;
    transition: left 0.4s ease;
    overflow-y: auto;
    padding: 15px;
}

.admin-panel.open {
    left: 0;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.8);
    padding: 12px 18px;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 15px;
    border-bottom: 3px solid #cfa341;
    backdrop-filter: blur(4px);
}

.admin-header h3 {
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.admin-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.admin-tab-btn {
    background: rgba(255,255,255,0.6);
    border: 2px solid #e8dcc8;
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    color: var(--text-dark);
    font-size: 0.85rem;
}

.admin-tab-btn.active {
    background: linear-gradient(135deg, #cfa341, #b8922f);
    color: white;
    border-color: #b8922f;
    box-shadow: 0 4px 15px rgba(207, 163, 65, 0.3);
}

.admin-tab {
    display: none;
}

.admin-tab.active {
    display: block;
}

.admin-card {
    background: rgba(255,255,255,0.8);
    padding: 16px;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 15px;
    border: 2px solid #e8dcc8;
    backdrop-filter: blur(4px);
}

.admin-card h4 {
    margin-bottom: 12px;
    font-weight: 800;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
}

.admin-card input, .admin-card select, .admin-card textarea {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 2px solid #e8dcc8;
    margin-bottom: 10px;
    font-size: 0.85rem;
    background: rgba(255,255,255,0.8);
    color: var(--text-dark);
}

.admin-card input:focus, .admin-card select:focus, .admin-card textarea:focus {
    border-color: #cfa341;
    outline: none;
    box-shadow: 0 0 10px rgba(207, 163, 65, 0.15);
}

.file-label {
    display: block;
    background: rgba(255,255,255,0.6);
    padding: 10px;
    border-radius: 10px;
    border: 2px dashed #e8dcc8;
    text-align: center;
    cursor: pointer;
    margin-bottom: 5px;
    font-weight: 700;
    transition: all 0.3s ease;
    color: var(--text-dark);
    font-size: 0.85rem;
}

.file-label:hover {
    background: rgba(255,255,255,0.9);
    border-color: #cfa341;
}

.file-label input {
    display: none;
}

.file-status-text {
    display: block;
    font-size: 0.7rem;
    color: #8a7a6a;
    margin-bottom: 10px;
    text-align: center;
}

.admin-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #cfa341, #b8922f);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(207, 163, 65, 0.3);
}

.admin-btn-secondary {
    width: 100%;
    padding: 10px;
    background: rgba(255,255,255,0.7);
    color: var(--text-dark);
    border: 2px solid #e8dcc8;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 6px;
    transition: all 0.3s ease;
}

.admin-btn-secondary:hover {
    border-color: #cfa341;
    background: rgba(255,255,255,0.9);
}

.admin-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #e8dcc8;
    gap: 8px;
}

.admin-list-item:last-child {
    border-bottom: none;
}

.actions-area {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.edit-btn {
    background: rgba(207, 163, 65, 0.15);
    border: 2px solid #cfa341;
    padding: 5px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-dark);
    transition: all 0.3s ease;
    min-width: 60px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 30px;
    font-size: 0.8rem;
}

.edit-btn:hover {
    background: linear-gradient(135deg, #cfa341, #b8922f);
    color: white;
    border-color: #b8922f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(207, 163, 65, 0.3);
}

.del-btn {
    background: rgba(255, 71, 87, 0.1);
    border: 2px solid #ff4757;
    padding: 5px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    color: #ff4757;
    transition: all 0.3s ease;
    min-width: 60px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 30px;
    font-size: 0.8rem;
}

.del-btn:hover {
    background: #ff4757;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
}

.hidden {
    display: none !important;
}

.toast {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(44, 24, 16, 0.95);
    color: white;
    padding: 10px 24px;
    border-radius: 35px;
    z-index: 9999;
    font-weight: 700;
    display: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 2px solid #cfa341;
    font-size: 0.9rem;
}

.toast.error {
    background: rgba(255, 71, 87, 0.95);
    border-color: var(--error-red);
}

.toast.success {
    background: rgba(46, 204, 113, 0.95);
    border-color: var(--success-green);
}

/* ===== إشعار مغادرة ===== */
.leave-notification {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

.leave-notification.show {
    display: flex;
}

.leave-modal-box {
    background: #f5f0e8;
    border-radius: 20px;
    padding: 25px;
    max-width: 340px;
    width: 90%;
    text-align: center;
    border: 3px solid #cfa341;
    animation: modalPop 0.4s ease-out;
}

@keyframes modalPop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.leave-modal-box h3 {
    font-size: 1.2rem;
    color: #2c1810;
    margin-bottom: 10px;
}

.leave-modal-box p {
    color: #5a4a3a;
    margin-bottom: 18px;
    font-size: 0.9rem;
}

.leave-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.leave-modal-actions button {
    padding: 8px 20px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.9rem;
}

.leave-confirm-btn {
    background: #ff4757;
    color: white;
}

.leave-confirm-btn:hover {
    background: #ff6b81;
    transform: translateY(-2px);
}

.leave-cancel-btn {
    background: rgba(255,255,255,0.7);
    color: #2c1810;
    border: 2px solid #cfa341;
}

.leave-cancel-btn:hover {
    background: #cfa341;
    color: white;
    transform: translateY(-2px);
}

.upload-progress-container {
    margin: 8px 0;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.upload-progress-bar {
    width: 100%;
    height: 5px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.upload-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #cfa341, #b8922f);
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 0%;
}

.upload-progress-text {
    display: block;
    text-align: center;
    font-size: 0.7rem;
    color: #2c1810;
    margin-top: 3px;
    font-weight: 700;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 6px 0 12px 0;
    flex: 1;
    max-width: 220px;
}

.search-container input {
    flex: 1;
    padding: 6px 12px;
    border-radius: 25px;
    border: 2px solid #e8dcc8;
    background: rgba(255,255,255,0.8);
    font-size: 0.8rem;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.search-container input:focus {
    border-color: #cfa341;
    outline: none;
    box-shadow: 0 0 15px rgba(207, 163, 65, 0.15);
}

.search-container input::placeholder {
    color: #8a7a6a;
}

.admin-search {
    margin-bottom: 10px;
    max-width: 100%;
}

/* ============================================================ */
/* ===== التجاوب مع الجوال (أقل من 600px) ===== */
/* ============================================================ */
@media (max-width: 600px) {
    /* ===== الفنانين: 3 صور في الصف ===== */
    .artists-grid-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    /* ===== بطاقات الزفات: 3 صور في الصف ===== */
    .tracks-grid-layout {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    #tracksList .premium-track-card {
        aspect-ratio: 16/9;
    }
    
    #exclusiveList .premium-track-card {
        aspect-ratio: 9/16;
    }
    
    #artistTracksList .premium-track-card {
        aspect-ratio: 16/9;
    }
    
    .track-card-overlay {
        padding: 6px 8px 4px;
    }
    
    .track-card-info h3 {
        font-size: 0.6rem;
    }
    
    .track-card-info p {
        font-size: 0.5rem;
    }
    
    /* ===== أزرار الهيدر ===== */
    .header-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .header-btn i {
        font-size: 1.2rem;
    }
    
    .header-btn-large {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .header-btn-large i {
        font-size: 1.2rem;
    }
    
    #homeBtn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    #homeBtn i {
        font-size: 1.2rem;
    }
    
    /* ===== الشعار في الجوال ===== */
    .brand-logo .brand-logo-img {
        height: 70px;
        max-width: 140px;
    }

    .brand-logo {
        max-width: 60%;
    }
    
    .section-title-img {
        max-width: 100px;
    }
    
    .ad-banner-slider {
        padding: 6px 10px;
    }
    
    .slider-container {
        border-radius: 10px;
        min-height: 50px;
    }
    
    .slider-slide img {
        aspect-ratio: 16/9 !important;
        min-height: 50px;
        max-height: 180px;
    }
    
    .slider-btn {
        width: 26px;
        height: 26px;
        font-size: 0.8rem;
    }
    
    .slider-prev {
        left: 4px;
    }
    
    .slider-next {
        right: 4px;
    }
    
    .slider-dots .dot {
        width: 8px;
        height: 8px;
    }
    
    .tab-btn {
        font-size: 0.65rem;
        padding: 4px 10px;
        gap: 4px;
    }
    
    .tab-btn i {
        font-size: 0.7rem;
    }
    
    .view-more-btn {
        font-size: 0.6rem;
        padding: 4px 10px;
    }
    
    .section-title-container {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }
    
    .section-main-title {
        font-size: 0.95rem;
    }
    
    .ticker-text {
        font-size: 0.75rem;
        padding: 0 10px;
    }
    
    .search-container {
        max-width: 100%;
    }
    
    .search-container input {
        font-size: 0.65rem;
        padding: 4px 8px;
    }
    
    .container {
        padding: 6px 8px 15px;
    }
    
    .main-nav {
        padding: 4px 8px;
        gap: 5px;
        top: 72px;
    }
    
    .main-header {
        padding: 2px 0;
        top: 22px;
    }
    
    .ticker-bar {
        padding: 2px 0;
    }
    
    .footer-wa-btn {
        padding: 6px 16px;
        font-size: 0.75rem;
    }
    
    .footer-contact-box {
        padding: 12px 10px;
    }
    
    .main-footer {
        padding: 15px 10px 12px;
        margin-top: 15px;
    }
    
    .footer-brand {
        font-size: 1.1rem;
    }
    
    .footer-text {
        font-size: 0.65rem;
    }
}