@import url("https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,300;1,300&display=swap");

:root {
  --black: #121212;
  --black-sub: #1f1f1f;
  --yellow: #ff7a00;
  --yellow-status: #fbb728;
  --white: #ffffff;
  --black-key: #202020;
  /* --black: #192a56; */
  --light-color: #666;
  --box-shadow: 0 0.5rem 1.5rem rgba(255, 255, 255, 0.3); /*đổ bóng */
}

* {
  font-family: "Cabin", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  outline: none;
  border: none;
  transition: all 0.2s linear;
}

html {
  font-size: 62.5%; /*62,5% = 10px=1rem*/
  overflow-x: hidden; /* khong tran ra ngoai */
  scroll-padding-top: 5.5rem;
  /* thanh cuộn cách phía tren 5.5 */

  scroll-behavior: smooth;
  /* xd thanh cuộn chạy mượp mà chứ k nhảy thẳng */
}
body {
  /* width: 1440px; */
  background-color: #000;
  background-image: url("../images/background.png");
  background-repeat: no-repeat;
  background-size: cover;
  /* text-align: center; */
}

.container {
  /* max-width: 1320px; */
  margin: 0px auto;
}

header .flex {
  justify-content: space-between;
}
header {
  background-color: var(--black);
  justify-content: center;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 6rem;
  z-index: 1;

  line-height: 6rem;
}

#search-form {
}
h1,
nav li,
nav {
  display: inline-block;
  list-style-type: none;
}

.container {
  position: relative;
}
header .menu-bars {
  width: 1.5rem;
  height: 1.5rem;
  position: absolute;
  right: 0;
}

h1 {
  font-size: 2rem;
  color: var(--yellow);
  text-transform: uppercase;
  text-shadow: var(--box-shadow);
  /* display: inline-block; */
}
/* nav */
nav li {
  text-transform: uppercase;
  font-size: 1.2rem;
  padding: 0rem 1rem;
}
nav .menu > li {
  position: relative;
}
header .sub-menu li {
  border-top: 1px solid #dddddd38;

  padding: 0.2rem 2rem;
  display: block;
  line-height: 3rem;
}

.sub-menu {
  border-radius: 0.5rem;
  width: max-content;
  background-color: var(--black-key);
  position: absolute;
  left: 0rem;
  top: 6.1rem;
  line-height: 0rem;
  display: none;
}
.menu > li:hover {
  border-bottom: 1px solid var(--yellow);
}
a:hover,
.real-name:hover,
.menu > li:hover > a {
  color: var(--yellow);
}
h3:hover,
.real-name:hover {
  letter-spacing: 0.5rem;
}
.menu > li:hover .sub-menu {
  display: inline-block;
}
/* search-bar */
header .search-bar {
  justify-content: center;
  width: 21rem;
  height: 3rem;
  margin: 1.5rem 0;
  background-color: var(--black);
  border: 1px solid #323232;
  border-radius: 6rem;
}

.i-close,
.i-bt,
.i-open {
  display: none;
}
.search-bar i,
.search-bar input {
  color: var(--white);
  font-size: 1.3rem;
  background-color: var(--black);
}

.search-bar #search-box::placeholder {
  font-family: "Roboto";
  font-style: italic;
}
header .search-bar button {
  padding: 0;
  background-color: var(--black);
}

.i-close,
.i-open,
header #i-search {
  margin-top: 0.9rem;
  cursor: pointer;
  margin-left: 0.5rem;
  height: 4rem;
  line-height: 4rem;
  width: 4rem;
  text-align: center;
  font-size: 1.5rem;
  color: var(--black);
  border-radius: 50%;
  background: var(--yellow);
}
#search-form {
  display: none;
}
#search-form i {
}
.call-form:checked ~ #search-form {
  display: flex;
}

/* main */

