/* ===================== KAMUK BRAND ===================== */
:root{
  /* Palette */
  --kamuk-red:     #FF4D4F; /* energía y calidez */
  --kamuk-gold:    #FFA726; /* optimismo */
  --kamuk-teal:    #00897B; /* confianza */
  --kamuk-sky:     #81D4FA; /* imaginación */
  --ink:           #111111;
  --muted:         #5f6368;
  --card:          #ffffff;

  /* Layout */
  --radius: 18px;
  --shadow: 0 8px 28px rgba(0,0,0,.10);
}

/* Base */
*{box-sizing:border-box}
html,body{margin:0}
body{
  font-family:Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--ink);
  line-height:1.55;
  /* Fondo con degradado suave amanecer */
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(255,77,79,.12), transparent 60%),
    radial-gradient(900px 520px at 90% 0%, rgba(129,212,250,.18), transparent 60%),
    linear-gradient(180deg, #fffdf8 0%, #fff9f1 100%);
}

img{max-width:100%;height:auto;display:block}
a{color:var(--kamuk-teal);text-decoration:none}
a:hover{text-decoration:underline}

/* Header */
header{
  position:sticky; 
  top:0; 
  z-index:10;
  background:rgba(255,255,255,.8);
  backdrop-filter:saturate(140%) blur(6px);
  border-bottom:1px solid rgba(0,0,0,.06);
}

.nav{
  max-width:1100px;
  margin:0 auto;
  padding:15px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between
}

.logo{
  display:flex;
  gap:10px;
  align-items:center
}

.logo img{
  width:48px;
  height:48px
}

.logo b{
  font-family:'Nunito Sans', system-ui; 
  font-weight:800; 
  font-size:20px; 
  letter-spacing:.2px
}

nav a{
  margin:0 10px;
  font-weight:600;
  transition: color 0.3s ease;
}

nav a:hover{
  color:var(--kamuk-red);
  text-decoration:none;
}

/* Hero */
.hero{
  max-width:1100px;
  margin:42px auto;
  padding:0 20px;
  display:grid;
  grid-template-columns:1.15fr 1fr;
  gap:28px;
  align-items:center
}

h1{
  font-family:'Nunito Sans', system-ui;
  font-weight:800;
  font-size:48px;
  line-height:1.1;
  min-height: 106px;
  margin:.1rem 0 .5rem
}

.tag{
  color:var(--muted);
  margin-bottom:14px
}

.cover{
  border-radius:20px;
  box-shadow:var(--shadow);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.cover:hover{
  transform: translateY(-5px);
}

.cover.changing{
  opacity: 0.6;
}

/* Buttons */
.btn{
  display:inline-block;
  padding:12px 18px;
  border-radius:var(--radius);
  font-weight:700;
  border:2px solid transparent;
  box-shadow:var(--shadow);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor:pointer;
}

.btn:hover{
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 32px rgba(0,0,0,.15);
  text-decoration:none;
}

.btn:active{
  transform: translateY(-1px) scale(1.02);
}

.btn.primary{
  background:var(--kamuk-red);
  color:#fff
}

.btn.primary:hover{
  background:#ff3638;
  transform: translateY(-3px) scale(1.05) rotate(1deg);
  animation: bounce 0.6s ease;
}

.btn.secondary{
  background:#fff;
  border-color:var(--kamuk-gold);
  color:var(--ink)
}

.btn.secondary:hover{
  background:var(--kamuk-gold);
  color:#fff;
  animation: pulse 0.5s ease;
}

.btn.ghost{
  background:transparent;
  border-color:rgba(0,0,0,.08);
  box-shadow:none;
}

.btn.ghost:hover{
  background:rgba(0,0,0,.05);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,.1);
}

/* Fun button animations */
@keyframes bounce {
  0%, 100% { transform: translateY(-3px) scale(1.05) rotate(1deg); }
  50% { transform: translateY(-8px) scale(1.08) rotate(1deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0) translateY(-3px); }
  25% { transform: translateX(-4px) translateY(-3px); }
  75% { transform: translateX(4px) translateY(-3px); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 5px rgba(255,167,38,0.5); }
  50% { box-shadow: 0 0 20px rgba(255,167,38,0.8), 0 0 30px rgba(255,167,38,0.6); }
}

@keyframes pulse-amazon {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 8px 24px rgba(255,77,79,0.3);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(255,77,79,0.5);
  }
}

/* Amazon button highlight effect */
.btn-amazon-highlight {
  animation: pulse-amazon 2.5s ease-in-out infinite;
  position: relative;
}

