/* =============================================
   naamtaan1008 · 平和日常 — 日系杂货风 (Zakka)
   WARM · TEXTURED · HANDMADE FEEL
   ============================================= */

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

:root {
  /* ── Zakka Color Palette ── */
  --bg-cream:       #faf3e0;
  --bg-warm:        #f5edd6;
  --bg-card:        #fefcf5;
  --bg-card-hover:  #f9f0e0;
  --bg-section:     #f0e6d0;
  --bg-tag:         #ede0c8;

  --text-primary:   #3d3028;
  --text-body:      #4a3a30;
  --text-muted:     #8a7a6a;
  --text-light:     #b0a090;

  --brown-wood:     #a67c52;
  --brown-dark:     #7a5c3a;
  --mustard:        #c4a35a;
  --terracotta:     #c77d5e;
  --clay:           #d4956a;
  --sage:           #6b8e6b;
  --indigo:         #4a6fa5;
  --coral:          #d4705a;
  --gold:           #d4a84b;

  --border-soft:    #e8dcc8;
  --border-warm:    #d4c4a8;
  --shadow-warm:    0 4px 20px rgba(60, 40, 20, 0.08);
  --shadow-card:    0 2px 12px rgba(60, 40, 20, 0.06);
  --shadow-hover:   0 6px 28px rgba(60, 40, 20, 0.12);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --font-zh:  'Noto Serif SC', 'Noto Sans SC', serif;
  --font-ja:  'Zen Maru Gothic', 'Noto Sans SC', sans-serif;
  --font-en:  'Noto Serif SC', Georgia, serif;
  --font-mono:'JetBrains Mono', monospace;

  --header-h: 60px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-zh);
  background: var(--bg-cream);
  color: var(--text-primary);
  line-height: 1.8;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Subtle Paper Texture ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9998;
}

/* ── Polished boot transition ── */
.site-boot {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-content: center;
  justify-items: center;
  background: radial-gradient(circle at 50% 40%, rgba(196, 163, 90, 0.14), transparent 34%), var(--bg-cream);
  color: var(--brown-dark);
  transition: opacity .42s ease, visibility .42s ease;
}
.is-ready .site-boot { opacity: 0; visibility: hidden; pointer-events: none; }
.is-booting #app { opacity: 0; }
#app { opacity: 1; transition: opacity .38s ease .08s; }
.site-boot-mark { display: flex; gap: 7px; height: 28px; align-items: end; margin-bottom: 14px; }
.site-boot-mark span { width: 5px; height: 13px; border-radius: 4px; background: var(--terracotta); animation: boot-note 1s ease-in-out infinite; }
.site-boot-mark span:nth-child(2) { height: 24px; animation-delay: .12s; background: var(--mustard); }
.site-boot-mark span:nth-child(3) { height: 17px; animation-delay: .24s; }
.site-boot-title { font-family: var(--font-ja); font-size: 1.3rem; font-weight: 700; letter-spacing: .18em; }
.site-boot-note { margin-top: 4px; color: var(--text-muted); font-size: .76rem; letter-spacing: .06em; }
@keyframes boot-note { 0%,100% { transform: scaleY(.55); opacity: .55; } 50% { transform: scaleY(1); opacity: 1; } }

a { color: var(--terracotta); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--coral); }
img { max-width: 100%; height: auto; }

/* ── Header ── */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(250, 243, 224, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  padding: 0 20px;
  z-index: 1000;
}

.site-title {
  font-family: var(--font-ja);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brown-dark);
  letter-spacing: 0.08em;
  margin-right: 10px;
}

.site-title:hover { color: var(--terracotta); }

.site-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  display: none;
}

@media (min-width: 480px) {
  .site-subtitle { display: inline; }
}

.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: none;
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  color: var(--brown-dark);
  cursor: pointer;
  margin-right: 12px;
  transition: all 0.2s;
}

.menu-btn:hover {
  background: var(--bg-tag);
  border-color: var(--brown-wood);
}

/* ── Navigation (Desktop) ── */
#nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
}

#nav a {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-body);
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

#nav a:hover {
  background: var(--bg-warm);
  color: var(--brown-dark);
}

#nav a.active-link {
  background: var(--bg-tag);
  color: var(--terracotta);
  font-weight: 600;
}

/* On desktop, hide menu-btn and nav-close */
.menu-btn, .nav-close { display: none !important; }
.menu-btn { touch-action: manipulation; }
.nav-close { touch-action: manipulation; }

/* ── Mobile Nav (drawer) ── */
@media (min-width: 1024px) {
  .show-card { padding: 28px; gap: 28px; }
  .show-poster-wrap, .show-poster-placeholder { width: 240px; height: 340px; }
  .show-info h3 { font-size: 1.2rem; }
  .show-venue, .show-datetime { font-size: 0.9rem; }
  .show-link { font-size: 0.9rem; }
  .show-performers { font-size: 0.9rem; }
}


/* ── Contact Form ── */
.contact-info {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}
.contact-info p {
  font-size: 0.9rem;
  color: var(--text-body);
  margin-bottom: 6px;
}
.contact-info a {
  color: var(--indigo);
  text-decoration: none;
}
.contact-info a:hover {
  color: var(--brown-dark);
}
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.contact-form-wrap h3 {
  font-family: var(--font-ja);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brown-dark);
  margin-bottom: 16px;
}
.contact-form .form-group {
  margin-bottom: 14px;
}
.contact-form label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  font-family: var(--font-zh);
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--bg-cream);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--terracotta);
}
.contact-submit {
  display: inline-block;
  padding: 10px 28px;
  font-family: var(--font-ja);
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: var(--terracotta);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s;
}
.contact-submit:hover {
  background: var(--coral);
}
.contact-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.contact-feedback {
  margin-top: 12px;
  font-size: 0.85rem;
}

/* ── Form Select (unified) ── */
.contact-form select,
.rec-submit-form select {
  width: 100%;
  padding: 10px 12px;
  font-family: var(--font-zh);
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--bg-cream);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238a7a6a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.contact-form select:focus,
.rec-submit-form select:focus {
  border-color: var(--terracotta);
}

/* ── Recruitment Board (招募板) ── */
.recruitment-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.rec-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.rec-tab {
  padding: 6px 14px;
  font-family: var(--font-ja);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}
.rec-tab:hover { color: var(--brown-dark); border-color: var(--brown-wood); }
.rec-tab.active { color: #fff; background: var(--brown-wood); border-color: var(--brown-wood); }

/* ── Recruitment Submit Form ── */
.rec-submit-form {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}
.rec-submit-form h3 {
  font-family: var(--font-ja);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brown-dark);
  margin-bottom: 8px;
}
.rec-submit-form .form-group { margin-bottom: 14px; }
.rec-submit-form label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.rec-submit-form input,
.rec-submit-form textarea {
  width: 100%;
  padding: 10px 12px;
  font-family: var(--font-zh);
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--bg-cream);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s;
}
.rec-submit-form input:focus,
.rec-submit-form textarea:focus {
  border-color: var(--terracotta);
}

