/* SCHEDULE — timeline board */

.calendar-page {
  max-width: 1180px;
}

.cal-page-header {
  margin-bottom: 28px;
}

.schedule-board {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 64px;
}

/* ── Sidebar ── */
.sched-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: calc(var(--banner-height) + var(--nav-height) + 16px);
}

.mini-cal {
  padding: 18px 16px 16px;
}

.mini-cal-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.mini-cal-nav strong {
  flex: 1;
  font-size: 14px;
  font-weight: 800;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.mini-nav-btn,
.mini-today-btn {
  border: 1px solid var(--border);
  background: var(--bg-elevated, var(--bg-card));
  color: var(--text-main);
  cursor: pointer;
  font: inherit;
}

.mini-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mini-today-btn {
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.mini-nav-btn:hover,
.mini-today-btn:hover {
  border-color: var(--cortis-green);
  color: var(--cortis-green);
}

.mini-weekdays,
.mini-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.mini-weekdays span {
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding-bottom: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.mini-weekdays span:first-child {
  color: var(--cortis-pink);
}

.mini-cell {
  height: 38px;
  border: 0;
  background: transparent;
  color: var(--text-main);
  cursor: pointer;
  font: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 10px;
}

.mini-cell span {
  font-size: 13px;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.mini-cell i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #5B8DEF;
}

.mini-cell.other-month {
  color: var(--text-subtle);
  cursor: default;
}

.mini-cell:not(:disabled):hover {
  background: var(--surface-muted);
}

.mini-cell.today span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #5B8DEF;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-cell.selected {
  background: rgba(91, 141, 239, 0.16);
}

.stat-card {
  padding: 18px 20px;
}

.stat-card span {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.stat-card strong {
  display: block;
  font-size: 36px;
  font-weight: 900;
  line-height: 1.1;
  margin: 6px 0 4px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.stat-card small {
  color: var(--text-subtle);
  font-size: 12px;
}

.stat-month {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.18), var(--bg-card));
}

.stat-month strong { color: #8B7CFF; }

.stat-upcoming {
  background: linear-gradient(135deg, rgba(46, 184, 122, 0.16), var(--bg-card));
}

.stat-upcoming strong { color: #2EB87A; }

/* ── Main feed ── */
.sched-main {
  min-width: 0;
}

.sched-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  margin-bottom: 16px;
  text-decoration: none;
  color: inherit;
}

.sched-banner strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
}

.sched-banner p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.sched-tools {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.sched-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
}

.sched-search .ico {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.sched-search input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--text-main);
  font: inherit;
  outline: none;
}

.sched-filter-btn,
.cal-empty-btn {
  height: 46px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text-main);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sched-filter-btn.is-open,
.sched-filter-btn.has-filters,
.sched-filter-btn:hover,
.cal-empty-btn:hover {
  border-color: var(--cortis-green);
}

.sched-filter-count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--cortis-green);
  color: #111;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cal-add-btn {
  display: none;
  height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--cortis-green);
  color: #111;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  align-items: center;
}

body.is-admin .cal-add-btn { display: inline-flex; }

.cal-add-btn-empty { margin: 0 auto 12px; }

.filter-modal {
  position: fixed;
  inset: 0;
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.filter-modal[hidden] {
  display: none;
}

.filter-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.filter-dialog {
  position: relative;
  width: min(440px, 100%);
  max-height: min(88vh, 720px);
  overflow: auto;
  padding: 22px 22px 18px;
  border-radius: 22px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px var(--shadow);
  color: var(--text-main);
}

.filter-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.filter-dialog-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

.filter-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.filter-close:hover {
  background: var(--surface-muted);
}

.filter-section + .filter-section {
  margin-top: 22px;
}

.filter-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filter-section-head span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-section-head .ico {
  width: 14px;
  height: 14px;
}

.filter-match {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 0;
}

.filter-match[aria-pressed="true"] {
  color: var(--cortis-green);
}

.filter-artists {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
}

.filter-artist {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 8px 10px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: var(--bg-card);
  color: var(--text-main);
  font: inherit;
  cursor: pointer;
}

.filter-artist img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: #111;
}

.filter-artist span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.filter-artist:hover,
.filter-artist.is-on {
  border-color: var(--cortis-green);
}

.filter-artist.is-on {
  background: rgba(148, 176, 145, 0.18);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text-main);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.filter-chip.is-on {
  background: var(--cortis-green);
  color: #111;
}

