/* 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;
}
: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 {
  position: relative;
  font-size: 16px;
  color: var(--color-white);
  background-color: var(--color-bluegray-100);
}

body #app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
}

#wrap,
section {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

main {
  padding: 64px 0;
}

.star {
  width: 24px;
}

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;
}

#wrap {
  background-color: var(--color-bluegray-100);
}

#wrap h2 {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 32px;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.result-section {
  padding-top: 100px;
}

.sub-title {
  font-size: 2.25rem;
  line-height: 100%;
  font-weight: 600;
  margin-bottom: 3.5rem;
}

.background-container {
  position: relative;
  background-position: center center;
  background-size: cover;
  height: 500px;
  padding: 48px;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
  z-index: 1;
}

.top-rated-container {
  user-select: none;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.top-rated-movie {
  margin-top: 142px;
}

.top-rated-movie > *:not(:last-child) {
  margin-bottom: 8px;
}

.logo-input-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px 24px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.logo {
  font-size: 2rem;
  background-color: transparent;
  padding: 0;
}

.movie-search {
  position: absolute;
  top: 84px;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  justify-content: space-between;
  width: 32.8125rem;
  padding: 6px 16px;

  border: 2px solid var(--color-gray-300);
  border-radius: 32px;
}

.movie-search > input {
  background-color: transparent;
  border: none;
  width: 100%;
  color: var(--color-white);
  outline: none;
}

.movie-search > input::placeholder {
  color: var(--color-white);

  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5rem;
}

.movie-search > button {
  background-color: transparent;
}

.rate {
  display: flex;
  align-items: baseline;
  color: var(--color-yellow);
}

.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;
}

.unexpected-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin: 0 auto 56px;
}

.unexpected-container > p {
  font-weight: 600;
  font-size: 2.25rem;
  line-height: 100%;
  color: var(--color-white);
}

.unexpected-container > button {
  background-color: var(--color-lightblue-90);
  border-radius: 8px;
  color: var(--color-white);
  font-weight: 400;
  font-size: 1rem;
}

.see-more-button {
  width: 100%;
  height: 3.0625rem;

  color: var(--color-white);
  background-color: var(--color-lightblue-90);
  border-radius: 8px;

  font-size: 1.5rem;
  line-height: 100%;
  font-weight: 600;
  letter-spacing: 0.015rem;
}

#sentinel {
  height: 1px;
}

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;
  margin-top: auto;
}

footer.footer p:not(:last-child) {
  margin-bottom: 8px;
}

.hidden {
  display: none !important;
}
: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;
}

.thumbnail-list {
  margin: 0 auto 56px;
  display: grid;
  grid-template-columns: repeat(5, 200px);
  gap: 70px;
}

@media (max-width: 1024px) {
  .thumbnail-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .thumbnail-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.thumbnail {
  width: 100%;
  height: 300px;
  border-radius: 8px;
  display: block;
  background-color: var(--color-gray-300);
  color: black;
}

.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 img.thumbnail {
  width: 100%;
  object-fit: cover;
}

.item .star {
  width: 16px;
  top: 1px;
}

.skeleton .thumbnail {
  animation: skeleton-loading 2s infinite;
}

.skeleton .rate {
  width: 50px;
  height: 20px;
  margin-top: 4px;
  animation: skeleton-loading 2s infinite;
}

.skeleton .title {
  width: 120px;
  height: 19.33px;
  animation: skeleton-loading 2s infinite;
}

@keyframes skeleton-loading {
  0% {
    background-color: lightgray;
  }
  50% {
    background-color: rgb(184, 184, 184);
  }
  100% {
    background-color: lightgray;
  }
}
: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;
}
.thumbnail-list {
  margin: 0 auto 56px;
  display: grid;
  grid-template-columns: repeat(5, 200px);
  gap: 70px;
}
@media (max-width: 1024px) {
  .thumbnail-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}
@media (max-width: 600px) {
  .thumbnail-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
.thumbnail {
  width: 100%;
  height: 300px;
  border-radius: 8px;
  display: block;
  background-color: var(--color-gray-300);
  color: black;
}
.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 img.thumbnail {
  width: 100%;
  object-fit: cover;
}
.item .star {
  width: 16px;
  top: 1px;
}
.skeleton .thumbnail {
  animation: skeleton-loading 2s infinite;
}
.skeleton .rate {
  width: 50px;
  height: 20px;
  margin-top: 4px;
  animation: skeleton-loading 2s infinite;
}
.skeleton .title {
  width: 120px;
  height: 19.33px;
  animation: skeleton-loading 2s infinite;
}
@keyframes skeleton-loading {
  0% {
    background-color: lightgray;
  }
  50% {
    background-color: rgb(184, 184, 184);
  }
  100% {
    background-color: lightgray;
  }
}
/* 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: 8px;
}
.modal-description h2 {
  font-size: 2rem;
  margin: 0 0 8px;
}
.modal-sub-title {
  margin-top: 16px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.18px;
  line-height: 100%;
}
.modal-rate-stars {
  display: flex;
  align-items: center;
  text-align: center;
  height: 30px;
}
.modal-my-rate-star {
  width: 32px;
  height: 32px;
}
.modal-rate-stars span {
  margin-left: 5px;
}
.modal-rate-stars span span {
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 0.18px;
}
.detail {
  max-height: 430px;
  overflow-y: auto;
}
.modal-skeleton {
  animation: skeleton-loading 2s infinite;
  border-radius: 4px;
  display: block;
}
.modal-skeleton-image {
  animation: skeleton-loading 2s infinite;
  border-radius: 16px;
  width: 380px;
  min-height: 500px;
}
.modal-skeleton-image img {
  visibility: hidden;
}
.modal-skeleton-title {
  width: 60%;
  height: 2rem;
  margin-bottom: 8px;
}
.modal-skeleton-category {
  width: 40%;
  height: 1rem;
}
.modal-skeleton-rate {
  width: 30px;
  height: 1rem;
  display: inline-block;
}
.modal-skeleton-detail {
  width: 100%;
  height: 200px;
}
/* 태블릿 */
@media (max-width: 1024px) and (min-width: 601px) {
  .modal-background {
    align-items: flex-end;
  }

  .modal {
    width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: 80vh;
    overflow-y: auto;
  }

  .modal-container {
    flex-direction: column;
  }

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

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

  .modal-skeleton-image {
    width: 200px;
    min-height: 300px;
  }

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

  .modal-header {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
  }

  .close-modal {
    top: 16px;
    right: 16px;
  }
}
/* 모바일 */
@media (max-width: 600px) {
  .modal-background {
    align-items: flex-end;
  }

  .modal {
    width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: 80vh;
    overflow-y: auto;
  }

  .modal-container {
    flex-direction: column;
  }

  .modal-image {
    display: none;
  }

  .modal-skeleton-image {
    display: none;
  }

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

  .close-modal {
    top: 16px;
    right: 16px;
  }
}
