::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #121212; 
}
 
::-webkit-scrollbar-thumb {
    background: #333; 
    border-radius: 6px;
    border: 3px solid #121212;
}

::-webkit-scrollbar-thumb:hover {
    background: #555; 
}

html, body {
	padding: 0;
	margin: 0;
	height: 100%;
}

*:focus {
    outline: none;
}

* {
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	color: #fff;
    letter-spacing: 1px;
}

body {
    background-color: #181818;
    font-size: 14px;
}

#nowPlayingBarContainer {
	width: 100%;
    background-color: #282828;
    bottom: 0;
    position: fixed;
    z-index: 1000;
}

#nowPlayingBar {
	display: flex;
    height: 90px;
    padding: 0 16px;
    box-sizing: border-box;
    align-items: center;
}

#nowPlayingLeft {
    width: 30%;
    display: flex;
    align-items: center;
}

#nowPlayingLeft .playerControls {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

#nowPlayingLeft .buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

#nowPlayingLeft .timeControls {
    color: #b3b3b3;
    font-size: 14px;
    margin-left: 10px;
    display: flex;
    gap: 5px;
    align-items: center;
}

#nowPlayingCenter {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0; /* Permite que o container encolha se necessário */
}

#nowPlayingCenter .content {
    display: flex;
    align-items: center;
    max-width: 100%;
    gap: 15px;
    background-color: #222;
    padding: 8px 15px;
    border-radius: 8px;
}

#nowPlayingCenter .albumArtwork {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
}

#nowPlayingCenter .trackInfo {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-width: 300px;
}

#nowPlayingCenter .trackName {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#nowPlayingCenter .trackDetails {
    font-size: 12px;
    color: #b3b3b3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

#nowPlayingCenter .extraButtons {
    display: flex;
    gap: 12px;
}

#nowPlayingRight {
    width: 30%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

#nowPlayingRight .volumeBar {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 120px;
}

#nowPlayingRight .volumeBar .progressBar {
    flex: 1;
}

#nowPlayingRight .rightButtons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.controlButton.pause {
    display: none;
}

.controlButton {
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: #b3b3b3;
    transition: all 0.2s;
    font-size: 16px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.controlButton:hover {
    color: #fff;
    transform: scale(1.1);
}

.controlButton.play, .controlButton.pause {
    background-color: #fff;
    color: #000;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 16px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.controlButton.play {
    padding-left: 3px; /* Compensação ótica para o triângulo do play */
}

.controlButton.pause {
    padding-left: 0;
}

.controlButton.play:hover, .controlButton.pause:hover {
    background-color: #1db954;
    color: #fff;
}

.controlButton.expand {
    background-color: #333;
    border-radius: 4px;
    width: 30px;
    height: 30px;
}

.playbackBar.topBar {
    height: 4px;
    width: 100%;
    position: absolute;
    top: 0;
    cursor: pointer;
}

.playbackBar.topBar .progressBar {
    height: 100%;
    padding: 0;
}

.playbackBar.topBar .progressBarBg {
    height: 100%;
    border-radius: 0;
}

.playbackBar.topBar .progress {
    height: 100%;
}

#nowPlayingRight .volumeBar {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 150px;
}

#nowPlayingRight .volumeBar .progressBar {
    flex: 1;
}

#nowPlayingRight .rightButtons {
    display: flex;
    gap: 10px;
}

.playbackBar.topBar {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
}

.playbackBar.topBar .progressBar {
    height: 100%;
    padding: 0;
}

.playbackBar.topBar .progressBarBg {
    height: 100%;
    background-color: #404040;
}

.playbackBar.topBar .progress {
    height: 100%;
    background-color: #ff0000;
}

.controlButton i {
    font-size: 18px;
    color: #b3b3b3;
    transition: color 0.3s;
}

.controlButton.play i, .controlButton.pause i {
    color: inherit;
    font-size: 16px;
}

.controlButton:hover i {
    color: #fff;
}

.controlButton.like i.fa-solid {
    color: #1db954;
}

