/* ============================================
   H/MIX GALLERY — Track Detail v2
   "息をのむほど美しい" Immersive Design
   ============================================ */

/* Global player bottom space */
body { padding-bottom: 80px; }

:root {
  --td2-bg:         #0a0e0c;
  --td2-surface:    #111916;
  --td2-border:     rgba(180, 200, 170, 0.10);
  --td2-text:       #d4cfc0;
  --td2-text-dim:   rgba(212, 207, 192, 0.50);
  --td2-accent:     #7ab87a;
  --td2-accent-dim: rgba(122, 184, 122, 0.15);
  --td2-gold:       #c8a96e;
  --td2-gold-dim:   rgba(200, 169, 110, 0.15);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  background: var(--td2-bg);
  color: var(--td2-text);
  font-family: 'Noto Sans JP', sans-serif;
  overflow-x: hidden;
}

/* ─────────────────────────────────────────────
   HERO — Full Viewport Scene Image
   ───────────────────────────────────────────── */
.td2-hero {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 500px;
  max-height: 900px;
  overflow: hidden;
}

/* Scene image background — background-image set dynamically by track-detail.js */
.td2-hero__image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  0%   { transform: scale(1.05); }
  100% { transform: scale(1.12); }
}

/* Cinematic gradient overlays */
.td2-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    /* Bottom fade to page bg */
    linear-gradient(to top, var(--td2-bg) 0%, rgba(10,14,12,0.85) 20%, transparent 50%),
    /* Top subtle vignette */
    linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, transparent 30%),
    /* Side vignettes */
    radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.5) 100%);
}

/* Atmospheric particles */
.td2-hero__particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.td2-hero__particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(200, 169, 110, 0.4);
  border-radius: 50%;
  animation: particleFloat linear infinite;
}
.td2-hero__particle:nth-child(1) { left: 15%; animation-duration: 12s; animation-delay: 0s; }
.td2-hero__particle:nth-child(2) { left: 35%; animation-duration: 15s; animation-delay: 2s; width: 3px; height: 3px; }
.td2-hero__particle:nth-child(3) { left: 55%; animation-duration: 10s; animation-delay: 4s; }
.td2-hero__particle:nth-child(4) { left: 72%; animation-duration: 14s; animation-delay: 1s; width: 1.5px; height: 1.5px; }
.td2-hero__particle:nth-child(5) { left: 88%; animation-duration: 11s; animation-delay: 3s; }
.td2-hero__particle:nth-child(6) { left: 25%; animation-duration: 16s; animation-delay: 5s; width: 2.5px; height: 2.5px; }
.td2-hero__particle:nth-child(7) { left: 65%; animation-duration: 13s; animation-delay: 7s; }
.td2-hero__particle:nth-child(8) { left: 45%; animation-duration: 18s; animation-delay: 2s; width: 1px; height: 1px; opacity: 0.6; }

@keyframes particleFloat {
  0%   { bottom: -10px; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { bottom: 100%; opacity: 0; }
}

/* Hero content container */
.td2-hero__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 2rem 4rem;
  z-index: 2;
}

.td2-hero__inner {
  max-width: 860px;
  margin: 0 auto;
}

/* Breadcrumb */
.td2-breadcrumb {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.06em;
  margin-bottom: 2rem;
}
.td2-breadcrumb a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s;
}
.td2-breadcrumb a:hover { color: var(--td2-accent); }
.td2-breadcrumb span { margin: 0 0.4em; opacity: 0.5; }

/* Track ID badge */
.td2-hero__id {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--td2-gold);
  border: 1px solid rgba(200,169,110,0.3);
  padding: 0.3rem 1rem;
  border-radius: 2px;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
  background: rgba(200,169,110,0.08);
}

/* Track title */
.td2-hero__title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 500;
  color: #f0ece0;
  line-height: 1.25;
  margin: 0 0 0.8rem;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

/* Track description */
.td2-hero__desc {
  font-size: 0.95rem;
  color: rgba(240, 236, 224, 0.65);
  line-height: 1.8;
  margin: 0 0 2rem;
  max-width: 500px;
  font-family: 'Noto Sans JP', sans-serif;
}

/* Hero actions row */
.td2-hero__actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/* Play button in hero */
.td2-hero__play {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 2rem 0.9rem 1.6rem;
  background: rgba(122, 184, 122, 0.12);
  border: 1px solid rgba(122, 184, 122, 0.4);
  border-radius: 50px;
  color: var(--td2-accent);
  font-size: 0.9rem;
  font-family: 'Noto Sans JP', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}
