/* ========================================================================== 
   Relax FM category archive pages - homepage-style archive grid
   ========================================================================== */

.rfm-category-wrapper {
  width: 100%;
  max-width: 1600px;
  margin: 150px auto 90px auto;
  padding: 0 48px;
  box-sizing: border-box;
  font-family: var(--rfm-font-main);
}

.rfm-category-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
}

.rfm-category-main,
.rfm-category-posts,
.rfm-category-list-item,
.rfm-category-list-link,
.rfm-category-thumb-wrap {
  min-width: 0;
}

.rfm-category-sidebar {
  display: none;
}

/* v1.0.166: category cards must sit directly on the shared page background.
   Astra can add white backgrounds/padding to archive <article> wrappers via post_class(),
   so reset the outer post layers and keep the visual surface only on the image itself. */
body.category .rfm-category-main article.rfm-category-list-item,
body.archive.category .rfm-category-main article.rfm-category-list-item,
body.category .rfm-category-list-item,
body.archive.category .rfm-category-list-item {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

body.category .rfm-category-main article.rfm-category-list-item::before,
body.category .rfm-category-main article.rfm-category-list-item::after,
body.archive.category .rfm-category-main article.rfm-category-list-item::before,
body.archive.category .rfm-category-main article.rfm-category-list-item::after {
  content: none !important;
  display: none !important;
}

body.category .rfm-category-list-link,
body.archive.category .rfm-category-list-link {
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.rfm-category-header {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.rfm-category-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
  gap: 18px;
  align-items: center;
}

.rfm-category-heading-copy {
  min-width: 0;
}

.rfm-category-label-row {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(210, 4, 45, 0.08);
  border: 1px solid rgba(210, 4, 45, 0.2);
  border-radius: 6px;
  padding: 6px 14px;
}

.rfm-category-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #D2042B;
  flex-shrink: 0;
}

.rfm-category-label-text {
  font-size: 11px;
  font-weight: 800;
  color: #D2042B;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
}

.rfm-category-description {
  margin-top: 10px;
  max-width: 720px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(38, 28, 29, 0.68);
}

.rfm-category-description p {
  margin: 0;
}

.rfm-category-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.rfm-category-search-field {
  position: relative;
  min-width: 0;
}

.rfm-category-search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(210, 4, 45, 0.72);
  font-size: 18px;
  line-height: 1;
  pointer-events: none;
}

.rfm-category-search input[type="search"] {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(210, 4, 45, 0.16);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 20px rgba(38, 28, 29, 0.035);
  padding: 0 42px 0 42px;
  font-size: 13px;
  font-weight: 700;
  color: #261C1D;
  outline: none;
  box-sizing: border-box;
}

.rfm-category-search input[type="search"]::placeholder {
  color: rgba(38, 28, 29, 0.46);
}

.rfm-category-search input[type="search"]:focus {
  border-color: rgba(210, 4, 45, 0.42);
  box-shadow: 0 0 0 4px rgba(210, 4, 45, 0.08), 0 10px 24px rgba(38, 28, 29, 0.045);
}

.rfm-category-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: rgba(210, 4, 45, 0.09);
  color: #D2042B;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.rfm-category-search-button {
  height: 44px;
  border: 0;
  border-radius: 12px;
  padding: 0 18px;
  background: #D2042B;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.25px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(210, 4, 45, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.rfm-category-search-button:hover {
  transform: translateY(-1px);
  background: #b90325;
  box-shadow: 0 14px 30px rgba(210, 4, 45, 0.24);
}

.rfm-category-results-note {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  color: rgba(38, 28, 29, 0.66);
}

.rfm-category-results-note strong {
  color: #D2042B;
}

.rfm-category-posts {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.rfm-category-list-item {
  margin: 0;
  grid-column: span 2;
}

.rfm-category-list-item:nth-child(1),
.rfm-category-list-item:nth-child(2) {
  grid-column: span 3;
}

.rfm-category-list-item-loaded,
.rfm-category-list-item-new {
  grid-column: span 2;
}

.rfm-category-list-link {
  display: block;
  position: relative;
  text-decoration: none;
  border-radius: 16px;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 8px 25px rgba(38, 28, 29, 0.08);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.rfm-category-list-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(210, 4, 45, 0.15);
}

.rfm-category-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 0;
  background: transparent;
  overflow: hidden;
}

