/* article.css */


/* ─── ARTICLE PANEL ───────────────────────────────────────────────────────── */
.article-panel {
  background-image: url("/images/ui/background-blue-glass.jpg");
  background-size: cover;
  background-position: center;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(100, 160, 220, 0.25);
  border-radius: 20px;
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(61, 127, 193, 0.12);
  overflow-y: auto;

  /* Fixed sizing to match the player */
  height: 767px;
  max-height: 767px;
  flex: 1;
  min-width: 0;

  /* Smooth transitions */
  transition:
    opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    padding 1.2s ease,
    width 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    flex 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.15s;
}

/* Hide article panel only before the user has ever entered the app */
.app-screen:not(.workspace-mode):not(.has-entered) .article-panel {
  opacity: 0;
  pointer-events: none;
  transform: translateX(40px);
  width: 0;
  flex: 0 0 0;
  padding: 0;
  margin: 0;
  border: none;
  box-shadow: none;
}

.app-screen.workspace-mode .article-panel,
.app-screen.has-entered .article-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

/* ─── SCROLLBAR ───────────────────────────────────────────────────────────── */
.article-panel::-webkit-scrollbar {
  width: 6px;
}
.article-panel::-webkit-scrollbar-track {
  background: transparent;
}
.article-panel::-webkit-scrollbar-thumb {
  background-color: rgba(61, 127, 193, 0.25);
  border-radius: 4px;
}
.article-panel::-webkit-scrollbar-thumb:hover {
  background-color: rgba(61, 127, 193, 0.45);
}

/* ─── PLACEHOLDER / ERROR ─────────────────────────────────────────────────── */
.article-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  color: #5a7a96;
  padding: 40px 0;
}

.welcome-dragon-gif {
  width: 160px;
  max-width: 42%;
  height: auto;
  display: block;
  margin: 0 auto 28px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.welcome-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: #5a7a96;
  margin: 0;
}

.welcome-manual {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.6;
  color: #7a9ab0;
  max-width: 380px;
  margin: 14px 0 0;
  text-align: center;
}

.article-error {
  color: #c0392b;
  border: 1px solid rgba(192, 57, 43, 0.2);
  background-color: rgba(192, 57, 43, 0.05);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}

/* ─── ALBUM HEADER (Задача 7) ─────────────────────────────────────────────── */
.album-header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(61, 127, 193, 0.15);
}

.album-cover {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(61, 127, 193, 0.18);
}

.album-cover-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(61, 127, 193, 0.15), rgba(61, 127, 193, 0.05));
  border: 1px solid rgba(61, 127, 193, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: rgba(61, 127, 193, 0.4);
}

.album-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.album-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--music-blue);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

.album-artist {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: #3d7fc1;
  margin: 2px 0 0;
  letter-spacing: 0.01em;
}

.album-year {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: #6aabdf;
  margin: 0;
  letter-spacing: 0.03em;
}

.album-reading-time {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(106, 171, 223, 0.7);
  margin: 2px 0 0;
  letter-spacing: 0.02em;
}

/* ─── ARTICLE HEADER (type label + article title + subtitle) ──────────────── */
.article-header {
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(61, 127, 193, 0.15);
  padding-bottom: 20px;
}

.article-type {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #3d7fc1;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  font-family: var(--font-heading);
}

.article-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--music-blue);
  margin-bottom: 8px;
}

.article-subtitle {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: #5a7a96;
  font-weight: 400;
}

/* ─── ARTICLE BODY ────────────────────────────────────────────────────────── */
.article-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.article-heading {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--music-blue);
  margin-top: 24px;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.article-paragraph {
  font-family: var(--font-body);
  font-size: 0.97rem;
  line-height: 1.72;
  color: #2c3e50;
  text-align: justify;
  max-width: 66ch;
}

/* ─── TRACK SECTIONS ──────────────────────────────────────────────────────── */
.article-track-section {
  padding: 14px 16px;
  margin-top: 10px;
  border-radius: 10px;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  cursor: pointer;
}

.article-track-section:hover {
  background-color: rgba(61, 127, 193, 0.04);
}

.article-track-section h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--music-blue);
  margin-top: 0;
  margin-bottom: 6px;
  transition: color 0.3s ease;
}