.td2-hero__play:hover {
  background: rgba(122, 184, 122, 0.22);
  border-color: var(--td2-accent);
  box-shadow: 0 0 30px rgba(122, 184, 122, 0.2);
  transform: translateY(-1px);
}
.td2-hero__play svg {
  width: 20px;
  height: 20px;
}

/* Fav button in hero */
.td2-hero__fav {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(200, 169, 110, 0.08);
  border: 1px solid rgba(200, 169, 110, 0.3);
  color: rgba(200, 169, 110, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}
.td2-hero__fav:hover {
  background: rgba(200, 169, 110, 0.18);
  border-color: rgba(200, 169, 110, 0.5);
  color: var(--td2-gold);
}
.td2-hero__fav.active {
  background: rgba(200, 169, 110, 0.22);
  border-color: var(--td2-gold);
  color: var(--td2-gold);
}
.td2-hero__fav.active .td2-hero__fav-off { display: none; }
.td2-hero__fav.active .td2-hero__fav-on  { display: block !important; color: var(--td2-gold); }

/* ─────────────────────────────────────────────
   Ornamental Divider
   ───────────────────────────────────────────── */
.td2-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 3rem auto;
  max-width: 400px;
  padding: 0 2rem;
}
.td2-divider__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,169,110,0.3), transparent);
}
.td2-divider__gem {
  width: 8px;
  height: 8px;
  border: 1px solid rgba(200,169,110,0.4);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────
   Main Content Area
   ───────────────────────────────────────────── */
.td2-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

/* ─── Player Section ─── */
.td2-player {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.5rem 2rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--td2-border);
  border-radius: 16px;
  margin-bottom: 3rem;
  backdrop-filter: blur(4px);
}

.td2-player__play {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--td2-accent-dim);
  border: 1px solid rgba(122,184,122,0.35);
  color: var(--td2-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s;
  flex-shrink: 0;
}
.td2-player__play:hover {
  background: rgba(122,184,122,0.25);
  box-shadow: 0 0 20px rgba(122,184,122,0.2);
}
.td2-player__play svg {
  width: 20px;
  height: 20px;
  margin-left: 2px;
}

.td2-player__info {
  flex: 1;
  min-width: 0;
}
.td2-player__title {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.95rem;
  color: var(--td2-text);
  margin-bottom: 0.5rem;
}
.td2-player__bar {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.td2-player__fill {
  height: 100%;
  width: 35%;
  background: linear-gradient(90deg, var(--td2-accent), rgba(122,184,122,0.5));
  border-radius: 2px;
}
.td2-player__time {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--td2-text-dim);
  font-family: 'Cinzel', serif;
  letter-spacing: 0.06em;
  margin-top: 0.4rem;
}

/* ─── Tags Section ─── */
.td2-section-label {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--td2-gold);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.td2-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(200,169,110,0.25), transparent);
}

.td2-tags {
  margin-bottom: 3rem;
}

.td2-tag-group {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.8rem;
}
.td2-tag-group__label {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  color: var(--td2-text-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  min-width: 50px;
  padding-top: 0.3rem;
  flex-shrink: 0;
}
.td2-tag-group__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.td2-tag {
  display: inline-block;
  padding: 0.25rem 0.9rem;
  border-radius: 20px;
  font-size: 0.75rem;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}
.td2-tag--feeling {
  background: rgba(160, 120, 200, 0.1);
  border: 1px solid rgba(160, 120, 200, 0.25);
  color: #b89cd8;
}
.td2-tag--feeling:hover {
  background: rgba(160, 120, 200, 0.2);
  border-color: #b89cd8;
}
.td2-tag--style {
  background: rgba(100, 160, 220, 0.1);
  border: 1px solid rgba(100, 160, 220, 0.25);
  color: #80b8e0;
}
.td2-tag--style:hover {
  background: rgba(100, 160, 220, 0.2);
  border-color: #80b8e0;
}
.td2-tag--scene {
  background: var(--td2-accent-dim);
  border: 1px solid rgba(122, 184, 122, 0.25);
  color: var(--td2-accent);
}
.td2-tag--scene:hover {
  background: rgba(122, 184, 122, 0.25);
  border-color: var(--td2-accent);
}
.td2-tag--story {
  background: var(--td2-gold-dim);
  border: 1px solid rgba(200, 169, 110, 0.25);
  color: var(--td2-gold);
}
.td2-tag--story:hover {
  background: rgba(200, 169, 110, 0.25);
  border-color: var(--td2-gold);
}

/* ─── License & Download ─── */
.td2-license {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 600px) {
  .td2-license { grid-template-columns: 1fr; }
}

.td2-license__free {
  padding: 2rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--td2-border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
}
.td2-license__free-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--td2-accent);
  margin-bottom: 1rem;
}
.td2-license__free-badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--td2-accent);
  border-radius: 50%;
}
.td2-license__free-text {
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--td2-text-dim);
  margin: 0 0 1.5rem;
  flex: 1;
}

