:root {
	/* ─── LAYOUT ─────────────────────── */
	--header-height: 64px;
	--footer-height: 95px;
	--sidebar-width: 420px;

	/* ─── LIMITES DA SIDEBAR ─────────── */
	--sidebar-min: 260px;
	--sidebar-max: 420px;

	/* ─── CORES ──────────────────────── */
	--bg-header: #000000;
	--bg-footer: #000000;
	--bg-sidebar: #000000;
	--bg-main: #000000;
	--line-color: #2f2f2f;
}

/* ─── RESET SIMPLES ───────────────── */
:where(*, *::before, *::after) {
	box-sizing: border-box;
	margin: 0;
}

body, input, button, textarea, select {
  font-family: "DM Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
}

body {
  background: black;
  user-select: none;
  -webkit-user-select: none; /* Chrome/Safari */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* Internet Explorer/Edge */
}



/* ─── HEADER ──────────────────────── */
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: var(--header-height);
	background: var(--bg-header);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 8px;
	z-index: 1000;
	gap: 6px;
}

/* Logo */
.logo img {
	height: 48px;
	width: 48px;
	object-fit: contain;
}

/* Parte central do header */
.header-center {
	display: flex;
	align-items: center;
	flex: 1;
	max-width: 560px;
	gap: 8px;
	margin: 0 auto;
}

/* Ícone da casinha */
.home-button {
	background: transparent;
	border: none;
	font-size: 18px;
	color: #fff;
	cursor: pointer;
}


/* Botão genérico arredondado */
.rounded-button {
	background: #fff;
	color: #000;
	border: none;
	border-radius: 9999px;
	padding: 14px 20px;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	transition: background 0.2s ease;
}

.rounded-button:hover {
	background: #e5e5e5;
}

/* Botão só com ícone (home) */
.icon-button {
	background: #1f1f1f;
	color: #fff;
	border: none;
	border-radius: 9999px;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.2s ease;
}

.icon-button:hover {
	background: #3d3d3d;
}

.icon-button svg {
	width: 20px;
	height: 20px;
	stroke-width: 1.5;
}

/* Campo de busca com cantos arredondados */
.search-input {
	width: 100%;
	padding: 14px 16px 14px 40px;
	border-radius: 9999px;
	border: none;
	font-size: 16px;
	background: #1f1f1f;
	color: #fff;
}

.search-input::placeholder {
	color: #aaa;
}

/* Wrapper com posição relativa para o ícone */
.search-wrapper {
	position: relative;
	flex: 1;
}

/* Ícone de busca */
.search-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: #aaa;
	width: 18px;
	height: 18px;
	pointer-events: none;
}

.search-input:focus + .search-icon {
	color: #fff;
}

.search-input:focus {
  outline: none; /* Remove o contorno padrão do navegador */
  box-shadow: inset 0 0 0 1.5px #ffffff; /* Borda branca interna */
}















/* ─── FOOTER / PLAYER ─────────────── */

/* VARIÁVEL PARA ALTURA DO PLAYER */
:root {
  --player-height: 92px;
}

/* FOOTER / PLAYER */
.player {
  position: fixed;

  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--player-height);
  background: var(--bg-footer);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.5);
  z-index: 1000;
  gap: 16px;
}

/* LEFT */
.player-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
}

.player-cover {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 4px;
}

.player-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 240px; /* ajuste conforme seu layout */
  max-width: 240px; /* ajuste conforme seu layout */
}

.song-title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  min-width: 0;
  flex: 1;
}


