:root {
  --bg: #05050a;
  --text: #f5f5ff;
  --bar-bg: #0f0f10;
  --muted: #b3b3b3;
  --accent: #8338ec;
  --control-color: #ccccff;
  --control-active: #ffffff;
  --progress-bg: rgba(255,255,255,0.12);
  --playlist-bg: rgba(5,5,15,0.96);
  --playlist-border: rgba(131,56,236,0.35);
  --playlist-hover: rgba(131,56,236,0.18);
  --playlist-active: rgba(131,56,236,0.32);
}

body.m-ai-page.dark-mode {
  --bg: #05050a;
  --text: #f5f5ff;
  --bar-bg: #05050a;
  --muted: #b3b3b3;
  --control-color: #e0ddff;
  --control-active: #ffffff;
  --progress-bg: rgba(255,255,255,0.16);
  --playlist-bg: rgba(3,3,10,0.98);
  --playlist-border: rgba(193,120,255,0.75);
  --playlist-hover: rgba(131,56,236,0.28);
  --playlist-active: rgba(193,120,255,0.38);
}

html,
body {
  height: 100%;
}

body.m-ai-page {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text);
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  background: radial-gradient(circle at 0% 0%, rgba(131,56,236,0.35) 0, transparent 55%),
              radial-gradient(circle at 100% 100%, rgba(193,120,255,0.25) 0, transparent 55%),
              linear-gradient(135deg, #05050a 0%, #0a0218 40%, #05050a 100%) !important;
  background-attachment: fixed;
}

body.m-ai-page::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(circle at 0% 0%, rgba(131,56,236,0.55), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(255,0,255,0.32), transparent 55%),
    radial-gradient(circle at 50% 120%, rgba(193,120,255,0.25), transparent 55%);
  animation: bgDrift 32s ease-in-out infinite alternate;
  filter: saturate(1.25);
  pointer-events: none;
}

body.m-ai-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.09) 0px,
      rgba(255,255,255,0.09) 1px,
      transparent 1px,
      transparent 4px
    ),
    radial-gradient(circle at 10% 20%, rgba(255,255,255,0.25) 0, transparent 45%),
    radial-gradient(circle at 80% 60%, rgba(255,255,255,0.18) 0, transparent 50%);
  mix-blend-mode: soft-light;
  opacity: 0.14;
  pointer-events: none;
  animation:
    starsPulse 14s ease-in-out infinite alternate,
    glitchShift 2.4s steps(2, end) infinite;
}

h2,
h3,
h4 {
  margin: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

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

main {
  padding-bottom: 90px;
  background: transparent;
}

.m-ai-page header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(12, 12, 20, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(131,56,236,0.45);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.m-ai-page body.dark-mode header,
body.m-ai-page.dark-mode header {
  background: rgba(5, 5, 12, 0.98);
}

.logo img {
  height: 50px;
  object-fit: contain;
}

.header-right {
  display: flex;
  align-items: center;
}

nav {
  display: flex;
  align-items: center;
}

nav a {
  position: relative;
  margin-left: 20px;
  font-size: 14px;
  padding-bottom: 4px;
  color: #f5f5f5;
  text-shadow: 0 0 4px rgba(131,56,236,0.7);
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: 0;
  background-color: #f5f5f5;
  transition: width 0.3s ease;
}

nav a:hover {
  color: #e2d4ff;
  text-shadow:
    0 0 8px rgba(131,56,236,1),
    0 0 16px rgba(255,0,255,0.7);
}

nav a:hover::after {
  width: 100%;
}

.switch-container {
  margin-left: 30px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
  background-color: #ccc;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.switch::before {
  content: "\f186";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 11px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  top: 50%;
  transform: translateY(-48%);
  background-color: #2c3e50;
  border-radius: 50%;
  transition: transform 0.3s ease, content 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

input[type="checkbox"] {
  display: none;
}

input[type="checkbox"]:checked + .switch {
  background-color: #666;
}

input[type="checkbox"]:checked + .switch::before {
  content: "\f185";
  color: #f1c40f;
  background-color: #111;
  transform: translate(20px, -48%);
}

.artist-list {
  padding: 40px 20px;
  animation: sectionRise 0.9s ease-out forwards;
  animation-delay: 0.1s;
}

.artists {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.artist-card {
  border: 2px solid #8338ec;
  border-radius: 20px;
  padding: 16px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at top, rgba(131,56,236,0.25), rgba(0,0,0,0.95));
  box-shadow:
    0 0 15px rgba(131,56,236,0.7),
    0 0 45px rgba(0,255,255,0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: floatCard 12s ease-in-out infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.artist-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    linear-gradient(120deg, transparent 0%, rgba(131,56,236,0.18) 40%, transparent 70%),
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,0.04) 0,
      rgba(255,255,255,0.04) 1px,
      transparent 1px,
      transparent 5px
    );
  opacity: 0.4;
  mix-blend-mode: screen;
  pointer-events: none;
}

.artist-card > * {
  position: relative;
  z-index: 1;
}

.artist-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow:
    0 0 24px rgba(131,56,236,0.9),
    0 0 60px rgba(0,255,255,0.45);
  border-color: rgba(193,120,255,1);
}

.artist-btn {
  border-radius: 50%;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.artist-btn img {
  border-radius: 50%;
  width: 120px;
  height: 120px;
  object-fit: cover;
}

.artist-name {
  margin-top: 12px;
  font-weight: bold;
  font-size: 18px;
}

.bio-section {
  max-width: 1000px;
  margin: 0 auto 80px;
  padding: 32px 24px 40px;
  text-align: left;
  line-height: 1.7;
  border-radius: 24px;
  background: radial-gradient(circle at top left, rgba(131,56,236,0.35), rgba(5,5,10,0.98));
  box-shadow:
    0 0 25px rgba(131,56,236,0.55),
    0 0 70px rgba(0,255,255,0.22);
  border: 1px solid rgba(131,56,236,0.7);
  position: relative;
  overflow: hidden;
  animation: sectionRise 0.9s ease-out forwards;
  animation-delay: 0.25s;
}

.bio-section::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.04) 0,
      rgba(255,255,255,0.04) 1px,
      transparent 1px,
      transparent 12px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.04) 0,
      rgba(255,255,255,0.04) 1px,
      transparent 1px,
      transparent 12px
    );
  opacity: 0.25;
  pointer-events: none;
}