.rfm-category-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.rfm-category-list-link:hover .rfm-category-thumb {
  transform: scale(1.04);
}

.rfm-category-thumb-placeholder {
  object-fit: contain;
  padding: 54px;
  box-sizing: border-box;
  background: radial-gradient(circle at 30% 20%, rgba(210,4,43,0.12), transparent 55%), #FAF6F5;
}

.rfm-category-thumb-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 5, 10, 0.85) 0%, rgba(20, 5, 10, 0.3) 50%, transparent 100%);
  z-index: 1;
}

.rfm-category-title-glass {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 14px;
  z-index: 2;
  border-radius: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-sizing: border-box;
}

.rfm-category-card-title {
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.35;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rfm-category-list-item:nth-child(1) .rfm-category-title-glass,
.rfm-category-list-item:nth-child(2) .rfm-category-title-glass {
  bottom: 16px;
  padding: 12px 16px;
}

.rfm-category-list-item:nth-child(1) .rfm-category-card-title,
.rfm-category-list-item:nth-child(2) .rfm-category-card-title {
  font-size: 14px;
  line-height: 1.32;
  font-weight: 800;
}

.rfm-category-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.rfm-category-pagination .page-numbers {
  min-width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(210, 4, 45, 0.16);
  color: #D2042B;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(38, 28, 29, 0.045);
  box-sizing: border-box;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.rfm-category-pagination a.page-numbers:hover {
  transform: translateY(-2px);
  background: rgba(210, 4, 45, 0.08);
  box-shadow: 0 14px 30px rgba(210, 4, 45, 0.14);
}

.rfm-category-pagination .page-numbers.current {
  background: #D2042B;
  border-color: #D2042B;
  color: #FFFFFF;
  box-shadow: 0 12px 28px rgba(210, 4, 45, 0.18);
}

.rfm-category-pagination .page-numbers.dots {
  min-width: 26px;
  padding: 0 4px;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: rgba(38, 28, 29, 0.42);
}

.rfm-category-empty {
  border-radius: 16px;
  padding: 18px 0;
  font-size: 14px;
  color: #6B6061;
  font-weight: 700;
}

@media (max-width: 1400px) {
  .rfm-category-wrapper {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (max-width: 991px) {
  .rfm-category-wrapper {
    margin: 120px auto 70px;
    padding-left: 16px;
    padding-right: 16px;
    max-width: 100%;
    overflow-x: hidden;
  }

  .rfm-category-heading-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .rfm-category-search {
    max-width: 720px;
  }

  .rfm-category-posts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .rfm-category-list-item,
  .rfm-category-list-item-loaded,
  .rfm-category-list-item-new {
    grid-column: span 1;
  }

  .rfm-category-list-item:nth-child(1),
  .rfm-category-list-item:nth-child(2) {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .rfm-category-wrapper {
    padding-left: 16px;
    padding-right: 16px;
  }

  .rfm-category-header {
    margin-bottom: 16px;
  }

  .rfm-category-search {
    grid-template-columns: 1fr;
  }

  .rfm-category-search-button {
    width: 100%;
  }

  .rfm-category-list-link {
    border-radius: 15px;
  }

  .rfm-category-title-glass {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 9px 12px;
  }

  .rfm-category-list-item:nth-child(1) .rfm-category-title-glass,
  .rfm-category-list-item:nth-child(2) .rfm-category-title-glass {
    bottom: 12px;
    padding: 10px 13px;
  }
}

@media (max-width: 480px) {
  .rfm-category-posts {
    grid-template-columns: 1fr;
  }

  .rfm-category-list-item,
  .rfm-category-list-item-loaded,
  .rfm-category-list-item-new,
  .rfm-category-list-item:nth-child(1),
  .rfm-category-list-item:nth-child(2) {
    grid-column: span 1;
  }
}

@media (max-width: 380px) {
  .rfm-category-wrapper {
    padding-left: 12px;
    padding-right: 12px;
  }
}


body.category .site-main,
body.archive.category .site-main,
body.category .ast-row,
body.archive.category .ast-row {
  background: transparent !important;
}

body.category .ast-article-post.rfm-category-list-item,
body.archive.category .ast-article-post.rfm-category-list-item,
body.category .ast-article-single.rfm-category-list-item,
body.archive.category .ast-article-single.rfm-category-list-item {
  background: transparent !important;
  padding: 0 !important;
  border: 0 !important;
}

/* Artist taxonomy pages */
.rfm-artist-archive-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
  padding: 26px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 20px 45px rgba(38, 28, 29, 0.05);
}
.rfm-artist-archive-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 120px;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 35px rgba(210, 4, 45, 0.18);
  background: linear-gradient(135deg, #D2042B 0%, #8B0018 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.rfm-artist-archive-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rfm-artist-archive-avatar span {
  color: #fff;
  font-weight: 800;
  font-size: 34px;
  letter-spacing: -1px;
}
.rfm-artist-archive-title-block {
  min-width: 0;
  flex: 1;
}
.rfm-archive-empty {
  padding: 28px;
  border-radius: 18px;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.6);
  color: #6B6061;
  font-weight: 700;
}
@media (max-width: 768px) {
  .rfm-artist-archive-hero {
    align-items: flex-start;
    gap: 16px;
    padding: 18px;
    border-radius: 18px;
  }
  .rfm-artist-archive-avatar {
    width: 74px;
    height: 74px;
    flex-basis: 74px;
  }
  .rfm-artist-archive-avatar span {
    font-size: 24px;
  }
}

/* ========================================================================== 
   Relax FM individual artist pages - modern profile
   ========================================================================== */
.rfm-artist-page-wrapper {
  max-width: 1600px;
  margin: 165px auto 95px;
  padding: 0 48px;
  box-sizing: border-box;
}

.rfm-artist-page-main,
.rfm-artist-profile-card,
.rfm-artist-songs-section,
.rfm-other-artists-section,
.rfm-artist-song-bubbles,
.rfm-other-artists-marquee {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.rfm-artist-profile-card {
  margin-bottom: 28px;
}

.rfm-artist-hero-media {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, rgba(210, 4, 43, 0.18), transparent 55%), #EFE5E5;
  border: 1px solid rgba(38, 28, 29, 0.10);
  box-shadow: 0 22px 54px rgba(38, 28, 29, 0.075);
}

.rfm-artist-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.001);
}

.rfm-artist-hero-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--rfm-font-main);
  font-size: clamp(72px, 14vw, 190px);
  font-weight: 800;
  letter-spacing: -8px;
  color: rgba(255,255,255,0.92);
  background: linear-gradient(135deg, #D2042B 0%, #9C0327 100%);
}