.article-track-section p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.65;
  color: #3a4a5a;
  margin: 0;
  text-align: justify;
  transition: color 0.3s ease;
}

/* Active track section highlighting */
.article-track-section.active-track-section {
  border-left-color: #3d7fc1;
  background-color: rgba(61, 127, 193, 0.06);
}

.article-track-section.active-track-section h3 {
  color: var(--music-blue);
}

.article-track-section.active-track-section p {
  color: #1a5a9a;
}

/* ─── FINAL BLOCK ──────────────────────────────────────────────────────────── */
.article-final-separator {
  border: none;
  border-top: 1px solid rgba(61, 127, 193, 0.15);
  margin: 28px 0 20px;
}

.article-final {
  padding: 16px 18px;
  background: rgba(61, 127, 193, 0.04);
  border-radius: 10px;
  border-left: 3px solid rgba(61, 127, 193, 0.25);
}

.article-final-heading {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--music-blue);
  margin-top: 0;
  margin-bottom: 10px;
}

/* ─── GENIUS LINK ──────────────────────────────────────────────────────────── */

.article-track-section h3.has-genius-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.article-genius-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.article-genius-link:hover {
  opacity: 1;
  transform: scale(1.1);
}

.article-genius-icon {
  width: 20px;
  height: 20px;
  display: block;
}

/* ─── STREAMING PLAY BUTTON + DROPDOWN ──────────────────────────────────────── */

/* Wrapper keeps Play button + dropdown together */
.article-streaming-wrapper {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

/* Streaming Play blue button */
.track-streaming-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 18px;
  padding: 0;
  border: none;
  border-radius: 5px;
  background: linear-gradient(180deg, #b9dcff 0%, #6aaaf5 55%, #3f86df 100%);
  cursor: pointer;
  flex-shrink: 0;
  transition: filter 0.15s ease, transform 0.1s ease;
}

.track-streaming-button::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 7px solid #ffffff;
  margin-left: 2px;
}

.track-streaming-button:hover {
  filter: brightness(1.05);
}

.track-streaming-button:active {
  transform: translateY(1px);
}

/* Streaming dropdown menu — JPM Music glass style */
.article-streaming-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: rgba(15, 30, 55, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(100, 160, 220, 0.3);
  border-radius: 10px;
  z-index: 50;
  min-width: 170px;
  flex-direction: column;
  padding: 6px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(61, 127, 193, 0.08);
}

.article-streaming-dropdown.is-open {
  display: flex;
}

.article-streaming-dropdown-item {
  display: block;
  padding: 9px 16px;
  color: rgba(200, 220, 240, 0.95);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.article-streaming-dropdown-item:hover {
  background: rgba(61, 127, 193, 0.22);
  color: #fff;
}

/* ─── RADIO LIST ───────────────────────────────────────────────────────────── */
.radio-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}

.radio-list-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--music-blue);
  margin: 0;
  letter-spacing: 0.04em;
}

.radio-list-subtitle {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  color: #6aabdf;
  margin: -8px 0 8px;
}

.radio-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(61, 127, 193, 0.2);
  border-radius: 12px;
  cursor: default;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.radio-card:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(61, 127, 193, 0.4);
}

.radio-card-icon {
  font-size: 2rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(61, 127, 193, 0.1);
  border-radius: 10px;
  flex-shrink: 0;
  object-fit: contain;
}

.radio-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.radio-card-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--music-blue);
}

.radio-card-status {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 500;
  color: #6aabdf;
  letter-spacing: 0.06em;
}

/* ─── RADIO SCREEN ─────────────────────────────────────────────────────────── */
.radio-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 24px 18px;
  text-align: center;
  width: 100%;
  height: 100%;
  min-height: 100%;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-sizing: border-box;
  overflow-y: auto;
}

.radio-brand {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #6aabdf;
  text-transform: uppercase;
}

/* ─── Radio Selector Screen ─────────────────────────────────────────────── */

.radio-main-title {
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 2.9vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #5ca5dc;
  text-transform: uppercase;
  margin: 0 0 16px;
  line-height: 1;
}

/* Carousel */
.radio-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 32px 0 0;
  width: 100%;
}

