:root {
  --bg-dark: rgb(51, 51, 51);
  --bg-red: rgb(204, 32, 32);
  --bg-white: rgb(238, 238, 238);
  --nav-height: min(15vh, 200px);
  scroll-behavior: smooth;
}
* {
  box-sizing: border-box;
}
html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background-color: var(--bg-white);
  padding: 0;
  font-family: monospace;
}
button {
  border: none;
  background-color: currentColor;
  color: currentColor;
  font-family: inherit;
  font-size: inherit;
  appearance: none;
}
ul {
  padding-left: 1rem;
  list-style-type: none;
}
h1 {
  margin: 0;
  padding: 1em 0;
  text-align: center;
  font-size: calc(1vw + 2rem);
}
h2 {
  margin: 0;
  margin-top: 1rem;
  padding: 0;
  font-size: calc(1vw + 1rem);
}

::marker {
  transition: all 0.3s;
  color: var(--bg-red);
}
.episode-li:hover {
  background-color: var(--bg-dark);
  cursor: pointer;
  color: white;
}
.season-title:hover {
  background-color: var(--bg-dark);
  cursor: pointer;
  color: white;
}
.ep-title {
  max-width: 50vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav {
  display: flex;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
  border-bottom: 1px solid var(--bg-white);
  background-color: var(--bg-red);
  padding: 0 5vw;
  height: var(--nav-height);
  color: var(--bg-white);
  font-size: calc(1vw + 1.3rem);
}
.nav-btn {
  border: 1px solid var(--bg-white);
  border-radius: 1vw;
  padding: 0.5rem 1rem;
}
@media (min-width: 800px) {
  .nav-btn:hover {
    border: 1px solid rgb(206, 76, 76);
    background: var(--bg-white);
    cursor: pointer;
    color: rgb(206, 76, 76);
  }
}
.border-0 {
  border: none;
}

@media (min-width: 800px) {
  .control-btns {
    grid-column: span 2;
  }
}
.card-line {
  width: 100%;
}
.main {
  display: grid;
  align-content: start;
  margin: 0;
  margin-top: var(--nav-height);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' version='1.1' xmlns:xlink='http://www.w3.org/1999/xlink' xmlns:svgjs='http://svgjs.com/svgjs' width='1440' height='300' preserveAspectRatio='none' viewBox='0 0 1440 300'%3e%3cg mask='url(%26quot%3b%23SvgjsMask2144%26quot%3b)' fill='none'%3e%3cpath d='M 0%2c283 C 96%2c244.4 288%2c93.8 480%2c90 C 672%2c86.2 768%2c263.2 960%2c264 C 1152%2c264.8 1344%2c128 1440%2c94L1440 300L0 300z' fill='rgba(204%2c 32%2c 32%2c 1)'%3e%3c/path%3e%3c/g%3e%3cdefs%3e%3cmask id='SvgjsMask2144'%3e%3crect width='1440' height='300' fill='white'%3e%3c/rect%3e%3c/mask%3e%3c/defs%3e%3c/svg%3e");
  background-position: bottom;
  background-repeat: no-repeat;
  background-size: contain;
  padding: 10vh 5vw;
  width: 100vw;
  min-height: 100vh;
}
@media (min-width: 800px) {
  .main {
    align-content: center;
    margin-top: 0;
    min-height: 100vh;
  }
}

/* Episodes */
.episode-grid {
  background-color: var(--bg-red);
}
.episode {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  margin: 0 auto;
  padding: 1rem 2rem;
  width: fit-content;
  gap: 2rem;
}

@media (min-width: 800px) {
  .episode {
    grid-template-columns: 1fr 1fr;
  }
  .episode--odd .episode-card:nth-of-type(3) {
    grid-column: 1 / 3;
  }
}
.episode-card {
  position: relative;
}
.episode-img {
  display: block;
  position: relative;
  border: 1px solid var(--bg-white);
  width: 100%;
  height: auto;
}

@media (min-width: 800px) {
  .episode-img {
    height: 25rem;
  }
}

.episode-label {
  position: absolute;
  top: 0;
  right: 0%;
  transform: translate(0%, -100%);
  z-index: 2;
  border: 1px solid white;
  border-radius: 4px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: none;
  background-color: rgb(46, 46, 46);
  padding: 1px 1px;
  color: white;
  font-size: 1rem;
}
.episode-label::after {
  display: block;
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  border-bottom: 1px solid var(--bg-dark);
}
/* Card */
.card {
  display: flex;
  position: relative;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  border: 1px solid var(--bg-red);
  background: var(--bg-dark);
  padding: 5vh;
  width: min(100%, 50rem);
  color: var(--bg-white);
  font-size: 1rem;
}
@media (min-width: 800px) {
  .card {
    padding-top: 5vh;
    flex-direction: row;
  }
}
.card::after {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid var(--bg-white);
  border-radius: 1rem;
  background-color: var(--bg-red);
  padding: 0.5vw 1vw;
  font-size: 2rem;
  content: 'Links';
}
.card-content {
  display: grid;
  width: 100%;
  text-align: center;
  gap: 1rem;
}
@media (min-width: 800px) {
  .card-content {
    padding-left: 2.5vw;
    text-align: left;
  }
}
.card-img {
  display: block;
  margin: 0;
  margin-bottom: 1rem;
  border: 2px solid currentColor;
  border-radius: 100%;
  padding: 0;
  width: 10rem;
  height: auto;
}
@media (min-width: 800px) {
  .card-img {
    margin-bottom: 0;
  }
}
.card-btns {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  width: 100%;
  font-size: 1.2rem;
  --gap: 1rem;
  --min: 10ch;
}
@media (min-width: 800px) {
  .card-btns {
    flex-direction: row;
    justify-content: space-between;
  }
}
.card-btn {
  transition: background-color 0.3s
    cubic-bezier(0.075, 0.82, 0.165, 1);
  margin: 0.5rem;
  border: 1px solid var(--bg-white);
  background-color: transparent;
  cursor: pointer;
  padding: 10px 17px;
  font-size: 1.2rem;
}
@media (min-width: 1600px) {
  .card-btn {
    padding: 10px;
  }
}
@media (min-width: 1800px) {
  .card-btn {
    padding: 5px;
  }
}
.card-btn-big {
  width: 100%;
}
.card-btn a {
  text-decoration: inherit;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
}
.card-btn:hover {
  background-color: var(--bg-red);
}
/* Nav */
.nav-pullout {
  position: fixed;
  top: var(--nav-height);
  right: 0;
  bottom: 0;
  left: 100%;
  transition: left 0.4s;
  background-color: var(--bg-white);
  padding: 2vh 5vw;
  height: calc(100vh - var(--nav-height));
  overflow-y: scroll;
  z-index: 111;
}
.nav-pullout.active {
  left: 0;
}
.nav-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: calc(1vw + 1.6rem);
}
/* Controls */
.control-btns {
  display: flex;
  width: 100%;
}
@media (min-width: 800px) {
  .control-btns {
    grid-column: span 2;
  }
}
.control {
  transition: all 0.2s;
  margin-bottom: calc(2 * var(--gap));
  border: 1px solid var(--bg-dark);
  background-color: var(--bg-white);
  cursor: pointer;
  padding: 1vh 0;
  width: 100%;
  font-size: 2rem;
}
@media (min-width: 800px) {
  .control:hover {
    border-color: var(--bg-white);
    background-color: var(--bg-dark);
    color: var(--bg-white);
  }
}
