/* ==========================================================================
   detail.css — 공연/전시 상세 화면
   ========================================================================== */

.detail-app { padding-bottom: 0; }

/* 상단 오버레이 헤더 */
.detail-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  transition: background 0.2s;
}
.detail-header.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--voda-line);
}
.detail-header__btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.4);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: all 0.2s;
}
.detail-header.is-scrolled .detail-header__btn {
  background: transparent;
  color: var(--voda-ink);
}
.detail-header__title {
  flex: 1;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--voda-ink);
  opacity: 0;
  transition: opacity 0.2s;
  padding: 0 8px;
}
.detail-header.is-scrolled .detail-header__title { opacity: 1; }
.detail-header__actions { display: flex; gap: 4px; }

/* 히어로 */
.detail-hero {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}
.detail-hero__img {
  position: absolute; inset: 0;
  background-size: contain;
  background-position: center;
  background-color: var(--voda-ink-soft);
  background-image: linear-gradient(135deg, #701A75 0%, #18181B 100%);
  background-repeat: no-repeat;
}
.detail-hero__gradient {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, transparent 30%, transparent 60%, rgba(10,10,10,0.9) 100%);
}
.detail-hero__content {
  position: absolute;
  bottom: 24px;
  left: 20px;
  right: 20px;
  color: #fff;
}
.detail-hero__category {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  font-size: 11px;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.detail-hero__title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 6px;
}
.detail-hero__subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.02em;
}

/* 요약 정보 */
.detail-summary {
  padding: 24px 20px;
  border-bottom: 8px solid var(--voda-chip);
}
.detail-summary__row {
  display: flex;
  padding: 8px 0;
  font-size: 13px;
}
.detail-summary__label {
  width: 72px;
  flex-shrink: 0;
  color: var(--voda-ink-muted);
}
.detail-summary__value {
  flex: 1;
  color: var(--voda-ink);
  font-weight: 500;
}
.detail-summary__value--link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  text-decoration: none;
}
.detail-summary__price {
  font-weight: 800;
  color: var(--voda-primary);
  font-size: 14px;
}

