
/* ═══════════════════════════════════════════════
   Reset & base
   ═══════════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 2rem 1rem;
  font-family: Georgia, "Times New Roman", serif;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ═══════════════════════════════════════════════
   Background
   ═══════════════════════════════════════════════ */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  /*background-color: #32a5d2;*/
  background-image: 
  /*linear-gradient(rgba(120, 120, 120, 0.89), rgba(80, 11, 11, 0.75)),*/         url("assets/images/sky.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

/* ═══════════════════════════════════════════════
   Main card (glassmorphism)
   ═══════════════════════════════════════════════ */
main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  margin: 2rem auto;
  padding: 2.5rem 2rem;
  background-color: rgba(200, 200, 200, 0.15);
  border-radius: 12px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ═══════════════════════════════════════════════
   Typography
   ═══════════════════════════════════════════════ */
h1 {
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: normal;
  letter-spacing: 0.05em;
  margin-top: 0;
  margin-bottom: 1.25rem;
  color: #f0f4ff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

h2 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: normal;
  letter-spacing: 0.03em;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #f0f4ff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

main p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.8;
  margin: 0 0 1rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* ═══════════════════════════════════════════════
   Media sections
   ═══════════════════════════════════════════════ */
.media-item {
  width: 100%;
  max-width: 560px;
  margin: 2rem auto;
  text-align: left;
}

.media-title {
  padding: 0.65rem 1rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 8px 8px 0 0;
  font-size: 1rem;
  font-weight: normal;
  margin: 0 0 0;
  overflow-wrap: anywhere;
}

/* ── Video (16:9 aspect-ratio box) ─────────────── */
.video-frame {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 56.25%;
  overflow: hidden;
  background: #000;
  border-radius: 0 0 8px 8px;
}

.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ── Audio ─────────────────────────────────────── */
.audio-image-container {
  display: flex;
  justify-content: center; /* Centers the image horizontally */
  padding: 1.5rem 0;       /* Adds breathing room above and below the photo */
}

.audio-portrait {
  width: 180px;            /* Adjust this to make the portrait larger or smaller */
  height: 240px;           /* Adjust height for a classic portrait ratio */
  object-fit: cover;       /* Prevents the image from looking stretched */
  border-radius: 12px;     /* Matches your main card's rounded corners */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5); /* Gives the photo some depth */
  border: 2px solid rgba(255, 255, 255, 0.2); /* Optional: subtle border */
}
audio {
  display: block;
  width: 100%;
  margin: 0;
  /* CHANGED: Changed border-radius from (0 0 8px 8px) to (8px) 
     so it looks like a standalone player now that the image is between it and the title */
  border-radius: 8px; 
}

/*.audio-photo {
  max-width: 200px;
  height: auto;
  border-radius: 50%;
}*/



/* ── Volume slider ─────────────────────────────── */
.volume-slider {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 0.75rem auto 0;
  cursor: pointer;
  accent-color: #87ceeb;
}

.vol-readout {
  color: #fff;
  font-size: 0.85rem;
  margin-top: 0.3rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* ═══════════════════════════════════════════════
   Small screens
   ═══════════════════════════════════════════════ */
@media (max-width: 480px) {
  body {
    padding: 1rem 0.5rem;
    justify-content: flex-start;
  }

  main {
    margin: 1rem auto;
    padding: 1.5rem 1rem;
  }

  .media-item {
    max-width: 100%;
  }




}