.radio-carousel-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.radio-carousel-arrow {
  font-family: var(--font-heading);
  font-size: clamp(2.3rem, 3.8vw, 3.8rem);
  font-weight: 700;
  color: rgba(75, 156, 210, 0.7);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  line-height: 1;
  transition: color 0.2s ease, transform 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
  flex-shrink: 0;
}

.radio-carousel-arrow:hover {
  color: rgba(65, 145, 205, 0.95);
  transform: scale(1.08);
}

.radio-carousel-arrow:active {
  color: rgba(50, 130, 195, 1);
  transform: scale(0.96);
}

/* Carousel station cards */
.radio-carousel-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.44);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 4px 20px rgba(61, 127, 193, 0.08),
    0 1px 4px rgba(61, 127, 193, 0.04);
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease, width 0.3s ease, height 0.3s ease;
}

.radio-carousel-card--active {
  width: 190px;
  height: 190px;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.55);
  transform: scale(1);
  opacity: 1;
  z-index: 2;
  cursor: pointer;
  box-shadow:
    0 6px 24px rgba(61, 127, 193, 0.12),
    0 2px 6px rgba(61, 127, 193, 0.05);
  transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.radio-carousel-card--active:hover {
  transform: scale(1.03);
  box-shadow:
    0 8px 28px rgba(61, 127, 193, 0.18),
    0 2px 8px rgba(61, 127, 193, 0.08);
}

.radio-carousel-card--active:focus-visible {
  outline: 2px solid rgba(61, 127, 193, 0.5);
  outline-offset: 3px;
}

/* OFF AIR / paused state */
.radio-carousel-card--active.is-paused {
  filter: brightness(0.78) saturate(0.85);
}

/* LIVE / playing state */
.radio-carousel-card--active.is-playing {
  filter: none;
  box-shadow:
    0 6px 24px rgba(61, 127, 193, 0.14),
    0 0 18px rgba(92, 165, 220, 0.18),
    0 2px 6px rgba(61, 127, 193, 0.06);
}

/* Overlay and pause icon */
.radio-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 3;
}

.radio-carousel-card--active.is-paused .radio-card-overlay {
  opacity: 1;
}

.radio-carousel-card--active.is-playing .radio-card-overlay {
  opacity: 0;
}

.radio-card-pause-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.radio-card-pause-icon::before,
.radio-card-pause-icon::after {
  content: '';
  display: block;
  width: 6px;
  height: 24px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.radio-carousel-card--side {
  width: 120px;
  height: 120px;
  opacity: 0.78;
  transform: scale(0.82);
  z-index: 1;
}

.radio-carousel-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
  display: block;
  transition: none;
}

.radio-carousel-card--active .radio-carousel-card__image {
  width: 100%;
  height: 100%;
}

.radio-carousel-card__title {
  display: none;
}

.radio-carousel-card--active .radio-carousel-card__title {
  display: none;
}

/* Selected station title below carousel */
.radio-selected-title {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2vw, 2rem);
  font-weight: 600;
  letter-spacing: 0em;
  text-transform: none;
  color: #1d4f86;
  margin: 18px 0 0;
  line-height: 1.1;
}

/* Main toggle play button */
.radio-main-play-button {
  width: 155px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(180, 220, 255, 0.7);
  background: linear-gradient(180deg, #9ecbff 0%, #428be8 100%);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
  margin: 20px 0 0;
  box-shadow:
    0 3px 12px rgba(66, 139, 232, 0.22),
    0 1px 3px rgba(66, 139, 232, 0.1);
}

.radio-main-play-button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow:
    0 5px 18px rgba(66, 139, 232, 0.28),
    0 2px 5px rgba(66, 139, 232, 0.14);
}

.radio-main-play-button:active {
  transform: scale(0.97);
  filter: brightness(0.98);
}

.radio-main-play-button.is-active {
  border-color: rgba(130, 220, 180, 0.65);
  box-shadow:
    0 3px 16px rgba(66, 139, 232, 0.22),
    0 0 18px rgba(46, 190, 140, 0.24),
    0 1px 3px rgba(66, 139, 232, 0.1);
}

.radio-main-play-button.is-active:hover {
  border-color: rgba(130, 220, 180, 0.8);
  box-shadow:
    0 5px 22px rgba(66, 139, 232, 0.28),
    0 0 24px rgba(46, 190, 140, 0.32),
    0 2px 5px rgba(66, 139, 232, 0.14);
}

