:root {
  --title: #066a75;
  --primary: #3d9db3;
  --primary-hover: #4ab3c6;
  --bg-body: #f4f4f4;
  --bg-card: #ffffff;
  --text-dark: #333;
  --text-muted: #777;
}

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

body {
  background: var(--bg-body);
  font-family: Arial, sans-serif;
}

.playlist-container {
  max-width: 100%;
  margin: 15px auto;
  background: var(--bg-card);
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.playlist-header {
  display: flex;
  align-items: center;
  gap: 12px;
  background-image: linear-gradient(180deg, #FFFDAA 0%, #E2D458 100%);
  color: #000;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(179,143,0,0.4);
  margin-top: 0;
  margin-bottom: 30px;
  user-select: none;
  font-size: 20px; /* Desktop */
}

.playlist-header .playlist-icone-col {
  flex: 0 0 20%;
  max-width: 48px;
}

.playlist-header .playlist-icone-col img {
  width: 100%;
  height: auto;
  display: block;
}

.playlist-header .playlist-texto-col {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  color: #000;
  font-size: 20px; /* Desktop */
}

/* Tablet: até 1024px */
@media (max-width: 1024px) {
  .playlist-header,
  .playlist-header .playlist-texto-col {
    font-size: 16px;
  }
}

/* Mobile: até 540px */
@media (max-width: 540px) {
  .playlist-header,
  .playlist-header .playlist-texto-col {
    font-size: 14px;
  }
}

.playlist-player-principal {
  width: 100%;
  max-width: 90%;
  aspect-ratio: 16 / 9;
  position: relative;
  margin: 0 auto 30px auto;
}

.playlist-youtube-player {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

.playlist-galeria {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .playlist-galeria {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .playlist-galeria {
    grid-template-columns: repeat(2, 1fr);
  }
}

.playlist-miniatura {
  cursor: pointer;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.playlist-miniatura:hover {
  transform: scale(1.03);
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.playlist-miniatura img {
  width: 100%;
  display: block;
}

.playlist-miniatura-title {
  font: 14px/1.3 "Segoe UI", Arial, sans-serif;
  padding: 10px;
  background: #f9f9f9;
  color: var(--text-dark);
  text-align: center;
}
