/* ストMarks — Theme A
   Adapted from Claude Design prototype for Django site
   ============================================================ */

/* ============================================================
   RESET + BASE
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }
body {
  font-family: 'Noto Sans JP', system-ui, -apple-system, sans-serif;
  background: #faf7f4;
  color: #1f1d1d;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100%;
  /* Theme A variables */
  --bg: #faf7f4;
  --fg: #1f1d1d;
  --accent: #e0b1bb;
  --accent-soft: #f5dde2;
  --accent-deep: #8c5664;
  --sidebar-bg: #f4ede9;
  --serif: 'Noto Sans JP', sans-serif;
  --sans: 'Noto Sans JP', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}
button, input, select, textarea { font-family: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
ul, ol { list-style: none; }
button, .clickable { -webkit-tap-highlight-color: transparent; }
.clickable { cursor: pointer; }

/* ============================================================
   LAYOUT — Desktop sidebar / Mobile full-width
   ============================================================ */
.dt-layout {
  display: flex;
  min-height: 100vh;
}
.dt-sidebar {
  width: 220px;
  flex-shrink: 0;
  border-right: 1px solid rgba(0,0,0,0.06);
  padding: 22px 16px;
  background: var(--sidebar-bg);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.dt-main {
  flex: 1;
  min-width: 0;
  padding: 32px 36px 60px;
  overflow-y: auto;
}

.dt-sidebar .logo {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 26px;
  padding: 4px 6px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.dt-sidebar .logo .logo-main {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #1f1d1d;
  line-height: 1;
}
.dt-sidebar .logo .logo-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--accent-deep);
  text-transform: uppercase;
}
.dt-sidebar .nav-section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #999;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.dt-sidebar .nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: #555;
  margin-bottom: 2px;
}
.dt-sidebar .nav-item:hover { background: rgba(0,0,0,0.03); }
.dt-sidebar .nav-item.on {
  background: var(--accent-soft);
  color: #1f1d1d;
  font-weight: 500;
}
.dt-sidebar .nav-item svg { flex-shrink: 0; opacity: 0.7; }
.dt-sidebar .nav-item.on svg { opacity: 1; }

/* Mobile: hide sidebar */
@media (max-width: 899px) {
  .dt-layout { display: block; }
  .dt-sidebar { display: none; }
  .dt-main { padding: 0 0 86px; }
}

/* ============================================================
   MOBILE APP HEADER
   ============================================================ */
.m-app-header {
  display: none;
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(250, 247, 244, 0.88);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
@media (max-width: 899px) {
  .m-app-header { display: block; }
}
.m-navbar {
  height: 52px;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
}
.m-back, .m-back-spacer {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--accent-deep);
}
.m-back:hover { background: rgba(0,0,0,0.04); }
.m-back-spacer { visibility: hidden; }
.m-brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.m-brand .m-logo {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: #1f1d1d;
}
.m-brand .m-mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: #999;
  text-transform: uppercase;
}
.m-page-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent-deep);
  background: var(--accent-soft);
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   BOTTOM TAB BAR (mobile only)
   ============================================================ */
.tab-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(0,0,0,0.08);
  justify-content: space-around;
  align-items: flex-start;
  padding-top: 8px;
  z-index: 20;
}
@media (max-width: 899px) {
  .tab-bar { display: flex; }
}
.tab-bar a,
.tab-bar button {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
  font-size: 10px;
  color: #555;
  padding: 2px 8px;
  text-decoration: none;
}
.tab-bar a.on,
.tab-bar button.on { color: var(--accent-deep); }

/* ============================================================
   PORTRAIT (色ブロック + タイポグラフィ)
   ============================================================ */
