/* --- GLOBAL RESET & SETTINGS --- */
* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0; 
  height: 100%;
  width: 100%;
  overflow: hidden;
  font-family: 'Fredoka', sans-serif;
  color: #ffffff;
  background-color: #0f1a16;
  
  background-image: url('background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

main {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center; 
  width: 100%;
  height: 100dvh; 
  padding: 20px;
}

/* --- PANEL --- */
.glass-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  
  width: min(92vw, 480px);
  padding: 4rem 2rem 2rem 2rem; 
  
  background: rgba(0, 0, 0, 0.3); 
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  border-radius: 40px;
  z-index: 20;
}

/* --- INFO BUTTON --- */
.info-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  z-index: 30;
  cursor: pointer;
}
.info-btn:hover { background: rgba(255, 255, 255, 0.2); color: white; }
.info-btn svg { width: 60%; height: 60%; fill: currentColor; }

/* --- INFO OVERLAY --- */
.info-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.info-overlay.is-visible { opacity: 1; pointer-events: auto; }

.info-content {
  position: relative;
  width: min(90vw, 500px);
  max-height: 80vh;
  background: rgba(20, 20, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  color: #fff;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  overflow-y: auto;
}

.info-content h2 { margin-top: 0; font-weight: 400; color: #4CAF50; }
.info-content p { font-weight: 300; line-height: 1.6; margin-bottom: 1rem; }
.info-content h3 { font-size: 1.1rem; margin-top: 1.5rem; margin-bottom: 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); display: inline-block; padding-bottom: 5px; }

.close-btn {
  position: absolute;
  top: 15px; right: 15px;
  background: none; border: none;
  font-size: 1.5rem; color: rgba(255,255,255,0.6);
  cursor: pointer;
}
.close-btn:hover { color: white; }

/* --- STATIC CONTROLS --- */
.static-controls-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px; 
    width: 100%;
    margin-bottom: 10px;
}

/* --- PLAY ASSEMBLY --- */
.play-assembly {
    position: relative;
    width: clamp(130px, 30vw, 160px);
    height: clamp(130px, 30vw, 160px);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px; 
}

.headphones-glass {
  position: absolute;
  width: 380%; 
  height: 380%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none; 
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3)); 
  animation: hoverFloat 6s ease-in-out infinite;
  opacity: 0.25;
}
.headphones-glass svg { width: 100%; height: 100%; }
.headphones-glass path { fill: white !important; opacity: 1 !important; }

@keyframes hoverFloat {
  0%, 100% { transform: translate(-50%, -51%); } 
  50% { transform: translate(-50%, -49%); }       
}

/* --- BUTTONS: GENERAL --- */
button {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  cursor: pointer; 
  touch-action: manipulation;
  background-color: rgba(0, 0, 0, 0.2); 
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

button#play {
  width: 80%; height: 80%; border-radius: 50%;
  color: rgba(255, 255, 255, 0.95);
  transition: transform 0.3s ease, background-color 0.3s; z-index: 2; 
}
button#play:active { transform: scale(0.95); background-color: rgba(0, 0, 0, 0.5); }
button#play svg { width: 40%; height: 40%; fill: currentColor; stroke: none; }

/* --- TRANSPORT CONTROLS --- */
.transport-controls { display: flex; gap: 20px; margin-top: 10px; }

.nav-btn {
    width: clamp(50px, 12vw, 55px); height: clamp(50px, 12vw, 55px);
    border-radius: 50%; color: rgba(255, 255, 255, 0.9);
    opacity: 0; pointer-events: none; transform: translateY(10px);
    transition: all 0.5s ease;
}
.nav-btn.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.nav-btn:active { transform: scale(0.90); background-color: rgba(0, 0, 0, 0.4); }
.nav-btn svg { width: 50%; height: 50%; fill: currentColor; }