.radio-main-play-icon {
  width: 0;
  height: 0;
  border-left: 15px solid #ffffff;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 3px;
  transition: border-left-color 0.25s ease;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.08));
}

.radio-main-play-button.is-active .radio-main-play-icon {
  border-left-color: #ffffff;
}

.radio-station-name {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--music-blue);
  margin: 0;
  letter-spacing: 0.02em;
}

.radio-live-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: #3d7fc1;
  background: rgba(61, 127, 193, 0.1);
  padding: 4px 12px;
  border-radius: 4px;
}

/* Mini station display — central visual block */
.radio-station-display {
  width: 85%;
  max-width: 480px;
  padding: 22px 24px;
  margin: 12px auto 4px;
  border-radius: 18px;
  border: 1px solid rgba(61, 127, 193, 0.22);
  background: rgba(61, 127, 193, 0.06);
  box-shadow:
    0 0 18px rgba(61, 127, 193, 0.06),
    inset 0 0 24px rgba(61, 127, 193, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.radio-station-display__label {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #4a7fa8;
}

.radio-station-display__name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b0d4f7;
  margin: 2px 0;
}

.radio-station-display__mode {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6a8eaa;
  transition: color 0.3s ease;
}

.radio-station-display__mode.live {
  color: #6ee8b0;
  text-shadow: 0 0 8px rgba(46, 204, 113, 0.3);
}

.radio-station-display__meta {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4a6a85;
  margin-top: 4px;
}

/* Decorative equalizer */
.radio-equalizer {
  display: none;
}

.radio-equalizer__bar {
  width: 5px;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(180deg, #8cc8f0, #5ca5dc);
  box-shadow: 0 0 4px rgba(61, 127, 193, 0.2);
  transform-origin: bottom center;
  transition: opacity 0.3s ease, box-shadow 0.3s ease;
}

/* OFF AIR — dimmed, static low bars */
.radio-equalizer.off-air .radio-equalizer__bar {
  opacity: 0.25;
  height: 5px;
  box-shadow: none;
}

.radio-equalizer.off-air .radio-equalizer__bar:nth-child(1) { height: 6px; }
.radio-equalizer.off-air .radio-equalizer__bar:nth-child(2) { height: 10px; }
.radio-equalizer.off-air .radio-equalizer__bar:nth-child(3) { height: 5px; }
.radio-equalizer.off-air .radio-equalizer__bar:nth-child(4) { height: 12px; }
.radio-equalizer.off-air .radio-equalizer__bar:nth-child(5) { height: 8px; }
.radio-equalizer.off-air .radio-equalizer__bar:nth-child(6) { height: 13px; }
.radio-equalizer.off-air .radio-equalizer__bar:nth-child(7) { height: 6px; }

/* LIVE — full opacity, animated bars */
.radio-equalizer.live .radio-equalizer__bar {
  opacity: 1;
  animation: radioEqualizerPulse 0.85s ease-in-out infinite;
}

.radio-equalizer.live .radio-equalizer__bar:nth-child(1) { animation-delay: 0s; }
.radio-equalizer.live .radio-equalizer__bar:nth-child(2) { animation-delay: 0.1s; }
.radio-equalizer.live .radio-equalizer__bar:nth-child(3) { animation-delay: 0.2s; }
.radio-equalizer.live .radio-equalizer__bar:nth-child(4) { animation-delay: 0.15s; }
.radio-equalizer.live .radio-equalizer__bar:nth-child(5) { animation-delay: 0.25s; }
.radio-equalizer.live .radio-equalizer__bar:nth-child(6) { animation-delay: 0.05s; }
.radio-equalizer.live .radio-equalizer__bar:nth-child(7) { animation-delay: 0.18s; }

@keyframes radioEqualizerPulse {
  0%, 100% { transform: scaleY(0.25); }
  50%      { transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  .radio-equalizer.live .radio-equalizer__bar {
    animation: none;
  }
  .radio-equalizer.live .radio-equalizer__bar:nth-child(1) { height: 8px; }
  .radio-equalizer.live .radio-equalizer__bar:nth-child(2) { height: 14px; }
  .radio-equalizer.live .radio-equalizer__bar:nth-child(3) { height: 6px; }
  .radio-equalizer.live .radio-equalizer__bar:nth-child(4) { height: 16px; }
  .radio-equalizer.live .radio-equalizer__bar:nth-child(5) { height: 10px; }
  .radio-equalizer.live .radio-equalizer__bar:nth-child(6) { height: 18px; }
  .radio-equalizer.live .radio-equalizer__bar:nth-child(7) { height: 8px; }
}

/* LIVE ON AIR / OFF AIR badge */
.radio-on-air-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 18px;
  border-radius: 13px;
  min-height: 38px;
  border: 1px solid rgba(120, 180, 230, 0.2);
  background: rgba(200, 228, 255, 0.38);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  margin-top: 0;
  box-shadow: 0 1px 8px rgba(61, 127, 193, 0.05);
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
  cursor: default;
  pointer-events: none;
  user-select: none;
}

.radio-on-air-dot {
  display: none;
}

.radio-on-air-icon {
  width: 25px;
  height: 25px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.radio-on-air-text {
  font-family: var(--font-heading);
  font-size: clamp(0.85rem, 1.25vw, 1.25rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #2a5a8c;
  transition: color 0.3s ease;
}

/* OFF AIR state */
.radio-on-air-badge.off-air {
  border-color: rgba(120, 180, 230, 0.18);
  background: rgba(200, 228, 255, 0.3);
}

.radio-on-air-badge.off-air .radio-on-air-icon {
  opacity: 0.7;
}

.radio-on-air-badge.off-air .radio-on-air-text {
  color: #2a5a8c;
}

/* LIVE state */
.radio-on-air-badge.live {
  border-color: rgba(120, 210, 170, 0.40);
  background: rgba(180, 235, 210, 0.42);
  box-shadow:
    0 0 20px rgba(46, 190, 140, 0.18),
    0 2px 12px rgba(46, 180, 130, 0.08);
}

.radio-on-air-badge.live .radio-on-air-icon {
  opacity: 1;
}

.radio-on-air-badge.live .radio-on-air-text {
  color: #2e8b5e;
}

.radio-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.radio-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #888;
  flex-shrink: 0;
}

.radio-status.off-air .radio-status-dot {
  background: #999;
  box-shadow: 0 0 0 rgba(153, 153, 153, 0);
}

.radio-status.live .radio-status-dot {
  background: #2ecc71;
  box-shadow: 0 0 8px rgba(46, 204, 113, 0.5);
  animation: radio-live-pulse 1.5s ease-in-out infinite;
}

.radio-status.live .radio-status-text {
  color: #2ecc71;
}

@keyframes radio-live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.3); }
}

