/* =========================================
   MP3XIT - PREMIUM GLASSMORPHISM STYLE
   ========================================= */

:root {
    --primary-color: #9b2c6b;
    --primary-light: #f3ddeb;
    --text-dark: #2d3436;
    --text-gray: #636e72;
    --bg-color: #f8f9fc; /* Ochkulrang fon, shisha shunda chiroyli ko'rinadi */
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
    padding-bottom: 120px; /* Pleyer uchun joy */
}

/* 🌟 1. GLOBAL ORQA FON EFFEKTLARI */
.global-orbs {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; pointer-events: none; overflow: hidden;
}
.orb { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.15; animation: floatBase 15s infinite alternate ease-in-out; }
.orb-1 { top: -10%; left: -10%; width: 50vw; height: 50vw; background: var(--primary-color); }
.orb-2 { bottom: -10%; right: -5%; width: 60vw; height: 60vw; background: #0984e3; animation-delay: -5s; }
.orb-3 { top: 40%; left: 60%; width: 40vw; height: 40vw; background: #fdcb6e; opacity: 0.1; animation-delay: -10s; }

@keyframes floatBase { 0% { transform: translateY(0) scale(1); } 100% { transform: translateY(100px) scale(1.2); } }

/* 🌟 2. UMUMIY SHISHA KLASSI */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}
.glass-wrapper { position: relative; z-index: 1; }

/* 🌟 3. NAVBAR (Shisha Menyu) */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 5%; position: sticky; top: 0; z-index: 100;
    border-radius: 0 0 20px 20px;
}
.logo { font-size: 24px; font-weight: 800; color: var(--text-dark); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo:hover .fa-compact-disc { transform: rotate(360deg); transition: 1s ease; }
.nav-links { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.nav-links li a { text-decoration: none; font-weight: 600; color: var(--text-gray); padding: 8px 16px; border-radius: 20px; transition: 0.3s; }
.nav-links li a:hover { color: var(--primary-color); background: rgba(255,255,255,0.7); }
.nav-links li a.active { background: var(--primary-color); color: white; box-shadow: 0 4px 10px rgba(155, 44, 107, 0.3); }

/* 🌟 4. QIDIRUV (Live Search Style) */
.search-container { position: relative; }
.search-form {
    display: flex; align-items: center; background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--glass-border); border-radius: 30px; padding: 8px 20px; width: 300px; transition: 0.3s;
}
.search-form:focus-within { background: white; width: 350px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); border-color: var(--primary-color); }
.search-icon { color: var(--text-gray); margin-right: 10px; }
.search-form input { border: none; background: transparent; outline: none; width: 100%; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500; }
.search-dropdown { position: absolute; top: 110%; left: 0; width: 100%; border-radius: 15px; max-height: 300px; overflow-y: auto; z-index: 101; display: flex; flex-direction: column; }
.search-dropdown a { padding: 10px 15px; text-decoration: none; color: var(--text-dark); font-size: 14px; font-weight: 500; border-bottom: 1px solid rgba(0,0,0,0.05); }
.search-dropdown a:hover { background: rgba(255,255,255,0.8); color: var(--primary-color); }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 24px; color: var(--text-dark); cursor: pointer; }

/* 🌟 5. MOBIL MENYU (Yonboshdan) */
.mobile-menu { position: fixed; top: 0; right: -100%; width: 250px; height: 100vh; z-index: 1000; display: flex; flex-direction: column; padding: 30px 20px; transition: right 0.4s ease; }
.mobile-menu.open { right: 0; }
.close-menu { align-self: flex-end; background: none; border: none; font-size: 24px; color: var(--text-dark); cursor: pointer; margin-bottom: 30px; }
.mobile-nav-links { display: flex; flex-direction: column; gap: 15px; }
.mobile-nav-links a { text-decoration: none; color: var(--text-dark); font-size: 18px; font-weight: 600; padding: 10px; border-radius: 10px; transition: 0.3s; display: flex; align-items: center; gap: 10px; }
.mobile-nav-links a:hover { background: rgba(255,255,255,0.7); color: var(--primary-color); }