.song-artist {
  font-size: 12px;
  color: #aaa;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* CENTER */
.player-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.player-center button {
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.1s;
}

.player-center button:hover {
  transform: scale(1.1);
}

.player-center i {
  width: 28px;
  height: 28px;
  stroke-width: 1.5;
}




.time {
  font-size: 11px;
  color: #ccc;
  width: 32px;
  text-align: center;
}

/* RIGHT */
.player-right {
  display: flex;
  justify-content: flex-end; /* move itens para a direita */
  align-items: center;       /* alinha verticalmente ao centro */
  gap: 8px;
  width: 240px;
  min-width: 240px;
}


.volume-bar {
  width: 80px;
  cursor: pointer;
}



/* container dos controles */
.player-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* estilo comum aos botões */
.player-controls button {
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s;
}
.player-controls button:hover {
  transform: scale(1.1);
}

/* tamanho dos ícones */
.player-controls i {
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
}

/* barra de progresso abaixo */
.player-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 50%;
  margin-top: 8px;
  accent-color: #efe518;
}
.player-progress .time {
  font-size: 12px;
  color: #ccc;
  width: 40px;
  text-align: center;
}
.progress-bar {
  flex: 1;
  cursor: pointer;
}

.player-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Slider horizontal simples */
.volume-bar {
  width: 100px;
  cursor: pointer;
  accent-color: #efe518; /* ou a cor que preferir */
}

/* Ícone de volume */
.btn-volume {
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: transform 0.1s;
  color: #FFF;
}

.btn-volume:hover {
  transform: scale(1.1);
}

.btn-volume i {
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
}









/* ─── SIDEBAR ─────────────────────── */
.sidebar {
	position: fixed;
	top: var(--header-height);
	left: 0;
	width: var(--sidebar-width);
	min-width: var(--sidebar-min);
	max-width: var(--sidebar-max);
	height: calc(100vh - var(--header-height) - var(--footer-height));
	background: var(--bg-sidebar);
	padding: 0 4px 0 8px;
	z-index: 999;
}

/* ─── GRIP / RESIZE HANDLE ────────── */
.resize-handle {
  position: fixed;
  top: var(--header-height);
  left: calc(var(--sidebar-width) - 4px);
  width: 8px;
  height: calc(100vh - var(--header-height) - var(--footer-height));
  cursor: grab;
  z-index: 9999;
  background: transparent;
}

.resize-handle:active {
	cursor: grabbing;
}

.resize-handle::before {
	content: "";
	top: 0.5%;
	position: absolute;
	left: 3.5px;
	width: 1px;
	height: 99%;
	background: var(--line-color);
	opacity: 0;
	transition: opacity 0.2s;
}

.resize-handle:hover::before {
	opacity: 1;
}


.menu-lateral{
	background-color: #121212;
	width: 100%;
	height: 100%;
	border-radius: 8px;
}

/* Container horizontal */
.top-menu-lateral {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 12px;
  gap: 12px;
  color: #fff;
  font-size: 16px;
}


/* Título + ícone */
.menu-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 0;
}

/* Agrupamento dos botões */
.menu-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Estilo de fallback para icone playlist (antes era <i>) */
.playlist-icon {
  display: none;
  background: #ffffff10;
  border: none;
  border-radius: 9999px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
}

.playlist-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.playlist-label {
  display: inline;
}

/* Corrigir botão + ficar redondo quando estiver sozinho */
.icon-text-button {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff10;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 9999px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
  min-width: 40px;
  height: 40px;
}

.icon-text-button svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}
.icon-text-button.only-icon {
  padding: 0;
  width: 40px;
  justify-content: center;
}
/* Botão circular reutilizável para ícones */
.icon-button-only {
  background: #ffffff10;
  border: none;
  border-radius: 9999px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.icon-button-only svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

/* Hover efeito opcional */
.icon-text-button:hover,
.icon-button-only:hover {
  background: #ffffff20;
}




/* ─── MAIN CONTENT ────────────────── */
.main {
	margin-top: var(--header-height);
	margin-left: var(--sidebar-width);
	margin-bottom: var(--footer-height);
	height: calc(100vh - var(--header-height) - var(--footer-height));
	padding:0 8px 0 4px;
	background: var(--bg-main);
}


.content-one {
	width: 100%;
	min-width: 100%;
	min-height: 100%;
	height: 100%;
	background-color: #121212;
	border-radius: 8px;
	padding: 40px 20px;
	overflow-y: auto;
}

.title-two{
	color: #FFFFFF;
}

.title-three{
  font-size: 58px;
  color: #FFFFFF;
}

.category-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 24px;
  list-style: none;
  padding: 0;
}