/* Credit Copy */
.td2-credit-copy {
  margin: 0.8rem 0 1.2rem;
}
.td2-credit-copy__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.td2-credit-copy__label {
  font-size: 0.68rem;
  color: var(--td2-text-dim);
  letter-spacing: 0.02em;
  min-width: 0;
}
.td2-credit-copy__tabs {
  display: flex;
  gap: 0;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 3px;
  border: 1px solid rgba(255,255,255,0.08);
}
.td2-credit-copy__tab {
  padding: 0.35rem 0.9rem;
  font-size: 0.72rem;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  color: var(--td2-text-dim);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
}
.td2-credit-copy__tab:hover {
  color: var(--td2-text);
  background: rgba(255,255,255,0.05);
}
.td2-credit-copy__tab.active {
  background: rgba(122,184,122,0.2);
  color: var(--td2-accent);
  font-weight: 500;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.td2-credit-copy__box {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--td2-border);
  border-radius: 8px;
  overflow: hidden;
}
.td2-credit-copy__text {
  flex: 1;
  padding: 0.6rem 0.9rem;
  font-size: 0.78rem;
  font-family: 'Noto Sans JP', sans-serif;
  color: rgba(255,255,255,0.7);
  background: transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  user-select: all;
  line-height: 1.4;
}
.td2-credit-copy__btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.9rem;
  background: rgba(122,184,122,0.08);
  border: none;
  border-left: 1px solid var(--td2-border);
  color: var(--td2-accent);
  font-size: 0.72rem;
  font-family: 'Noto Sans JP', sans-serif;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.td2-credit-copy__btn:hover {
  background: rgba(122,184,122,0.18);
}
.td2-credit-copy__btn.copied {
  background: rgba(122,184,122,0.25);
  color: #a0e8a0;
}

.td2-download {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  background: linear-gradient(135deg, rgba(122,184,122,0.12), rgba(122,184,122,0.06));
  border: 1px solid rgba(122,184,122,0.35);
  border-radius: 12px;
  color: var(--td2-accent);
  font-size: 0.88rem;
  text-decoration: none;
  transition: all 0.25s;
  font-family: 'Noto Sans JP', sans-serif;
  align-self: flex-start;
}
.td2-download:hover {
  background: rgba(122,184,122,0.2);
  box-shadow: 0 4px 20px rgba(122,184,122,0.15);
  transform: translateY(-1px);
}
.td2-download svg { width: 16px; height: 16px; }

.td2-license__commercial {
  padding: 2rem;
  background: rgba(200,169,110,0.04);
  border: 1px solid rgba(200,169,110,0.18);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
}
.td2-license__commercial-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--td2-gold);
  margin-bottom: 1rem;
}
.td2-license__commercial-badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--td2-gold);
  border-radius: 50%;
}
.td2-license__price {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin-bottom: 0.8rem;
}
.td2-license__price-amount {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--td2-gold);
  letter-spacing: 0.02em;
}
.td2-license__price-unit {
  font-size: 0.75rem;
  color: var(--td2-text-dim);
}
.td2-license__plans {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
  flex: 1;
  border: 1px solid rgba(200,169,110,0.15);
  border-radius: 10px;
  overflow: hidden;
}
.td2-license__plan {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  flex: 1;
  background: rgba(200,169,110,0.04);
}
.td2-license__plan:hover {
  background: rgba(200,169,110,0.09);
}
.td2-license__plan-divider {
  height: 1px;
  background: rgba(200,169,110,0.12);
}
.td2-license__plan-name {
  font-size: 0.82rem;
  color: var(--td2-text-dim);
  font-family: 'Noto Sans JP', sans-serif;
}
.td2-license__plan-price {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--td2-gold);
  letter-spacing: 0.02em;
}
.td2-license__commercial-text {
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--td2-text-dim);
  margin: 0 0 1.5rem;
  flex: 1;
}