main .container {
  margin-top: 10rem;
}
/* comnon main */
a {
  text-decoration: none;
  color: var(--white);
}
.flex {
  display: flex;
}
.grid {
  display: grid;
  gap: 1.6rem;
}
.grid-col-4 {
  grid-template-columns: repeat(4, auto);
  grid-auto-rows: auto;
}
.grid-col-3 {
  grid-template-columns: repeat(3, auto);
  grid-auto-rows: 19rem;
}
.item-banner {
  grid-column: 1/3;
  grid-row: span 2;
}
/* caption comnon */
.caption {
  margin: 5rem 0 1.5rem;
  text-transform: capitalize;
}
.caption h2 {
  margin-left: 1.6rem;
  font-size: 2.4rem;
  color: var(--yellow);
  display: inline-block;
}
.view-all {
  margin: 0px 0.6rem 0px 1.5rem;
  text-transform: uppercase;
}

/* end caption comnon */
/*begin   comnon : film-item >overlay, movie-detailst, sub-film-item ieu đề chi tiết phim   */
.sub-film-item,
.film-item {
  /* background-color: #ff7a00; */
  position: relative;
  text-transform: capitalize;
}
/* .sub-film-item img, */
.film-item img {
  width: 100%;
  height: 100%;
}
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000000 118.3%);
}
.film-item .title-episode {
  font-size: 1.3rem;
  padding: 0.3rem 0.8rem;
  background-color: var(--yellow-status);
  color: var(--black);
  position: absolute;
  top: 1rem;
  left: 1rem;
}
.title-episode:hover {
  letter-spacing: 0.3rem;
}
.film-item .movie-details {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
}
.sub-film-item {
  background-color: var(--black-sub);
  margin-left: 1.5rem;
  border-bottom: 1px solid var(--black);
}
.sub-film-item .movie-details {
  position: absolute;
  left: 9.6rem;
  bottom: 1.5rem;
  /* op: 1.5rem; */
}
.sub-film-item .movie-details .real-name {
  margin-bottom: 1.5rem;
}
.sub-film-item .movie-details h3 {
  font-size: 1.3rem;
}
.movie-details {
  color: #ffffff;
  /* font-size: 1.4rem; */
}
.movie-details h3 {
  font-size: 1.6rem;
}
.movie-details .real-name {
  padding: 0.5rem 0;
  font-style: italic;
}
.movie-details .view {
  font-size: 1.2rem;
  margin-right: 1.5rem;
}
.real-name,
.i-star,
.i-next,
.view-all,
.view {
  color: var(--white);
  display: inline-block;
}

.view-all,
.i-next {
  color: #ffffff;
  font-size: 1.3rem;
}
.i-star {
  color: #f7b236;
  width: 0.8rem;
  height: 0.763rem;
  margin-left: 0.2rem;
  font-size: 0.9rem;
}
/*end   comnon : film-item >overlay, movie-detailstieu đề chi tiết phim   */

/* begin featured-movies phim nổi bật*/

#featured-movies {
  /* justify-content: center; */
  gap: 1.6rem;
}

#featured-movies .item-banner .movie-details {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
}

/* short movies */
#short-movies {
  width: 100%;
}
.short-movies-new {
  width: 74.68%;
}
.short-movies-hot {
  width: 25.32%;
  /* height: max-content; */
}
.short-movies-hot .flex {
  flex-direction: column;
}

#sub-short-movies.flex {
  margin-top: 0.5rem;
  width: 100%;
  gap: 2.5rem;
  justify-content: space-between;
}
#sub-short-movies a {
  width: 25%;
}
#sub-short-movies img {
  width: 100%;
}

#small-frame .flex {
  gap: 1.5rem;

  justify-content: space-between;
}

#keyword {
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-evenly;
}
#keyword .key {
  padding: 0.4rem 1rem;
  color: var(--white);
  font-size: 12px;
  background-color: #202020;
  border-radius: 2px;
}
hr {
  height: 0.15rem;

  background-color: var(--light-color);
}
/* end */
/* footer */
footer {
  font-family: "Roboto";
  font-weight: 400;
  font-size: 13px;
  line-height: 22px;
  padding: 4rem 0;
  color: var(--white);
}
footer ul.flex {
  flex-wrap: wrap;
  gap: 2rem;
}

