/* =============================================
   MUSICA.CSS — Entre Tempos · Página de Músicas
   ============================================= */

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

body {
  background: #f2e8d5;
  font-family: 'Special Elite', serif;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url('https://www.transparenttextures.com/patterns/aged-paper.webp');
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

header {
  position: relative;
  z-index: 10;
  padding: 18px 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 2px solid #c4a96b;
}

header a {
  text-decoration: none;
  color: #3e4a59;
  font-weight: bold;
  font-family: 'Special Elite', serif;
  font-size: 14px;
  letter-spacing: 1px;
  transition: color 0.2s;
}

header a:hover {
  color: #c0392b;
}

.page-titulo {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 30px 20px 10px;
}

.page-titulo h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(60px, 12vw, 130px);
  color: #1a1a1a;
  letter-spacing: 8px;
  line-height: 1;
  text-shadow: 4px 4px 0 #c4a96b;
}

.page-titulo .subtitulo {
  font-family: 'Special Elite', serif;
  font-size: 14px;
  color: #7a6a50;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-top: 8px;
}

.divisor {
  position: relative;
  z-index: 5;
  width: 80%;
  margin: 10px auto 30px;
  height: 2px;
  background: linear-gradient(to right, transparent, #c0392b, #c4a96b, #c0392b, transparent);
}

.mural-musica {
  position: relative;
  z-index: 5;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 30px 120px;
}

.nav-mes {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.top10-titulo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  color: #1a1a1a;
  letter-spacing: 4px;
  border-left: 5px solid #c0392b;
  padding-left: 15px;
  line-height: 1;
}

.top10-titulo .mes-label {
  font-family: 'Special Elite', serif;
  font-size: 18px;
  color: #8c3b3b;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: capitalize;
  display: block;
  margin-top: 4px;
}

.seta-mes {
  background: #c0392b;
  color: #fff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 12px rgba(192, 57, 43, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.seta-mes:hover {
  background: #922b21;
  transform: scale(1.1);
}

.seta-mes:active {
  transform: scale(0.93);
}

.top10-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.top10-lista {
  flex: 1;
  min-width: 280px;
  padding-left: 120px;
}

.lista-musicas {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.musica-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed #c4a96b;
  transition: transform 0.2s;
  animation: entrar 0.35s ease both;
}

/* ── BOTÃO DE UPVOTE (estilo reddit) ── */
.btn-upvote {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: none;
  border: none;
  cursor: pointer;
  min-width: 34px;
  padding: 4px 2px;
  font-family: 'Bebas Neue', sans-serif;
  color: #a89878;
  transition: color 0.15s, transform 0.15s;
}

.btn-upvote:hover {
  color: #c0392b;
  transform: translateY(-2px);
}

.btn-upvote:active {
  transform: translateY(0) scale(0.9);
}

.btn-upvote:disabled {
  opacity: 0.6;
  cursor: default;
}

.btn-upvote .upvote-seta {
  font-size: 16px;
  line-height: 1;
}

.btn-upvote .upvote-total {
  font-size: 13px;
  min-width: 18px;
}

.btn-upvote.votado {
  color: #c0392b;
}

@keyframes upvotePulso {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.35);
  }

  100% {
    transform: scale(1);
  }
}

.btn-upvote.votado .upvote-seta {
  animation: upvotePulso 0.3s ease;
}

.musica-item:hover {
  transform: translateX(6px);
}

@keyframes entrar {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.musica-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  color: #c0392b;
  min-width: 45px;
  line-height: 1;
}

.musica-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.musica-nome {
  font-family: 'Special Elite', serif;
  font-size: 17px;
  color: #1a1a1a;
  font-weight: bold;
}

.musica-artista {
  font-family: 'Special Elite', serif;
  font-size: 13px;
  color: #7a6a50;
  font-style: italic;
  margin-top: 1px;
}