.radio-status-text {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: #888;
  letter-spacing: 0.03em;
}

/* Station description */
.radio-station-description {
  font-family: var(--font-body);
  max-width: 460px;
  margin-top: 32px;
  font-size: clamp(0.85rem, 1.1vw, 1.05rem);
  line-height: 1.45;
  color: rgba(20, 70, 110, 0.72);
  text-align: center;
  font-weight: 400;
  padding: 0 18px;
  min-height: 1.2em;
}

.radio-hint {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: rgba(25, 75, 115, 0.6);
  margin: 12px 0 0;
  max-width: 260px;
  line-height: 1.4;
  min-height: 20px;
  text-align: center;
}

/* ─── Radio responsive: narrow article panel ──────────────────────────────── */

@media (max-width: 940px) {
  .radio-screen {
    padding: 18px 12px;
  }

  .radio-main-title {
    font-size: clamp(1.2rem, 2.6vw, 1.8rem);
    margin: 0 0 12px;
  }

  .radio-carousel {
    margin: 20px 0 0;
    gap: 2px;
  }

  .radio-carousel-track {
    gap: 10px;
  }

  .radio-carousel-arrow {
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    padding: 4px;
  }

  .radio-carousel-card {
    border-radius: 12px;
  }

  .radio-carousel-card--active {
    width: 130px;
    height: 130px;
  }

  .radio-carousel-card--side {
    width: 84px;
    height: 84px;
    transform: scale(0.82);
  }

  .radio-selected-title {
    font-size: clamp(0.9rem, 1.6vw, 1.3rem);
    margin: 12px 0 0;
  }

  .radio-main-play-button {
    width: 130px;
    height: 36px;
    margin: 14px 0 0;
    border-radius: 8px;
  }

  .radio-main-play-icon {
    border-left-width: 12px;
    border-top-width: 7px;
    border-bottom-width: 7px;
  }

  .radio-on-air-badge {
    padding: 5px 12px;
    gap: 5px;
    min-height: 30px;
    border-radius: 9px;
  }

  .radio-on-air-icon {
    width: 20px;
    height: 20px;
  }

  .radio-on-air-text {
    font-size: clamp(0.65rem, 1.1vw, 0.9rem);
  }

  .radio-station-description {
    font-size: 0.72rem;
    max-width: 300px;
    margin-top: 24px;
  }

  .radio-card-pause-icon {
    width: 22px;
    height: 22px;
    gap: 5px;
  }

  .radio-card-pause-icon::before,
  .radio-card-pause-icon::after {
    width: 5px;
    height: 18px;
  }

  .radio-hint {
    font-size: 0.65rem;
    max-width: 200px;
    margin: 8px 0 0;
    min-height: 16px;
  }
}