/* ── Recruitment Cards ── */
.rec-list { display: flex; flex-direction: column; gap: 16px; }
.rec-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s;
}
.rec-card:hover { box-shadow: var(--shadow-hover); }
.rec-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.rec-type-badge {
  padding: 2px 10px;
  font-size: 0.75rem;
  font-family: var(--font-ja);
  font-weight: 500;
  border-radius: 12px;
  color: #fff;
}
.rec-type-badge.rec-type-找乐手 { background: var(--indigo); }
.rec-type-badge.rec-type-找乐队 { background: var(--sage); }
.rec-type-badge.rec-type-招演出 { background: var(--terracotta); }
.rec-type-badge.rec-type-找演出 { background: var(--coral); }
.rec-type-badge.rec-type-其他 { background: var(--text-muted); }
.rec-city {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-tag);
  padding: 2px 8px;
  border-radius: 10px;
}
.rec-time { font-size: 0.75rem; color: var(--text-light); margin-left: auto; }
.rec-title {
  font-family: var(--font-ja);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brown-dark);
  margin-bottom: 8px;
}
.rec-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.rec-tag {
  padding: 2px 8px;
  font-size: 0.72rem;
  color: var(--brown-wood);
  background: var(--bg-section);
  border-radius: 4px;
}
.rec-desc {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 12px;
}
.rec-contact-row {
  font-size: 0.85rem;
  color: var(--text-body);
  padding-top: 10px;
  border-top: 1px solid var(--border-soft);
}
.rec-contact-label { color: var(--text-muted); }

@media (max-width: 768px) {
  .menu-btn, .nav-close { display: flex !important; }

  #nav {
    position: fixed;
    top: 0; left: -280px;
    width: 260px;
    height: 100vh;
    background: var(--bg-card);
    border-right: 1px solid var(--border-soft);
    padding: 70px 20px 20px;
    flex-direction: column;
    gap: 4px;
    z-index: 9999;
    transition: left 0.3s ease;
    box-shadow: 4px 0 20px rgba(60, 40, 20, 0.08);
    margin-left: 0;
    -webkit-overflow-scrolling: touch;
  }

  #nav.open { left: 0; }
  


  .nav-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 32px; height: 32px;
    background: none;
    border: 1px solid var(--border-soft);
    border-radius: 50%;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
  }

  .nav-close:hover { border-color: var(--terracotta); color: var(--terracotta); }

  #nav a {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--text-body);
    transition: all 0.2s;
    touch-action: manipulation;
  }

  #nav a:hover {
    background: var(--bg-warm);
    color: var(--brown-dark);
    padding-left: 20px;
  }
  
  #nav a:active {
    background: var(--bg-warm);
    color: var(--terracotta);
  }
}

/* Nav overlay (mobile only) */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(40, 30, 20, 0.3);
  z-index: 1002;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 768px) {
  .nav-overlay.show { opacity: 1; }
}

/* ── Main ── */
#main {
  padding-top: calc(var(--header-h) + 70px);
  padding-bottom: 40px;
  min-height: 100vh;
}

.super-announcement {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 999;
  min-height: 46px;
  padding: 12px 20px;
  box-sizing: border-box;
  text-align: center;
  background: var(--brown-dark);
  color: #fff8e8;
  font-size: .88rem;
  letter-spacing: .04em;
  box-shadow: 0 2px 8px rgba(61, 48, 40, .16);
  display: flex;
  align-items: center;
  justify-content: center;
}
.super-announcement a {
  color: #f4cf73;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.super-announcement-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 248, 232, .78);
  font: 300 1.55rem/28px Arial, sans-serif;
  cursor: pointer;
  border-radius: 50%;
  transition: background .2s, color .2s;
}
.super-announcement-close:hover,
.super-announcement-close:focus-visible {
  color: #fff8e8;
  background: rgba(255, 255, 255, .14);
  outline: none;
}

body.announcement-closed #main {
  padding-top: calc(var(--header-h) + 24px);
}

/* ── Pages ── */
.page { display: none; max-width: 960px; margin: 0 auto; padding: 0 28px; }
.page.active { display: block; animation: page-enter .38s cubic-bezier(.22,.61,.36,1) both; }
@keyframes page-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.page-wide { max-width: 1320px; }
.page-detail-wide { max-width: 1040px; }

.page-title {
  font-family: var(--font-ja);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brown-dark);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-soft);
  position: relative;
}

.page-title::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 60px;
  height: 2px;
  background: var(--terracotta);
}

/* ── Hero ── */
.hero-section {
  text-align: center;
  padding: 40px 20px 32px;
}

.visitor-counter {
  margin: 0 auto 18px;
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  line-height: 1.7;
}

.hero-title {
  font-family: var(--font-ja);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--brown-dark);
  letter-spacing: 0.12em;
  line-height: 1.3;
}

.hero-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 10px;
  letter-spacing: 0.05em;
}

.hero-divider {
  font-size: 0.85rem;
  color: var(--mustard);
  margin-top: 20px;
  letter-spacing: 0.5em;
}

/* ── Content Body ── */
.content-body {
  font-size: 0.95rem;
  line-height: 2;
  color: var(--text-body);
}

.content-body p { margin-bottom: 1em; }
.content-body blockquote {
  margin: 1.2em 0;
  padding: 12px 20px;
  background: var(--bg-warm);
  border-left: 3px solid var(--mustard);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-muted);
  font-style: italic;
}
.content-body ul, .content-body ol { padding-left: 1.5em; margin: 0.8em 0; }
.content-body li { margin-bottom: 0.4em; }
.content-body strong { color: var(--brown-dark); }

.content-body h3 {
  font-family: var(--font-ja);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brown-dark);
  margin: 1.6em 0 0.6em;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--mustard);
}

.content-body h4 {
  font-family: var(--font-ja);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--terracotta);
  margin: 1.2em 0 0.4em;
}

.home-subtitle {
  font-size: 0.85rem;
  color: var(--text-light);
  letter-spacing: 0.05em;
  margin-bottom: 1.2em;
}

/* ── Loading ── */
.loading-spinner {
  display: none;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.loading-spinner.show { display: block; }

.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--border-soft);
  border-top-color: var(--terracotta);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Articles Grid ── */
.article-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: var(--shadow-card);
}

