:root {
  --bg: #0a0a0a;
  --bg-elevated: #141414;
  --bg-card: #1a1a1a;
  --border: #2a2a2a;
  --text: #ffffff;
  --text-dim: #9a9a9a;
  --text-faint: #5a5a5a;
  --accent: #e63946;
  --accent-dim: rgba(230, 57, 70, 0.15);
  --radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", -apple-system,
    BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  padding: 24px 16px 64px;
}

.wrap {
  max-width: 1000px;
  margin: 0 auto;
}

.top-bar {
  max-width: 1000px;
  margin: 0 auto 12px;
  display: flex;
  justify-content: flex-end;
}

/* ---------- Header ---------- */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  position: relative;
}

.logo {
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-align: center;
  background: linear-gradient(135deg, #ffffff 30%, #b8b8b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo span {
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
}

.search-box {
  width: 100%;
  max-width: 420px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 12px 44px 12px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s ease;
}

.search-box input:focus {
  border-color: var(--accent);
}

.search-box input::placeholder {
  color: var(--text-faint);
}

.search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
  pointer-events: none;
  font-size: 16px;
}

/* search results dropdown */
.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-height: 320px;
  overflow-y: auto;
  z-index: 50;
  display: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.search-results.show {
  display: block;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease;
}

.sr-thumb {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}

.sr-thumb .avatar-img,
.sr-thumb .avatar-placeholder,
.sr-thumb-img,
.sr-thumb-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.sr-thumb .avatar-img,
.sr-thumb .avatar-placeholder {
  border-radius: 50%;
}

.sr-text {
  min-width: 0;
  flex: 1;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: var(--bg-card);
}

.search-result-item .sr-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-item .sr-meta {
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-empty {
  padding: 16px;
  color: var(--text-faint);
  font-size: 13px;
  text-align: center;
}

/* ---------- Calendar ---------- */
.calendar-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 0 4px;
}

.cal-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.cal-nav {
  display: flex;
  gap: 8px;
}

.cal-nav button {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.cal-nav button:hover {
  background: var(--bg);
  border-color: var(--accent);
}

.cal-nav .today-btn {
  width: auto;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
}

.weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 8px;
}

.weekdays div {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-faint);
  padding: 8px 0;
}

.weekdays div:first-child { color: #e63946; }
.weekdays div:last-child { color: #4a90e2; }

.days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.day-cell {
  aspect-ratio: 1 / 1;
  min-height: 64px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--bg-card);
  padding: 6px 6px;
  cursor: default;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.1s ease;
}

.day-cell.empty {
  background: transparent;
  border: none;
}

.day-cell.has-show {
  cursor: pointer;
  background: var(--accent-dim);
  border-color: rgba(230, 57, 70, 0.35);
}

.day-cell.has-show:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.day-cell.is-today {
  border-color: #4a90e2;
}

.day-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
}

.day-cell.has-show .day-num {
  color: var(--text);
}

.day-cell.is-today .day-num {
  color: #4a90e2;
}

.day-shows {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.day-show-tag {
  font-size: 10px;
  line-height: 1.3;
  color: var(--text);
  background: rgba(230, 57, 70, 0.35);
  border-radius: 4px;
  padding: 2px 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.day-show-tag.type-album {
  background: rgba(155, 93, 229, 0.35);
}

.day-show-tag.type-sale {
  background: rgba(42, 157, 143, 0.35);
}

.day-show-more {
  font-size: 10px;
  color: var(--text-dim);
  padding-left: 4px;
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal-overlay.show {
  display: flex;
}

.modal {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 24px;
  position: relative;
  animation: modalIn 0.18s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg-card);
  color: var(--text-dim);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--border);
  color: var(--text);
}

.modal-date {
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 8px;
}

.guide-modal {
  max-width: 460px;
  padding: 32px;
}

.guide-title {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 20px;
}

.guide-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.guide-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text-dim);
}

.guide-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.guide-dot.type-album {
  background: #9b5de5;
}

.guide-dot.type-sale {
  background: #2a9d8f;
}

.guide-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.guide-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.guide-actions .form-inline-btn {
  flex: 1;
  white-space: nowrap;
}