.portrait {
  position: relative;
  background: var(--pbg, #efe4e6);
  color: var(--pfg, #6a4a52);
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
  flex-shrink: 0;
}
.portrait .initial {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.portrait .deco-line {
  position: absolute;
  bottom: 12%; left: 16%; right: 16%;
  height: 1px;
  background: currentColor;
  opacity: 0.3;
}
.portrait .stage-tag {
  position: absolute;
  top: 10px; left: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  opacity: 0.55;
}
.portrait.square { aspect-ratio: 1 / 1; }
.portrait.thumb  { width: 56px; height: 56px; }
.portrait.thumb .initial { font-size: 22px; }

/* ============================================================
   COMMON COMPONENTS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(0,0,0,0.05);
  color: #555;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.badge.accent { background: var(--accent-soft); color: var(--accent-deep); }

.provisional-tag {
  display: inline-flex;
  align-items: center;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 3px;
  background: #ddd;
  color: #666;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.upcoming-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}
.upcoming-pill .lbl { opacity: 0.85; }
.upcoming-pill .val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  margin-left: 2px;
  font-variant-numeric: tabular-nums;
}
.upcoming-pill .unit { font-size: 10px; opacity: 0.85; }
.upcoming-pill.empty { background: rgba(0,0,0,0.04); color: #999; }

.btn-mark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: transparent;
  border: 1px solid rgba(0,0,0,0.14);
  color: #555;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-mark:hover { transform: translateY(-1px); border-color: rgba(0,0,0,0.28); }
.btn-mark.want.on {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-deep);
}
.btn-mark.watched.on {
  background: #c95a72;
  border-color: #c95a72;
  color: #fff;
}
.btn-mark.ghost {
  background: transparent;
  border: 1px solid rgba(0,0,0,0.18);
  color: #1f1d1d;
}

.k-marks {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.k-mark {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: transparent;
  border: 1px solid rgba(0,0,0,0.14);
  color: #555;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.k-mark.want.on {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-deep);
}
.k-mark.watched.on {
  background: #c95a72;
  border-color: #c95a72;
  color: #fff;
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 0 18px;
  margin-bottom: 12px;
}
.section-title h2 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.section-title .meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: #888;
  letter-spacing: 0.08em;
}
@media (min-width: 900px) {
  .section-title { padding: 0; }
  .section-title h2 { font-size: 22px; }
}

.chip-row { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  font-size: 11px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(0,0,0,0.04);
  color: #444;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.chip.on {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.divider { height: 1px; background: rgba(0,0,0,0.06); margin: 18px 0; }

.empty {
  padding: 40px 24px;
  text-align: center;
  color: #888;
  font-size: 12.5px;
}
.empty {
  border: 1px dashed rgba(0,0,0,0.1);
  border-radius: 2px;
  margin: 0 18px;
  padding: 28px 18px;
}
@media (min-width: 900px) { .empty { margin: 0; } }

.btn-fav {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent-deep);
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn-fav:hover { transform: translateY(-1px); background: var(--accent-soft); }
.btn-fav.on {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: #fff;
}
.fav-row { margin-top: 16px; }

/* Theater / dancer external links */
.detail-links, .theater-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.detail-links .d-link, .theater-links .t-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.14);
  background: #fff;
  color: #3a3434;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.detail-links .d-link:hover, .theater-links .t-link:hover {
  transform: translateY(-1px);
  background: #f6f1f2;
  border-color: rgba(0,0,0,0.28);
}
.theater-links .t-link svg { flex: none; }

/* ============================================================
   HERO — page header
   ============================================================ */
.hero {
  padding: 36px 18px 28px;
}
.hero .date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: #888;
  letter-spacing: 0.18em;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.hero h1 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.hero .lead {
  font-size: 13px;
  color: #666;
  margin-top: 14px;
  line-height: 1.75;
  font-weight: 400;
  max-width: 380px;
}
@media (min-width: 900px) {
  .hero { padding: 0 0 14px; }
  .hero h1 { font-size: 40px; }
  .hero .lead { max-width: 560px; }
}

/* ============================================================
   HOME INTRO
   ============================================================ */
.home-intro {
  padding: 40px 20px 28px;
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.home-intro .intro-text {
  font-size: 17px;
  line-height: 1.9;
  color: #444;
  letter-spacing: 0.02em;
  max-width: 340px;
  margin: 0 auto;
}
.home-intro .intro-text b {
  font-weight: 800;
  color: #1f1d1d;
  letter-spacing: 0.03em;
}
.home-intro .intro-text .mark {
  display: inline-block;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 14.5px;
  margin: 0 1px;
}
.home-intro .intro-text .mark.want {
  color: var(--accent-deep);
  background: var(--accent-soft);
}
.home-intro .intro-text .mark.watched {
  color: #fff;
  background: #c95a72;
}
.home-intro .intro-ctas {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.home-intro .cta-break { flex-basis: 100%; height: 0; }
.home-intro .intro-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  transition: transform .12s ease, border-color .2s ease, background .2s ease;
  flex: 1 1 0;
  min-width: 0;
  cursor: pointer;
}
.home-intro .intro-cta:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.home-intro .intro-cta .lbl {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #1f1d1d;
  letter-spacing: 0.04em;
}
.home-intro .intro-cta .arrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 17px;
  color: var(--accent-deep);
}
@media (min-width: 900px) {
  .home-intro {
    padding: 64px 0 56px;
    margin-bottom: 8px;
  }
  .home-intro .intro-text { font-size: 23px; max-width: 680px; }
  .home-intro .intro-ctas { margin-top: 32px; gap: 14px; }
  .home-intro .intro-cta { padding: 18px 28px; min-width: 220px; flex: 0 0 auto; }
  .home-intro .intro-cta .lbl { font-size: 15px; }
  .home-intro .sp-only { display: none; }
}

/* ============================================================
   KOUBAN LIST (Theme A rows)
   ============================================================ */
.kouban-list {
  padding: 0 18px;
  display: flex;
  flex-direction: column;
}
.k-row-a {
  position: relative;
  padding: 18px 0 18px 18px;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.k-row-a:first-child { border-top: none; }
.k-row-a::before {
  content: "";
  position: absolute;
  left: 0; top: 18px; bottom: 18px;
  width: 6px;
  border-radius: 0;
  background: var(--kline, #c0395a);
}
.k-row-a.ended { --kline: #c4bcbc; }
.k-row-a.ended .theater { color: #9a9090; background: rgba(0,0,0,0.05); }
.k-row-a.ended .k-title,
.k-row-a.ended .k-dancers,
.k-row-a.ended .dates { color: #a59d9d; }

.k-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
}
.k-meta-row .theater {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--kfg, #555);
  background: var(--kbg, rgba(0,0,0,0.05));
  padding: 3px 9px;
  border-radius: 3px;
}
.k-meta-row .dates {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #332e2e;
  letter-spacing: 0.08em;
}
.k-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
  margin-bottom: 6px;
}
.k-title .note {
  font-size: 13px;
  color: #888;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.k-dancers {
  font-size: 12px;
  color: #555;
  line-height: 1.8;
}
.k-watched-records {
  padding: 8px 14px 2px;
  border-top: 1px solid var(--kline, rgba(0,0,0,0.08));
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.k-record {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
  color: #888;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
}
.k-record-memo { color: #aaa; }
.k-record-label {
  font-size: 13px;
  color: var(--kfg, #8c5664);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
@media (min-width: 900px) {
  .kouban-list { padding: 0; }
  .k-row-a { padding: 22px 0 22px 20px; }
  .k-row-a::before { top: 22px; bottom: 22px; }
}

/* ============================================================
   DANCER LIST (Theme A index)
   ============================================================ */
.dancer-index { padding: 0 18px; }
@media (min-width: 900px) { .dancer-index { padding: 0; } }

.gyou-section + .gyou-section { margin-top: 28px; }
.gyou-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 8px;
  margin-bottom: 4px;
  border-bottom: 1px solid #1f1d1d;
}
.gyou-header .gyou-label {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-deep);
}
.gyou-header .gyou-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #999;
  letter-spacing: 0.08em;
}
.dancer-list-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  align-items: center;
  cursor: pointer;
}
.dancer-list-row:last-child { border-bottom: none; }
.dancer-list-row .d-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin-bottom: 4px;
}
.dancer-list-row .want-dot { display: inline-flex; color: var(--accent-deep); }
.dancer-list-row .d-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: #888;
  letter-spacing: 0.06em;
}
@media (min-width: 900px) {
  .dancer-list-row { padding: 18px 4px; }
  .dancer-list-row .d-name { font-size: 18px; }
}

/* ============================================================
   THEATER LIST (Theme A rows)
   ============================================================ */
.theater-list { padding: 0 18px; }
@media (min-width: 900px) { .theater-list { padding: 0; } }

.theater-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  cursor: pointer;
}
.theater-row .name {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.theater-row .name .want-dot {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 6px;
  color: var(--accent-deep);
}
.theater-row .sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #888;
  margin-top: 2px;
  letter-spacing: 0.06em;
}
.theater-row .upcoming { margin-left: auto; }
.theater-group + .theater-group { margin-top: 30px; }
.theater-group .section-title { margin-bottom: 4px; }
.theater-group.closed .theater-row .name { color: #8c8484; }
.closed-tag {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #998f8f;
  background: rgba(0,0,0,0.05);
  padding: 3px 9px;
  border-radius: 3px;
}

/* ============================================================
   DETAIL HERO
   ============================================================ */
.detail-hero {
  padding: 16px 18px 11px;
}
@media (min-width: 900px) {
  .detail-hero { padding: 0 0 11px; }
}
.detail-hero .breadcrumb {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: #888;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.detail-hero .breadcrumb a { color: var(--accent-deep); }
.detail-hero .breadcrumb a:hover { text-decoration: underline; }
.detail-hero .title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.detail-hero .subtitle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #888;
  letter-spacing: 0.1em;
  margin-top: 6px;
}

/* Kouban detail hero (left-line style) */
.k-detail-hero {
  position: relative;
  padding: 16px 18px 11px 36px;
}
.k-detail-hero::before {
  content: "";
  position: absolute;
  left: 18px; top: 0; bottom: 0;
  width: 6px;
  background: var(--kline, #c0395a);
}
@media (min-width: 900px) {
  .k-detail-hero { padding: 0 0 11px 20px; }
  .k-detail-hero::before { left: 0; }
}
.k-detail-hero .k-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.k-detail-hero .k-meta-row .theater {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--kfg, #555);
  background: var(--kbg, rgba(0,0,0,0.05));
  padding: 4px 11px;
  border-radius: 3px;
}
.k-detail-hero .k-meta-row .dates {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #332e2e;
  letter-spacing: 0.08em;
}
.k-detail-hero .subtitle {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--kfg, #8c5664);
  letter-spacing: 0.04em;
  margin-top: 8px;
}

/* ============================================================
   FACTS STRIP (kd-facts)
   ============================================================ */
.kd-facts {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 14px;
  align-items: end;
  padding: 16px 18px 18px;
  margin: 4px 0 32px;
  border-top: 1px solid rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.kd-facts.cols-2 { grid-template-columns: 1fr 1fr; }
.kd-facts.single { display: block; }
.kd-facts.triple { grid-template-columns: 1.5fr 1fr 1fr; }
@media (min-width: 900px) {
  .kd-facts { padding: 18px 0; max-width: 520px; }
}
.kd-fact { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.kd-fact dt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #6b6363;
  letter-spacing: 0.1em;
}
.kd-fact dd {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #1f1d1d;
  line-height: 1.2;
  white-space: nowrap;
}
.kd-fact dd .u { font-size: 11px; color: #999; margin-left: 2px; font-weight: 400; }
.kd-fact dd .sep { margin: 0 3px; color: #c4bcbc; font-weight: 400; }

/* ============================================================
   KOUBAN / DANCER PAGE LAYOUT
   ============================================================ */
.mark-row {
  display: flex;
  gap: 8px;
  padding: 12px 18px 12px;
  margin-top: 4px;
}
@media (min-width: 900px) {
  .mark-row { padding: 12px 0; margin-top: 8px; }
}

.mark-stats {
  display: flex;
  gap: 14px;
  padding: 0 18px 16px;
  margin-top: -2px;
  flex-wrap: wrap;
}
@media (min-width: 900px) { .mark-stats { padding: 0 0 16px; } }

.mark-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,0.035);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #555;
  letter-spacing: 0.04em;
}
.mark-stat .lbl { color: #777; }
.mark-stat .val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 17px;
  font-weight: 700;
  color: #1f1d1d;
  margin-left: 2px;
  font-variant-numeric: tabular-nums;
}
.mark-stat .unit { font-size: 10.5px; color: #888; }
.mark-stat.want { color: var(--accent-deep); }
.mark-stat.want .lbl { color: var(--accent-deep); opacity: 0.85; }
.mark-stat.want .val { color: var(--accent-deep); }
.mark-stat.watched { color: #b03c56; }
.mark-stat.watched .lbl { color: #b03c56; opacity: 0.85; }
.mark-stat.watched .val { color: #b03c56; }

/* Lineup list */
.lineup-list { padding: 0 18px; display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 900px) { .lineup-list { padding: 0; } }
.lineup-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.lineup-row:last-child { border-bottom: none; }
.lineup-row .order {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: #aaa;
  width: 24px;
  letter-spacing: 0.05em;
}
.lineup-row .lineup-name { font-size: 13.5px; font-weight: 500; }
.lineup-row .lineup-sub {
  font-size: 10.5px;
  color: #888;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
}

/* Callout notice */
.callout-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 24px 18px 8px;
  padding: 14px 16px;
  background: rgba(0,0,0,0.035);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
}
@media (min-width: 900px) { .callout-notice { margin: 32px 0 0; } }
.callout-notice .icon {
  display: inline-flex;
  color: var(--accent-deep);
  margin-top: 1px;
  flex-shrink: 0;
}
.callout-notice p {
  font-size: 12px;
  line-height: 1.7;
  color: #555;
  letter-spacing: 0.02em;
  margin: 0;
}

/* Section spacing in kouban/detail pages */
.kouban-section + .kouban-section { margin-top: 30px; }
.kouban-page .section-title { margin-top: 26px; }

/* ============================================================
   年別折りたたみ (終了済み)
   ============================================================ */
.past-years { display: flex; flex-direction: column; }
.past-year { border-top: 1px solid rgba(0,0,0,0.08); }
.past-year:first-child { border-top: none; }
.past-year-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Noto Sans JP', sans-serif;
  color: #3a3434;
}
@media (min-width: 900px) { .past-year-head { padding: 13px 0; } }
.past-year-head .caret {
  transition: transform 0.2s ease;
  color: #b0a6a6;
  flex: none;
}
.past-year.closed .past-year-head .caret { transform: rotate(-90deg); }
.past-year-head .yr { font-size: 15px; font-weight: 600; letter-spacing: 0.04em; }
.past-year-head .cnt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #998f8f;
  letter-spacing: 0.06em;
}
.past-year-body { padding: 0 0 6px 16px; }

/* ============================================================
   DANCER DETAIL
   ============================================================ */
.dancer-detail .detail-hero { padding-bottom: 0; }
.dancer-detail .detail-hero .hero-info {
  display: grid;
  grid-template-columns: 80px 1fr;
  row-gap: 6px;
  font-size: 12.5px;
  margin-top: 16px;
}
.dancer-detail .detail-hero .hero-info dt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: #888;
  letter-spacing: 0.06em;
  padding-top: 2px;
}
.dancer-detail .detail-hero .hero-info dd { color: #1f1d1d; }
.dancer-detail .detail-hero .mark-row { padding: 0; margin-top: 16px; }
.dancer-detail .detail-hero .detail-links,
.dancer-detail .detail-hero .theater-links.dancer-links { padding: 0; margin-top: 12px; margin-bottom: 0; }
@media (min-width: 900px) {
  .dancer-detail .detail-hero { padding-left: 0; padding-right: 0; }
}

/* ============================================================
   MY PAGE
   ============================================================ */
.mypage .my-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 0 18px 8px;
  margin-bottom: 4px;
}
@media (min-width: 900px) { .mypage .my-summary { padding: 0; } }

.mypage .my-stat {
  border-top: 1px solid #1f1d1d;
  padding-top: 10px;
}
.mypage .my-stat .num {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.mypage .my-stat .num .unit {
  font-size: 0.55em;
  font-weight: 600;
  margin-left: 3px;
  color: #888;
  letter-spacing: 0.02em;
}
.mypage .my-stat .lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  color: #888;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

/* My Page tab switcher */
.my-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 0 18px;
  margin: 22px 0 4px;
}
@media (min-width: 900px) { .my-tabs { padding: 0; margin-top: 26px; gap: 10px; } }
.my-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 13px 4px;
  min-height: 62px;
  background: #f3eeef;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: #8a807f;
  letter-spacing: 0.01em;
  text-wrap: balance;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  text-decoration: none;
}
@media (min-width: 900px) { .my-tab { font-size: 13.5px; min-height: 70px; } }
.my-tab .t-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  color: #b7adad;
  letter-spacing: 0.02em;
  line-height: 1;
}
.my-tab:hover { color: #5a5252; }
.my-tab.on {
  color: #fff;
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}
.my-tab.on .t-count { color: rgba(255,255,255,0.85); }
.my-tab-panel { padding-top: 12px; }

.my-dancer-list, .my-theater-list, .watched-history { padding: 0 18px; }
@media (min-width: 900px) {
  .my-dancer-list, .my-theater-list, .watched-history { padding: 0; }
}
.my-dancer-row, .my-theater-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  align-items: center;
}
.my-dancer-row:last-child, .my-theater-row:last-child { border-bottom: none; }
@media (min-width: 900px) {
  .my-dancer-row, .my-theater-row { padding: 18px 4px; }
}
.my-dancer-row .d-name, .my-theater-row .t-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin-bottom: 4px;
}
.my-dancer-row .d-name svg, .my-theater-row .t-name svg { color: var(--accent-deep); }
@media (min-width: 900px) {
  .my-dancer-row .d-name, .my-theater-row .t-name { font-size: 18px; }
}
.my-dancer-row .d-meta, .my-theater-row .t-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: #888;
  letter-spacing: 0.06em;
}

