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

html, body {
  min-height: 100%;
  background: #f2ede4;
  color: #1a1208;
  font-family: 'Times New Roman', Times, serif;
  font-style: italic;
}

body {
  background-image:
    radial-gradient(ellipse at 15% 25%, rgba(232,168,48,0.05) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 75%, rgba(180,120,60,0.04) 0%, transparent 55%);
}

/* ─── Header ─── */
.currents-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 28px 40px 18px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(242, 237, 228, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(26, 18, 8, 0.08);
}

.back-link {
  flex: 1;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: #e8a830;
  text-decoration: none;
  opacity: 0.7;
  text-transform: lowercase;
  transition: opacity 0.2s;
}
.back-link:hover { opacity: 1; }

.header-center {
  flex: 1;
  text-align: center;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: normal;
  font-style: italic;
  letter-spacing: 0.1em;
  line-height: 1;
  color: #1a1208;
}

.tagline {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: #e8a830;
  text-transform: lowercase;
  margin-top: 5px;
}

.header-spacer { flex: 1; }

/* ─── Board ─── */
.currents-board {
  columns: 3 260px;
  column-gap: 18px;
  padding: 52px 40px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

/* ─── Card ─── */
.current-card {
  break-inside: avoid;
  display: block;
  margin-bottom: 22px;
  background: #fffef9;
  border-radius: 1px;
  box-shadow:
    0 1px 3px rgba(0,0,0,0.06),
    0 4px 16px rgba(0,0,0,0.07),
    0 12px 40px rgba(0,0,0,0.05);
  text-decoration: none;
  color: #1a1208;
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease, z-index 0s;
  will-change: transform;
}

/* Tape */
.current-card::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 46px;
  height: 18px;
  background: rgba(232, 168, 48, 0.2);
  border-left: 1px solid rgba(232, 168, 48, 0.12);
  border-right: 1px solid rgba(232, 168, 48, 0.12);
  z-index: 1;
}

/* Per-card rotations */
.current-card:nth-child(5n+1) { transform: rotate(-1.8deg); }
.current-card:nth-child(5n+2) { transform: rotate(1.2deg); }
.current-card:nth-child(5n+3) { transform: rotate(-0.6deg); }
.current-card:nth-child(5n+4) { transform: rotate(2.2deg); }
.current-card:nth-child(5n+5) { transform: rotate(-1.4deg); }

.current-card:hover {
  transform: rotate(0deg) scale(1.025) !important;
  box-shadow:
    0 2px 6px rgba(0,0,0,0.08),
    0 12px 36px rgba(0,0,0,0.12),
    0 24px 64px rgba(0,0,0,0.07);
  z-index: 20;
}

/* ─── Card Image ─── */
.card-image {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.card-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: filter 0.35s ease;
}

.current-card:hover .card-image img {
  filter: saturate(1.08) brightness(1.02);
}

/* Video overlay */
.card-image.has-play::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
}

.card-image.has-play::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-44%, -50%);
  z-index: 2;
  border-style: solid;
  border-width: 9px 0 9px 17px;
  border-color: transparent transparent transparent #fff;
}

/* ─── Card Body ─── */
.card-body {
  padding: 13px 15px 16px;
}

/* ─── Source Badge ─── */
.card-source {
  display: inline-block;
  font-size: 0.52rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-style: normal;
  color: #fff;
  padding: 2px 6px;
  border-radius: 2px;
  margin-bottom: 9px;
}

.source-instagram { background: #c13584; }
.source-youtube   { background: #cc0000; }
.source-spotify   { background: #1db954; }
.source-web,
.source-article,
.source-substack  { background: #c8862a; }
.source-default   { background: #8a7560; }

/* ─── Card Text ─── */
.card-title {
  font-size: 0.88rem;
  font-weight: bold;
  font-style: italic;
  line-height: 1.35;
  color: #1a1208;
  margin-bottom: 4px;
}

.card-creator {
  font-size: 0.7rem;
  color: #c8862a;
  font-style: italic;
  margin-bottom: 8px;
}

.card-note {
  font-size: 0.77rem;
  line-height: 1.65;
  color: #3d2b14;
  font-style: italic;
  opacity: 0.82;
}

.card-date {
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  color: #a08060;
  text-transform: uppercase;
  font-style: normal;
  margin-top: 11px;
}

/* ─── Music Card ─── */
.card-music {
  display: flex;
  gap: 12px;
  padding: 14px;
  align-items: flex-start;
}

.music-art {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  overflow: hidden;
}

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

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

.music-date {
  padding: 0 14px 12px;
}

/* ─── Text-only Card ─── */
.card-text-only {
  background: linear-gradient(140deg, #fffef9 0%, #faf6ee 100%);
  padding: 18px 15px 18px;
}

.card-text-only .card-title {
  font-size: 0.95rem;
  line-height: 1.4;
}

/* ─── Empty State ─── */
.empty-state {
  text-align: center;
  padding: 100px 40px;
  font-style: italic;
}

.empty-state p {
  font-size: 1.1rem;
  color: #9a8060;
  letter-spacing: 0.1em;
}

.empty-state .empty-sub {
  font-size: 0.72rem;
  color: #c8a870;
  letter-spacing: 0.2em;
  margin-top: 8px;
}

/* ─── Mobile ─── */
@media (max-width: 640px) {
  .currents-header {
    padding: 18px 20px 12px;
  }

  .currents-board {
    columns: 1;
    padding: 36px 16px 48px;
  }

  .current-card:nth-child(n) {
    transform: rotate(0deg);
  }

  .current-card::before {
    display: none;
  }
}

@media (min-width: 641px) and (max-width: 960px) {
  .currents-board {
    columns: 2;
    padding: 44px 24px 56px;
  }
}