.rfm-artist-hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(20, 5, 10, 0.78) 0%, rgba(20, 5, 10, 0.38) 42%, transparent 78%),
    linear-gradient(135deg, rgba(210, 4, 43, 0.28), transparent 54%);
}

.rfm-artist-hero-title-glass {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 26px;
  z-index: 2;
  max-width: 880px;
  border-radius: 18px;
  padding: 18px 22px 20px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

.rfm-artist-hero-title-glass h1 {
  font-family: var(--rfm-font-main);
  color: #FFFFFF;
  font-size: clamp(34px, 5.2vw, 72px);
  line-height: 0.96;
  letter-spacing: -2.4px;
  font-weight: 800;
  margin: 12px 0 0;
  text-shadow: 0 3px 12px rgba(0,0,0,0.25);
}

.rfm-artist-section-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(210, 4, 45, 0.08);
  border: 1px solid rgba(210, 4, 45, 0.2);
  border-radius: 6px;
  padding: 6px 14px;
  text-decoration: none;
}

.rfm-artist-hero-title-glass .rfm-artist-section-label {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.28);
}

.rfm-artist-section-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #D2042B;
  flex-shrink: 0;
}

.rfm-artist-hero-title-glass .rfm-artist-section-dot {
  background: #FFFFFF;
}