.btn-amazon-highlight::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: var(--radius);
  background: linear-gradient(45deg, transparent, rgba(255,167,38,0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
}

.btn-amazon-highlight:hover::after {
  opacity: 1;
}

.ctas{
  display:flex;
  gap:10px;
  flex-wrap:nowrap;
  margin-top:20px;
}

/* Sections / cards */
.section{
  scroll-margin-top:80px
}

.grid{
  max-width:1100px;
  margin:32px auto;
  padding:0 20px;
  display:grid;
  gap:20px
}

.card{
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:20px;
  transition: transform 0.3s ease;
}

.card:hover{
  transform: translateY(-3px);
}

h2{
  font-family:'Nunito Sans', system-ui; 
  font-weight:800; 
  font-size:32px; 
  margin:.2rem 0 .6rem
}

/* Tabs */
.tabs{
  display:flex;
  gap:8px;
  margin:10px 0 16px
}

.tab{
  padding:8px 12px;
  border-radius:12px;
  border:2px solid var(--kamuk-gold);
  background:#fff;
  font-weight:800;
  cursor:pointer;
  transition: all 0.3s ease;
}

.tab:hover{
  background:var(--kamuk-gold);
  color:#fff;
}

.tab[aria-selected="true"]{
  background:var(--kamuk-teal);
  border-color:var(--kamuk-teal);
  color:#fff;
}

/* Players & layout */
.player{
  width:100%;
  height:200px;
  border:0;
  border-radius:12px;
  background:#f4f6f7
}

audio{
  width:100%;
  margin-top:10px;
  border-radius:8px;
}

.two{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px
}

.lyrics{
  font-size:15px;
  color:#333;
  margin-top:10px
}

.song-lyrics-container {
  margin-top: 20px;
}

.lyrics-content {
  max-height: 400px;
  overflow-y: auto;
  padding: 15px;
  background: rgba(129, 212, 250, 0.05);
  border-radius: 8px;
  margin-top: 10px;
}

.lyrics-content p {
  line-height: 1.8;
  font-size: 14px;
  color: #444;
  margin: 0;
}

.lyrics-content::-webkit-scrollbar {
  width: 8px;
}

.lyrics-content::-webkit-scrollbar-track {
  background: rgba(0, 137, 123, 0.1);
  border-radius: 4px;
}

.lyrics-content::-webkit-scrollbar-thumb {
  background: var(--kamuk-teal);
  border-radius: 4px;
}

.lyrics-content::-webkit-scrollbar-thumb:hover {
  background: var(--kamuk-gold);
}

/* Video Container Styles */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

/* Future: Multiple video tabs */
.video-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.video-tab {
  padding: 10px 20px;
  background: var(--card);
  border: 2px solid var(--kamuk-gold);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.video-tab:hover {
  background: rgba(255, 167, 38, 0.1);
  transform: translateY(-2px);
}

.video-tab.active {
  background: var(--kamuk-gold);
  color: white;
  border-color: var(--kamuk-gold);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .video-container {
    border-radius: 8px;
  }

  #trailer-subtitle {
    font-size: 14px;
    padding: 0 15px;
  }
}

details summary{
  cursor:pointer;
  font-weight:600;
  transition: color 0.3s ease;
}

details summary:hover{
  color:var(--kamuk-teal);
}

/* Accent badges / tagline */
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:linear-gradient(90deg,var(--kamuk-gold),#FFB84D);
  color:#ffffff;
  padding:8px 16px;
  border-radius:999px;
  font-weight:700;
  font-size:16px;
  text-transform:uppercase;
  letter-spacing:0.5px;
  margin-bottom:12px;
}

/* Activities list - Old styles (kept for compatibility) */
#activities ul{
  list-style:none;
  padding:0;
}

#activities li{
  padding:10px 0;
  border-bottom:1px solid rgba(0,0,0,.06);
  transition: padding-left 0.3s ease;
}

#activities li:hover{
  padding-left:10px;
}

#activities a{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:600;
}

#activities a:before{
  content:'📄';
  font-size:20px;
}

/* New Resources Section Styles */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.resource-card {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.resource-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.resource-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--kamuk-gold), var(--kamuk-teal), var(--kamuk-sky));
  border-radius: 15px;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}

.resource-card:hover::before {
  opacity: 0.3;
}

.resource-btn {
  transition: all 0.3s ease;
  display: inline-block;
}

.resource-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  filter: brightness(1.1);
}

/* Floating animation for cards - Re-enabled for kids */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

/* Animated resource cards for children */
.resource-card {
  animation: float 4s ease-in-out infinite;
  cursor: pointer;
}

.resource-card:nth-child(2) {
  animation-delay: 0.5s;
}

.resource-card:nth-child(3) {
  animation-delay: 1s;
}

.resource-card:nth-child(4) {
  animation-delay: 1.5s;
}

/* Footer */
footer{
  margin:48px 0 60px;
  text-align:center;
  color:var(--muted);
  font-size:14px;
}

/* Loading state */
.loading{
  opacity:0.6;
  pointer-events:none;
}