/* 🌟 6. KATEGORIYA VA TUGMALAR */
.category-filters { display: flex; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.cat-btn {
    padding: 10px 20px; text-decoration: none; border-radius: 30px; font-weight: 600;
    background: rgba(255, 255, 255, 0.4); border: 1px solid rgba(255, 255, 255, 0.5); color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); transition: all 0.3s ease; backdrop-filter: blur(10px);
}
.cat-btn:hover { background: rgba(255, 255, 255, 0.8); transform: translateY(-2px); }
.cat-btn.active { background: var(--primary-color); color: white; border-color: var(--primary-color); box-shadow: 0 8px 20px rgba(155, 44, 107, 0.3); }

/* 🌟 7. MUSIQALAR RO'YXATI (TRACK LIST) */
.main-content { padding: 20px 5%; min-height: 60vh; }
.tracks-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.track-item {
    display: flex; align-items: center; padding: 12px 18px; width: 100%; box-sizing: border-box; min-width: 0;
    border-radius: 16px; background: rgba(255, 255, 255, 0.45); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6); box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05); transition: all 0.3s;
}
.track-item:hover { background: rgba(255, 255, 255, 0.7); transform: translateY(-5px); box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.1); border-color: rgba(255, 255, 255, 0.9); }
.track-number { width: 30px; flex-shrink: 0; font-size: 13px; font-weight: bold; color: var(--text-gray); }
.track-icon { margin-right: 12px; flex-shrink: 0; width: 35px; height: 35px; background: rgba(255,255,255,0.6); border-radius: 10px; display: flex; justify-content: center; align-items: center; box-shadow: inset 0 2px 4px rgba(255,255,255,0.8); }
.track-info { flex: 1 1 0; min-width: 0; padding-right: 15px; }
.track-title { display: block; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; color: #2d3436; font-size: 15px; text-decoration: none; transition: color 0.2s; }
.track-title:hover { color: var(--primary-color); }

/* Play tugmalari (Track item ichidagi) */
.play-btn {
    flex-shrink: 0; width: 42px; height: 42px; min-width: 42px; display: flex; justify-content: center; align-items: center;
    border-radius: 50%; border: none; cursor: pointer; background: rgba(255, 255, 255, 0.8); color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); transition: all 0.3s ease;
}
.track-item:hover .play-btn { background: var(--primary-color); color: white; transform: scale(1.1) rotate(5deg); box-shadow: 0 6px 15px rgba(155, 44, 107, 0.4); }
.play-btn-small { flex-shrink: 0; width: 35px; height: 35px; min-width: 35px; border-radius: 50%; display: flex; justify-content: center; align-items: center; border: none; background: var(--primary-light); color: var(--primary-color); cursor: pointer; transition: 0.3s; }
.track-item:hover .play-btn-small { background: var(--primary-color); color: white; transform: scale(1.1); }

/* 🌟 8. SAHIFALASH (PAGINATION) */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 50px; flex-wrap: wrap; }
.page-btn {
    padding: 10px 18px; border-radius: 12px; font-weight: 600; text-decoration: none; background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.5); color: var(--text-dark); box-shadow: 0 4px 15px rgba(0,0,0,0.02); transition: 0.3s; backdrop-filter: blur(10px);
}
.page-btn:hover { background: rgba(255, 255, 255, 0.9); transform: translateY(-2px); }
.page-btn.active { background: var(--primary-color); color: white; border-color: var(--primary-color); box-shadow: 0 8px 20px rgba(155, 44, 107, 0.3); }
.page-dots { padding: 10px; color: var(--text-gray); font-weight: bold; }

