/* ===== 트로트 콘서트 알리미 — Crimson + Gold 팔레트 ===== */

/* ===== 1. CSS 변수 ===== */
:root {
  --brand: #B91C1C;        /* Crimson */
  --brand-2: #FBBF24;      /* Gold */
  --brand-grad: linear-gradient(135deg, #B91C1C 0%, #FBBF24 100%);
  --brand-light: #FEE2E2;
  --brand-dark: #7F1D1D;
  --text: #1F2937;
  --text-muted: #6B7280;
  --surface: #FFFFFF;
  --bg: #FFFBEB;            /* 옅은 골드톤 배경 */
  --border: #FDE68A;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 12px rgba(185, 28, 28, 0.08);
  --shadow-sm: 0 2px 6px rgba(185, 28, 28, 0.06);
}

/* ===== 2. Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans KR', 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ===== 3. 풀블리드 상단 광고 ===== */
.ad-container.top-ad {
  width: 100%;
  background: #fff7ed;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

/* ===== 4. 풀블리드 헤더 ===== */
.main-header {
  width: 100%;
  background: var(--brand-grad);
  padding: 2rem 1rem;
  position: relative;
  overflow: hidden;
}

.main-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(251, 191, 36, 0.3) 0%, transparent 60%),
              radial-gradient(ellipse at bottom left, rgba(127, 29, 29, 0.5) 0%, transparent 60%);
  pointer-events: none;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.header-link {
  display: inline-block;
  text-decoration: none;
}

.main-header h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.main-header .subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 0.5rem;
  font-weight: 400;
}

.btn-share-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 1rem;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-share-header:hover {
  background: rgba(255, 255, 255, 0.32);
}

/* ===== 5. 컨테이너 (1100px 표준) ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px;
}

.layout-container {
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}

.main-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ===== 6. 사이드바 ===== */
.app-sidebar {
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.app-sidebar::-webkit-scrollbar { display: none; }

.sidebar-card {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.sidebar-card h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 12px;
  padding-left: 8px;
  border-left: 3px solid var(--brand-2);
  color: var(--text);
}

.sidebar-card.recommended-card h3 {
  border-left-color: var(--brand);
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-list li {
  margin-bottom: 4px;
}

.sidebar-list a {
  display: flex;
  align-items: flex-start;
  text-decoration: none;
  color: var(--text);
  padding: 8px 10px;
  border-radius: 8px;
  transition: background .15s, transform .15s;
}

.sidebar-list a:hover {
  background: var(--brand-light);
  transform: translateX(2px);
}

.link-icon {
  margin-right: 10px;
  font-size: 16px;
  flex-shrink: 0;
  line-height: 1.4;
}

.link-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.link-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-desc {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-dark);
}

/* ===== 7. 카드 공통 ===== */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* ===== 8. 섹션 공통 ===== */
section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== 9. 즐겨찾기 섹션 ===== */
.favorites-section {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

#favorites-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  min-height: 60px;
}

#favorites-list[data-loading="1"] {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.fav-empty {
  padding: 16px;
  background: linear-gradient(135deg, var(--brand-light) 0%, #FEF9C3 100%);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--brand-dark);
  text-align: center;
  line-height: 1.7;
  width: 100%;
}

.fav-card {
  flex: 0 0 auto;
  background: var(--brand-grad);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  min-width: 140px;
  position: relative;
  text-align: center;
}

.fav-card .fav-name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

.fav-card .fav-concert {
  font-size: 0.75rem;
  opacity: 0.88;
  margin-bottom: 4px;
}

.fav-card .fav-dday {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.fav-card .fav-remove {
  position: absolute;
  top: 6px;
  right: 8px;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  color: #fff;
  font-size: 14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.fav-card .fav-remove:hover {
  background: rgba(255, 255, 255, 0.45);
}

.favorites-add {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  position: relative;
}

#fav-input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

#fav-input:focus {
  border-color: var(--brand);
}

#fav-add-btn {
  padding: 10px 18px;
  background: var(--brand-grad);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}

#fav-add-btn:hover {
  opacity: 0.88;
}

.fav-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 80px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  z-index: 100;
  overflow: hidden;
}

.fav-suggestion-item {
  padding: 10px 14px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--border);
}

.fav-suggestion-item:last-child {
  border-bottom: none;
}

.fav-suggestion-item:hover {
  background: var(--brand-light);
  color: var(--brand-dark);
}