.bio-section > * {
  position: relative;
  z-index: 1;
}

.bio-section h2 {
  font-size: 30px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.glitch-title {
  font-size: 32px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  position: relative;
  text-shadow:
    0 0 8px rgba(131,56,236,0.9),
    0 0 16px rgba(0,255,255,0.7),
    0 0 32px rgba(131,56,236,1);
}

.glitch-sub {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: rgba(200,200,255,0.8);
}

.bio-tagline {
  margin-top: 8px;
  margin-bottom: 18px;
  font-size: 15px;
  color: rgba(240,240,255,0.9);
}

.bio-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.bio-pills .pill {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(131,56,236,0.7);
  background: rgba(10,10,30,0.9);
  color: rgba(230,230,255,0.95);
  box-shadow: 0 0 10px rgba(131,56,236,0.35);
  backdrop-filter: blur(6px);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 16px;
}

.feature-card {
  padding: 14px 14px 16px;
  border-radius: 16px;
  background: radial-gradient(circle at top, rgba(0,255,255,0.09), rgba(8,8,20,0.98));
  border: 1px solid rgba(0,255,255,0.28);
  box-shadow: 0 0 18px rgba(0,255,255,0.18);
  font-size: 14px;
  color: rgba(225,225,255,0.9);
}

.feature-card h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 8px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-card h3 i {
  font-size: 14px;
}

.feature-card p {
  margin: 0;
  font-size: 13px;
}

.bio-footnote {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(200,200,255,0.8);
}

.youtube-section,
.mp3-library-section {
  position: relative;
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 24px 20px 28px;
  border-radius: 24px;
  background: rgba(8,8,20,0.92);
  box-shadow: 0 0 22px rgba(0,0,0,0.7);
  border: 1px solid rgba(131,56,236,0.35);
  text-align: center;
  animation: sectionRise 0.9s ease-out forwards;
}

.youtube-section {
  animation-delay: 0.35s;
}

.mp3-library-section {
  animation-delay: 0.45s;
}

.youtube-section h3,
.mp3-library-section h3 {
  font-size: 26px;
  margin-bottom: 16px;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(131,56,236,0.8);
}

.youtube-section p,
.mp3-library-section p {
  margin-bottom: 30px;
  line-height: 1.5;
}

.youtube-section iframe {
  width: 100%;
  max-width: 900px;
  height: 480px;
  border: none;
  border-radius: 12px;
}

.subscribe-btn {
  position: relative;
  overflow: hidden;
  font-size: 16px;
  padding: 10px 20px;
  border-radius: 8px;
  display: inline-block;
  background: linear-gradient(120deg, #8338ec, #ff00ff);
  color: #fff;
  box-shadow:
    0 0 14px rgba(131,56,236,0.8),
    0 0 30px rgba(255,0,255,0.6);
  transition: transform 0.2s ease;
}

.subscribe-btn:hover {
  transform: translateY(-1px) scale(1.02);
}

.subscribe-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,0.2) 45%,
    rgba(255,255,255,0.45) 50%,
    rgba(255,255,255,0.2) 55%,
    transparent 100%
  );
  opacity: 0;
  transform: translateX(-100%);
  pointer-events: none;
}

