:root {
    --bg-dark: #2b2a4c;
    --sidebar-purple: #4a4a7d;
    --master-purple: #c24cf6;
    --accent-teal: #40e0d0;
    --text-white: #ffffff;
}

body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-container {
    display: flex;
    width: 166vh;
    height: 100vh;
    background: linear-gradient(135deg, #3a3a6a 0%, #202040 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

.sidebar {
    width: 80px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
}

.cat-item {
    margin: 15px 0;
    font-size: 12px;
    opacity: 0.7;
    cursor: pointer;
}

.cat-item.active {
    color: var(--accent-teal);
    opacity: 1;
}

.song-selection {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 0px;
    /*background: rgba(255, 255, 255, 0.05);*/
    overflow: hidden;
}

.search-bar {
    display: flex;
    gap: 10px;
    background: transparent;
    margin-bottom: 0;
    padding: 10px 20px;
    margin-left: 0;
    margin-right: 0;
    z-index: 10;
    pointer-events: none;
}

.song-list {
    flex-grow: 1;
    overflow-y: auto;
    margin-top: -60px;
    padding: 15px 20px;
    padding-top: 60px;
    flex-grow: 1;
    overflow-y: auto;
}

.search-bar input {
    flex-grow: 1;
    border-radius: 20px;
    border: none;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.9);
}

.search-bar input, .view-toggle {
    pointer-events: auto;
}

.song-card {
    display: flex;
    align-items: center;
    /*background: rgba(255, 255, 255, 0.1);*/
    margin-bottom: 8px;
    padding: 10px;
    /*border-radius: 10px;*/
    transition: 0.3s;
    position: relative;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.song-card.selected {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    transform: scale(1.02);
    border-radius: 10px;
}

.level-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
    z-index: 5;
}

.level-badge.master { background-color: var(--master-purple); color: white; }

.card-jacket {
    display: none;
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 8px;
}

.song-list.grid-mode {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

.song-list.grid-mode .song-card {
    flex-direction: column;
    padding: 5px;
    background: rgba(255, 255, 255, 0.05);
}

.song-list.grid-mode .card-jacket {
    display: block;
}

.song-list.grid-mode .level-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    margin: 0;
    font-size: 12px;
    border: 2px solid white;
}

.song-list.grid-mode .song-info, 
.song-list.grid-mode .difficulty-dots {
    display: none;
}

.song-details {
    width: 43%;
    /*background: rgba(0, 0, 0, 0.3);*/
    padding: 30px;
    text-align: center;
}

.phone {
    position: fixed;
    bottom: -240px;
    right: 28vh;
    background-image: url("/images/assets/albums/phone.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    /*padding: 300px;*/
    margin: 0;
    height: 934px;
    width: 525px;
    transform: rotate(3deg);
    display: flex;
    justify-content: center;
    /*align-items: center;*/
}

.phone-wrapper {
    margin-top: 17%;
    overflow-y: scroll;

    width: 75%; 
    height: 60%; 
    
    display: flex;
    flex-direction: column;
    align-items: center;
    /*justify-content: center;*/
}

.album-art {
    width: 220px;
    height: 220px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    object-fit: cover;
}

.difficulty-selector {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.diff {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    border: 3px solid rgba(255,255,255,0.3);
}

.play-button {
    margin-top: auto;
    width: 200px;
    padding: 15px;
    border-radius: 30px;
    border: none;
    border: 4px solid var(--accent-teal);
    color: var(--accent-teal);
    background: none;
    font-weight: bold;
    font-size: 1.2em;
    cursor: pointer;
}

.diff.easy {
    border-color: #44c322;
}

.diff.normal {
    border-color: #33aadd;
}

.diff.hard {
    border-color: #ffaa00;
}

.diff.expert {
    border-color: #ff4466;
}

.diff.master {
    border-color: var(--master-purple);
}


.diff.active {
    border-color: white;
    color: white;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    transform: scale(1.1); 
    transition: all 0.2s ease;
}


.diff.easy.active { 
    background-color: #44c322;
    box-shadow: 0 0 15px #44c322;
}

.diff.normal.active { 
    background-color: #33aadd;
    box-shadow: 0 0 15px #33aadd;
}

.diff.hard.active { 
    background-color: #ffaa00;
    box-shadow: 0 0 15px #ffaa00;
}

.diff.expert.active { 
    background-color: #ff4466;
    box-shadow: 0 0 15px #ff4466;
}

.diff.master.active {
    background-color: var(--master-purple);
    box-shadow: 0 0 15px var(--master-purple);
}