.category-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #efe518;
  color: #000;
  padding: 0 24px 0 28px;
  border-radius: 10px;
  font-size: 22px;
  font-weight: 600;
  min-height: 100px;
  height: 120px;
  position: relative;
  overflow: hidden;
    cursor: pointer;
  transition: box-shadow 0.18s, transform 0.16s;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.category-card.active {
  background: #333333;
  font-weight: 600;
}

.category-card-title {
  z-index: 2;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .1px;
  /* Ajuste para texto longo não invadir a capa */
  max-width: 55%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-cover-container {
  position: relative;
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  margin-left: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
    cursor: pointer;
}

.category-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  transition: filter 0.18s;
}





/* Lista de playlists */
.lista-playlists {
  margin-top: 16px;
  padding: 0 12px;
  flex: 1 1 auto;
  /* NOVO: Defina altura máxima e scroll */
  max-height: calc(100vh - 260px); /* ajuste conforme header/menu */
  overflow-y: auto;
}
/* Scrollbar custom (opcional, igual ao content-one) */
.lista-playlists::-webkit-scrollbar {
  width: 10px;
}
.lista-playlists::-webkit-scrollbar-thumb {
  background: #232323;
  border-radius: 8px;
}
.playlist-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.playlist-item {
  display: flex;
  align-items: center;
  background: #1f1f1f;
  border-radius: 8px;
}

.playlist-cover {
  flex: 0 0 48px;
  height: 48px;
  margin-right: 12px;
  position: relative;
  overflow: hidden;
}

.playlist-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}


.playlist-cover .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.2);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  cursor: pointer;
}

.play-button svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
  color: #fff;
}

.playlist-item:hover .play-button {
  opacity: 1;
}

.playlist-info {
  flex: 1 1 auto;        /* Ocupa todo espaço disponível */
  min-width: 0;          /* Permite o texto ser cortado corretamente */
  display: flex;
  flex-direction: column;
}

.playlist-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;     /* Essencial! */
  width: 100%;
}


.playlist-date {
  font-size: 12px;
  color: #aaa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;   /* Muito importante para flex funcionar */
  width: 100%;    /* Garante ocupar toda a linha, pode ajustar conforme necessidade */
  display: block; /* Garante o comportamento do texto */
}

.playlist-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  width: 100%;
  height: 100%;
  padding: 8px 12px;
}



/* Aplica só onde há rolagem */
.content-one {
  scrollbar-width: thin;          /* Firefox */
  scrollbar-color: #ffffff transparent; /* thumb e track no Firefox */
}

/* WebKit (Chrome, Edge, Safari) */
.content-one::-webkit-scrollbar {
  width: 14px;                    /* um pouco mais grosso */
}

.content-one::-webkit-scrollbar-track {
  background: transparent;        /* track invisível */
}

.content-one::-webkit-scrollbar-thumb {
  background-color: #121212;      /* polegar na cor pedida */
  border-radius: 6px;             /* cantos arredondados */
}

/* esconde TODOS os botões de seta */
.content-one::-webkit-scrollbar-button {
  display: none !important;
  width: 0;
  height: 0;
}

/* cobre casos específicos de decrement/increment vertical e horizontal */
.content-one::-webkit-scrollbar-button:vertical:decrement,
.content-one::-webkit-scrollbar-button:vertical:increment,
.content-one::-webkit-scrollbar-button:horizontal:decrement,
.content-one::-webkit-scrollbar-button:horizontal:increment {
  display: none !important;
  width: 0;
  height: 0;
}

/* remove o canto onde as barras se encontram */
.content-one::-webkit-scrollbar-corner {
  background: transparent;
}













.grid-musicas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.card-musica {
  background: #121212;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  padding: 12px;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.card-musica:hover {
  background: #1f1f1f;
}

.card-musica:hover .play-button {
  opacity: 1;
  pointer-events: auto;
}

.capa-container {
  position: relative;
}

.capa-container img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

