body {
  font-family: arial,sans serif;
  font-size: 11pt;
  margin: 0;
}
main {
  margin: 8px;
}
header, footer {
  padding: 1em;
  clear: both;
  margin: 0px;
  color: #fff !important;
  background-color: #3a3a3a !important;
}
footer {
  margin-top: 16px !important;
}
footer p:first-child {
  margin-top: 0;
}
footer p:last-child {
  margin-bottom: 0;
}
header {
  margin-bottom: 16px !important;
}
header p:first-child {
  margin-top: 0;
}
header p:last-child {
  margin-bottom: 0;
}
header a, footer a {
  color: inherit;
}

header a.logo {
  text-decoration: none;
}
header a.logo img {
  height: 1.15em;
  min-width: 1.15em;
  vertical-align: bottom;
  margin: 0;
  padding: 0;
}
header a:not(:first-of-type) {
  border-left: 1px solid white;
  padding-left: 5px;
}

div.film {
  overflow: hidden;
  margin-top: 0.3em;
  margin-bottom: 0.3em;
  display: block;
}
div.film > p:first-of-type {
  margin-top: 0;
}

a.title {
  text-decoration: none;
}

span.expiration {
  background-color: red;
  border: 1px red solid;
  border-radius: 5px;
  padding: 5px;
}

a.imdb {
  display: inline-block;
  background-color: #f5c518;
  color: black;
  font-weight: bold;
  font-family: Arial, sans-serif;
  padding: 0.2em 0.5em;
  border-radius: 0.5em;
  text-decoration: none;
  font-size: 0.9em;
  letter-spacing: 0.05em;
}
a.wiki {
  font-size: 0.85em;
  display: inline-block;
  background: white;
  aspect-ratio: 1 / 1;
  min-width: 1em;
  padding: 0.2em;
  color: black;
  font-weight: bold;
  font-family: "Georgia", serif;
  text-align: center;
  border: 1px solid black;
  border-radius: 4px;
  text-decoration: none;
}
a.wiki_es { background-color: #f4c7c3; border-color: #f4c7c3; }
a.wiki_en { background-color: #c7d8f4; border-color: #c7d8f4;}

span.genre {
  display: inline-block;
  background-color: grey;
  color: white;
  font-weight: bold;
  font-family: Arial, sans-serif;
  padding: 0.2em 0.5em;
  border-radius: 0.5em;
  font-size: 0.9em;
}

span.drama {
  background-color:blue;
}
span.suspense {
  background-color:black;
}
span.documental {
  background-color:grey;
}
span.cultura {
  background-color:orange;
}
span.western {
  background-color:maroon;
}
span.comedia {
  background-color:green;
}
span.romantica {
  background-color:pink;
}
span.infantil {
  background-color: burlywood;
}
span.terror {
  background-color: red;
}
span.aventuras {
  background-color: blueviolet;
}
span.historico {
  background-color: cadetblue;
}
span.musical {
  background-color: yellowgreen;
}
abbr.duration {
  white-space: nowrap;
  text-decoration: none;
}

#video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: black;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
  padding-top: 2em;
}

#video button {
  top: 0;
  position: fixed;
  left: 0;
  width: 100vw;
  height: 2em;
  padding: 0;
  font-size: 1.2em;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  border: none;
  cursor: pointer;
  z-index: 10;
}

#video video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

img.pais {
  height: 0.7em;
}
abbr.pais {
  text-decoration: none;
}
.filmaffinity {
  aspect-ratio: 1 / 1;
  min-width: 1em;
  padding: 0.2em;
  font-size: 0.9em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #4B8BBE; 
  color: #FFD700;
  font-weight: bold;
  font-family: Arial, sans-serif;
  text-decoration: none;
  border-radius: 4px;
}

div.film > a.poster {
  float: left;
  margin-right: 0.7em;
  margin-bottom: 0.5em;
  margin-top: 0;
  margin-bottom: 0;
  line-height: 0;
}
div.film > a.poster > img {
  max-width: min(150px, calc(50vw - 1.5em));
}

body.cuadricula main div.film {
  display: inline-block;
  margin: 5px;
  padding: 0;
}
body.cuadricula main div.film:not(.expand) > * {
  display: none;
}
body.cuadricula main div.film.expand {
  width: 100%;
  vertical-align: top;
}
body.cuadricula main div.film > a.poster {
  display: block;
  margin-right: 0;
}
body.cuadricula main div.film.expand > a.poster {
  display: inline;
  margin-right: 0.7em !important;
  margin-bottom: 0.5em !important;
}
body.cuadricula main div.film > a.poster img {
  aspect-ratio: 7 / 10 !important;
  width: min(140px, calc(50vw - 1.5em - 10px)) !important;
  border: 1px solid grey;
}
body.cuadricula main div.film.expand > a.poster img {
  width: min(70px, calc(50vw - 1.5em - 10px)) !important;
}
abbr.expiration {
  text-decoration: none;
  aspect-ratio: 1 / 1;
  min-width: 2.3ch;
  text-transform: lowercase;
  padding: 0.2em;
  font-size: 0.9em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-family: monospace;
  font-weight: bold;
  background-color: #F4E1C1; 
  color: #5C4033;
}

p.botonera {
  line-height: 1.8;
}
p.botonera > * {
  line-height: normal;
  vertical-align: middle;
}
