/*
 * ============================================
 * Calm - فضای آرامش و تمرکز
 * ============================================
 * 
 * توضیحات: فایل استایل اصلی برنامه Calm
 * این برنامه یک محیط آرام‌بخش برای مدیتیشن و تمرکز فراهم می‌کند
 * 
 * ویژگی‌ها:
 * - تصاویر پس‌زمینه تمام صفحه با قابلیت انتخاب و چرخش خودکار
 * - پخش خودکار صداهای آرامش‌بخش با بازه زمانی قابل تنظیم
 * - پنل تنظیمات مدرن با overlay و انیمیشن‌های زیبا
 * - طراحی واکنش‌گرا (Responsive) برای موبایل و تبلت
 * - افکت‌های blur و gradient برای زیبایی بیشتر
 * 
 * نویسنده: Calm Development Team
 * آخرین بروزرسانی: 2025
 * ============================================
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* Font optimization for RTL/LTR */
body[dir="rtl"] {
    font-family: 'Vazirmatn', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body[dir="ltr"] {
    font-family: 'Inter', 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: white;
    font-size: 18px;
    font-weight: 600;
}

.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    transition: background-image 1s ease-in-out;
}

.controls {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bg-sounds-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    color: #667eea;
}

.bg-sounds-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
}

.bg-sounds-icon:active {
    transform: scale(0.95);
}

.settings-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    color: #667eea;
}

.settings-icon:hover {
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
}

.settings-icon:active {
    transform: rotate(90deg) scale(0.95);
}

.settings-icon svg {
    animation: rotate 20s linear infinite;
}

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

.control-panel {
    background: rgba(255, 255, 255, 0.98);
    padding: 30px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 500px;
    max-width: 90vw;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.settings-overlay.show .control-panel {
    transform: scale(1);
}

.close-panel {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.2s;
}

.close-panel:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: rotate(90deg);
}

.close-panel:active {
    transform: rotate(90deg) scale(0.9);
}

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0;
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    position: relative;
    bottom: -2px;
}

.tab-btn:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.tab-content {
    display: none;
    animation: fadeInTab 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.settings-overlay.show {
    opacity: 1;
    visibility: visible;
}

.control-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

#imageSelectRow {
    flex-direction: column;
    width: 100%;
}

#imageSelectRow label {
    margin-bottom: 5px;
}

.separator {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ddd, transparent);
    margin: 5px 0;
}

.sound-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 26px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

input:focus + .slider {
    box-shadow: 0 0 1px linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

#interval, #bgInterval {
    padding: 10px 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    width: 100px;
    text-align: center;
    transition: border-color 0.3s;
}

#interval:focus, #bgInterval:focus {
    outline: none;
    border-color: #667eea;
}

#bgMode, #imageSelect, #soundSelect {
    padding: 10px 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
    min-width: 150px;
}

#bgMode:focus, #imageSelect:focus, #soundSelect:focus {
    outline: none;
    border-color: #667eea;
}

.thumbnails-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px;
}

.thumbnail {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.thumbnail:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.thumbnail.active {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.3);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#updateBtn, #updateBgBtn {
    padding: 10px 25px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

#updateBtn:hover, #updateBgBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

#updateBtn:active, #updateBgBtn:active {
    transform: translateY(0);
}

.status {
    width: 100%;
    text-align: center;
    margin-top: 10px;
}

#status {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Donation Section */
.donation-section {
    margin-top: 20px;
    padding-top: 20px;
}

.donation-title {
    text-align: center;
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 700;
}

