/* 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;
}
hr {
  margin: 0;
}
:root {
  --color-white: #ffffff;
  --color-lightblue-90: #0da9fd;
  --color-bluegray-100: #242a32;
  --color-bluegray-80: #3c4653;
  --color-bluegray-10: #95a1b2;
  --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-100);
}

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

header {
  position: relative;
  min-height: 130px;

  @media (min-width: 800px) {
    min-height: 155px;
  }
}

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

#app {
  display: flex;
  flex-direction: column;
  gap: 88px;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

.background-container {
  display: flex;
  position: relative;
  flex-direction: column;
  justify-content: flex-start;
  background-position: center;
  background-size: cover;
  height: 300px;
  padding-top: 130px;

  @media (min-width: 800px) {
    height: 500px;
    justify-content: center;
    padding-top: 0;
  }
}

.background-img {
  width: 100%;
  height: 300px;
  object-fit: cover;

  @media (min-width: 800px) {
    height: 500px;
  }
}

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

.top-header-container {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  flex-direction: column;
  align-items: center;
  padding-left: 0;
  padding-top: 30px;
  gap: 24px;
  z-index: 2;
  width: 100%;

  @media (min-width: 800px) {
    padding-top: 40px;
  }

  @media (min-width: 1440px) {
    flex-direction: row;
    align-items: center;
    padding-left: 250px;
  }
}

.top-rated-container {
  user-select: none;
  position: relative;
  z-index: 2;
  max-width: 1280px;
  padding-left: 0;
  align-self: center;

  @media (min-width: 1440px) {
    padding-left: 250px;
    align-self: auto;
  }
}

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

h1.logo {
  font-size: 2rem;
  cursor: pointer;
}

.search {
  display: flex;
  align-self: center;
  width: 300px;
  height: 36px;
  border: 1px solid white;
  border-radius: 32px;
  padding: 6px 16px;

  @media (min-width: 800px) {
    width: auto;
    height: auto;
    min-width: 525px;
  }

  @media (min-width: 1440px) {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

.search-input {
  flex: 1;
  background: none;
  border: none;
  color: white;
}

.search-input::placeholder {
  color: white;
}

.search-input:focus {
  outline: none;
}

.search-button {
  background: none;
}

.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: 24px;

  @media (min-width: 800px) {
    font-size: 1.66rem;
  }
}

.title {
  font-size: 24px;
  font-weight: 600;

  @media (min-width: 800px) {
    font-size: 3rem;
    font-weight: bold;
  }
}

.section-title {
  font-size: 36px;
  font-weight: 600;
}

.not-search-found-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.not-search-found-img {
  width: 72px;
  aspect-ratio: 72/62;
}

.not-search-found-text {
  font-size: 36px;
  font-weight: 600;
}

.section-container {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.more-button {
  width: 100%;
  color: white;
  border-radius: 8px;
  font-size: 24px;
  font-weight: 700;
  background-color: var(--color-lightblue-90);
}

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

.movie-skeleton {
  width: 200px;
  height: 364px;
  background-color: gray;
}
:root {
  --color-white: #ffffff;
  --color-lightblue-90: #0da9fd;
  --color-bluegray-100: #242a32;
  --color-bluegray-80: #3c4653;
  --color-bluegray-10: #95a1b2;
  --color-bluegray-30: #a6b1c3;
  --color-bluegray-90: #2f3844;
  --color-gray-300: #d1d3d4;
  --color-yellow: #ffc700;
  --color-ffffff: #ffffff;
  --color-242a32: #242a32;
}

.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;
}
:root {
  --color-white: #ffffff;
  --color-lightblue-90: #0da9fd;
  --color-bluegray-100: #242a32;
  --color-bluegray-80: #3c4653;
  --color-bluegray-10: #95a1b2;
  --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(1, 200px);
  gap: 70px;

  @media (min-width: 800px) {
    grid-template-columns: repeat(3, 200px);
  }

  @media (min-width: 1120px) {
    grid-template-columns: repeat(4, 200px);
  }

  @media (min-width: 1440px) {
    grid-template-columns: repeat(5, 200px);
  }
}

.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;
}
:root {
  --color-white: #ffffff;
  --color-lightblue-90: #0da9fd;
  --color-bluegray-100: #242a32;
  --color-bluegray-80: #3c4653;
  --color-bluegray-10: #95a1b2;
  --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: 40px 24px;
  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 {
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
}

.modal-description .rate > img {
  position: static;
}

.modal-description .rate > span {
  font-size: 24px;
  font-weight: 600;
}

.modal-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 16px;
}

.modal-header > h2 {
  font-size: 2rem;
  font-weight: 700;
}

.detail {
  max-height: 430px;
  overflow-y: auto;
  font-size: 24px;
  font-weight: 400;
}

.category {
  font-size: 20px;
  font-weight: 400;
}

.rate-avg {
  display: flex;
  align-items: center;
  gap: 16px;
}

.plot {
  display: flex;
  flex-direction: column;
}

.plot-tag {
  padding: 16px 0;
  font-size: 24px;
  font-weight: 600;
}

.rating-star {
  width: 32px;
  height: 32px;
  border: none;
  background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAxCAYAAACcXioiAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAQ4SURBVHgB7VlNctMwFP7UwrRl0/YGzgloNwyURd0TQE5AeoK2J2hyAuAEaU9QOEHMgvCzSW9QcwLChqbDNOI9RVEk106sWGZY5JvR+FlRJD29fxlYYYX/F/I79uQXxKgRAjWANh3Ro0ct0l0ptSPxQj2DYg31oIvZ5qHpLmpAcAno07+ZdWBIq+zoN5ZCgoCoQwLnhhK4oBUS8y7xGoFRhwT49CP9eqSfPb3aEBtoiH16BkJQCdDmW7AMl9VFq0w6GUCqdKvGB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OiOLUgz4qFCnsJ/Tao9vX1ya0vjGnDnTsl7IL5XoU5Sc3GlGyhNR2Vn106lSK6lu66YBLEVNn2RrBZevqoRdYYUVvPAXJrOCc9SFL6sAAAAASUVORK5CYII=") no-repeat center / contain;
  cursor: pointer;
}

.rating-star.filled {
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAxCAYAAACcXioiAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAKXSURBVHgB7ZhBbtQwFIZ/zyAxu8IN0hNANqh0Q+YG9ASlJyhzgpmeADgBvQG9QbOCJXMDwgnIqoyEqPnjcWmVxElsPU9bKZ/kZuQ4rp/f+/OeA4yMjDxqFCKhvyHh7B+gUWKGhUp5jcATxGPJxb81v67wk39XiMAE8cj+/5riVH/HM0QgigEMn3e8JLcdXPzvOwYJEssDx40ehVNEQFzERrzAj9abU6TqFdYQJIYHls47f6yoBYlhQOa8E0HMogY0xNsYIC9maQ8c944QFrOYiDvFW2eG51KZWdIDy8Ejr/AeQnh7wIhwwzZl+8s2YbvGC/iXCmd8ds1nS85Vcq6qZip9PdNqAMOh2s3ENMUFattUnHKguQAaoYwhBbarLNm3Vq9pdI2GAfZN8hkPEc2q9hAf73ZNWgbtZpdDUM3wahhgLTzDQ0PjE0PovN7tFDFDaQWfN0tMWkLnhs63EI3IsNVDgvtgK+Yj7nzuGtL7GrUJ6hK7N6Jgm3PxRdeg3kRmJ5iz5dgdOXNC2rf4Cq9EthNdVGI9HJ6p/TNxTCM6xOoiqJjTX3kwUfgCWeZdYnURXI3SE1XlmUCGgovfRwBhHrhktp7hFyQJLLHDyukZXkKaTdicYQZo+cN56JyhB5o3kCdoTv/XaIz4vyFAB/4eeBrnE6Eh4ItFSAhlA8cVbCe2FQOfyeBJiAH9scpywNYy56aG3yA1fRJz1/CrhfriX/GQXpUDjow6qLL11IGfB1zxr82he6EOzK7nrser6tJmXPeJz1MHfgao1mSTsz/1KcJoxIqXfT530XI7gwd+BlzzH2rr3u31hIuZD6nb6xhvHOAIdZFPsAcPQsrpBNUuzXAh9XnQzrnipuxxRYuQDRkZGRm5H/4BIkyx5W7xkPAAAAAASUVORK5CYII=");
}

.rating {
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.rating-score {
  color: var(--color-bluegray-10);
}

.rating-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-block: 24px;
}

.rating-container > h2 {
  font-size: 24px;
  font-weight: 600;
}

@media (max-width: 1120px) {
  .modal-background {
    align-items: flex-end;
  }
  .modal-header {
    align-items: center;
  }
  .modal {
    width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: 70vh;
    overflow-y: auto;
  }

  .modal-container {
    flex-direction: column;
  }
  .modal-image {
    display: flex;
    margin: 0 auto;
  }

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

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

@media (max-width: 800px) {
  .modal {
    width: 100%;

    max-height: 80vh;
    overflow-y: auto;
  }

  .modal-image {
    display: none;
  }
}
