/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1;
}
ol, ul {
  list-style: none;
}
blockquote, q {
  quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ---------- site styles ---------- */

* {
  box-sizing: border-box;
}

body {
  background-color: white;
  color: black;
}

#container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem;
}

nav {
  flex-grow: 1;
  flex-basis: 10rem;
  font-family: Avenir, 'Avenir Next LT Pro', Montserrat, Corbel, 'URW Gothic', source-sans-pro, sans-serif;
  font-size: 1.25em;
}

nav > * + * {
  margin-block-start: 0.5rem;
}

nav a, nav li, nav summary {
  display: block;
  text-decoration: none;
  color: #000;
  cursor: pointer;
}

nav a:hover, nav li:hover, nav summary:hover {
  color: #c50;
  text-decoration: underline;
}

nav a svg {
  vertical-align: -0.125em;
  height: 1em;
  width: 1em;
}

nav a:first-child {
  font-weight: 600;
}

nav summary::marker {
  content: ""
}

summary::after {
  content: " +"
}

details[open] > summary::after {
  content: " -"
}

nav li {
  margin-top: 0.5rem;
  margin-left: 1rem;
}

main {
  flex-basis: 0;
  flex-grow: 999;
  min-inline-size: 75%;
  margin-bottom: 10ex;
}

.seriesList {
  display: grid;
  grid-gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(40ch, 1fr));
}

h2 {
  font-family: Avenir, 'Avenir Next LT Pro', Montserrat, Corbel, 'URW Gothic', source-sans-pro, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

section {
  display: flex;
  border: 1px solid black;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0.125rem 0.125rem 0.125rem rgba(0, 0, 0, 0.25);
}

.seriesList section {
  cursor: pointer;
}

.seriesList section:hover {
  box-shadow: 0.125rem 0.125rem 0.25rem rgba(0, 0, 0, 0.75);
}

.seriesList section:hover label {
  color: #c50;
  text-decoration: underline;
}

section img {
  height: 16ex;
  width: 16ex;
}

.seriesDetails section {
  font-size: 1.25em;
}

section div {
  display: flex;
  flex-direction: column;
  padding: 0.75rem;
}

label {
  font-family: Seravek, 'Gill Sans Nova', Ubuntu, Calibri, 'DejaVu Sans', source-sans-pro, sans-serif;
  font-weight: 600;
  cursor: inherit;
}

section div label {
  font-size: 1.2em;
  margin-block: auto;
}

section ul li {
  font-family: Bahnschrift, 'DIN Alternate', 'Franklin Gothic Medium', 'Nimbus Sans Narrow', sans-serif-condensed, sans-serif;
  display: inline;
  margin-right: 0.5rem;
}

ul li:last-child {
  margin-right: 0;
}

aside {
  font-family: 'Nimbus Mono PS', 'Courier New', 'Cutive Mono', monospace;
}

section div aside {
  font-size: 0.8em;
}

aside :first-child {
  margin-right: 0.5rem;
}

.seriesDetails > * + * {
  margin-block-start: 1.5rem;
}

ol {
  list-style-type: decimal;
  padding-left: 7ch;
}

ol li::marker {
  font-family: 'Nimbus Mono PS', 'Courier New', 'Cutive Mono', monospace;
  font-weight: 600;
}

ol li {
  cursor: pointer;
  border-top: 1px solid white;
  border-bottom: 1px solid white;
  padding: 0.5rem 0;
}

ol li aside {
  margin-top: 0.25rem;
}

ol li:hover {
  border-top: 1px solid black;
  border-bottom: 1px solid black;
}

ol li:hover label {
  color: #c50;
  text-decoration: underline;
}

ol li:hover::marker {
  color: #c50;
}

footer {
  position: fixed;
  bottom: 0px;
  height: 10ex;
  width: 100%;
  background-color: inherit;
  border-top: 2px solid black;
  box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.75);
  padding: 1ex;
  display: flex;
  flex-wrap: nowrap;
}

footer > div {
  flex: 1 1;
  width: 33%;
}

#controls > * {
  vertical-align: middle;
}

.play svg {
  height: 8ex;
  width: 8ex;
}

.seek svg {
  height: 6ex;
  width: 6ex;
}

#controls {
  min-width: 24ex;
  text-align: center;
}

#nowPlaying {
  display: flex;
  flex-wrap: nowrap;
  padding-left: 1ch;
  white-space: nowrap;
  overflow: hidden;
}

#nowPlaying span {
  display: block;
  margin-top: 1ex;
  line-height: 110%;
  overflow: hidden;
  text-overflow: ellipsis;
}

#nowPlaying span:first-child {
  font-family: Bahnschrift, 'DIN Alternate', 'Franklin Gothic Medium', 'Nimbus Sans Narrow', sans-serif-condensed, sans-serif;
}

#nowPlaying span:last-child {
  font-family: Seravek, 'Gill Sans Nova', Ubuntu, Calibri, 'DejaVu Sans', source-sans-pro, sans-serif;
  font-weight: 600;
}

#nowPlaying img {
  height: 7ex;
  width: 7ex;
  flex: 0 0;
  border-radius: 4ex;
  margin-right: 1ex;
  border: 1px solid black;
}

#nowPlaying div {
  flex 1 1;
  overflow: hidden;
}

#nowPlaying.error {
  color: #c00;
}

#nowPlaying.error img {
  background-color: #c00;
  border-color: #c00;
}

#timeVolume {
  font-family: 'Nimbus Mono PS', 'Courier New', 'Cutive Mono', monospace;
  padding-top: 1ex;
  text-align: right;
  padding-right: 1ex;
}

#timeVolume span {
  white-space: nowrap;
}

#timeVolume > * {
  display: block;
  text-align: right;
}

#timeVolume svg {
  height: 1rem;
  width: 1rem;
}

#timeVolume input {
  width: 12ch;
}

button {
  all: unset;
  cursor: pointer;
}

button:active {
  color: #c50;
}

button:disabled, button:active:disabled {
  opacity: 0.5;
  color: inherit;
}

.home {
  max-width: 100ch;
  margin: 0 auto;
}

p {
  font-family: ui-rounded, 'Hiragino Maru Gothic ProN', Quicksand, Comfortaa, Manjari, 'Arial Rounded MT Bold', Calibri, source-sans-pro, sans-serif;
  line-height: 150%;
}

.home > * + * {
  margin-block-start: 1.5rem;
}

h3 {
  font-family: Avenir, 'Avenir Next LT Pro', Montserrat, Corbel, 'URW Gothic', source-sans-pro, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
}

h4 {
  font-family: Avenir, 'Avenir Next LT Pro', Montserrat, Corbel, 'URW Gothic', source-sans-pro, sans-serif;
  font-weight: 600;
}

h2 svg {
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
}

.home .episodes {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.home a {
  color: #c50;
  text-decoration: underline;
}

.home a:hover {
  text-shadow: 0.05rem 0.05rem 0.125rem rgba(0, 0, 0, 0.25);
}

@media only screen and (max-width: 50ch) {
  .seriesDetails section {
    font-size: 1em;
  }
  #nowPlaying {
    display: none;
  }
  .seriesList {
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(30ch, 1fr));
  }
  .seriesList label {
    font-size: 1em;
  }
  #timeVolume span {
    font-size: 0.8rem;
  }
}