.td2-license-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  background: linear-gradient(135deg, rgba(200,169,110,0.12), rgba(200,169,110,0.06));
  border: 1px solid rgba(200,169,110,0.35);
  border-radius: 12px;
  color: var(--td2-gold);
  font-size: 0.88rem;
  text-decoration: none;
  transition: all 0.25s;
  font-family: 'Noto Sans JP', sans-serif;
  align-self: flex-start;
}
.td2-license-btn:hover {
  background: rgba(200,169,110,0.2);
  box-shadow: 0 4px 20px rgba(200,169,110,0.15);
  transform: translateY(-1px);
}
.td2-license-btn svg { width: 15px; height: 15px; }

/* YouTube linkware badge */
.td2-yt-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--td2-gold);
  margin-bottom: 0.6rem;
  padding: 0.3rem 0.8rem;
  background: rgba(200, 169, 110, 0.08);
  border: 1px solid rgba(200, 169, 110, 0.2);
  border-radius: 6px;
}
.td2-yt-badge::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 11px;
  background: #ff2020;
  border-radius: 3px;
  flex-shrink: 0;
}

/* ─── Related Tracks ─── */
.td2-related {
  margin-top: 1rem;
}

.td2-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
@media (max-width: 720px) {
  .td2-related__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .td2-related__grid { grid-template-columns: 1fr; gap: 1rem; }
}

.td2-related-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: var(--td2-text);
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: flex-end;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s;
  cursor: pointer;
}
.td2-related-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow:
    0 20px 50px rgba(0,0,0,0.6),
    0 0 0 1px rgba(122,184,122,0.2);
}
.td2-related-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), filter 0.4s;
  filter: brightness(0.85) saturate(1.1);
}
.td2-related-card:hover .td2-related-card__bg {
  transform: scale(1.12);
  filter: brightness(1.0) saturate(1.2);
}
.td2-related-card__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.4) 45%, rgba(0,0,0,0.08) 100%);
  transition: background 0.4s;
}
.td2-related-card:hover .td2-related-card__overlay {
  background:
    linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 45%, rgba(0,0,0,0.0) 100%);
}

/* Play icon reveal on hover */
.td2-related-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(122, 184, 122, 0.2);
  border: 1.5px solid rgba(122, 184, 122, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  backdrop-filter: blur(8px);
  z-index: 2;
}
.td2-related-card:hover .td2-related-card__play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.td2-related-card__play svg {
  width: 18px;
  height: 18px;
  color: var(--td2-accent);
  margin-left: 2px;
}

.td2-related-card__body {
  position: relative;
  z-index: 1;
  padding: 1.2rem 1.3rem;
  width: 100%;
}
.td2-related-card__id {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: var(--td2-gold);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  opacity: 0.7;
}
.td2-related-card__title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.95);
  line-height: 1.35;
  margin-bottom: 0.15rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
.td2-related-card__desc {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  font-family: 'Noto Sans JP', sans-serif;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.td2-related-card__tags {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.3rem;
}
.td2-related-card__tag {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
  padding: 0.15rem 0.6rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
}

/* ─── Back Link ─── */
.td2-back {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--td2-border);
}
.td2-back a {
  font-size: 0.82rem;
  color: var(--td2-text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.td2-back a:hover { color: var(--td2-accent); }

/* ─── Footer ─── */
.td2-footer {
  margin-top: 4rem;
  padding: 3rem 2rem;
  background: var(--td2-bg);
  border-top: 1px solid var(--td2-border);
  text-align: center;
}
.td2-footer__logo {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.3);
  margin-bottom: 0.5rem;
}
.td2-footer__tagline {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.2);
  font-family: 'Noto Serif JP', serif;
  margin-bottom: 1rem;
}
.td2-footer__nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.td2-footer__nav a {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.2s;
}
.td2-footer__nav a:hover { color: var(--td2-accent); }
.td2-footer__copy {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.15);
}

/* ─── Fade-in Animations ─── */
.td2-fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}
.td2-fade-in--d1 { animation-delay: 0.1s; }
.td2-fade-in--d2 { animation-delay: 0.3s; }
.td2-fade-in--d3 { animation-delay: 0.5s; }
.td2-fade-in--d4 { animation-delay: 0.7s; }

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}
