/* ============================================
   mobile-fixes.css - نسخه نهایی اصلاح شده
   نوار پخش به تنهایی پایین
   ============================================ */

/* ===== منوی همبرگری برای موبایل ===== */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 8px;
    margin-left: 8px;
    border-radius: 8px;
    transition: background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-btn:hover {
    background: #f0f0f0;
}

.mobile-menu-btn:active {
    background: #e0e0e0;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 0;
    z-index: 1100;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    display: block;
    transform: translateY(0);
}

.mobile-menu a {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.2s ease;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a:hover {
    background: #f8f9fa;
    color: var(--accent);
}

.mobile-menu a.active {
    color: var(--accent);
    font-weight: 500;
    background: #f0f7ff;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1050;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* ===== بهبود پلیر در موبایل - نسخه نهایی با نوار پخش تنها پایین ===== */
@media (max-width: 992px) {
    /* نمایش پلیر */
    .music-player.active {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 10px 15px;
        gap: 10px;
        align-items: center;
    }
    
    /* ردیف اول: کنترل‌ها، اطلاعات و دکمه‌های اکشن */
    .player-controls {
        order: 1;
        display: flex;
        gap: 10px;
        flex: 0 0 auto;
    }
    
    .player-info {
        order: 2;
        flex: 1;
        min-width: 150px;
    }
    
    .player-song-title {
        font-size: 13px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .player-artist {
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .player-actions {
        order: 3;
        display: flex;
        gap: 6px;
        flex: 0 0 auto;
        align-items: center;
    }
    
    /* ردیف دوم: فقط نوار پخش (بدون دکمه) */
    .player-progress {
        order: 4;
        display: flex !important;
        width: 100%;
        gap: 10px;
        align-items: center;
        margin-top: 5px;
        padding: 5px 0;
        /* تضمین اینکه هیچ دکمه‌ای اینجا نیست */
        border: none;
        background: transparent;
    }
    
    .progress-bar {
        flex: 1;
        height: 6px;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 3px;
        position: relative;
        cursor: pointer;
    }
    
    .progress-fill {
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        background: white;
        border-radius: 3px;
        width: 0%;
        transition: width 0.1s ease;
    }
    
    .player-time {
        font-size: 12px;
        min-width: 40px;
        text-align: center;
        font-weight: 500;
    }
    
    .player-btn {
        padding: 8px;
        font-size: 16px;
        min-width: 40px;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: transparent;
        border: none;
        color: white;
        cursor: pointer;
        transition: background 0.2s ease;
    }
    
    .player-btn:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .player-close {
        font-size: 18px;
        padding: 6px 10px;
    }
}

@media (max-width: 768px) {
    .player-info {
        min-width: 120px;
    }
    
    .player-song-title {
        font-size: 12px;
    }
    
    .player-artist {
        font-size: 10px;
    }
    
    .player-actions {
        gap: 4px;
    }
    
    .player-btn {
        min-width: 36px;
        min-height: 36px;
        font-size: 14px;
    }
    
    .progress-bar {
        height: 5px;
    }
    
    .player-time {
        font-size: 11px;
        min-width: 35px;
    }
}

@media (max-width: 520px) {
    .music-player.active {
        padding: 8px 10px;
        gap: 6px;
    }
    
    .player-controls {
        gap: 4px;
    }
    
    .player-info {
        min-width: 100px;
    }
    
    .player-song-title {
        font-size: 11px;
    }
    
    .player-artist {
        font-size: 9px;
    }
    
    .player-actions {
        gap: 2px;
    }
    
    .player-btn {
        min-width: 32px;
        min-height: 32px;
        font-size: 13px;
        padding: 5px;
    }
    
    .player-progress {
        gap: 5px;
    }
    
    .progress-bar {
        height: 4px;
    }
    
    .player-time {
        font-size: 10px;
        min-width: 30px;
    }
}

/* ===== بقیه استایل‌ها بدون تغییر ===== */
@media (max-width: 768px) {
    .songs-grid,
    .playlists-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    .song-card {
        max-width: none !important;
        height: 210px !important;
        margin: 0 !important;
        padding: 10px !important;
    }
    
    .song-title {
        font-size: 12px !important;
        height: 32px !important;
        line-height: 1.3 !important;
    }
    
    .song-artist {
        font-size: 10px !important;
        margin-bottom: 6px !important;
    }
    
    .madahi-image {
        width: 60px !important;
        height: 60px !important;
        margin: 0 auto 6px !important;
    }
    
    .song-actions {
        gap: 16px !important;
    }
    
    .action-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 1rem !important;
    }
    
    .mobile-menu-btn {
        display: block !important;
    }
    
    .header .nav-left {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .artists-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    .artist-card {
        padding: 12px !important;
    }
    
    .artist-image {
        width: 50px !important;
        height: 50px !important;
        font-size: 24px !important;
    }
    
    .artist-name {
        font-size: 12px !important;
    }
}

@media (max-width: 768px) {
    .occasion-card {
        padding: 15px !important;
    }
    
    .occasion-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
    
    .occasion-name {
        font-size: 16px !important;
    }
    
    .occasion-dates {
        font-size: 11px !important;
        padding: 3px 6px !important;
    }
    
    .occasion-songs {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        margin-top: 10px !important;
    }
    
    .occasion-song {
        padding: 8px !important;
    }
    
    .occasion-song-title {
        font-size: 11px !important;
    }
    
    .occasion-song-artist {
        font-size: 9px !important;
        margin-bottom: 4px !important;
    }
    
    .occasion-song .action-btn.play {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.9rem !important;
    }
}

@media (max-width: 768px) {
    .tags-grid {
        gap: 6px !important;
    }
    
    .tag {
        padding: 5px 10px !important;
        font-size: 11px !important;
    }
    
    .tag small {
        font-size: 9px !important;
    }
}

@media (max-width: 768px) {
    .header {
        height: 56px !important;
        padding: 0 10px !important;
    }
    
    .header .brand {
        width: 100% !important;
        justify-content: space-between !important;
    }
    
    .header .logo {
        font-size: 16px !important;
    }
    
    .header .avatar {
        width: 30px !important;
        height: 30px !important;
        font-size: 12px !important;
    }
    
    .header .upgrade {
        padding: 4px 8px !important;
        font-size: 11px !important;
    }
    
    .btn-secondary {
        padding: 4px 8px !important;
        font-size: 11px !important;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 70px 15px 30px !important;
    }
    
    .hero-content h1 {
        font-size: 1.8rem !important;
    }
    
    .hero-content h2 {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .search-pill {
        padding: 8px 15px !important;
    }
    
    .search-pill input {
        width: 180px !important;
        font-size: 0.9rem !important;
    }
    
    .hero-content small {
        font-size: 0.8rem !important;
    }
}

@media (max-width: 768px) {
    .card {
        padding: 15px !important;
        margin-bottom: 15px !important;
    }
    
    .card .head {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }
    
    .card .head h3 {
        font-size: 16px !important;
    }
    
    .play-all-button {
        padding: 6px 12px !important;
        font-size: 11px !important;
        width: 100% !important;
        justify-content: center !important;
    }
    
    .view-all {
        font-size: 11px !important;
    }
}

@media (max-width: 768px) {
    .sitefoot {
        padding: 20px 10px !important;
        font-size: 11px !important;
        margin-top: 30px !important;
    }
    
    .sitefoot a {
        font-size: 11px !important;
    }
}

@media (max-width: 768px) {
    .separator-circle {
        margin-top: -20px !important;
        margin-bottom: 15px !important;
    }
    
    .circ {
        width: 36px !important;
        height: 36px !important;
        font-size: 16px !important;
    }
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
    }
    
    .page {
        padding: 0 8px !important;
        margin-bottom: 70px !important;
    }
}

@media (max-width: 768px) {
    .search-box {
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
    }
    
    .search-box input {
        width: 100% !important;
        padding: 12px !important;
        border-radius: 8px !important;
        box-sizing: border-box !important;
    }
    
    .search-box button {
        width: 100% !important;
        padding: 12px !important;
        border-radius: 8px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    
    .filter-row {
        flex-direction: column !important;
        gap: 15px !important;
        width: 100% !important;
    }
    
    .filter-group {
        width: 100% !important;
    }
    
    .filter-group select {
        width: 100% !important;
        padding: 10px !important;
    }
    
    .sort-options {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 5px !important;
        justify-content: center !important;
        width: 100% !important;
    }
    
    .sort-btn {
        flex: 1 1 auto !important;
        min-width: 70px !important;
        padding: 8px 5px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 768px) {
    .artist-actions {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        width: 100% !important;
        justify-content: center !important;
    }
    
    .artist-actions .action-btn {
        flex: 1 1 auto !important;
        min-width: 120px !important;
        padding: 10px 8px !important;
        font-size: 12px !important;
        text-align: center !important;
        justify-content: center !important;
    }
    
    .artist-actions .action-btn.primary {
        background: var(--accent) !important;
        color: white !important;
    }
    
    .artist-actions .action-btn:not(.primary) {
        background: white !important;
        border: 1px solid var(--border) !important;
    }
}

@media (max-width: 480px) {
    .artist-actions {
        flex-wrap: wrap !important;
    }
    
    .artist-actions .action-btn {
        min-width: 100% !important;
    }
}

.loop-btn.active {
    color: #4CAF50 !important;
    background: rgba(76, 175, 80, 0.1) !important;
    border-radius: 50%;
    transition: all 0.3s ease;
}
/* ===== رفع مشکل پلیر موبایل - فقط نوار پخش پایین ===== */
@media (max-width: 768px) {
    /* تضمین اینکه نوار پخش تنها در ردیف دوم باشه */
    .music-player.active {
        flex-wrap: wrap !important;
    }
    
    .music-player.active .player-controls {
        order: 1 !important;
    }
    
    .music-player.active .player-info {
        order: 2 !important;
    }
    
    .music-player.active .player-actions {
        order: 3 !important;
    }
    
    .music-player.active .player-progress {
        order: 4 !important;
        width: 100% !important;
        display: flex !important;
        margin-top: 8px !important;
    }
    
    /* مخفی کردن دکمه‌های اضافی در نوار پخش */
    .music-player.active .player-progress button,
    .music-player.active .player-progress .player-btn {
        display: none !important;
    }
}
@media (max-width: 768px) {
    /* previous grid code stays */
    .music-player.active {
        display: grid !important;
        grid-template-columns: auto 1fr auto !important;
        gap: 5px !important;
        align-items: center !important;
        padding: 8px 10px !important;
    }
    
    .music-player.active .player-controls {
        grid-column: 1 !important;
    }
    
    .music-player.active .player-info {
        grid-column: 2 !important;
    }
    
    .music-player.active .player-actions {
        grid-column: 3 !important;
    }
    
    /* progress bar section */
    .music-player.active .player-progress {
        grid-column: 1 / -1 !important;
        display: flex !important;
        width: 100% !important;
        margin-top: 5px !important;
        gap: 5px !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    
    /* progress bar size adjustment */
    .music-player.active .progress-bar {
        flex: 1 !important;
        height: 4px !important; /* smaller height */
        background: rgba(255, 255, 255, 0.2) !important;
        border-radius: 2px !important;
    }
    
    .music-player.active .progress-fill {
        height: 4px !important;
        border-radius: 2px !important;
    }
    
    /* time display size */
    .music-player.active .current-time,
    .music-player.active .total-time {
        font-size: 11px !important;
        min-width: 35px !important;
        text-align: center !important;
    }
    
    /* buttons size */
    .music-player.active .player-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
        padding: 0 !important;
    }
    
    /* song title size */
    .music-player.active .player-song-title {
        font-size: 12px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 120px !important;
    }
    
    .music-player.active .player-artist {
        font-size: 10px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 120px !important;
    }
}

@media (max-width: 480px) {
    .music-player.active .player-info {
        min-width: 0 !important;
    }
    
    .music-player.active .player-song-title {
        max-width: 100px !important;
        font-size: 11px !important;
    }
    
    .music-player.active .player-artist {
        max-width: 100px !important;
        font-size: 9px !important;
    }
    
    .music-player.active .current-time,
    .music-player.active .total-time {
        font-size: 10px !important;
        min-width: 30px !important;
    }
    
    .music-player.active .player-btn {
        width: 28px !important;
        height: 28px !important;
        font-size: 12px !important;
    }
}
/* استایل نوار اعلان‌ها - اضافه به فایل CSS اصلی */
.notification-bar {
    background-color: #2b6cb0;
    color: white;
    text-align: center;
    padding: 8px 0;
    position: relative;
    z-index: 1100;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100%;
}

.notification-bar.info { background-color: #2b6cb0; }
.notification-bar.success { background-color: #10b981; }
.notification-bar.warning { background-color: #f59e0b; }
.notification-bar.danger { background-color: #ef4444; }

.notification-bar + .notification-bar {
    border-top: 1px solid rgba(255,255,255,0.2);
}

.notification-bar p {
    margin: 0;
    padding: 0 15px;
}

.notification-bar a {
    color: white;
    text-decoration: underline;
    font-weight: bold;
}

@media (max-width: 768px) {
    .notification-bar {
        font-size: 12px;
        padding: 6px 0;
    }
}