body {
  margin: 0;
  background: linear-gradient(to bottom, #000000, #1a1a2e);
  color: white;
  font-family: 'Georgia', serif;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  text-align: center;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 1rem 0;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  body {
    padding: 0.5rem;
  }
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(circle at center, #2e2e66 0%, #000 100%);
  opacity: 0.2;
  z-index: -1;
}

.container {
  max-width: 600px;
  padding: 2rem;
  border: 1px solid #ffffff30;
  border-radius: 20px;
  background-color: #ffffff08;
  box-shadow: 0 0 30px #ffffff10;
  width: 100%;
  box-sizing: border-box;
}

/* Mobile container adjustments */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
    margin: 0 0.5rem;
    border-radius: 15px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0.75rem;
    margin: 0 0.25rem;
    border-radius: 10px;
  }
}

audio {
  width: 100%;
  margin-top: 1.5rem;
}

#poetry {
  margin-top: 1.5rem;
  font-style: italic;
  opacity: 0;
  transition: opacity 2s ease;
}

.album-art {
  width: 100%;
  max-width: 400px;
  border-radius: 20px;
  box-shadow: 0 0 60px #ffffff10;
  transition: transform 0.3s ease;
}
.album-art:hover {
  transform: scale(1.02);
}

button {
  margin-top: 1.5rem;
  background: none;
  color: white;
  border: 1px solid white;
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.3s ease;
  min-height: 44px; /* iOS touch target minimum */
  min-width: 44px;
}

button:hover {
  background: white;
  color: black;
}

/* Mobile button adjustments */
@media (max-width: 768px) {
  button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    margin-top: 1rem;
    width: auto;
    max-width: 100%;
  }
  
  .custom-control {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    min-height: 50px;
  }
  
  .poetic-cta {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    min-height: 50px;
    margin: 1rem auto;
    width: auto;
    max-width: 90%;
  }
}

@media (max-width: 480px) {
  button {
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
  }
  
  .poetic-cta {
    padding: 0.9rem 2rem;
    font-size: 1rem;
  }
}

.brand {
  margin-top: 2rem;
  font-size: 0.9rem;
  opacity: 0.7;
}

.reactions {
  margin-top: 1.5rem;
}

.poetic-cta {
  margin: 0.5rem auto;
  background: linear-gradient(45deg, #ff6b9d, #c44cff);
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 25px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.poetic-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
  background: linear-gradient(45deg, #ff8bb3, #d666ff);
}

.poetic-verse {
  margin-top: 2rem;
  font-style: italic;
  font-size: 1.1rem;
  color: #ffb3d9;
  opacity: 0;
  animation: fadeInVerse 2s forwards;
  text-align: center;
  line-height: 1.6;
}

@keyframes fadeInVerse {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.analytics {
  margin-top: 1rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

#quotes p {
  margin-top: 1rem;
  font-style: italic;
  opacity: 0;
  animation: fadeIn 2s forwards;
}

/* Mobile typography */
@media (max-width: 768px) {
  h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
  }
  
  h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }
  
  .poetic-verse {
    font-size: 1rem;
    padding: 0 0.5rem;
  }
  
  #quotes p {
    font-size: 0.9rem;
    padding: 0 0.5rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }
  
  h2 {
    font-size: 1.1rem;
  }
  
  .poetic-verse {
    font-size: 0.9rem;
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.custom-control {
  background: none;
  border: 1px solid white;
  color: white;
  padding: 0.6rem 1.5rem;
  font-size: 1rem;
  margin-top: 1.2rem;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
}
.custom-control:hover {
  background: white;
  color: black;
}

/* Toast Message Styles */
.toast-message {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: linear-gradient(135deg, #2a2a4a, #1a1a2e);
  color: white;
  padding: 1rem 2rem;
  border-radius: 25px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-style: italic;
  font-size: 1rem;
  z-index: 1000;
  opacity: 0;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  max-width: 90%;
  text-align: center;
}

.toast-message.toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Fan Club Confirmation Animation */
@keyframes shimmerFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.9);
    filter: brightness(0.8);
  }
  50% {
    filter: brightness(1.2);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: brightness(1);
  }
}

.fan-club-confirmation {
  text-align: center;
  color: black;
}