.guide-actions .auth-submit-btn {
  flex: 1;
}

.day-modal-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s ease;
}

.day-modal-item:hover {
  border-color: var(--accent);
}

.dmi-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.dmi-meta {
  font-size: 12px;
  color: var(--text-dim);
}

.event-modal-body {
  padding-top: 8px;
}

.event-modal-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  object-fit: cover;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}

.event-modal-cover-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: var(--bg-card);
}

.show-detail {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.show-detail:last-child {
  border-bottom: none;
}

.show-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
  padding-right: 24px;
}

.show-info-row {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 6px;
  align-items: flex-start;
}

.show-info-row .label {
  color: var(--text-faint);
  min-width: 56px;
  flex-shrink: 0;
}

.show-info-row .value {
  color: var(--text);
}

.rapper-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rapper-tag {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--text);
}

.ticket-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 18px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: opacity 0.15s ease;
}

.ticket-btn:hover {
  opacity: 0.85;
}

.no-link {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 18px;
  background: var(--bg-card);
  color: var(--text-faint);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

/* 애드센스 광고 자리 - 실제 광고 코드로 교체 전까지 표시되는 자리표시자 */
.ad-slot {
  max-width: 1000px;
  margin: 24px auto 0;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--text-faint);
  font-size: 12px;
  background: var(--bg-elevated);
}

footer {
  text-align: center;
  color: var(--text-faint);
  font-size: 12px;
  margin-top: 32px;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  body { padding: 16px 10px 48px; }
  .calendar-card { padding: 14px 10px; border-radius: 16px; }
  .day-cell { min-height: 52px; padding: 4px; border-radius: 8px; }
  .day-num { font-size: 11px; }
  .day-show-tag { font-size: 8.5px; padding: 1px 3px; }
  .days-grid { gap: 4px; }
  .cal-title { font-size: 18px; }
  .cal-nav button { width: 32px; height: 32px; font-size: 14px; }
  .cal-nav .today-btn { padding: 0 10px; font-size: 12px; }
  .top-bar { justify-content: center; }
  .auth-nav { flex-wrap: wrap; justify-content: center; }
  .nav-welcome { white-space: normal; text-align: center; }
}

@media (max-width: 400px) {
  .day-shows { display: none; }
  .day-cell.has-show::after {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    align-self: center;
    margin-top: 2px;
  }
}

/* ==========================================================
   사이트 공통 내비게이션 (공연상세 / 아티스트 페이지)
   ========================================================== */
.site-nav {
  max-width: 1000px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav .nav-logo {
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-nav .nav-logo span {
  color: var(--accent);
}

.site-nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ---------- 로그인 상태 네비게이션 ---------- */
.auth-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.nav-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}

.nav-btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.nav-btn-accent:hover {
  opacity: 0.88;
  color: #fff;
}

.nav-welcome {
  font-size: 13.5px;
  color: var(--text-dim);
  white-space: nowrap;
}

.nav-welcome b {
  color: var(--text);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.back-link:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* ==========================================================
   공연 상세 페이지
   ========================================================== */
.detail-wrap {
  max-width: 1000px;
  margin: 0 auto;
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 36px;
  margin-bottom: 48px;
}

.poster-frame {
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

/* 앨범 발매 / 실물음반 판매 커버는 정사각형으로 표시 */
.poster-frame.square {
  aspect-ratio: 1 / 1;
}

.poster-img,
.poster-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.poster-placeholder-title {
  font-size: 22px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.4;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-title {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.hero-facts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.hero-fact {
  display: flex;
  gap: 14px;
  font-size: 14.5px;
}

.hero-fact .hf-label {
  min-width: 84px;
  flex-shrink: 0;
  color: var(--text-faint);
}

.hero-fact .hf-value {
  color: var(--text);
  font-weight: 500;
}

.hero-ticket-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 24px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  border-radius: 14px;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.hero-ticket-multi {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-ticket-multi .hero-ticket-btn {
  padding: 14px 24px;
  font-size: 15px;
}

.hero-ticket-btn:hover {
  opacity: 0.88;
}

.hero-ticket-btn:active {
  transform: scale(0.98);
}

.hero-ticket-btn.disabled {
  background: var(--bg-card);
  color: var(--text-faint);
  border: 1px solid var(--border);
  cursor: default;
  pointer-events: none;
}

.affiliate-disclosure {
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
}

.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

/* 로그인 기능 비활성화 기간 동안 숨김 처리 (코드는 유지, 나중에 이 규칙만 지우면 다시 노출됨) */
.login-gated {
  display: none !important;
}

.hero-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.hero-action-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}

.hero-action-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ---------- 섹션 공통 ---------- */
.detail-section {
  margin-bottom: 48px;
}

.section-title {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

/* ---------- 출연진 ---------- */
.lineup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 16px;
}

.artist-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 16px 10px;
  border-radius: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: border-color 0.15s ease, transform 0.1s ease;
  cursor: pointer;
}

.artist-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.avatar-img,
.avatar-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

.artist-card-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}

/* ---------- 공연 소개 ---------- */
.description-text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-dim);
  white-space: pre-line;
}

/* ---------- 공연 정보 카드 ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.info-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
}

.info-card .ic-label {
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 6px;
}

.info-card .ic-value {
  font-size: 15px;
  color: var(--text);
  font-weight: 600;
}

/* ---------- 공연장 지도 ---------- */
.map-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.map-embed {
  display: block;
  width: 100%;
  height: 320px;
  border: none;
  filter: grayscale(0.15) invert(0.92) contrast(0.9);
}

.map-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
}

