/*
Podcasts
*/

/* Rules related to the introduction block of the podcast page */
/* ul#podcast-sources { */
/*   text-align: left; */
/*   position: absolute; */
/*   left: 0; */
/*   padding-right: 30px; */
/*   transform: translateX(-100%); */
/* } */

/* ul#podcast-sources > li { */
/*   padding-bottom: 5px; */
/* } */

/* ul#podcast-sources > li > a { */
/*   text-transform: uppercase; */
/*   text-decoration: none; */
/*   color: #707070; */
/*   cursor: pointer; */
/* } */


section.history-title {
  padding-top: 100px;
}

.history-title aside {
  flex: 25% 0 0;
}

.history-title main {
  padding-right: 25%;
}

.desc img, .podcast-main img {
  width: 100%;
}

.news-caption {
  text-align: left;
}

.podcast-intro-header {
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  position: relative;
}

.podcast-intro-header-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.podcast-intro-text > p {
  font-size: 16px;
  width: auto;
  flex: 1;
}

/* Everything related to the podcast proper */
.podcast h2, .podcast h2 p {
  margin-bottom: 20px;
  font-size: x-large;
  flex-basis: 100%;
}

.podcast-main {
  margin-left: var(--default-margin);
  width: calc(100% - var(--default-margin));
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  height: max-content;
  align-items: flex-start;
}

.podcast-side {
  flex: 1;
}

.podcast-date {
  display: inline-block;
  margin-bottom: .5rem;
}

.podcast-text {
  flex: 2;
  padding: 0 30px;
}

.podcast-text > p {
  font-size: small;
}

.podcast-link {
  color: #707070;
  text-transform: uppercase;
}
.podcast-link:hover {
  color: black;
}

.podcast-side > .news-caption, .podcast-intro-pic > .news-caption {
  margin: 10px 0;
}

.podcast-player {
  text-align: center;
}

.podcast-player-sources {
  margin-top: 1rem;
}

.podcast-player-sources > li {
  display: inline-block;
}

.podcast-player-sources > li > a {
  text-decoration: none;
  color: #999;
  padding: 0px 5px;
  font-size: 11.5px;
}

.podcast-player-sources > li > a:hover {
  color: black;
}
/**/

/* 
Media queries
*/
@media screen and (max-width: 900px){  
  .podcast-intro-header {
    display: block;
  }

  .podcast-intro-header-wrap, .podcast-title {
    width: auto;
  }

  .podcast-intro-text > p {
    margin: auto;
    margin-bottom: 20px;
  }

  .podcast, .podcast > .main {
    flex-direction: column;
    width: auto;
  }

  .podcast {
    margin: 0px var(--default-margin);
  }

  .podcast-main {
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
    margin: 0;
  }
  
  .podcast-side {
    display: inline-block;
    width: 100%;
  }
  
  .podcast-text {
    order: 3;
    padding: 10px 0px 80px 0px;  
  }

  .podcast-player {
    order: 2;
  }

  .podcast-player-sources {
    margin: 10px 0;
  }
  
  ul#podcast-sources {
    position: initial;
    transform: none;
    padding-right: 0;
  }
  
  #podcast-sources > li {
    text-align: center;
  }
}
/**/


/* PLAYER */
.podcast-player audio {
  display: none;
}
/* container */
.player {
  width: 100%;
  height: 2rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  min-width: 320px;
}

/* elements on the row */
.player > * {
  display: flex;
  align-items: center;
  height: 100%;
}

/* buttons */
.player .play, .player .pause,
.player .soundon, .player .soundoff {
  width: 24px;
  height: 24px;
  display: none;
}

.playing .pause,
.paused .play,
.nosound .soundoff,
.withsound .soundon {
  display: inherit;
}

/* progressbar */
.player .progressbar {
  flex-grow: 6;
  height: 5px;
  background-color: rgba(0, 0, 0, .2);
  border-radius: 30px; /* any value greater that height will do */
  margin-left: 10px;
  position: relative;
}

/* volumebar */
.player .soundcontrol {
  position: relative;
  display: flex;
  justify-content: center;
  flex-direction: column;
}
.player .volumebar {
  border: 5px solid white;    
  width: 15px;
  background-color: rgba(0, 0, 0, 1);
  border-radius: 30px; /* any value greater that width will do */
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  bottom: 30px;
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: height 1s, opacity 1s;
}
.player .soundcontrol:hover .volumebar {
  height: 60px;
  opacity: 1;
  overflow: visible;
}

/* cursors */
.player .cursor {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background-color: #4e4e50;
  position: absolute;
}
.player .progressbar .cursor {
  transform: translateX(-50%);
}

.player .volumebar .cursor {
  transform: translateY(50%);
  bottom: 100%;
}

/* time display */
.player .times {
  display: flex;
  justify-content: center;
}
.player .currentTime,
.player .duration {
  width: 2.8rem;
}
.player .currentTime {
  text-align: right;
}
.player .duration {
  text-align: left;
}

/* playback rates */
.playcontrol {
  position: relative;
}
.playbackrates {
  position: absolute;
  bottom: 30px;
  text-align: center;
  background-color: rgba(255, 255, 255, .8);
  letter-spacing: 0px;
  line-height: 1rem;
  opacity: 0;
  height: 0;
  overflow-y: hidden;
  transition: height 1s, opacity 1s;
}
.playbackrates li {
  cursor: pointer;  
}
.playcontrol:hover .playbackrates {
  height: 4rem;
  opacity: 1;
}

