html, body {
  padding: 0;
  margin: 0;
  height: 100%;
}

body {
  font-family: sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e6e6e6;
  color: #111;
}

@media (prefers-color-scheme: dark) {
  body {
    background: #0f1112;
    color: #e6e6e6;
  }
}

.container {
  width: 100%;
  max-width: 420px;
  margin: 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(250,250,250,0.96));
  padding: 16px;
  height: fit-content;
  box-shadow: none;
  border: none;
  box-sizing: border-box;
}

@media (prefers-color-scheme: dark) {
  .container {
   background: linear-gradient(rgba(90, 90, 90, 0.6), rgba(42, 42, 42, 0.6)) !important;
  }
}

.lock {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.lock.authenticated
  {
    display: none !important;
  }

.lock input.password {
  flex: 1;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.08);
  background: transparent;
  box-sizing: border-box;
  width: 100%;
  text-align: center;
}

.lock button.unlock {
  padding: 10px 12px;
  border-radius: 8px;
  border: none;
  /* background: #111; */
  background: #0b84ff;
  color: #fff;
}

@media (max-width: 480px) {
  .lock { flex-direction: column; }
  .lock input.password { font-size: 18px; padding: 14px; }
  .lock button.unlock { width: 100%; font-size: 18px; padding: 12px; margin-top: 6px; }
  .play { font-size: 20px; padding: 12px; }
}

.hidden { display: none; }

.meta { margin-bottom: 8px; }
.meta .title { font-weight: bold; font-size: 2rem; margin-block: .5rem; }
.meta .author { font-size: 14px; color: rgba(0,0,0,0.6); margin-block: 0.5rem; }

.player { display: flex; flex-direction: column; gap: 8px; }

.play {
  padding: 10px;
  border-radius: 8px;
  border: none;
  background-color: rgb(66, 173, 66);
  color: #fff;
  width: 100%;
  font-size: 18px;
  line-height: 1.2;
  margin-block: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  box-sizing: border-box;
}
.play .pause-icon { display: none; }
.play.playing .play-icon { display: none; }
.play.playing .pause-icon { display: inline-block; }

.seek {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: rgba(0,0,0,0.08);
  border-radius: 6px;
  outline: none;
}
.seek::-webkit-slider-runnable-track { height: 6px; background: rgba(0,0,0,0.08); border-radius: 6px; }


.seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: rgb(66, 173, 66);
  background: rgba(66, 173, 66, 0.7);
  backdrop-filter: blur(20px);
  /* box-shadow: 0 0 0 4px rgba(11,132,255,0.12); */
  border: none;
  margin-top: -.32rem;
  cursor: pointer;
  transition: .9s opacity;
}

.seek::-webkit-slider-thumb:active
  {
    opacity: .7;
  }


.seek::-moz-range-track { height: 6px; background: rgba(0,0,0,0.08); border-radius: 6px; }
.seek::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #0b84ff; border: none; box-shadow: 0 0 0 4px rgba(11,132,255,0.12); }

.actions a .action-icon,
.play .icon svg {
  display: inline-block;
  vertical-align: middle;
  color: inherit;
}

.actions a .action-icon { margin-inline-end: 12px; }

.container .actions a { display: inline-flex; align-items: center; gap: 12px; justify-content: center; }

.time
  {
    margin-top: 0.6rem;
    font-size: 13px; color: rgba(0,0,0,0.6);
  }

.container .actions { display: flex; gap: 12px; margin-top: 2rem; }
.container .actions a
  {
    flex: 1; text-align: center; padding: 10px; border-radius: 8px; text-decoration: none;
    /* background: rgba(0,0,0,0.04); */
    background: rgba(16, 121, 218, 0.44);
    color: inherit; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  }

@media (prefers-color-scheme: dark) {
  .container .meta .author,
  .container .player .time,
  .meta .author,
  .player .time {
    color: rgba(255,255,255,0.65) !important;
  }
}

/* Flat rules for `.container` and common children to avoid nested/CSS-preprocessor
   parsing issues in the browser inspector. These mirror the nested rules above
   but use explicit selectors so editing one rule won't drop others. */
.container
  {
    width: 100%;
    max-width: 420px;
    margin: 16px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(250,250,250,0.96));
    padding: 16px;
    height: fit-content;
    box-shadow: none;
    border: none;
    box-sizing: border-box;
  }

.container .lock
  {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
  }

.container .lock input.password
  {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.08);
    background: transparent;
    box-sizing: border-box;
  }

.container .lock button.unlock
  {
    padding: 10px 12px;
    border-radius: 8px;
    border: none;
    background: #0b84ff;
    color: #fff;
  }

.container .meta
  {
    margin-bottom: 8px;
  }

.container .meta .title
  {
    font-weight: bold;
    font-size: 2rem;
    margin-block: .5rem;
  }

.container .meta .author
  {
    font-size: 14px;
    color: rgba(0,0,0,0.6);
    margin-block: 0.5rem;
  }

.container .player
  {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

.container .player .play
  {
    padding: 10px;
    border-radius: 8px;
    border: none;
    background-color: rgb(66, 173, 66);
    background-color: rgba(66, 173, 66, 0.7);
    color: #fff;
    width: 100%;
    font-size: 18px;
    line-height: 1.2;
    margin-block: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
  }

.container .player .seek
  {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: rgba(0,0,0,0.08);
    border-radius: 6px;
    outline: none;
  }

.container .player .time
  {
    font-size: 13px;
    color: rgba(0,0,0,0.6);
  }

.bouton
  {
    cursor: pointer;
    transition: .7s all;
  }
  
.bouton:active
  {
    opacity: .6;
  }