.article-card:hover {
  border-color: var(--border-warm);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.article-card h3 {
  font-family: var(--font-ja);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brown-dark);
  margin-bottom: 6px;
  line-height: 1.5;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.article-category {
  display: inline-block;
  padding: 2px 10px;
  background: var(--bg-tag);
  border-radius: 20px;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.article-date {
  font-size: 0.78rem;
  color: var(--text-light);
}

.article-summary {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Article Detail ── */
.article-detail {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}

.article-detail h1 {
  font-family: var(--font-ja);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brown-dark);
  margin-bottom: 8px;
}

.article-detail .article-meta { margin-bottom: 20px; }

.article-detail .article-content {
  font-size: 0.95rem;
  line-height: 2;
  color: var(--text-body);
}

.article-detail .article-content p { margin-bottom: 1em; }
.article-detail .article-content blockquote {
  margin: 1.2em 0;
  padding: 12px 20px;
  background: var(--bg-warm);
  border-left: 3px solid var(--mustard);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-muted);
  font-style: italic;
}
.article-detail .article-content ul,
.article-detail .article-content ol {
  padding-left: 1.5em;
  margin: 0.8em 0;
}
.article-detail .article-content li { margin-bottom: 0.4em; }
.article-detail .article-content strong { color: var(--brown-dark); }

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  background: var(--bg-warm);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  margin-bottom: 16px;
  transition: all 0.2s;
  font-family: var(--font-zh);
}

.back-btn:hover {
  background: var(--bg-tag);
  color: var(--brown-dark);
}

/* ── Shows ── */
.shows-source-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.shows-badge {
  display: inline-block;
  padding: 4px 14px;
  background: var(--brown-dark);
  color: var(--bg-card);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.shows-updated {
  font-size: 0.78rem;
  color: var(--text-light);
}

.shows-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Show Tabs ── */
.show-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border-soft);
  padding-bottom: 0;
}

.show-tab {
  flex: 1;
  padding: 10px 16px;
  font-family: var(--font-ja);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.show-tab:hover {
  color: var(--brown-dark);
  background: var(--bg-warm);
  border-radius: 6px 6px 0 0;
}

.show-tab.active {
  color: var(--terracotta);
  font-weight: 600;
  border-bottom-color: var(--terracotta);
}

.show-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 10px;
  background: var(--bg-tag);
  color: var(--text-muted);
}

.show-tab.active .show-tab-count {
  background: var(--terracotta);
  color: #fff;
}

.show-tab-content {
  min-height: 100px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.show-card {
  display: flex;
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all 0.25s;
  box-shadow: var(--shadow-card);
  cursor: pointer;
}
.show-card:hover {
  border-color: var(--border-warm);
  box-shadow: var(--shadow-hover);
}



.show-poster-wrap {
  flex-shrink: 0;
  width: 160px;
  height: 220px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-warm);
}
.show-poster-wrap a {
  display: block;
  width: 100%;
  height: 100%;
}
.show-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.show-poster-placeholder {
  flex-shrink: 0;
  width: 100px;
  height: 140px;
  border-radius: var(--radius-sm);
  background: var(--bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--text-light);
}

.show-poster-placeholder {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  background: var(--bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-light);
}

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

.show-info h3 {
  font-family: var(--font-ja);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brown-dark);
  margin-bottom: 6px;
  line-height: 1.4;
}
.show-info h3 a {
  color: inherit;
  text-decoration: none;
}
.show-info h3 a:hover {
  color: var(--terracotta);
}

.show-venue {
  white-space: pre-line;
  font-size: 0.78rem;
  color: var(--terracotta);
  margin-bottom: 2px;
}

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

.show-price {
  white-space: pre-line;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--coral);
  margin-top: 4px;
}

.show-performers {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 2px;
}

.show-soldout {
  display: inline-block;
  padding: 1px 8px;
  background: #f0d0c8;
  color: #a05040;
  border-radius: 10px;
  font-size: 0.7rem;
  margin-left: 6px;
}

.show-card.past {
  opacity: 0.55;
}

.show-card.past:hover { opacity: 0.8; }

.show-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--indigo);
  transition: color 0.2s;
}

.show-link:hover { color: var(--brown-dark); }

.show-link::after { content: ' ↗'; }

/* ── Products Grid ── */
/* ── Page Description (note text under page titles) ── */
.page-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px dashed var(--border-warm);
  border-radius: var(--radius-sm);
}
.page-desc a {
  color: var(--indigo);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.page-desc a:hover {
  color: var(--terracotta);
}

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

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  transition: all 0.25s;
  box-shadow: var(--shadow-card);
}

.product-card:hover {
  border-color: var(--border-warm);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.product-card h3 {
  font-family: var(--font-ja);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brown-dark);
  margin-bottom: 4px;
}

.product-category {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-bottom: 6px;
}

.product-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--coral);
  margin-bottom: 8px;
}

.product-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 10px;
}

.product-link {
  display: inline-block;
  padding: 6px 16px;
  background: var(--terracotta);
  color: var(--bg-card);
  border-radius: 20px;
  font-size: 0.78rem;
  transition: all 0.2s;
}

.product-link:hover {
  background: var(--coral);
  color: white;
}

.product-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin: 0 0 12px 0;
  background: var(--bg-subtle);
}

/* ── Team Grid ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.team-card h4 {
  font-family: var(--font-ja);
  font-size: 1rem;
  font-weight: 600;
  color: var(--brown-dark);
  margin-bottom: 2px;
}

.team-role {
  font-size: 0.78rem;
  color: var(--terracotta);
  margin-bottom: 8px;
}

.team-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Studio Section ── */
.studio-section {
  margin-top: 32px;
}

.studio-section h3 {
  font-family: var(--font-ja);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--brown-dark);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-soft);
}

.gear-section {
  margin: 16px 0;
}

.gear-section h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brown-wood);
  margin-bottom: 8px;
  padding-left: 8px;
  border-left: 3px solid var(--mustard);
}

.gear-section ul {
  list-style: none;
  padding: 0;
}

.gear-section li {
  padding: 4px 0 4px 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  position: relative;
}

.gear-section li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--mustard);
}

/* ── Footer ── */
#footer {
  text-align: center;
  padding: 32px 20px;
  border-top: 1px solid var(--border-soft);
  margin-top: 40px;
}

.footer-links { margin-bottom: 10px; }

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 6px;
}

.footer-links a:hover { color: var(--brown-dark); }

.dot {
  color: var(--text-light);
  font-size: 0.7rem;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 4px;
}

.footer-icp { font-size: 0.72rem; }
.footer-icp a { color: var(--text-light); }
.footer-icp a:hover { color: var(--brown-dark); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-title { font-size: 1.8rem; }
  .page-title { font-size: 1.3rem; }
  .article-detail { padding: 20px 16px; }
  .show-card { gap: 14px; padding: 14px; }
  .show-poster-wrap, .show-poster-placeholder { width: 100px; height: 140px; }
  .show-info h3 { font-size: 0.9rem; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .team-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-warm); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--brown-wood); }

/* ── Selection ── */
::selection { background: rgba(196, 163, 90, 0.25); color: var(--text-primary); }

/* ── Feature Banner (Focus Show) ── */
.feature-banner {
  margin: 0 -20px 32px;
  position: relative;
  overflow: hidden;
}

