html {
  height:100%;
  margin:0;
  padding:0;
}
body {
  background-color:#353B49;
  color: #ccc;
  font-family: Arial, Helvetica, Sans-Serif;
  padding:0;
  margin:0;
  min-height:100%;
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
}

audio {
  float:left;
  margin-right: 10px;
}

body .episode .header {
  float:left;
  width:300px;
  text-align:center;
  background-color:#222;
  border-radius:8px;
  padding: 30px 10px;
  z-index: 1000;
  position: relative;
  height: calc(100vh - 40px);
  box-sizing: border-box;
  display: flex;
  flex-direction:column;
  gap: 20px;
}

body .episode .header div {
  text-align:center;
}

body .episode .header .filler {
  flex:1
}

body .episode .header img {
  width: 150px;
  height:auto;
  display: block;
  margin: 10px auto;
}

body .episode .header .titleImage img {
  width: auto;
  max-width:100%;
}

body .episode .header img {
  width: 80px;
}

body .episode .header .numberdate > .duration,
body .episode .header .numberdate > .date,
body .episode .header .numberdate > .number
{
    margin: 0 5px;
    display:inline;
}

body .episode .header .numberdate .date {
  white-space:nowrap;
}
body .episode .header .numberdate .duration:before ,
body .episode .header .numberdate .number:before
{
  content: "\002022\0000a0";
}

body .episode .header .numberdate .duration ,
body .episode .header .numberdate .number
{
  margin-left:0
}

body .episode .header .numberdate .rating .stars img {
  margin: 0;
  display:inline;
}

body .episode .header .title {
  color:#eee;
  font-weight: bold;
  font-size: unset;
  margin: unset;
}

body .episode .header .authors {
  font-style: italic;
  font-size: unset;
  margin: unset;
  font-weight: unset;
}

body .episode .header .tags {
  font-size:12px;
}

body > .episode {
  display: flex;
  flex-flow: row nowrap;
  height: 100vh;
  padding: 20px;
  box-sizing: border-box;
}

body .episode .meat video {
  height: 100%;
  margin: 0;
}

body .episode .meat {
  text-align:center;
  top:0px;
  left:0px;
  width: calc(100vw - 340px);
}