/* ============================================================
   AUTH FORMS (login / register)
   ============================================================ */
.auth-page {
  max-width: 400px;
  margin: 0 auto;
  padding: 40px 18px;
}
@media (min-width: 900px) { .auth-page { padding: 60px 0; } }
.auth-page h1 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.14);
  border-radius: 6px;
  font-size: 15px;
  color: #1f1d1d;
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus {
  border-color: var(--accent-deep);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.14);
  border-radius: 6px;
  font-size: 15px;
  color: #1f1d1d;
  outline: none;
  resize: vertical;
  min-height: 80px;
  transition: border-color 0.2s;
}
.form-textarea:focus {
  border-color: var(--accent-deep);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-select {
  width: 100%;
  height: 44px;
  padding: 0 36px 0 14px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.14);
  border-radius: 6px;
  font-size: 15px;
  color: #1f1d1d;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.2s;
}
.form-select:focus { border-color: var(--accent-deep); box-shadow: 0 0 0 3px var(--accent-soft); }
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  background: var(--accent-deep);
  color: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s;
}
.btn-primary:hover { transform: translateY(-1px); background: #7a4858; }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 999px;
  background: transparent;
  color: #555;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 1px solid rgba(0,0,0,0.14);
  cursor: pointer;
  transition: transform 0.15s, border-color 0.2s;
}
.btn-secondary:hover { transform: translateY(-1px); border-color: rgba(0,0,0,0.3); }
.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 999px;
  background: transparent;
  color: #c95a72;
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid #c95a72;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-danger:hover { background: #c95a72; color: #fff; }