.fan-club-confirmation h3 {
  background: linear-gradient(45deg, #ff6b9d, #c44cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Enhanced Close Button */
.poetic-close-btn {
  padding: 0.6rem 1.5rem !important;
  border-radius: 8px !important;
  background: black !important;
  color: white !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  transition: all 0.3s ease !important;
  font-style: italic !important;
  letter-spacing: 0.5px !important;
  cursor: pointer;
}

.poetic-close-btn:hover {
  background: linear-gradient(45deg, #ff6b9d, #c44cff) !important;
  color: white !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(255, 107, 157, 0.3) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

/* Submit button matching close button styles */
.mythic-submit-btn {
  padding: 0.6rem 1.5rem !important;
  border-radius: 8px !important;
  background: black !important;
  color: white !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  transition: all 0.3s ease !important;
  font-style: italic !important;
  letter-spacing: 0.5px !important;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-height: 44px;
  min-width: 44px;
}

/* Mobile fan club popup adjustments */
@media (max-width: 768px) {
  #fanClubPopup input[type="email"] {
    width: 85% !important;
    padding: 0.75rem !important;
    font-size: 1rem !important;
    border-radius: 8px !important;
    box-sizing: border-box;
  }
  
  .mythic-submit-btn {
    padding: 0.8rem 2rem !important;
    font-size: 1rem !important;
    min-height: 50px !important;
  }
  
  .poetic-close-btn {
    padding: 0.8rem 2rem !important;
    font-size: 1rem !important;
    min-height: 50px !important;
  }
}

@media (max-width: 480px) {
  #fanClubPopup input[type="email"] {
    width: 90% !important;
    padding: 0.8rem !important;
  }
  
  .mythic-submit-btn {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.95rem !important;
  }
  
  .poetic-close-btn {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.95rem !important;
  }
}

.mythic-submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.mythic-submit-btn:hover::before {
  left: 100%;
}

.mythic-submit-btn:hover {
  background: linear-gradient(45deg, #ff6b9d, #c44cff) !important;
  color: white !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(255, 107, 157, 0.3) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

/* Mythic Popup Styles */
.mythic-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(42, 42, 74, 0.9) 0%, rgba(0, 0, 0, 0.95) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  transition: all 0.4s ease;
  backdrop-filter: blur(8px);
}

.mythic-popup-container {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  text-align: center;
  max-width: 500px;
  width: 90%;
  transform: scale(0.8) translateY(20px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 50px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* Mobile popup adjustments */
@media (max-width: 768px) {
  .mythic-popup-container {
    width: 95%;
    padding: 2rem 1.5rem;
    border-radius: 15px;
    max-height: 90vh;
    overflow-y: auto;
  }
  
  .mythic-title {
    font-size: 1.5rem;
  }
  
  .mythic-subtitle {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .mythic-popup-container {
    width: 98%;
    padding: 1.5rem 1rem;
    border-radius: 10px;
  }
  
  .mythic-title {
    font-size: 1.3rem;
  }
  
  .mythic-subtitle {
    font-size: 1rem;
  }
}

.mythic-popup-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, 
    rgba(255, 107, 157, 0.1) 0%, 
    rgba(196, 76, 255, 0.1) 50%, 
    rgba(0, 255, 204, 0.1) 100%);
  border-radius: 20px;
  opacity: 0;
  animation: mythicGlow 3s ease-in-out infinite alternate;
  z-index: -1;
}

.mythic-message {
  margin-bottom: 2rem;
  color: white;
}

.mythic-title {
  font-family: 'Georgia', serif;
  font-size: 1.8rem;
  font-weight: 400;
  margin: 0 0 1rem 0;
  line-height: 1.4;
  letter-spacing: 0.5px;
  opacity: 0;
  transform: translateY(15px);
  animation: mythicFadeInUp 0.8s ease-out 0.3s forwards;
  background: linear-gradient(135deg, #ffffff 0%, #e0e0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mythic-subtitle {
  font-family: 'Georgia', serif;
  font-size: 1.2rem;
  font-style: italic;
  margin: 0;
  line-height: 1.6;
  letter-spacing: 0.3px;
  opacity: 0;
  transform: translateY(15px);
  animation: mythicFadeInUp 0.8s ease-out 0.6s forwards;
  color: rgba(255, 255, 255, 0.9);
}

.mythic-close-btn {
  background: rgba(255, 255, 255, 0.9) !important;
  color: black !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  padding: 0.8rem 2rem !important;
  font-size: 1rem !important;
  font-family: 'Georgia', serif !important;
  font-style: italic !important;
  letter-spacing: 0.5px !important;
  cursor: pointer !important;
  border-radius: 25px !important;
  transition: all 0.3s ease !important;
  opacity: 0;
  transform: translateY(15px);
  animation: mythicFadeInUp 0.8s ease-out 0.9s forwards;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.mythic-close-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.mythic-close-btn:hover::before {
  left: 100%;
}

.mythic-close-btn:hover {
  background: linear-gradient(45deg, rgba(255, 107, 157, 0.8), rgba(196, 76, 255, 0.8)) !important;
  color: white !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 30px rgba(255, 107, 157, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

@keyframes mythicGlow {
  0% {
    opacity: 0.3;
    transform: scale(1);
  }
  100% {
    opacity: 0.6;
    transform: scale(1.02);
  }
}

@keyframes mythicFadeInUp {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced popup show state */
.mythic-popup-overlay.show {
  opacity: 1;
}

.mythic-popup-overlay.show .mythic-popup-container {
  transform: scale(1) translateY(0);
}