.rfm-artist-section-text {
  font-family: var(--rfm-font-main);
  font-size: 11px;
  font-weight: 800;
  color: #D2042B;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  line-height: 1;
}

.rfm-artist-hero-title-glass .rfm-artist-section-text {
  color: #FFFFFF;
}

.rfm-artist-profile-body {
  max-width: 980px;
  margin: 22px 0 0;
}

.rfm-artist-description {
  border-radius: 22px;
  padding: 28px 32px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 16px 40px rgba(38, 28, 29, 0.045);
  font-family: var(--rfm-font-main);
  color: #3D3334;
  font-size: 16px;
  line-height: 1.85;
}

.rfm-artist-description p:last-child {
  margin-bottom: 0;
}

.rfm-artist-description-empty {
  color: #6B6061;
  font-weight: 600;
}

.rfm-artist-songs-section,
.rfm-other-artists-section {
  margin-top: 34px;
}

.rfm-artist-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.rfm-artist-song-bubbles {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 20px;
  align-items: flex-start;
}

.rfm-artist-song-bubble {
  position: relative;
  flex: 0 0 128px;
  max-width: 128px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #261C1D;
  transition: transform 0.22s ease;
}

.rfm-golden-badge--bubble {
  top: -7px;
  right: 0;
  width: 26px;
  height: 26px;
}

.rfm-artist-song-bubble.is-golden-song:hover .rfm-golden-badge--bubble {
  transform: translateY(-1px) scale(1.04);
}

.rfm-artist-song-bubble:hover {
  transform: translateY(-3px);
}

.rfm-artist-song-image {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background: linear-gradient(135deg, #D2042B 0%, #8B0018 100%);
  border: 3px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 24px rgba(38, 28, 29, 0.12);
  transition: box-shadow 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.rfm-artist-song-bubble:hover .rfm-artist-song-image {
  box-shadow: 0 12px 32px rgba(210, 4, 43, 0.22);
  border-color: #D2042B;
  transform: scale(1.035);
}

.rfm-artist-song-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rfm-artist-song-initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-family: var(--rfm-font-main);
  font-size: 30px;
  font-weight: 800;
}

.rfm-artist-song-title {
  width: 128px;
  max-width: 128px;
  font-family: var(--rfm-font-main);
  font-size: 12px;
  line-height: 1.28;
  font-weight: 800;
  text-align: center;
  color: #261C1D;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rfm-artist-empty-songs {
  padding: 24px 28px;
  border-radius: 18px;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.62);
  color: #6B6061;
  font-family: var(--rfm-font-main);
  font-size: 14px;
  font-weight: 700;
}