.auth-footer {
  margin-top: 20px;
  font-size: 13px;
  color: #888;
}
.auth-footer a { color: var(--accent-deep); text-decoration: underline; }

.error-list {
  margin-bottom: 16px;
  padding: 12px 16px;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 6px;
  font-size: 13px;
  color: #c0392b;
}
.error-list li { list-style: disc; margin-left: 18px; }

.alert-info {
  padding: 12px 16px;
  background: var(--accent-soft);
  border-radius: 6px;
  font-size: 13px;
  color: var(--accent-deep);
  margin-bottom: 16px;
}

/* ============================================================
   SEARCH PANEL
   ============================================================ */
.ksearch-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
  margin: 0 18px;
  padding: 18px;
  background: var(--accent-soft);
  border-radius: 4px;
}
@media (min-width: 900px) { .ksearch-panel { margin: 0; } }
.ksearch-field { display: flex; flex-direction: column; gap: 6px; min-width: 150px; }
.ksearch-field.grow { flex: 1; min-width: 220px; }
.ksearch-field > label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.ksearch-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 18px 6px;
  flex-wrap: wrap;
}
@media (min-width: 900px) { .ksearch-status { margin: 16px 0 6px; } }
.ksearch-count {
  font-size: 13px;
  color: #6a6062;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ksearch-count strong {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 20px;
  color: #2a2526;
}
.ksearch-reset {
  border: 1px solid rgba(0,0,0,0.14);
  background: #fff;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  color: #6a6062;
  cursor: pointer;
}
.ksearch-reset:hover { border-color: var(--accent-deep); color: var(--accent-deep); }
