@font-face {
    font-display: swap;
    font-family: 'Inter';
    font-style: normal;
    src: url(../font/Inter-Variable.ttf);
}

@font-face {
    font-display: swap;
    font-family: 'Inter';
    font-style: italic;
    src: url(../font/Inter-Italic-Variable.ttf);
}

*, *:before, *:after {
  box-sizing: border-box;
}

* {
  font-family: Inter, sans-serif;
}

div.title-wrapper h1, div.title-wrapper h3 {
  margin: 0;
}

body {
  background: #f5f5f5;
}

a {
  text-decoration: none;
  color: #5C7FB8
}

a:hover {
  text-decoration: underline;
}

.movie-card {
  font: 14px/22px "Inter", Arial, sans-serif;
  color: #A9A8A3;
  padding: 40px 0;
}

.container {
  margin: 0 auto;
  width: 780px;
  background: #F0F0ED;
  border-radius: 5px;
  position: relative;
  box-shadow: 0 5px 10px rgba(0, 0, 0, .2);
}

.hero {
  /*height: 342px;*/
  max-height: fit-content;
  margin:0;
  position: relative;
  overflow: hidden;
  z-index:1;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  padding-bottom: 30px;
}

:root {
  --hero-overlay: .7;
}

.hero:before {
  content: '';
  width: 100%;
  height: 100%;
  position: absolute;
  overflow: hidden;
  top:0; left:0;
  /*background:#000;*/
  /*background: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/195612/hobbit_bg.jpg");*/
  z-index:-1;
 
  transform: skewY(-2.2deg);
  transform-origin:0 0;
  
  -webkit-backface-visibility: hidden; 

   background-image:
    linear-gradient(
      rgba(0,0,0,var(--hero-overlay)),
      rgba(0,0,0,var(--hero-overlay))
    ),
    var(--hero-bg);
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-color: #000;     /* falls kein Bild */
  
}

.cover {
  position: absolute;
  /*top: 160px;*/
  bottom: 15%;
  left: 40px;
  z-index: 2;
  width: 200px;
}

div.title1 h1{
  font-size: 44px;
  line-height: normal;
}

.age-rating {
      border-radius: 5px;
      font-size: 14px;
      padding: 0px 4px;
      border: 1.5px solid;
      border-radius: 10px;
      border-color:rgb(216, 215, 215);
      margin-left: 10px;
      margin-right: 10px;
      /*background: #C4AF3D;*/
      /*color: #544C21;*/
    }

.details {
  
  padding: 190px 0 0 280px;
  
  .title1 {
    color: white;
    font-size: 44px;
    margin-bottom: 13px;
    position: relative;
    
  }

  .title2 {    
    color: #C7C1BA;
    font-size: 23px;    
    font-weight: 300;
    margin-bottom: 15px;
  }
  
  
  .likes {
    margin-left: 24px;
  }
  
  
  .likes:before {
    /*content: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/195612/icon_like.png");*/
    position: relative;
    top: 2px;
    padding-right: 7px;
  }

}

.description {
  bottom: 0px;
  /*height: 200px;*/
  font-size: 16px;
  line-height: 26px;
  /*color: #B1B0AC;*/
  color: black;
  display: flow-root;
}

.column1 {
  padding-left: 50px;
  padding-top: 30px;
  width: 220px;
  float: left;
  text-align: center;
}

.tag {
  border: 1.5px solid;
  border-radius: 10px;
  border-color:rgb(216, 215, 215);
  padding: 3px 8px;
  font-size: 14px;
  margin-right: 4px;
  line-height: 35px;
  cursor: default;
}

.column2 {
  padding-left: 41px;
  padding-top: 30px;
  margin-left: 20px;
  width: 480px;
  float: left;
  padding-bottom: 20px;
}

.avatars {
  margin-top: 23px;
  
  img {
    cursor: pointer;
  }
  
  img:hover {
    opacity: 0.6;
  }
  
  a:hover {
    text-decoration: none;
  }
}

fieldset, label { margin: 0; padding: 0; }

/****** Style Star Rating Widget *****/

.rating { 
  border: none;
  float: left;
}

.rating > input { display: none; } 
.rating > label:before { 
  margin: 5px;
  margin-top: 0;
  font-size: 1em;
  font-family: FontAwesome;
  display: inline-block;
  content: "\f005";
}

.rating > .half:before { 
  content: "\f089";
  position: absolute;
}

.rating > label { 
  color: #ddd; 
 float: right; 
}

/***** CSS Magic to Highlight Stars on Hover *****/

.rating > input:checked ~ label, /* show gold star when clicked */
.rating:not(:checked) > label:hover, /* hover current star */
.rating:not(:checked) > label:hover ~ label { color: #FFD700;  } /* hover previous stars in list */

.rating > input:checked + label:hover, /* hover current star when changing rating */
.rating > input:checked ~ label:hover,
.rating > label:hover ~ input:checked ~ label, /* lighten current selection */
.rating > input:checked ~ label:hover ~ label { color: #FFED85;  } 

a[data-tooltip] {
  position: relative;
}
a[data-tooltip]::before,
a[data-tooltip]::after {
  position: absolute;
  display: none;
  opacity: 0.85;
}
a[data-tooltip]::before {
  content: attr(data-tooltip);
  background: #000;
  color: #fff;
  font-size: 13px;
  padding: 5px;
  border-radius: 5px;
  white-space: nowrap;
  text-decoration: none;
}
a[data-tooltip]::after {
  width: 0;
  height: 0;
  border: 6px solid transparent;
  content: '';
}

a[data-tooltip]:hover::before,
a[data-tooltip]:hover::after {
  display: block;
}

a[data-tooltip][data-placement="top"]::before {
  bottom: 100%;
  left: 0;
  margin-bottom: 40px;
}
a[data-tooltip][data-placement="top"]::after {
  border-top-color: #000;
  border-bottom: none;
  bottom: 50px;
  left: 20px;
  margin-bottom: 4px;
}

/*div.production-logo img {
  margin-bottom: 10px;
}*/

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .container {
    width: calc(100% - 24px);
    margin: 0 12px;
    border-radius: 10px;
  }

  .container img {
    padding-top: 16px;
  }

  .hero {
    padding: 20px 16px 64px;
  }
  .hero::before {
    height: 160%;
    top: -25%;
  }

  .cover {
    position: relative;
    top: auto;
    left: auto;
    z-index: 2;
    display: block;
    width: 48vw;
    max-width: 220px;
    min-width: 140px;
    margin: -40px auto 12px;   
  }

  .details {
    padding: 0 16px;
    text-align: left;
  }

  .title1 h1 {
    font-size: clamp(22px, 6vw, 34px);
    line-height: 1.15;
  }

  .title2 {
    font-size: 16px;
    color: #C7C1BA;
    margin-top: 6px;
    margin-bottom: 10px;
  }

  .rating {
    float: none;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
  }
  .age-rating { font-size: 12px; padding: 0 6px; }

  .description {
    display: block;
  }
  .column1,
  .column2 {
    float: none;
    width: auto;
    padding: 0 16px;
    margin: 0;
  }
  .column1 { 
    padding-top: 16px; 
    text-align: left;
  }
  .column2 {
    padding-bottom: 10px;
  }

  .tag {
    line-height: normal;
    display: inline-block;
    margin-bottom: 6px;
  }
}

@media (max-width: 480px) {
  .hero { padding-bottom: 72px; }
  .hero::before { height: 180%; top: -30%; }
  .cover { width: 60vw; }
  .title1 h1 { font-size: clamp(20px, 7vw, 30px); }
}