.rfm-other-artists-marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.rfm-other-artists-marquee::before,
.rfm-other-artists-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.rfm-other-artists-marquee::before {
  left: 0;
  background: linear-gradient(to right, #FAF6F5, transparent);
}

.rfm-other-artists-marquee::after {
  right: 0;
  background: linear-gradient(to left, #FAF6F5, transparent);
}

.rfm-other-artists-track {
  display: flex;
  gap: 24px;
  width: max-content;
  align-items: flex-start;
  padding: 4px 0 10px;
  animation: rfm-other-artists-scroll 160s linear infinite;
}

.rfm-other-artists-track:hover {
  animation-play-state: paused;
}

@keyframes rfm-other-artists-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.rfm-other-artist-card {
  flex: 0 0 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: transform 0.22s ease;
}

.rfm-other-artist-card:hover {
  transform: translateY(-3px);
}

.rfm-other-artist-bubble {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #D2042B 0%, #8B0018 100%);
  border: 3px solid rgba(255,255,255,0.84);
  box-shadow: 0 8px 24px rgba(38, 28, 29, 0.12);
}

.rfm-other-artist-bubble img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rfm-other-artist-bubble span {
  color: #FFFFFF;
  font-family: var(--rfm-font-main);
  font-size: 30px;
  font-weight: 800;
}

.rfm-other-artist-name {
  width: 120px;
  max-width: 120px;
  font-family: var(--rfm-font-main);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 800;
  color: #261C1D;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rfm-artist-pagination {
  margin-top: 28px;
}

@media (max-width: 991px) {
  .rfm-artist-page-wrapper {
    margin: 120px auto 75px;
    padding: 0 16px;
    max-width: 100%;
    overflow-x: hidden;
  }

  .rfm-artist-hero-title-glass {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }
}

@media (max-width: 768px) {
  .rfm-artist-page-wrapper {
    padding: 0 14px;
  }

  .rfm-artist-hero-media {
    border-radius: 18px;
  }

  .rfm-artist-hero-title-glass {
    left: 14px;
    right: 14px;
    bottom: 14px;
    border-radius: 14px;
    padding: 13px 15px 15px;
  }

  .rfm-artist-hero-title-glass h1 {
    font-size: clamp(28px, 9vw, 44px);
    letter-spacing: -1.2px;
    margin-top: 10px;
  }

  .rfm-artist-profile-body {
    margin-top: 16px;
  }

  .rfm-artist-description {
    padding: 20px;
    border-radius: 17px;
    font-size: 14px;
    line-height: 1.75;
  }

  .rfm-artist-songs-section,
  .rfm-other-artists-section {
    margin-top: 28px;
  }

  .rfm-artist-song-bubbles {
    gap: 16px 14px;
    justify-content: flex-start;
  }

  .rfm-artist-song-bubble {
    flex-basis: 96px;
    max-width: 96px;
  }

  .rfm-artist-song-image {
    width: 88px;
    height: 88px;
  }

  .rfm-artist-song-title {
    width: 96px;
    max-width: 96px;
    font-size: 11px;
  }

  .rfm-golden-badge--bubble {
    top: -6px;
    right: -1px;
    width: 23px;
    height: 23px;
  }

  .rfm-other-artists-marquee::before,
  .rfm-other-artists-marquee::after {
    width: 60px;
  }

  .rfm-other-artists-track {
    gap: 16px;
    animation-duration: 70s;
  }

  .rfm-other-artist-card {
    flex-basis: 100px;
  }

  .rfm-other-artist-bubble {
    width: 90px;
    height: 90px;
  }

  .rfm-other-artist-name {
    width: 94px;
    max-width: 94px;
    font-size: 11px;
  }
}

@media (max-width: 380px) {
  .rfm-artist-page-wrapper {
    padding: 0 12px;
  }

  .rfm-artist-hero-title-glass {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 12px 13px 14px;
  }

  .rfm-artist-description {
    padding: 18px;
  }
}

/* Step 2.47: collaboration artist biographies shown as a vertical list. */
.rfm-artist-collab-descriptions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.rfm-artist-collab-bio {
  border-radius: 22px;
  padding: 24px 26px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 16px 40px rgba(38, 28, 29, 0.045);
  min-width: 0;
}

.rfm-artist-collab-bio-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  border-radius: 7px;
  padding: 7px 13px;
  background: rgba(210, 4, 45, 0.08);
  border: 1px solid rgba(210, 4, 45, 0.2);
  font-family: var(--rfm-font-main);
  font-size: 11px;
  font-weight: 800;
  color: #D2042B;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  line-height: 1;
}

.rfm-artist-collab-bio-head a,
.rfm-artist-collab-bio-head span:not(.rfm-artist-section-dot) {
  color: #D2042B;
  text-decoration: none;
}

.rfm-artist-collab-bio-head a:hover {
  color: #261C1D;
}

.rfm-artist-collab-bio-text {
  font-family: var(--rfm-font-main);
  color: #3D3334;
  font-size: 15px;
  line-height: 1.8;
}

.rfm-artist-collab-bio-text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .rfm-artist-collab-descriptions {
    gap: 14px;
  }

  .rfm-artist-collab-bio {
    padding: 20px;
    border-radius: 17px;
  }

  .rfm-artist-collab-bio-text {
    font-size: 14px;
    line-height: 1.75;
  }
}


