/* ==========================================================
   StarSeller · Home (Live Discovery) — v5 mockup styles
   ========================================================== */

/* HERO POSTER CAROUSEL */
.hero { position: relative; overflow: hidden; }
.hero-empty {
  padding: 60px var(--gutter);
  text-align: center;
  background: var(--c-paper);
}
.hero-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.hero-track::-webkit-scrollbar { display: none; }

.poster {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 2 / 3;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  background: #1a1a1a;
}
.poster-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.poster-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 50%, rgba(0,0,0,.88) 100%);
}
.poster-badge {
  position: absolute; top: 16px; left: 16px;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 11px;
  background: #fff; color: var(--c-ink);
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.poster-badge.live { background: var(--c-dahong); color: #fff; }
.poster-badge.live .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #fff;
  animation: ss-pulse 1.4s infinite;
}
.poster-badge.upcoming {
  background: rgba(46, 58, 135, .25);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.poster-badge.upcoming .clock {
  width: 11px; height: 11px; stroke: currentColor; fill: none;
}
@keyframes ss-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.3; transform: scale(0.65); }
}
.poster-save {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: grid; place-items: center;
}
.poster-save svg { width: 16px; height: 16px; }
.poster-info {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0 22px 28px;
  color: #fff;
}
.poster-seller {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.95;
}
.poster-seller .avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  background-size: cover; background-position: center;
  border: 1px solid rgba(255,255,255,.6);
}
.poster-title {
  margin-top: 14px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #fff;
}
.poster-meta {
  margin-top: 18px;
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,.85);
}
.poster-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,.5); }
.poster-meta .num { color: #fff; font-weight: 600; }
.poster-cta {
  position: absolute; right: 18px; bottom: 28px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 16px 12px 14px;
  background: #fff; color: var(--c-ink);
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
}
.poster-cta svg { width: 12px; height: 12px; fill: currentColor; }
.poster-cta.live { background: var(--c-dahong); color: #fff; }
.poster-cta.upcoming {
  background: rgba(46, 58, 135, .25);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-dots {
  position: absolute; left: 0; right: 0; bottom: 12px;
  display: flex; justify-content: center; gap: 5px;
  pointer-events: none;
  z-index: 3;
}
.hero-dot {
  width: 14px; height: 2px;
  background: rgba(255,255,255,.35);
  transition: background .3s;
}
.hero-dot.is-on { background: #fff; }

/* COUNT STRIP */
.hero-strip {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  border-bottom: 1px solid var(--c-divider);
}
.hero-strip-l {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--c-ink);
  text-transform: uppercase;
}
.hero-strip-l .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-dahong); animation: ss-pulse 1.4s infinite; }
.hero-strip-l .num { color: var(--c-dahong); font-weight: 700; }
.hero-strip-r {
  font-family: var(--font-mono);
  font-size: 10px; color: var(--c-text-muted);
  letter-spacing: 0.04em;
}

/* CATEGORY TABS */
.cats {
  display: flex; gap: 26px;
  overflow-x: auto; scrollbar-width: none;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--c-divider);
}
.cats::-webkit-scrollbar { display: none; }
.cat {
  flex: 0 0 auto;
  padding: 16px 0;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--c-text-muted);
  white-space: nowrap;
  border-bottom: 1.5px solid transparent;
  margin-bottom: -1px;
}
.cat.is-on {
  color: var(--c-ink);
  font-weight: 700;
  border-bottom-color: var(--c-ink);
}