.fav-help {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== 10. 다가오는 콘서트 ===== */
.upcoming-section {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

#upcoming-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

#upcoming-list[data-loading="1"],
#recent-list[data-loading="1"],
#news-list[data-loading="1"] {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 12px 0;
}

/* ===== 11. 콘서트 카드 ===== */
.concert-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
}

.concert-card:hover {
  background: var(--brand-light);
  border-color: var(--brand);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.concert-poster {
  width: 72px;
  height: 100px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #eee;
}

.concert-poster img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.concert-info { flex: 1; min-width: 0; }

.concert-artist {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.concert-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

.concert-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 0.75rem;
  flex-wrap: wrap;
}

.concert-state.up {
  background: #DCFCE7;
  color: #166534;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.7rem;
}

.concert-state.done {
  background: #F3F4F6;
  color: #6B7280;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.7rem;
}

.concert-date { color: var(--text-muted); font-size: 0.75rem; }

.concert-venue {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.concert-empty {
  padding: 18px;
  background: var(--brand-light);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--brand-dark);
  text-align: center;
  line-height: 1.7;
  grid-column: 1 / -1;
}

.kopis-note {
  margin-top: 14px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.55;
  word-break: keep-all;
}

/* ===== 12. 가수별 콘서트 ===== */
.by-artist-section {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.artist-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.artist-tab {
  padding: 8px 16px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  background: #fff;
  color: var(--text);
}

.artist-tab:hover {
  background: var(--brand-light);
  border-color: var(--brand);
  color: var(--brand-dark);
}

.artist-tab.active {
  background: var(--brand-grad);
  border-color: transparent;
  color: #fff;
}

.artist-tab .tab-count {
  font-size: 0.7rem;
  opacity: 0.8;
  margin-left: 4px;
}

#artist-concerts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* ===== 13. 최근 공연 섹션 ===== */
.recent-section {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

#recent-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* ===== 14. 티켓 섹션 ===== */
.tickets-section {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.ticket-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.ticket-grid a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
}

.ticket-grid a:hover {
  background: var(--brand-light);
  border-color: var(--brand);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.ticket-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.ticket-body { flex: 1; min-width: 0; }

.ticket-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 3px;
}

.ticket-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ===== 15. 뉴스 섹션 ===== */
.news-section {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

#news-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-card {
  display: block;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand-2);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
}

.news-card:hover {
  background: var(--brand-light);
  border-left-color: var(--brand);
  transform: translateX(2px);
  box-shadow: var(--shadow-sm);
}

.news-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}

.news-date { color: var(--text-muted); }
.news-go { color: var(--brand); font-weight: 600; }

.news-note {
  margin-top: 12px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: right;
}

/* ===== 16. 콘서트 준비 팁 ===== */
.tips-section {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.tip-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(135deg, #FFFBEB 0%, var(--brand-light) 100%);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand-2);
  border-radius: var(--radius-sm);
}

.tip-icon { font-size: 26px; flex-shrink: 0; }
.tip-body { flex: 1; min-width: 0; }

.tip-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 4px;
}

.tip-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ===== 17. popular-section (SEO) ===== */
.popular-section {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

#popular-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.popular-card {
  display: inline-block;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s;
}

.popular-card:hover {
  background: var(--brand-light);
  border-color: var(--brand);
  color: var(--brand-dark);
}

/* ===== 18. FAQ ===== */
.faq-section {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.faq-section details {
  border-bottom: 1px solid var(--border);
}

.faq-section details:last-child {
  border-bottom: none;
}

.faq-section summary {
  padding: 14px 4px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.faq-section summary::-webkit-details-marker { display: none; }

.faq-section summary::before {
  content: '+';
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--brand);
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.faq-section details[open] summary::before { content: '−'; }

.faq-section details p {
  padding: 4px 4px 16px 28px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== 19. related-grid ===== */
.related-section {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 4px;
}

.related-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s;
  min-width: 0;
}

.related-link:hover {
  background: var(--brand-light);
  border-color: var(--brand);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.rel-emoji { font-size: 26px; flex-shrink: 0; }
.rel-body { flex: 1; min-width: 0; }

.rel-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-link:hover .rel-title { color: var(--brand); }

.rel-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== 20. 하단 광고 ===== */
.ad-container.bottom-ad {
  width: 100%;
  background: #fff7ed;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  margin-top: 24px;
}

/* ===== 21. 푸터 ===== */
.main-footer {
  width: 100%;
  background: var(--brand-dark);
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  padding: 24px 16px;
  font-size: 0.85rem;
  line-height: 1.8;
}

.main-footer p { margin: 4px 0; }

.main-footer .disclaimer {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 700px;
  margin: 8px auto 0;
  line-height: 1.6;
}

/* ===== 22. 토스트 ===== */
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #1F2937;
  color: #fff;
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 9999;
  transition: transform 0.3s ease;
  pointer-events: none;
}

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

/* ===== 23. 유틸 ===== */
.hidden { display: none !important; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: var(--brand-grad);
  color: #fff;
}

.btn-primary:hover {
  opacity: 0.9;
}

/* ===== 24. 중앙 광고 슬롯 시스템 (ad-loader.js 렌더) ===== */
.ad-slot {
  display: block;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  background: linear-gradient(135deg, #B91C1C, #7F1D1D);
  color: #fff;
  position: relative;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ad-slot:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.ad-slot.banner-wide {
  aspect-ratio: 4/1;
  max-width: 800px;
  margin: 20px auto;
}

.ad-slot.banner-square {
  aspect-ratio: 1/1;
  max-width: 320px;
  margin: 20px auto;
}

.ad-slot .ad-inner {
  position: absolute;
  inset: 0;
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
}

.ad-slot.has-image .ad-inner {
  background: linear-gradient(90deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .25) 60%, rgba(0, 0, 0, 0) 100%);
}

.ad-slot.banner-square .ad-inner {
  padding: 18px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .15) 0%, rgba(0, 0, 0, .55) 100%);
  justify-content: flex-end;
}

.ad-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.ad-slot .ad-inner { z-index: 1; }

.ad-slot .ad-label {
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, .75);
  background: rgba(0, 0, 0, .25);
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 2;
}

.ad-slot .ad-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.2px;
}

