/* さしすせそ reel section (Home #reels and reels.html). */
.reels-section { padding: var(--space-12) 0 var(--space-8); background: var(--color-surface); border-top: var(--outline); }

.reels-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.reels-sign {
  padding: var(--space-4) var(--space-6);
  background: var(--color-ink);
  border-radius: var(--radius-sm);
  border-bottom: 4px solid var(--color-pink);
  min-width: min(100%, 320px);
}

.reels-intro { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); max-width: 420px; }
.reels-subtitle { color: var(--color-text-2); }

.reel-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-4);
}

.reel-card { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }

.reel-cover {
  position: relative;
  aspect-ratio: 9 / 14;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: var(--outline);
  border-radius: var(--radius-card);
  background: var(--ph);
  color: var(--color-ink);
  text-decoration: none;
  margin-bottom: var(--space-2);
  transition: transform var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}

a.reel-cover:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); color: var(--color-ink); }
.reel-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-cover-label { font-family: var(--font-mono); font-size: var(--fs-small); }

.reel-soon {
  position: absolute;
  right: var(--space-2);
  bottom: var(--space-2);
  padding: 2px var(--space-2);
  background: var(--color-surface);
  border: 1px solid var(--color-ink);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  font-weight: 700;
}

.kana-badge {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: 60px;
  height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-ink);
  border-radius: 0 0 8px 0;
  line-height: 1;
}

.kana-badge-jp { font-weight: 900; font-size: 1.75rem; color: var(--color-on-dark); line-height: 1; }
.kana-badge-romaji { margin-top: 4px; font-family: var(--font-mono); font-size: var(--fs-small); color: var(--color-pink); }

.pron-card .pron-jp { font-size: 1.125rem; }
.reel-cat { font-family: var(--font-mono); font-size: var(--fs-small); text-transform: uppercase; color: var(--color-text-2); letter-spacing: 0.5px; }

.reel-dots { display: none; justify-content: center; gap: var(--space-2); margin-top: var(--space-4); }

.reel-dot {
  width: var(--tap-min);
  height: var(--tap-min);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.reel-dot::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--color-line);
  transition: width var(--dur-fast) ease;
}

.reel-dot[aria-current="true"]::before { width: 26px; background: var(--color-ink); }

@media (max-width: 1099px) {
  .reel-track {
    display: flex;
    gap: var(--space-4);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--space-2);
    margin-right: calc(-1 * var(--gutter));
    padding-right: var(--gutter);
    scrollbar-width: none;
  }

  .reel-track::-webkit-scrollbar { display: none; }
  .reel-card { flex: 0 0 min(62vw, 260px); scroll-snap-align: start; }
  .reel-dots { display: flex; }
}