.subscribe-btn:hover::after {
  opacity: 1;
  animation: btnShine 0.9s ease-out;
}

.m-ai-status-bar {
  position: relative;
  margin: 0 auto 22px;
  padding: 10px 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(15, 6, 40, 0.98), rgba(40, 10, 90, 0.98)),
    radial-gradient(circle at 0% 0%, rgba(131,56,236,0.55), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(255,0,255,0.3), transparent 55%);
  border: 1px solid rgba(193, 120, 255, 0.8);
  box-shadow:
    0 0 18px rgba(131,56,236,0.7),
    0 0 38px rgba(255,0,255,0.35);
}

.m-ai-status-bar::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 20% 0%, rgba(255,0,255,0.18), transparent 55%);
  opacity: 0.6;
  mix-blend-mode: screen;
  animation: statusGlow 6s ease-in-out infinite alternate;
  pointer-events: none;
}

.m-ai-status-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.06) 0,
      rgba(255,255,255,0.06) 1px,
      transparent 1px,
      transparent 6px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.04) 0,
      rgba(255,255,255,0.04) 1px,
      transparent 1px,
      transparent 6px
    );
  opacity: 0.18;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.status-left,
.status-right {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.status-left {
  flex: 0 0 auto;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #fef5ff;
}

.status-label {
  opacity: 0.8;
}

.status-state {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 170, 0.9);
  background: rgba(7, 33, 26, 0.9);
  color: #9cffea;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(0, 255, 170, 0.6);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #00ff95;
  box-shadow:
    0 0 6px rgba(0,255,149,0.9),
    0 0 14px rgba(0,255,149,0.7);
  animation: statusDotBlink 1.3s ease-in-out infinite;
}

.status-right {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.status-pill {
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(204, 153, 255, 0.85);
  background: radial-gradient(circle at 0 0, rgba(255,255,255,0.12), rgba(30,10,70,0.95));
  color: #f7e9ff;
  white-space: nowrap;
  box-shadow: 0 0 12px rgba(131,56,236,0.7);
}

.status-pill strong {
  font-weight: 700;
  color: #ffe8ff;
}

.status-scan {
  position: absolute;
  inset: -40%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255,255,255,0.09) 45%,
    rgba(255,255,255,0.22) 50%,
    rgba(255,255,255,0.09) 55%,
    transparent 100%
  );
  opacity: 0;
  mix-blend-mode: screen;
  animation: statusScan 7s linear infinite;
  pointer-events: none;
}

.playlist-container {
  margin-top: 32px;
  background: linear-gradient(135deg, rgba(5,5,15,0.96), rgba(12,4,30,0.98));
  border-radius: 18px;
  border: 1px solid rgba(131,56,236,0.4);
  box-shadow:
    0 0 20px rgba(131,56,236,0.5),
    0 0 45px rgba(193,120,255,0.4);
  overflow: hidden;
}

.playlist-header {
  display: grid;
  grid-template-columns: 60px 2fr 1fr 80px;
  gap: 20px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--playlist-border);
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.playlist {
  max-height: 400px;
  overflow-y: auto;
}