.map-venue-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

.map-venue-address {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 2px;
}

.map-link-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  transition: border-color 0.15s ease;
}

.map-link-btn:hover {
  border-color: var(--accent);
}

/* ---------- 추천 공연 ---------- */
.recommend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.recommend-card {
  text-decoration: none;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  transition: border-color 0.15s ease, transform 0.1s ease;
}

.recommend-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.recommend-poster {
  aspect-ratio: 3 / 4;
}

.recommend-poster .poster-placeholder-title {
  font-size: 15px;
}

.recommend-info {
  padding: 12px 14px;
}

.recommend-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recommend-date {
  font-size: 12px;
  color: var(--text-faint);
}

/* ==========================================================
   아티스트 프로필 페이지
   ========================================================== */
.artist-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  margin-bottom: 48px;
}

.artist-hero .avatar-img,
.artist-hero .avatar-placeholder {
  width: 120px;
  height: 120px;
  font-size: 40px;
}

.artist-hero-name {
  font-size: 26px;
  font-weight: 900;
}

.artist-hero-bio {
  max-width: 520px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-dim);
}

.artist-follower-count {
  font-size: 13.5px;
  color: var(--text-faint);
  font-weight: 600;
}

.follow-btn {
  padding: 10px 28px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.follow-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}

.follow-btn.following {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.follow-btn.following:hover {
  opacity: 0.88;
}

/* ---------- 회원가입 유도 팝업 ---------- */
.auth-gate-modal {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-top: 36px;
}

.auth-gate-icon {
  font-size: 34px;
  margin-bottom: 4px;
}

.auth-gate-title {
  font-size: 19px;
  font-weight: 800;
}

.auth-gate-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 10px;
}

.auth-gate-signup-btn {
  width: 100%;
  padding: 14px;
  font-size: 15px;
}

.auth-gate-login-link {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-faint);
  text-decoration: none;
}

.auth-gate-login-link:hover {
  color: var(--text-dim);
}

.artist-shows-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