.vazio {
  text-align: center;
  color: #b0a090;
  font-style: italic;
  padding: 40px 0;
  font-size: 16px;
  letter-spacing: 1px;
}

.decoracao-direita {
  width: 280px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* ─── IMAGENS DECORATIVAS (desktop) ─── */
.img-deco {
  position: absolute;
  pointer-events: none;
}

.img-notas {
  top: -60px;
  left: -80px;
  width: 220px;
  transform: rotate(-8deg);
  opacity: 0.85;
  filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.18));
}

.img-mulher {
  top: 200px;
  left: -70px;
  width: 170px;
  transform: rotate(3deg);
  filter: drop-shadow(3px 3px 10px rgba(0, 0, 0, 0.35)) grayscale(20%);
}

.img-caixasom {
  bottom: -20px;
  left: -90px;
  width: 180px;
  transform: rotate(5deg);
  filter: drop-shadow(4px 4px 12px rgba(0, 0, 0, 0.3));
  opacity: 0.9;
}

.img-nirvana {
  top: -40px;
  right: -60px;
  width: 140px;
  transform: rotate(6deg);
  filter: drop-shadow(0 0 8px rgba(255, 238, 0, 0.5));
}

.img-queen {
  top: 450px;
  left: -30px;
  width: 150px;
  transform: rotate(-5deg);
  filter: drop-shadow(2px 2px 6px rgba(0, 0, 0, 0.2));
}

.img-bad {
  bottom: 80px;
  right: -30px;
  width: 160px;
  transform: rotate(8deg);
  filter: drop-shadow(3px 3px 8px rgba(0, 0, 0, 0.25));
}

.img-rita-silhueta {
  bottom: -30px;
  right: -30px;
  width: 130px;
  transform: rotate(-4deg);
  filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.2));
  opacity: 0.7;
}

.img-gal {
  top: 550px;
  right: -10px;
  width: 100px;
  transform: rotate(4deg);
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.15));
}

.img-monstro {
  bottom: 400px;
  left: -60px;
  width: 200px;
  transform: rotate(-6deg);
  opacity: 0.8;
}

.img-mascara {
  top: 200px;
  right: -50px;
  width: 130px;
  transform: rotate(5deg);
  filter: drop-shadow(2px 2px 8px rgba(0, 0, 0, 0.3));
}

.img-preta-gil {
  bottom: 800px;
  left: -190px;
  width: 310px;
  transform: rotate(-90deg);
  filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.3));
}

/* ─── CD RITA LEE ─── */
.cd-destaque {
  width: 200px;
  margin: 0 auto;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
  cursor: pointer;
  /* sem transform fixo e sem transition para não brigar com a animação */
}

@keyframes girar-cd {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(1080deg);
  }
}

.cd-destaque.girando {
  animation: girar-cd 1.5s ease-in-out forwards;
}

.foto-homem {
  width: 150px;
  filter: drop-shadow(3px 3px 10px rgba(0, 0, 0, 0.4));
  transform: rotate(5deg);
}

.notas-musicais {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.nota {
  position: absolute;
  font-size: 24px;
  opacity: 0.06;
  color: #1a1a1a;
  animation: flutuar 8s infinite ease-in-out;
}

@keyframes flutuar {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(10deg);
  }
}

.rodape-musica {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 20px;
  font-family: 'Special Elite', serif;
  font-size: 12px;
  color: #b0a090;
  letter-spacing: 2px;
  border-top: 1px solid #c4a96b;
}

.carimbo {
  display: inline-block;
  border: 3px solid #c0392b;
  color: #c0392b;
  padding: 4px 14px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 3px;
  transform: rotate(-3deg);
  opacity: 0.6;
  margin-top: 10px;
}

/* ─── DESKTOP: esconde bloco mobile ─── */
.stickers-mobile {
  display: none;
}

/* ══════════════════════════════════════════
   MOBILE (≤ 600px)
   ══════════════════════════════════════════ */
