         
/* =====================================================
   QUAL É A MÚSICA — BUSCA MODERNA
   ARQUIVO: style_busca.css
   ===================================================== */


/* =====================================================
   ORIGEM DA MÚSICA
   ===================================================== */

.youtube-origin-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 7px;
  background: rgba(15, 15, 20, .92);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.youtube-origin-badge svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.youtube-origin-badge.origem-bd {
  color: #65dca0;
}

.youtube-origin-badge.origem-youtube {
  color: #ff7777;
}


/* =====================================================
   BOTÃO EXCLUIR
   ===================================================== */

.youtube-action-btn.deletar {
  flex: 0 0 auto;
  padding: 8px;
  border-color: rgba(255, 90, 90, .4);
  color: #ff7777;
}

.youtube-action-btn.deletar:hover {
  background: #542727;
}


/* =====================================================
   BOTÃO LUPA
   ===================================================== */

#searchLupa {
  position: fixed;
  top: 20px;
  left: 80px;
  width: 55px;
  height: 55px;
  background-color: rgba(0,0,0,0.4);
  border-radius: 50%;
  z-index: 1001;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

#searchLupa:hover {
  background-color: rgba(0,0,0,0.6);
}

#searchLupa.hidden {
  display: none;
}

.lupa-circulo {
  width: 20px;
  height: 20px;
  border: 3px solid white;
  border-radius: 50%;
}

.lupa-haste {
  width: 3px;
  height: 10px;
  background: white;
  position: absolute;
  transform: rotate(45deg);
  top: 28px;
  left: 35px;
}


/* =====================================================
   MODAL
   ===================================================== */

.youtube-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1006;
  padding: 16px;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  align-items: center;
  justify-content: center;
}

.youtube-modal.open {
  display: flex;
  animation: youtubeFadeIn .2s ease;
}

@keyframes youtubeFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.youtube-modal-content {
  width: 100%;
  max-width: 900px;
  max-height: 92vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #15151b;
  color: #f5f5f7;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 20px;
  padding: 24px;
  position: relative;
  box-shadow: 0 20px 70px rgba(0,0,0,.5);
  scrollbar-width: thin;
  scrollbar-color: #444 #15151b;
}


/* =====================================================
   CABEÇALHO
   ===================================================== */

.youtube-modal-header {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 24px;
}

.youtube-header-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,#ffb52e,#f07800);
  color: #171717;
}

.youtube-header-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.youtube-header-text {
  flex: 1;
  min-width: 0;
}

.youtube-header-text h2 {
  margin: 0;
  font-size: 23px;
  font-weight: 800;
  color: #fff;
}

.youtube-header-text p {
  margin: 5px 0 0;
  font-size: 13px;
  color: #a6a6b3;
}

.youtube-close {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 0;
  border-radius: 12px;
  background: #26262f;
  color: #ddd;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.youtube-close:hover {
  background: #393943;
  color: white;
}

.youtube-close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}


/* =====================================================
   CAMPO DE PESQUISA
   ===================================================== */

.youtube-search-area {
  display: flex;
  gap: 10px;
}

.youtube-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  padding: 0 12px;
  height: 52px;
  background: #22222b;
  border: 1px solid #383842;
  border-radius: 13px;
  transition: border-color .2s;
}

.youtube-search-box:focus-within {
  border-color: #f9a602;
}

.youtube-search-icon {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  fill: none;
  stroke: #9b9ba8;
  stroke-width: 2;
  stroke-linecap: round;
}

#youtubeSearchInput {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: white;
  font-size: 15px;
}

#youtubeSearchInput::placeholder {
  color: #858592;
}

#btnMicrofone {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border: 0;
  border-radius: 10px;
  background: #343440;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .2s;
}

#btnMicrofone svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#btnMicrofone:hover {
  background: #444451;
}

#btnMicrofone.ouvindo {
  background: #d93025;
  animation: youtubePulse 1.2s infinite;
}

