/* ========================================
   AnotherLine.Music - Styles
   ======================================== */

/* Токены вынесены в assets/design-tokens.css (единый источник). */

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

/* Top Navigation */
.top-nav {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-btn {
  padding: 0.5rem 1.2rem;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  color: var(--text-white);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.login-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--bg-dark);
}

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  font-family:
    'Manrope',
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: var(--bg-dark);
  color: var(--text-white);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Background Layers */
.parallax {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.85)),
    url('images/bg.webp') center/cover no-repeat;
  z-index: -3;
  will-change: transform;
  filter: blur(2px) saturate(1.03);
  transform: scale(1.05); /* Prevent blur edges from showing */
}

#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

/* Main Content */
.content {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
  padding: 3rem 1.5rem;
  text-align: center;
  position: relative;
  z-index: 10;
  pointer-events: none;
}

.content > * {
  pointer-events: auto;
}

/* ========================================
   Hero
   ======================================== */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem 0;
  animation: fadeIn 1s ease-out;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.hero-title-line {
  font-size: clamp(2.8rem, 10vw, 6rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-white);
  text-transform: uppercase;
  animation: fadeInUp 0.8s ease-out backwards;
}

.hero-title-line:nth-child(1) {
  animation-delay: 0.1s;
}
.hero-title-line:nth-child(2) {
  animation-delay: 0.25s;
}
.hero-title-line:nth-child(3) {
  animation-delay: 0.4s;
}

.hero-title-line.accent {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 30px rgba(0, 176, 185, 0.3));
  letter-spacing: 0.12em;
}

.hero-sub {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 500;
  color: var(--text-muted, #888);
  margin-top: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: fadeIn 1s ease-out 0.6s backwards;
  position: relative;
  z-index: 1;
}

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

/* Hero message */
.hero-message {
  width: min(720px, 100%);
  padding: 0 1rem;
  text-align: center;
  animation: fadeIn 1s ease-out 0.5s backwards;
}

.hero-copy {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  max-width: 640px;
  margin: 0 auto;
}

/* ========================================
   Stats Bar
   ======================================== */

.stats-bar {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.25rem 2rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(6px);
  animation: fadeIn 1s ease-out 0.7s backwards;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-num {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--text-white);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted, #888);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-divider {
  width: 1px;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 520px) {
  .stats-bar {
    gap: 1rem;
    padding: 1rem 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .stat-divider {
    display: none;
  }
  .stat-item {
    min-width: 80px;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Иконки (базовый размер) */
.icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Contact Buttons */
.contacts {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeIn 1s ease-out 0.9s backwards;
}

.contact {
  display: flex;
  gap: 0.625rem;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--primary);
  padding: 0.875rem 1.5rem;
  border-radius: var(--btn-radius);
  color: var(--text-white);
  text-decoration: none;
  font-weight: 500;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast),
    border-color var(--transition-fast);
  box-shadow: var(--btn-shadow);
}

.contact:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--btn-shadow-hover);
  background: rgba(0, 176, 185, 0.15);
  border-color: var(--primary-light);
}

.contact:active {
  transform: translateY(-1px) scale(0.98);
}

.contact .icon {
  width: 24px;
  height: 24px;
}

/* ========================================
   News & Releases Sections
   ======================================== */

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--text-white);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.news-section,
.releases-section,
.artists-section,
.continue-section,
.history-section {
  width: 100%;
  max-width: 1400px;
  margin: 3rem auto 0;
  padding: 0;
  animation: fadeIn 1s ease-out 1s backwards;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 0 0.5rem;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-white);
  background: linear-gradient(135deg, var(--primary), #00ffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  background: linear-gradient(135deg, rgba(0, 176, 185, 0.1), rgba(0, 255, 255, 0.1));
  border: 1px solid var(--primary);
  border-radius: var(--btn-radius);
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease,
    color 0.3s ease;
  box-shadow: var(--btn-shadow);
}