.btn-play-card {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: #efe518;
  border: none;
  border-radius: 50%;
  padding: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-play-card:hover {
  background: #e0d715;
}

.info-musica {
  padding: 8px 0;
}

.info-musica strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;      /* Limita a 2 linhas */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;         /* Permite quebrar linha */
  font-size: 16px;
  color: #fff;
  text-align: left;
  min-width: 0;
  width: 100%;
  line-height: 1.25;
}


.mensagem-vazia {
  color: #aaa;
  padding: 12px;
}


.card-musica .play-button {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: #efe518;            /* amarelo da sua paleta */
  border: none;
  border-radius: 50%;             /* forma perfeitamente redonda */
  width: 52px;                    /* largura fixa para tamanho consistente */
  height: 52px;                   /* altura igual à largura = círculo */
  display: flex;                  /* centralizar o ícone */
  align-items: center;
  justify-content: center;
  color: #121212;                 /* ícone escuro sobre fundo claro */
  font-size: 20px;                /* aumenta o ícone (se for texto ou ícone inline) */
  cursor: pointer;
  z-index: 2;
  transition: background 0.3s;
  opacity: 0;
  pointer-events: none; /* evita clique enquanto invisível */
  transition: opacity 0.3s ease;
}

.card-musica .play-button svg{
  color: black;
  width: 22px;
  height: 22px;
}

.card-musica .play-button:hover {
  background: #e0d715;           /* tom mais escuro no hover */
}

.capa-container {
  position: relative;
}


.card-musica .fav-button {
  position: absolute;
  background: none;
  top: 10px;
  right: 10px;
  border: none;
  border-radius: 50%;             /* forma perfeitamente redonda */
  display: flex;                  /* centralizar o ícone */
  align-items: center;
  justify-content: center;
  color: #FFFFFF;                 /* ícone escuro sobre fundo claro */
  font-size: 20px;                /* aumenta o ícone (se for texto ou ícone inline) */
  cursor: pointer;
  z-index: 2;
  transition: background 0.3s;
  opacity: 0;
  pointer-events: none; /* evita clique enquanto invisível */
  transition: opacity 0.3s ease;
}

.card-musica .fav-button svg{
  color: white;
  fill: #FFFFFF;
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 1));
}

.card-musica .fav-button:hover {

}

.card-musica:hover .fav-button {
  opacity: 1;
  pointer-events: auto;
}

.fav-button.favorited svg {
  fill: #efe518 !important;
  stroke: #efe518 !important;
}

.artista-musica {
  display: block;
  font-size: 13px;
  color: #aaa;
  margin-top: 2px;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.remove-fav-button {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  opacity: 0;
  z-index: 2;
}

.remove-fav-button i,
.remove-fav-button svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
  color: #fff;
}

.playlist-item:hover .remove-fav-button {
  opacity: 1;
  background: #e53935;  /* vermelho Spotify, pode trocar por amarelo se preferir */
  color: #fff;
}

.remove-fav-button:hover {
  background: #efe518;   /* amarelo ao passar o mouse, se preferir pode manter vermelho */
  color: #222;
}

.playlist-item {
  position: relative;
  transition: background 0.2s;
}








/* ─── Modal Overlay ─── */
.modal-playlist {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(12,12,18,0.86);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}
.modal-playlist.active { display: flex; }

/* ─── Modal Central ─── */
.modal-content {
  background: #18181e;
  color: #fff;
  border-radius: 20px;
  width: 60%;
  min-width: 500px;
  min-height: 420px;
  padding: 0;
  display: flex;
  flex-direction: row;
  gap: 0;
  position: relative;
  box-shadow: 0 8px 40px 0 rgba(0,0,0,0.35), 0 2px 8px rgba(20,20,32,0.10);
  overflow: hidden;
  border: 1.5px solid #232332;
}

@media (max-width: 820px) {
  .modal-content {
    flex-direction: column;
    min-width: unset;
    max-width: 98vw;
    min-height: 0;
  }
}