/* 평점 */
.detail-rating {
  display: flex;
  padding: 24px 20px;
  gap: 24px;
  border-bottom: 8px solid var(--voda-chip);
}
.detail-rating__score {
  text-align: center;
  flex-shrink: 0;
}
.detail-rating__num {
  font-size: 40px;
  font-weight: 800;
  color: var(--voda-ink);
  letter-spacing: -0.03em;
  line-height: 1;
}
.detail-rating__stars {
  font-size: 14px;
  color: var(--voda-gold);
  margin-top: 4px;
  letter-spacing: 2px;
}
.detail-rating__count {
  font-size: 11px;
  color: var(--voda-ink-muted);
  margin-top: 4px;
}
.detail-rating__bars { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.rating-bar { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.rating-bar__label { width: 36px; color: var(--voda-ink-muted); }
.rating-bar__track { flex: 1; height: 4px; background: var(--voda-chip); border-radius: 2px; overflow: hidden; }
.rating-bar__fill { height: 100%; background: var(--voda-primary); border-radius: 2px; }
.rating-bar__val { width: 26px; text-align: right; font-weight: 700; color: var(--voda-ink); font-variant-numeric: tabular-nums; }

/* 섹션 공통 */
.detail-section {
  padding: 24px 20px;
  border-bottom: 8px solid var(--voda-chip);
}
.detail-section:last-of-type { border-bottom: none; }
.detail-section__title {
  font-size: 16px;
  font-weight: 800;
  color: var(--voda-ink);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.detail-section__count {
  color: var(--voda-primary);
  margin-left: 4px;
  font-size: 14px;
  font-weight: 700;
}
.detail-section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.detail-section__header .detail-section__title { margin-bottom: 0; }
.detail-section__more {
  display: flex; align-items: center; gap: 2px;
  font-size: 12px;
  color: var(--voda-ink-muted);
  text-decoration: none;
}

/* 캐스팅 */
.detail-cast {
  display: flex;
  gap: 16px;
  padding-bottom: 4px;
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
}
.cast-item { flex-shrink: 0; width: 76px; text-align: center; }
.cast-item__photo {
  width: 76px; height: 76px;
  border-radius: 50%;
  margin-bottom: 8px;
  background-color: var(--voda-chip);
  background-size: cover;
  background-position: center;
}
.cast-item__photo--1 { background: linear-gradient(135deg, #701A75, #3B0764); }
.cast-item__photo--2 { background: linear-gradient(135deg, #BE185D, #831843); }
.cast-item__photo--3 { background: linear-gradient(135deg, #1E3A8A, #1E1B4B); }
.cast-item__role {
  font-size: 10px;
  color: var(--voda-ink-muted);
  margin-bottom: 2px;
}
.cast-item__name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--voda-ink);
}

/* 소개 */
.detail-intro {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--voda-ink);
  white-space: pre-line;
}
.voda-clamp-5 {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.detail-intro-more {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 12px;
  color: var(--voda-ink-muted);
  padding: 4px 0;
}
.intro-example { display: block; }

/* 위치 */
.detail-location {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--voda-line);
}
.detail-location__map {
  aspect-ratio: 5/3;
  background: var(--voda-chip);
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-location__map-placeholder {
  text-align: center;
  color: var(--voda-ink-muted);
}
.detail-location__map-txt {
  font-size: 12px;
  margin-top: 6px;
}
.detail-location__map-hint {
  font-size: 11px;
  margin-top: 4px;
  color: var(--voda-ink-muted);
}
.detail-location__info {
  padding: 14px 16px;
  background: #fff;
}
.detail-location__venue {
  font-size: 14px;
  font-weight: 700;
  color: var(--voda-ink);
  margin-bottom: 4px;
}
.detail-location__addr {
  font-size: 12px;
  color: var(--voda-ink-muted);
  margin-bottom: 2px;
}
.detail-location__transit {
  font-size: 11.5px;
  color: var(--voda-ink-muted);
}

/* 리뷰 */
.detail-reviews { display: flex; flex-direction: column; gap: 16px; }
.detail-review {
  padding: 14px;
  background: #fff;
  border: 1px solid var(--voda-line);
  border-radius: 10px;
}
.detail-review__head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.detail-review__avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--voda-chip);
}
.detail-review__user {
  font-size: 12px;
  color: var(--voda-ink);
  font-weight: 600;
}
.detail-review__date {
  font-size: 11px;
  color: var(--voda-ink-muted);
}
.detail-review__rating {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--voda-ink);
  font-variant-numeric: tabular-nums;
}
.detail-review__body {
  font-size: 12.5px;
  color: var(--voda-ink);
  line-height: 1.55;
  white-space: pre-line;
}

/* 관련 공연 */
/* .detail-related {
  display: flex;
  gap: 12px;
  margin: 0 -20px;
  padding: 0 20px 4px;
} */
.detail-related {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 12px;
  margin: 0 -20px;
  padding: 0 20px 4px;
}

.detail-related .opening-card {
  min-width: 0;
}

/* 하단 CTA */
.detail-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-top: 1px solid var(--voda-line);
  padding: 12px 16px calc(12px + var(--voda-safe-bottom));
  /* padding: 12px 16px calc(72px + var(--voda-safe-bottom)); */
  display: flex;
  gap: 12px;
  align-items: center;
  z-index: 20;
}
.detail-cta__like {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--voda-ink-muted);
  padding: 4px 8px;
}
.detail-cta__like.is-liked {
  color: var(--voda-primary);
  border-color: var(--voda-primary);
  background: #fff5f5;
}

.detail-cta__like.is-liked svg {
  fill: currentColor;
}

.detail-cta__like:disabled {
  opacity: .5;
  cursor: default;
}
.detail-cta__like-count {
  font-size: 10px;
  font-weight: 600;
}

.detail-side-card__like {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--voda-line);
  background: #fff;
  border-radius: 50%;

  cursor: pointer;

  transition:
      background .2s ease,
      border-color .2s ease,
      transform .15s ease;
}

.detail-side-card__like:hover {
  background: #f7f7f7;
}

.detail-side-card__like:active {
  transform: scale(.92);
}

.detail-side-card__like.is-liked {
  color: var(--voda-primary);
  border-color: var(--voda-primary);
  background: #fff5f5;
}

.detail-side-card__like.is-liked svg {
  fill: currentColor;
}

.detail-side-card__like:disabled {
  opacity: .5;
  cursor: default;
}
