        :root {
            --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
            --warning-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            --danger-gradient: linear-gradient(135deg, #ff5858 0%, #f09819 100%);
            --dark-color: #1a202c;
            --light-color: #ffffff;
            --surface-color: #f7fafc;
            --text-primary: #2d3748;
            --text-secondary: #718096;
            --text-muted: #a0aec0;
            --border-color: #e2e8f0;
            --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
            --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
            --border-radius: 12px;
            --border-radius-lg: 16px;
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            --player-primary: #0088cc;
            --player-primary-dark: #0066a4;
            --player-bg-light: #f8f9fa;
        }

        .melody-gallery-2025 {
            font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif;
            background: var(--surface-color);
            min-height: 100vh;
            direction: rtl;
            position: relative;
            z-index: 1;
        }

        .melody-hero {
            background: var(--primary-gradient);
            color: white;
            padding: 5rem 0;
            position: relative;
            overflow: hidden;
            z-index: 10;
        }

        .melody-hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
            z-index: 1;
        }

        .melody-hero-content {
            position: relative;
            z-index: 2;
            text-align: center;
        }

        .melody-hero h1 {
            font-size: 3rem;
            font-weight: 800;
            margin-bottom: 1.5rem;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        }

        .melody-hero p {
            font-size: 1.2rem;
            opacity: 0.9;
            max-width: 600px;
            margin: 0 auto;
        }

        .melody-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 2rem;
            position: relative;
            z-index: 5;
        }

        /* استایل‌های جدید برای جستجو */
        .search-section {
            background: white;
            border-radius: var(--border-radius-lg);
            box-shadow: var(--shadow-md);
            padding: 2rem;
            margin-bottom: 2rem;
            border: 1px solid var(--border-color);
            position: relative;
            z-index: 5;
        }

        .search-form {
            display: flex;
            gap: 1rem;
            align-items: center;
            max-width: 600px;
            margin: 0 auto;
        }

        .search-input-wrapper {
            flex: 1;
            position: relative;
        }

        .search-input {
            width: 100%;
            padding: 1rem 1.5rem;
            border: 2px solid var(--border-color);
            border-radius: var(--border-radius);
            font-size: 1rem;
            font-family: 'Vazirmatn', sans-serif;
            transition: var(--transition);
            background: var(--surface-color);
        }

        .search-input:focus {
            outline: none;
            border-color: var(--player-primary);
            box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.1);
            background: white;
        }

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

        .search-btn {
            background: var(--primary-gradient);
            color: white;
            border: none;
            padding: 1rem 2rem;
            border-radius: var(--border-radius);
            cursor: pointer;
            font-size: 1rem;
            font-family: 'Vazirmatn', sans-serif;
            transition: var(--transition);
            white-space: nowrap;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .search-btn:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
        }

        .search-btn:active {
            transform: translateY(0);
        }

        .search-results-info {
            text-align: center;
            margin-top: 1rem;
            color: var(--text-secondary);
            font-size: 0.95rem;
        }

        .search-highlight {
            background: linear-gradient(120deg, #a8edea 0%, #fed6e3 100%);
            padding: 0.2rem 0.5rem;
            border-radius: 4px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .no-results {
            text-align: center;
            padding: 3rem;
            color: var(--text-muted);
        }

        .no-results-icon {
            font-size: 4rem;
            margin-bottom: 1.5rem;
            opacity: 0.5;
        }

        .search-suggestions {
            margin-top: 1rem;
            text-align: center;
        }

        .suggestion-text {
            color: var(--text-secondary);
            margin-bottom: 1rem;
        }

        .suggestion-tags {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .suggestion-tag {
            background: var(--surface-color);
            color: var(--text-secondary);
            padding: 0.4rem 1rem;
            border-radius: 20px;
            text-decoration: none;
            font-size: 0.85rem;
            border: 1px solid var(--border-color);
            transition: var(--transition);
        }

        .suggestion-tag:hover {
            background: var(--secondary-gradient);
            color: white;
        }

        /* فیلتر استایل‌ها */
        .melody-filters {
            background: white;
            border-radius: var(--border-radius-lg);
            box-shadow: var(--shadow-md);
            padding: 2rem;
            margin: 2rem 0;
            border: 1px solid var(--border-color);
            position: relative;
            z-index: 5;
        }

        .filter-section {
            margin-bottom: 2rem;
        }

        .filter-section:last-child {
            margin-bottom: 0;
        }

        .filter-title {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 1rem;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .filter-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.8rem;
        }

        .filter-tag {
            background: var(--surface-color);
            color: var(--text-secondary);
            padding: 0.6rem 1.2rem;
            border-radius: 25px;
            text-decoration: none;
            border: 1px solid var(--border-color);
            transition: var(--transition);
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .filter-tag:hover {
            background: var(--primary-gradient);
            color: white;
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
        }

        .filter-tag.active {
            background: var(--primary-gradient);
            color: white;
            border-color: transparent;
        }

        .filter-tag .badge {
            background: rgba(255, 255, 255, 0.2);
            color: currentColor;
            padding: 0.2rem 0.5rem;
            border-radius: 10px;
            font-size: 0.7rem;
        }

        .filter-categories {
            display: flex;
            flex-wrap: wrap;
            gap: 0.8rem;
        }

        .filter-category {
            background: var(--surface-color);
            color: var(--text-secondary);
            padding: 0.6rem 1.2rem;
            border-radius: 25px;
            text-decoration: none;
            border: 1px solid var(--border-color);
            transition: var(--transition);
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .filter-category:hover {
            background: var(--secondary-gradient);
            color: white;
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
        }

        .filter-category.active {
            background: var(--secondary-gradient);
            color: white;
            border-color: transparent;
        }

        .filter-category .badge {
            background: rgba(255, 255, 255, 0.2);
            color: currentColor;
            padding: 0.2rem 0.5rem;
            border-radius: 10px;
            font-size: 0.7rem;
        }

        .current-filter {
            background: white;
            border-radius: var(--border-radius);
            padding: 1.5rem;
            margin: 1rem 0;
            border: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: relative;
            z-index: 5;
        }

        .current-filter-info {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .clear-filter {
            background: var(--surface-color);
            color: var(--text-secondary);
            border: 1px solid var(--border-color);
            padding: 0.5rem 1rem;
            border-radius: var(--border-radius);
            text-decoration: none;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .clear-filter:hover {
            background: #f56565;
            color: white;
        }

        /* استایل‌های جدید برای انتخاب تعداد آیتم در صفحه */
        .per-page-selector {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 2rem;
            padding: 1rem;
            background: white;
            border-radius: var(--border-radius);
            border: 1px solid var(--border-color);
            justify-content: flex-end;
        }

        .per-page-selector label {
            color: var(--text-secondary);
            font-size: 0.9rem;
            font-weight: 500;
        }

        .per-page-select {
            padding: 0.5rem 1rem;
            border: 1px solid var(--border-color);
            border-radius: var(--border-radius);
            background: white;
            color: var(--text-primary);
            font-family: 'Vazirmatn', sans-serif;
            font-size: 0.9rem;
            transition: var(--transition);
        }

        .per-page-select:focus {
            outline: none;
            border-color: var(--player-primary);
            box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.1);
        }

        .melody-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
            gap: 2.5rem;
            margin: 4rem 0;
            padding: 2rem 0;
            position: relative;
            z-index: 5;
        }

        .melody-card {
            background: var(--light-color);
            border-radius: var(--border-radius-lg);
            box-shadow: var(--shadow-md);
            overflow: hidden;
            transition: var(--transition);
            border: 1px solid var(--border-color);
            position: relative;
            z-index: 5;
        }

        .melody-card:hover {
            transform: translateY(-8px);
            box-shadow: var(--shadow-xl);
        }

        .melody-card-header {
            display: flex;
            align-items: flex-start;
            gap: 1.5rem;
            padding: 2rem;
            background: linear-gradient(135deg, var(--surface-color) 0%, var(--light-color) 100%);
            border-bottom: 1px solid var(--border-color);
        }

        .melody-thumbnail {
            width: 120px;
            height: 120px;
            border-radius: var(--border-radius);
            object-fit: cover;
            flex-shrink: 0;
            border: 4px solid white;
            box-shadow: var(--shadow-lg);
        }

        .melody-thumbnail-placeholder {
            width: 120px;
            height: 120px;
            border-radius: var(--border-radius);
            flex-shrink: 0;
            border: 3px dashed var(--border-color);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-muted);
            background: var(--surface-color);
            font-size: 2.5rem;
        }

        .melody-header-content {
            flex: 1;
        }

        .melody-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 1rem;
            line-height: 1.4;
        }

        .melody-categories {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 1rem;
        }

        .melody-category-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            background: var(--primary-gradient);
            color: white;
            padding: 0.4rem 0.8rem;
            border-radius: 15px;
            font-size: 0.8rem;
            font-weight: 500;
            text-decoration: none;
            transition: var(--transition);
        }

        .melody-category-badge:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-sm);
        }

        .melody-meta {
            display: flex;
            align-items: center;
            gap: 1.2rem;
            font-size: 0.95rem;
            color: var(--text-secondary);
            flex-wrap: wrap;
        }

        .melody-duration {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            background: var(--surface-color);
            padding: 0.5rem 1.2rem;
            border-radius: 25px;
            font-weight: 600;
        }

        .melody-tag {
            background: var(--secondary-gradient);
            color: white;
            padding: 0.5rem 1.5rem;
            border-radius: 25px;
            font-size: 0.85rem;
            font-weight: 600;
        }

        .melody-card-body {
            padding: 2rem;
            position: relative;
            z-index: 5;
        }

        /* استایل‌های جدید پلیر پیشرفته */
        .melody-player-wrapper {
            position: relative;
            overflow: visible !important;
            margin-bottom: 2rem;
            z-index: 10;
        }

        .melody-player {
            position: relative;
            overflow: visible;
            background: #ffffff;
            border-radius: 12px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
            padding: 1.5rem;
            border: 1px solid #e2e8f0;
            z-index: 10;
        }

        .player-controls {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            direction: rtl;
            position: relative;
            overflow: visible;
            z-index: 10;
        }

        /* دکمه پلی در سمت چپ */
        .play-btn {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: linear-gradient(135deg, #00cc88, #0088cc);
            border: none;
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            flex-shrink: 0;
            font-size: 1.4rem;
            position: relative;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
            order: 3;
            z-index: 11;
        }

        .play-btn:hover {
            transform: translateY(-2px) scale(1.05);
            box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
        }

        .play-btn.playing {
            background: linear-gradient(135deg, #0088cc, #00cc88);
        }

        /* اطلاعات پخش در وسط */
        .player-info {
            flex: 1;
            min-width: 0;
            order: 2;
            max-width: 100%;
            z-index: 10;
        }

        .track-info {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.75rem;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .track-name {
            font-weight: 600;
            color: #2d3748;
            font-size: 1rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .track-duration {
            font-size: 0.875rem;
            color: #718096;
            font-variant-numeric: tabular-nums;
            flex-shrink: 0;
        }

        .progress-container {
            position: relative;
            margin-bottom: 0.5rem;
            direction: ltr;
            cursor: pointer;
            z-index: 10;
        }

        .waveform-visualization {
            height: 40px;
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            gap: 2px;
            opacity: 0.7;
            transition: opacity 0.3s ease;
            direction: ltr;
            z-index: 10;
        }

        .wave-bar {
            flex: 1;
            background: linear-gradient(to top, #00cc88, #0088cc);
            border-radius: 2px;
            min-height: 3px;
            transition: all 0.2s ease;
        }

        .progress-bar {
            height: 4px;
            background: rgba(0, 136, 204, 0.2);
            border-radius: 2px;
            position: relative;
            overflow: hidden;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #00cc88, #0088cc);
            border-radius: 2px;
            width: 0%;
            transition: width 0.1s ease;
            position: relative;
        }

        .progress-slider {
            position: absolute;
            top: -6px;
            right: 0;
            width: 100%;
            height: 16px;
            opacity: 0;
            cursor: pointer;
            direction: ltr;
            z-index: 12;
        }

        .time-display {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.875rem;
            color: #718096;
            font-variant-numeric: tabular-nums;
            direction: ltr;
            justify-content: flex-start;
        }

        .time-separator {
            color: #cbd5e0;
        }

        /* کنترل صدا - اصلاح شده */
        .volume-control-wrapper {
            position: relative;
            z-index: 20;
            order: 1;
        }

        .volume-toggle-btn {
            width: 50px;
            height: 50px;
            border-radius: 12px;
            background: rgba(0, 136, 204, 0.1);
            border: none;
            color: #0088cc;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 1.2rem;
            position: relative;
            z-index: 21;
            flex-shrink: 0;
        }

        .volume-toggle-btn:hover {
            background: rgba(0, 136, 204, 0.2);
            transform: translateY(-2px);
        }

        /* پاپ‌آپ صدا - اصلاح شده */
        .volume-popup {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            padding: 1rem;
            pointer-events: none;
        }

        .volume-popup.active {
            opacity: 1;
            visibility: visible;
            pointer-events: all;
        }

        .volume-popup-content {
            background: white;
            border-radius: 16px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
            padding: 1.5rem;
            width: 100%;
            max-width: 320px;
            position: relative;
            transform: translateY(20px);
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border: 1px solid #e2e8f0;
            z-index: 10000;
        }

        .volume-popup.active .volume-popup-content {
            transform: translateY(0);
        }

        .volume-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
            padding-bottom: 0.75rem;
            border-bottom: 1px solid #e2e8f0;
        }

        .volume-title {
            font-weight: 600;
            color: #2d3748;
            font-size: 1.1rem;
        }

        .volume-close-btn {
            background: #f7fafc;
            border: none;
            color: #718096;
            cursor: pointer;
            padding: 0.5rem;
            border-radius: 8px;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 32px;
            font-size: 1rem;
        }

        .volume-close-btn:hover {
            background: #edf2f7;
            color: #2d3748;
        }

        .volume-indicator {
            text-align: center;
            margin: 1rem 0;
        }

        .volume-percent {
            font-weight: 700;
            font-size: 1.25rem;
            color: #0088cc;
            background: rgba(0, 136, 204, 0.1);
            padding: 0.6rem 1.25rem;
            border-radius: 25px;
            display: inline-block;
        }

        .volume-controls {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            direction: ltr;
            margin: 1.5rem 0;
        }

        .volume-step-btn {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            background: rgba(0, 136, 204, 0.1);
            border: none;
            color: #0088cc;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
            font-size: 1rem;
            flex-shrink: 0;
        }

        .volume-step-btn:hover {
            background: rgba(0, 136, 204, 0.2);
            transform: scale(1.1);
        }

        .volume-bar-container {
            flex: 1;
            position: relative;
            height: 40px;
            display: flex;
            align-items: center;
            direction: ltr;
        }

        .volume-bar {
            width: 100%;
            height: 8px;
            background: rgba(0, 136, 204, 0.15);
            border-radius: 4px;
            position: relative;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .volume-bar:hover {
            height: 10px;
        }

        .volume-fill {
            height: 100%;
            background: linear-gradient(90deg, #00cc88, #0088cc);
            border-radius: 4px;
            width: 80%;
            position: relative;
            transition: width 0.2s ease;
        }

        .volume-handle {
            width: 20px;
            height: 20px;
            background: #ffffff;
            border-radius: 50%;
            position: absolute;
            top: 50%;
            left: 80%;
            transform: translate(-50%, -50%);
            cursor: grab;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
            border: 2px solid #0088cc;
            transition: all 0.2s ease;
            z-index: 2;
        }

        .volume-handle:hover {
            transform: translate(-50%, -50%) scale(1.2);
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
        }

        .volume-handle:active {
            cursor: grabbing;
            transform: translate(-50%, -50%) scale(1.1);
        }

        .volume-slider-hidden {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            cursor: pointer;
            z-index: 1;
        }

        .volume-presets {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.5rem;
            margin-top: 1rem;
            direction: rtl;
        }

        .volume-preset {
            padding: 0.75rem 0.5rem;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            background: white;
            color: #4a5568;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            font-size: 0.85rem;
        }

        .volume-preset:hover {
            background: #f7fafc;
            border-color: #cbd5e0;
        }

        .volume-preset.active {
            background: rgba(0, 136, 204, 0.1);
            border-color: #0088cc;
            color: #0088cc;
            font-weight: 600;
        }

        /* استایل‌های جدید و بهینه برای نمایش قیمت و وضعیت محصول */
        .product-pricing-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 0.75rem;
            margin: 1rem 0;
            padding: 1rem;
            background: var(--surface-color);
            border-radius: var(--border-radius);
            border: 1px solid var(--border-color);
        }

        .price-section {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            flex-wrap: wrap;
        }

        .price-current {
            font-weight: 700;
            font-size: 1.2rem;
            color: #00a86b;
            background: linear-gradient(135deg, #00cc88, #0088cc);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-shadow: 0 2px 4px rgba(0, 200, 83, 0.1);
        }

        .price-original {
            font-weight: 600;
            font-size: 1rem;
            color: #a0aec0;
            text-decoration: line-through;
            padding: 0.2rem 0.5rem;
            background: rgba(160, 174, 192, 0.1);
            border-radius: 6px;
        }

        .product-status-section {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            flex-wrap: wrap;
        }

        .stock-status {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
            transition: var(--transition);
        }

        .in-stock {
            background: rgba(0, 200, 83, 0.1);
            color: #00c853;
            border: 1px solid rgba(0, 200, 83, 0.3);
        }

        .out-of-stock {
            background: rgba(244, 67, 54, 0.1);
            color: #f44336;
            border: 1px solid rgba(244, 67, 54, 0.3);
            order: -1; /* قرارگیری در اول */
        }

        .express-delivery-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
            background: var(--warning-gradient);
            color: white;
            box-shadow: 0 2px 8px rgba(245, 87, 108, 0.3);
            transition: var(--transition);
        }

        .express-delivery-badge:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(245, 87, 108, 0.4);
        }

        .product-badges {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            flex-wrap: wrap;
        }

        /* محصولات مرتبط */
        .related-products {
            border-top: 1px solid var(--border-color);
            padding-top: 2rem;
            position: relative;
            z-index: 5;
        }

        .related-products h4 {
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 1.5rem;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 0.8rem;
        }

        .product-links {
            display: flex;
            flex-direction: column;
            gap: 1.2rem;
        }

        .product-link {
            display: flex;
            align-items: center;
            gap: 1.2rem;
            padding: 1.5rem;
            background: var(--surface-color);
            border-radius: var(--border-radius);
            text-decoration: none;
            color: var(--text-primary);
            transition: var(--transition);
            border: 1px solid transparent;
            position: relative;
        }

        .product-link:hover {
            background: white;
            border-color: var(--border-color);
            transform: translateX(-8px);
            box-shadow: var(--shadow-md);
        }

        .product-image {
            width: 70px;
            height: 70px;
            border-radius: var(--border-radius);
            object-fit: cover;
            flex-shrink: 0;
            border: 3px solid white;
            box-shadow: var(--shadow-sm);
        }

        .product-info {
            flex: 1;
            min-width: 0;
        }

        .product-name {
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--text-primary);
            font-size: 1rem;
            line-height: 1.4;
        }

        .product-description {
            font-size: 0.85rem;
            color: var(--text-secondary);
            margin-bottom: 0.5rem;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .melody-tags {
            margin-top: 1.5rem;
            padding-top: 1.5rem;
            border-top: 1px solid var(--border-color);
            position: relative;
            z-index: 5;
        }

        .melody-tags h4 {
            font-size: 1rem;
            font-weight: 600;
            margin-bottom: 1rem;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .tags-list {
            display: flex;
            flex-wrap: wrap;
            gap: 0.6rem;
        }

        .tag-item {
            background: var(--surface-color);
            color: var(--text-secondary);
            padding: 0.4rem 1rem;
            border-radius: 16px;
            font-size: 0.8rem;
            border: 1px solid var(--border-color);
            text-decoration: none;
            transition: var(--transition);
        }

        .tag-item:hover {
            background: var(--secondary-gradient);
            color: white;
            transform: translateY(-2px);
        }

        /* استایل‌های صفحه‌بندی */
        .melody-pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 3rem 0;
            padding: 2rem 0;
            direction: rtl;
        }

        .pagination {
            display: flex;
            list-style: none;
            padding: 0;
            margin: 0;
            gap: 0.5rem;
            flex-wrap: wrap;
            justify-content: center;
        }

        .page-item {
            margin: 0;
        }

        .page-link {
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 44px;
            height: 44px;
            padding: 0 1rem;
            border: 1px solid var(--border-color);
            border-radius: var(--border-radius);
            color: var(--text-secondary);
            text-decoration: none;
            transition: var(--transition);
            background: white;
            font-size: 0.95rem;
            font-weight: 500;
        }

        .page-link:hover {
            background: var(--surface-color);
            border-color: var(--text-muted);
            color: var(--text-primary);
            transform: translateY(-2px);
            box-shadow: var(--shadow-sm);
        }

        .page-item.active .page-link {
            background: var(--primary-gradient);
            color: white;
            border-color: transparent;
            box-shadow: var(--shadow-md);
        }

        .page-item.disabled .page-link {
            opacity: 0.5;
            cursor: not-allowed;
            background: var(--surface-color);
            transform: none;
            box-shadow: none;
        }

        .page-info {
            text-align: center;
            margin-top: 1rem;
            color: var(--text-secondary);
            font-size: 0.9rem;
        }

        .page-info .search-highlight {
            background: var(--primary-gradient);
            color: white;
            padding: 0.3rem 0.8rem;
            border-radius: 20px;
            font-weight: 600;
        }

        /* دسترسی‌پذیری */
        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }

        /* انیمیشن‌های پیشرفته */
        @keyframes wavePulse {
            0%, 100% { transform: scaleY(1); }
            50% { transform: scaleY(1.8); }
        }

        .wave-bar.animated {
            animation: wavePulse 0.6s ease-in-out infinite;
            animation-delay: calc(var(--index) * 0.1s);
        }

        /* رسپانسیو */
        @media (max-width: 1024px) {
            .melody-grid {
                grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
                gap: 2rem;
            }

            .melody-hero h1 {
                font-size: 2.5rem;
            }

            .melody-card-header {
                padding: 1.8rem;
            }
        }

        @media (max-width: 768px) {
            .melody-hero {
                padding: 4rem 0;
            }

            .melody-hero h1 {
                font-size: 2rem;
            }

            .melody-container {
                padding: 0 1.5rem;
            }

            .melody-grid {
                grid-template-columns: 1fr;
                gap: 2rem;
                margin: 3rem 0;
            }

            .melody-card-header {
                flex-direction: column;
                align-items: center;
                text-align: center;
                gap: 1.2rem;
                padding: 1.8rem;
            }

            .melody-thumbnail,
            .melody-thumbnail-placeholder {
                width: 140px;
                height: 140px;
            }

            .melody-meta {
                justify-content: center;
            }

            /* استایل‌های رسپانسیو برای جستجو */
            .search-form {
                flex-direction: column;
                gap: 1rem;
            }

            .search-input-wrapper {
                width: 100%;
            }

            .search-btn {
                width: 100%;
                justify-content: center;
            }

            .player-controls {
                flex-direction: row;
                align-items: center;
                gap: 0.75rem;
                flex-wrap: nowrap;
            }

            .play-btn {
                width: 50px;
                height: 50px;
                font-size: 1.2rem;
                order: 3;
                flex-shrink: 0;
            }

            .player-info {
                order: 2;
                flex: 1;
                min-width: 0;
            }

            .volume-control-wrapper {
                order: 1;
                flex-shrink: 0;
            }

            .volume-toggle-btn {
                width: 45px;
                height: 45px;
                font-size: 1.1rem;
            }

            .volume-popup-content {
                max-width: 280px;
                padding: 1.25rem;
            }

            .volume-controls {
                margin: 1.25rem 0;
            }

            .track-info {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.25rem;
                margin-bottom: 0.5rem;
            }

            .track-name {
                font-size: 0.9rem;
                width: 100%;
            }

            .track-duration {
                font-size: 0.8rem;
                align-self: flex-end;
            }

            .waveform-visualization {
                height: 30px;
                margin-bottom: 0.25rem;
            }

            .time-display {
                font-size: 0.8rem;
            }

            .filter-tags,
            .filter-categories {
                justify-content: center;
            }

            .product-link {
                flex-direction: column;
                text-align: center;
                gap: 1rem;
                padding: 1.2rem;
            }

            .product-info {
                width: 100%;
            }

            .product-pricing-container {
                flex-direction: column;
                align-items: stretch;
                text-align: center;
            }

            .price-section {
                justify-content: center;
            }

            .product-status-section {
                justify-content: center;
            }

            .out-of-stock {
                order: -1;
            }

            /* استایل‌های رسپانسیو برای صفحه‌بندی */
            .pagination {
                gap: 0.3rem;
            }

            .page-link {
                min-width: 40px;
                height: 40px;
                padding: 0 0.8rem;
                font-size: 0.9rem;
            }

            .per-page-selector {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.5rem;
            }
        }

        @media (max-width: 480px) {
            .melody-hero h1 {
                font-size: 1.8rem;
            }

            .melody-hero p {
                font-size: 1.1rem;
            }

            .melody-card-header,
            .melody-card-body {
                padding: 1.5rem;
            }

            .melody-title {
                font-size: 1.3rem;
            }

            .melody-meta {
                flex-direction: column;
                gap: 1rem;
            }

            .product-link {
                padding: 1.2rem;
            }

            .play-btn {
                width: 45px;
                height: 45px;
                font-size: 1rem;
            }

            .volume-toggle-btn {
                width: 40px;
                height: 40px;
                font-size: 1rem;
            }

            .volume-popup-content {
                max-width: 260px;
                padding: 1rem;
            }

            .volume-controls {
                margin: 1rem 0;
                gap: 0.6rem;
            }

            .volume-step-btn {
                width: 36px;
                height: 36px;
            }

            .volume-bar-container {
                height: 36px;
            }

            .volume-bar {
                height: 7px;
            }

            .volume-handle {
                width: 18px;
                height: 18px;
            }

            .volume-presets {
                gap: 0.4rem;
            }

            .volume-preset {
                padding: 0.6rem 0.4rem;
                font-size: 0.8rem;
            }

            .track-name {
                font-size: 0.85rem;
            }

            .waveform-visualization {
                height: 25px;
            }

            .price-current {
                font-size: 1.1rem;
            }

            .price-original {
                font-size: 0.9rem;
            }

            .stock-status,
            .express-delivery-badge {
                font-size: 0.8rem;
                padding: 0.4rem 0.8rem;
            }

            /* استایل‌های رسپانسیو برای صفحه‌بندی */
            .pagination {
                flex-wrap: wrap;
            }

            .page-link {
                min-width: 36px;
                height: 36px;
                padding: 0 0.6rem;
                font-size: 0.85rem;
            }
        }

        /* بهبود عملکرد لمسی در موبایل */
        @media (hover: none) {
            .play-btn:hover,
            .volume-toggle-btn:hover,
            .volume-step-btn:hover {
                transform: none;
            }

            .play-btn:active,
            .volume-toggle-btn:active,
            .volume-step-btn:active {
                transform: scale(0.95);
            }

            .express-delivery-badge:hover {
                transform: none;
            }
        }