/* ─── Botão Fechar ─── */
.modal-fechar {
  position: absolute;
  top: 22px; right: 28px;
  background: none;
  border: none;
  color: #b8b8c7;
  font-size: 30px;
  cursor: pointer;
  z-index: 2;
  transition: color 0.2s;
  padding: 3px;
}
.modal-fechar:hover { color: #efe518; }

/* ─── Coluna Form ─── */
.modal-form {
  flex: 1.1;
  min-width: 240px;
  background: #22222a;
  padding: 38px 32px 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 8px 0 16px -16px rgba(0,0,0,0.20);
}
@media (max-width: 820px) {
  .modal-form { box-shadow: none; padding: 32px 18px 18px 18px; }
}
.modal-form h2 {
  margin-top: 0;
  margin-bottom: 24px;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: .1px;
}

.modal-form input,
.modal-form select {
  width: 100%;
  padding: 14px 16px;
  background: #18181e;
  color: #fff;
  border: 1.5px solid #232332;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 15px;
  transition: border 0.2s, box-shadow 0.22s;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  outline: none;
  box-shadow: 0 1px 6px 0 rgba(0,0,0,0.07);
}
.modal-form input:focus,
.modal-form select:focus {
  border-color: #efe518;
  box-shadow: 0 2px 16px 0 rgba(239,229,24,0.10);
}

.modal-form select {
  background-image: url('data:image/svg+xml;utf8,<svg fill="white" height="20" viewBox="0 0 20 20" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 7l3 3 3-3" stroke="white" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px 20px;
  padding-right: 38px;
}

.modal-form-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 16px;
}
.btn-cancelar {
  background: #282832;
  color: #b8b8c7;
  border: none;
  padding: 13px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.17s, color 0.2s;
  font-size: 15px;
}
.btn-cancelar:hover {
  background: #18181e;
  color: #fff;
}
.btn-enviar {
  background: linear-gradient(90deg, #efe518 0%, #fff700 100%);
  color: #22222a;
  border: none;
  padding: 13px 26px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 15px;
  box-shadow: 0 0.5px 6px rgba(239,229,24,0.12);
  transition: background 0.17s;
}
.btn-enviar:hover {
  background: linear-gradient(90deg, #fff700 0%, #efe518 100%);
}

/* ─── Coluna Músicas ─── */
.modal-musicas {
  flex: 1.3;
  min-width: 240px;
  background: #191924;
  padding: 38px 32px 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  max-height: 530px;
}
@media (max-width: 820px) {
  .modal-musicas { padding: 18px 12px 18px 12px; }
}
.modal-musicas h4 {
  margin: 0 0 16px 0;
  font-size: 18px;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Lista de músicas */
.musicas-selecionadas, #musicasSelecionadas {
  max-height: 320px;
  overflow-y: auto;
  font-size: 14.5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Cartãozinho da música */
.musica-item, .musica-modal-item {
  background: #242436;
  border-radius: 10px;
  margin-bottom: 12px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  gap: 13px;
  box-shadow: 0 2px 14px 0 rgba(16,16,28,0.06);
  font-weight: 500;
  color: #f8f8ff;
  font-size: 15px;
  transition: background 0.14s, box-shadow 0.15s;
  position: relative;
}
.musica-item:last-child, .musica-modal-item:last-child { margin-bottom: 0; }


.musica-modal-item .titulo {
  color: #fff;
  font-weight: 500;
  margin-right: 6px;
  font-size: 15px;
}
.musica-modal-item .artista {
  color: #c5c5dc;
  opacity: .68;
  font-size: 14px;
  font-weight: 400;
}

.musicas-selecionadas::-webkit-scrollbar,
#musicasSelecionadas::-webkit-scrollbar {
  width: 10px;
}
.musicas-selecionadas::-webkit-scrollbar-thumb,
#musicasSelecionadas::-webkit-scrollbar-thumb {
  background: #232332;
  border-radius: 8px;
}

.mensagem-sucesso {
  position: absolute;
  top: 120px;
  left: 50%;
  transform: translateX(-50%);
  background: #efe518;
  color: #22222a;
  padding: 18px 36px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(20,20,20,0.14);
  font-size: 17px;
  font-weight: 600;
  z-index: 69999546460;
  text-align: center;
  animation: fadein 0.5s;
}
@keyframes fadein {
  from { opacity: 0; top: 10px; }
  to   { opacity: 1; top: 30px; }
}








/* Botão play na capa */
.play-category-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,0.88);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: background 0.18s, opacity 0.18s;
  box-shadow: 0 2px 10px 0 rgba(0,0,0,0.14);
  cursor: pointer;
}

