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

body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.8;
  color: #d1d5db;
  background: #0a0a0a;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(217, 70, 239, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(20, 184, 166, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Header */
header {
  background: #0a0a0a;
  padding: 2rem 0;
  margin-bottom: 3rem;
  position: relative;
}

header .container {
  text-align: center;
  position: relative;
}

header img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

/* Main content */
main {
  min-height: 60vh;
  padding: 2rem 0;
}

/* Footer */
footer {
  background: linear-gradient(180deg, transparent 0%, rgba(15, 15, 15, 0.8) 100%);
  text-align: center;
  padding: 3rem 0;
  margin-top: 5rem;
  border-top: 2px solid rgba(217, 70, 239, 0.2);
  color: #9ca3af;
  font-size: 0.9rem;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #0a0a0a;
  padding: 0 1rem;
  color: #e879f9;
  font-size: 1.2rem;
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(217, 70, 239, 0.1);
  border-radius: 50%;
  color: #e879f9;
  transition: all 0.3s ease;
  box-shadow:
    0 2px 8px rgba(217, 70, 239, 0.2),
    0 0 0 1px rgba(217, 70, 239, 0.3);
}

.social-links a:hover {
  background: linear-gradient(145deg, #d946ef 0%, #14b8a6 100%);
  color: #ffffff;
  transform: translateY(-3px) rotate(5deg);
  box-shadow:
    0 6px 16px rgba(217, 70, 239, 0.4),
    0 0 0 2px rgba(20, 184, 166, 0.4);
}

.social-links a svg {
  width: 20px;
  height: 20px;
}

footer p {
  margin: 0;
}

/* Playlist grid for homepage */
.playlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
  margin: 0;
  padding: 1rem 0;
}

.playlist-card {
  background: linear-gradient(145deg, #1a1a1a 0%, #0f0f0f 100%);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 2px 8px rgba(217, 70, 239, 0.15),
    0 0 20px rgba(217, 70, 239, 0.05),
    0 0 0 1px rgba(217, 70, 239, 0.2);
  display: flex;
  flex-direction: column;
  position: relative;
}

.playlist-card::before {
  content: '✦';
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  color: rgba(232, 121, 249, 0.3);
  font-size: 1.2rem;
  z-index: 1;
  transition: all 0.4s ease;
}

.playlist-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 12px 30px rgba(217, 70, 239, 0.5),
    0 0 60px rgba(20, 184, 166, 0.3),
    0 0 0 2px rgba(20, 184, 166, 0.6);
}

.playlist-card:hover::before {
  color: rgba(232, 121, 249, 0.9);
  transform: rotate(180deg);
}

.playlist-card a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.playlist-card img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.playlist-card-content {
  padding: 1.75rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-top: 2px solid rgba(217, 70, 239, 0.2);
}

.playlist-card h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: #f0abfc;
  line-height: 1.4;
  font-family: 'Crimson Text', serif;
  text-shadow: 0 0 20px rgba(217, 70, 239, 0.3);
  transition: all 0.3s ease;
}

.playlist-card:hover h3 {
  color: #fae8ff;
  text-shadow: 0 0 30px rgba(217, 70, 239, 0.6);
}

.playlist-card p {
  margin: 0 0 auto 0;
  color: #d1d5db;
  font-size: 0.95rem;
  line-height: 1.7;
  font-style: italic;
}

.playlist-card .video-count {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  color: #14b8a6;
  background: rgba(20, 184, 166, 0.15);
  border: 1px solid rgba(20, 184, 166, 0.4);
  border-radius: 20px;
  font-weight: 500;
  align-self: flex-start;
  font-style: normal;
  letter-spacing: 0.5px;
  box-shadow: 0 0 15px rgba(20, 184, 166, 0.2);
  transition: all 0.3s ease;
}

.playlist-card:hover .video-count {
  background: rgba(20, 184, 166, 0.25);
  border-color: rgba(20, 184, 166, 0.6);
  box-shadow: 0 0 25px rgba(20, 184, 166, 0.4);
  color: #5eead4;
}

/* Playlist page specific styles */
.playlist-page {
  margin: 0 auto;
}

.playlist-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid rgba(217, 70, 239, 0.3);
}

/* Playlist Embed Container */
.playlist-embed-container {
  max-width: 1000px;
  margin: 0 auto 4rem auto;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.playlist-embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.playlist-header h1 {
  font-family: 'Crimson Text', serif;
  font-size: 2.75rem;
  color: #f0abfc;
  margin-bottom: 0.75rem;
  text-shadow: 0 0 30px rgba(217, 70, 239, 0.5);
}

.playlist-description {
  font-size: 1.15rem;
  color: #d1d5db;
  font-style: italic;
  margin: 0;
}

.playlist-navigation {
  margin-top: 3rem;
  text-align: center;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #14b8a6;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  background: linear-gradient(145deg, #1a1a1a 0%, #0f0f0f 100%);
  border: 2px solid rgba(217, 70, 239, 0.3);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(217, 70, 239, 0.2);
}

.back-link:hover {
  background: linear-gradient(145deg, #d946ef 0%, #14b8a6 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(217, 70, 239, 0.4);
}

.back-link svg {
  transition: transform 0.3s ease;
}

.back-link:hover svg {
  transform: translateX(-4px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  header {
    padding: 1rem 0;
  }

  .playlist-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .playlist-header h1 {
    font-size: 2rem;
  }

  .playlist-description {
    font-size: 1rem;
  }
}
