/* ═══════════════════════════════════════════
   KAMEI CYLIN ® — Base Styles
   ═══════════════════════════════════════════ */
:root {
  --bg: #FAFAFA; --bg-alt: #ffffff; --bg-dark: #111111;
  --text: #0a0a0a; --text-secondary: #444; --text-muted: #999;
  --border: #e0e0e0; --accent: #e62b1e;
  --font-sans: 'Inter','Helvetica Neue',Arial,'Noto Sans SC',sans-serif;
  --card-radius: 8px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
body {
  font-family: var(--font-sans); background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ═══════════════════════════════════════════
   Header + Navigation
   ═══════════════════════════════════════════ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 40px; display: flex; align-items: center; justify-content: space-between;
  font-size: .75rem; font-weight: 700; letter-spacing: .08em;
  background: rgba(255,255,255,0.94); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); transition: background .3s;
  height: 70px;
}
.header-brand {
  font-size: 1rem; font-weight: 900; color: #111;
  letter-spacing: .05em;
}
.header-brand sup { font-size: .55rem; vertical-align: super; letter-spacing: 0; }
/* Logo */
.logo {
  font-size: 1rem; font-weight: 900; color: #111;
  letter-spacing: .05em;
}
.logo sup { font-size: .55rem; vertical-align: super; letter-spacing: 0; }
.logo a { text-decoration: none; color: #111; }

/* Nav links — light gray, no underline */
.nav-center { display: flex; align-items: center; gap: 22px; margin-left: -60px; }
.nav-center a,
.nav-right a {
  color: #999; text-decoration: none;
  transition: color .2s; font-size: .7rem; letter-spacing: .1em;
  text-transform: uppercase;
}
.nav-center a:hover,
.nav-right a:hover,
.nav-center a.active { color: #111; }
nav a {
  text-decoration: none; color: inherit;
}

/* ═══════════════════════════════════════════
   Sections
   ═══════════════════════════════════════════ */
.section { padding: 100px 40px; }
.section-label {
  font-size: .6rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .2em; color: #e62b1e; margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 800;
  letter-spacing: -.02em; color: #111; margin-bottom: 32px;
  line-height: 1.25;
}

/* ═══════════════════════════════════════════
   Editions Showcase (Featured & Past) – Horizontal Scroll
   ═══════════════════════════════════════════ */
.editions-scroll-container {
  position: relative; display: flex; align-items: center; gap: 0;
}
.editions-scroll-row {
  display: flex; gap: 20px; overflow-x: auto; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none;
  padding: 8px 4px 16px; scroll-snap-type: x mandatory;
  flex: 1; -webkit-overflow-scrolling: touch;
}
.editions-scroll-row::-webkit-scrollbar { display: none; }

/* ── Scroll Arrow ── */
.editions-scroll-arrow {
  flex-shrink: 0; width: 40px; height: 40px;
  border-radius: 50%; border: 1px solid #ccc;
  background: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .25s; z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.editions-scroll-arrow:hover {
  background: #e62b1e; border-color: #e62b1e; color: #fff;
  box-shadow: 0 4px 16px rgba(230,43,30,0.25);
}
.editions-scroll-arrow:active { transform: scale(0.93); }
.editions-scroll-arrow svg {
  width: 16px; height: 16px; stroke: currentColor; fill: none;
  stroke-width: 2.5;
}

/* ── Edition Card (vertical 9:16 magazine cover) ── */
.edition-card {
  flex: 0 0 calc((100% - 40px) / 3); min-width: 240px;
  aspect-ratio: 16 / 9;
  scroll-snap-align: start;
  background: #101010; border: 1px solid var(--border);
  border-radius: var(--card-radius); overflow: hidden;
  cursor: pointer; position: relative;
  transition: transform .35s ease, box-shadow .35s ease;
}
.edition-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.14); z-index: 2;
}
.ec-img-wrapper {
  position: absolute; inset: 0;
  overflow: hidden; background: #181818;
}
.ec-img, .ec-video-cover {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s ease;
}
.edition-card:hover .ec-img { transform: scale(1.06); }
.edition-card:hover .ec-video-cover { transform: scale(1.02); }
.ec-img-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center;
  justify-content: center; font-size: 3rem; color: rgba(255,255,255,0.06);
  background: #181818; position: absolute; inset: 0;
}
/* Info overlay — hidden by default, slides up on hover */
.ec-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 48px 20px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.38) 60%, transparent 100%);
  transform: translateY(16px); opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  pointer-events: none;
}
.edition-card:hover .ec-info {
  transform: translateY(0); opacity: 1;
}
.ec-info h3 {
  font-size: .85rem; font-weight: 700; color: #fff;
  margin-bottom: 4px; letter-spacing: .01em; line-height: 1.3;
}
.ec-info p {
  font-size: .7rem; color: rgba(255,255,255,0.72); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ec-date {
  font-size: .6rem; color: rgba(255,255,255,0.45); margin-top: 6px; display: block;
}

/* ── Bounce animation ── */
@keyframes bounce-left {
  0% { transform: translateX(0); }
  30% { transform: translateX(8px); }
  60% { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}
@keyframes bounce-right {
  0% { transform: translateX(0); }
  30% { transform: translateX(-8px); }
  60% { transform: translateX(4px); }
  100% { transform: translateX(0); }
}
.editions-scroll-row.bounce-left { animation: bounce-left .35s ease; }
.editions-scroll-row.bounce-right { animation: bounce-right .35s ease; }

/* ── Loading & empty ── */
.loading-hint {
  color: #888; font-size: .8rem; padding: 40px 0; letter-spacing: .04em;
}

@media (max-width: 1024px) {
  .edition-card { flex: 0 0 calc((100% - 20px) / 2); min-width: 220px; }
}
@media (max-width: 640px) {
  .edition-card { flex: 0 0 calc(100% - 8px); min-width: 180px; }
  .ec-info h3 { font-size: .8rem; }
}

/* ═══════════════════════════════════════════
   Music Module — KAMEI CYLIN ® Mix Series
   Vinyl player + Playlist + Lyrics (3-column)
   ═══════════════════════════════════════════ */
.music-module-dark {
  display: grid;
  grid-template-columns: 3fr 2fr 5fr;
  gap: 0;
  background: #0e0e0e; border-radius: 16px; overflow: hidden;
  min-height: 560px;
}

/* ── Column 1: Player Visual (Vinyl) ── */
.music-player-area {
  display: flex; align-items: center; justify-content: center;
  padding: 60px 40px; position: relative; background: #0a0a0a;
}
.music-player-visual {
  text-align: center; position: relative;
}
/* Vinyl disc */
.music-vinyl-wrapper {
  position: relative; width: 240px; height: 240px; margin: 0 auto 24px;
}
.music-vinyl-disc {
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle at center, #111 0%, #1a1a1a 16%, #222 22%, #1a0000 40%, #2a0000 60%, #111 72%, #0a0a0a 100%);
  position: relative; z-index: 2;
  box-shadow: 0 0 60px rgba(230,43,30,0.15), inset 0 0 60px rgba(0,0,0,.8);
}
/* Grooves */
.music-vinyl-grooves {
  position: absolute; inset: 18px; border-radius: 50%;
  background: repeating-radial-gradient(circle at center,
    transparent,transparent 2px,
    rgba(255,255,255,0.03) 2px,rgba(255,255,255,0.03) 3px);
  pointer-events: none;
}
/* Center label */
.music-vinyl-label-disc {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 90px; height: 90px; border-radius: 50%;
  background: #e62b1e; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 24px rgba(230,43,30,.5), inset 0 0 15px rgba(0,0,0,.4);
}
.music-vinyl-label-text {
  color: #fff; font-size: .58rem; font-weight: 900;
  letter-spacing: .06em; text-align: center; line-height: 1.3; text-transform: uppercase;
}
.music-vinyl-label-text sup { font-size: .4rem; vertical-align: super; }
/* Glow ring */
.music-vinyl-glow {
  position: absolute; top: -10px; left: -10px; width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230,43,30,0.12) 0%, transparent 70%);
  z-index: 1; pointer-events: none;
}
/* Spin animation */
.music-vinyl-disc.spinning {
  animation: vinylSpin 3s linear infinite;
}
@keyframes vinylSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
/* Play button */
.music-player-inner {
  position: relative; z-index: 5;
  text-align: center;
}
.music-player-play-btn {
  width: 56px; height: 56px; border-radius: 50%;
  background: #e62b1e; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  margin: -20px auto 16px;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(230,43,30,.4);
  position: relative; z-index: 10;
}
.music-player-play-btn:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(230,43,30,.6); }
.music-play-icon {
  display: block; width: 0; height: 0;
  border-left: 20px solid #fff;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 4px;
}
.music-player-play-btn.playing .music-play-icon {
  width: 16px; height: 18px; border: none;
  background: linear-gradient(to right, #fff 45%, transparent 45%, transparent 55%, #fff 55%);
  margin-left: 0;
}
.music-player-label {
  font-size: .6rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .25em; color: rgba(230,43,30,0.7);
  margin-bottom: 6px;
}
.music-player-title {
  font-size: .85rem; font-weight: 700; color: #fff;
  letter-spacing: .03em; max-width: 260px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.music-player-artist { font-size: .65rem; color: rgba(255,255,255,.35); margin-top: 4px; }

/* ── Progress bar ── */
.music-progress-area {
  display: flex; align-items: center; gap: 10px;
  margin-top: 18px; padding: 0 4px;
}
.music-progress-time {
  font-size: .6rem; color: rgba(255,255,255,.4);
  font-variant-numeric: tabular-nums; min-width: 36px;
  text-align: center; flex-shrink: 0;
}
.music-progress-bar-wrap {
  flex: 1; position: relative; height: 18px;
  display: flex; align-items: center; cursor: pointer;
}
.music-progress-track {
  width: 100%; height: 3px; background: rgba(255,255,255,.1);
  border-radius: 2px; position: relative; overflow: visible;
}
.music-progress-fill {
  position: absolute; left: 0; top: 0;
  height: 100%; background: #e62b1e; border-radius: 2px;
  width: 0%; transition: width .1s linear;
}
.music-progress-thumb {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  width: 12px; height: 12px; border-radius: 50%;
  background: #e62b1e; box-shadow: 0 0 8px rgba(230,43,30,.6);
  opacity: 0; transition: opacity .2s;
  pointer-events: none; z-index: 2;
}
.music-progress-bar-wrap:hover .music-progress-thumb { opacity: 1; }

/* ── Column 2: Tracklist ── */
.music-tracklist-area {
  padding: 24px 0 0; display: flex; flex-direction: column;
  border-left: 1px solid #1a1a1a; max-height: 560px;
}
.music-tracklist-area .section-label-dark {
  font-size: .55rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .25em; color: rgba(230,43,30,0.7);
  padding: 0 24px; margin-bottom: 6px;
}
.music-tracklist-scroll { flex: 1; overflow-y: auto; padding: 0 16px 20px; }

.music-track-dark {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 8px; border-radius: 8px; cursor: pointer;
  transition: background .2s;
}
.music-track-dark:hover { background: rgba(255,255,255,.04); }
.music-track-dark.active { background: rgba(230,43,30,.12); }
.music-track-dark-num {
  font-size: .7rem; font-weight: 700; color: rgba(255,255,255,.25);
  width: 24px; flex-shrink: 0; text-align: right;
}
.music-track-dark-info { flex: 1; min-width: 0; }
.music-track-dark-title {
  font-size: .78rem; font-weight: 500; color: #ddd;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.music-track-dark.active .music-track-dark-title { color: #e62b1e; }
.music-track-dark-artist {
  font-size: .6rem; color: rgba(255,255,255,.3); margin-top: 2px;
}
.music-track-dark-time {
  font-size: .65rem; color: rgba(255,255,255,.3); flex-shrink: 0;
}

/* ── Column 3: Lyrics ── */
.music-lyrics-area {
  padding: 24px 0 0; display: flex; flex-direction: column;
  border-left: 1px solid #1a1a1a; max-height: 560px;
}
.music-lyrics-area .section-label-dark {
  font-size: .55rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .25em; color: rgba(230,43,30,0.7);
  padding: 0 24px; margin-bottom: 6px;
}
.lyrics-scroll { flex: 1; overflow: hidden; padding: 4px 24px 0; height: 11rem; }
.lyrics-track { transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1); }
.lyric-line {
  font-size: .72rem; line-height: 2.2rem; color: rgba(255,255,255,.2);
  transition: color .35s, font-size .35s, font-weight .35s; cursor: default;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lyric-line.active {
  color: #e62b1e; font-size: .88rem; font-weight: 600;
  text-shadow: 0 0 12px rgba(230,43,30,0.25);
}
.lyrics-empty {
  font-size: .68rem; color: rgba(255,255,255,.15);
  padding-top: 40px; text-align: center;
}

/* Section label shared */
.section-label-dark {
  color: rgba(255,255,255,.22); font-size: .6rem;
  text-transform: uppercase; letter-spacing: .18em; font-weight: 600;
}

/* Responsive */
@media (max-width: 1080px) {
  .music-module-dark { grid-template-columns: 1fr; min-height: auto; }
  .music-player-area { padding: 48px 32px; }
  .music-vinyl-wrapper { width: 220px; height: 220px; }
  .music-vinyl-disc { width: 220px; height: 220px; }
  .music-vinyl-glow { width: 244px; height: 244px; top: -12px; left: -12px; }
  .music-vinyl-label-disc { width: 86px; height: 86px; }
  .music-tracklist-area { border-left: none; border-top: 1px solid #1a1a1a; max-height: none; }
  .music-lyrics-area { border-left: none; border-top: 1px solid #1a1a1a; max-height: 400px; }
  .lyrics-scroll { height: 10rem; padding: 4px 20px 0; }
}

/* ═══════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════ */
.footer,
.footer-section {
  background: var(--bg-dark); color: #ccc; padding: 60px 40px 30px;
}
.footer-cta {
  max-width: 1400px; margin: 0 auto 48px;
}
.footer-links .footer-cta {
  max-width: none; margin: 0;
  padding-left: 48px;
}
.footer-cta-label {
  font-size: .6rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .2em; color: #e62b1e; margin-bottom: 8px;
}
.footer-cta-title {
  font-size: 1.3rem; font-weight: 800; color: #fff; margin-bottom: 20px;
  letter-spacing: -.02em;
}
.footer-cta-title span { color: #e62b1e; }
.footer-contact-area { position: relative; display: inline-block; }
.btn-discord {
  border: 1px solid rgba(255,255,255,0.3); color: #fff;
  font-size: .7rem; padding: 12px 28px; letter-spacing: .1em;
  background: transparent; cursor: pointer;
  font-weight: 700; text-transform: uppercase;
  transition: all .3s;
}
.btn-discord:hover { background: #fff; color: #111; }
.qr-popup {
  display: none; position: absolute; bottom: 100%; right: 0;
  margin-bottom: 12px; background: #fff; border-radius: 8px;
  padding: 12px; box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  z-index: 100;
}
.qr-popup img {
  width: 200px;
  height: auto; display: block; }
.qr-popup p { text-align: center; font-size: .7rem; color: #888; margin-top: 6px; }

.footer-links {
  max-width: 1400px; margin: 0 auto 40px;
  display: grid; grid-template-columns: 1fr auto 1fr;
}
.footer-links .footer-col:first-child { justify-self: end; padding-right: 8vw; white-space: nowrap; }
.footer-links .footer-col:nth-child(2) { padding: 0 8vw; }
.footer-links .footer-col:last-child { justify-self: start; padding-left: 8vw; white-space: nowrap; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col-title {
  font-size: .7rem; font-weight: 700; color: #fff;
  letter-spacing: .06em; margin-bottom: 6px; text-transform: uppercase;
}
.footer-col a {
  font-size: .75rem; color: #999; text-decoration: none;
  transition: color .2s;
}
.footer-col a:hover { color: #fff; }

/* Newsletter input */
.newsletter-input {
  display: flex; gap: 0; margin-top: 4px;
}
.newsletter-input input {
  flex: 1; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 8px 12px; font-size: .75rem; color: #fff;
  border-radius: 3px 0 0 3px; outline: none;
  min-width: 0;
}
.newsletter-input input::placeholder { color: #666; }
.newsletter-input button {
  background: #e62b1e; color: #fff; border: none;
  padding: 8px 14px; font-size: .7rem; font-weight: 700;
  cursor: pointer; border-radius: 0 3px 3px 0;
  white-space: nowrap;
  letter-spacing: .04em;
}

.footer-bottom {
  display: flex; justify-content: center; align-items: center;
  max-width: 1400px; margin: 0 auto; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: .7rem; color: #666; gap: 16px; flex-wrap: wrap;
}
.footer-bottom a { color: #ccc; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

@media (max-width: 768px) {
  .section { padding: 60px 20px; }
  .header { padding: 12px 20px; }
  .nav-center { gap: 14px; }
  .music-module-dark { grid-template-columns: 1fr; min-height: auto; }
  .music-vinyl-wrapper { width: 200px; height: 200px; }
  .music-vinyl-disc { width: 200px; height: 200px; }
  .music-vinyl-glow { width: 224px; height: 224px; top: -12px; left: -12px; }
  .music-vinyl-label-disc { width: 78px; height: 78px; }
  .music-tracklist-area { border-left: none; border-top: 1px solid #1a1a1a; padding-top: 20px; max-height: none; }
  .music-tracklist-scroll { padding: 0 12px 16px; }
  .music-lyrics-area { border-left: none; border-top: 1px solid #1a1a1a; padding-top: 20px; max-height: 350px; }
  .lyrics-scroll { padding: 2px 14px 0; height: 9rem; }
  .footer-links { display: flex; flex-wrap: wrap; gap: 32px; justify-content: center; }
  .footer-links .footer-col:first-child { justify-self: auto; padding-right: 0; white-space: normal; }
  .footer-links .footer-col:nth-child(2) { padding: 0; }
  .footer-links .footer-col:last-child { justify-self: auto; padding-left: 0; white-space: normal; }
  .footer, .footer-section { padding: 48px 20px 20px; }
  .editions-card-row { grid-template-columns: 1fr; gap: 16px; }
  .ehc-img-wrapper { aspect-ratio: 4 / 3; }
  .ehc-info { padding: 16px 20px; }
  .ehc-info h3 { font-size: 1rem; }
}