/* end footer */
/* mobi */
@media screen and (max-width: 577px) {
  .container {
    /* max-width: 540px; */
    max-width: calc(100% - 1rem);
  }
  html {
    font-size: 58.5%;
  }
  /* header */
  /* hidden class */
  /* sử lý thanh menu */

  header #i-search {
    display: none;
  }

  h1 {
    padding: 0px 1rem;
  }
  nav {
    display: none;
  }
  header nav .menu {
    position: absolute;
    top: 6rem;
    left: 0;
    right: 0;
    flex-direction: column;
    display: flex;
    background-color: var(--black);
  }
  header nav .menu > li {
    flex: 0 0 100%;
  }
  #search-form {
    position: absolute;

    top: 6rem;

    justify-content: space-between;
    padding: 0rem 1rem;
    display: none;
  }
  #call-open:checked ~ #search-form {
    display: flex;
  }
  #call-open:checked ~ nav {
    display: block;
  }
  #call-open:checked ~ nav .menu {
    /* display: flex; */
  }
  /* header show class */

  /* .i-close, */
  .i-close,
  .i-open {
    margin-right: 1rem;
  }
  .i-bt,
  .i-open {
    display: block;
  }
  /* main */
  .gird-col-s-2 {
    grid-template-columns: repeat(2, auto);
  }
  #short-movies {
    flex-direction: column;
  }
  .short-movies-new,
  .short-movies-hot {
    width: 100%;
  }

  #sub-short-movies.flex {
    flex-wrap: wrap;
    gap: 2rem;
  }
  #sub-short-movies.flex a {
    width: 100%;
  }
  #small-frame .flex {
    flex-wrap: wrap;
  }
}
/* su lý check optione với icon close và icon menu  */
#call-open:checked ~ .i-open {
  display: none;
}
#call-open:checked ~ .i-close {
  display: inline-block;
}

#i-search:hover,
.i-open:hover,
.i-open:hover {
  transform: rotate(360deg);
}

/* tablet */
@media screen and (min-width: 577px) and (max-width: 992px) {
  .container {
    width: calc(100% - 7rem);
  }
  html {
    font-size: 62.5%;
  }
  /*class: show  */
  /* header show */
  #search-form {
    display: flex;
    position: absolute;
    top: 0;
    right: 0;
  }

  .i-close,
  .i-open {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-block;
  }

  header h1 {
    transform: translateX(calc(250%));
  }

  .i-bt {
    display: block;
  }
  header .container.flex {
  }
  #call-open:checked ~ nav .menu {
    display: flex;
    flex-direction: column;
    align-content: flex-start;
  }

  /* class: hidden */
  /* header hidden */
  .i-close,
  header #i-search {
    display: none;
  }

  header nav .menu {
    width: 100%;
    position: absolute;
    top: 6rem;
    left: 0;

    background-color: var(--black-key);
    flex-wrap: wrap;
    justify-content: space-between;
    display: none;
  }
  header nav ul li a {
    font-size: 1.5rem;
    padding: 1rem;
  }

  /*main  */
  /* main show */
  .gird-col-m-3 {
    grid-template-columns: repeat(3, auto);
  }

  #short-movies {
    flex-direction: column;
  }
  .short-movies-new {
    width: 100%;
  }

  .short-movies-hot .flex {
    gap: 1.2rem;
    flex-direction: row;
  }
  .short-movies-hot {
    width: 100%;
  }
  .sub-film-item {
    margin-left: 0;
    width: 25%;
  }
  .sub-film-item .movie-details {
    position: absolute;

    bottom: 0;
    left: 0.7rem;
  }
  .sub-film-item img {
    opacity: 0.4;
    width: 100%;
    height: 100%;
  }
  .movie-details {
  }
  .sub-film-item .movie-details h3 {
    font-size: 1.2rem;
  }
  .sub-film-item .movie-details .real-name {
    margin-bottom: 0;
    font-size: 1rem;
  }
  .sub-film-item .movie-details .view-star {
    display: none;
  }
  #sub-short-movies.flex {
    flex-wrap: wrap;
    gap: 1rem;
  }
  #sub-short-movies.flex a {
    width: 47.5%;
  }
  #small-frame .flex {
    flex-wrap: wrap;
  }
}

/* pc nhỏ */
@media screen and (min-width: 992px) {
  .container {
    max-width: 960px;
  }
  html {
    font-size: 60%;
  }
}
/* pc lớn */
@media screen and (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  html {
    font-size: 61%;
  }
}
/* pc cực lớn */
@media screen and (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  html {
    font-size: 65.5%;
  }
}