/* DATE NAV */
.dnav-wrap { padding-top: 12px; }
.dnav-hd {
  padding: 0 var(--gutter) 12px;
  display: flex; align-items: baseline; justify-content: space-between;
}
.dnav {
  display: flex; gap: 4px;
  overflow-x: auto; scrollbar-width: none;
  padding: 0 var(--gutter);
  border-top: 1px solid var(--c-divider);
  border-bottom: 1px solid var(--c-divider);
  background: var(--c-paper);
}
.dnav::-webkit-scrollbar { display: none; }
.dnav-empty {
  padding: 20px var(--gutter);
  border-top: 1px solid var(--c-divider);
  border-bottom: 1px solid var(--c-divider);
  background: var(--c-paper);
  text-align: center;
  font-size: 12px;
  color: var(--c-text-muted);
}
.dnav-cell {
  flex: 0 0 64px;
  padding: 14px 0 12px;
  text-align: center;
  position: relative;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: var(--c-ink);
}
.dnav-date {
  font-family: var(--font-mono);
  font-size: 17px; font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  margin-bottom: 4px;
}
.dnav-day {
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--c-text-muted);
}
.dnav-cell.weekend .dnav-day { color: var(--c-dahong); }
.dnav-mark {
  position: absolute;
  bottom: 7px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 3px;
}
.dnav-mark .pip {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--c-text-disabled);
}
.dnav-cell.has-live .dnav-mark .pip:first-child { background: var(--c-dahong); }
.dnav-cell.is-on {
  border-bottom-color: var(--c-ink);
  background: var(--c-bg);
}
.dnav-cell.is-on .dnav-day { color: var(--c-ink); }
.dnav-cell.is-on.weekend .dnav-day { color: var(--c-dahong); }
.dnav-cell.is-on .dnav-date { font-weight: 700; }
.dnav-cell.is-today::before {
  content: '오늘';
  position: absolute;
  top: -1px; left: 50%; transform: translateX(-50%) translateY(-100%);
  font-family: var(--font-mono);
  font-size: 8px; font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--c-dahong);
  background: var(--c-bg);
  padding: 2px 5px;
  border: 1px solid var(--c-dahong);
  border-radius: 2px;
}

/* SCHEDULE LIST */
.sched { padding: 24px var(--gutter) 0; }
.sched-day-h {
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 20px;
}
.sched-day-h .count {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--c-text-muted);
}
.sched-day-h .count b {
  color: var(--c-ink); font-weight: 700; margin-right: 3px;
}

/* 카드 그리드 — 한 행에 2장, 각 카드 40% 가로 (가운데 20% 갭) */
.sched-list {
  display: flex; flex-wrap: wrap;
  gap: 24px 20%;
}
.sched-card {
  flex: 0 0 40%;
  min-width: 0;
  display: flex; flex-direction: column;
  color: var(--c-ink);
  text-decoration: none;
}
.sched-card-poster {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  background: var(--c-paper);
  overflow: hidden;
}
.sched-card-poster img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.sched-card.is-live .sched-card-poster::before {
  content: ''; position: absolute; inset: 0;
  border: 1.5px solid var(--c-dahong);
  pointer-events: none;
  z-index: 1;
}
.sched-card-tag.live {
  position: absolute; top: 6px; left: 6px;
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 6px;
  background: var(--c-dahong); color: #fff;
  font-family: var(--font-mono);
  font-size: 8px; font-weight: 700;
  letter-spacing: 0.18em;
  z-index: 2;
}
.sched-card-tag.live .dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: #fff; animation: ss-pulse 1.4s infinite;
}

/* 알림 종 — 포스터 우상단 */
.sched-card-bell {
  position: absolute; top: 6px; right: 6px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: grid; place-items: center;
  color: #fff;
  z-index: 2;
}
.sched-card-bell svg { width: 14px; height: 14px; }
.sched-card-bell.live { background: var(--c-dahong); }

.sched-card-title {
  margin-top: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.35;
  color: var(--c-ink);
  letter-spacing: -0.01em;
  overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.sched-card-time {
  margin-top: 4px;
  display: flex; align-items: center; gap: 5px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  color: var(--c-text-muted);
}
.sched-card-time .on-air {
  color: var(--c-dahong); font-weight: 700;
  letter-spacing: 0.1em;
}
.sched-card-time .sep {
  width: 2px; height: 2px; border-radius: 50%;
  background: var(--c-text-disabled);
}
.sched-card-seller {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 9px; font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* SECTION HD */
.sect { padding-top: 40px; }
.sect-hd {
  padding: 0 var(--gutter) 18px;
  display: flex; align-items: baseline; justify-content: space-between;
}

/* HOME INQUIRY CTA — replaces sellers strip */
.home-inq { padding: 0 var(--gutter); }
.home-inq-card {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 18px;
  border: 1px solid var(--c-divider);
  background: var(--c-paper);
  color: var(--c-ink);
  text-decoration: none;
  transition: background .15s;
}
.home-inq-card:hover { background: #f3eee6; }
.home-inq-l { flex: 1 1 auto; min-width: 0; }
.home-inq-r {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  color: var(--c-dahong);
}
.home-inq-r svg { width: 22px; height: 22px; }