/* --- STAY HERE BUTTON --- */
.stay-here-btn {
    display: block; margin: 20px auto 10px auto; padding: 10px 24px;
    width: auto; height: auto; border-radius: 50px;
    background: transparent; border: 1px solid rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Fredoka', sans-serif; font-size: 0.9rem; letter-spacing: 0.05em; text-transform: uppercase;
    opacity: 0; pointer-events: none; transition: all 0.4s ease;
}
.stay-here-btn.is-visible { opacity: 1; pointer-events: auto; }
.stay-here-btn:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.8); color: #fff; }
.stay-here-btn.is-active {
    background-color: #4CAF50; border-color: #4CAF50; color: #ffffff;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.4); font-weight: 500;
}

/* --- TEXT & LOGOS --- */
.text-container { display: flex; justify-content: center; align-items: flex-start; width: 100%; min-height: 80px; }
p.location {
  margin: 0; font-size: clamp(1.2rem, 5vw, 1.6rem); font-weight: 300; line-height: 1.4; 
  letter-spacing: 0.03em; opacity: 0.95; text-shadow: 0 2px 4px rgba(0,0,0,0.4);
  max-width: 100%; transition: opacity 0.5s ease-in-out;
}
p.location.fade-out { opacity: 0; }

.startup-line { opacity: 0; animation: fadeIn 0.6s forwards; }
.line-1 { animation-delay: 0.6s; }
.line-2 { animation-delay: 1.9s; }
@keyframes fadeIn { to { opacity: 1; } }

.headphone-hint {
  margin: 0; margin-top: 1.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: clamp(0.75rem, 2.5vw, 0.85rem); color: rgba(255, 255, 255, 0.5);
  opacity: 0; animation: fadeIn 1s forwards 2.5s;
}

.partner-logo-container {
  position: relative; display: none; width: 100%; text-align: center;
  margin-top: 10px; margin-bottom: 5px; opacity: 0; transition: opacity 0.5s ease;
}
.partner-logo-container.is-visible { display: block; opacity: 1; }
.partner-logo { max-height: 140px; max-width: 85%; width: auto; height: auto; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.4)); }

.corner-logo-container {
  position: absolute; bottom: 0; right: 0; z-index: 10; pointer-events: none; 
  width: clamp(150px, 20vw, 250px); height: clamp(150px, 20vw, 250px);
  padding: 20px; display: flex; align-items: flex-end; justify-content: flex-end; 
  background: radial-gradient(circle at bottom right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 70%);
}
.corner-logo { display: block; width: clamp(80px, 15vw, 120px); height: auto; }

/* --- LANDSCAPE LAYOUT --- */
@media (max-height: 500px) and (orientation: landscape) {
  .glass-panel {
    display: grid;
    grid-template-columns: 45% 55%;
    grid-template-areas: "controls text" "controls logo" "controls stay" "hint hint";
    width: min(85vw, 700px); min-height: min(80vh, 320px); padding: 1.5rem; align-content: center; 
  }
  .static-controls-zone { grid-area: controls; border-right: 1px solid rgba(255, 255, 255, 0.1); padding-right: 1rem; }
  .text-container { grid-area: text; align-self: end; padding: 0 20px; }
  .partner-logo-container { grid-area: logo; align-self: center; margin: 10px 0; }
  .stay-here-btn { grid-area: stay; align-self: start; margin: 0 auto; }
  .headphone-hint { grid-area: hint; }
  
  /* Landscape Info Btn Correction */
  .info-btn { top: 15px; right: 15px; }
}

/* --- MOBILE SMALL --- */
@media (max-width: 600px) and (orientation: portrait) {
  .glass-panel { width: min(88vw, 400px); padding: 2.5rem 1.5rem 1.5rem 1.5rem; }
  .play-assembly { width: 100px; height: 100px; margin-bottom: 25px; }
  p.location { font-size: 1.35rem; }
  .partner-logo { max-height: 110px; }
}