/* ── Retro Gaming Pixel Fonts (artist pages) ── */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');

/* ── Artist page styles ── */

.artist-layout {
  height: 100%;
  display: flex;
}

/* ── Photo panel ── */
.artist-photo-panel {
  width: 50%;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  cursor: none;
}

.artist-photo-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: brightness(.7) saturate(.75);
  transition: filter .5s, transform .6s cubic-bezier(.25,.46,.45,.94);
}

.artist-photo-panel:hover img {
  filter: brightness(.55) saturate(.5);
}

/* Photo glitch effect on hover */
.artist-photo-panel::before,
.artist-photo-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  pointer-events: none;
  opacity: 0;
  z-index: 2;
}

.photo-glitch-r,
.photo-glitch-b {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
}
.photo-glitch-r { background: rgba(255,0,60,0.15); }
.photo-glitch-b { background: rgba(0,100,255,0.15); }

.artist-photo-panel:hover .photo-glitch-r {
  animation: photo-glitch-r 2s steps(3) infinite;
}
.artist-photo-panel:hover .photo-glitch-b {
  animation: photo-glitch-b 2s steps(3) infinite;
}

@keyframes photo-glitch-r {
  0%, 90%, 100% { opacity: 0; clip-path: inset(0); transform: translate(0); }
  92% { opacity: 1; clip-path: inset(15% 0 70% 0); transform: translate(-8px, 0); }
  95% { opacity: 1; clip-path: inset(55% 0 20% 0); transform: translate(8px, 2px); }
  97% { opacity: 1; clip-path: inset(30% 0 45% 0); transform: translate(-5px, -1px); }
}
@keyframes photo-glitch-b {
  0%, 85%, 100% { opacity: 0; clip-path: inset(0); transform: translate(0); }
  88% { opacity: 1; clip-path: inset(40% 0 35% 0); transform: translate(6px, 1px); }
  93% { opacity: 1; clip-path: inset(20% 0 60% 0); transform: translate(-6px, -2px); }
}

/* Scan line on photo hover */
.photo-scan {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.12) 3px,
    rgba(0,0,0,0.12) 4px
  );
  transition: opacity .4s;
}
.artist-photo-panel:hover .photo-scan { opacity: 1; }

/* Accent line that travels down the photo */
.photo-line {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  opacity: 0;
  z-index: 4;
  pointer-events: none;
}
.artist-photo-panel:hover .photo-line {
  opacity: .4;
  animation: photo-line-sweep 2.5s linear infinite;
}
@keyframes photo-line-sweep {
  from { top: -1px; opacity: .6; }
  80%  { opacity: .2; }
  to   { top: 100%; opacity: 0; }
}

/* Photo bottom gradient */
.photo-grad {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(5,5,5,.6) 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

/* Artist number watermark */
.photo-num {
  position: absolute;
  top: 28px;
  left: 28px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,.2);
  letter-spacing: .08em;
  z-index: 5;
}

/* ── Info panel ── */
.artist-info-panel {
  flex: 1;
  overflow-y: auto;
  padding: 48px 52px;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.artist-info-panel::-webkit-scrollbar { width: 3px; }
.artist-info-panel::-webkit-scrollbar-thumb { background: var(--border); }

.artist-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 52px;
  flex-shrink: 0;
}

.artist-back {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
  transition: color .2s;
  cursor: none;
}
.artist-back:hover { color: var(--white); }
.artist-back::before { content: '←'; color: var(--accent); }

.artist-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--dim);
  letter-spacing: .08em;
}
.artist-pagination a {
  color: var(--dim);
  text-decoration: none;
  transition: color .2s;
  cursor: none;
  padding: 4px 6px;
  border: 1px solid var(--border);
  border-radius: 2px;
}
.artist-pagination a:hover { color: var(--white); border-color: var(--dim); }
.artist-pagination .sep { color: var(--border); }

.artist-type-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}

.artist-name {
  font-family: 'Press Start 2P', monospace;
  font-weight: 400;
  font-size: clamp(18px, 2.5vw, 40px);
  line-height: 1.4;
  letter-spacing: .04em;
  margin-bottom: 36px;
  position: relative;
  text-shadow: 3px 3px 0 #006600, 0 0 20px rgba(57,255,20,0.25);
}

/* Name glitch on page glitch */
.artist-name::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  font-family: 'Press Start 2P', monospace;
  font-weight: 400;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: rgba(0,255,135,.5);
  opacity: 0;
  pointer-events: none;
}
body.glitching .artist-name::before {
  animation: name-glitch .18s steps(2) forwards;
}
@keyframes name-glitch {
  0%  { opacity: 1; clip-path: inset(20% 0 65% 0); transform: translate(-6px, 0); }
  50% { clip-path: inset(50% 0 25% 0); transform: translate(6px, 2px); }
  100%{ opacity: 0; clip-path: inset(0); transform: translate(0); }
}

.artist-divider {
  width: 48px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 28px;
}

.artist-bio {
  color: var(--dim2);
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 40px;
  flex-grow: 1;
}

.artist-genres {
  margin-bottom: 36px;
}
.artist-genres-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 12px;
  display: block;
}
.genres-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.artist-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.artist-links-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 4px;
  display: block;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .artist-layout { flex-direction: column; }
  .artist-photo-panel {
    width: 100%;
    height: 45vh;
    flex-shrink: 0;
  }
  .artist-info-panel { padding: 32px 24px; }
  .artist-nav-row { margin-bottom: 28px; }
}
@media (max-width: 640px) {
  .artist-name { font-size: clamp(14px, 5vw, 22px); }
}