@keyframes youtubePulse {
  50% {
    box-shadow: 0 0 0 6px rgba(217,48,37,.15);
  }
}

.youtube-search-button {
  height: 52px;
  padding: 0 20px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg,#ffbd38,#f39800);
  color: #171717;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: transform .2s, opacity .2s;
}

.youtube-search-button:hover {
  transform: translateY(-1px);
}

.youtube-search-button:disabled {
  opacity: .6;
  cursor: wait;
  transform: none;
}

.youtube-search-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.youtube-voice-status {
  min-height: 0;
  margin-top: 0;
  font-size: 12px;
  color: #ffbd38;
}

.youtube-voice-status:not(:empty) {
  margin-top: 10px;
}


/* =====================================================
   TÍTULO DOS RESULTADOS
   ===================================================== */

.youtube-results-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 25px 0 14px;
  color: #f4f4f6;
  font-size: 15px;
  font-weight: 800;
}

#youtubeResultCount {
  color: #a5a5b2;
  font-size: 12px;
  font-weight: 500;
}


/* =====================================================
   GRADE DE RESULTADOS
   ===================================================== */

.results-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 16px;
}

.music-card {
  min-width: 0;
  overflow: hidden;
  background: #202029;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 15px;
  transition: transform .2s, border-color .2s;
}

.music-card:hover {
  transform: translateY(-2px);
  border-color: rgba(249,166,2,.45);
}

.youtube-thumbnail-wrap {
  position: relative;
  background: #101015;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.thumbnail {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform .3s;
}

.music-card:hover .thumbnail {
  transform: scale(1.035);
}

.youtube-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: linear-gradient(transparent,rgba(0,0,0,.2));
}

.youtube-play-overlay span {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(249,166,2,.95);
  color: #171717;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.35);
}

.youtube-play-overlay svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.youtube-card-info {
  padding: 12px;
}

.title {
  margin: 0 0 7px;
  color: #ffbd38;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 750;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.artist-info {
  margin: 0;
  color: #aeadba;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.youtube-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 13px;
}

.youtube-action-btn {
  min-width: 0;
  min-height: 39px;
  flex: 1;
  padding: 8px 7px;
  border: 1px solid #41414d;
  border-radius: 9px;
  background: #2b2b36;
  color: #eee;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: background .2s;
}

.youtube-action-btn:hover {
  background: #3b3b48;
}

.youtube-action-btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.youtube-action-btn.salvar {
  border-color: rgba(249,166,2,.3);
  color: #ffbd38;
}

.youtube-action-btn.playlist {
  background: #f9a602;
  color: #171717;
  border-color: #f9a602;
}

.youtube-action-btn.playlist:hover {
  background: #ffc044;
}


/* =====================================================
   CARREGAMENTO, VAZIO E ERRO
   ===================================================== */

.youtube-message {
  grid-column: 1 / -1;
  padding: 36px 16px;
  text-align: center;
  color: #aaaab7;
  background: #202029;
  border: 1px solid #30303a;
  border-radius: 14px;
}

.youtube-message-icon {
  margin-bottom: 12px;
  color: #ffbd38;
}

.youtube-message-icon svg {
  width: 35px;
  height: 35px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.youtube-message h3 {
  margin: 0 0 8px;
  color: #f3f3f6;
  font-size: 16px;
}

.youtube-message p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.youtube-spinner {
  width: 30px;
  height: 30px;
  margin: 0 auto 14px;
  border: 3px solid #393943;
  border-top-color: #ffbd38;
  border-radius: 50%;
  animation: youtubeSpin .7s linear infinite;
}

@keyframes youtubeSpin {
  to {
    transform: rotate(360deg);
  }
}

.youtube-welcome {
  grid-column: 1 / -1;
  padding: 35px 15px;
  text-align: center;
  color: #a5a5b2;
}

.youtube-welcome-icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 16px;
  border-radius: 20px;
  background: #292933;
  color: #ffbd38;
  display: flex;
  align-items: center;
  justify-content: center;
}

