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

:root {
  --bg: #0a0a0b;
  --bg-card: #141416;
  --bg-hover: #1c1c20;
  --text: #e4e4e7;
  --text-muted: #8a8a95;
  --accent: #8b5cf6;
  --accent-hover: #a78bfa;
  --border: #27272a;
  --radius: 12px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

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

img {
  max-width: 100%;
  display: block;
}

/* ===== Layout ===== */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Navigation ===== */
.nav-links {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin-top: 20px;
}

.nav-links a {
  color: #ff00fc;
  font-size: 1.75rem;
  font-weight: 500;
  transition: color 0.2s;
  display: inline-block;
  animation: nav-glitch 7s infinite;
}

.nav-links a:nth-child(1) { animation-duration: 7s; animation-delay: -0.5s; }
.nav-links a:nth-child(2) { animation-duration: 5.7s; animation-delay: -3.2s; }
.nav-links a:nth-child(3) { animation-duration: 8.3s; animation-delay: -1.8s; }
.nav-links a:nth-child(4) { animation-duration: 6.1s; animation-delay: -4.6s; }

.nav-links a:hover,
.nav-links a.active {
  color: #00eaff;
  text-shadow: 0 0 8px rgba(0, 234, 255, 0.5);
}

@keyframes nav-glitch {
  0%, 90% { text-shadow: none; transform: translate(0); }
  91% { text-shadow: -2px 0 #00eaff, 2px 0 #ff00fc; transform: translate(2px, 0); }
  92% { text-shadow: 3px 0 #00eaff, -3px 0 #ff00fc; transform: translate(-3px, 1px); }
  93% { text-shadow: -1px 0 #00eaff, 1px 0 #ff00fc; transform: translate(1px, -1px); }
  94% { text-shadow: none; transform: translate(0); }
  100% { text-shadow: none; transform: translate(0); }
}

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 80px 0 40px;
}

.hero-logo {
  max-width: 333px;
  margin: 0 auto;
}


/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
}

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

.btn-outline:hover {
  background: var(--bg-hover);
  color: var(--text);
  border-color: var(--text-muted);
}

/* ===== Section ===== */
section {
  padding: 60px 0;
}

section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  text-align: center;
}

/* ===== Glitch Effect ===== */
.glitch {
  position: relative;
  display: block;
  text-align: center;
  color: #ff00fc;
  font-family: var(--font);
  font-weight: 500;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.glitch::before {
  color: #00eaff;
  clip-path: inset(50% 0 50% 0);
  animation: glitch-before 6.7s infinite linear;
}

.glitch::after {
  color: #00eaff;
  clip-path: inset(50% 0 50% 0);
  animation: glitch-after 5.3s infinite linear;
}

@keyframes glitch-before {
  0%, 90% { clip-path: inset(50% 0 50% 0); transform: translate(0); text-shadow: none; }
  91% { clip-path: inset(15% 0 60% 0); transform: translate(-5px, 2px); text-shadow: 2px 0 #ff00fc; }
  92% { clip-path: inset(70% 0 5% 0); transform: translate(6px, -2px); text-shadow: -2px 0 #ff00fc; }
  93% { clip-path: inset(30% 0 40% 0); transform: translate(-4px, 1px); text-shadow: 3px 0 #ff00fc; }
  94%, 100% { clip-path: inset(50% 0 50% 0); transform: translate(0); text-shadow: none; }
}

@keyframes glitch-after {
  0%, 88% { clip-path: inset(50% 0 50% 0); transform: translate(0); text-shadow: none; }
  89% { clip-path: inset(55% 0 15% 0); transform: translate(6px, 2px); text-shadow: -2px 0 #ff00fc; }
  90% { clip-path: inset(5% 0 65% 0); transform: translate(-5px, -2px); text-shadow: 3px 0 #ff00fc; }
  91% { clip-path: inset(40% 0 30% 0); transform: translate(4px, 1px); text-shadow: -3px 0 #ff00fc; }
  92%, 100% { clip-path: inset(50% 0 50% 0); transform: translate(0); text-shadow: none; }
}

/* ===== Music Grid ===== */
.music-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.music-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.music-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.music-card .artwork {
  aspect-ratio: 1;
  background: var(--bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--text-muted);
}

.music-card .artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.music-card .info {
  padding: 16px;
}

.music-card .info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.music-card .info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== Playlists ===== */
#music .container {
  max-width: 1400px;
}

.playlist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.playlist-embed {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 4px;
}

.playlist-embed iframe {
  border-radius: 8px;
}

/* ===== EPK ===== */
.epk .container {
  max-width: 700px;
}

.epk-section {
  margin-bottom: 40px;
}

.epk-section h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.epk-section p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.epk-section img {
  border-radius: var(--radius);
  margin-top: 12px;
}

/* ===== Links Page ===== */
.links-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 60px 24px;
  text-align: center;
}

.links-page .profile {
  margin-bottom: 32px;
}

.links-page .profile .avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.links-page .profile h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.links-page .profile p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.links-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 500;
  transition: all 0.2s;
}

.link-item:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-2px);
}

.link-item .link-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}

.link-item .link-label {
  flex: 1;
  text-align: left;
}

.links-footer {
  margin-top: 40px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

/* ===== Footer ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .playlist-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-logo {
    max-width: 220px;
  }

  section {
    padding: 40px 0;
  }

  section h2 {
    font-size: 1.4rem;
  }

  .links-page {
    padding: 30px 24px;
  }

  .epk .container {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .nav-links {
    gap: 20px;
  }

  .nav-links a {
    font-size: 1.3rem;
  }

  .hero-logo {
    max-width: 180px;
  }

  .hero {
    padding: 0 0 24px;
  }

  section h2 {
    font-size: 1.2rem;
    margin-bottom: 20px;
  }

  .playlist-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .links-page {
    padding: 16px 16px;
  }

  .link-item {
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  .epk-section h3 {
    font-size: 1.05rem;
  }

  .epk-section p {
    font-size: 0.9rem;
  }

  .links-footer {
    margin-top: 24px;
  }
}
