: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;
}
html {
  min-width: 250px;
}
a {
  color: inherit;
  text-decoration: none;
}
header {
  position: relative;
  z-index: 1;
}
body {
  font-size: 16px;
  color: var(--color-white);
  background-color: var(--color-bluegray-100);
}
main {
  width: 100%;
  padding: 20px;
}
#wrap,
section {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.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;
  min-height: 100vh;
}
#wrap {
  min-width: 1440px;
  background-color: var(--color-bluegray-100);
}
#wrap h2 {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 32px;
}
.container {
  width: 100%;
}
.background-container {
  display: flex;
  position: relative;
  flex-direction: column;
  justify-content: center;
  background-position: center;
  background-size: cover;
  height: 500px;
  padding: 48px;
  z-index: -1;
}
.background-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 50%;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.top-header-conatiner {
  position: absolute;
  top: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  width: 100%;
}
.top-rated-container {
  user-select: none;
  position: relative;
  z-index: 2;
  max-width: 1280px;
}
.top-rated-movie {
  margin-top: 100px;
}
.top-rated-movie > *:not(:last-child) {
  margin-bottom: 8px;
}
button.logo {
  font-size: 2rem;
  cursor: pointer;
  background: none;
}
.search {
  flex: 1;
  display: flex;
  justify-content: space-between;
  border: 1px solid white;
  border-radius: 32px;
  padding: 6px 16px;
  width: 80%;
  max-width: 500px;
}
.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: 1.66rem;
}
.title {
  font-size: 3rem;
  font-weight: bold;
}
.section-title {
  font-size: 36px;
  font-weight: 600;
}
.not-search-found-container {
  display: none;
  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;
  margin-top: 50px;
}
.section-container.search-mode {
  margin-top: 200px;
}
.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;
  margin-top: auto;
  font-size: 1.1rem;
}
footer.footer p:not(:last-child) {
  margin-bottom: 8px;
}
.movie-skeleton {
  width: 200px;
  height: 364px;
  background-color: gray;
}
/* modal.css */
body.modal-open {
  overflow: hidden;
}
.modal-background.active {
  visibility: visible;
  opacity: 1;
}
.modal {
  margin: 0;
  width: 1000px;
  max-width: 100%;
  min-width: 300px;
  background-color: var(--color-bluegray-90);
  padding: 20px;
  border-radius: 16px;
  color: white;
  z-index: 2;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: none;
}
.modal::backdrop {
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}
.review-container {
  margin-top: 16px;
}
.overview-container {
  margin: 16px 0;
}
.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 h3 {
  font-size: 24px;
  font-weight: 600;
}
.review-star-container {
  display: flex;
  gap: 16px;
  align-items: center;
}
.review-text {
  font-size: 24px;
  font-weight: 600;
}
.review-score {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-bluegray-10);
}
.review-star {
  width: 32px;
  height: 32px;
  cursor: pointer;
}
.overview {
  max-height: 430px;
  overflow-y: auto;
}
hr {
  width: 100%;
}
/* 모바일 */
@media (max-width: 768px) {
  .modal {
    width: 100%;
    position: fixed;
    bottom: 0;

    top: auto;
    left: 0;
    transform: none;

    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    overflow: auto;
  }

  .modal-image {
    display: none;
  }

  .modal-description {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0px;
  }

  .modal-movie-title {
    padding-right: 28px;
    text-align: center;
    line-height: 2rem;
  }

  .review-container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .review-star-container {
    display: flex;
    flex-direction: column;
  }

  .overview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
  }
}
/* 태블릿 */
@media screen and (max-width: 1024px) {
  .modal {
    width: 100%;
    position: fixed;
    bottom: 0;

    top: auto;
    left: 0;
    transform: none;

    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
  }

  .modal-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

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

  .modal-image img {
    max-width: 200px;
    height: 300px;
    border-radius: 16px;
  }

  .modal-description {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0px;
  }

  .review-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
  }

  .overview-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }
}
/* 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 {
  display: grid;
  justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 70px;
  place-items: center;
  width: 100%;
}
.thumbnail-container {
  width: 200px;
}
.thumbnail {
  width: 200px;
  height: 300px;
  border-radius: 8px;
}
.item {
  user-select: none;
  cursor: pointer;
  background: none;
}
.item:focus {
  scale: 105%;
  outline: none;
}
.item-desc {
  max-width: 200px;
}
.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);
  font-size: 16px;
  font-weight: 600;
}
p.rate > span {
  margin-left: 4px;
}
.item .star {
  width: 16px;
  top: 1px;
}
.thumbnail-title {
  color: white;
  display: block;
  text-align: start;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 20px;
  font-weight: 700;
}