/* Step 2.48: individual artist page sidebar layout. */
.rfm-artist-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.rfm-artist-sidebar {
  width: 340px;
  min-width: 0;
  position: sticky;
  top: 135px;
}

.rfm-artist-sidebar .rfm-side-banners {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.rfm-artist-sidebar .rfm-banner-item {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 16px;
  overflow: hidden;
  display: block;
  box-shadow: 0 10px 30px rgba(38, 28, 29, 0.03);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rfm-artist-sidebar .rfm-banner-item:hover {
  transform: translateY(-2px);
  border-color: #D2042B;
}

.rfm-artist-sidebar .rfm-banner-item img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 991px) {
  .rfm-artist-layout-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .rfm-artist-sidebar {
    width: 100%;
    position: static;
  }
}

@media (max-width: 768px) {
  .rfm-artist-layout-grid {
    gap: 28px;
  }
}

/* v1.0.263: artist taxonomy sidebar reuses the single-post sidebar widgets. */
.rfm-artist-sidebar.rfm-post-sidebar {
  width: 100%;
}

/* v1.0.473: special Astrologine prognoze archive layout. */
body.category-astrologine-prognoze .rfm-astro-category-wrapper {
  max-width: 1600px;
}

body.category-astrologine-prognoze .rfm-astro-category-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, calc((100% - 40px) / 3));
  gap: 40px;
  align-items: start;
}

body.category-astrologine-prognoze .rfm-astro-category-main,
body.category-astrologine-prognoze .rfm-astro-sidebar {
  min-width: 0;
}

body.category-astrologine-prognoze .rfm-astro-category-header {
  margin-bottom: 22px;
}

body.category-astrologine-prognoze .rfm-astro-post-card {
  min-width: 0;
}

body.category-astrologine-prognoze .rfm-astro-post-title {
  margin: 0 0 14px;
  font-family: var(--rfm-font-main);
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #261C1D;
}

body.category-astrologine-prognoze .rfm-astro-post-content {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  padding: 40px;
  box-sizing: border-box;
}

body.category-astrologine-prognoze .rfm-astro-post-content p {
  font-family: var(--rfm-font-main);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.9;
  color: #3D3334;
  margin-bottom: 24px;
}

body.category-astrologine-prognoze .rfm-astro-post-content > *:first-child {
  margin-top: 0;
}

body.category-astrologine-prognoze .rfm-astro-post-content > *:last-child {
  margin-bottom: 0;
}

body.category-astrologine-prognoze .rfm-astro-post-content h1,
body.category-astrologine-prognoze .rfm-astro-post-content h2,
body.category-astrologine-prognoze .rfm-astro-post-content h3 {
  font-family: var(--rfm-font-main);
  color: #261C1D;
  margin-top: 32px;
  margin-bottom: 16px;
}

body.category-astrologine-prognoze .rfm-astro-sidebar {
  display: block;
  width: 100%;
}

body.category-astrologine-prognoze .rfm-astro-sidebar .rfm-side-banners,
body.category-astrologine-prognoze .rfm-astro-sidebar .rfm-post-laidos-banners {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body.category-astrologine-prognoze .rfm-astro-sidebar .rfm-banner-item {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  overflow: hidden;
  display: block;
  box-shadow: 0 10px 30px rgba(38, 28, 29, 0.03);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

body.category-astrologine-prognoze .rfm-astro-sidebar .rfm-banner-item:hover {
  transform: translateY(-2px);
  border-color: #E52D27;
}

body.category-astrologine-prognoze .rfm-astro-sidebar img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 991px) {
  body.category-astrologine-prognoze .rfm-astro-category-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 767px) {
  body.category-astrologine-prognoze .rfm-astro-post-content {
    padding: 24px;
    border-radius: 16px;
  }
}


/* v1.0.513: artist profile song bubbles use the same balanced grid as premiere posts. */
.rfm-artist-song-bubbles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 20px 16px;
  align-items: start;
  justify-items: center;
}

