/* ==============================================================================
   طرب ميكس / ميكس تيوب - MixTube Stylesheet
   تصميم دارك مود عصري فاخر واحترافي مستوحى من سبوتيفاي وأنغامي
   يتضمن: شاشة المشغل الكاملة، كلمات الأغاني، واستمرار التشغيل
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

:root {
    --bg-main: #0a0b0e;
    --bg-sidebar: #101217;
    --bg-card: #161922;
    --bg-card-hover: #1f2330;
    --bg-player: rgba(16, 18, 23, 0.94);
    --border-color: rgba(255, 255, 255, 0.08);
    
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.35);
    --accent: #ec4899;
    --accent-glow: rgba(236, 72, 153, 0.35);
    --success: #10b981;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-player: 0 -10px 30px rgba(0, 0, 0, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    direction: rtl;
    overflow-x: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* التمرير المخصص Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ==============================================================================
   تخطيط المنصة الرئيسي (App Layout)
   ============================================================================== */

.app-container {
    display: flex;
    flex: 1;
    height: calc(100vh - 90px);
    overflow: hidden;
    position: relative;
}

/* القائمة الجانبية (Sidebar) */
.sidebar {
    width: 260px;
    background-color: var(--bg-sidebar);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    transition: var(--transition);
    z-index: 40;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 12px 28px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
    text-decoration: none;
    color: var(--text-main);
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.logo-icon svg {
    width: 22px;
    height: 22px;
    fill: #ffffff;
}

.logo-text h1 {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text span {
    font-size: 0.72rem;
    color: var(--primary);
    font-weight: 600;
    display: block;
}

.nav-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-dim);
    font-weight: 700;
    padding: 10px 14px;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    list-style: none;
    margin-bottom: 24px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: right;
}

.nav-link svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: #ffffff;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.15), rgba(236, 72, 153, 0.15));
    border-right: 3px solid var(--primary);
    font-weight: 700;
}

.nav-link.active svg {
    color: var(--primary);
}

.sidebar-badge {
    margin-right: auto;
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    color: var(--text-muted);
}

/* ==============================================================================
   منطقة المحتوى الرئيسية (Main Content)
   ============================================================================== */

.main-content {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.08), transparent 40%),
                radial-gradient(circle at bottom left, rgba(236, 72, 153, 0.05), transparent 40%);
}

/* شريط الرأس العلوي (Top Header) */
.top-bar {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 32px;
    background: rgba(10, 11, 14, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    z-index: 30;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 6px;
}

.search-box-wrapper {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 6px 18px;
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background: #191c28;
}

.search-icon {
    width: 20px;
    height: 20px;
    color: var(--text-dim);
    margin-left: 10px;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-size: 0.95rem;
    padding: 8px 0;
}

.search-input::placeholder {
    color: var(--text-dim);
}

.search-clear-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 4px;
    display: none;
}

.search-clear-btn:hover {
    color: var(--text-main);
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.action-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 15px var(--primary-glow);
}

/* ==============================================================================
   الأقسام والمحتوى (Sections & Cards)
   ============================================================================== */

.content-body {
    padding: 28px 32px 40px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

/* التصنيفات السريعة (Category Chips) */
.category-chips {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.chip {
    white-space: nowrap;
    padding: 8px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.chip:hover {
    color: var(--text-main);
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.2);
}

.chip.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px var(--primary-glow);
}

/* الهيرو بانر (Hero Banner) */
.hero-banner {
    background: linear-gradient(135deg, #1e1b4b 0%, #311042 50%, #0f172a 100%);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.hero-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    color: #a5b4fc;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 12px;
}

.hero-desc {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 22px;
}

.hero-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    color: #0f172a;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.25);
}

.hero-play-btn:hover {
    transform: scale(1.05);
    background: #f1f5f9;
}

.hero-waves {
    position: absolute;
    left: 20px;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    gap: 6px;
    opacity: 0.15;
    height: 120px;
}

.wave-bar {
    width: 8px;
    background: #ffffff;
    border-radius: 4px;
    animation: wavePulse 1.2s ease-in-out infinite alternate;
}

@keyframes wavePulse {
    0% { height: 15px; }
    100% { height: 100px; }
}

/* عناوين الأقسام */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-subtitle {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-weight: 400;
}

/* شبكة كروت الأغاني والفيديوهات (Grid) */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.media-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.media-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.media-thumb-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 12px;
    background: #0f1117;
}

.media-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.media-card:hover .media-thumb {
    transform: scale(1.06);
}