.section-link:hover {
  background: linear-gradient(135deg, var(--primary), #00ffff);
  color: var(--bg-dark);
  transform: translateY(-2px);
  box-shadow: var(--btn-shadow-hover);
}

.news-section.hidden,
.releases-section.hidden,
.artists-section.hidden,
.continue-section.hidden,
.history-section.hidden {
  display: none;
}

.news-scroll,
.releases-scroll,
.artists-scroll,
.history-scroll {
  display: flex;
  gap: var(--carousel-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-snap-stop: always;
  padding: 12px 8px 20px;
  scroll-padding: 8px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 176, 185, 0.6) transparent;
  mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.news-scroll::-webkit-scrollbar,
.releases-scroll::-webkit-scrollbar,
.artists-scroll::-webkit-scrollbar,
.history-scroll::-webkit-scrollbar {
  height: 6px;
}

.news-scroll::-webkit-scrollbar-track,
.releases-scroll::-webkit-scrollbar-track,
.artists-scroll::-webkit-scrollbar-track,
.history-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.news-scroll::-webkit-scrollbar-thumb,
.releases-scroll::-webkit-scrollbar-thumb,
.artists-scroll::-webkit-scrollbar-thumb,
.history-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 176, 185, 0.6);
  border-radius: 20px;
}

.news-card,
.release-card,
.artist-card {
  flex: 0 0 var(--carousel-card);
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  background: var(--card, rgba(10, 14, 20, 0.72));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: 18px;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  text-decoration: none;
  color: var(--text-white);
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.news-card:hover,
.release-card:hover,
.artist-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 14px 32px rgba(0, 176, 185, 0.18);
}

/* Лёгкий zoom обложки при наведении */
.news-card:hover .al-cover-img,
.release-card:hover .al-cover-img,
.artist-card:hover .al-cover-img {
  transform: scale(1.05);
}

.news-card-image,
.release-card-cover,
.artist-card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
}

/* Обёртка обложки: плейсхолдер снизу, картинка поверх; при ошибке загрузки
   img удаляется и остаётся аккуратный placeholder без «мигания». */
.al-cover-wrap {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 50% 45%, rgba(0, 176, 185, 0.12), transparent 65%),
    var(--bg-surface, #101010);
}

.al-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
  transition: transform 0.4s ease;
}

.al-cover-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('/assets/icons/disc.svg') center / 34% no-repeat;
}

.al-cover-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 176, 185, 0.08));
}

.news-card-content,
.release-card-content,
.artist-card-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-card-title,
.release-card-title,
.artist-card-name {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-white);
}

.release-card-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.release-card-date svg {
  width: 14px;
  height: 14px;
}

.release-card-artists {
  font-size: 0.85rem;
  opacity: 0.8;
  color: var(--primary);
  margin-bottom: 8px;
}

.release-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: auto;
  padding: 0.65rem 1.2rem;
  background: var(--primary);
  color: #04141a;
  border-radius: var(--btn-radius);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    filter 0.25s ease,
    transform 0.25s ease;
}

.release-card-link:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.artist-card-bio {
  font-size: 0.85rem;
  opacity: 0.78;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
  line-height: 1.4;
}

.artist-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  align-self: flex-start;
  padding: 0.45rem 1.05rem;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}

.artist-card:hover .artist-card-btn {
  background: var(--primary);
  color: #04141a;
}