.feature-banner-inner {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 500px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: linear-gradient(160deg, #2a1f18 0%, #1a120e 40%, #2d2018 100%);
  padding: 40px 32px;
}

.feature-banner-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(196, 163, 90, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(199, 125, 94, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.feature-banner-content {
  position: relative;
  z-index: 1;
  text-align: left;
  padding: 40px 0;
  max-width: 520px;
}

.feature-banner-tag {
  display: inline-block;
  padding: 4px 16px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: #c4a35a;
  border: 1px solid rgba(196, 163, 90, 0.35);
  border-radius: 20px;
  margin-bottom: 20px;
}

.feature-banner-title {
  font-family: 'Zen Maru Gothic', 'Noto Sans SC', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: #f5edd6;
  letter-spacing: 0.1em;
  line-height: 1.3;
  margin-bottom: 10px;
}

.feature-banner-subtitle {
  font-size: 0.85rem;
  color: rgba(245, 237, 214, 0.6);
  line-height: 1.6;
  margin-bottom: 24px;
}

.feature-banner-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 28px;
  font-family: 'Zen Maru Gothic', 'Noto Sans SC', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2a1f18;
  background: #c4a35a;
  border-radius: 30px;
  transition: all 0.25s;
  text-decoration: none;
}

.feature-banner-link:hover {
  background: #d4a84b;
  color: #1a120e;
  transform: translateY(-1px);
}

@media (min-width: 768px) {
  .feature-banner { margin: 0 0 40px; border-radius: var(--radius-lg); overflow: hidden; }
  .feature-banner-inner { aspect-ratio: 16 / 9; max-height: 500px; width: 100%; padding: 40px 56px; border-radius: var(--radius-lg); }
  .feature-banner-title { font-size: 2.8rem; }
  .feature-banner-content { max-width: 60%; }
}

@media (max-width: 480px) {
  .feature-banner-inner { min-height: 85vh; justify-content: center; padding: 60px 24px; }
  .feature-banner-content { text-align: center; max-width: 100%; }
  .feature-banner-title { font-size: 2.2rem; text-align: center; }
  .feature-banner-subtitle { text-align: center; }
  .feature-banner-link { margin: 0 auto; }
}
/* ── Show Detail Page ── */
.show-detail-content {
  max-width: 640px;
  margin: 0 auto;
}

.show-detail-poster-wrap {
  width: 100%;
  max-width: 360px;
  margin: 0 auto 24px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-warm);
  aspect-ratio: 3 / 4;
}

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

.show-detail-poster-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-light);
  background: var(--bg-warm);
}

.show-detail-info h1 {
  font-family: 'Zen Maru Gothic', 'Noto Sans SC', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brown-dark);
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.4;
}

.show-detail-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

.show-detail-meta-item {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}

.meta-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-light);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.meta-value {
  white-space: pre-line;
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-body);
}

.show-detail-section {
  margin-bottom: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 20px;
}

.show-detail-section h3 {
  font-family: 'Zen Maru Gothic', 'Noto Sans SC', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--terracotta);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-soft);
}

.show-detail-body {
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--text-body);
}

.show-detail-body p { margin-bottom: 0.6em; }

.lineup-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lineup-list .placeholder,
.show-detail-body .placeholder,
.highlight-list .placeholder {
  color: var(--text-light);
  font-style: italic;
  font-size: 0.85rem;
}

.highlight-list {
  list-style: none;
  padding: 0;
}

.highlight-list li {
  padding: 6px 0 6px 20px;
  font-size: 0.88rem;
  color: var(--text-body);
  position: relative;
  line-height: 1.6;
}

.highlight-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--mustard);
  font-size: 0.7rem;
}

.show-detail-actions {
  text-align: center;
  margin-top: 28px;
}

.show-detail-ticket-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 36px;
  font-family: 'Zen Maru Gothic', 'Noto Sans SC', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: var(--terracotta);
  border-radius: 30px;
  transition: all 0.25s;
  text-decoration: none;
}

.show-detail-ticket-btn:hover {
  background: var(--coral);
  transform: translateY(-1px);
}

.show-detail-ticket-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Focus Show Pin on Shows Page ── */
.show-card.focus-pin {
  border-color: var(--mustard);
  border-width: 2px;
  background: linear-gradient(135deg, var(--bg-card) 0%, #f9f0e0 100%);
  position: relative;
}

.show-card.focus-pin::before {
  content: '★ 焦点';
  position: absolute;
  top: -1px;
  right: 20px;
  padding: 3px 12px;
  background: var(--mustard);
  color: #2a1f18;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 0 0 8px 8px;
  z-index: 1;
}

.show-card.focus-pin .show-info h3 a {
  color: var(--brown-dark);
}

@media (max-width: 768px) {
  .show-detail-meta { grid-template-columns: 1fr 1fr; gap: 8px; }
  .show-detail-info h1 { font-size: 1.2rem; }
}

/* ── Band Cards (Lineup) ── */
.band-card {
  background: var(--bg-cream);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  width: 100%;
}

.band-name {
  font-family: "Zen Maru Gothic", "Noto Sans SC", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--brown-dark);
  margin-bottom: 6px;
}

.band-desc {
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--text-muted);
  white-space: pre-line;
}

/* ── Past Shows Collapse ── */
.past-shows-section {
  margin-top: 24px;
  border-top: 1px dashed var(--border-warm);
  padding-top: 8px;
}

.past-shows-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-warm);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  font-family: "Zen Maru Gothic", "Noto Sans SC", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.past-shows-toggle:hover {
  background: var(--bg-tag);
  color: var(--text-body);
}

.past-shows-arrow {
  font-size: 0.65rem;
  transition: transform 0.2s;
  margin-left: 8px;
}

.past-shows-toggle.open .past-shows-arrow {
  transform: rotate(90deg);
}

.past-shows-list {
  display: none;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
}

.past-shows-list.open {
  display: flex;
}

/* =============================================
   Scene: 珠三角音乐场景 (Zakka-themed)
   ============================================= */

/* ── Map Container ── */
.scene-map-container {
  width: 100%;
  height: clamp(560px, calc(100vh - 190px), 760px);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-warm);
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.scene-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(360px, 0.85fr);
  align-items: start;
  gap: 20px;
}

.scene-directory {
  min-width: 0;
}

.scene-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}

.scene-map-container .leaflet-container {
  background: var(--bg-card);
  font-family: var(--font-zh);
}

/* ── Header ── */
.scene-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.scene-header .page-desc {
  flex: 1;
  min-width: 200px;
  margin: 0;
}

.scene-submit-btn {
  background: var(--terracotta);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-ja);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.scene-submit-btn:hover {
  background: var(--coral);
}

/* ── Submit Form ── */
.scene-submit-form {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 16px;
}

.scene-submit-form h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.scene-submit-form .form-group {
  margin-bottom: 12px;
}