.rfm-artist-song-bubble {
  width: 100%;
  max-width: 124px;
  flex: none;
}

@media (max-width: 767px) {
  .rfm-artist-song-bubbles {
    grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
    gap: 18px 10px;
  }

  .rfm-artist-song-bubble {
    max-width: 98px;
  }
}

/* 1.0.547: Paprastas atlikėjo puslapis naudoja tą patį turinys + sidebar išdėstymą.
   Puslapis lieka paprastas: tik hero/nuotrauka/aprašymas, bet šoninė juosta matoma. */
.rfm-artist-page-wrapper.is-simple-artist-page .rfm-artist-page-main {
    min-width: 0;
}

.rfm-simple-artist-note {
    margin-top: 18px;
    padding: 12px 16px;
    border: 1px solid rgba(226, 29, 61, .16);
    border-radius: 18px;
    background: rgba(255, 255, 255, .72);
    color: rgba(44, 32, 34, .72);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-align: center;
}

/* v1.0.550: desktop artist song bubbles were too crowded in the content+sidebar layout. */
@media (min-width: 768px) {
  .rfm-artist-page-main .rfm-artist-song-bubbles {
    grid-template-columns: repeat(4, minmax(0, 124px));
    justify-content: start;
    justify-items: center;
    gap: 26px 26px;
  }

  .rfm-artist-page-main .rfm-artist-song-bubble {
    max-width: 124px;
  }
}

@media (min-width: 768px) and (max-width: 1080px) {
  .rfm-artist-page-main .rfm-artist-song-bubbles {
    grid-template-columns: repeat(3, minmax(0, 124px));
  }
}

/* v1.0.551: desktop artist song bubbles are evenly distributed across the available row. */
@media (min-width: 768px) {
  .rfm-artist-page-main .rfm-artist-song-bubbles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-content: stretch;
    justify-items: center;
    column-gap: 22px;
    row-gap: 28px;
    width: 100%;
  }

  .rfm-artist-page-main .rfm-artist-song-bubble {
    width: 100%;
    max-width: 124px;
  }
}

@media (min-width: 768px) and (max-width: 1080px) {
  .rfm-artist-page-main .rfm-artist-song-bubbles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* v1.0.552: smarter desktop song-bubble layout.
   Keep safe zones between circles, grow the artwork when space allows,
   and do not stretch rows into large empty gaps on wide desktop screens. */
@media (min-width: 768px) {
  .rfm-artist-page-main .rfm-artist-song-bubbles {
    --rfm-song-bubble-size: clamp(136px, 11vw, 168px);
    --rfm-song-bubble-gap-x: clamp(24px, 2.2vw, 36px);
    --rfm-song-bubble-gap-y: 32px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--rfm-song-bubble-size), var(--rfm-song-bubble-size)));
    justify-content: center;
    justify-items: center;
    align-items: start;
    column-gap: var(--rfm-song-bubble-gap-x);
    row-gap: var(--rfm-song-bubble-gap-y);
    width: 100%;
  }

  .rfm-artist-page-main .rfm-artist-song-bubble {
    width: var(--rfm-song-bubble-size);
    max-width: var(--rfm-song-bubble-size);
    gap: 12px;
  }

  .rfm-artist-page-main .rfm-artist-song-image {
    width: var(--rfm-song-bubble-size);
    height: var(--rfm-song-bubble-size);
  }

  .rfm-artist-page-main .rfm-artist-song-title {
    width: min(100%, var(--rfm-song-bubble-size));
    max-width: var(--rfm-song-bubble-size);
    font-size: clamp(12px, 0.92vw, 13.5px);
    line-height: 1.28;
    -webkit-line-clamp: 3;
  }
}

@media (min-width: 768px) and (max-width: 1080px) {
  .rfm-artist-page-main .rfm-artist-song-bubbles {
    --rfm-song-bubble-size: 128px;
    --rfm-song-bubble-gap-x: 24px;
    --rfm-song-bubble-gap-y: 28px;
  }

  .rfm-artist-page-main .rfm-artist-song-title {
    font-size: 12px;
    -webkit-line-clamp: 2;
  }
}

