/* ====================
Layout
 ==================== */
/* ====================
Project
 ==================== */
.p-movie {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 1400px;
}

.p-movie__container {
  position: relative;
  margin: 0 auto;
  padding: 30px 0 10px;
  width: 73.143%;
}

.p-movie__header {
  position: relative;
  margin: 0 auto 62px;
  width: 100%;
}

.p-movie__inner {
  position: relative;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

.p-movie__list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  position: relative;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 0 auto;
  width: 100%;
}

.p-movie__list-item {
  margin: 0 6% 68px 0;
  width: 47%;
}

.p-movie_cat {
  position: relative;
  margin: 0 auto;
  width: 100%;
}

.p-movie_cat__list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.p-movie_cat__list-item {
  display: block;
  position: relative;
}

.p-movie_cat__text {
  display: block;
  position: relative;
  -webkit-transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  background: #bd0100;
  padding: 10px 20px;
  width: 100%;
  color: #fff;
  text-align: center;
}

.is-current .p-movie_cat__text {
  background: #000;
}

[data-ua="pc"] .p-movie_cat__text:hover {
  opacity: .6;
}

.p-movie_data {
  display: block;
  position: relative;
  width: 100%;
}

.p-movie_data__thumb {
  position: relative;
  padding-top: 55.833%;
  width: 100%;
}

.p-movie_data__thumb::after {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  opacity: 1;
  -webkit-transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  background: url("../img/character/play.png") no-repeat center;
  background-size: contain;
  width: 64px;
  height: 64px;
  content: "";
}

[data-ua="pc"] .p-movie_data:hover .p-movie_data__thumb::after {
  opacity: 0;
}

.p-movie_data__thumb-img {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.p-movie_data__thumb-img::before {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 1;
  -webkit-transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  background: rgba(0, 0, 0, 0.2);
  width: 100%;
  height: 100%;
  content: "";
}

[data-ua="pc"] .p-movie_data:hover .p-movie_data__thumb-img::before {
  opacity: 0;
}

.p-movie_data__title {
  position: relative;
  margin-top: 18px;
  width: 100%;
  line-height: 1.6;
  text-align: left;
}

/* ====================
COMPONENT
 ==================== */

@media screen and (max-width: 960px) {
  .p-movie__container {
    padding: 12px 0;
    width: 90.667%;
  }
  .p-movie__header {
    margin-bottom: 50px;
  }
  .p-movie__inner {
    text-align: left;
  }
  .p-movie__list-item {
    position: relative;
    margin: 0 auto;
    width: 100%;
  }
  .p-movie__list-item + .p-movie__list-item {
    margin-top: 42px;
  }
  .p-movie_cat__list {
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
  }
  .p-movie_cat__list-item {
    margin: 0 4% 10px 0;
    width: 48%;
  }
  .p-movie_cat__list-item:nth-child(2n) {
    margin-right: 0;
  }
  .p-movie_cat__text {
    font-size: 12px;
  }
  .p-movie_data__thumb::after {
    width: 50px;
    height: 50px;
  }
  .p-movie_data__title {
    margin-top: 8px;
    font-size: 12px;
  }
}

@media screen and (min-width: 961px) {
  .p-movie__list-item:nth-child(2n) {
    margin-right: 0;
  }
  .p-movie_cat__list-item {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    max-width: 240px;
  }
  .p-movie_cat__list-item + .p-movie_cat__list-item {
    margin-left: 10px;
  }
}