.play-category-btn i {
  color: #191919;
  width: 28px;
  height: 28px;
}

/* Ao passar o mouse no card, destaca a capa e mostra play */
.category-card:hover .category-cover-img {
  filter: brightness(0.75) blur(1px);
}
.category-card:hover .play-category-btn {
  opacity: 1;
  pointer-events: auto;
  background: #efe518;
}





@media (max-width: 820px) {
  .main, .content-one {
    padding: 0 2px !important;
  }
  .title-three {
    font-size: 32px !important;
  }
}
/* ------------- MOBILE 600px ------------- */
@media (max-width: 600px) {

  /* Sidebar e Menu Mobile */
  .sidebar {
    display: none !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
    width: 100vw !important;
    position: fixed;
    left: 0;
    top: var(--header-height);
    height: auto;
    z-index: 1100;
  }
  .menu-mobile {
    display: flex !important;
    position: fixed;
    right: 18px;    /* afasta da borda direita */
    bottom: 110px;  /* fica acima do player/footer, ajuste conforme altura do seu player */
    left: unset;    /* garante que left não interfere */
    transform: none; /* remove centralização anterior */
    z-index: 99999;
    background: #121212;
    color: #efe518;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border: none;
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.18);
  }

  /* Categorias, Grid, Cards */
  .category-list,
  .grid-musicas {
    grid-template-columns: repeat(2, 1fr) !important; /* Duas colunas no mobile */
    gap: 10px;
  }
  .category-card {
    padding: 14px 10px;
    min-height: 68px;
    font-size: 17px;
  }
  .category-cover-container,
  .category-cover-img {
    width: 48px; height: 48px;
    margin-left: 8px;
  }
  .card-musica {
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 6px;
  }
  .card-musica .play-button, 
  .card-musica .fav-button {
    width: 40px; height: 40px; font-size: 16px;
    top: 8px; right: 8px;
  }

  /* ----------- PLAYER MOBILE AJUSTADO ------------ */
  .player {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 64px !important;
    min-height: 60px !important;
    max-height: 90px !important;
    padding: 4px 2vw !important;
    gap: 0 !important;
  }

  .player-left {
    flex: 0 0 40% !important;
    max-width: 38vw !important;
    min-width: 0 !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 7px !important;
    overflow: hidden;
  }

  .player-cover { width: 34px !important; height: 34px !important; }
  .player-info { width: calc(35vw - 38px); max-width: 100px; }
  .player-info .song-title { font-size: 12px !important; }
  .player-info .song-artist { font-size: 11px !important; }

  .player-center {
    flex: 1 1 60% !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: center !important;
    gap: 4px !important;
    height: 100% !important;
    padding: 0 0 0 6px !important;
  }

  .player-controls {
    width: 100% !important;
    justify-content: center !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .player-progress {
    width: 100% !important;
    min-width: 0 !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .progress-bar {
    width: 100% !important;
    min-width: 0 !important;
    height: 3px !important;
  }

  .player-right {
    display: none !important; /* Oculta, deixa só botões principais */
  }

  /* Main padding */
  .main {
    margin-left: 0 !important;
    padding: 0 2px !important;
  }

  /* Ícones menores */
  .player-controls svg,
  .player-center svg,
  .player-right svg,
  .btn-volume svg {
    width: 20px !important;
    height: 20px !important;
    stroke-width: 1.2 !important;
  }

  /* Ocultar volume */
  .player-right .btn-volume,
  .player-right .volume-bar {
    display: none !important;
  }

  /* Modal ajustado */
  .modal-content {
    width: 98vw !important;
    min-width: unset !important;
    max-width: unset !important;
    padding: 10px !important;
  }
  .modal-form, .modal-musicas {
    padding: 10px !important;
  }
  .modal-form input, .modal-form select {
    font-size: 15px;
    padding: 10px 8px;
  }
}