.filter-apply {
  width: 100%;
  margin-top: 24px;
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: var(--text-main);
  color: var(--bg-dark);
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.filter-apply:hover {
  background: var(--cortis-green);
  color: #111;
}

body.filter-modal-open {
  overflow: hidden;
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.tl-day {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  align-items: start;
}

.tl-day-head {
  display: flex;
  flex-direction: column;
  padding-top: 6px;
}

.tl-date-num {
  font-size: 42px;
  font-weight: 900;
  line-height: 0.9;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.tl-date-name {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.tl-day.is-selected .tl-date-num {
  color: #5B8DEF;
}

.tl-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tl-card {
  padding: 20px 22px;
  position: relative;
}

.tl-card h3 {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
}

.tl-card.cms-editable h3 {
  padding-right: 118px;
}

.tl-card .cms-edit-actions {
  display: none;
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  gap: 6px;
}

body.cms-editing .tl-card .cms-edit-actions {
  display: inline-flex;
}

.tl-card .cms-edit-actions .cms-edit-btn {
  position: static;
  display: inline-flex;
  right: auto;
}

.tl-en {
  margin-top: 4px;
  color: var(--text-subtle);
  font-size: 13px;
}

.tl-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 16px;
}

.tl-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ev-color, var(--cortis-green)) 18%, transparent);
  color: var(--ev-color, var(--cortis-green));
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.tl-loc {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 13px;
}

.tl-card-meta time {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.tl-avatars {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.tl-avatar,
.tl-avatar-more {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  margin-left: -6px;
  background: var(--m-color, #3A3A42);
  color: #111;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-card);
  object-fit: cover;
}

.tl-avatar:first-child { margin-left: 0; }

.tl-avatar-more {
  background: var(--bg-elevated);
  color: var(--text-main);
  font-size: 10px;
}

.tl-more {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #5B8DEF;
  cursor: pointer;
  white-space: nowrap;
}

.tl-more:hover { text-decoration: underline; }

.tl-detail {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 14px;
}

.tl-detail[hidden] { display: none; }

.tl-detail h4 {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
}

.tl-detail p,
.tl-detail a {
  margin: 0;
  font-size: 14px;
  color: var(--text-main);
}

.tl-detail a { color: #5B8DEF; }

.tl-end {
  margin: 8px 0 0;
  padding: 28px 0 8px;
  text-align: center;
  color: var(--text-subtle);
  font-size: 13px;
  font-weight: 700;
}

.cal-empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--text-muted);
}

.ico-xs { width: 12px; height: 12px; }

/* ── Discography & Achievements ── */
.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 24px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.discography-section { margin-bottom: 48px; }

.disco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.disco-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px;
}

.disco-art {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 900;
  font-size: 22px;
  color: #000;
}

.disco-art.art-green    { background: linear-gradient(135deg, var(--cortis-green), #6B8F68); color: var(--text-on-accent); }
.disco-art.art-pink     { background: linear-gradient(135deg, var(--cortis-pink), #CC2475); color: var(--text-on-pink); }
.disco-art.art-gradient { background: linear-gradient(135deg, var(--cortis-green), var(--cortis-pink)); color: var(--text-on-pink); }
.disco-art.art-yellow   { background: linear-gradient(135deg, var(--cortis-yellow), #E6B800); color: var(--bg-black); }

.disco-type {
  font-size: 10px;
  font-weight: 800;
  color: var(--cortis-pink);
  letter-spacing: 0.08em;
}

.disco-info h3 {
  font-size: 18px;
  font-weight: 900;
  margin: 4px 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.disco-info time {
  font-size: 12px;
  color: var(--cortis-green);
  font-weight: 600;
}

.disco-info p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.5;
}

.achievement-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.achievement-list li {
  font-size: 14px;
  color: var(--text-muted);
  padding: 12px 16px;
  background: var(--surface-muted);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--cortis-green);
  line-height: 1.5;
}

.achievement-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--cortis-green);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

@media (max-width: 960px) {
  .schedule-board {
    grid-template-columns: 1fr;
  }

  .sched-side {
    position: static;
  }
}

@media (max-width: 640px) {
  .sched-tools { flex-wrap: wrap; }
  .sched-search { width: 100%; }
  .tl-day { grid-template-columns: 1fr; gap: 8px; }
  .tl-avatars { margin-left: 0; }
  .tl-card-meta { gap: 8px 10px; }
}
