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

dialog {
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  max-width: none;
  max-height: none;
}
: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 {
  min-width: 1440px;
  background-color: var(--color-bluegray-100);
}

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

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

.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;
  max-width: 1320px;
  padding: 0 20px;
  margin: 0 auto;
}

.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;
  align-items: center;
  padding: 40px 20px 24px 20px;
  max-width: 1320px;
  margin: 0 auto;
}

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

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

  display: flex;
  justify-content: space-between;
  max-width: 32.8125rem;
  width: 80%;
  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);
}

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

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

@media (max-width: 1440px) {
  .logo {
    margin: 0 auto;
  }

  .movie-search {
    top: 90px;
  }

  .top-rated-container {
    position: absolute;
    bottom: 64px;
    max-width: 800px;
    min-width: 0;
  }

  .top-rated-container h3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }
}
: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 {
  display: grid;
  grid-template-columns: repeat(auto-fill, 200px);
  justify-content: center;
  gap: 70px;
  width: 100%;
}

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

.item {
  user-select: none;
  cursor: pointer;
}

.item-desc strong {
  line-height: 142%;
}

.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;
  margin-top: 4px;
}

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

/* modal.css */

body.modal-open {
  overflow: hidden;
}

.modal {
  background-color: var(--color-bluegray-90);
  border-radius: 16px;
  border: none;
  color: white;
  z-index: 2;
  position: fixed;
  margin: auto;
  width: 1000px;
}

.modal::backdrop {
  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;
  /*transition: opacity 0.3s ease, visibility 0.3s ease;*/
}

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

.modal-container {
  display: flex;
  gap: 24px;
  padding: 40px 24px;
}

.modal-image img {
  width: 380px;
  aspect-ratio: 2/3;
  border-radius: 16px;
  background-color: var(--color-bluegray-80);
}

.modal-description {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  padding: 8px;
}

.modal-description h2 {
  word-break: keep-all;
  font-size: 32px;
  font-weight: 700;
  line-height: 100%;
}

.modal-description h3 {
  font-size: 24px;
  font-weight: 600;
  line-height: 100%;
}

.modal-description .category {
  font-size: 20px;
  font-weight: 400;
  line-height: 100%;
}

.modal-description .modal-rate {
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: 400;
  line-height: 100%;
}

.modal-description .rate img {
  margin: -1px 2px auto 16px;
}

.modal-description .rate span {
  margin-top: 2px;
  font-size: 24px;
  font-weight: 600;
  line-height: 100%;
  letter-spacing: 0.18px;
}

.my-rate {
  padding: 24px 0;
  border-block: 1px solid var(--color-bluegray-30);
}

.my-rate h3 {
  margin-bottom: 24px;
}

.my-rate > div {
  display: flex;
  gap: 16px;
  align-items: center;
}

.my-rate button {
  padding: 0;
  background-color: transparent;
}

.my-rate .comment {
  font-size: 24px;
  font-weight: 600;
  line-height: 100%;
  letter-spacing: 0.18px;
}

.my-rate .score {
  color: var(--color-bluegray-30);
  font-size: 24px;
  font-weight: 600;
  line-height: 100%;
  letter-spacing: 0.18px;
}

.detail {
  max-height: 290px;
  overflow-y: auto;
  font-size: 24px;
  line-height: 147%;
  letter-spacing: 0.18px;
}

.detail h3 {
  margin-bottom: 16px;
}

@media (max-width: 1024px) {
  .modal {
    width: 100vw;
    margin: auto 0 0 0;
    border-radius: 16px 16px 0 0;
  }

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

  .modal-image {
    margin: auto;
  }

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

  .modal-description > h2 {
    text-align: center;
  }

  .modal-description > p {
    text-align: center;
  }

  .modal-description .modal-rate {
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .modal-image img {
    display: none;
  }

  .modal-description {
    text-align: center;
  }

  .modal-description > p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .my-rate > div {
    flex-wrap: wrap;
    justify-content: center;
  }

  .my-rate .rate-button-container {
    width: 100%;
    display: flex;
    justify-content: center;
  }
}