/* Responsive */
@media (max-width:920px){
  .hero{
    grid-template-columns:1fr;
    text-align:center;
  }
  
  .hero .ctas{
    justify-content:center;
  }
  
  .two{
    grid-template-columns:1fr
  }
  
  h1{
    font-size:40px
  }
  
  h2{
    font-size:28px
  }
  
  .nav{
    flex-direction:column;
    gap:15px;
  }
  
  nav{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:5px;
  }
  
  nav a{
    margin:0 5px;
  }
}

/* Welcome Banner */
.welcome-banner {
  position: sticky;
  top: 76px;
  z-index: 9;
  background: linear-gradient(135deg, var(--kamuk-gold) 0%, var(--kamuk-red) 100%);
  border-bottom: 2px solid rgba(255,255,255,0.3);
  animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.banner-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  color: white;
}

.banner-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.banner-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-grow: 1;
}

.banner-text strong {
  font-size: 16px;
  font-weight: 700;
}

.banner-text span {
  font-size: 13px;
  opacity: 0.95;
}

.banner-links {
  display: flex;
  gap: 15px;
  flex-shrink: 0;
}

.banner-links a {
  color: white;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.2);
  transition: all 0.3s ease;
}

.banner-links a:hover {
  background: rgba(255,255,255,0.35);
  transform: translateY(-2px);
}

.banner-close {
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  padding: 0 8px;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  flex-shrink: 0;
}

.banner-close:hover {
  opacity: 1;
}

.banner-hidden {
  display: none;
}

/* For Parents & Educators Section */
.parents-educators-card .tip-card {
  transition: all 0.3s ease !important;
}

.parents-educators-card .tip-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

@media (max-width:640px){
  h1{
    font-size:32px
  }

  h2{
    font-size:24px
  }

  .ctas{
    flex-direction:column;
  }

  .btn{
    width:100%;
    text-align:center;
  }

  .banner-content {
    flex-wrap: wrap;
    padding: 10px 15px;
  }

  .banner-links {
    width: 100%;
    justify-content: center;
    gap: 10px;
  }

  .banner-links a {
    font-size: 12px;
    padding: 5px 10px;
  }

  .banner-text strong {
    font-size: 14px;
  }

  .banner-text span {
    font-size: 12px;
  }
}

/* Preview Modal Styles */
.preview-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.preview-hidden {
  opacity: 0;
  pointer-events: none;
}

.preview-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.preview-content {
  position: relative;
  z-index: 10000;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  max-width: 90vw;
  max-height: 90vh;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-30px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.preview-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--kamuk-red);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255,77,79,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-close:hover {
  background: #ff3638;
  transform: rotate(90deg) scale(1.1);
}

.preview-img {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.preview-actions {
  text-align: center;
  width: 100%;
}

.preview-actions h3 {
  font-family: 'Nunito Sans', system-ui;
  font-weight: 800;
  font-size: 24px;
  margin: 0 0 8px 0;
  color: var(--ink);
}

.preview-actions p {
  color: var(--muted);
  margin: 0 0 15px 0;
  font-size: 14px;
}

/* Responsive modal */
@media (max-width: 768px) {
  .preview-content {
    padding: 20px;
    max-width: 95vw;
    max-height: 95vh;
  }

  .preview-img {
    max-height: 50vh;
  }

  .preview-actions h3 {
    font-size: 20px;
  }

  .preview-close {
    width: 35px;
    height: 35px;
    font-size: 24px;
  }
}

/* Newsletter Highlight Styles */
.newsletter-highlight {
  background: linear-gradient(135deg, rgba(255,77,79,.15), rgba(255,167,38,.15)) !important;
  border: 3px solid transparent;
  background-clip: padding-box;
  position: relative;
  overflow: hidden;
}

.newsletter-highlight::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(45deg, var(--kamuk-red), var(--kamuk-gold), var(--kamuk-teal), var(--kamuk-sky));
  border-radius: var(--radius);
  z-index: -1;
  opacity: 0.4;
}

.newsletter-highlight:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(255,77,79,0.25);
}

.newsletter-highlight .badge {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

.newsletter-highlight input:focus {
  outline: none;
  border-color: var(--kamuk-red);
  box-shadow: 0 0 0 3px rgba(255,77,79,0.2);
}

.newsletter-highlight button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(255,77,79,0.4);
}

@media (max-width: 640px) {
  .newsletter-highlight input,
  .newsletter-highlight button {
    width: 100%;
    min-width: 100%;
  }
}

/* ===================================
   CERTIFICATE SECTION STYLES
   =================================== */

.certificate-card {
  background: linear-gradient(135deg, rgba(255,167,38,.12), rgba(255,215,0,.08)) !important;
  border: 3px solid transparent;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(255,167,38,0.2);
  padding: 20px 35px !important;
}

.certificate-card::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(135deg, var(--kamuk-gold), var(--kamuk-red), var(--kamuk-teal));
  border-radius: var(--radius);
  z-index: -1;
  opacity: 0.5;
}

