body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  background: #0d0d0d;
  color: #ffffff;
  font-family: "Work Sans", Helvetica, Arial, sans-serif;
}

body, button, input {
  font-family: "Work Sans", Helvetica, Arial, sans-serif;
}

h1, h2, p, span, button, .status, #statusText {
  -webkit-text-stroke: 0.5px #FFF;
}

main{
  width: 100%;
}

img{
  width: 100%;
}

.logo {
  margin: 0;
  text-align: center;
  width: 50%;
  margin: auto;
  transform: rotate(-5deg);
}

.radio_description{
  text-align: center;
  padding: 40px 30px;
  margin-bottom: 40px;

}

.radio_description h2{
  font-weight: normal;
  text-transform: uppercase;
  font-size: 20px;
  margin: 0;
}

.radio_description p{
  margin:0;
}

/* player */
.player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* effet diffusion sur le bouton */
.stage {
  position: relative;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid #ffffff;
  border-radius: 50%;
  opacity: 0;
}

.player[data-state="playing"] .ring {
  animation: ripple 3s ease-out infinite;
}

.player[data-state="playing"] .ring-2 {
  animation-delay: 0.7s;
}

.player[data-state="playing"] .ring-3 {
  animation-delay: 1.4s;
}

@keyframes ripple {
  0% {
    transform: scale(0.8);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

.play-button {
  position: relative;
  width: 110px;
  height: 110px;
  border: 5px solid #000000;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 6px 8px 0 #000000;
  cursor: pointer;
}


.icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
}

.play-button[data-icon="play"] .icon-play {
  display: block;
}

.play-button[data-icon="pause"] .icon-pause {
  display: flex;
}

.play-button[data-icon="loading"] .icon-loading {
  display: flex;
}

.icon-play {
  width: 0;
  height: 0;
  margin-left: 6px;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 22px solid #000000;
}

.icon-pause {
  gap: 6px;
}

.icon-pause span {
  width: 8px;
  height: 28px;
  background: #000000;
}

.icon-loading {
  gap: 5px;
}

.icon-loading span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #000000;
  animation: blink 1s ease-in-out infinite;
}

.icon-loading span:nth-child(2) {
  animation-delay: 0.15s;
}

.icon-loading span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes blink {
  0%, 100% {
    opacity: 0.2;
  }
  50% {
    opacity: 1;
  }
}

/* status line: red dot + text */

.status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #777777;
}

.player[data-state="playing"] .dot {
  background: #ff3b30;
  animation: pulse 1.5s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.6);
  }
  100% {
    box-shadow: 0 0 0 10px rgba(255, 59, 48, 0);
  }
}

/* volume */

.volume {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mute-button {
  width: 30px;
  height: 30px;
  border: none;
  background: none;
  color: #ffffff;
  cursor: pointer;
}

.mute-button svg {
  width: 22px;
  height: 22px;
}

.mute-button .icon-mute-on {
  display: none;
}

.mute-button[aria-pressed="true"] .icon-mute-off {
  display: none;
}

.mute-button[aria-pressed="true"] .icon-mute-on {
  display: block;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 150px;
  height: 16px;
  background: transparent;
  cursor: pointer;
  --volume: 100%;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    #ffffff 0%,
    #ffffff var(--volume),
    rgba(255, 255, 255, 0.25) var(--volume),
    rgba(255, 255, 255, 0.25) 100%
  );
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -6.5px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #000000;
  box-shadow: 2px 2px 0 #000000;
  cursor: pointer;
  transition: transform 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

input[type="range"]::-moz-range-track {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
}

input[type="range"]::-moz-range-progress {
  height: 3px;
  border-radius: 999px;
  background: #ffffff;
}

input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #000000;
  box-shadow: 2px 2px 0 #000000;
  cursor: pointer;
  transition: transform 0.15s ease;
}

input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.15);
}

input[type="range"]:focus {
  outline: none;
}

input[type="range"]:focus::-webkit-slider-thumb {
  box-shadow: 2px 2px 0 #000000, 0 0 0 3px rgba(255, 255, 255, 0.35);
}

input[type="range"]:focus::-moz-range-thumb {
  box-shadow: 2px 2px 0 #000000, 0 0 0 3px rgba(255, 255, 255, 0.35);
}

/* rediffusion */
.rediffusion {
  width: 100%;
  margin: 0 auto;
  padding: 30px 40px;
  box-sizing: border-box;
  border-top: 2px solid #FFF;
  margin-top: 40px;
  margin-bottom: 100px;
} 

.rediffusion_title {
  font-weight: normal;
  text-transform: uppercase;
  font-size: 18px;
  text-align: center;
  margin: 2rem 0 3rem;
  
}

.rediffusion_title span{
  padding: 10px 30px;
  border: 2px solid #FFF;
  border-radius: 100px;
  position: relative;
  background: #000;
}

.episode-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.episode {
  padding: 30px 10px;
  border-bottom: 1px solid #FFF;
  width: 85%;
  margin: auto;
}

.episode_description{
  margin-top: 0.9rem;
  font-size: 1.1em;
  line-height: 1.4;
  width: 50%;
  min-width: 320px;
}

.episode_info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.episode_title {
  font-weight: 500;
  font-size: 20px;
  margin: 0;
  -webkit-text-stroke: 0;
}

.episode_date {
  font-size: 16px;
  color: #FFF;
  white-space: nowrap;
}

.episode audio {
  width: 100%;
  filter: invert(1) grayscale(1) contrast(1.2);
  border-radius: 999px;
}

/* responsive smartphone */
@media (max-width: 600px) {
  body {
    gap: 2rem;
    padding: 0 1rem;
    box-sizing: border-box;
  }

  .radio_description {
    position: static;
    padding: 0;
    margin-top: 1rem;
    font-size: 14px;
    text-align: center;
  }

  .logo {
    width: 75%;
  }

  .player {
    gap: 1.25rem;
  }

  .stage {
    width: 110px;
    height: 110px;
  }

  .play-button {
    width: 80px;
    height: 80px;
    border-width: 4px;
    box-shadow: 4px 5px 0 #000000;
  }

  .icon-play {
    margin-left: 4px;
    border-top-width: 10px;
    border-bottom-width: 10px;
    border-left-width: 16px;
  }

  .icon-pause span {
    width: 6px;
    height: 20px;
  }

  .icon-loading span {
    width: 6px;
    height: 6px;
  }

  .status {
    font-size: 14px;
  }

  input[type="range"] {
    width: 120px;
  }

  .episode{
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .episode_left{
    width: 100%;
  }

  .episode_description{
    width: 100%;
  }

  .rediffusion{
    padding-left: 0;
    padding-right:0;
  }
}