.controlButton img {
    width: 16px;
    height: 16px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.controlButton:hover img {
    opacity: 1;
}

.controlButton.play img,
.controlButton.pause img {
    width: 24px;
    height: 24px;
}

.controlButton:hover {
	cursor: pointer;
}
.repeat {
    margin-right: 10px;
}
.progressTime {
	color: #a0a0a0;
    font-size: 14px;
    text-align: center;
    min-width: 35px;
}

.playbackBar {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.playbackBar.topBar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 100;
}

.playbackBar.topBar .progressBar {
    margin: 0;
    height: 4px;
    width: 100%;
    max-width: none;
}

.playbackBar.topBar .progressBarBg {
    height: 4px;
    border-radius: 0;
    background-color: rgba(255, 255, 255, 0.2);
}

.playbackBar.topBar .progress {
    height: 4px;
    border-radius: 0;
    background-color: #ff0000; /* Vermelho YouTube Music */
}

.timeControls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.playbackBar .progressBar {
    margin: 0 10px;
    width: 100%;
    max-width: 600px;
}

.progressBar {
	width: 100%;
    height: 12px;
    display: inline-flex;
    cursor: pointer;
}

.progressBarBg {
	background-color: #404040;
    height: 4px;
    width: 100%;
    border-radius: 2px;
}

.progress {
	background-color: #a0a0a0;
    height: 4px;
    width: 0;
    border-radius: 2px;
}


#nowPlayingLeft .albumArtwork {
	height: 100%;
    max-width: 57px;
    margin-right: 15px;
    float: left;
    background-size: cover;
}

#nowPlayingLeft .trackInfo {
	display: table;
}

#nowPlayingLeft .trackInfo .trackName {
	margin: 6px 0;
    display: inline-block;
    width: 100%;
}

#nowPlayingLeft .trackInfo .artistName span {
	font-size: 12px;
    color: #a0a0a0;
}

#trackViews span {
    font-size: 11px;
    color: #a0a0a0;
}


#topContainer {
	min-height: 100%;
	width: 100%;
}

.user-letter-avatar {
    width: 60px;
    height: 60px;
    background-color: #1db954; /* Verde ZoneMusic */
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
}

.user-profile-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    cursor: pointer;
}

.user-profile-container .username {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.user-avatar-wrapper {
    margin-bottom: 5px;
}

#navBarContainer {
	background-color: #000;
    width: 220px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 101;
    overflow-y: auto;
}

.navBar {
    padding: 25px;
    display: flex;
    flex-direction: column;
    -ms-flex-direction: column;
}

.logo {
    margin-bottom: 15px;
}

.logo img {
    width: 40px;
    margin-bottom: 5px;
}

.navBar .group {
    border-top: 1px solid #a0a0a0;
    padding: 10px 0;
}

.navItem {
    padding: 10px 0;
    font-size: 14px;
    font-weight: 700;
    display: block;
    letter-spacing: 1px;
    position: relative;
}

.navItemLink {
    color: #a0a0a0;
    text-decoration: none;
}

.navItemLink:hover {
    color: #ffffff;
}

.navItemLink .icon {

    right: 0;
    top: 6px;
    width: 25px;
}

#mainViewContainer {
    margin-left: 220px;
    padding-bottom: 90px;
    width: calc(100% - 220px);
}

#mainContent {
    padding: 20px 40px;
    animation: contentFadeIn 0.5s ease-out;
}

@keyframes contentFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.pageHeadingBig {
    padding: 20px;
    text-align: center;
}

.gridViewContainer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    justify-content: center;
}

.gridViewItem {
    width: 100%;
    margin-bottom: 20px;
}

.gridViewItem img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 5px;
}