.certificate-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 45px rgba(255,167,38,0.3);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.certificate-card .badge {
  animation: certificateBadgePulse 2.5s ease-in-out infinite;
}

@keyframes certificateBadgePulse {
  0%, 100% {
    transform: scale(1) rotate(0deg);
  }
  25% {
    transform: scale(1.1) rotate(-3deg);
  }
  75% {
    transform: scale(1.1) rotate(3deg);
  }
}

#certificate-form input:focus {
  outline: none;
  border-color: var(--kamuk-gold);
  box-shadow: 0 0 0 4px rgba(255,167,38,0.25);
  transform: scale(1.02);
  transition: all 0.3s ease;
}

#certificate-generate {
  background: linear-gradient(135deg, var(--kamuk-gold), #FFD700) !important;
  border: none;
  box-shadow: 0 6px 20px rgba(255,167,38,0.4);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#certificate-generate:hover {
  transform: translateY(-4px) scale(1.05);
  animation: glow 1.5s ease-in-out infinite, bounce 0.6s ease;
}

#certificate-generate:active {
  transform: translateY(-2px) scale(1.02);
}

@media (max-width: 640px) {
  .certificate-card {
    padding: 25px 15px;
  }

  #certificate-title {
    font-size: 22px;
  }

  #certificate-description {
    font-size: 14px;
  }

  #certificate-form input {
    font-size: 15px;
    padding: 12px 15px;
  }

  #certificate-generate {
    font-size: 16px;
    padding: 14px 28px;
  }
}

/* ===================================
   SCROLL ANIMATIONS (FADE-IN)
   =================================== */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.35s ease-out, transform 0.35s ease-out;
}