body .tags .unselected .class0 { font-size:12px; color:#afafaf; }
body .tags .unselected .class1 { font-size:13px; color:#b4b4b4; }
body .tags .unselected .class2 { font-size:14px; color:#b8b8b8; }
body .tags .unselected .class3 { font-size:15px; color:#bcbcbc; }
body .tags .unselected .class4 { font-size:16px; color:#bfbfbf; }
body .tags .unselected .class5 { font-size:17px; color:#c4c4c4; }
body .tags .unselected .class6 { font-size:18px; color:#c8c8c8; }
body .tags .unselected .class7 { font-size:19px; color:#cccccc; }
body .tags .unselected .class8 { font-size:20px; color:#cfcfcf; }
body .tags .unselected .class9 { font-size:21px; color:#d4d4d4; }
body .tags .unselected .class10 { font-size:22px; color:#d8d8d8; }
body .tags .unselected .class11 { font-size:23px; color:#dcdcdc; }
body .tags .unselected .class12 { font-size:24px; color:#dfdfdf; }
body .tags .unselected .class13 { font-size:25px; color:#e4e4e4; }
body .tags .unselected .class14 { font-size:26px; color:#e8e8e8; }
body .tags .unselected .class15 { font-size:27px; color:#ececec; }
body .tags .unselected .class16 { font-size:28px; color:#efefef; }
body .tags .unselected .class17 { font-size:29px; color:#f4f4f4; }
body .tags .unselected .class18 { font-size:30px; color:#f8f8f8; }
body .tags .unselected .class19 { font-size:31px; color:#fcfcfc; }
body .tags .unselected .class20 { font-size:32px; color:#ffffff; }

.home .top > :first-child {
  width:130px;
  grid-column-start: 1;
  grid-column-end: 1;
  grid-row-start: 1;
  grid-row-end: 3;
}

.home .top > :first-child img {
  width:110px;
  margin:10px;
  height:auto;
}

.home .top h1 {
  display:none;
}

.home .top h2 {
  text-align: center;
  flex-wrap:wrap;
  gap: 0;
}

.home .top {
  text-align:center;
  padding: 0;
  background-color:#222;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  display:flex;
  align-items: center;
  justify-content: space-around;
}

.home .tags {
  margin:0.5em 10%;
  text-align:center;
}

.home .tags .selected {
  border-bottom: 1px solid rgba(255,255,255,0.5);
  padding-bottom: 5px;
  margin-bottom: 5px;
}

.home .tags a {
  color:white;
  padding: 10px;
  text-decoration:none;
  white-space:nowrap;
  vertical-align:middle;
}

.home .tags a:hover {
  text-decoration:underline;
}

.home.genres .tags a:before {
  content:"#";
}

.home .top h2 span {
  display: inline-block;
}

.home .top h2 a {
  display: flex;
  flex-direction:column;
  align-items:center;
  white-space:pre;
  margin: 5px 1vw;
  
  color: #ccc;
  text-decoration: none;
  padding: 5px 10px 10px 10px;
  font-weight: bold;
  border: 1px solid white;
  border-radius: 5px;
  font-size:14px;
}

.home .top h2 a svg {
  height: 40px;
  width: 40px;
}

.home .top h2 a.selected {
  background-color:#ccc;
  color:#222;
}

.home .top h2 a:hover {
  background-color:#fff;
  color:#000;
  text-decoration: underline;
}

.home h1, .home h2 {
  margin: 0 1em;
}

.home .meat {
  gap:20px;
  /*columns: 4;
  column-gap: 1em;*/
  display:grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: 1fr;
  flex:1;
}

/*body.sa fari .home .meat {
  gap:20px;
  column-gap: 1em;
  flex:1;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
}

body.sa fari .home .episode {
  width: 300px;
  max-width:80vw;
  box-sizing: border-box;
}*/

.home {
  margin:2em 8% 2em 8%;
  display: flex;
  flex-direction:column;
  gap: 0;
}

.fillerBeforeFooter {
  flex:1
}

.home pages > div {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 10px;
}

.home pages.borderOnTop > div {
  border-top: 1px solid rgba(255,255,255,0.5);
  padding-top: 5px;

}

.home pages > div > * {
  color: #ccc;
  text-decoration: none;
}

.home pages > div > a {
  color: white;
  text-decoration: none;
}

.home .meat div.episode {
  display:flex;
  flex-direction:column;
  break-inside: avoid;
  position:relative;
}

.home .meat div.episode > a.episode {
  display:flex;
  flex-direction:column;
  color: #ccc;
  text-decoration:none;
  background-color:#222;
  padding:1em;
  break-inside: avoid;
  box-shadow: 1px 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  margin-top: 1em;
  transition: top 0.4s;
  position:relative;
  top:0px;
  gap:0.5em;
  height: 100%;
}

.home .meat div.episode a.episode:hover {
  background-color:#111;
  color: #fff;
  top:-10px;
}

.home .meat .episode:hover .title {
  color: #fff;
}

.home .meat .episode .episode > img {
  width:100%;
  margin-bottom:0.5em;
  height:auto;
  /*transition: translate 0.2s;*/
}
 
.home .meat .episode .pastilles
{
  position:relative;
  margin-top:-1em;
}

.home .meat .episode .pastilles .doubleminute,
.home .meat .episode .pastilles .actu,
.home .meat .episode .pastilles .decryptage
{
  position:absolute;
  width:100%;
}
 
 
.home .meat .episode .pastilles .doubleminute img,
.home .meat .episode .pastilles .actu img,
.home .meat .episode .pastilles .decryptage img
{
  width:40%;
  height:auto;
  position:absolute;
  right: 0;
  bottom: -2em;
}

.home .meat .episode .pastilles .actu img,
.home .meat .episode .pastilles .decryptage img
{
  right: unset;
  left: -10px;
  bottom: -1em;
}
 
.home .meat .episode .id {
  position:absolute;
  z-index:10;
  text-shadow: 1px 1px 4px rgb(0, 0, 0);
}

.home .meat .episode .daterating .date {
  font-size:10px;
  text-align:right;
  white-space: nowrap;
  padding: 0 15px;
}

.home .meat .episode .daterating .duration {
  font-size:10px;
  text-align:center;
  white-space: nowrap;
  padding: 0 15px;
}

.home .meat .episode .daterating .rating {
  text-align:left;
  white-space: nowrap;
  padding: 0 15px;
}

.home .meat .episode .daterating {
  display:flex;
  justify-content: space-between;
  flex-wrap:wrap;
  margin: 0 -15px;
}

.home .meat .episode .title {
  color:#eee;
  font-weight:bold;
}

.home .meat .episode .authors {
  text-align:right;
  font-style: italic;
}

.home .meat .episode .summary {
  font-size:13px;
  color:#aaa;
}

footer {
  background-color: #222;
  color: #eee;
  padding: 1em 2em;
  box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
  display:flex;
  gap:3px 20px;
  justify-content: center;
  box-sizing: border-box;
  flex-wrap:wrap;
  padding-bottom: calc( env(safe-area-inset-bottom, 0) + 1em);
}

footer a {
  color:white;
}

.rating .stars img {
  width:1em ! important;
  height:auto ! important;
}

.rating .stars a {
  width:1em ! important;
  color:gray;
}

.rating .stars .help {
  background-color: rgba(255, 255, 255, 0.5);
  color: #222;
  border-radius: 100%;
  width: 1.2em;
  display: inline-block;
  text-align: center;
  font-size: 12px;
  height: 1.2em;
  font-weight: bold;
  font-family: sans-serif;
  margin-left: 3px;
  vertical-align: top;
  position: relative;
  top: 2px;
  cursor:pointer;
}

@media screen and (max-width: 550px) {
  .home {
    margin:1em 6%;
  }
  .home .meat {
      grid-template-columns: 1fr;
  }
  h1 {
    font-size: 18px;
  }
  h2 {
    font-size: 12px;
  }
  .home .top {
    margin: -1em -6vw 1em -6vw;
    border-radius:0;
  }
}
@media screen and (min-width: 550px) and (max-width: 750px) {
  .home {
    margin:1.5em 7%;
  }
  .home .meat {
	grid-template-columns: 1fr 1fr;
  }
  h1 {
    font-size: 20px;
  }
  h2 {
    font-size: 16px;
  }
  .home .top > :first-child img {
    width:100px;
    margin:5px;
  }
}
@media screen and (max-width: 750px) {
  .home .top h2 a {
    display: flex;
    flex-direction:row;
    padding: 3px 5px;
    font-weight: bold;
    border: 1px solid white;
    border-radius: 3px;
    font-size:12px;
    gap:5px;
  }
  .home .top h2 a svg {
    width: 25px;
    height: 25px;
  }

}
@media screen and (min-width: 750px) and (max-width: 1000px) { 
  .home {
    margin:2em 8%;
  }
  .home .meat {
    grid-template-columns: 1fr 1fr 1fr;
  }
  h1 {
    font-size: 24px;
  }
  h2 {
    font-size: 18px;
  }
  .home .top h2 a {
    font-size:12px;
  }
  .home .top > :first-child img {
    width:100px;
    margin:5px;
  }

}


@media screen and (max-width: 950px) { 
  body .episode .header .filler {
    display:none;
  }
  body .episode .header {
    float:none;
    width:unset;
    display: grid;
    border-radius: 0;
    margin:0;
    padding:10px;
    height:unset;
    grid-template-columns: 80px;
    gap: 10px;
  }
  body .episode .header div {
    text-align: center;
    margin: 0px;
    white-space: nowrap;
    overflow:hidden;
    text-overflow: ellipsis;
  }
  
  body .episode .header a {
    display: block;
    grid-column-start: 1;
    grid-column-end: 1;
    grid-row-start: 1;
    grid-row-end: 4;
  }

  body .episode .header a img {
    width: 75px;
	margin: 0;
  }

  body .episode .header .numberdate {
    grid-column-start: 2;
    grid-column-end: 2;
    grid-row-start: 1;
    grid-row-end: 1;
  }
  

  body .episode .header .title {
    grid-column-start: 2;
    grid-column-end: 2;
    grid-row-start: 2;
    grid-row-end: 2;
  }

  body .episode .header .authors {
    grid-column-start: 2;
    grid-column-end: 2;
    grid-row-start: 3;
    grid-row-end: 3;
  }

  body .episode .header .tags, body .episode .header .titleImage, body .episode .header .summary {
    display:none;
  }
  body .episode .meat video {
    max-height: calc(100vh - 150px);
    margin: 0;
    max-width: 100vw;
  }
  body > .episode {
    flex-flow:column nowrap;
    padding:0;
    gap: 20px;
  }

  body .episode .meat {
    width:auto;
  }
    audio {
	float: none;
    display: block;
    text-align: center;
    margin: 0 auto 10px;
  }

}

@media screen and (max-width: 650px) { 

  body .episode .header .numberdate * {
      margin: 0 5px;
      display:inline;
  }

}