@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@600&display=swap");: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: #242A32;
}#wrap,
section {
  display: flex;
  flex-direction: column;
  justify-content: center;
}main {
  margin: 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: 320px;
  min-height: 100vh;
  background-color: #242A32;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}#wrap h2 {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 32px;
}#section-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 36px;
  line-height: 1;
  letter-spacing: 0;
  margin-bottom: 3.5rem;
}.container {
  max-width: 1280px;
  margin: 0 auto;
  flex: 1;
}.background-container {
  position: relative;
  background-position: center center;
  background-size: cover;
  height: 500px;
  padding: 48px;
}.background-container.search-header {
  height: 100px;
  background-color: #242A32;
}.background-container.search-header .overlay {
  display: none;
}.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: 1280px;
  margin: 0 auto;
}.top-rated-movie {
  margin-top: 64px;
}.top-rated-movie > *:not(:last-child) {
  margin-bottom: 8px;
}h1.logo {
  font-size: 2rem;
  flex-shrink: 0;
}.header-top {
  display: flex;
  align-items: center;
  position: relative;
}.header-top .search-bar {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  max-width: 700px;
  width: 50%;
}.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;
}footer.footer {
  min-height: 180px;
  background-color: #3C4653;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  font-size: 1.1rem;
}footer.footer p:not(:last-child) {
  margin-bottom: 8px;
}.search-bar {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 700px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50px;
  overflow: hidden;
  background: transparent;
}.search-input {
  flex: 1;
  padding: 14px 20px;
  background: transparent;
  border: none;
  outline: none;
  color: white;
  font-size: 16px;
}.search-input::placeholder {
  color: rgba(255, 255, 255, 0.8);
}.search-button {
  padding: 10px 16px;
  background: transparent;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
}.search-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}#no-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  grid-column: 1 / -1;
  width: 100%;
  min-height: 400px;
  margin: 4rem auto;
}.no-result-icon {
  width: 72px;
  height: 62px;
}.no-result-text {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600 !important;
  font-size: 36px !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  margin-top: 1rem;
}/* =====================
   태블릿 (768px ~ 1023px)
   ===================== */@media (max-width: 1023px) {
  .background-container {
    height: auto;
    padding: 24px 24px 32px;
  }

  /* 로고를 서치바 위로 */
  .header-top {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .header-top .search-bar {
    position: static;
    transform: none;
    width: 100%;
    max-width: 100%;
  }

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

  .title {
    font-size: 2rem;
  }

  .container {
    padding: 0 24px;
  }
}/* =====================
   모바일 (~ 767px)
   ===================== */@media (max-width: 767px) {
  .background-container {
    padding: 16px 16px 24px;
  }

  .title {
    font-size: 1.5rem;
  }

  #section-title {
    font-size: 24px;
    margin-bottom: 2rem;
  }

  .container {
    padding: 0 16px;
  }

  main {
    margin: 40px 0;
  }
}/* 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;
  display: flex;
  flex-direction: column;
  gap: 8px;
}.modal-description h2 {
  font-size: 2rem;
  font-weight: bold;
  color: var(--color-white);
  margin: 0;
}/* 구분선 */.modal-description hr {
  border: none;
  border-top: 1px solid #4a5568;
  margin: 1rem 0;
}/* 출시년도, 장르 */.modal-description .category {
  font-size: 20px;
  font-weight: 400;
  color: var(--color-white);
}/* 평균 */.modal-description .rate {
  display: flex;
  align-items: center !important;
  gap: 6px;
}.modal-description .rate > img {
  position: static;
  top: 0;
}.modal-description .rate .rate-label {
  font-size: 20px;
  font-weight: 400;
  color: var(--color-white);
}.modal-description .rate .rate-avg-value {
  font-size: 20px;
  font-weight: 400;
  color: var(--color-white);
}/* 내 별점 타이틀 / 줄거리 타이틀 */.my-rate-title,
.detail-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-white);
}/* 내 별점 */.my-rate {
  display: flex;
  align-items: center;
  gap: 12px;
}.my-rate-stars {
  display: flex;
  align-items: center;
  gap: 4px;
}.my-rate-stars .my-star {
  display: block;
  cursor: pointer;
  width: 32px;
  height: 32px;
}.my-score {
  display: flex;
  align-items: center;
  gap: 6px;
}.my-score-label {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-white);
  margin-right: 4px;
}.my-rate-value {
  font-size: 24px;
  font-weight: 600;
  color: #95a1b2;
}/* 줄거리 */.detail {
  font-size: 24px;
  font-weight: 400;
  max-height: 300px;
  overflow-y: auto;
}.modal-description .rate .rate-label,
.modal-description .rate .rate-avg-value,
.my-score-label,
.my-rate-value {
  position: relative;
  top: 2.5px;
}/* =====================
   태블릿 (768px ~ 1023px)
   ===================== */@media (max-width: 1023px) {
  /* 모달 하단 고정 */
  .modal-background {
    align-items: flex-end;
  }

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

  /* 포스터 사진, 제목, 출시년도/장르, 평균 세로 정렬 + 가운데 정렬 */
  .modal-container {
    flex-direction: column;
    align-items: center;
  }

  .modal-image img {
    width: 160px;
    border-radius: 12px;
  }

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

  /* hr 위: 포스터, 제목, 출시년도/장르, 평균만 가운데 정렬 */
  .modal-description h2,
  .modal-description .category,
  .modal-description .rate {
    text-align: center;
    justify-content: center;
  }

  .modal-description h2 {
    font-size: 1.5rem;
  }
}/* =====================
   모바일 (~ 767px)
   ===================== */@media (max-width: 767px) {
  .modal-image {
    display: none;
  }

  .modal-description {
    margin-top: 0;
  }
}/* 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(5, 200px);
  gap: 70px;
}.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;
}/* Skeleton UI */.item.skeleton .thumbnail {
  display: none;
}.skeleton-poster {
  width: 200px;
  height: 300px;
  border-radius: 8px;
  background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}.skeleton-title {
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  margin-top: 8px;
  width: 80%;
}.skeleton-rate {
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  margin-bottom: 4px;
  width: 40%;
}.item.skeleton .item-desc > *:not(.skeleton-rate):not(.skeleton-title) {
  display: none;
}@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}/* =====================
   태블릿 (768px ~ 1023px)
   ===================== */@media (max-width: 1023px) {
  .thumbnail-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  .thumbnail {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
  }

  .skeleton-poster {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
  }
}/* =====================
   모바일 (~ 767px)
   ===================== */@media (max-width: 767px) {
  .thumbnail-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