.animate-on-scroll.fade-in-up {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation delays for sequential elements */
.animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.animate-on-scroll:nth-child(2) { transition-delay: 0.05s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.15s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.2s; }

/* Disable animations on mobile for performance */
@media (max-width: 768px) {
  .animate-on-scroll {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================
   MEMORY GAME
   =================================== */

.memory-game-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.memory-game-container {
  background: linear-gradient(135deg, #FFF5E5 0%, #FFE5E5 50%, #E5F5FF 100%);
  border-radius: 20px;
  padding: 30px;
  max-width: 650px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
}

.memory-game-header {
  text-align: center;
  margin-bottom: 20px;
}

.memory-game-header h2 {
  font-size: 32px;
  margin: 0 0 10px 0;
  color: var(--kamuk-red);
  font-family: 'Nunito Sans', system-ui;
}

.memory-game-header p {
  font-size: 16px;
  color: #666;
  margin: 0;
}

.memory-game-stats {
  display: flex;
  justify-content: space-around;
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.stat-box {
  background: white;
  padding: 12px 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  flex: 1;
  min-width: 120px;
}

.stat-label {
  font-size: 12px;
  color: #999;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 5px;
}

.stat-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--kamuk-teal);
}

#memory-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 25px;
}

.memory-card {
  aspect-ratio: 1;
  perspective: 1000px;
  cursor: pointer;
  position: relative;
}

.memory-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.memory-card.flipped .memory-card-inner {
  transform: rotateY(180deg);
}

.memory-card-front,
.memory-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.memory-card-front {
  background: white;
  transform: rotateY(180deg);
  padding: 10px;
}

.memory-card-front img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.memory-card-back {
  background: linear-gradient(135deg, var(--kamuk-red), var(--kamuk-gold));
  color: white;
}

.card-back-pattern {
  font-size: 48px;
  opacity: 0.3;
}

.memory-card:hover .memory-card-inner {
  transform: scale(1.05);
}

.memory-card.flipped:hover .memory-card-inner {
  transform: rotateY(180deg) scale(1.05);
}

.memory-card.matched .memory-card-inner {
  transform: rotateY(180deg);
}

.memory-card.matched .memory-card-front {
  border: 3px solid var(--kamuk-teal);
  animation: glow-match 0.6s ease;
}

@keyframes glow-match {
  0%, 100% { box-shadow: 0 4px 12px rgba(0, 137, 123, 0.3); }
  50% { box-shadow: 0 0 30px rgba(0, 137, 123, 0.8); }
}

.memory-card.shake {
  animation: shake-card 0.5s ease;
}

@keyframes shake-card {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.memory-game-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.memory-game-controls button {
  flex: 1;
  max-width: 200px;
}

/* Victory Modal */
.memory-victory-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10001;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.victory-content {
  background: linear-gradient(135deg, #FFD700, #FFA726);
  border-radius: 20px;
  padding: 40px;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  color: white;
}

.victory-content h2 {
  font-size: 36px;
  margin: 0 0 10px 0;
  color: white;
}

.victory-emoji {
  font-size: 80px;
  margin: 20px 0;
}

.victory-stats {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
}

.victory-stats p {
  margin: 8px 0;
  font-size: 18px;
  font-weight: 600;
}

.victory-record {
  background: var(--kamuk-red);
  color: white;
  padding: 10px 20px;
  border-radius: 12px;
  margin: 15px 0;
  font-weight: 700;
  display: none;
}

.victory-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

.victory-controls button {
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.victory-controls button:hover {
  transform: scale(1.05);
}

/* Confetti Animation */
.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10002;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  top: -10px;
  animation: confetti-fall 3s linear forwards;
}

@keyframes confetti-fall {
  to {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .memory-game-container {
    padding: 20px;
  }

  .memory-game-header h2 {
    font-size: 24px;
  }

  #memory-game-grid {
    gap: 8px;
  }

  .stat-box {
    min-width: 90px;
    padding: 10px;
  }

  .stat-value {
    font-size: 20px;
  }

  .card-back-pattern {
    font-size: 32px;
  }

  .victory-content {
    padding: 30px 20px;
  }

  .victory-emoji {
    font-size: 60px;
  }
}

/* ===================================
   COLORING GAME
   =================================== */

.coloring-game-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow-y: auto;
}

.coloring-game-container {
  background: linear-gradient(135deg, #FFF9E5 0%, #FFE5F0 50%, #E5F5FF 100%);
  border-radius: 20px;
  padding: 30px;
  max-width: 900px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.coloring-game-header {
  text-align: center;
  margin-bottom: 20px;
}

.coloring-game-header h2 {
  font-size: 32px;
  margin: 0 0 10px 0;
  color: var(--kamuk-red);
  font-family: 'Nunito Sans', system-ui;
}

.coloring-game-header p {
  font-size: 16px;
  color: #666;
  margin: 0;
}

/* Layout horizontal: sidebar + canvas */
.coloring-game-content {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

/* Sidebar con herramientas */
.coloring-tools {
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: rgba(255, 255, 255, 0.6);
  padding: 15px;
  border-radius: 15px;
  border: 2px solid rgba(0, 0, 0, 0.1);
}

/* Área del canvas */
.canvas-area {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.canvas-container {
  text-align: center;
  background: white;
  padding: 10px;
  border-radius: 15px;
  border: 3px solid #333;
}

#coloring-canvas {
  border-radius: 10px;
  background: white;
  cursor: crosshair;
  touch-action: none;
  max-width: 100%;
  height: auto;
}

.tool-section,
.size-section,
.color-section {
  background: rgba(255, 255, 255, 0.7);
  padding: 15px;
  border-radius: 12px;
}

.tool-label {
  font-weight: 700;
  color: #333;
  margin: 0 0 10px 0;
  font-size: 14px;
}

.tool-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tool-btn {
  padding: 10px 16px;
  border: 2px solid #ccc;
  border-radius: 10px;
  background: white;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.tool-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.tool-btn.active {
  border-color: var(--kamuk-teal);
  background: var(--kamuk-teal);
  color: white;
}

.size-buttons {
  display: flex;
  gap: 10px;
}

.size-btn {
  border: 2px solid #ccc;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

#size-small {
  width: 30px;
  height: 30px;
  font-size: 12px;
}

#size-medium {
  width: 40px;
  height: 40px;
  font-size: 18px;
}

#size-large {
  width: 50px;
  height: 50px;
  font-size: 24px;
}

.size-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.size-btn.active {
  border-color: var(--kamuk-teal);
  background: var(--kamuk-teal);
}

.color-palette {
  display: grid;
  grid-template-columns: repeat(3, 35px);
  gap: 6px;
  justify-content: flex-start;
}

.custom-color-picker {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.custom-color-picker input[type="color"] {
  display: none;
}

.color-picker-btn {
  width: 40px;
  height: 40px;
  border: 3px solid #ccc;
  border-radius: 8px;
  background: #FF4444; /* Color inicial, se actualiza dinámicamente */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.2s ease;
  position: relative;
}

.color-picker-btn::before {
  content: '🎨';
  position: absolute;
  text-shadow: 0 0 3px white, 0 0 5px white;
}

.color-picker-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.color-btn {
  width: 35px;
  height: 35px;
  border: 3px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.color-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.color-btn.selected {
  border-color: #333;
  box-shadow: 0 0 0 2px white, 0 0 0 4px #333;
}

/* Selector de imágenes */
.image-selector {
  margin-bottom: 15px;
}

.image-gallery {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.image-gallery-btn {
  width: 80px;
  height: 80px;
  border: 3px solid #ccc;
  border-radius: 10px;
  background: white;
  cursor: pointer;
  padding: 5px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.image-gallery-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.image-gallery-btn .image-checkmark {
  position: absolute;
  top: 5px;
  right: 5px;
  background: var(--kamuk-teal);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
}

.image-gallery-btn.active {
  border-color: var(--kamuk-teal);
  box-shadow: 0 0 0 2px var(--kamuk-teal);
}

.image-gallery-btn.active .image-checkmark {
  display: flex;
}

.image-gallery-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.coloring-game-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
  .coloring-game-container {
    padding: 20px;
    max-width: 95%;
  }

  .coloring-game-header h2 {
    font-size: 24px;
  }

  /* En mobile: layout vertical */
  .coloring-game-content {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .coloring-tools {
    width: 100%;
  }

  #coloring-canvas {
    max-width: 100%;
  }

  .tool-buttons {
    justify-content: center;
  }

  .tool-btn span {
    display: none;
  }

  .tool-btn {
    min-width: 50px;
    justify-content: center;
  }

  .color-palette {
    grid-template-columns: repeat(6, 35px);
    justify-content: center;
  }

  .coloring-game-controls {
    gap: 8px;
  }

  .coloring-game-controls button {
    font-size: 12px;
    padding: 10px 12px;
  }
}

/* ===================== MAZE GAME ===================== */

/* Maze Game Modal */
.maze-game-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  padding: 20px;
}

.maze-game-container {
  background: white;
  border-radius: 20px;
  padding: 30px;
  max-width: 900px;
  width: 100%;
  max-height: 95vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.maze-game-header h2 {
  font-family: 'Nunito Sans', system-ui;
  font-weight: 800;
  font-size: 32px;
  color: var(--kamuk-teal);
  margin: 0;
}

.maze-game-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin: 20px 0;
  padding: 15px;
  background: rgba(0, 137, 123, 0.05);
  border-radius: 12px;
}

.maze-game-stats .stat-item {
  text-align: center;
}

.maze-game-stats .stat-label {
  font-size: 12px;
  color: #666;
  font-weight: 600;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.maze-game-stats .stat-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--kamuk-teal);
  font-family: 'Nunito Sans', system-ui;
}

#maze-game-canvas-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f0f0f0;
  border-radius: 12px;
  overflow: hidden; /* Sin scroll - canvas ya está escalado correctamente */
  min-height: 250px;
  padding: 10px; /* Padding mínimo alrededor del canvas */
}

#maze-game-canvas-wrapper canvas {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Destacar canvas */
  border-radius: 8px;
}

.maze-game-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* Mobile Touch Controls (D-pad) */
.maze-touch-controls {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.dpad-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.dpad-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.dpad-btn {
  width: 64px;
  height: 64px;
  border: none;
  border-radius: 12px;
  background: var(--kamuk-teal);
  color: white;
  font-size: 24px;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  box-shadow: 0 4px 8px rgba(0, 137, 123, 0.3);
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dpad-btn:active {
  transform: scale(0.95);
  box-shadow: 0 2px 4px rgba(0, 137, 123, 0.4);
  background: var(--kamuk-red);
}

.dpad-center {
  width: 64px;
  height: 64px;
}

.maze-game-container.landscape-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  grid-template-areas:
    "header header"
    "stats stats"
    "canvas touch"
    "controls touch";
  align-items: start;
  gap: 16px;
  padding: 20px;
}

.maze-game-container.landscape-layout .maze-game-header {
  grid-area: header;
}

.maze-game-container.landscape-layout .maze-game-stats {
  grid-area: stats;
}

.maze-game-container.landscape-layout #maze-game-canvas-wrapper {
  grid-area: canvas;
}

.maze-game-container.landscape-layout .maze-game-controls {
  grid-area: controls;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 0;
}

.maze-game-container.landscape-layout .maze-game-controls .btn {
  padding: 4px 8px;
  font-size: 11px;
  min-width: auto;
}

.maze-game-container.landscape-layout .maze-touch-controls {
  grid-area: touch;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 12px;
  margin-top: 0;
  align-self: center;
}

.maze-game-container.landscape-layout .dpad-btn,
.maze-game-container.landscape-layout .dpad-center {
  width: 42px;
  height: 42px;
  font-size: 16px;
}

/* Maze Victory Modal */
.maze-victory-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.maze-victory-content {
  background: white;
  border-radius: 24px;
  padding: 40px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
  animation: victoryBounce 0.6s ease-out;
}

@keyframes victoryBounce {
  0% {
    transform: scale(0.5) translateY(-100px);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* Responsive Maze Game */
@media (max-width: 768px) {
  .maze-game-container {
    padding: 20px;
    max-width: 95%;
  }

  .maze-game-header h2 {
    font-size: 24px;
  }

  .maze-game-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .maze-game-stats .stat-value {
    font-size: 16px;
  }

  .maze-game-stats .stat-label {
    font-size: 11px;
  }

  #maze-game-canvas-wrapper {
    min-height: 200px;
    padding: 8px; /* Padding reducido en móvil */
    overflow: hidden;
  }

  #maze-game-canvas-wrapper canvas {
    max-width: 100%;
    width: auto !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); /* Shadow más sutil en móvil */
  }

  .maze-game-controls button {
    font-size: 12px;
    padding: 10px 12px;
  }

  .maze-victory-content {
    padding: 25px;
  }

  #maze-victory-stars {
    font-size: 48px !important;
  }

  .dpad-btn {
    width: 56px;
    height: 56px;
    font-size: 20px;
  }

  .dpad-center {
    width: 56px;
    height: 56px;
  }
}

@media (max-width: 480px) {
  .maze-game-stats {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .dpad-btn {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }

  .dpad-center {
    width: 48px;
    height: 48px;
  }
}

/* ===================== INTERACTIVE GAMES SECTION ===================== */

/* Container for interactive games section */
.interactive-games-section {
  margin: 50px 0;
  padding: 30px 0;
  background: linear-gradient(135deg, rgba(129,212,250,0.05), rgba(0,137,123,0.05));
  border-radius: 20px;
}

.interactive-games-header {
  text-align: center;
  margin-bottom: 35px;
}

.interactive-games-header h3 {
  font-family: 'Nunito Sans', system-ui;
  font-weight: 800;
  font-size: 32px;
  color: var(--kamuk-teal);
  margin: 0 0 8px 0;
}

.interactive-games-subtitle {
  font-size: 14px;
  color: #666;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Games grid container */
.games-grid {
  display: grid;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Game card styles */
.game-card {
  background: white;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Gradient border effect on hover */
.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--kamuk-teal), var(--kamuk-sky));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-card:hover::before {
  opacity: 1;
}

/* Large card for featured game (Maze) */
.game-card-large {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(0,137,123,0.03), rgba(129,212,250,0.03));
}

/* Icon container */
.game-card-icon {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--kamuk-sky), var(--kamuk-teal));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,137,123,0.2);
  position: relative;
  overflow: hidden;
}