.youtube-welcome-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.youtube-welcome h3 {
  margin: 0 0 8px;
  color: white;
  font-size: 17px;
}

.youtube-welcome p {
  margin: 0 auto;
  max-width: 340px;
  font-size: 13px;
  line-height: 1.6;
}


/* =====================================================
   RODAPÉ
   ===================================================== */

.youtube-modal-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  padding-top: 15px;
  border-top: 1px solid #30303a;
  color: #858592;
  font-size: 11px;
}

.youtube-footer-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #45cf82;
  box-shadow: 0 0 8px rgba(69,207,130,.4);
}


/* =====================================================
   BOTÕES FLUTUANTES
   ===================================================== */

.youtube-floating-actions {
  position: sticky;
  bottom: 80px;
  right: 0;
  z-index: 20;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;

  gap: 10px;

  margin-top: 14px;
  margin-right: 0;

  pointer-events: none;
}


.youtube-floating-btn {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  padding: 11px;

  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;

  background: #f9a602;
  color: #171717;

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 1000;
  cursor: pointer;

  box-shadow: 0 4px 15px rgba(0,0,0,.4);

  pointer-events: auto;

  transition:
    transform .2s,
    background .2s;
}


.youtube-floating-btn:hover {
  transform: translateY(-2px);
  background: #ffc044;
}


.youtube-floating-btn svg {
  width: 23px;
  height: 23px;

  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


.youtube-floating-close {
  background: #d93025;
  color: #fff;
  border-color: #d93025;
}


.youtube-floating-close:hover {
  background: #ef4539;
}



/* =====================================================
   CELULAR
   ===================================================== */

@media (max-width: 600px) {

  #searchLupa {
    top: 15px;
    left: 70px;
    width: 47px;
    height: 47px;
    padding: 12px;
  }

  .youtube-modal {
    padding: 8px;
    align-items: center;
  }

  .youtube-modal-content {
    padding: 16px;
    max-height: 94dvh;
    border-radius: 17px;
  }

  .youtube-header-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 12px;
  }

  .youtube-header-text h2 {
    font-size: 19px;
  }

  .youtube-header-text p {
    font-size: 11px;
  }

  .youtube-close {
    width: 35px;
    height: 35px;
  }

  .youtube-search-area {
    gap: 7px;
  }

  .youtube-search-box {
    height: 47px;
    gap: 7px;
    padding: 0 9px;
  }

  #youtubeSearchInput {
    font-size: 13px;
  }

  #btnMicrofone {
    width: 33px;
    height: 33px;
    min-width: 33px;
  }

  .youtube-search-button {
    height: 47px;
    padding: 0 12px;
    font-size: 12px;
    gap: 5px;
  }

  .youtube-search-button svg {
    width: 16px;
    height: 16px;
  }

  .results-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
  }

  .youtube-card-info {
    padding: 9px;
  }

  .title {
    font-size: 12px;
    margin-bottom: 5px;
  }

  .artist-info {
    font-size: 11px;
  }

  .youtube-card-actions {
    gap: 5px;
    margin-top: 9px;
  }

  .youtube-action-btn {
    min-height: 35px;
    padding: 6px 4px;
    gap: 4px;
    font-size: 10px;
  }

  .youtube-action-btn svg {
    width: 14px;
    height: 14px;
  }

  .youtube-action-btn.deletar {
    padding: 6px 5px;
  }

  .youtube-results-heading {
    margin-top: 20px;
  }

.@media (max-width: 600px) {

  .youtube-floating-actions {
    bottom: 20px;
    gap: 8px;
    margin-right: 25px;
  }

}

  .youtube-floating-btn {
    width: 42px;
    height: 42px;
    padding: 10px;
  }

}



/* =====================================================
   CELULARES MUITO PEQUENOS
   ===================================================== */

@media (max-width: 350px) {

  .youtube-modal-content {
    padding: 12px;
  }

  .youtube-header-text h2 {
    font-size: 17px;
  }

  .youtube-search-button {
    padding: 0 9px;
  }

}





