.settings-container {
    padding: 1.04vw;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.settings-tabs {
    display: flex;
    gap: 0.52vw;
    margin-bottom: 2.78vh;
    border-bottom: 0.05vw solid #424242;
    padding-bottom: 0.93vh;
}

.settings-tab {
    background: transparent;
    border: none;
    color: #aaa;
    padding: 0.93vh 1.04vw;
    font-size: 1.125rem;
    cursor: pointer;
    border-bottom: 0.16vw solid transparent;
    transition: all 0.2s;
}

.settings-tab.active {
    color: #fff;
    border-bottom-color: #007bff;
}

.settings-tab:focus, .settings-tab.focused {
    background-color: rgba(255, 255, 255, 0.1);
    outline: none;
}

.settings-content {
    flex: 1;
    overflow-y: auto;
    padding-right: 0.52vw;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.39vh 0;
    border-bottom: 0.05vw solid #333;
}

.setting-label {
    font-size: 1.125rem;
    color: #fff;
}

.setting-control {
    display: flex;
    align-items: center;
}

/* Toggle Switch */
.toggle-switch {
    width: 2.6vw;
    height: 2.41vh;
    background-color: #444;
    border-radius: 1.2vh;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s;
}

.toggle-switch.active {
    background-color: #007bff;
}

.toggle-knob {
    width: 1.15vw;
    height: 2.04vh;
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    top: 0.19vh;
    left: 0.1vw;
    transition: transform 0.3s;
}

.toggle-switch.active .toggle-knob {
    transform: translateX(1.25vw);
}

.toggle-switch:focus, .toggle-switch.focused {
    box-shadow: 0 0 0 2px #fff;
    outline: none;
}

/* Slider */
.slider-container {
    display: flex;
    align-items: center;
    gap: 0.52vw;
}

.slider-value {
    min-width: 2.6vw;
    text-align: right;
    color: #aaa;
}

/* Playlist Actions */
.playlist-actions {
    display: flex;
    gap: 0.52vw;
}

.btn-sm {
    padding: 0.46vh 0.52vw;
    font-size: 0.875rem;
}

.btn-danger {
    background-color: #dc3545;
}

.btn-warning {
    background-color: #ffc107;
    color: #000;
}

.no-data {
    text-align: center;
    padding: 3.7vh;
    color: #aaa;
    font-style: italic;
}

/* Media Queries for Settings Scaling */

/* 720p TVs */
@media screen and (max-width: 1280px) and (max-height: 720px) {
    .settings-tab,
    .setting-label {
        font-size: 1rem;
    }
    
    .toggle-switch {
        width: 3vw;
        height: 2.8vh;
    }
    
    .toggle-knob {
        width: 1.3vw;
        height: 2.3vh;
    }
}

/* 4K TVs */
@media screen and (min-width: 1921px) {
    .settings-tab,
    .setting-label {
        font-size: 1.2rem;
    }
    
    .toggle-switch {
        width: 2.4vw;
        height: 2.2vh;
    }
    
    .toggle-knob {
        width: 1vw;
        height: 1.8vh;
    }
}