.game-card-large .game-card-icon {
  width: 120px;
  height: 120px;
}

.game-card-icon img {
  width: 85%;
  height: 85%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Content area */
.game-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.game-card-title {
  font-family: 'Nunito Sans', system-ui;
  font-weight: 800;
  font-size: 24px;
  color: var(--ink);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.game-card-large .game-card-title {
  font-size: 28px;
}

.game-card-description {
  font-size: 15px;
  color: #555;
  margin: 0;
  line-height: 1.4;
}

/* Badges container */
.game-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0;
}

.game-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,137,123,0.08);
  color: var(--kamuk-teal);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.game-badge-icon {
  font-size: 16px;
}

/* CTA button */
.game-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--kamuk-teal);
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,137,123,0.2);
  align-self: flex-start;
}

.game-card-cta:hover {
  background: #00695C;
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0,137,123,0.3);
}

.game-card-large .game-card-cta {
  padding: 14px 32px;
  font-size: 18px;
}

/* Desktop layout: 2 columns for medium cards */
@media (min-width: 768px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .game-card-large {
    grid-column: 1 / -1;
  }
}

/* Buzz Gamer decoration - hide on tablets and smaller */
.buzz-gamer-decoration {
  display: block;
}

@media (max-width: 900px) {
  .buzz-gamer-decoration {
    display: none;
  }
}