.gridViewInfo {
    font-weight: 300;
    text-align: center;
    padding: 5px 0;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.gridViewItem a {
    text-decoration: none;
}

.entityInfo {
    padding: 40px 0 10px 0;
    display: inline-block;
    width: 100%;
}

.entityInfo .leftSection {
    width: 250px;
    float: left;
}

.entityInfo .leftSection img {
    width: 100%;
}

.entityInfo .rightSection {
    overflow: hidden;
    padding: 5px 10px 5px 40px;
    box-sizing: border-box;
}

.entityInfo .rightSection h2 {
    margin-top: 0px;
}

.entityInfo .rightSection p {
    color: #939393;
    font-weight: 200;
}

.tracklist {
    padding: 0;
}

.tracklistRow {
    padding: 10px 15px;
    list-style: none;
    display: flex;
    align-items: center;
    border-radius: 6px;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.tracklistRow:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.tracklistRow .trackCount {
    width: 40px;
    position: relative;
    text-align: center;
    flex-shrink: 0;
}

.tracklistRow .trackCount img {
    width: 20px;
    visibility: hidden;
    position: absolute;
    cursor: pointer;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.tracklistRow:hover .trackCount img {
    visibility: visible;
}

.tracklistRow .trackCount span {
    visibility: visible;
    color: #b3b3b3;
    font-size: 14px;
}

.tracklistRow:hover .trackCount span {
    visibility: hidden;
}

.tracklistRow .trackInfo {
    flex: 1;
    margin-left: 20px;
}

.tracklistRow .trackInfo span {
    display: block;
}

.tracklistRow .trackInfo .trackName {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.tracklistRow .trackInfo .artistName {
    color: #b3b3b3;
    font-size: 14px;
}

.tracklistRow .trackOptions {
    width: 100px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    flex-shrink: 0;
}

.tracklistRow .trackOptions img {
    width: 15px;
    visibility: hidden;
    cursor: pointer;
    opacity: 0.7;
}

.tracklistRow:hover .trackOptions img {
    visibility: visible;
}

.tracklistRow .trackDuration {
    width: 60px;
    text-align: right;
    flex-shrink: 0;
    color: #b3b3b3;
    font-size: 14px;
}

.tracklistRow.active .trackName {
    color: #1db954;
}

.artistInfo {
    text-align: center;
}

.button {
    color: #fff;
    cursor: pointer;
    margin-bottom: 10px;
    background-color: transparent;
    font-weight: 500;
    letter-spacing: 2px;
    border: 2px solid #fff;
    border-radius: 500px;
    padding: 15px;
    min-width: 130px;
}

.button.green {
    background-color: #2ebd59;
    border-color: #2ebd59;
}

.borderBottom {
    border-bottom: 1px solid #939393;
    margin-bottom: 20px;
}

.tracklistContainer h2,
.gridViewContainer h2,
.artistsContainer h2 {
    text-align: center;
}

[role="link"] {
    cursor: pointer;
}

.searchContainer {
    background-color: #242424;
    padding: 20px 28px;
}

.searchContainer h4 {
    margin: 0;
    font-weight: 300;
}

.searchContainer .searchInput {
    width: 100%;
    background-color: transparent;
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: 62px;
    letter-spacing: 2px;
}

input:focus {
    outline: none;
}

.searchResultRow {
    padding: 15px 10px;
    display: flex;
    align-items: center;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.searchResultRow:hover {
    background-color: #282828;
}

.searchResultRow .artistPic {
    margin-right: 20px;
    display: flex;
}

.searchResultRow .artistName span {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

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

.noResults {
    margin: 15px;
    display: block;
}

.buttonItems .button {
    display: block;
    margin: 0 auto 20px auto;
}

.playlistsContainer {
    padding: 10px 0;
}


.playlistImage {
    border: 3px solid #282828;
    padding: 10px;
}

.optionsMenu {
    position: fixed;
    background-color: rgba(40, 40, 40, 0.95);
    backdrop-filter: blur(10px);
    width: 220px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    z-index: 2000;
    display: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    padding: 5px 0;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.optionsMenu .item {
    width: 100%;
    padding: 10px 20px;
    box-sizing: border-box;
    font-weight: 500;
    color: #e0e0e0;
    cursor: pointer;
    height: auto;
    background-color: transparent;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
}

.optionsMenu .item:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.optionsMenu select {
    border: none;
    background-color: transparent;
    color: inherit;
    width: 100%;
    outline: none;
    cursor: pointer;
}

.optionsMenu select option {
    background-color: #282828;
    color: #fff;
}

.userInfo h1 {
    text-align: center;
}

.userDetails {
    padding: 20px;
}

.userDetails .container h2 {
    text-align: center;
}

.userDetails .container input[type="text"],
.userDetails .container input[type="password"],
.userDetails .container .button {
    display: block;
    margin: 16px auto;
}

.userDetails .container input[type="text"],
.userDetails .container input[type="password"] {
    height: 50px;
    width: 100%;
    background: #1f1f1f;
    border: none;
    font-size: 18px;
    font-weight: 300;
    padding: 0 20px;
}

.userDetails .container .message {
    color: #2ebd59;
    font-weight: 300;
}

/* Responsividade para a Navbar Fixa e Player */
@media (max-width: 992px) {
    #navBarContainer {
        width: 100%;
        height: 60px;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000;
        background-color: #000;
        overflow-y: visible; /* Permitir o toggle */
        transition: height 0.3s ease;
    }

    #navBarContainer.active {
        height: 100vh;
        height: 100dvh; /* Dynamic viewport height para mobile browsers */
        overflow-y: auto !important;
        padding-bottom: 0; 
        -webkit-overflow-scrolling: touch; /* Rolagem suave no iOS */
        z-index: 2000;
    }

    .nav-toggle {
        display: block !important;
        z-index: 2001;
    }

    .navBar {
        display: none; /* Escondido por padrão no mobile */
        padding: 60px 25px 180px; /* Padding inferior generoso para os itens não ficarem sob o player */
        flex-direction: column;
        height: auto;
        min-height: 101%; /* Força o scroll se necessário */
    }

    #navBarContainer.active .navBar {
        display: flex;
    }

    .navBar .group {
        border-top: 1px solid #333;
        padding: 15px 0;
    }

    #mainViewContainer {
        margin-left: 0;
        margin-top: 60px;
        width: 100%;
    }

    /* Ajustes no Player para Tablets */
    #nowPlayingLeft {
        width: 40%;
    }
    
    #nowPlayingCenter {
        width: 60%;
    }

    #nowPlayingRight {
        display: none; /* Esconde volume/opções extras no mobile médio */
    }
}

