/*
 * File: teaser-player.css
 * Version: mmdb-0.8.18-claude
 * Munich Musicians DB - Teaser Player Styles
 */

/* Teaser Player Container */
.teaser-player {
  margin: 30px 0;
  padding: 25px;
  background: #f8f9fa;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.teaser-title {
  margin: 0 0 20px 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
}

/* Embed Container - Responsive aspect ratio */
.teaser-embed-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.teaser-embed-container iframe {
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* YouTube Player */
.youtube-player .teaser-embed-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

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

/* Spotify Player */
.spotify-player .teaser-embed-container iframe {
  min-height: 380px;
}

/* SoundCloud Player */
.soundcloud-player .teaser-embed-container iframe {
  min-height: 166px;
}

/* Apple Music Link Button */
.apple-music-link {
  text-align: center;
  padding: 40px 20px;
}

.apple-music-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #fa233b 0%, #fb5c74 100%);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(250, 35, 59, 0.3);
}

.apple-music-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(250, 35, 59, 0.4);
  color: white;
  text-decoration: none;
}

.apple-music-button:active {
  transform: translateY(0);
}

.apple-music-button svg {
  width: 28px;
  height: 28px;
}

/* Form Input Field for Teaser URL */
.teaser-url-input {
  padding: 10px 15px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.teaser-url-input:focus {
  outline: none;
  border-color: #007cba;
}

.teaser-url-input.invalid {
  border-color: #dc3545;
  background: #fff5f5;
}

.teaser-url-help {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: #666;
}

.teaser-url-error {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: #dc3545;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  .teaser-player {
    padding: 20px 15px;
  }

  .teaser-title {
    font-size: 1.3rem;
  }

  .apple-music-button {
    padding: 14px 28px;
    font-size: 1rem;
  }
}

/* Detail Page Integration */
.artist-detail-body .teaser-player,
.band-detail-body .teaser-player {
  margin-top: 0;
  margin-bottom: 30px;
  background: white;
  border: 1px solid #e0e0e0;
}

/* Profile Page Form Field */
.profile-form-section .teaser-url-group {
  margin-bottom: 20px;
}

.profile-form-section .teaser-url-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}
