


html.mobile #settings-modal {
    align-items: flex-start;
}

html.mobile .settings-container {
    transform: scale(0.7);
    transform-origin: top center;
    overflow: visible;
}

html.mobile .settings-content-wrapper {
    overflow-y: auto;
    max-height: calc((100vh - 40px) / 0.7);
}

html.mobile .settings-header {
    display: none !important;
}

#settings-modal-close-mobile {
    display: none;
}

html.mobile #settings-modal-close-mobile {
    display: flex;
    position: fixed;
    top: 8px;
    right: 70px;
    z-index: 10001;
    width: 36px;
    height: 36px;
    background: rgba(40, 40, 40, 0.95);
    border: 1px solid #555;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

html.mobile .settings-content-wrapper {
    padding: 10px 30px;
}

html.mobile .settings-divider {
    display: none;
}

html.mobile .about-explore-text,
html.mobile .about-news-support {
    display: none !important;
}
#settings-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    justify-content: center;
    align-items: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.settings-container {
    background-color: #1e1e1e;
    color: #e0e0e0;
    width: 850px;
    height: 660px;
    border-radius: 12px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
}


.settings-sidebar {
    width: 220px;
    background-color: #181818;
    border-right: 1px solid #333;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

.settings-sidebar-header {
    padding: 0 20px 20px 20px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    border-bottom: 1px solid #333;
    margin-bottom: 10px;
}

.settings-tab-btn {
    background: none;
    border: none;
    color: #999;
    padding: 12px 20px;
    text-align: left;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 2px 8px;
    border-radius: 6px;
}

.settings-tab-btn .material-symbols-outlined {
    font-size: 20px;
}

.settings-tab-btn:hover {
    background-color: #2a2a2a;
    color: #fff;
}

.settings-tab-btn.active {
    background-color: #333;
    color: #fff;
    font-weight: 600;
}


.settings-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: transparent;
    
}

.settings-header {
    padding: 20px 30px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-header h2 {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
}

.settings-close-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-close-btn:hover {
    background-color: #333;
    color: #fff;
}

.settings-content-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

.settings-section {
    display: none;
}

.settings-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.settings-group {
    margin-bottom: 25px;
}

.settings-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #bbb;
}

.settings-group input[type="number"],
.settings-group input[type="text"],
.settings-group select {
    width: 100%;
    background-color: #2a2a2a;
    border: 1px solid #444;
    color: #fff;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.settings-group input:focus,
.settings-group select:focus {
    border-color: #007bff;
}

.settings-checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    cursor: pointer;
}

.settings-checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #007bff;
    cursor: pointer;
}

.settings-checkbox-group label {
    margin: 0;
    cursor: pointer;
    color: #e0e0e0;
    font-size: 0.95rem;
}

.settings-divider {
    height: 1px;
    background-color: #333;
    margin: 30px 0;
}


.settings-subtabs {
    display: flex;
    gap: 8px;
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.settings-subtab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    color: #888;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.settings-subtab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: #444;
}

.settings-subtab-btn.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.4);
}

.audio-subtab-content {
    animation: fadeIn 0.3s ease;
}


.settings-range-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.settings-range-container input[type="range"] {
    flex: 1;
    height: 4px;
    background: #444;
    border-radius: 2px;
    appearance: none;
    outline: none;
}

.settings-range-container input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
}

.settings-range-value {
    min-width: 45px;
    font-family: monospace;
    font-size: 0.9rem;
    color: #007bff;
}


.btn-primary {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #333;
    color: white;
    border: 1px solid #444;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background-color: #444;
}

.btn-danger {
    background-color: #d25050;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}


.account-info {
    background-color: #252525;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #333;
    margin-bottom: 25px;
}

.account-plan-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 10px;
}

.plan-free {
    background-color: #444;
    color: #ccc;
}

.plan-premium {
    background-color: #ffda73;
    color: #1a1a1a;
}


.settings-content-wrapper::-webkit-scrollbar {
    width: 6px;
}

.settings-content-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.settings-content-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.settings-content-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}