.ad-slot.banner-square .ad-title { font-size: 17px; }

.ad-slot .ad-subtitle {
  font-size: 13px;
  opacity: 0.9;
  margin-top: 2px;
}

.ad-slot .ad-cta {
  display: inline-block;
  align-self: flex-start;
  margin-top: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  transition: background .15s;
}

.ad-slot .ad-cta:hover { background: rgba(255, 255, 255, 0.4); }

/* 카카오 채널 슬롯 — 전 사이트 공통 브랜드 (노랑 #FEE500 + 브라운 #3C1E1E) */
.ad-slot.kakao-channel,
.ad-slot[data-ad-type="kakao-channel"] {
  background: #FEE500;
  border-color: rgba(0, 0, 0, 0.12);
}

.ad-slot.kakao-channel.has-image .ad-inner,
.ad-slot[data-ad-type="kakao-channel"].has-image .ad-inner {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0) 40%);
}

.ad-slot.kakao-channel .ad-title,
.ad-slot[data-ad-type="kakao-channel"] .ad-title {
  color: #3C1E1E;
  text-shadow: none;
}

.ad-slot.kakao-channel .ad-subtitle,
.ad-slot[data-ad-type="kakao-channel"] .ad-subtitle {
  color: rgba(60, 30, 30, 0.82);
  opacity: 1;
}

.ad-slot.kakao-channel .ad-label,
.ad-slot[data-ad-type="kakao-channel"] .ad-label {
  background: #3C1E1E;
  color: #FEE500;
}

.ad-slot.kakao-channel .ad-cta,
.ad-slot[data-ad-type="kakao-channel"] .ad-cta {
  background: #3C1E1E;
  color: #FEE500;
  border-color: transparent;
}

/* ===== 25. 반응형 ===== */
@media (max-width: 1024px) {
  .layout-container {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: static;
    max-height: none;
  }
}

@media (max-width: 768px) {
  .main-header h1 {
    font-size: 1.5rem;
  }

  .main-header .subtitle {
    font-size: 0.85rem;
  }

  #upcoming-list,
  #recent-list,
  #artist-concerts {
    grid-template-columns: 1fr;
  }

  .ticket-grid {
    grid-template-columns: 1fr;
  }

  .tips-grid {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .container {
    padding: 16px 12px;
  }

  .main-header {
    padding: 1.5rem 0.75rem;
  }

  .main-header h1 {
    font-size: 1.3rem;
  }

  .favorites-section,
  .upcoming-section,
  .by-artist-section,
  .recent-section,
  .tickets-section,
  .news-section,
  .tips-section,
  .popular-section,
  .faq-section,
  .related-section {
    padding: 16px;
  }

  .fav-card {
    min-width: 120px;
  }

  .artist-tabs {
    gap: 6px;
  }

  .artist-tab {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}