@media (max-width: 740px) {
  .radio-screen {
    padding: 14px 8px;
  }

  .radio-main-title {
    font-size: 1rem;
    margin: 0 0 8px;
  }

  .radio-carousel {
    margin: 14px 0 0;
    gap: 0;
  }

  .radio-carousel-track {
    gap: 4px;
  }

  .radio-carousel-arrow {
    font-size: 1.2rem;
    padding: 3px;
  }

  .radio-carousel-card {
    border-radius: 8px;
  }

  .radio-carousel-card--active {
    width: 96px;
    height: 96px;
  }

  .radio-carousel-card--side {
    width: 56px;
    height: 56px;
    transform: scale(0.82);
    opacity: 0.55;
  }

  .radio-selected-title {
    font-size: 0.72rem;
    margin: 10px 0 0;
  }

  .radio-main-play-button {
    width: 110px;
    height: 32px;
    margin: 10px 0 0;
    border-radius: 8px;
  }

  .radio-main-play-icon {
    border-left-width: 10px;
    border-top-width: 6px;
    border-bottom-width: 6px;
    margin-left: 2px;
  }

  .radio-on-air-badge {
    padding: 4px 10px;
    gap: 4px;
    min-height: 26px;
    border-radius: 8px;
  }

  .radio-on-air-icon {
    width: 16px;
    height: 16px;
  }

  .radio-on-air-text {
    font-size: 0.55rem;
    letter-spacing: 0.04em;
  }

  .radio-station-description {
    font-size: 0.62rem;
    max-width: 240px;
    margin-top: 20px;
  }

  .radio-card-pause-icon {
    width: 18px;
    height: 18px;
    gap: 4px;
  }

  .radio-card-pause-icon::before,
  .radio-card-pause-icon::after {
    width: 4px;
    height: 14px;
    border-radius: 2px;
  }

  .radio-hint {
    font-size: 0.6rem;
    max-width: 180px;
    margin: 6px 0 0;
    min-height: 14px;
  }
}

.radio-controls {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.radio-btn {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 24px;
  border-radius: 18px;
  border: 1px solid rgba(61, 127, 193, 0.3);
  background: rgba(255, 255, 255, 0.06);
  color: #7aa5cc;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.12s ease, box-shadow 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.radio-btn:hover {
  transform: translateY(-1px);
}

.radio-btn:active {
  transform: scale(0.97);
}

/* Play button */
.radio-btn--play {
  background: rgba(61, 127, 193, 0.15);
  border-color: rgba(61, 127, 193, 0.45);
  color: #b0d4f7;
  min-width: 160px;
}

.radio-btn--play:hover {
  background: rgba(61, 127, 193, 0.28);
  border-color: rgba(61, 127, 193, 0.65);
  color: #d4e8ff;
  box-shadow: 0 0 14px rgba(61, 127, 193, 0.25);
}

.radio-btn--play:active {
  background: rgba(61, 127, 193, 0.2);
}

/* Play button when live/active */
.radio-btn--play.is-active {
  background: rgba(46, 190, 120, 0.18);
  border-color: rgba(46, 204, 113, 0.55);
  color: #7df0b0;
  box-shadow: 0 0 16px rgba(46, 204, 113, 0.3);
}

.radio-btn--play.is-active:hover {
  background: rgba(46, 190, 120, 0.28);
  border-color: rgba(46, 204, 113, 0.75);
  box-shadow: 0 0 22px rgba(46, 204, 113, 0.4);
}

/* Stop button */
.radio-btn--stop {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: #6a8eaa;
  min-width: 140px;
}

.radio-btn--stop:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #8aabcc;
}

