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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #121212;
    color: #fff;
}

.container {
    display: grid;
    grid-template-columns: 230px 1fr;
    grid-template-rows: 1fr 90px;
    height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    background: #000;
    padding: 24px;
    grid-row: 1 / 2;
}

.logo img {
    width: 130px;
    margin-bottom: 30px;
}

.navigation ul {
    list-style: none;
    margin-bottom: 30px;
}

.navigation ul li {
    padding: 10px 0;
}

.navigation ul li a {
    color: #b3b3b3;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    transition: 0.3s ease;
}

.navigation ul li a:hover {
    color: #fff;
}

.navigation ul li a i {
    font-size: 20px;
    margin-right: 10px;
}

#sign-in-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 0;
    margin-top: 20px;
    background: #1db954;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    gap: 10px;
}

#sign-in-btn:hover {
    background: #1ed760;
    color: #000;
}

#sign-out-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 0;
    margin-top: 10px;
    background: #e74c3c;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    gap: 10px;
}

#sign-out-btn:hover {
    background: #c0392b;
}

/* Main Content Styles */
.main-content {
    background: linear-gradient(to bottom, #1e1e1e, #121212);
    padding: 0 20px 20px 20px;
    overflow-y: auto;
    padding-bottom: 100px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    position: sticky;
    top: 0;
    background: inherit;
    z-index: 1;
}

.prev-next-buttons button {
    color: #7a7a7a;
    cursor: pointer;
    width: 34px;
    height: 34px;
    border-radius: 100%;
    font-size: 18px;
    border: 0;
    background: #090909;
    margin-right: 10px;
}

.navbar {
    display: flex;
    align-items: center;
}

.navbar ul {
    list-style: none;
    display: flex;
}

.navbar ul li {
    padding: 0 20px;
}

.navbar ul li a:hover {
    color: #fff;
}

.navbar button {
    background: #fff;
    color: #000;
    font-size: 16px;
    font-weight: bold;
    padding: 14px 30px;
    border: 0;
    border-radius: 40px;
    cursor: pointer;
    margin-left: 20px;
}

/* Playlist Styles */
.spotify-playlists {
    padding: 20px 0;
}

.spotify-playlists h2 {
    color: #fff;
    font-size: 22px;
    margin-bottom: 20px;
}

.list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
    padding: 10px 0;
}

.list .item {
    background: #181818;
    padding: 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: all ease 0.4s;
    position: relative;
    min-height: 250px;
}

.list .item:hover {
    background: #252525;
}

.list .item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
}

.list .item .play .fa {
    position: absolute;
    right: 10px;
    top: -60px;
    padding: 18px;
    background: #1db954;
    border-radius: 100%;
    opacity: 0;
    transition: all ease 0.4s;
}

.list .item:hover .play .fa {
    opacity: 1;
    transform: translateY(-20px);
}

.list .item h4 {
    color: #fff;
    font-size: 14px;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 20px;
}

.list .item p {
    color: #b3b3b3;
    font-size: 12px;
    margin-top: 5px;
}

.playlist-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}

.list .item:hover .playlist-actions {
    opacity: 1;
}

