* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

*::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

body {
    margin: 0;
    font-family: sans-serif;
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.sidebar {
    width: 270px;
    flex-shrink: 0;
    background: #000000;
    color: white;
    display: flex;
    flex-direction: column;
    padding: 20px 10px 50px 10px;
    box-sizing: border-box;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    padding: 0 10px;
}

.sidebar-header img {
    width: 50px;
    height: auto;
    object-fit: contain;
}

.sidebar-header h1 {
    margin: 0;
    font-size: 24px;
}

.user-box {
    margin-bottom: 14px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.user-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    object-fit: cover;
    background: #282828;
}

#user-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar h1 {
    font-size: 30px;
    margin-bottom: 8px;
}

.sidebar button {
    background: transparent;
    color: #b3b3b3;
    padding: 10px 10px;
    margin: 2px 0;
    height: auto;
    font-size: 14px;
    font-weight: bold;
    text-align: left;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

.sidebar button:hover {
    color: #ffffff;
}

.track-info-sidebar {
    margin-top: auto;
    display: none;
    align-items: center;
    border-top: 1px solid #282828;
    padding-top: 10px;
    flex: 1;
    padding-bottom: 50px;
}

.track-info-sidebar h2 {
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
    margin: 0 0 2px 0;
    word-break: break-word;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-info-sidebar p {
    font-size: 12px;
    color: #b3b3b3;
    margin: 0;
    word-break: break-word;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main {
    flex: 1;
    background: #121212;
    color: white;
    display: flex;
    flex-direction: column;
    padding: 20px;
    padding-bottom: 90px;
    overflow-y: auto;
}

.search-box {
    position: relative;
    margin-bottom: 14px;
}

.main-notice {
    margin: 0 0 12px 0;
    padding-left: 10px;
    border-left: 3px solid #1db954;
    font-size: 13px;
    color: #b3b3b3;
}
.email-notice {
    margin: 0 0 12px 0;
    padding-left: 10px;
    border-left: 3px solid #ff0000;
    font-size: 13px;
    color: #b3b3b3;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.email-notice[hidden] {
    display: none;
}
.email-notice-btns {
    display: inline-flex;
    gap: 6px;
}
.email-notice button {
    background: #222222;
    color: #b3b3b3;
    border: 1px solid #4a4a4a;
    padding: 3px 9px;
    font-size: 12px;
    cursor: pointer;
}
.email-notice button:hover {
    color: white;
    border-color: #1db954;
}
.main-notice a {
    color: #1db954;
    text-decoration: none;
}

.main-notice a:hover {
    text-decoration: underline;
}

.search-box input {
    box-sizing: border-box;
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #4a4a4a;
    background: #222222;
    color: white;
    font-size: 14px;
}

.search-box input::placeholder {
    color: #666666;
}

.tracks li:hover {
    border-color: #4a4a4a;
}

.play-btn {
    background: #1db954;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 10px;
    cursor: pointer;
    margin-left: 6px;
}

.play-btn:hover {
    background: #148a3d;
}

.play-btn.active {
    background: #696969;
}

.playlist-badge {
    font-size: 10px;
    color: #888888;
}

.playlists-section {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #282828;
}

.playlists-section h3 {
    font-size: 14px;
    margin: 0 0 8px 0;
    color: #aaaaaa;
}


.sidebar {
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #3d3d3d transparent;
}

.sidebar::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    display: block;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #3d3d3d;
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.side-sec {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #282828;
}

[data-collapsible] .sec-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    color: #aaaaaa;
    font-family: inherit;
    font-size: 14px;
    font-weight: bold;
    text-align: left;
    cursor: pointer;
}

.side-sec > .sec-head {
    width: 100%;
    margin: 0 0 6px 0;
    padding: 4px 10px;
}

[data-collapsible] .sec-head:hover,
[data-collapsible] .pq-head .sec-head:hover {
    color: #ffffff;
}

[data-collapsible] .sec-head::after {
    content: "\25BE";
    margin-left: 8px;
    font-size: 11px;
    color: #888888;
    transition: transform 0.15s ease;
}

[data-collapsible].collapsed .sec-head::after {
    transform: rotate(-90deg);
}

[data-collapsible].collapsed > .sec-body,
[data-collapsible].collapsed .pq-list {
    display: none;
}


.queue-section .pq-panel {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.create-playlist-box {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.create-playlist-box .osb-input {
    flex: 1;
}

.create-playlist-box .osb-btn {
    flex-shrink: 0;
}

#playlists-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 260px;
    overflow-y: auto;
}

#playlists-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-bottom: 1px solid #282828;
    font-size: 13px;
    color: white;
}

#playlists-list li .pl-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: white;
}

#playlists-list li .pl-count {
    color: #888888;
    font-size: 11px;
    white-space: nowrap;
}