/* Mobile responsive */
@media (max-width: 767px) {
  .interactive-games-section {
    margin: 30px 0;
    padding: 20px 0;
  }

  .interactive-games-header h3 {
    font-size: 26px;
  }

  .interactive-games-subtitle {
    font-size: 12px;
  }

  .game-card {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .game-card-icon {
    width: 90px;
    height: 90px;
  }

  .game-card-large .game-card-icon {
    width: 100px;
    height: 100px;
  }

  .game-card-title {
    font-size: 20px;
    justify-content: center;
  }

  .game-card-large .game-card-title {
    font-size: 24px;
  }

  .game-card-description {
    font-size: 14px;
  }

  .game-badges {
    justify-content: center;
  }

  .game-badge {
    font-size: 12px;
    padding: 5px 10px;
  }

  .game-card-cta {
    align-self: stretch;
    padding: 14px 24px;
  }
}

/* ===============================================
   SING WITH ZIPPY - MUSIC PLAYER SECTION
   =============================================== */

.sing-card {
  background:
    radial-gradient(600px 300px at 100% -10%, rgba(255,77,79,.12), transparent 60%),
    radial-gradient(600px 300px at 0% 110%, rgba(255,167,38,.15), transparent 60%),
    var(--card);
}

/* Spotify Coming Soon Badge */
.spotify-badge {
  background: rgba(30,215,96,0.08);
  border: 2px dashed #1DB954;
  color: #1DB954;
  padding: 18px 25px;
  text-align: center;
  border-radius: 12px;
  font-weight: 600;
  margin: 20px 0 25px 0;
  font-size: 15px;
  transition: all 0.3s ease;
}

.spotify-badge:hover {
  background: rgba(30,215,96,0.12);
  transform: scale(1.02);
}

/* Music Player Card - Spotify Style */
.music-player-card {
  display: flex;
  gap: 30px;
  align-items: center;
  background: linear-gradient(135deg, rgba(255,77,79,0.06), rgba(255,167,38,0.1));
  padding: 35px 30px;
  border-radius: 20px;
  margin: 25px 0;
  border: 2px solid rgba(255,167,38,0.25);
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.music-player-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,167,38,0.1), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.music-player-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(255,77,79,0.15);
  border-color: rgba(255,167,38,0.4);
}