.scene-submit-form .form-group label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-family: var(--font-ja);
}

.scene-submit-form select,
.scene-submit-form input,
.scene-submit-form textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  font-family: var(--font-zh);
  font-size: 0.9rem;
  background: var(--bg-cream);
  color: var(--text-body);
  transition: border-color 0.2s;
}

.scene-submit-form select:focus,
.scene-submit-form input:focus,
.scene-submit-form textarea:focus {
  outline: none;
  border-color: var(--terracotta);
}

/* ── Controls: Tabs + Filters ── */
.scene-controls {
  margin-bottom: 16px;
}

.scene-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.scene-tab {
  padding: 6px 16px;
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  font-family: var(--font-ja);
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.scene-tab:hover {
  background: var(--bg-card-hover);
  color: var(--text-body);
}

.scene-tab.active {
  background: var(--terracotta);
  color: #fff;
  border-color: var(--terracotta);
}

.scene-tab span {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.75rem;
  opacity: 0.8;
}

.scene-city-filter {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.scene-city-filter .city-filter {
  padding: 3px 10px;
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  border-radius: 12px;
  font-family: var(--font-ja);
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.scene-city-filter .city-filter:hover {
  background: var(--bg-card-hover);
  color: var(--text-body);
}

.scene-city-filter .city-filter.active {
  background: var(--indigo);
  color: #fff;
  border-color: var(--indigo);
}

/* ── Entry Cards ── */
.scene-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scene-entry-card {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
}

.scene-entry-card:hover {
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.scene-entry-indicator {
  width: 4px;
  flex-shrink: 0;
}

.scene-entry-body {
  flex: 1;
  padding: 12px 16px;
}

.scene-entry-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 2px;
}

.scene-entry-header h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
}

.scene-entry-city {
  font-size: 0.78rem;
  color: var(--text-light);
  font-family: var(--font-ja);
}

.scene-entry-type {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 4px;
}

.scene-entry-styles {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.scene-style-tag {
  display: inline-block;
  padding: 1px 8px;
  background: var(--bg-tag);
  border-radius: 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-ja);
}

.scene-entry-intro,
.scene-entry-addr,
.scene-entry-price,
.scene-entry-capacity {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 2px 0;
  line-height: 1.5;
}

.scene-entry-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--text-light);
}

.scene-entry-detail-link {
  color: var(--terracotta);
  font-family: var(--font-ja);
}

/* ── Detail View ── */
.scene-detail {
  animation: fadeIn 0.3s ease;
}

.scene-detail-indicator {
  height: 4px;
  border-radius: 2px;
  margin-bottom: 12px;
}

.scene-detail-title {
  font-size: 1.2rem;
  margin-bottom: 2px;
}

.scene-detail-type {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.scene-detail-section {
  margin-top: 16px;
}

.scene-detail-section h3 {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 14px 0 4px;
  font-family: var(--font-ja);
  font-weight: 500;
}

.scene-detail-section p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-body);
  white-space: pre-wrap;
}

.scene-detail-list {
  list-style: none;
  padding: 0;
  margin: 4px 0;
}

.scene-detail-list li {
  padding: 3px 0;
  font-size: 0.88rem;
  color: var(--text-body);
}

.scene-detail-list li::before {
  content: '·';
  color: var(--terracotta);
  margin-right: 6px;
}

.scene-detail-links a {
  display: inline-block;
  margin-right: 12px;
  font-size: 0.85rem;
}

/* Related-show rail styles are defined in the Scene Detail Layout v2 block below. */
.scene-detail-map {
  width: 100%;
  height: 240px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 16px 0;
  border: 1px solid var(--border-soft);
}

.scene-detail-map .leaflet-container {
  background: var(--bg-card);
  font-family: var(--font-zh);
}

/* ── Comments ── */
.scene-comment-section {
  grid-column: 1 / -1;
  margin-top: 30px;
  padding: 22px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255,255,255,0.72), rgba(250,243,224,0.72));
  box-shadow: 0 10px 30px rgba(91, 67, 46, 0.07);
}

.scene-comment-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.scene-comment-kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--terracotta);
  font: 0.62rem/1.2 var(--font-mono);
  letter-spacing: 0.14em;
}

.scene-comment-section h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.05rem;
}

.scene-comment-count {
  flex: 0 0 auto;
  padding: 4px 9px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text-muted);
  font: 0.7rem/1 var(--font-mono);
}

.scene-comment-list {
  display: grid;
  gap: 10px;
}

.scene-comment {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(199, 125, 94, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 4px 14px rgba(91, 67, 46, 0.045);
}

.scene-comment-avatar {
  display: flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--terracotta), var(--coral));
  color: #fff;
  font-family: var(--font-ja);
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(199, 125, 94, 0.22);
}

.scene-comment-body { min-width: 0; }

.scene-comment-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.scene-comment-author {
  overflow: hidden;
  color: var(--text-primary);
  font-size: 0.84rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scene-comment-time {
  flex: 0 0 auto;
  color: var(--text-light);
  font: 0.66rem/1.3 var(--font-mono);
}

.scene-comment-content {
  color: var(--text-body);
  font-size: 0.86rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.scene-comment-empty {
  padding: 20px;
  border: 1px dashed var(--border-soft);
  border-radius: var(--radius-md);
  color: var(--text-light);
  font-size: 0.82rem;
  text-align: center;
}

.scene-comment-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
}

.scene-comment-form-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.scene-comment-form-title h4 {
  margin: 0;
  color: var(--text-primary);
  font-family: var(--font-ja);
  font-size: 0.88rem;
  font-weight: 600;
}

.scene-comment-form-title span {
  color: var(--text-light);
  font-size: 0.72rem;
}

.scene-comment-input,
.scene-comment-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text-body);
  font-family: var(--font-zh);
  font-size: 0.85rem;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.scene-comment-input { margin-bottom: 9px; }
.scene-comment-textarea { min-height: 94px; resize: vertical; }
.scene-comment-input::placeholder,
.scene-comment-textarea::placeholder { color: var(--text-light); }

.scene-comment-input:focus,
.scene-comment-textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(199, 125, 94, 0.12);
}