#playlists-list li .pl-empty {
    color: #666666;
    font-size: 12px;
}

.tracks li.playing {
    border-color: #1db954;
}

.tracks li.empty {
    grid-column: 1 / -1;
    background: transparent;
    border: none;
    cursor: default;
    color: #666666;
}

.tracks li:focus-visible {
    outline: 2px solid #1db954;
}

.play-btn {
    background: #1db954;
    color: white;
    border: none;
    padding: 4px 8px;
    font-size: 10px;
    cursor: pointer;
    margin-left: 6px;
}

.play-btn:hover {
    background: #148a3d;
}

.play-btn.active {
    background: #696969;
}

.playlist-badge {
    font-size: 10px;
    color: #888888;
}

.track-title {
    font-weight: bold;
    font-size: 16px;
}

.track-artist {
    font-size: 14px;
    color: #b3b3b3;
}

.track-streams {
    font-size: 12px;
    color: #b3b3b3;
    font-weight: 500;
    margin-top: 2px;
}

.download-btn {
    text-decoration: none;
    cursor: pointer;
    padding: 8px;
    user-select: none;
    color: #b3b3b3;
    font-size: 14px;
}

.download-btn:hover {
    color: #ffffff;
}

.player-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #181818;
    display: flex;
    align-items: center;
    z-index: 100;
}


.player {
    background-color: transparent;
    color: #ffffff;
    font-family: sans-serif;
    padding: 0;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    box-sizing: border-box;
}

.controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

#seek-bar {
    flex-grow: 1;
    accent-color: #ffffff;
    background: #4a4a4a;
    height: 4px;
    cursor: pointer;
}

#seek-bar:hover {
    accent-color: #1db954;
}

button {
    background: transparent;
    border: none;
    color: #b3b3b3;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.2s;
}

button:hover {
    color: #ffffff;
}

.currently-playing {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-top: 1px solid #282828;
    margin-top: auto;
}

.currently-playing img {
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    object-fit: cover;
    background-color: #282828;
    flex-shrink: 0;
}

.currently-playing-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.currently-playing-text h2 {
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
    margin: 0 0 4px 0;
    word-break: break-word;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.currently-playing-text p {
    font-size: 12px;
    color: #b3b3b3;
    margin: 0;
    word-break: break-word;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-detail .cover-art {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 0;
}

.track-detail .cover-art img {
    width: 100%;
    max-width: 260px;
    height: auto;
    max-height: 260px;
    object-fit: cover;
    display: block;
}

.currently-playing:has(#sidebar-cover:not([src])) {
    display: none;
}

.track-detail .cover-art:has(#cover:not([src])) {
    display: none;
}

.sidebar .currently-playing {
    width: 100%;
    max-height: 70px;
    box-sizing: border-box;
    overflow: hidden;
}

.sidebar .currently-playing #sidebar-cover {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
    max-width: 50px !important;
    max-height: 50px !important;
    flex: 0 0 50px;
    object-fit: cover;
    display: block;
}

.sidebar .currently-playing-text {
    overflow: hidden;
}

.tracks .download-btn {
    display: none !important;
}

.main {
    min-width: 0;
    scrollbar-gutter: auto;
}

.shelf {
    flex-shrink: 0;
    margin-bottom: 26px;
}

.shelf h2 {
    font-size: 18px;
    margin: 4px 0 10px 0;
}

#playlists-list li {
    flex-wrap: wrap;
}