.music-player-card:hover::before {
  opacity: 1;
}

/* Album Cover with Animation */
.album-cover {
  flex-shrink: 0;
  width: 150px;
  height: 150px;
  border-radius: 20px;
  background: linear-gradient(135deg, #FF4D4F 0%, #FFA726 100%);
  padding: 8px;
  box-shadow: 0 8px 24px rgba(255,77,79,0.35), 0 0 0 4px rgba(255,255,255,0.5);
  position: relative;
  overflow: visible;
  transition: all 0.4s ease;
}

.album-cover:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 12px 32px rgba(255,77,79,0.45), 0 0 0 6px rgba(255,255,255,0.7);
}

.album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
}

/* Musical Notes Animation */
.album-cover::before {
  content: "♪";
  position: absolute;
  top: -25px;
  right: -15px;
  font-size: 55px;
  color: var(--kamuk-gold);
  opacity: 0.35;
  animation: musical-note-1 2.5s ease-in-out infinite;
  text-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 10;
}

.album-cover::after {
  content: "♫";
  position: absolute;
  bottom: -20px;
  left: -12px;
  font-size: 45px;
  color: var(--kamuk-red);
  opacity: 0.3;
  animation: musical-note-2 3s ease-in-out infinite reverse;
  text-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 10;
}

@keyframes musical-note-1 {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.25;
  }
  50% {
    transform: translateY(-12px) rotate(8deg);
    opacity: 0.45;
  }
}

@keyframes musical-note-2 {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.2;
  }
  50% {
    transform: translateY(-10px) rotate(-6deg);
    opacity: 0.4;
  }
}

/* Player Content */
.player-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.player-content h3 {
  margin: 0;
  font-size: 24px;
  color: var(--kamuk-red);
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 800;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.player-content audio {
  width: 100%;
  max-width: 550px;
  height: 48px;
  border-radius: 12px;
  outline: none;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,0.1));
  transition: filter 0.3s ease;
}

.player-content audio:hover {
  filter: drop-shadow(0 5px 15px rgba(0,0,0,0.15));
}

/* Lyrics Styling */
#sing .lyrics {
  margin-top: 35px;
  border-top: 2px solid rgba(255,167,38,0.2);
  padding-top: 30px;
}

#sing .lyrics summary {
  cursor: pointer;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(255,167,38,0.08), rgba(255,77,79,0.06));
  border-radius: 14px;
  font-size: 17px;
  font-weight: 600;
  color: var(--kamuk-gold);
  transition: all 0.3s ease;
  border: 1px solid rgba(255,167,38,0.15);
  display: flex;
  align-items: center;
  gap: 10px;
}

#sing .lyrics summary::before {
  content: "📝";
  font-size: 20px;
}

#sing .lyrics summary:hover {
  background: linear-gradient(135deg, rgba(255,167,38,0.15), rgba(255,77,79,0.1));
  transform: translateX(8px);
  border-color: rgba(255,167,38,0.3);
}

#sing .lyrics-content {
  padding: 30px 25px;
  line-height: 1.9;
  color: #555;
  font-size: 15px;
  background: rgba(255,255,255,0.5);
  border-radius: 0 0 14px 14px;
  margin-top: 5px;
}

#sing .lyrics-content p {
  margin: 0;
  white-space: pre-line;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .music-player-card {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
    gap: 25px;
  }

  .album-cover {
    width: 130px;
    height: 130px;
    padding: 7px;
  }

  .album-cover::before {
    font-size: 45px;
    top: -20px;
    right: -12px;
  }

  .album-cover::after {
    font-size: 38px;
    bottom: -18px;
    left: -10px;
  }

  .player-content {
    width: 100%;
  }

  .player-content h3 {
    font-size: 20px;
  }

  .player-content audio {
    max-width: 100%;
    height: 42px;
  }

  .spotify-badge {
    padding: 15px 20px;
    font-size: 14px;
  }

  #sing .lyrics summary {
    padding: 15px 18px;
    font-size: 15px;
  }

  #sing .lyrics-content {
    padding: 25px 20px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .album-cover {
    width: 110px;
    height: 110px;
  }

  .player-content h3 {
    font-size: 18px;
  }
}