@media (max-width: 600px) {

  .page-titulo h1 {
    font-size: clamp(44px, 16vw, 72px);
    letter-spacing: 4px;
  }

  .deco-desktop {
    display: none !important;
  }

  .mural-musica {
    padding: 10px 0 60px;
    overflow: visible;
  }

  .stickers-mobile {
    display: block;
    position: relative;
    height: 0;
    overflow: visible;
  }

  .stickers-mobile .lado-esq {
    position: absolute;
    left: 0;
    top: 0;
    width: 75px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    z-index: 4;
    pointer-events: none;
  }

  .stickers-mobile .lado-dir {
    position: absolute;
    right: 0;
    top: 0;
    width: 75px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    z-index: 4;
    pointer-events: none;
  }

  .stickers-mobile .lado-esq img,
  .stickers-mobile .lado-dir img {
    position: relative !important;
    display: block !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    margin-bottom: 70px !important;
  }

  .stickers-mobile .lado-esq .img-preta-gil,
  .stickers-mobile .lado-dir .img-preta-gil,
  .img-preta-gil {
    display: none !important;
    margin-bottom: 0 !important;
  }

  .img-notas {
    width: 72px !important;
    transform: rotate(-8deg) !important;
    opacity: 0.85;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.18)) !important;
  }

  .img-mulher {
    width: 68px !important;
    transform: rotate(3deg) !important;
    filter: drop-shadow(2px 2px 8px rgba(0, 0, 0, 0.35)) grayscale(20%) !important;
  }

  .img-caixasom {
    width: 66px !important;
    transform: rotate(5deg) !important;
    opacity: 0.9;
    filter: drop-shadow(3px 3px 10px rgba(0, 0, 0, 0.3)) !important;
  }

  .img-monstro {
    width: 68px !important;
    transform: rotate(-6deg) !important;
    opacity: 0.8;
  }

  .img-nirvana {
    width: 64px !important;
    transform: rotate(6deg) !important;
    filter: drop-shadow(0 0 8px rgba(255, 238, 0, 0.5)) !important;
  }

  .img-queen {
    width: 70px !important;
    transform: rotate(-5deg) !important;
    filter: drop-shadow(2px 2px 6px rgba(0, 0, 0, 0.2)) !important;
  }

  .img-bad {
    width: 68px !important;
    transform: rotate(8deg) !important;
    filter: drop-shadow(3px 3px 8px rgba(0, 0, 0, 0.25)) !important;
  }

  .img-mascara {
    width: 62px !important;
    transform: rotate(5deg) !important;
    filter: drop-shadow(2px 2px 8px rgba(0, 0, 0, 0.3)) !important;
  }

  .img-gal {
    width: 58px !important;
    transform: rotate(4deg) !important;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.15)) !important;
  }

  .img-rita-silhueta {
    width: 62px !important;
    transform: rotate(-4deg) !important;
    opacity: 0.7;
  }

  .top10-wrapper {
    flex-direction: column;
    gap: 16px;
    padding: 0 80px;
  }

  .top10-lista {
    padding-left: 0;
    width: 100%;
  }

  .nav-mes {
    gap: 8px;
    margin-bottom: 16px;
  }

  .seta-mes {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .top10-titulo {
    font-size: 32px;
  }

  .top10-titulo .mes-label {
    font-size: 15px;
  }

  .musica-num {
    font-size: 26px;
    min-width: 36px;
  }

  .musica-nome {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .musica-artista {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .btn-upvote {
    min-width: 28px;
  }

  .btn-upvote .upvote-seta {
    font-size: 14px;
  }

  .btn-upvote .upvote-total {
    font-size: 11px;
  }

  .decoracao-direita {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-end;
    width: 100%;
    gap: 14px;
    padding: 0 8px;
  }

  .cd-destaque {
    width: 100px;
  }

  .foto-homem {
    width: 80px;
  }
}

/* ─── PAINEL DE CLIPE + DESCRIÇÃO ─── */

.musica-item.clicavel {
  cursor: pointer;
}

.musica-item.clicavel:hover .musica-nome {
  color: #c0392b;
}

.musica-toggle-icone {
  margin-left: auto;
  font-size: 12px;
  color: #c0392b;
  transition: transform 0.3s;
  flex-shrink: 0;
  padding-right: 4px;
}

.musica-item.aberto .musica-toggle-icone {
  transform: rotate(90deg);
}

.musica-painel {
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease;
  background: rgba(255, 248, 235, 0.85);
  border: 1px dashed #c4a96b;
  border-radius: 6px;
  margin: 0 0 12px 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.musica-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.musica-video iframe,
.musica-video video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.musica-sem-video {
  text-align: center;
  color: #b0a090;
  font-style: italic;
  padding: 20px 0;
  font-size: 15px;
}

.musica-desc {
  font-family: 'Special Elite', serif;
  font-size: 14px;
  color: #3e3228;
  line-height: 1.75;
  border-left: 3px solid #c0392b;
  padding-left: 12px;
}

@media (max-width: 600px) {
  .musica-painel {
    padding: 12px;
    gap: 12px;
  }

  .musica-desc {
    font-size: 13px;
  }

  .musica-toggle-icone {
    font-size: 10px;
  }
}

/* ─── MODAL DE MÚSICA ─── */

#musica-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#musica-modal.modal-visivel {
  opacity: 1;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 12, 5, 0.75);
  backdrop-filter: blur(3px);
}

.modal-caixa {
  position: relative;
  z-index: 1;
  background: #f2e8d5;
  border: 2px solid #c4a96b;
  border-radius: 4px;
  padding: 32px 28px 28px;
  max-width: 480px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  font-family: 'Special Elite', serif;
}

.modal-caixa .musica-video { margin-bottom: 20px; border: 2px solid #1a1a1a; }

#musica-modal.modal-visivel .modal-caixa {
  transform: translateY(0);
}

.modal-fechar {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 18px;
  color: #7a6a50;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.modal-fechar:hover {
  color: #c0392b;
}

.modal-cabecalho {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px dashed #c4a96b;
}

.modal-num {
  font-size: 32px;
  color: #c0392b;
  line-height: 1;
}

.modal-nome {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  color: #1a1a1a;
  letter-spacing: 2px;
  line-height: 1;
}

.modal-artista {
  font-size: 13px;
  color: #7a6a50;
  font-style: italic;
  margin-top: 4px;
}

.modal-botao-yt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  background: #c0392b;
  color: #fff;
  text-decoration: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 2px;
  border-radius: 3px;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 14px rgba(192, 57, 43, 0.4);
  margin-bottom: 20px;
}

.modal-botao-yt:hover {
  background: #922b21;
  transform: translateY(-2px);
}

.modal-play-icone {
  font-size: 14px;
}

.modal-desc {
  font-size: 14px;
  color: #3e3228;
  line-height: 1.75;
  border-left: 3px solid #c0392b;
  padding-left: 12px;
  margin: 0;
}

@media (max-width: 600px) {
  .modal-caixa {
    padding: 24px 18px 22px;
  }

  .modal-nome {
    font-size: 22px;
  }

  .modal-botao-yt {
    font-size: 17px;
    padding: 12px;
  }

  .modal-desc {
    font-size: 13px;
  }
}

/* Editor com recorte de revista musical e selo vermelho. */
.btn-gerenciar-top { color: #c0392b; border: 2px solid #1a1a1a; box-shadow: 4px 4px 0 #c0392b; }
.btn-gerenciar-top:hover { background: #c0392b; color: #fff; }
.editor-top__caixa { border: 3px solid #1a1a1a; box-shadow: 10px 18px 0 rgba(192, 57, 43, .42), 10px 18px 55px rgba(0, 0, 0, .45); }
.editor-top__etiqueta { display: inline-block; padding: 4px 9px; background: #c0392b; color: #fff; transform: rotate(-2deg); }