.media-duration {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.media-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.media-card:hover .media-play-overlay {
    opacity: 1;
}

.play-circle-btn {
    width: 46px;
    height: 46px;
    background: var(--primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
    transition: var(--transition);
}

.play-circle-btn:hover {
    transform: scale(1.15);
    background: var(--accent);
}

.media-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.media-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    height: 2.8em;
}

.media-channel {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.media-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 0.75rem;
    color: var(--text-dim);
}

.media-card-actions {
    position: absolute;
    top: 18px;
    left: 18px;
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: var(--transition);
    z-index: 10;
}

.media-card:hover .media-card-actions {
    opacity: 1;
}

.card-action-btn {
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.card-action-btn:hover {
    background: var(--primary);
    transform: scale(1.1);
}

/* ==============================================================================
   مشغل الموسيقى السفلي العائم (Persistent Audio Player)
   ============================================================================== */

.player-bar {
    height: 90px;
    background: var(--bg-player);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--border-color);
    box-shadow: var(--shadow-player);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: var(--transition);
}

/* الجزء الأيمن: تفاصيل التراك الحالي */
.player-track-info {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 28%;
    min-width: 200px;
    cursor: pointer; /* ينقر عليه لفتح الشاشة الكاملة */
    border-radius: var(--radius-sm);
    padding: 6px;
    transition: var(--transition);
}

.player-track-info:hover {
    background: rgba(255, 255, 255, 0.04);
}

.player-thumb-wrapper {
    position: relative;
    width: 58px;
    height: 58px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.player-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-thumb-wrapper.playing .player-thumb {
    animation: rotateVinyl 12s linear infinite;
    border-radius: 50%;
}

@keyframes rotateVinyl {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.player-meta {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.player-title {
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-main);
}

.player-artist {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-fav-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 6px;
    transition: var(--transition);
}

.player-fav-btn:hover, .player-fav-btn.active {
    color: var(--accent);
    transform: scale(1.15);
}

/* الجزء الأوسط: أدوات التحكم وشريط الوقت */
.player-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 44%;
    max-width: 650px;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 18px;
}

.control-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.control-btn:hover {
    color: var(--text-main);
    transform: scale(1.1);
}

.control-btn.active {
    color: var(--primary);
}

.play-pause-btn {
    width: 44px;
    height: 44px;
    background: #ffffff;
    color: #0f172a;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.play-pause-btn:hover {
    transform: scale(1.12);
    background: #f8fafc;
}

/* شريط التقدم والوقت (Timeline Scrubber) */
.player-timeline {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.time-text {
    font-size: 0.75rem;
    color: var(--text-dim);
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}

.progress-bar-container {
    flex: 1;
    height: 5px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-full);
    position: relative;
    cursor: pointer;
    transition: height 0.15s ease;
}

.progress-bar-container:hover {
    height: 8px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: var(--radius-full);
    position: relative;
    width: 0%;
}

.progress-bar::after {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
    transition: transform 0.15s ease;
}

.progress-bar-container:hover .progress-bar::after {
    transform: translateY(-50%) scale(1);
}

/* الجزء الأيسر: الصوت وقائمة التشغيل ووضع الفيديو */
.player-extra-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    width: 28%;
    min-width: 200px;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-slider {
    -webkit-appearance: none;
    width: 90px;
    height: 5px;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, var(--primary) 0%, #f59e0b 60%, #ef4444 100%);
    outline: none;
    cursor: pointer;
    transition: var(--transition);
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}

.volume-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-dim);
    min-width: 38px;
    text-align: center;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 6px;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.volume-badge.boost {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
    font-weight: 800;
}

/* ==============================================================================
   شاشة المشغل الكاملة المنفصلة (Full-Screen Immersive Player Modal)
   ============================================================================== */

.full-player-modal {
    position: fixed;
    inset: 0;
    background: #090a0f;
    z-index: 90;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    overflow: hidden;
}

.full-player-modal.open {
    transform: translateY(0);
}

.full-player-backdrop {
    position: absolute;
    inset: -50px;
    background-size: cover;
    background-position: center;
    filter: blur(70px) brightness(0.25);
    opacity: 0.6;
    z-index: 1;
    pointer-events: none;
    transition: background-image 0.5s ease;
}

.full-player-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px 36px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

/* شريط الرأس في الشاشة الكاملة */
.full-player-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.full-player-collapse-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    width: 40px;
    height: 40px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.full-player-collapse-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(2px);
}

/* تبويبات المشغل الكامل (الأغنية / الكلمات / القائمة) */
.full-player-nav {
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
}

.full-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 6px 18px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.full-tab-btn.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 10px var(--primary-glow);
}

/* جسم الشاشة الكاملة */
.full-player-body {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
}

/* تبويب الأسطوانة والبوستر الكبير */
.full-track-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    width: 100%;
    max-width: 450px;
}

.full-poster-wrapper {
    width: min(320px, 75vw);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 0 12px rgba(255, 255, 255, 0.03);
    overflow: hidden;
    border: 4px solid #1f2330;
}

.full-poster-wrapper.playing .full-poster-img {
    animation: rotateVinyl 14s linear infinite;
}