.news-card-excerpt {
  font-size: 0.9rem;
  opacity: 0.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.news-card-date {
  font-size: 0.72rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Footer */
.footer {
  opacity: 0.5;
  font-size: 0.75rem;
  animation: fadeIn 1s ease-out 1.2s backwards;
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet */
@media (max-width: 768px) {
  :root {
    --carousel-gap: 16px;
    --carousel-card: 270px;
  }

  .content {
    gap: 1.5rem;
    padding: 2rem 1rem;
    justify-content: flex-start;
    padding-top: 4rem;
    min-height: 100vh;
    height: auto;
  }

  .hero-message {
    padding: 0;
  }

  .hero-copy {
    max-width: 100%;
  }

  .contacts {
    gap: 0.75rem;
    flex-direction: column;
    align-items: center;
  }

  .contact {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

/* Mobile */
@media (max-width: 480px) {
  :root {
    --carousel-gap: 14px;
    --carousel-card: 240px;
  }

  .content {
    padding: 1.5rem 1rem;
    padding-top: 3.5rem;
    gap: 1.25rem;
  }

  .hero-message {
    padding: 0;
  }

  .contact {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    width: calc(100% - 1rem);
    max-width: none;
    justify-content: center;
  }

  .contact .icon {
    width: 20px;
    height: 20px;
  }

  .news-section {
    margin-top: 2rem;
  }

  .news-card {
    flex: 0 0 240px;
  }

  .news-card-image {
    height: 130px;
  }

  .footer {
    font-size: 0.7rem;
    margin-top: 1rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================================
   LIGHT THEME OVERRIDES (data-theme="light")
   Переопределяем только корневые токены,
   всё остальное унаследуется через var() ссылки.
   Контраст AA (≥4.5:1) на белом для серого
   текста 0f172a / muted 64748b на фоне f8fafc.
   ======================================== */
:root[data-theme='light'] {
  --bg-dark: #f8fafc;
  --text-white: #0f172a;
  --text-muted: #64748b;

  /* Тени мягче — на светлом фоне резкие тени выглядят тяжело */
  --btn-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  --btn-shadow-hover: 0 8px 18px rgba(0, 176, 185, 0.22);
}

/* Light-режим: основной фон страницы — вместо parallax (тёмного фото) оставляем светлый.
   Сайдбар/контент кабинета и публичной части переопределяются ниже. */
:root[data-theme='light'] body {
  background: #ffffff;
  color: #0f172a;
}

:root[data-theme='light'] .parallax {
  /* Скрываем bg.webp параллакс — на светлом фоне он выглядит нелепо */
  display: none;
}

:root[data-theme='light'] #particles-canvas {
  /* Отключаем частицы — большинство из них рисуются в светлых тонах
     и исчезают на белом фоне; экономим CPU */
  display: none;
}

:root[data-theme='light'] .stats-bar,
:root[data-theme='light'] .continue-card,
:root[data-theme='light'] .news-card,
:root[data-theme='light'] .release-card,
:root[data-theme='light'] .artist-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(15, 23, 42, 0.1);
  color: #0f172a;
  backdrop-filter: blur(10px);
}

:root[data-theme='light'] .stat-num,
:root[data-theme='light'] .hero-title-line,
:root[data-theme='light'] .section-title,
:root[data-theme='light'] .news-card-title,
:root[data-theme='light'] .release-card-title,
:root[data-theme='light'] .artist-card-name,
:root[data-theme='light'] .continue-card__title {
  color: #0f172a;
}

:root[data-theme='light'] .face,
:root[data-theme='light'] .login-btn {
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.12);
}

:root[data-theme='light'] .contact,
:root[data-theme='light'] .section-link {
  color: #0f172a;
}

:root[data-theme='light'] .contact:hover,
:root[data-theme='light'] .section-link:hover,
:root[data-theme='light'] .login-btn:hover,
:root[data-theme='light'] .release-card-link:hover {
  color: #ffffff;
}

:root[data-theme='light'] .face.back {
  color: rgba(15, 23, 42, 0.85);
}

:root[data-theme='light'] .hero-message .hero-copy,
:root[data-theme='light'] .artist-card-bio,
:root[data-theme='light'] .artist-modal-desc,
:root[data-theme='light'] .news-card-excerpt {
  color: rgba(15, 23, 42, 0.7);
}

:root[data-theme='light'] .stat-label,
:root[data-theme='light'] .news-card-date,
:root[data-theme='light'] .release-card-date,
:root[data-theme='light'] .footer {
  color: #64748b;
}

:root[data-theme='light'] .hero-title-line.accent {
  /* Удаляем glow — он плохо читается на светлом фоне */
  filter: none;
}

:root[data-theme='light'] .artist-modal-content {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
  border-color: rgba(0, 176, 185, 0.4);
}

:root[data-theme='light'] .artist-modal-name {
  color: #0f172a;
  text-shadow: none;
}

/* Light-режим: карточки в шапке и hero — прозрачность адаптирована */
:root[data-theme='light'] .hero-title-line {
  text-shadow: none;
}

/* ========================================
   Artist Modal
   ======================================== */

.artist-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.artist-modal.open {
  opacity: 1;
  visibility: visible;
}

.artist-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.artist-modal-content {
  position: relative;
  background: linear-gradient(145deg, rgba(20, 20, 25, 0.95), rgba(10, 10, 15, 0.98));
  border: 1px solid rgba(0, 176, 185, 0.3);
  border-radius: 20px;
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  text-align: center;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(0, 176, 185, 0.1);
}

.artist-modal.open .artist-modal-content {
  transform: scale(1) translateY(0);
}

.artist-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  font-size: 1.5rem;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.artist-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.artist-modal-photo {
  width: 140px;
  height: 140px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 3px solid var(--primary);
  box-shadow: 0 0 30px rgba(0, 176, 185, 0.3);
}

.artist-modal-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.75rem;
  text-shadow: 0 0 20px rgba(0, 176, 185, 0.3);
}

.artist-modal-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  min-height: 1.5em;
}

.artist-modal-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.artist-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 176, 185, 0.15);
  border: 1px solid rgba(0, 176, 185, 0.3);
  color: var(--primary);
  transition: all 0.2s ease;
}