.scene-comment-actions {
  display: flex;
  min-height: 34px;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.scene-comment-submit {
  padding: 8px 20px;
  border: 1px solid var(--terracotta);
  border-radius: 999px;
  background: var(--terracotta);
  color: #fff;
  font-family: var(--font-ja);
  font-size: 0.82rem;
  cursor: pointer;
  box-shadow: 0 5px 12px rgba(199, 125, 94, 0.18);
  transition: transform 0.16s, background 0.2s, box-shadow 0.2s;
}

.scene-comment-submit:hover {
  background: var(--coral);
  transform: translateY(-1px);
  box-shadow: 0 7px 16px rgba(199, 125, 94, 0.24);
}

.scene-comment-submit:disabled { opacity: 0.6; cursor: default; transform: none; }
.scene-comment-feedback { display: none; color: var(--text-muted); font-size: 0.78rem; }

@media (max-width: 600px) {
  .scene-comment-section { margin-top: 22px; padding: 16px 14px; }
  .scene-comment { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; padding: 12px; }
  .scene-comment-avatar { width: 32px; height: 32px; }
  .scene-comment-meta { align-items: flex-start; flex-direction: column; gap: 2px; }
  .scene-comment-form-title span { display: none; }
  .scene-comment-actions { align-items: flex-start; flex-direction: column; }
  .scene-comment-submit { width: 100%; }
  .scene-comment-feedback { margin: 0; }
}

/* ── Animations ── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Mobile ── */
@media (max-width: 900px) {
  .page { padding: 0 20px; }
  .scene-workspace { grid-template-columns: 1fr; }
  .scene-map-container {
    height: 420px;
    position: relative;
    top: auto;
  }
}

@media (max-width: 480px) {
  .scene-map-container {
    height: 300px;
  }

  .scene-form-grid { grid-template-columns: 1fr; }

  #page-scene-detail .scene-detail-content {
    display: block;
    padding: 18px 16px;
  }

  .scene-header {
    flex-direction: column;
  }

  .scene-tabs {
    gap: 2px;
  }

  .scene-tab {
    flex: 1;
    text-align: center;
    padding: 6px 8px;
    font-size: 0.78rem;
  }

  .scene-city-filter .city-filter {
    font-size: 0.72rem;
    padding: 2px 8px;
  }

  .scene-entry-header h3 {
    font-size: 0.88rem;
  }
}

/* ── Scene Pagination ── */
.scene-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 0;
  margin-top: 8px;
}

.scene-page-btn {
  background: var(--bg-cream);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 6px 16px;
  font-size: 0.82rem;
  color: var(--text-body);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.scene-page-btn:hover:not(:disabled) {
  background: var(--terracotta);
  color: #fff;
  border-color: var(--terracotta);
}

.scene-page-btn:disabled {
  cursor: default;
}

.scene-page-info {
  font-size: 0.82rem;
  color: var(--text-muted);
  min-width: 60px;
  text-align: center;
}

/* ── Scene Detail Page ── */
#page-scene-detail .scene-detail-content {
  max-width: none;
  margin: 0 auto;
  padding: 28px;
  padding-bottom: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
}

#page-scene-detail .scene-detail-indicator,
#page-scene-detail .scene-detail-title,
#page-scene-detail .scene-detail-type,
#page-scene-detail .scene-detail-actions,
#page-scene-detail .scene-entry-styles,
#page-scene-detail .scene-detail-map,
#page-scene-detail .scene-comment-section {
  grid-column: 1 / -1;
}

#page-scene-detail .scene-detail-indicator {
  height: 4px;
  width: 48px;
  margin-bottom: 12px;
}

#page-scene-detail .scene-detail-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 4px;
}

#page-scene-detail .scene-detail-type {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

#page-scene-detail .scene-entry-styles {
  margin-bottom: 12px;
}

#page-scene-detail .scene-detail-section {
  margin-bottom: 16px;
}

#page-scene-detail .scene-detail-section h3 {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  margin: 0 0 4px;
}

#page-scene-detail .scene-detail-section p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

#page-scene-detail .scene-detail-section ul {
  margin: 0;
  padding-left: 18px;
}

#page-scene-detail .scene-detail-section li {
  font-size: 0.9rem;
  line-height: 1.6;
}

#page-scene-detail .scene-detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#page-scene-detail .scene-detail-links a {
  display: inline-block;
  background: var(--bg-cream);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 4px 12px;
  font-size: 0.82rem;
  color: var(--text-body);
  text-decoration: none;
  transition: background 0.2s;
}

#page-scene-detail .scene-detail-links a:hover {
  background: var(--terracotta);
  color: #fff;
}

#page-scene-detail .scene-detail-map {
  height: 200px;
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

#page-scene-detail .scene-comment-section {
  margin-top: 24px;
}

#page-scene-detail .scene-comment-section h3 {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  margin: 0 0 12px;
}


#page-scene-detail .scene-comment-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

#page-scene-detail .scene-comment-text {
  font-size: 0.85rem;
  line-height: 1.5;
}

.scene-detail-content .scene-style-tag {
  display: inline-block;
  background: var(--bg-cream);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

@media (max-width: 480px) {
  #page-scene-detail .scene-detail-title {
    font-size: 1.15rem;
  }

  .scene-page-btn {
    padding: 5px 12px;
    font-size: 0.78rem;
  }
}

/* ── Scene Editor ── */
.scene-detail-actions {
  margin-bottom: 16px;
}

.scene-edit-btn {
  background: transparent;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 3px 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.scene-edit-btn:hover {
  background: var(--terracotta);
  color: #fff;
  border-color: var(--terracotta);
}

/* ── Scene Share Button ── */
.scene-share-btn {
  background: transparent;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 3px 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  margin-left: 4px;
}

.scene-share-btn:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* ── Scene Share QR Overlay ── */
.scene-share-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.scene-share-modal {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 36px 32px 28px;
  max-width: 340px;
  width: 88vw;
  text-align: center;
  box-shadow: 0 16px 48px rgba(0,0,0,0.22);
  animation: fadeIn 0.25s ease;
}

.scene-share-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #bbb;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  line-height: 1;
}

.scene-share-close:hover {
  color: #444;
}

.scene-share-qr-box {
  display: inline-block;
  padding: 14px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.06);
  margin-bottom: 16px;
}

.scene-share-qr {
  display: block;
  width: 200px;
  height: 200px;
  border-radius: 0;
  image-rendering: crisp-edges;
}

.scene-share-hint {
  font-size: 0.82rem;
  color: #444;
  font-weight: 500;
  margin: 0 0 8px;
  font-family: var(--font-ja);
}

.scene-share-url {
  font-size: 0.7rem;
  color: #999;
  word-break: break-all;
  line-height: 1.4;
  margin: 0;
}

