/* Song Selection Screen */
#songSelectScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    color: #fff;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-image: linear-gradient(45deg, #050505 25%, #0a0a0a 25%, #0a0a0a 50%, #050505 50%, #050505 75%, #0a0a0a 75%, #0a0a0a 100%);
    background-size: 20px 20px;
}

/* Custom Scrollbar for Song List */
.ss-list-container::-webkit-scrollbar {
    width: 8px;
    background: #111;
}
.ss-list-container::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}
.ss-list-container::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* Top Bar */
.ss-header {
    height: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Light Gray Thin Line */
    display: flex;
    align-items: center;
    padding: 0 20px;
    background: rgba(0, 0, 0, 0.8);
    justify-content: space-between;
}

.ss-title {
    font-size: 24px;
    font-weight: bold;
    color: #00e5ff;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.ss-actions button {
    background: transparent;
    border: 1px solid #444;
    color: #888;
    padding: 8px 20px;
    margin-left: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    font-style: normal; /* Normal Style */
    text-transform: uppercase;
    transition: all 0.2s;
    font-family: 'Noto Sans SC', sans-serif;
    letter-spacing: 1px;
}

.ss-actions button:hover {
    border-color: #00e5ff;
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
    text-shadow: 0 0 5px rgba(0, 229, 255, 0.4);
}

/* Main Layout */
.ss-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* Filter Bar */
.ss-filter-bar {
    padding: 10px 20px;
    background: rgba(0,0,0,0.8);
    border-bottom: 1px solid #222;
    display: flex;
}

.ss-search-input {
    width: 100%;
    background: #111;
    border: 1px solid #333;
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
}
.ss-search-input:focus {
    border-color: #00e5ff;
    outline: none;
}

/* Left: Song List & Filter */
.ss-left-pane {
    width: 45%;
    border-right: 1px solid #333;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.5);
}

.ss-list-container {
    flex: 1; /* Take remaining height */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.song-item {
    padding: 15px 20px;
    border-bottom: 1px solid #1a1a1a;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
}

.song-item:hover {
    background: rgba(0, 229, 255, 0.1);
}

.song-item.selected {
    background: linear-gradient(90deg, rgba(0,229,255,0.2) 0%, rgba(0,0,0,0) 100%);
    border-left: 5px solid #00e5ff;
}

.song-item.folder-item {
    color: #00e5ff;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.3);
}

.song-item.folder-item:hover {
    background: rgba(0, 229, 255, 0.15);
}

.song-item.back-item {
    color: #888;
    background: rgba(255, 255, 255, 0.05);
}

.song-item-cover {
    width: 60px;
    height: 60px;
    background: #333;
    margin-right: 15px;
    object-fit: cover;
}

.song-item-info {
    flex: 1;
}

.song-item-title {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-item-artist {
    font-size: 12px;
    color: #888;
}

/* Right: Details */
.ss-detail-container {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%);
}

.ss-cover-large {
    width: 300px;
    height: 300px;
    background: #222;
    border: 2px solid #444;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    object-fit: cover;
    margin-bottom: 20px;
}

.ss-meta-box {
    text-align: center;
    margin-bottom: 30px;
}

.ss-meta-title {
    font-size: 32px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
}

.ss-meta-artist {
    font-size: 16px;
    color: #aaa;
}

.ss-bpm-badge {
    display: inline-block;
    background: #333;
    color: #00e5ff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-top: 10px;
    font-family: monospace;
}

/* Difficulty Tabs */
.ss-diff-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.diff-tab {
    padding: 10px 30px;
    background: #111;
    border: 1px solid #333;
    color: #666;
    cursor: pointer;
    text-align: center;
    min-width: 100px;
    transition: all 0.2s;
    border-radius: 4px; /* Rounded Corners */
}

.diff-tab:hover {
    border-color: #666;
    color: #aaa;
}

.diff-tab .diff-name {
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
}

.diff-tab .diff-level {
    font-size: 24px;
    font-weight: bold;
}

/* Active States */
/* Active States (Unified Solid Colors) */
.diff-tab.active.diff-basic {
    background: #00aaff;
    border-color: #00aaff;
    color: #000; /* Black */
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.6);
}

.diff-tab.active.diff-advanced {
    background: #ffaa00;
    border-color: #ffaa00;
    color: #000; /* Black */
    box-shadow: 0 0 20px rgba(255, 170, 0, 0.6);
}

.diff-tab.active.diff-extreme {
    background: #ff0055;
    border-color: #ff0055;
    color: #000; /* Black */
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.6);
}

.diff-tab.active.diff-master {
    background: #aa00ff;
    border-color: #aa00ff;
    color: #000; /* Black */
    box-shadow: 0 0 20px rgba(170, 0, 255, 0.6);
}

.diff-tab.active.diff-standard {
    background: #00ffaa;
    border-color: #00ffaa;
    color: #003322; /* Dark green text for readability */
    box-shadow: 0 0 20px rgba(0, 255, 170, 0.6);
}

/* Start Button */
.ss-start-btn {
    padding: 15px 60px;
    font-size: 24px;
    font-weight: bold;
    background: transparent;
    border: 2px solid #00e5ff;
    color: #00e5ff;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.ss-start-btn:hover {
    background: #00e5ff;
    color: #000;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.6);
}

.ss-start-btn:disabled {
    border-color: #444;
    color: #444;
    cursor: not-allowed;
    box-shadow: none;
    background: transparent;
}