/* v1.0.586: clean Relax FM search / 404 pages and hide public author meta. */
.rfm-search-wrapper,
.rfm-not-found-wrapper {
  width: 100%;
  max-width: 1600px;
  margin: 150px auto 90px auto;
  padding: 0 48px;
  box-sizing: border-box;
  font-family: var(--rfm-font-main);
}

.rfm-search-main {
  min-width: 0;
}

.rfm-search-header {
  margin-bottom: 22px;
}

.rfm-search-heading-row {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
}

.rfm-search-posts {
  margin-top: 0;
}

.rfm-empty-state {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 42px 34px;
  border: 1px solid rgba(210, 4, 45, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 44px rgba(38, 28, 29, 0.05);
  text-align: center;
  box-sizing: border-box;
}

.rfm-empty-label-row {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 auto 16px;
  background: rgba(210, 4, 45, 0.08);
  border: 1px solid rgba(210, 4, 45, 0.2);
  border-radius: 6px;
  padding: 6px 14px;
}

.rfm-empty-state h1,
.rfm-empty-state h2 {
  margin: 0 0 10px;
  color: #261C1D;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.rfm-empty-state p {
  max-width: 540px;
  margin: 0 auto 22px;
  color: rgba(38, 28, 29, 0.68);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
}

.rfm-empty-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: #D2042B;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 12px 26px rgba(210, 4, 45, 0.2);
}

.rfm-empty-action:hover {
  background: #b90325;
  transform: translateY(-1px);
}

/* Public author visibility guard for any remaining parent-theme/plugin output. */
body:not(.logged-in) .posted-by,
body:not(.logged-in) .byline,
body:not(.logged-in) .author.vcard,
body:not(.logged-in) .entry-meta .author,
body:not(.logged-in) .entry-meta .byline,
body:not(.logged-in) .ast-author-box,
body:not(.logged-in) .ast-archive-description .author,
body:not(.logged-in) a[rel="author"] {
  display: none !important;
}

@media (max-width: 991px) {
  .rfm-search-heading-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .rfm-search-wrapper,
  .rfm-not-found-wrapper {
    margin: 120px auto 70px auto;
    padding: 0 16px;
  }

  .rfm-empty-state {
    padding: 32px 20px;
    border-radius: 20px;
  }

  .rfm-global-search {
    grid-template-columns: 1fr;
  }

  .rfm-global-search .rfm-category-search-button {
    width: 100%;
  }
}

/* v1.0.587: 404 page follows Relax FM page layout with related posts and sidebar. */
.rfm-not-found-page {
  width: 100%;
  max-width: 1600px;
  margin: 150px auto 90px;
  padding: 0 48px;
  box-sizing: border-box;
  font-family: var(--rfm-font-main);
}

.rfm-not-found-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, calc((100% - 40px) / 3));
  gap: 40px;
  align-items: start;
}

.rfm-not-found-main {
  min-width: 0;
}

.rfm-not-found-header {
  margin: 0 0 22px;
}

.rfm-not-found-header h1 {
  margin: 12px 0 0;
  color: #261C1D;
  font-size: clamp(30px, 4.4vw, 56px);
  line-height: .98;
  font-weight: 900;
  letter-spacing: -0.055em;
}

.rfm-not-found-related {
  margin-top: 0;
  padding: clamp(20px, 2.1vw, 30px);
  border: 1px solid rgba(210, 4, 45, 0.10);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 44px rgba(38, 28, 29, 0.05);
}

.rfm-not-found-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

@media (max-width: 991px) {
  .rfm-not-found-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .rfm-not-found-page {
    margin: 120px auto 70px;
    padding: 0 16px;
  }

  .rfm-not-found-header h1 {
    font-size: clamp(30px, 12vw, 42px);
  }

  .rfm-not-found-related {
    padding: 18px;
    border-radius: 22px;
  }
}