.donation-text {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.crypto-options {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.crypto-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.crypto-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

.crypto-btn:active {
    transform: translateY(-1px);
}

.crypto-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.crypto-symbol {
    font-size: 12px;
    opacity: 0.9;
    font-weight: 500;
}

.crypto-details {
    margin-top: 20px;
    padding: 20px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    text-align: center;
    position: relative;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-crypto {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
}

.close-crypto:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
    color: #333;
}

.crypto-qr {
    max-width: 200px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 0 auto 15px;
    display: block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.crypto-address {
    display: flex;
    gap: 10px;
    align-items: center;
}

.crypto-address input {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    background: white;
    text-align: center;
}

.copy-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

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

.copy-feedback {
    margin-top: 10px;
    color: #4CAF50;
    font-weight: 600;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s;
}

.copy-feedback.show {
    opacity: 1;
}

/* About Section */
.about-section {
    padding: 10px 0;
}

.about-title {
    text-align: center;
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 700;
}

.about-content {
    line-height: 1.8;
    color: #555;
}

.about-content p {
    margin-bottom: 15px;
}

.about-content h3 {
    color: #667eea;
    font-size: 18px;
    margin: 20px 0 10px;
    font-weight: 600;
}

.features-list, .usage-list {
    margin: 15px 0 20px 20px;
    padding-right: 20px;
}

.features-list li, .usage-list li {
    margin: 10px 0;
    color: #555;
}

.features-list strong {
    color: #667eea;
}

.version-info {
    background: rgba(102, 126, 234, 0.05);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.version-info p {
    margin: 5px 0;
    color: #666;
}

.social-links {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* Responsive Design */
@media (max-width: 600px) {
    .controls {
        bottom: 20px;
        left: 20px;
    }
    
    .settings-icon {
        width: 50px;
        height: 50px;
    }
    
    .settings-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .control-panel {
        padding: 25px 20px 20px 20px;
        margin: 20px;
        min-width: auto;
        width: calc(100% - 40px);
        max-width: none;
    }
    
    .control-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .sound-toggle {
        margin-top: 5px;
    }
    
    label {
        font-size: 14px;
        width: 100%;
        text-align: center;
    }
    
    #interval, #bgInterval, #updateBtn, #updateBgBtn, #bgMode, #soundSelect {
        font-size: 14px;
        width: 100%;
    }
    
    .thumbnail {
        width: 70px;
        height: 52px;
    }
    
    .crypto-btn {
        min-width: 90px;
        padding: 12px 15px;
    }
    
    .crypto-address {
        flex-direction: column;
    }
    
    .crypto-address input {
        font-size: 11px;
    }
    
    .copy-btn {
        width: 100%;
    }
}

/* Overlay شروع */
.start-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s, visibility 0.5s;
}

.start-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.start-content {
    text-align: center;
    color: white;
    animation: fadeInUp 0.8s ease;
}

.start-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.start-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.start-button {
    padding: 15px 50px;
    font-size: 20px;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.start-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

.start-button:active {
    transform: translateY(-1px) scale(1.02);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
 * Background Sounds Player Styles
 * ============================================ */

.bg-sounds-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 300;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.bg-sounds-overlay.show {
    opacity: 1;
    visibility: visible;
}

.bg-sounds-panel {
    background: rgba(255, 255, 255, 0.98);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    min-width: 600px;
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.bg-sounds-panel::-webkit-scrollbar {
    display: none;
}

.bg-sounds-panel {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.bg-sounds-overlay.show .bg-sounds-panel {
    transform: scale(1);
}

.bg-sounds-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
    text-align: center;
}

.bg-sounds-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0 0 30px 0;
    text-align: center;
}

.bg-sounds-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.sound-card {
    background: transparent;
    padding: 0;
    border: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    cursor: pointer;
}

.sound-card:hover .sound-icon-wrapper .sound-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.sound-card.playing .sound-icon {
    animation: pulse 2s ease-in-out infinite;
    border: 3px solid #667eea;
}

.sound-card.playing .pause-overlay {
    opacity: 1;
}

.sound-icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sound-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.pause-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.sound-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-align: center;
    white-space: nowrap;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(102, 126, 234, 0);
    }
}

.sound-name {
    display: none;
}

.play-btn {
    display: none;
}

.volume-control {
    display: none;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.98);
    padding: 12px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: absolute;
    top: 100%;
    margin-top: 5px;
    z-index: 10;
    min-width: 200px;
    backdrop-filter: blur(10px);
}

.sound-card:hover .volume-control,
.volume-control:hover {
    display: flex;
    animation: fadeInUp 0.3s ease;
}

.volume-control svg {
    color: #667eea;
    flex-shrink: 0;
}

.volume-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: linear-gradient(to right, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
    outline: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.volume-slider:hover {
    opacity: 1;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: white;
    border: 2px solid #667eea;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 12px rgba(102, 126, 234, 0.4);
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: white;
    border: 2px solid #667eea;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
}

.volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 12px rgba(102, 126, 234, 0.4);
}

/* ============================================ */

/* Responsive Design */
@media (max-width: 600px) {
    .controls {
        bottom: 20px;
    }
    
    .bg-sounds-icon,
    .settings-icon {
        width: 50px;
        height: 50px;
    }
    
    .bg-sounds-icon svg,
    .settings-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .control-panel {
        padding: 20px 20px 15px 20px;
        margin: 0 20px;
        min-width: auto;
        width: calc(100% - 40px);
        max-width: 400px;
    }
    
    .bg-sounds-panel {
        padding: 25px;
        min-width: auto;
        width: calc(100% - 40px);
        margin: 0 20px;
    }
    
    .bg-sounds-title {
        font-size: 22px;
    }
    
    .bg-sounds-subtitle {
        font-size: 14px;
    }
    
    .bg-sounds-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .sound-card {
        padding: 20px;
    }
    
    .sound-icon {
        width: 60px;
        height: 60px;
    }
    
    .sound-icon svg {
        width: 36px;
        height: 36px;
    }
}