.scene-edit-token-area,
.scene-edit-save-area {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.scene-edit-token-input {
  width: 160px;
  padding: 6px 10px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  background: var(--bg-cream);
  color: var(--text-body);
  letter-spacing: 4px;
}

.scene-edit-confirm-btn,
.scene-edit-save-btn {
  background: var(--terracotta);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 5px 14px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

.scene-edit-cancel-btn {
  background: transparent;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 5px 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
}

.scene-edit-confirm-btn:hover,
.scene-edit-save-btn:hover {
  opacity: 0.85;
}

.scene-edit-feedback {
  font-size: 0.75rem;
  color: var(--coral);
  display: none;
}

.scene-edit-field {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--terracotta);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  background: #fff;
  color: var(--text-body);
  box-sizing: border-box;
  margin-top: 4px;
}

.scene-edit-field.scene-edit-textarea {
  min-height: 80px;
  resize: vertical;
}

.scene-detail-section .scene-detail-value {
  font-size: 0.9rem;
  line-height: 1.6;
}

.scene-empty-value {
  color: var(--text-muted);
}

/* Photo edit area (scene detail edit mode) */
.scene-location-section {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding: 22px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: var(--cream-light);
}

.scene-location-section .scene-section-heading { margin-bottom: 8px; }
.scene-location-edit-note {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.6;
}
.scene-location-coordinates {
  margin-top: 10px;
  color: var(--text-muted);
  font: 0.72rem/1.4 var(--font-mono);
}
.scene-location-section.is-editing {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(212, 112, 90, 0.12);
}
.scene-location-section.is-editing .scene-detail-map { cursor: crosshair; }
.scene-location-section.is-editing .scene-location-edit-note {
  color: var(--terracotta);
  font-weight: 600;
}

.scene-photo-edit-area {
  grid-column: 1 / -1;
  margin: 0 0 20px;
  padding: 16px;
  border: 1px dashed var(--terracotta);
  border-radius: var(--radius-md);
  background: rgba(204, 122, 94, 0.06);
  box-sizing: border-box;
}

.scene-edit-heading {
  color: var(--terracotta);
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 10px;
}

.scene-image-edit-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.scene-image-edit-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.scene-image-edit-thumb {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--bg-section);
}
.scene-upload-note { margin: -4px 0 12px; color: var(--text-muted); font-size: 0.78rem; line-height: 1.5; }
.scene-audio-edit-area { margin: 16px 0; padding: 16px; border: 1px solid var(--border-soft); border-radius: 12px; background: var(--bg-section); }
.scene-audio-title-label { display: grid; gap: 6px; color: var(--text-muted); font-size: 0.78rem; }
.scene-audio-title-input { width: 100%; padding: 10px 12px; border: 1px solid var(--border-soft); border-radius: 8px; background: var(--bg-card); color: var(--text-primary); font: inherit; box-sizing: border-box; }
.scene-audio-edit-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.scene-audio-select-btn, .scene-audio-delete-btn { padding: 9px 14px; border: 1px solid var(--terracotta); border-radius: 999px; background: var(--terracotta); color: #fff; cursor: pointer; font: inherit; }
.scene-audio-delete-btn { border-color: var(--border-soft); background: transparent; color: var(--coral); }
.scene-audio-upload-status { color: var(--terracotta); font-size: 0.78rem; }
.scene-image-upload-status { margin-left: 10px; color: var(--terracotta); font-size: 0.78rem; }
.scene-image-edit-add:disabled { opacity: .55; cursor: wait; }

.scene-image-edit-url {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  background: #fff;
  color: var(--text-body);
  box-sizing: border-box;
}
.scene-image-edit-url:focus {
  outline: none;
  border-color: var(--terracotta);
}

.scene-image-edit-remove {
  flex: 0 0 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--border-warm);
  border-radius: 50%;
  background: #fff;
  color: var(--coral);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.scene-image-edit-remove:hover {
  background: var(--coral);
  color: #fff;
  border-color: var(--coral);
}

.scene-image-edit-add {
  padding: 6px 16px;
  border: 1px dashed var(--border-warm);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-body);
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.scene-image-edit-add:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
}

@media (max-width: 480px) {
  .scene-edit-token-input {
    width: 130px;
  }
}

/* =============================================
   Homepage Content Portal (v30)
   ============================================= */

.home-section {
  margin-bottom: 40px;
}

.home-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--bg-section);
}

.home-section-header h2 {
  font-family: var(--font-ja);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.home-section-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--terracotta);
  background: var(--bg-tag);
  padding: 1px 7px;
  border-radius: 8px;
  margin-left: 5px;
  vertical-align: middle;
  line-height: 1.4;
}

.home-section-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--terracotta);
  background: var(--bg-tag);
  padding: 1px 7px;
  border-radius: 8px;
  margin-left: 5px;
  vertical-align: middle;
  line-height: 1.4;
}

.home-section-link {
  font-size: 0.82rem;
  color: var(--terracotta);
  font-family: var(--font-ja);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.home-section-link:hover {
  color: var(--coral);
}

.home-empty {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 24px 0;
}

/* ── Home: Shows Grid ── */

.home-shows-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .home-shows-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .home-shows-grid {
    grid-template-columns: 1fr;
  }
}

.home-show-card {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--bg-section);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
}

.home-show-card:hover {
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.home-show-img {
  width: 100px;
  min-height: 100px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--bg-warm);
}

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

.home-show-info {
  flex: 1;
  padding: 12px 14px;
  min-width: 0;
}

.home-show-info h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-show-venue {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 2px;
  font-family: var(--font-zh);
}

.home-show-date {
  font-size: 0.78rem;
  color: var(--terracotta);
  font-family: var(--font-ja);
  font-weight: 500;
}

/* ── Home: Articles List ── */

.home-articles-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.home-article-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-section);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.home-article-card:hover {
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.home-article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.home-article-cat {
  font-size: 0.72rem;
  color: #fff;
  background: var(--terracotta);
  padding: 1px 8px;
  border-radius: 8px;
  font-family: var(--font-ja);
  font-weight: 500;
}

.home-article-date {
  font-size: 0.72rem;
  color: var(--text-light);
  font-family: var(--font-ja);
}

.home-article-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.4;
}

.home-article-summary {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Home: Scene Grid ── */

.home-scene-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.home-scene-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-section);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: default;
  transition: all 0.2s;
}

.home-scene-card:hover {
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.home-scene-type {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 8px;
  margin-bottom: 6px;
  font-family: var(--font-ja);
  color: #fff;
}

.home-scene-type-band { background: var(--terracotta); }
.home-scene-type-venue { background: var(--indigo); }
.home-scene-type-rehearsal { background: var(--sage); }

.home-scene-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.home-scene-city {
  font-size: 0.75rem;
  color: var(--text-light);
  font-family: var(--font-ja);
}

/* ── Home: mobile ── */

@media (max-width: 768px) {
  .home-shows-grid,
  .home-articles-list {
    grid-template-columns: 1fr;
  }
  .home-scene-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ── Scene Detail Layout v2: full-width media rails + stable information grid ── */
#page-scene-detail .scene-detail-content {
  align-items: start;
}

#page-scene-detail .scene-photo-wall,
#page-scene-detail .scene-related-section,
#page-scene-detail .scene-detail-section-wide {
  grid-column: 1 / -1;
  min-width: 0;
}

.scene-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 10px;
}

#page-scene-detail .scene-section-heading h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
}

.scene-photo-wall,
.scene-related-section {
  width: 100%;
  min-width: 0;
  margin: 8px 0 24px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--bg-warm);
  box-sizing: border-box;
}