/* 🌟 9. DETAIL PAGE (QO'SHIQ ICHI) */
.detail-wrapper { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; margin-bottom: 50px; border-radius: 24px; text-align: center; }
.detail-icon-large {
    width: 120px; height: 120px; border-radius: 50%; background: linear-gradient(135deg, var(--primary-light), #fff);
    display: flex; justify-content: center; align-items: center; font-size: 50px; color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(155, 44, 107, 0.2), inset 0 5px 15px rgba(255,255,255,0.8); margin-bottom: 20px; animation: pulse 2s infinite alternate ease-in-out;
}
@keyframes pulse { 0% { transform: scale(1); box-shadow: 0 10px 30px rgba(155, 44, 107, 0.2); } 100% { transform: scale(1.05); box-shadow: 0 15px 40px rgba(155, 44, 107, 0.4); } }
.detail-title { font-size: 28px; font-weight: 800; color: var(--text-dark); margin-bottom: 10px; line-height: 1.3; }
.detail-actions { display: flex; gap: 15px; margin-top: 25px; flex-wrap: wrap; justify-content: center; }
.btn { padding: 14px 28px; border-radius: 30px; font-weight: 600; font-size: 15px; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; transition: all 0.3s ease; border: none; cursor: pointer; font-family: 'Inter', sans-serif; }
.btn-play { background: var(--primary-color); color: white; box-shadow: 0 8px 20px rgba(155, 44, 107, 0.4); }
.btn-play:hover { transform: translateY(-3px); box-shadow: 0 12px 25px rgba(155, 44, 107, 0.6); }
.btn-download { background: rgba(255, 255, 255, 0.7); color: var(--text-dark); border: 1px solid rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); }
.btn-download:hover { background: white; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.05); }

