/* ============================================================
   KKCM — Stylesheet
   ============================================================ */

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

:root {
  --bg:        #0a0a0a;
  --surface:   #141414;
  --border:    #222;
  --text:      #e8e8e8;
  --muted:     #888;
  --accent:    #ffffff;
  --hover:     rgba(255,255,255,0.08);
  --gap:       24px;
  --radius:    4px;
  --header-h:  64px;
  --max-w:     1200px;
  --font:      'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Layout helpers ───────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap);
}

section {
  padding: 80px 0;
}

/* ── Header ───────────────────────────────────────────────── */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
}

#header .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
}

#header .container .header-social,
#header .container .hamburger {
  justify-self: end;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
}

.header-social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-social a {
  color: var(--muted);
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.header-social a:hover {
  color: var(--accent);
}

.header-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 24px var(--gap);
  z-index: 99;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-menu a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Main content offset for fixed header ─────────────────── */
main {
  padding-top: var(--header-h);
}

/* ── Hero ─────────────────────────────────────────────────── */
#hero {
  padding: 0;
  height: 70vh;
  min-height: 400px;
  overflow: hidden;
  position: sticky;
  top: var(--header-h);
  z-index: 0;
}

#hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

main > section:not(#hero),
#footer {
  position: relative;
  z-index: 1;
  background: var(--bg);
}

/* ── Light section variant ────────────────────────────────── */
.light {
  --bg:      #fff;
  --surface: #f0f0f0;
  --border:  #e0e0e0;
  --text:    #0a0a0a;
  --muted:   #777;
  --accent:  #0a0a0a;
  --hover:   rgba(0,0,0,0.06);
  background: #fff;
  color: #0a0a0a;
}

.light .btn-primary {
  background: #0a0a0a;
  color: #fff;
}

.light .btn-primary:hover {
  background: #333;
}

/* ── Hero / Featured ──────────────────────────────────────── */
#featured {
  padding: 60px 0 80px;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 56px;
}

.featured-grid {
  display: flex;
  justify-content: center;
  gap: var(--gap);
}

.featured-grid:has(.featured-card:only-child) .featured-card {
  width: min(480px, 100%);
}

.featured-card {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  width: 100%;
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}

.featured-card img {
  transition: transform 0.5s ease;
}

.featured-card:hover img {
  transform: scale(1.04);
}

.featured-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 48px 24px 24px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
}

.featured-card-title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  color: #fff;
}

.featured-card-artist {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin-top: 4px;
}

.featured-card-link {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 20px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  transition: background 0.2s, border-color 0.2s;
}

.featured-card-link:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

/* Placeholder art for featured cards */
.featured-card-placeholder {
  width: 100%;
  height: 100%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 700;
  color: var(--border);
  letter-spacing: -0.02em;
}

/* ── About ────────────────────────────────────────────────── */
#about {
  border-top: 1px solid var(--border);
}

.about-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  max-width: 680px;
  margin: 0 auto;
}

.about-heading {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-text p {
  color: #aaa;
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 16px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* ── Album grid sections ──────────────────────────────────── */
.albums-section {
  border-top: 1px solid var(--border);
}

.albums-section-header {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  margin-bottom: 56px;
}

.albums-section-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  align-items: start;
}

#albums .album-grid {
  grid-template-columns: repeat(5, 1fr);
}

#albums .album-card:nth-child(-n+4) {
  grid-column: span 1;
}

#albums .album-card:nth-child(n+5) {
  grid-column: span 1;
}

.album-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  text-align: center;
}

.album-cover {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
}

.album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.album-card:hover .album-cover img {
  transform: scale(1.06);
}

.album-cover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
}

.album-card:hover .album-cover-overlay {
  opacity: 1;
}

.album-cover-overlay svg {
  width: 40px;
  height: 40px;
  fill: #fff;
}

.album-placeholder {
  width: 100%;
  height: 100%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--border);
}

.album-title {
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.album-artist {
  font-size: 12px;
  color: var(--muted);
  margin-top: -6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

/* ── Videos ───────────────────────────────────────────────── */
.videos-section {
  border-top: 1px solid var(--border);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}

.video-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  text-align: center;
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}

.video-thumb img {
  transition: transform 0.4s ease;
}

.video-thumb:hover img {
  transform: scale(1.04);
}

.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  transition: background 0.2s;
}

.video-thumb:hover .video-play-btn {
  background: rgba(0,0,0,0.55);
}

.video-play-btn svg {
  width: 52px;
  height: 52px;
  fill: #fff;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
  transition: transform 0.2s;
}

.video-thumb:hover .video-play-btn svg {
  transform: scale(1.1);
}

.video-thumb iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-title {
  font-size: 13px;
  font-weight: 400;
}

/* ── Support / Donate ─────────────────────────────────────── */
#support {
  border-top: 1px solid var(--border);
}

.support-inner {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.support-heading {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.support-text {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-primary:hover {
  background: #d0d0d0;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  background: var(--hover);
}

/* ── Footer ───────────────────────────────────────────────── */
#footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
}

.footer-logo img {
  height: 28px;
  width: auto;
  display: block;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-social a {
  color: var(--muted);
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.footer-social a:hover {
  color: var(--accent);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 20px;
  justify-self: end;
}

.footer-meta a:hover {
  color: var(--accent);
}

/* ── Divider ──────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ── Scroll to top ────────────────────────────────────────── */
#scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, background 0.2s;
  z-index: 50;
}

#scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

#scroll-top:hover {
  background: var(--hover);
}

#scroll-top svg {
  width: 18px;
  height: 18px;
  stroke: var(--text);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --gap: 16px;
  }

  section {
    padding: 56px 0;
  }

  .nav-links,
  .header-social {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .featured-grid {
    flex-direction: column;
  }


  .album-grid,
  #albums .album-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .album-card,
  #albums .album-card:nth-child(-n+4),
  #albums .album-card:nth-child(n+5) {
    grid-column: span 1;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    justify-items: center;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-meta {
    justify-self: center;
  }
}

@media (max-width: 480px) {
  .album-grid,
  #albums .album-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .video-grid {
    grid-template-columns: 1fr;
  }
}
