:root {
  --color-white: #ffffff;
  --color-lightblue-90: #0da9fd;
  --color-bluegray-100: #242a32;
  --color-bluegray-80: #39414d;
  --color-bluegray-10: #e0e6ed;
  --color-bluegray-30: #a6b1c3;
  --color-bluegray-90: #2f3844;
  --color-gray-300: #d1d3d4;
  --color-yellow: #ffc700;
  --color-ffffff: #ffffff;
  --color-242a32: #242a32;
}
* {
  box-sizing: border-box;
}
a {
  color: inherit;
  text-decoration: none;
}
body {
  font-size: 16px;
  color: var(--color-white);
  background-color: var(--color-bluegray-80);
}
#wrap,
section {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
main {
  margin: 64px 0;
  margin-top: 0;
}
.star {
  width: 24px;
}
#wrap header{
  display: flex;
  flex-direction: column;
  width: 100%;
  top: 0;
}
button {
  border: 0;
  padding: 8px 16px;
  cursor: pointer;
}
button.primary {
  color: var(--color-white);
  font-weight: bold;
  background-color: var(--color-lightblue-90);
  border-radius: 4px;
}
button.more {
  color: var(--color-white);
  font-weight: bold;
  background-color: var(--color-lightblue-90);
  width: 100%;
  padding: 10px 0px;
  border-radius: 8px;
  font-size: 24px;
}
#wrap {
  /* min-width: 1440px; */
  background-color: var(--color-bluegray-100);
}
.container h2 {
  font-size: 1.4rem;
  font-weight: bold;
  margin-top: 64px;
  margin-bottom: 32px;
}
.container {
  max-width: 1280px;
  margin: 0 auto;
}
.background-container {
  position: relative;
  background-position: center center;
  background-size: cover;
  height: 500px;
  padding: 40px 0 63px 0;
}
.banner {
  position: absolute;
  top: 0;
  left: 0;
  height: 500px;
  z-index: 1;
  width: 100%;
}
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
  z-index: 2;
}
.top-rated-container {
  z-index: 3;
  position: relative;
  user-select: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.contentContainer {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
  font-size: 36px;
  font-weight: 600;
  gap: 16px;
}
.contentContainer img {
  width: 72px;
  height: 64px;
}
.search-input {
  display: flex;
  width: 100%;
  padding: 6px 16px;
  border-radius: 32px;
  outline: none;
  border: 2px solid #d1d5db;
  color: #fff;
  background-color: transparent;
}
.search-input::placeholder {
  color: #fff;
}
.search-input:focus {
  outline: none;
}
.search-button {
  position: absolute;
  top: 0;
  right: 10px;
  border: none;
  background-color: transparent;
}
.top-rated-movie {
  display: flex;
  flex-direction: column;
  align-items: start;
  padding-left: 20%;
}
.top-rated-movie > *:not(:last-child) {
  margin-bottom: 8px;
}
h1.logo {
  font-size: 2rem;
  cursor: pointer;
}
.rate {
  align-items: baseline;
}
.rate > img {
  position: relative;
  top: 2px;
}
span.rate-value {
  margin-left: 8px;
  font-weight: bold;
  font-size: 1.66rem;
}
.title {
  font-size: 3rem;
  font-weight: bold;
}
footer.footer {
  min-height: 180px;
  background-color: var(--color-bluegray-80);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  font-size: 1.1rem;
}
footer.footer p:not(:last-child) {
  margin-bottom: 8px;
}
.logo-searchBar{
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 24px;
}
.logo-searchBar.noBanner{
margin-top: 40px;
}
.thumbnail.skeleton{
  width: 200px;
  height: 300px;
  background-color: #e0e0e0;
  border-radius: 4px;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.6;
  }
}
.search-container {
  width: 50%;
  position: relative;
}
/* modal.css */
body.modal-open {
  overflow: hidden;
}
.modal-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* 반투명 배경을 위해 설정 */
  backdrop-filter: blur(10px); /* 블러 효과 적용 */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  visibility: hidden; /* 모달이 기본적으로 보이지 않도록 설정 */
  opacity: 0;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}