.scene-rail-status {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.scene-photo-count,
.scene-related-count {
  color: var(--text-muted);
  font: 0.72rem/1 var(--font-mono);
  white-space: nowrap;
}

.scene-rail-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--border-warm);
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-body);
  cursor: pointer;
  touch-action: manipulation;
}

.scene-rail-btn:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
}

.scene-photo-rail,
.scene-related-strip {
  display: flex;
  width: 100%;
  min-width: 0;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0 10px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border-warm) transparent;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
}

.scene-photo-frame {
  position: relative;
  flex: 0 0 clamp(260px, 43vw, 430px);
  aspect-ratio: 4 / 3;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--bg-section);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.scene-photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.25s ease;
}

.scene-photo-frame:hover img {
  transform: scale(1.015);
}

.scene-related-item {
  flex: 0 0 clamp(270px, 31vw, 340px);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.scene-related-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.scene-related-past {
  opacity: 0.62;
}

.scene-related-link {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  min-height: 128px;
  color: inherit;
  text-decoration: none;
}

.scene-related-poster {
  display: block;
  width: 96px;
  height: 100%;
  min-height: 128px;
  object-fit: cover;
  object-position: center;
  background: var(--bg-section);
}

.scene-related-poster-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.7rem;
  text-align: center;
}

.scene-related-info {
  display: flex;
  min-width: 0;
  padding: 12px;
  flex-direction: column;
  align-items: flex-start;
  box-sizing: border-box;
}

.scene-related-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text-primary);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.scene-related-date,
.scene-related-venue {
  width: 100%;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scene-related-date { margin-top: 8px; }
.scene-related-state {
  display: inline-block;
  margin-top: auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--bg-tag);
  color: var(--text-muted);
  font-size: 0.66rem;
}
.scene-related-upcoming {
  background: rgba(107, 142, 107, 0.14);
  color: var(--sage);
}
.scene-related-empty {
  margin: 0;
  padding: 16px 0 8px;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-align: center;
}

@media (max-width: 700px) {
  #page-scene-detail .scene-detail-content {
    display: block;
    padding: 18px 16px 28px;
  }
  .scene-photo-wall,
  .scene-related-section {
    margin: 8px 0 20px;
    padding: 12px;
  }
  .scene-photo-frame {
    flex-basis: min(82vw, 340px);
  }
  .scene-related-item {
    flex-basis: min(78vw, 310px);
  }
}

@media (max-width: 380px) {
  .scene-related-link {
    grid-template-columns: 82px minmax(0, 1fr);
  }
  .scene-related-poster {
    width: 82px;
  }
}


/* ── Scene free-form statement + audition ── */
.scene-say-value {
  min-height: 3.2em;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

#page-scene-detail .scene-audition {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px 14px;
  min-width: 0;
  margin: 4px 0 20px;
  padding: 14px 16px;
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
  background: var(--bg-warm);
  box-sizing: border-box;
}

.scene-audition-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 82px;
  padding: 8px 13px;
  border: 1px solid var(--terracotta);
  border-radius: 999px;
  background: var(--terracotta);
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  touch-action: manipulation;
}

.scene-audition.is-playing .scene-audition-btn { background: var(--brown-dark); border-color: var(--brown-dark); }
.scene-audition-icon { width: 12px; text-align: center; font-family: sans-serif; }
.scene-audition-meta { display: flex; min-width: 0; align-items: baseline; justify-content: space-between; gap: 12px; }
.scene-audition-meta strong { overflow: hidden; color: var(--text-primary); font-size: 0.86rem; text-overflow: ellipsis; white-space: nowrap; }
.scene-audition-time { flex: 0 0 auto; color: var(--text-muted); font: 0.68rem/1 var(--font-mono); }
.scene-audition-progress { grid-column: 2; height: 6px; overflow: hidden; border-radius: 999px; background: var(--border-soft); cursor: pointer; }
.scene-audition-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--terracotta); }

@media (max-width: 520px) {
  #page-scene-detail .scene-audition { grid-template-columns: auto minmax(0, 1fr); padding: 12px; }
  .scene-audition-meta { align-items: flex-start; flex-direction: column; gap: 4px; }
  .scene-audition-progress { grid-column: 1 / -1; }
}

/* ── Changelog Drawers (版本更新) ── */
.cl-divider {
  border: none;
  border-top: 1px solid var(--border-soft);
  margin: 32px 0 24px;
}
.cl-heading {
  font-family: var(--font-ja);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brown-dark);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.cl-drawer {
  margin-bottom: 6px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-card);
}
.cl-drawer-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-warm);
  border: none;
  font-family: var(--font-ja);
  font-size: 0.82rem;
  color: var(--text-body);
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
}
.cl-drawer-toggle:hover { background: var(--bg-tag); }
.cl-drawer-date {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--bg-section);
  padding: 2px 8px;
  border-radius: 3px;
}
.cl-drawer-title {
  flex: 1;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cl-drawer-arrow {
  flex-shrink: 0;
  font-size: 0.65rem;
  color: var(--text-muted);
  transition: transform 0.2s;
}
.cl-drawer.open .cl-drawer-arrow { transform: rotate(90deg); }
.cl-drawer-body {
  padding: 14px 18px;
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--text-body);
  border-top: 1px solid var(--border-soft);
}
.cl-drawer-body p { margin-bottom: 0.6em; }
.cl-drawer-body p:last-child { margin-bottom: 0; }
.cl-drawer-body ul,
.cl-drawer-body ol { margin: 0.4em 0 0.8em 1.2em; }
.cl-drawer-body li { margin-bottom: 0.3em; }
.cl-drawer-body strong { color: var(--brown-dark); }

/* ── PWA Install Banner ── */
.pwa-install-banner {
  position:fixed; bottom:0; left:0; right:0; z-index:9999;
  background:rgba(61,48,40,0.95);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  color:#faf3e0;
  display:flex; align-items:center; gap:12px;
  padding:12px 16px;
  box-shadow:0 -4px 24px rgba(0,0,0,0.25);
}
.pwa-install-icon img { border-radius:10px; display:block; }
.pwa-install-text { flex:1; min-width:0; }
.pwa-install-text strong { display:block; font-size:15px; font-weight:600; margin-bottom:2px; }
.pwa-install-text span { font-size:13px; opacity:0.75; }
.pwa-install-btn {
  flex-shrink:0; padding:8px 20px;
  background:#c4a35a; color:#3d3028;
  border:none; border-radius:50px;
  font-size:14px; font-weight:600;
  cursor:pointer; transition:opacity .2s;
}
.pwa-install-btn:active { opacity:0.8; }
.pwa-install-dismiss {
  flex-shrink:0; background:none; border:none;
  color:#faf3e0; opacity:0.5; font-size:18px;
  padding:4px; cursor:pointer; line-height:1;
}
.pwa-install-dismiss:active { opacity:1; }

