:root {
  --bg: #f7f5ee;
  --surface: #ffffff;
  --surface-alt: #f0ece1;
  --ink: #141414;
  --ink-muted: #5c574d;
  --cobalt: #2748d6;
  --cobalt-dark: #182b7a;
  --gold: #b8933b;
  --gold-soft: #fdf7e6;
  --border: #ddd7c8;
  --shadow: 0 6px 24px rgba(20, 20, 20, 0.06);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans KR", "Noto Sans TC", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--cobalt-dark);
}

.notice-bar {
  background: #141414;
  color: #e6e1d3;
  font-size: 12px;
  padding: 6px 14px;
  text-align: center;
}

.notice-bar a {
  color: #f3d27a;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(247, 245, 238, 0.94);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 30;
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 19px;
}

.brand-link img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
}

.header-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 8px;
}

.header-nav a:hover {
  background: var(--surface-alt);
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.lang-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-muted);
  background: var(--surface);
}

.lang-pill.active {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #ffffff;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 16px 84px;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 20px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-soft);
  border: 1px solid #e7d195;
  color: #7c5c12;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.hero-card h1 {
  margin: 0 0 8px;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.hero-sub {
  margin: 0 0 18px;
  color: var(--ink-muted);
  font-size: 15px;
  max-width: 72ch;
}

.picker-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
}

.field select,
.field input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.12s ease;
}

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

.btn-primary {
  background: var(--cobalt);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--cobalt-dark);
}

.btn-secondary {
  background: var(--surface-alt);
  color: var(--ink);
  border-color: var(--border);
}

.btn-gold {
  background: linear-gradient(135deg, #c99d3b, #a47c24);
  color: #ffffff;
}

.quick-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.chip-btn {
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.date-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 12px 10px;
}

.date-big {
  font-size: clamp(46px, 9vw, 76px);
  font-weight: 900;
  line-height: 1;
  color: var(--cobalt);
  letter-spacing: -0.03em;
}

.date-count {
  margin: 8px 0 0;
  color: var(--ink-muted);
  font-size: 15px;
  font-weight: 600;
}

.genre-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 16px 0;
}

.genre-chip {
  min-height: 44px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.genre-chip.active {
  background: #141414;
  border-color: #141414;
  color: #ffffff;
}

.toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 12px 0 18px;
}

.toolbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0 12px;
}

.section-heading h2 {
  margin: 0;
  font-size: 20px;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.album-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.14s ease, border-color 0.14s ease;
}

.album-card.exact-year {
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(184, 147, 59, 0.18);
}

.album-card.selected {
  border-color: var(--cobalt);
  box-shadow: 0 0 0 2px rgba(39, 72, 214, 0.22);
}

.cover-btn {
  position: relative;
  border: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #e9e4d7;
  cursor: pointer;
  overflow: hidden;
}

.cover-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.select-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.72);
  border: 2px solid #ffffff;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.album-card.selected .select-badge {
  background: var(--cobalt);
}

.exact-pill {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: var(--gold);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
}

.album-meta {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.album-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.album-artist {
  font-size: 13px;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.album-sub {
  font-size: 12px;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.album-links {
  display: flex;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
}

.mini-link {
  flex: 1;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  background: var(--bg);
}

.sticky-crate-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  z-index: 40;
}

.sticky-crate-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sticky-text {
  font-size: 14px;
  font-weight: 700;
}

/* Viral Share Hub & 6-Seat Room Board (Hero CTA + 4 Tiles strictly ABOVE preview image) */
.share-hub-card,
.friend-invite-banner,
.room-board-card,
.reciprocity-card,
.seo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
  margin: 18px 0;
}

.friend-invite-banner {
  background: linear-gradient(180deg, #eef2ff 0%, #ffffff 100%);
  border-color: #c2cef9;
}

.reciprocity-card {
  background: linear-gradient(180deg, #fdf7e6 0%, #ffffff 100%);
  border-color: var(--gold);
}

.share-hero-cta {
  width: 100%;
  min-height: 52px;
  font-size: 16px;
  margin: 10px 0;
}

.share-tiles-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.share-tile {
  min-height: 46px;
  padding: 8px 6px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}

.code-card-dark {
  background: #181a24;
  color: #f8fafc;
  border-radius: 14px;
  padding: 14px 16px;
  margin: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.code-pill {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.16em;
  color: #f3d27a;
  background: rgba(255, 255, 255, 0.08);
  padding: 8px 14px;
  border-radius: 10px;
}

.seats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.seat-card {
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.seat-card.next-open {
  border: 2px dashed var(--cobalt);
  background: #eef2ff;
}

.seat-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #e2dccb;
  object-fit: cover;
  flex-shrink: 0;
}

.canvas-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.canvas-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.canvas-box img {
  margin: 0 auto 8px;
  border-radius: 10px;
  max-height: 420px;
  width: auto;
}

.ad-slot {
  margin: 16px 0;
  text-align: center;
  min-height: 0;
}

.ad-slot[data-active="false"] {
  display: none;
  height: 0;
  margin: 0;
}

.month-links-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.month-link-pill {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 22px 16px 90px;
  font-size: 13px;
  color: var(--ink-muted);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .album-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .seats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .picker-form {
    grid-template-columns: 1fr 1fr;
  }
  .picker-form .btn {
    grid-column: 1 / -1;
  }
  .album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .share-tiles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .seats-grid,
  .canvas-preview-grid {
    grid-template-columns: 1fr;
  }
  .month-links-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .sticky-text {
    font-size: 12px;
  }
}