.full-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.full-vinyl-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: #0f121a;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.9);
}

.full-track-title {
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1.3;
}

.full-track-artist {
    font-size: 1.05rem;
    color: var(--text-muted);
}

/* تبويب كلمات الأغاني (Lyrics View) */
.btn-full-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 20px var(--primary-glow);
    transition: var(--transition);
}

.btn-full-download:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* تبويب قائمة التشغيل في الشاشة الكاملة */
.full-queue-view {
    display: none;
    width: 100%;
    height: 100%;
    max-width: 700px;
    flex-direction: column;
}

/* عناصر التحكم السفلية داخل الشاشة الكاملة */
.full-player-controls-wrap {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.full-player-controls-wrap .player-controls {
    justify-content: center;
    gap: 28px;
}

.full-player-controls-wrap .play-pause-btn {
    width: 64px;
    height: 64px;
    box-shadow: 0 6px 25px var(--primary-glow);
}

.full-player-controls-wrap .play-pause-btn svg {
    width: 28px;
    height: 28px;
}

/* ==============================================================================
   درج قائمة الانتظار / التشغيل (Dynamic Playlist / Queue Drawer)
   ============================================================================== */

.queue-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 380px;
    height: calc(100vh - 90px);
    background: rgba(16, 18, 23, 0.96);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-color);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 45;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.queue-drawer.open {
    transform: translateX(0);
}

.queue-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.queue-header h3 {
    font-size: 1.15rem;
    font-weight: 800;
}

.queue-actions {
    display: flex;
    gap: 10px;
}

.queue-btn-sm {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.queue-btn-sm:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.queue-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.queue-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.queue-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-color);
}

.queue-item.active {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary);
}

.queue-item.active .queue-item-title {
    color: var(--primary);
}

.queue-item-thumb {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
}

.queue-item-info {
    flex: 1;
    overflow: hidden;
}

.queue-item-title {
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.queue-item-artist {
    font-size: 0.75rem;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.queue-item-remove {
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 4px;
    opacity: 0;
    transition: var(--transition);
}

.queue-item:hover .queue-item-remove {
    opacity: 1;
}

.queue-item-remove:hover {
    color: #ef4444;
}

/* ==============================================================================
   شاشة الفيديو العائمة (Floating Video Screen / PiP)
   ============================================================================== */

.video-player-container {
    position: fixed;
    bottom: 105px;
    left: 24px;
    width: 360px;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    border: 1px solid var(--border-color);
    z-index: 48;
    transition: var(--transition);
    display: none;
}

.video-player-container.show {
    display: block;
    animation: popUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes popUp {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.video-player-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

/* مشغل يوتيوب في الخلفية للاستماع - متواجد داخل الشاشة بشفافية لمنع قيود التشغيل التلقائي */
#yt-hidden-player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 240px;
    height: 180px;
    opacity: 0.001;
    pointer-events: none;
    z-index: -999;
}

/* ==============================================================================
   مؤشر التحميل ورسائل التنبيه (Loading & Toast)
   ============================================================================== */

.loading-spinner-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    gap: 16px;
}

.spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.toast {
    position: fixed;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%) translateY(50px);
    background: rgba(26, 29, 38, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: var(--radius-full);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 120;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* رسالة حالة فارغة (Empty State) */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-dim);
}

.empty-state svg {
    width: 56px;
    height: 56px;
    stroke-width: 1.5;
    margin-bottom: 16px;
    opacity: 0.6;
}

.empty-state h3 {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

/* ==============================================================================
   التجاوب مع الشاشات والموبايل (Responsive Design)
   ============================================================================== */

@media (max-width: 1024px) {
    .player-track-info {
        width: 35%;
    }
    .player-extra-controls {
        width: 25%;
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        right: 0;
        transform: translateX(100%);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.7);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .mobile-menu-btn {
        display: block;
    }

    .top-bar {
        padding: 12px 16px;
    }

    .content-body {
        padding: 16px 16px 30px;
        gap: 24px;
    }

    .hero-banner {
        padding: 24px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 14px;
    }

    .player-bar {
        height: 75px;
        padding: 0 12px;
    }

    .player-extra-controls .volume-control {
        display: none;
    }

    .player-timeline {
        display: none;
    }

    .player-track-info {
        width: 60%;
    }

    .player-center {
        width: 25%;
    }

    .player-extra-controls {
        width: 15%;
    }

    .video-player-container {
        width: calc(100vw - 32px);
        left: 16px;
        bottom: 90px;
    }

    .queue-drawer {
        width: 100vw;
    }

    .full-player-content {
        padding: 16px 20px;
    }

    .full-poster-wrapper {
        width: min(240px, 60vw);
    }

    .full-track-title {
        font-size: 1.25rem;
    }
}
