body {
  background-attachment: fixed;
  background-color: #a6d9f0;
  background-image: url("img/day.bg.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  margin: 0;
  overflow-y: scroll;
  padding: 15px;
}

b {
  font-weight: bold;
}

blockquote {
  clear: both;
}

hr {
  border: 0;
  height: 1px !important;
  background-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.75),
    rgba(0, 0, 0, 0)
  );
}

/* Balise spoiler de fortune */
s {
  background-color: black;
  color: black;
  text-decoration: none !important;
}
s:hover {
  color: white;
}

.btn {
  -moz-appearance: none;
  -webkit-appearance: none;
  background: #fff;
  border-radius: 4px;
  border: 1px solid #d3d6db;
  color: #444;
  cursor: pointer;
  display: inline-block;
  font-size: 14px;
  height: 16px;
  padding: 5px 8px;
  position: relative;
  text-align: center;
  text-decoration: none;
  user-select: none;
  vertical-align: top;
  white-space: nowrap;
}

.live-player {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 8px;
}
.live-player .live-toggle {
  /* Override .btn's fixed height so the icon fits */
  align-items: center;
  box-sizing: border-box;
  display: inline-flex;
  font-size: 16px;
  height: 32px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  vertical-align: middle;
  width: 36px;
}
.live-player .live-volume {
  margin: 0;
  vertical-align: middle;
  width: 120px;
}
.live-player .live-status {
  font-size: 14px;
  opacity: 0.8;
}
.live-player .live-title {
  flex-basis: 100%;
  font-weight: bold;
}
.live-player .live-title:empty {
  display: none;
}

nav {
  display: grid;
  grid-gap: 10px;
}
nav *:focus {
  outline: none;
}
nav a {
  color: inherit !important;
  grid-row: 1;
  padding: 5px 0;
  text-align: center;
  text-decoration: none;
}

#page {
  background-color: #ffffff;
  box-shadow: 0 0 10px 0 rgba(50, 50, 50, 0.75);
  color: #000000;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  max-width: 900px;
  min-height: calc(100vh - 80px);
  padding: 15px;
}
#page > div {
  flex-grow: 1;
}