.pl-actions {
    display: flex;
    gap: 6px;
    width: 100%;
}

.pl-actions .osb-btn {
    flex: 1;
}

.pl-actions .osb-btn.danger {
    flex: 0 0 auto;
}

.pl-public-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #aaaaaa;
    cursor: pointer;
}

.pl-public-toggle input {
    accent-color: #1db954;
    cursor: pointer;
}

.shelf-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.shelf-head h2 {
    flex: 1;
    margin: 0;
}

.shelf-head .shelf-select {
    flex: 0 1 auto;
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    font-family: inherit;
    color: white;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 2px 6px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.shelf-head .shelf-select:hover,
.shelf-head .shelf-select:focus {
    border-color: #1db954;
    background: #1a1a1a;
    outline: none;
}

.shelf-head .shelf-select option {
    background: #121212;
    color: white;
}

.shelf-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 14px;
    color: #aaaaaa;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.shelf-toggle input {
    accent-color: #1db954;
    cursor: pointer;
}

.shelf-nav {
    display: flex;
    gap: 6px;
    margin-left: auto;
}

.shelf-nav .osb-btn.sm {
    width: 28px;
    padding: 0;
    font-size: 16px;
}

.tracks {
    list-style: none;
    margin: 0;
    padding: 2px;
    gap: 10px;
}

#top-tracks,
#new-tracks,
#public-playlists,
#albums,
#artist-tracks {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

#top-tracks::-webkit-scrollbar,
#new-tracks::-webkit-scrollbar,
#public-playlists::-webkit-scrollbar,
#albums::-webkit-scrollbar,
#artist-tracks::-webkit-scrollbar {
    display: none;
}

#top-tracks,
#public-playlists,
#albums,
#artist-tracks {
    display: flex;
}

#new-tracks {
    display: grid;
    grid-template-columns: none;
    grid-template-rows: repeat(3, auto);
    grid-auto-flow: column;
    grid-auto-columns: 240px;
}

#tracks {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.tracks li {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: #181818;
    border: 1px solid #282828;
    box-sizing: border-box;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.tracks li:hover {
    background: #202020;
}

#top-tracks li:not(.empty),
#new-tracks li:not(.empty),
#public-playlists li:not(.empty),
#albums li:not(.empty),
#artist-tracks li:not(.empty) {
    width: 240px;
    flex-shrink: 0;
}

.tracks li.empty {
    grid-column: 1 / -1;
    padding: 8px 0;
    background: transparent;
    border: none;
    cursor: default;
    color: #666666;
}

.tracks li .cover {
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

.track-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
    gap: 2px;
    text-align: left;
}

.track-info > div {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-info .title {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.25;
    color: #ffffff;
}

.track-info .artist {
    font-size: 0.76rem;
    color: #b3b3b3;
}


.u-tag {
    display: inline-block;
    background: #e0a92c;
    color: #1a1a1a;
    font-size: 10px;
    font-weight: bold;
    line-height: 1.5;
    border-radius: 3px;
    padding: 0 4px;
    margin-right: 6px;
    vertical-align: 1px;
}

.e-tag {
    display: inline-block;
    background: #7a7a7a;
    color: #ffffff;
    font-size: 10px;
    font-weight: bold;
    line-height: 1.5;
    border-radius: 3px;
    padding: 0 4px;
    margin-right: 6px;
    vertical-align: 1px;
}

.track-info .uploader {
    font-size: 0.72rem;
    color: #888888;
}

.track-info .streams {
    font-size: 0.7rem;
    color: #777777;
}


.search-group h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #b3b3b3;
  margin: 16px 0 8px;
}

.search-group:first-of-type h3 {
  margin-top: 4px;
}

.speed-link {
  color: #3ea6ff;
  cursor: pointer;
  text-decoration: none;
}

.speed-link:hover {
  text-decoration: underline;
}

.speed-control input[type="range"] {
    accent-color: #1db954;
}

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

.tracks li.playing .title {
    color: #1db954;
}
.container::-webkit-scrollbar {
    display: none;
}
.container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