.artist-social-link:hover {
  background: var(--primary);
  color: var(--bg-dark);
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(0, 176, 185, 0.4);
}

.artist-social-link svg {
  width: 22px;
  height: 22px;
}

.artist-modal-profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: var(--bg-dark);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.artist-modal-profile-btn:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 176, 185, 0.4);
}

/* Mobile modal adjustments */
@media (max-width: 480px) {
  .artist-modal-content {
    padding: 1.5rem;
    margin: 1rem;
  }

  .artist-modal-photo {
    width: 100px;
    height: 100px;
  }

  .artist-modal-name {
    font-size: 1.25rem;
  }

  .artist-social-link {
    width: 40px;
    height: 40px;
  }

  .artist-social-link svg {
    width: 20px;
    height: 20px;
  }
}

/* ========================================
   Fullscreen Artist Modal (Mobile)
   ======================================== */

.artist-modal.fullscreen .artist-modal-content {
  width: 100%;
  height: 100%;
  max-width: none;
  border-radius: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 1.5rem;
}

.artist-modal.fullscreen .artist-modal-photo {
  width: 160px;
  height: 160px;
}

.artist-modal.fullscreen .artist-modal-name {
  font-size: 1.75rem;
}

.artist-modal.fullscreen .artist-modal-close {
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  font-size: 2rem;
}

/* ========================================
   Pull-to-Refresh Indicator
   ======================================== */

.pull-refresh-indicator {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  width: 40px;
  height: 40px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.2s ease;
  color: var(--primary);
  pointer-events: none;
}

.pull-refresh-indicator svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 10px var(--primary));
}

.pull-refresh-indicator.refreshing {
  animation: refreshSpin 0.5s ease-out;
}

@keyframes refreshSpin {
  0% {
    transform: translateX(-50%) rotate(0deg) scale(1);
  }
  50% {
    transform: translateX(-50%) rotate(180deg) scale(1.2);
  }
  100% {
    transform: translateX(-50%) rotate(360deg) scale(1);
    opacity: 0;
  }
}

/* ==========================================
   Continue listening card
   ========================================== */
.continue-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.continue-card:hover {
  border-color: rgba(0, 176, 185, 0.4);
  background: rgba(0, 176, 185, 0.06);
}

.continue-card__cover {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
}

.continue-card__info {
  flex: 1;
  min-width: 0;
}

.continue-card__title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-white, #fff);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.continue-card__sub {
  font-size: 0.82rem;
  color: var(--text-muted, #888);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.continue-card__play {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary, #00b0b9);
  border: none;
  color: var(--bg-dark, #0a0a0a);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.continue-card__play:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(0, 176, 185, 0.35);
}

/* ==========================================
   History track cards (horizontal scroll)
   ========================================== */
.history-item {
  flex: 0 0 160px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: var(--text-white, #fff);
  transition: transform 0.2s;
}

.history-item:hover {
  transform: translateY(-3px);
}

.history-item__cover {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}

.history-item__title {
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-item__artist {
  font-size: 0.78rem;
  color: var(--text-muted, #888);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