@media (max-width: 768px) {
    .entityInfo {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px !important;
    }

    .entityInfo .leftSection {
        width: 100%;
        max-width: 200px;
        float: none;
        margin-bottom: 20px;
    }

    .entityInfo .rightSection {
        width: 100%;
        padding: 0;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .entityInfo .rightSection h2 {
        font-size: 32px !important;
    }

    .headerButtons {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Player compacto para Mobile */
    #nowPlayingBar {
        height: auto;
        padding: 10px;
        flex-direction: column;
        gap: 10px;
    }

    #nowPlayingLeft {
        width: 100%;
        justify-content: center;
    }

    #nowPlayingCenter {
        width: 100%;
    }

    #nowPlayingCenter .content {
        width: 100%;
        justify-content: space-between;
    }

    .playbackBar.topBar {
        position: relative;
        margin-bottom: 5px;
    }

    #mainViewContainer {
        padding-bottom: 150px; /* Mais espaço para o player verticalizado */
    }

    /* Esconder o que não cabe no mobile */
    .trackDuration, .trackCount .trackNumber {
        display: none;
    }

    .tracklistRow {
        gap: 10px;
    }

    .trackInfo {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .gridViewContainer {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
        gap: 15px !important;
        justify-content: center;
    }

    .pageHeadingBig {
        font-size: 24px;
    }
}


.swal2-popup .swal2-input,
.swal2-popup .swal2-select,
.swal2-popup .swal2-file {
    background-color: #282828 !important;
    color: #fff !important;
    border: 1px solid #333 !important;
}

.swal2-popup .swal2-input::placeholder {
    color: #666 !important;
}

.swal2-popup .swal2-input:focus,
.swal2-popup .swal2-select:focus,
.swal2-popup .swal2-file:focus {
    border-color: #1db954 !important;
    box-shadow: 0 0 0 2px rgba(29, 185, 84, 0.2) !important;
}

.commentRow:last-child {
    border-bottom: none !important;
}

#commentInput:focus {
    border-bottom: 2px solid #1db954 !important;
}

.deleteComment:hover {
    text-decoration: underline;
}
