:root {
  --page-bg: radial-gradient(circle at top, #32352e 0%, #21221f 34%, #171715 100%);
  --surface: #f7f6f4;
  --surface-strong: #ffffff;
  --line: #ece8e4;
  --text-main: #363431;
  --text-soft: #98948f;
  --text-hero: rgba(255, 255, 255, 0.92);
  --badge-bg: rgba(61, 62, 66, 0.86);
  --badge-subtle: rgba(255, 255, 255, 0.35);
  --accent: #dc587d;
  --gold: #f0c84d;
  --gold-shadow: #dfb340;
  --icon-muted: #d6d3d1;
  --shadow-lg: 0 30px 50px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 0;
  background: var(--page-bg);
  color: var(--text-main);
  font-family: "Pretendard Variable", "SUIT Variable", "Noto Sans KR",
    "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

.shell {
  width: min(100vw, 430px);
  min-height: 100vh;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 378px;
  display: flex;
  align-items: flex-end;
  padding: 0 28px 30px;
  background:
    linear-gradient(180deg, rgba(5, 7, 8, 0.18) 0%, rgba(7, 8, 9, 0.42) 56%, rgba(8, 8, 9, 0.72) 100%),
    url("./bg.png") center top / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 48%, rgba(0, 0, 0, 0.4) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.24) 0%, rgba(0, 0, 0, 0) 44%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 18px;
  width: 100%;
}

.poster {
  flex: 0 0 98px;
  width: 98px;
  aspect-ratio: 0.7;
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 24%, rgba(0, 0, 0, 0.18) 100%),
    url("./poster.png") center center / cover no-repeat;
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.24);
}

.hero__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 6px;
}

.hero__badge {
  width: fit-content;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--badge-bg);
  color: rgba(255, 255, 255, 0.94);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero__badge span {
  color: var(--badge-subtle);
}

.hero__title {
  margin: 0;
  color: #fff;
  font-size: 3rem;
  line-height: 0.95;
  letter-spacing: -0.065em;
  font-weight: 800;
}

.hero__detail {
  margin: 0;
  color: var(--text-hero);
  font-size: 1.125rem;
  line-height: 1.2;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.panel {
  position: relative;
  margin-top: -4px;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  background: var(--surface-strong);
  overflow: hidden;
}

.scorebar {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.scorebar__forecast {
  color: var(--accent);
}

.scorebar__average {
  color: #55514d;
}

.review-card {
  border-bottom: 1px solid var(--line);
  background: var(--surface-strong);
}

.review-card__date {
  margin: 0;
  padding: 24px 28px 6px;
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.review-card__body {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 0 28px 26px;
}

.review-card__copy {
  margin: 0;
  color: var(--text-main);
  font-size: 1.06rem;
  line-height: 1.42;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.review-card__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--icon-muted);
  cursor: pointer;
}

.review-card__action svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.rating-card {
  padding: 28px 24px 34px;
  background: var(--surface-strong);
}

.rating-stars {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.star {
  width: 52px;
  height: 52px;
  color: var(--gold);
  filter: drop-shadow(0 3px 1px rgba(223, 179, 64, 0.28));
}

.star--full path {
  fill: currentColor;
}

.star--half {
  color: var(--gold);
}

@media (max-width: 430px) {
  .shell {
    width: 100vw;
    box-shadow: none;
  }
}

@media (max-width: 390px) {
  .hero {
    min-height: 356px;
    padding: 0 22px 26px;
  }

  .hero__content {
    gap: 14px;
  }

  .poster {
    flex-basis: 88px;
    width: 88px;
  }

  .hero__title {
    font-size: 2.7rem;
  }

  .hero__detail {
    font-size: 1.03rem;
  }

  .scorebar,
  .review-card__date,
  .review-card__body,
  .rating-card {
    padding-left: 22px;
    padding-right: 22px;
  }

  .scorebar {
    font-size: 1rem;
    gap: 8px;
  }

  .review-card__copy {
    font-size: 1rem;
  }

  .star {
    width: 48px;
    height: 48px;
  }
}