.play-playlist,
.delete-playlist {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.play-playlist {
    background: #1db954;
    color: #fff;
    flex: 1;
}

.play-playlist:hover {
    background: #1ed760;
}

.delete-playlist {
    background: #e74c3c;
    color: #fff;
    padding: 6px 8px;
}

.delete-playlist:hover {
    background: #c0392b;
}

/* Player Styles */
.player {
    background: #181818;
    border-top: 1px solid #282828;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    grid-column: 1 / -1;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.song-info {
    display: flex;
    align-items: center;
    width: 30%;
}

.song-info img {
    width: 56px;
    height: 56px;
    margin-right: 14px;
}

.song-details h4 {
    color: #fff;
    font-size: 14px;
    margin-bottom: 5px;
}

.song-details p {
    color: #b3b3b3;
    font-size: 12px;
}

.player-controls {
    width: 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.control-buttons {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.control-buttons button {
    background: transparent;
    border: none;
    color: #b3b3b3;
    font-size: 16px;
    margin: 0 10px;
    cursor: pointer;
}

.control-buttons .play-pause {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-bar {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress,
.volume-slider {
    flex: 1;
    height: 4px;
    background: #4f4f4f;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.progress-filled,
.volume-filled {
    background: #b3b3b3;
    height: 100%;
    border-radius: 2px;
}

.progress-filled {
    width: 0%;
    transition: width 0.1s linear;
}

.volume-filled {
    width: 100%;
}

.current-time,
.total-time {
    color: #b3b3b3;
    font-size: 12px;
}

.volume-controls {
    width: 30%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.volume-controls button {
    background: transparent;
    border: none;
    color: #b3b3b3;
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    position: absolute;
    left: 20px;
    top: 20px;
    z-index: 101;
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

.menu-overlay.active {
    display: block;
}

/* Responsive Design */
@media screen and (max-width: 1400px) {
    .list {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media screen and (max-width: 1200px) {
    .list {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

@media screen and (max-width: 1024px) {
    .container {
        grid-template-columns: 200px 1fr;
    }

    .list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media screen and (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: 200px;
        z-index: 100;
        background: #000;
    }

    .sidebar.active {
        display: block;
    }

    .main-content {
        margin-left: 0;
    }

    .navbar ul {
        display: none;
    }

    .navbar button {
        margin-left: 10px;
        padding: 10px 20px;
    }

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

    .mobile-menu-btn {
        display: block;
    }

    .sidebar.active~.player {
        transform: translateY(100%);
    }
}

@media screen and (max-width: 400px) {
    .list {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .list .item {
        display: flex;
        align-items: center;
        padding: 8px;
        height: 60px;
        background: #181818;
        border-radius: 4px;
    }

    .list .item img {
        width: 40px;
        height: 40px;
        margin: 0 12px 0 0;
        flex-shrink: 0;
    }

    .list .item .play {
        position: static;
        margin-left: auto;
        margin-right: 12px;
    }

    .list .item .play .fa {
        position: static;
        padding: 8px;
        transform: none;
        opacity: 1;
        background: transparent;
        color: #b3b3b3;
    }

    .list .item:hover .play .fa {
        transform: none;
        color: #1db954;
    }

    .list .item h4 {
        font-size: 14px;
        margin-bottom: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .list .item p {
        font-size: 12px;
        line-height: 1.2;
        color: #b3b3b3;
    }
}

/* Mobile Responsive Styles */
@media screen and (max-width: 480px) {

    /* Container and Layout */
    .container {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 80px;
    }

    /* Sidebar */
    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        bottom: 0;
        width: 85%;
        max-width: 300px;
        background: #000;
        z-index: 1000;
        transition: left 0.3s ease;
        padding: 20px;
    }

    .sidebar.active {
        left: 0;
    }

    /* Main Content */
    .main-content {
        padding: 0 12px;
        margin-top: 50px;
    }

    .topbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: #121212;
        padding: 10px 12px;
        z-index: 99;
    }

    /* Playlists */
    .spotify-playlists {
        padding: 15px 0;
    }

    .spotify-playlists h2 {
        font-size: 18px;
        margin-bottom: 15px;
        padding: 0 5px;
    }

    .list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 5px;
    }

    .list .item {
        display: flex;
        flex-direction: column;
        height: auto;
        padding: 10px;
        background: #181818;
        border-radius: 8px;
        transition: background-color 0.3s ease;
        position: relative;
    }

    .list .item:hover {
        background: #252525;
    }

    .list .item .image-container {
        width: 100%;
        height: 140px;
        margin-right: 0;
        margin-bottom: 10px;
        position: relative;
        overflow: hidden;
        border-radius: 6px;
    }

    .list .item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }

    .list .item .content {
        flex: 1;
        min-width: 0;
        padding-right: 0;
    }

    .list .item h4 {
        font-size: 14px;
        margin-bottom: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        color: #fff;
    }

    .list .item p {
        font-size: 12px;
        color: #b3b3b3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .list .item .play {
        position: absolute;
        right: 10px;
        bottom: 10px;
        margin: 0;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .list .item .play .fa {
        font-size: 16px;
        color: #fff;
        background: #1db954;
        padding: 8px;
        border-radius: 50%;
    }

    .list .item:hover .play {
        opacity: 1;
    }
}

@media screen and (max-width: 400px) {
    .list {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .list .item {
        padding: 8px;
    }

    .list .item .image-container {
        height: 120px;
        margin-bottom: 8px;
    }

    .list .item h4 {
        font-size: 13px;
        margin-bottom: 3px;
    }

    .list .item p {
        font-size: 11px;
    }

    .list .item .play .fa {
        font-size: 14px;
        padding: 6px;
    }
}

/* Small Mobile Devices */
@media screen and (max-width: 360px) {
    .container {
        grid-template-rows: 1fr 70px;
    }

    .main-content {
        padding: 0 10px;
    }

    .topbar {
        padding: 8px 10px;
    }

    .spotify-playlists {
        padding: 12px 0;
    }

    .spotify-playlists h2 {
        font-size: 16px;
        margin-bottom: 12px;
        padding: 0 3px;
    }

    .list {
        gap: 6px;
    }

    .list .item {
        padding: 6px;
    }

    .list .item .image-container {
        height: 100px;
        margin-bottom: 6px;
    }

    .list .item h4 {
        font-size: 12px;
        margin-bottom: 2px;
    }

    .list .item p {
        font-size: 10px;
    }

    .list .item .play .fa {
        font-size: 13px;
        padding: 5px;
    }
}

/* Extra Small Devices */
@media screen and (max-width: 320px) {
    .container {
        grid-template-rows: 1fr 65px;
    }

    .main-content {
        padding: 0 8px;
    }

    .topbar {
        padding: 6px 8px;
    }

    .spotify-playlists {
        padding: 10px 0;
    }

    .spotify-playlists h2 {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .list {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .list .item {
        padding: 6px;
    }

    .list .item .image-container {
        height: 100px;
        margin-bottom: 6px;
    }

    .list .item h4 {
        font-size: 12px;
        margin-bottom: 2px;
    }

    .list .item p {
        font-size: 10px;
    }

    .list .item .play .fa {
        font-size: 13px;
        padding: 5px;
    }
}

@media screen and (max-width: 375px) {
    .container {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 90px;
        min-height: 100vh;
    }

    .main-content {
        padding: 10px;
        margin-bottom: 90px;
        height: auto;
        min-height: calc(100vh - 90px);
        overflow-y: auto;
    }

    .list {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 5px 0;
        margin-bottom: 20px;
    }

    .list .item {
        min-height: 170px;
        padding: 8px;
        display: flex;
        flex-direction: column;
        background: #181818;
        border-radius: 4px;
        margin-bottom: 8px;
    }

    .spotify-playlists {
        padding: 15px 0;
        margin-bottom: 20px;
    }

    .spotify-playlists h2 {
        font-size: 18px;
        margin-bottom: 15px;
        padding: 0 5px;
    }

    .list .item img {
        width: 100%;
        aspect-ratio: 1;
        object-fit: cover;
        border-radius: 4px;
        margin-bottom: 8px;
    }

    .list .item h4 {
        color: #fff;
        font-size: 12px;
        margin-bottom: 4px;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        line-height: 1.3;
        height: auto;
        max-height: none;
        padding: 0 2px;
    }

    .list .item p {
        color: #989898;
        font-size: 10px;
        line-height: 1.3;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        height: auto;
        max-height: none;
        padding: 0 2px;
    }

    .player {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }
}

.search-container {
    padding: 20px;
}

.search-box {
    margin-bottom: 30px;
}

.search-input {
    width: 100%;
    padding: 15px;
    background: #282828;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
}

.search-input:focus {
    outline: none;
    background: #3e3e3e;
}

.search-input::placeholder {
    color: #b3b3b3;
}

.search-results h2 {
    color: #fff;
    font-size: 22px;
    margin-bottom: 20px;
}

.search-results .list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #282828;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.close:hover,
.close:focus {
    color: #fff;
}

.modal-content h2 {
    color: #fff;
    margin-bottom: 25px;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #404040;
    border-radius: 6px;
    background: #404040;
    color: #fff;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1db954;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.song-selection {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #404040;
    border-radius: 6px;
    padding: 10px;
    background: #404040;
}

.song-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #505050;
    cursor: pointer;
    transition: background 0.3s;
}

.song-item:last-child {
    border-bottom: none;
}

.song-item:hover {
    background: #505050;
}

.song-item.selected {
    background: #1db954;
    color: #000;
    border: 2px solid #1ed760;
}

.song-item.selected .song-item-info p {
    color: #000;
}

.song-item.selected::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 10px;
    top: 10px;
    color: #000;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.song-item img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    margin-right: 12px;
    object-fit: cover;
}

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

.song-item-info h4 {
    font-size: 14px;
    margin-bottom: 2px;
}

.song-item-info p {
    font-size: 12px;
    color: #b3b3b3;
}

.song-item.selected .song-item-info p {
    color: #000;
}

#create-playlist-btn {
    background: #1db954;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
    margin-top: 10px;
}

#create-playlist-btn:hover {
    background: #1ed760;
}

#create-playlist-btn:disabled {
    background: #404040;
    cursor: not-allowed;
}

/* Responsive Modal */
@media screen and (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 20px;
    }

    .song-selection {
        max-height: 250px;
    }

    .selected-songs-preview {
        max-height: 150px;
    }

    .song-item {
        padding: 8px;
    }

    .song-item img {
        width: 35px;
        height: 35px;
    }

    .selected-song-item {
        padding: 6px;
    }

    .selected-song-item img {
        width: 30px;
        height: 30px;
    }

    .selected-song-item-info h4 {
        font-size: 12px;
    }

    .selected-song-item-info p {
        font-size: 10px;
    }
}

.selected-songs-preview {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #1db954;
    border-radius: 6px;
    padding: 10px;
    background: rgba(29, 185, 84, 0.1);
    margin-top: 5px;
}

.selected-song-item {
    display: flex;
    align-items: center;
    padding: 8px;
    background: rgba(29, 185, 84, 0.2);
    border-radius: 4px;
    margin-bottom: 5px;
    position: relative;
    cursor: move;
}

.selected-song-item:last-child {
    margin-bottom: 0;
}

.drag-handle {
    color: #b3b3b3;
    margin-right: 8px;
    cursor: grab;
    font-size: 12px;
}

.drag-handle:active {
    cursor: grabbing;
}

.selected-song-item:hover .drag-handle {
    color: #fff;
}

.selected-song-item img {
    width: 35px;
    height: 35px;
    border-radius: 4px;
    margin-right: 10px;
    object-fit: cover;
}

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

.selected-song-item-info h4 {
    font-size: 13px;
    margin-bottom: 2px;
    color: #fff;
}

.selected-song-item-info p {
    font-size: 11px;
    color: #b3b3b3;
}

.remove-song-btn {
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.remove-song-btn:hover {
    background: #c0392b;
}

.no-songs-selected {
    text-align: center;
    padding: 20px;
    color: #b3b3b3;
    font-style: italic;
}

/* Playlist Detail Modal Styles */
.playlist-detail-content {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.playlist-detail-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #404040;
}

.playlist-info {
    display: flex;
    gap: 20px;
    flex: 1;
}

#playlist-detail-cover {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
}

.playlist-detail-text h2 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 24px;
}

.playlist-detail-text p {
    color: #b3b3b3;
    margin-bottom: 5px;
    font-size: 14px;
}

.playlist-detail-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.play-btn,
.add-songs-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.play-btn {
    background: #1db954;
    color: #fff;
}

.play-btn:hover {
    background: #1ed760;
}

.add-songs-btn {
    background: #404040;
    color: #fff;
}

.add-songs-btn:hover {
    background: #505050;
}

.playlist-songs-section h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 18px;
}

.playlist-songs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.playlist-song-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #404040;
    border-radius: 6px;
    transition: background 0.3s;
}

.playlist-song-item:hover {
    background: #505050;
}

.playlist-song-item img {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    margin-right: 15px;
    object-fit: cover;
}

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

.playlist-song-info h4 {
    color: #fff;
    margin-bottom: 5px;
    font-size: 16px;
}

.playlist-song-info p {
    color: #b3b3b3;
    font-size: 14px;
}

.playlist-song-actions {
    display: flex;
    gap: 8px;
}

.playlist-song-actions button {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
}

.play-song-btn {
    background: #1db954;
    color: #fff;
}

.play-song-btn:hover {
    background: #1ed760;
}

.remove-song-btn {
    background: #e74c3c;
    color: #fff;
}

.remove-song-btn:hover {
    background: #c0392b;
}

/* Nested Modal Styles */
.nested-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.nested-modal-content {
    background: #282828;
    margin: 5% auto;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.nested-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #404040;
}

.nested-modal-header h3 {
    color: #fff;
    margin: 0;
}

.add-songs-search {
    margin-bottom: 20px;
}

.add-songs-search input {
    width: 100%;
    padding: 12px;
    border: 1px solid #404040;
    border-radius: 6px;
    background: #404040;
    color: #fff;
    font-size: 14px;
}

.add-songs-search input:focus {
    outline: none;
    border-color: #1db954;
}

.add-songs-selection {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #404040;
    border-radius: 6px;
    padding: 10px;
    background: #404040;
    margin-bottom: 20px;
}

.add-songs-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.add-songs-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
}

#add-selected-songs-btn {
    background: #1db954;
    color: #fff;
}

#add-selected-songs-btn:hover:not(:disabled) {
    background: #1ed760;
}

#add-selected-songs-btn:disabled {
    background: #404040;
    cursor: not-allowed;
}

#cancel-add-songs-btn {
    background: #404040;
    color: #fff;
}

#cancel-add-songs-btn:hover {
    background: #505050;
}

/* Responsive Design for Playlist Detail */
@media screen and (max-width: 768px) {
    .playlist-detail-header {
        flex-direction: column;
        gap: 15px;
    }

    .playlist-info {
        flex-direction: column;
        text-align: center;
    }

    #playlist-detail-cover {
        width: 100px;
        height: 100px;
        margin: 0 auto;
    }

    .playlist-detail-actions {
        flex-direction: row;
        justify-content: center;
    }

    .playlist-song-item {
        padding: 10px;
    }

    .playlist-song-item img {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }

    .playlist-song-info h4 {
        font-size: 14px;
    }

    .playlist-song-info p {
        font-size: 12px;
    }

    .nested-modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 20px;
    }
}