/* Stop button when radio is playing — more prominent */
.radio-btn--stop.is-ready {
  background: rgba(220, 80, 80, 0.1);
  border-color: rgba(220, 80, 80, 0.35);
  color: #e89090;
}

.radio-btn--stop.is-ready:hover {
  background: rgba(220, 80, 80, 0.2);
  border-color: rgba(220, 80, 80, 0.55);
  color: #f0a0a0;
  box-shadow: 0 0 12px rgba(220, 80, 80, 0.2);
}

/* ─── BIOGRAPHY VIEW ──────────────────────────────────────────────────────── */
.biography-view {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding-bottom: 24px;
}

/* Header row: photo left, info right — matches .album-header pattern */
.biography-header {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(61, 127, 193, 0.15);
}

.biography-photo-wrapper {
  flex-shrink: 0;
  width: 180px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(61, 127, 193, 0.18);
}

.biography-main-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.biography-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.biography-artist-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--music-blue);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

.biography-real-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--music-blue);
  opacity: 0.7;
  line-height: 1.3;
  margin: 4px 0 0;
}

.biography-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 2px 0 0;
}

.biography-meta-line {
  font-family: var(--font-heading);
  line-height: 1.35;
}

/* Birth place — like .album-artist */
.biography-birth-place {
  font-size: 0.98rem;
  font-weight: 700;
  color: #3d7fc1;
  letter-spacing: 0.01em;
}

/* Birth date — like .album-year */
.biography-birth-date {
  font-size: 0.85rem;
  font-weight: 700;
  color: #6aabdf;
  letter-spacing: 0.03em;
}

/* Biography body text — matches .article-paragraph */
.biography-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.biography-text p {
  font-family: var(--font-body);
  font-size: 0.97rem;
  line-height: 1.72;
  color: #2c3e50;
  text-align: justify;
  max-width: 66ch;
  margin: 0;
}

.biography-placeholder {
  font-family: var(--font-body);
  font-size: 0.97rem;
  line-height: 1.72;
  color: #5a7a96;
  font-style: italic;
  padding: 16px 0;
}

/* Gallery — matches article card styling */
.biography-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  margin-top: 28px;
}

.biography-gallery-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(61, 127, 193, 0.1);
}

/* ─── BIOGRAPHY SECTIONS (manipulator navigation) ─────────────────────────── */
.biography-section {
  transition: background 0.25s ease;
}

.biography-section.is-active-biography-section {
  /* Main section: no visible frame needed (matches article reading experience) */
}

.biography-section.is-active-biography-section[data-bio-section-type="related"] {
  background: rgba(61, 127, 193, 0.03);
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(61, 127, 193, 0.08);
}

/* ─── BIOGRAPHY RELATED ARTICLES ──────────────────────────────────────────── */
.biography-related {
  margin-top: 32px;
  width: 100%;
}

.biography-related__title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: #3d7fc1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 14px 0;
}

.biography-related__list {
  display: grid;
  gap: 8px;
}

.biography-related__item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  border: 1px solid rgba(61, 127, 193, 0.18);
  background: rgba(61, 127, 193, 0.04);
  border-radius: 10px;
  padding: 14px 18px;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  font-family: inherit;
  color: inherit;
}

.biography-related__item:hover,
.biography-related__item:focus-visible {
  background: rgba(61, 127, 193, 0.08);
  border-color: rgba(61, 127, 193, 0.35);
  transform: translateY(-1px);
  outline: none;
}

.biography-related__item.is-active-related-item {
  background: rgba(61, 127, 193, 0.1);
  border-color: rgba(61, 127, 193, 0.5);
  box-shadow: 0 0 0 2px rgba(61, 127, 193, 0.15);
  transform: none;
}

.biography-related__label {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--music-blue);
}

.biography-related__meta {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 500;
  color: #6aabdf;
}

/* ─── ANIMATIONS ──────────────────────────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50%       { transform: scale(1.05); opacity: 0.8; }
}
