/*
 *= require_tree .
 *= require_self
 */

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #1a1a2e;
  color: #eee;
  overflow-x: hidden;
}

body {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  min-height: 100vh;
}

/* ===== Page Layout ===== */
.page-wrapper {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* ===== Hero Section ===== */
.hero-section {
  text-align: center;
  padding-top: 1rem;
}

.site-title {
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(90deg, #e94560, #ff6b6b, #ffa502);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.subtitle {
  font-size: 1rem;
  color: #8899aa;
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* ===== Meme Container ===== */
.meme-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.meme-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 30px rgba(233, 69, 96, 0.3),
    0 10px 40px rgba(0, 0, 0, 0.5);
  border: 3px solid #e94560;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.meme-frame:hover {
  transform: scale(1.02);
  box-shadow:
    0 0 50px rgba(233, 69, 96, 0.5),
    0 15px 50px rgba(0, 0, 0, 0.6);
}

.meme-image {
  display: block;
  width: 100%;
  max-width: 500px;
  height: auto;
}

.glow-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: #e94560;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  animation: pulse-text 2s ease-in-out infinite;
}

@keyframes pulse-text {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; text-shadow: 0 0 20px rgba(233, 69, 96, 0.6); }
}

/* ===== Player Section ===== */
.player-section {
  width: 100%;
  max-width: 500px;
}

.player-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(233, 69, 96, 0.3);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  backdrop-filter: blur(10px);
}

.player-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.track-icon {
  font-size: 1.3rem;
}

.track-title {
  font-size: 1rem;
  font-weight: 600;
  color: #ddd;
}

.audio-player {
  width: 100%;
  height: 40px;
  border-radius: 8px;
  outline: none;
}

/* Style the audio element for webkit browsers */
audio::-webkit-media-controls-panel {
  background: #2a2a4a;
}

/* ===== Autoplay Notice ===== */
.autoplay-notice {
  margin-top: 0.8rem;
  text-align: center;
}

.autoplay-notice.hidden,
.glow-text.hidden {
  display: none;
}

.play-btn {
  background: linear-gradient(135deg, #e94560, #c0392b);
  color: white;
  border: none;
  padding: 0.7rem 1.8rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(233, 69, 96, 0.4);
  animation: btn-pulse 1.5s ease-in-out infinite;
}

.play-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(233, 69, 96, 0.6);
}

.play-btn:active {
  transform: translateY(0);
}

@keyframes btn-pulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(233, 69, 96, 0.4); }
  50% { box-shadow: 0 4px 25px rgba(233, 69, 96, 0.7); }
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .page-wrapper {
    padding: 1.5rem 1rem 2rem;
  }

  .site-title {
    font-size: 2rem;
  }

  .meme-image {
    max-width: 100%;
  }
}