/* 🌟 10. BREADCRUMBS, BADGES VA SHARE (Qo'shimchalar) */
.breadcrumbs {
    display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px;
    padding: 10px 20px; border-radius: 12px; margin-bottom: 20px;
    font-size: 13px; font-weight: 600; color: var(--text-gray);
}
.breadcrumbs a { color: var(--primary-color); text-decoration: none; transition: 0.2s; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .separator { font-size: 10px; opacity: 0.5; }
.breadcrumbs .current-page { color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.detail-badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 5px; }
.badge {
    background: rgba(155, 44, 107, 0.1); color: var(--primary-color);
    padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 700;
    display: flex; align-items: center; gap: 5px; border: 1px solid rgba(155, 44, 107, 0.2);
}
.btn-share {
    background: rgba(0, 0, 0, 0.05); color: var(--text-dark);
    border: 1px solid rgba(0, 0, 0, 0.1); backdrop-filter: blur(10px);
}
.btn-share:hover { background: rgba(0, 0, 0, 0.1); transform: translateY(-3px); }

/* 🌟 11. STICKY PLEYER (Pastda yopishgan pleyer) */
#sticky-player {
    position: fixed; bottom: 15px; left: 5%; right: 5%; width: 90%; z-index: 1000;
    border-radius: 20px; padding: 10px 20px; background: rgba(255, 255, 255, 0.75); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8); box-shadow: 0 10px 30px rgba(0,0,0,0.1); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.player-content { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.player-info { display: flex; align-items: center; width: 30%; gap: 15px; overflow: hidden; }
.player-cover { width: 45px; height: 45px; background: linear-gradient(135deg, var(--primary-color), #fdcb6e); border-radius: 50%; display: flex; justify-content: center; align-items: center; color: white; font-size: 24px; box-shadow: 0 4px 10px rgba(155, 44, 107, 0.3); }
.player-title-box { display: flex; flex-direction: column; overflow: hidden; white-space: nowrap; }
#player-title { font-weight: 700; color: var(--text-dark); font-size: 15px; }
.player-subtitle { font-size: 11px; color: var(--primary-color); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.player-controls-wrapper { width: 40%; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.player-buttons { display: flex; align-items: center; gap: 20px; }
.ctrl-btn { background: none; border: none; font-size: 16px; color: var(--text-gray); cursor: pointer; transition: 0.2s; }
.ctrl-btn:hover { color: var(--primary-color); }
.play-pause-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--primary-color); color: white; border: none; font-size: 16px; display: flex; justify-content: center; align-items: center; cursor: pointer; box-shadow: 0 4px 10px rgba(155, 44, 107, 0.4); transition: 0.3s; padding-left: 3px; }
.play-pause-btn:hover { transform: scale(1.1); }
.progress-container { width: 100%; display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; color: var(--text-gray); }
#seek-slider { -webkit-appearance: none; width: 100%; height: 5px; border-radius: 5px; background: rgba(0,0,0,0.1); outline: none; cursor: pointer; }
#seek-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--primary-color); cursor: pointer; }
.player-actions { width: 30%; display: flex; justify-content: flex-end; gap: 15px; }
.action-btn { background: rgba(0,0,0,0.05); color: var(--text-dark); border: none; width: 35px; height: 35px; border-radius: 50%; display: flex; justify-content: center; align-items: center; cursor: pointer; text-decoration: none; transition: 0.3s; }
.action-btn:hover { background: var(--primary-color); color: white; }

.fa-spin { animation: spin 2s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

.ad-container { padding: 30px 5% 10px; text-align: center; }
.ad-space { width: 100%; max-width: 900px; margin: 0 auto; padding: 20px; border-radius: 15px; color: #b2bec3; font-weight: 600; display: flex; justify-content: center; align-items: center; min-height: 90px; }
.site-footer { text-align: center; padding: 40px 20px; color: var(--text-gray); border-top: 1px solid rgba(0,0,0,0.05); margin-top: 50px; }

/* 🌟 12. ADAPTIV DIZAYN VA MOBIL PLEYER (TO'G'RILANGAN) 🌟 */
@media (max-width: 1100px) {
    .tracks-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .nav-links { display: none; }
    .search-container { flex: 1; margin: 0 15px; } /* Qidiruv o'rtaga to'g'rilandi */
    .search-form { width: 100%; }
    .search-form:focus-within { width: 100%; }
    .mobile-menu-btn { display: block; flex-shrink: 0; }
}

@media (max-width: 768px) {
    .tracks-list { grid-template-columns: 1fr; gap: 12px; }
    .track-item { padding: 10px 12px; border-radius: 14px; }
    .play-btn { width: 38px; height: 38px; min-width: 38px; }
    
    /* 📱 MOBIL PLEYER QAT'IY QULFLANGAN GRID TIZIMI */
    #sticky-player { 
        bottom: 10px; left: 10px; right: 10px; 
        width: auto !important; /* Ekrandan toshib ketmaydi */
        padding: 10px 12px; border-radius: 15px; box-sizing: border-box; 
    }
    
    .player-content { 
        display: flex; flex-direction: column; gap: 10px; width: 100%;
    }
    
    /* 1-QATOR: Rasm, Yozuv, Yopish/Yuklash tugmalari */
    .player-top-row { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 10px; }
    .player-info { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; width: auto; }
    .player-cover { width: 38px; height: 38px; min-width: 38px; font-size: 18px; flex-shrink: 0; }

    /* Yozuvlar yashirinib qolmasligi uchun block qilingan */
    .player-title-box { flex: 1; min-width: 0; display: block; overflow: hidden; }
    #player-title { display: block; width: 100%; font-size: 14px; line-height: 1.2; margin-bottom: 2px; }
    .player-subtitle { display: block; font-size: 10px; line-height: 1; }
    
    .player-actions { display: flex; gap: 8px; flex-shrink: 0; width: auto; }
    .action-btn { width: 32px; height: 32px; min-width: 32px; font-size: 12px; background: rgba(0,0,0,0.05); margin: 0; }
    
    /* 2-QATOR: Boshqaruv va vaqt */
    .player-controls-wrapper { width: 100%; display: flex; flex-direction: column; gap: 8px; }
    .player-buttons { gap: 15px; justify-content: center; }
    .play-pause-btn { width: 38px; height: 38px; font-size: 14px; }
    .ctrl-btn { font-size: 14px; }
}

@media (max-width: 600px) {
    .navbar { padding: 12px 15px; gap: 10px; }
    .logo { font-size: 18px; }
    .logo i { font-size: 16px; }
    .search-container { margin: 0; }
    .search-form { padding: 8px 12px; }
    .search-icon { font-size: 13px; margin-right: 6px; }
    .search-form input { font-size: 13px; }
    .mobile-menu-btn { font-size: 20px; }

    .detail-title { font-size: 22px; }
    .detail-icon-large { width: 100px; height: 100px; font-size: 40px; }
}