/* ---------- 토스트 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- 반응형 (상세/아티스트 페이지) ---------- */
@media (max-width: 720px) {
  .detail-hero {
    grid-template-columns: 1fr;
  }
  .poster-frame {
    max-width: 280px;
    margin: 0 auto;
  }
  .hero-info {
    text-align: left;
  }
  .site-nav {
    padding: 0 4px;
    flex-wrap: wrap;
    row-gap: 10px;
  }
  .site-nav-right {
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .nav-welcome {
    white-space: normal;
  }
  .map-card-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .map-link-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================
   인증 폼 (로그인 / 회원가입 / 관리자 로그인)
   ========================================================== */
.auth-page {
  display: flex;
  justify-content: center;
  padding: 24px 0 60px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
}

.auth-title {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 13.5px;
  color: var(--text-faint);
  margin-bottom: 28px;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 8px;
  font-weight: 600;
}

.form-field input[type="text"],
.form-field input[type="password"],
.form-field input[type="email"],
.form-field input[type="date"],
.form-field input[type="time"],
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
}

.form-field textarea {
  resize: vertical;
}

.form-field input[type="file"] {
  width: 100%;
  font-size: 13px;
  color: var(--text-dim);
}

.form-inline {
  display: flex;
  gap: 8px;
}

.form-inline input {
  flex: 1;
}

.form-inline-btn {
  flex-shrink: 0;
  padding: 0 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s ease;
}

.form-inline-btn:hover {
  border-color: var(--accent);
}

.form-inline-btn.danger {
  color: #ff8080;
  border-color: rgba(255, 128, 128, 0.3);
}

.form-inline-btn.danger:hover {
  border-color: #ff8080;
}

.field-hint {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-faint);
}

.field-msg {
  min-height: 18px;
  font-size: 12.5px;
  margin-bottom: 10px;
}

.field-msg-error {
  color: #ff8080;
}

.field-msg-ok {
  color: #6fcf97;
}

.auth-submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s ease;
}

.auth-submit-btn:hover {
  opacity: 0.88;
}

.auth-switch {
  margin-top: 22px;
  text-align: center;
  font-size: 13px;
  color: var(--text-faint);
}

.auth-switch a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.auth-switch a:hover {
  text-decoration: underline;
}

/* ==========================================================
   관리자 페이지
   ========================================================== */
.admin-badge {
  font-size: 10px;
  font-weight: 800;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 5px;
  padding: 2px 6px;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: 0.04em;
}

.admin-wrap {
  max-width: 760px;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.admin-tab-btn {
  padding: 12px 18px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-faint);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.admin-tab-btn:hover {
  color: var(--text-dim);
}

.admin-tab-btn.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.admin-form-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  margin-bottom: 32px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.multiselect {
  position: relative;
}

.multiselect-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.multiselect-tags:empty {
  margin-bottom: 0;
}

.lineup-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  color: var(--text);
  padding: 6px 8px 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.lineup-tag-remove {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 12px;
  padding: 2px;
  line-height: 1;
  font-family: inherit;
}

.lineup-tag-remove:hover {
  color: var(--text);
}

.multiselect-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 6px;
  max-height: 240px;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  z-index: 20;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.multiselect-dropdown.show {
  display: block;
}

.multiselect-item {
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.multiselect-item:hover {
  background: var(--bg-elevated);
}

.multiselect-item-slug {
  font-size: 11px;
  color: var(--text-faint);
}

.multiselect-empty {
  padding: 14px;
  font-size: 13px;
  color: var(--text-faint);
  text-align: center;
}

.extra-date-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.extra-date-row input[type="date"],
.extra-date-row input[type="text"] {
  flex: 1;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 13.5px;
  font-family: inherit;
}

.image-upload-preview img {
  margin-top: 10px;
  max-width: 140px;
  max-height: 140px;
  border-radius: 10px;
  border: 1px solid var(--border);
  object-fit: cover;
}

.admin-form-more {
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px 14px;
}

.admin-form-more summary {
  padding: 10px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
}

.admin-form-more[open] summary {
  color: var(--text);
}

.admin-form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.admin-form-actions .auth-submit-btn {
  width: auto;
  padding: 12px 28px;
}

.admin-list-title {
  margin-bottom: 14px;
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.admin-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
}

.ali-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
}

.ali-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 4px;
  vertical-align: middle;
}

.ali-meta {
  font-size: 12.5px;
  color: var(--text-faint);
  margin-top: 3px;
}

.ali-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.admin-table th {
  color: var(--text-faint);
  font-weight: 600;
  font-size: 12px;
  background: var(--bg-elevated);
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

@media (max-width: 640px) {
  .auth-card {
    padding: 28px 20px;
  }
  .admin-form-grid {
    grid-template-columns: 1fr;
  }
  .admin-list-item {
    flex-direction: column;
    align-items: flex-start;
  }
}