.main-header {
  background-color: #a6d9f0;
  background-image: url("img/day.ban.jpg");
  background-position: top;
  background-repeat: no-repeat;
  background-size: cover;
  color: #000000;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin-top: 15px;
  padding: 15px;
}
.main-header .logo {
  align-self: center;
  flex: 0;
  padding-right: 15px;
}
.main-header .logo .logo-el {
  display: flex;
  height: 140px;
  justify-content: center;
  margin-bottom: -3px;
  width: 248px;
}
.main-header .logo .logo-el img {
  align-self: center;
  max-height: 140px;
  position: absolute;
}
.main-header .title {
  align-content: center;
  align-items: flex-start;
  display: flex;
  flex: 1;
  flex-flow: column nowrap;
  justify-content: center;
  padding: 15px 0;
  overflow: hidden;
}
.main-header .title h1,
.main-header .title h2 {
  align-self: auto;
  background-color: rgba(255, 255, 255, 0.8);
  display: inline-block;
  flex: 0 1 auto;
  font-size: 30px;
  margin: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 2px 5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.main-header .title h1 {
  font-size: 30px;
  font-weight: bold;
  order: 1;
}
.main-header .title h2 {
  font-size: 20px;
  order: 2;
}
.main-header .title h2 a,
.main-header .title h2 a:visited {
  color: inherit;
}

.main-footer {
  color: #999999;
  font-size: 0.9rem;
  line-height: 1.3rem;
  margin: 30px 0 10px;
  text-align: center;
}
.main-footer a,
.main-footer a:visited {
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
}

.listing-content a {
  color: inherit;
  text-decoration: none;
}

.content {
  margin-top: 20px;
}

.listing-element,
.page-content {
  background: #fff;
}
.listing-element {
  border: 1px solid gray;
  border-radius: 5px;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.24);
  display: flex;
  margin: 10px 0;
  min-height: 90px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.listing-element .cover {
  height: 90px;
  min-height: 90px;
  min-width: 90px;
  width: 90px;
}
.listing-element .text {
  flex-grow: 1;
  padding: 15px;
}
.listing-element .text h4 {
  margin: 0;
}
.listing-element .text blockquote {
  margin: 10px 0;
  border-left: 3px gray solid;
  padding: 5px 10px;
}

.blurred-banner .blurcontainer {
  height: 200px;
  overflow: hidden;
}
.blurred-banner .blurcontainer .blurbackground {
  background-position: center;
  background-size: 125%;
  filter: blur(50px);
  height: 400px;
  margin: -95px -35px;
  position: relative;
  z-index: 1;
}
.blurred-banner .details-content {
  align-content: center;
  align-items: center;
  display: flex;
  flex-flow: row nowrap;
  flex: 1;
  height: 200px;
  justify-content: center;
  margin: -200px 25px 0 25px;
  overflow: hidden;
}
.blurred-banner .details-content .cover {
  height: 150px;
  margin-right: 25px;
  min-height: 150px;
  min-width: 150px;
  width: 150px;
  z-index: 2;
}
.blurred-banner .details-content .details-text {
  align-content: center;
  align-items: flex-start;
  display: flex;
  flex-flow: column nowrap;
  flex: 1;
  height: 200px;
  justify-content: center;
  overflow: hidden;
}
.blurred-banner .details-content .details-text h3,
.blurred-banner .details-content .details-text span {
  background-color: rgba(255, 255, 255, 0.8);
  display: inline-block;
  font-size: 1.1em;
  margin: 0;
  overflow: hidden;
  padding: 2px 5px;
  z-index: 2;
}
.blurred-banner .details-content .details-text h3 {
  font-size: 1.25em;
}

.episode-player {
  clear: both;
  display: block;
  margin: 1rem -1px;
  position: sticky;
  top: -1px;
  width: calc(100% + 2px);
  z-index: 999;
}

.page-content {
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.24);
  padding: 1px 10px;
}
.page-content a,
.page-content a:visited {
  color: #8888ff;
}
.page-content img {
  max-width: 100%;
}
.page-content img:not(.full) {
  max-height: 250px;
}
.page-content ul,
.page-content ol {
  padding: 0 1em;
}
.page-content ul li,
.page-content ol li {
  margin: 5px 15px;
}
.page-content .time-jump {
  cursor: pointer;
  text-decoration: none;
}
.page-content .videoWrapper {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 */
  padding-top: 25px;
  height: 0;
}
.page-content .videoWrapper video,
.page-content .videoWrapper object,
.page-content .videoWrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.page-content .twitter-tweet {
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 719px) {
  body {
    padding: 0;
  }

  #page {
    min-height: calc(100vh - 30px);
  }

  .main-header {
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
  }
  .main-header .logo {
    max-width: 100%;
    padding: 0;
    width: 248px;
  }
  .main-header .logo .logo-el {
    margin-bottom: -5px;
    max-width: 100%;
  }
  .main-header .logo .logo-el img {
    max-width: calc(100vw - 45px);
  }
  .main-header .title {
    flex: initial;
    padding-top: 0;
  }
  .main-header .title .url {
    display: none;
  }

  .blurred-banner .blurcontainer {
    display: none;
  }
  .blurred-banner .details-content {
    height: auto;
    margin: 0;
  }
  .blurred-banner .details-content .cover {
    display: none;
  }
  .blurred-banner .details-content .details-text {
    height: auto;
  }
  .blurred-banner .details-content .details-text h3,
  .blurred-banner .details-content .details-text span {
    background-color: transparent !important;
    padding: 2px 0;
  }
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: #131313;
    background-image: url("img/night.bg.jpg");
  }

  #page {
    background-color: #292829;
    color: #ffffff;
  }

  .btn {
    background: #444;
    border-color: #444444;
    color: #fff;
  }

  hr {
    background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 0),
      rgba(255, 255, 255, 0.75),
      rgba(255, 255, 255, 0)
    );
  }

  s {
    background-color: white;
    color: white;
    text-decoration: none !important;
  }
  s:hover {
    color: black;
  }

  .main-header {
    background-color: #292829;
    background-image: url("img/night.ban.jpg");
  }

  .listing-element,
  .page-content {
    background-color: #333333;
  }

  .blurred-banner .details-content .details-text h3,
  .blurred-banner .details-content .details-text span {
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
  }

  .page-content a,
  .page-content a:visited {
    color: #8888ff;
  }
}