.playlist-item {
  display: grid;
  grid-template-columns: 60px 2fr 1fr 80px;
  gap: 20px;
  padding: 12px 24px;
  align-items: center;
  cursor: pointer;
  border-bottom: 1px solid var(--playlist-border);
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.playlist-item:hover {
  background-color: var(--playlist-hover);
  transform: translateX(3px);
  box-shadow: 0 0 10px rgba(131,56,236,0.4);
}

.playlist-item.active {
  background-image: linear-gradient(
    120deg,
    rgba(131,56,236,0.3),
    rgba(255,0,255,0.22),
    rgba(0,255,255,0.25)
  );
  animation: activeTrackPulse 3.2s ease-in-out infinite;
}

.track-number {
  color: var(--muted);
  text-align: center;
}

.playlist-item.active .track-number {
  color: var(--accent);
}

.track-info-small {
  display: flex;
  align-items: center;
  gap: 12px;
}

.track-info-small img {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.track-info-small > div {
  min-width: 0;
  flex: 1;
}

.track-info-small .track-title {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-info-small .track-artist {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-item:hover .track-info-small img {
  transform: scale(1.06);
  box-shadow:
    0 0 10px rgba(131,56,236,0.7),
    0 0 20px rgba(0,255,255,0.4);
}

.track-album,
.track-duration {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-album {
  text-align: left;
}

.track-duration {
  text-align: center;
}

.simple-player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 20px;
  min-height: 72px;
  box-sizing: border-box;
  background:
    radial-gradient(circle at top, rgba(131,56,236,0.35), rgba(10,5,25,0.98));
  border-top: 1px solid rgba(193,120,255,0.65);
  box-shadow:
    0 -4px 20px rgba(0,0,0,0.8),
    0 0 30px rgba(131,56,236,0.8);
  backdrop-filter: blur(18px);
}

.player-track-info {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 280px;
  flex-shrink: 0;
}

.player-track-info img {
  width: 56px;
  height: 56px;
  border-radius: 4px;
  object-fit: cover;
}

.player-track-details {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.player-track-title {
  font-weight: 600;
  font-size: 14px;
  color: #f8f5ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-track-artist {
  font-size: 12px;
  color: rgba(210,210,255,0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-main-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 500px;
}

.player-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.player-btn {
  background: none;
  border: none;
  color: var(--control-color);
  cursor: pointer;
  font-size: 16px;
  padding: 8px;
  transition: color 0.2s ease;
  position: relative;
}

.player-btn:hover,
.player-btn.active {
  color: var(--accent);
}

.player-play-btn {
  background: linear-gradient(135deg, #fefbff, #f4ddff);
  color: #210b3c;
  border: 2px solid var(--accent);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow:
    0 0 12px rgba(131,56,236,0.8),
    0 0 20px rgba(193,120,255,0.8);
}

.player-play-btn:hover {
  transform: scale(1.1);
}

.player-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 400px;
}

.player-time {
  color: var(--muted);
  font-size: 12px;
  width: 40px;
  text-align: center;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.player-progress-bar {
  position: relative;
  height: 20px;
  flex: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.player-progress-track {
  position: absolute;
  width: 100%;
  height: 4px;
  background: var(--progress-bg);
  border-radius: 2px;
  top: 50%;
  transform: translateY(-50%);
}

.player-progress-fill {
  position: absolute;
  height: 4px;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
  top: 50%;
  transform: translateY(-50%);
  transition: width 0.1s ease;
}

.player-progress-thumb {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--control-active);
  border-radius: 50%;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s ease, left 0.1s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.player-progress-bar:hover .player-progress-thumb {
  opacity: 1;
}

.player-volume {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 160px;
  justify-content: flex-end;
  flex-shrink: 0;
  height: 40px;
}

.player-volume-slider {
  display: flex;
  align-items: center;
  height: 100%;
}

.player-volume-slider input[type="range"] {
  width: 100px;
  height: 4px;
  border-radius: 2px;
  background: var(--progress-bg);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  margin: 0;
}

.player-volume-slider input[type="range"]::-webkit-slider-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--control-active);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid var(--accent);
  transition: all 0.2s ease;
}

.player-volume-slider input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.player-volume-slider input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--control-active);
  cursor: pointer;
  border: 2px solid var(--accent);
}

.player-volume-slider input[type="range"]::-moz-range-track {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--progress-bg);
  border: none;
}

.repeat-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  width: 12px;
  height: 12px;
  font-size: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

#playerRepeat {
  position: relative;
}

footer {
  padding: 20px;
  text-align: center;
  background: rgba(8, 8, 16, 0.95);
  border-top: 1px solid rgba(131,56,236,0.35);
}

body.m-ai-page.dark-mode footer {
  background: rgba(3, 3, 8, 0.98);
}

.socials {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.socials a {
  color: var(--muted);
  font-size: 20px;
  text-shadow: 0 0 6px rgba(131,56,236,0.8);
  transition: transform 0.2s ease, text-shadow 0.2s ease, color 0.2s ease;
}

.socials a:hover {
  transform: translateY(-2px) scale(1.1);
  color: var(--accent);
  text-shadow:
    0 0 10px rgba(131,56,236,1),
    0 0 22px rgba(255,0,255,0.9);
}

main section {
  opacity: 0;
  transform: translateY(16px);
  animation: sectionRise 0.9s ease-out forwards;
}

.artist-list {
  animation-delay: 0.1s;
}

.bio-section {
  animation-delay: 0.25s;
}

.youtube-section {
  animation-delay: 0.35s;
}

.mp3-library-section {
  animation-delay: 0.45s;
}

@keyframes bgDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    filter: hue-rotate(0deg);
  }
  40% {
    transform: translate3d(-20px, 10px, 0) scale(1.03);
    filter: hue-rotate(12deg);
  }
  100% {
    transform: translate3d(20px, -10px, 0) scale(1.06);
    filter: hue-rotate(-10deg);
  }
}

@keyframes starsPulse {
  0% {
    opacity: 0.07;
  }
  50% {
    opacity: 0.16;
  }
  100% {
    opacity: 0.10;
  }
}

@keyframes glitchShift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(1px, -1px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes sectionRise {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.99);
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes floatCard {
  0% {
    transform: translateY(0);
    box-shadow:
      0 0 10px rgba(131,56,236,0.7),
      0 0 20px rgba(0,255,255,0.18);
  }
  50% {
    transform: translateY(-8px);
    box-shadow:
      0 0 18px rgba(131,56,236,0.9),
      0 0 40px rgba(0,255,255,0.35);
  }
  100% {
    transform: translateY(0);
    box-shadow:
      0 0 10px rgba(131,56,236,0.7),
      0 0 20px rgba(0,255,255,0.18);
  }
}

@keyframes btnShine {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

@keyframes activeTrackPulse {
  0% {
    box-shadow: 0 0 0 rgba(131,56,236,0.0);
  }
  50% {
    box-shadow: 0 0 20px rgba(131,56,236,0.75);
  }
  100% {
    box-shadow: 0 0 0 rgba(131,56,236,0.0);
  }
}

@keyframes statusGlow {
  0% {
    opacity: 0.4;
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    opacity: 0.85;
    transform: translate3d(4px, -2px, 0) scale(1.08);
  }
  100% {
    opacity: 0.5;
    transform: translate3d(-3px, 2px, 0) scale(1.02);
  }
}

@keyframes statusDotBlink {
  0%, 25% {
    transform: scale(1);
    box-shadow:
      0 0 6px rgba(0,255,149,0.7),
      0 0 16px rgba(0,255,149,0.5);
  }
  50% {
    transform: scale(1.15);
    box-shadow:
      0 0 10px rgba(0,255,149,1),
      0 0 22px rgba(0,255,149,0.9);
  }
  100% {
    transform: scale(1);
    box-shadow:
      0 0 6px rgba(0,255,149,0.7),
      0 0 16px rgba(0,255,149,0.5);
  }
}

@keyframes statusScan {
  0% {
    opacity: 0;
    transform: translate3d(-40%, 0, 0);
  }
  10% {
    opacity: 0.55;
  }
  45% {
    opacity: 0.3;
  }
  70% {
    opacity: 0;
  }
  100% {
    opacity: 0;
    transform: translate3d(40%, 0, 0);
  }
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .player-track-info {
    width: 200px;
  }

  .player-volume {
    width: 120px;
  }

  .player-volume-slider input[type="range"] {
    width: 80px;
  }
}

@media (max-width: 768px) {
  .youtube-section iframe {
    height: 300px;
  }

  .bio-section h2 {
    font-size: 22px;
  }

  .header-right {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  nav a {
    margin: 10px 0;
    font-size: 16px;
  }

  .switch-container {
    margin-left: 0;
    margin-top: 10px;
  }

  .playlist-header,
  .playlist-item {
    grid-template-columns: 40px 1fr 60px;
    gap: 12px;
    padding: 12px 16px;
  }

  .track-album {
    display: none;
  }
}

@media (max-width: 720px) {
  .m-ai-status-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 14px;
    gap: 6px;
  }

  .status-right {
    justify-content: flex-start;
    margin-left: 0;
  }
}

@media (max-width: 650px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .bio-section {
    padding: 24px 16px 28px;
  }

  .simple-player {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px;
    min-height: 100px;
  }

  .player-track-info {
    display: none;
  }

  .player-volume {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .player-main-controls {
    order: 2;
    width: 100%;
    max-width: none;
  }

  .player-progress {
    max-width: none;
  }

  main {
    padding-bottom: 120px;
  }
}