.modal-background.active {
  visibility: visible;
  opacity: 1;
}
.modal {
  background-color: var(--color-bluegray-90);
  padding: 20px;
  border-radius: 16px;
  color: white;
  z-index: 2;
  position: relative;
  width: 1000px;
}
.close-modal {
  position: absolute;
  margin: 0;
  padding: 0;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}
.modal-container {
  display: flex;
}
.modal-image img {
  width: 380px;
  border-radius: 16px;
}
.modal-description {
  width: 100%;
  padding: 8px;
  margin-left: 16px;
  line-height: 1.6rem;
}
.modal-description .rate > img {
  position: relative;
  top: 5px;
}
.modal-description > *:not(:last-child) {
  margin-bottom: 16px;
}
.modal-description h2 {
  font-size: 2rem;
  margin: 0 0 8px;
}
.detail {
  max-height: 430px;
  overflow-y: auto;
}
.rate.average{
  display: flex;
  gap: 6px;
}
.average-container{
  display: flex;
  align-items: end;
  gap: 16px;
}
.category{
  margin: 16px 0;
}
.point-text {
  font-size: 24px;
  font-weight: 600;
}
.star.point {
  width: 24px;
  height: 24px;
  cursor: pointer;
}
.modal-container .detail{
  margin: 0;
}
.detail.summary{
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
}
.modal-description .star-rating{
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  gap: 16px;

}
.rating-description{
  display: flex;
  gap: 5px;
}
.rating{
  color: #95A1B2;
}
@media (max-width:970px) {
  .modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 24px;
    border-radius: 0;
    width: 100%;
  }
  .modal-container{
    flex-direction: column;
  }

  .modal-image{
    display: flex;
    justify-content: center;
  }

  .modal-image img{
    width: 200px;
  }

  .modal-description > *:not(:last-child){
    margin: 10px 0;
  }

  .modal-title, .category{
    text-align: center;
  }
  .average-container{
    justify-content: center;
  }

  .modal-description {
    padding: 0px;
    margin-left: 0px;
  }
}
@media (max-width:720px) {
  .thumbnail-list{
    grid-template-columns: repeat(2, 200px);
  }  
}
@media (max-width:500px) {
  .thumbnail-list{
    grid-template-columns: repeat(1, 200px);
  }
  .modal-image{
    display: none;
  } 
}
/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
.tab {
  display: flex;
  margin: 32px 0;
}
.tab-item {
  cursor: pointer;
  user-select: none;

  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 40px;

  border-radius: 40px;
  background: linear-gradient(90deg, #14191f 0%, #0a0d12 100%);
}
.tab-item.selected {
  background: linear-gradient(90deg, #4b8bf4 0%, #1c2a3a 100%);
}
.tab-item:hover {
  background: linear-gradient(90deg, #2f3e54 0%, #4b8bf4 100%);
}
.tab li:not(:last-child) {
  margin-right: 8px;
}
.thumbnail-list {
  margin: 0 auto 56px;
  display: grid;
  grid-template-columns: repeat(4, 200px);
  gap: 53px;
}
.thumbnail {
  width: 200px;
  height: 300px;
  border-radius: 8px;
}
.item {
  user-select: none;
  cursor: pointer;
}
.item-desc > *:not(:last-child) {
  position: relative;
  margin-bottom: 4px;
  line-height: 1.2rem;
}
p.rate {
  display: flex;
  align-items: baseline;
  color: var(--color-yellow);
}
p.rate > span {
  margin-left: 4px;
}
.item .star {
  width: 16px;
  top: 1px;
}
@media (max-width:970px) {
  .thumbnail-list{
    grid-template-columns: repeat(3, 200px);
  }

}
@media (max-width:720px) {
  .thumbnail-list{
    grid-template-columns: repeat(2, 200px);
  }  
}
@media (max-width:500px) {
  .thumbnail-list{
    grid-template-columns: repeat(1, 200px);
  }  
}
#skeleton-container{
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.skeleton-image {
  width: 200px;
  height: 300px;
  background-color: #e0e0e0;
  border-radius: 4px;
  animation: pulse 1.5s infinite;
}
.skeleton-caption {
  width: 100%;
  height: 50px;
  margin-top: 8px;
  background-color: #e0e0e0;
  border-radius: 4px;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.6;
  }
}
.skeletonContainer {
  width: 100%;
  padding: 10px;
}
.skeletonItem {
  display: flex;
  flex-direction: column;
  width: 100%;
}
:root {
  --color-white: #ffffff;
  --color-lightblue-90: #0da9fd;
  --color-bluegray-100: #242a32;
  --color-bluegray-80: #39414d;
  --color-bluegray-10: #e0e6ed;
  --color-bluegray-30: #a6b1c3;
  --color-bluegray-90: #2f3844;
  --color-gray-300: #d1d3d4;
  --color-yellow: #ffc700;
  --color-ffffff: #ffffff;
  --color-242a32: #242a32;
}

/* modal.css */

body.modal-open {
  overflow: hidden;
}

.modal-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* 반투명 배경을 위해 설정 */
  backdrop-filter: blur(10px); /* 블러 효과 적용 */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  visibility: hidden; /* 모달이 기본적으로 보이지 않도록 설정 */
  opacity: 0;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.modal-background.active {
  visibility: visible;
  opacity: 1;
}

.modal {
  background-color: var(--color-bluegray-90);
  padding: 20px;
  border-radius: 16px;
  color: white;
  z-index: 2;
  position: relative;
  width: 1000px;
}

.close-modal {
  position: absolute;
  margin: 0;
  padding: 0;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

.modal-container {
  display: flex;
}

.modal-image img {
  width: 380px;
  border-radius: 16px;
}

.modal-description {
  width: 100%;
  padding: 8px;
  margin-left: 16px;
  line-height: 1.6rem;
}

.modal-description .rate > img {
  position: relative;
  top: 5px;
}

.modal-description > *:not(:last-child) {
  margin-bottom: 16px;
}

.modal-description h2 {
  font-size: 2rem;
  margin: 0 0 8px;
}

.detail {
  max-height: 430px;
  overflow-y: auto;
}

.rate.average{
  display: flex;
  gap: 6px;
}

.average-container{
  display: flex;
  align-items: end;
  gap: 16px;
}

.category{
  margin: 16px 0;
}

.point-text {
  font-size: 24px;
  font-weight: 600;
}

.star.point {
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.modal-container .detail{
  margin: 0;
}

.detail.summary{
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
}

.modal-description .star-rating{
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  gap: 16px;

}

.rating-description{
  display: flex;
  gap: 5px;
}

.rating{
  color: #95A1B2;
}

@media (max-width:970px) {
  .modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 24px;
    border-radius: 0;
    width: 100%;
  }
  .modal-container{
    flex-direction: column;
  }

  .modal-image{
    display: flex;
    justify-content: center;
  }

  .modal-image img{
    width: 200px;
  }

  .modal-description > *:not(:last-child){
    margin: 10px 0;
  }

  .modal-title, .category{
    text-align: center;
  }
  .average-container{
    justify-content: center;
  }

  .modal-description {
    padding: 0px;
    margin-left: 0px;
  }
}

@media (max-width:720px) {
  .thumbnail-list{
    grid-template-columns: repeat(2, 200px);
  }  
}

@media (max-width:500px) {
  .thumbnail-list{
    grid-template-columns: repeat(1, 200px);
  }
  .modal-image{
    display: none;
  } 
}