
/* ==========================================================================
   Relax FM home shortcodes: Vienos temos dainos, Lietuviska premjera, Atlikejai
   ========================================================================== */
.rfm-vt-section,
.rfm-pr-section,
.rfm-art-section {
  width: 100%;
  max-width: 1600px;
  margin: 24px auto;
  padding: 0 48px;
  box-sizing: border-box;
  background: transparent;
  font-family: var(--rfm-font-main);
}
.rfm-art-section { margin-bottom: 30px; }
.rfm-vt-inner,
.rfm-pr-inner,
.rfm-art-inner { max-width: none; margin: 0; padding: 0; }
.rfm-vt-header,
.rfm-pr-header,
.rfm-art-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.rfm-art-header { margin-bottom: 24px; }
.rfm-vt-title-wrap,
.rfm-pr-title-wrap,
.rfm-art-title-wrap { 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-section-title-link { text-decoration: none !important; cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.rfm-section-title-link:hover { background: rgba(210, 4, 45, 0.12); border-color: rgba(210, 4, 45, 0.32); transform: translateY(-1px); }
.rfm-section-title-link:focus-visible { outline: 2px solid rgba(210, 4, 45, 0.45); outline-offset: 3px; }
.rfm-vt-title-dot,
.rfm-pr-title-dot,
.rfm-art-title-dot { width: 7px; height: 7px; border-radius: 50%; background: #D2042D; }
.rfm-vt-title-text,
.rfm-pr-title-text,
.rfm-art-title-text { font-size: 11px; font-weight: 800; color: #D2042D; letter-spacing: 1.2px; text-transform: uppercase; }
.rfm-vt-see-all,
.rfm-pr-see-all,
.rfm-art-see-all { font-size: 12px; font-weight: 700; color: #D2042D; text-decoration: none; border-bottom: 2px solid rgba(210, 4, 45, 0.3); transition: all 0.2s ease; letter-spacing: 0.5px; }
.rfm-vt-see-all:hover,
.rfm-pr-see-all:hover,
.rfm-art-see-all:hover { border-color: #D2042D; }

/* Vienos temos dainos */
.rfm-vt-slider-wrapper { position: relative; }
.rfm-vt-slider-wrapper::after { content: ''; position: absolute; top: 0; right: 0; width: 120px; height: 100%; background: linear-gradient(to right, transparent, rgba(250, 246, 245, 0.98)); pointer-events: none; z-index: 10; }
.rfm-vt-slider { display: flex; gap: 18px; overflow-x: auto; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; padding-bottom: 12px; scrollbar-width: none; }
.rfm-vt-slider::-webkit-scrollbar { display: none; }
.rfm-vt-card { flex: 0 0 calc(25% - 14px); min-width: 220px; position: relative; border-radius: 16px; overflow: hidden; text-decoration: none; display: block; box-shadow: 0 8px 25px rgba(38, 28, 29, 0.08); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); aspect-ratio: 16/9; background: #e0d0d2; }
.rfm-vt-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(210, 4, 45, 0.15); }
.rfm-vt-card-img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; transition: transform 0.4s ease; }
.rfm-vt-card:hover .rfm-vt-card-img { transform: scale(1.04); }
.rfm-vt-card-overlay { 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: 2; }
.rfm-vt-card-info { position: absolute; bottom: 14px; left: 12px; right: 12px; z-index: 3; background: rgba(255, 255, 255, 0.12); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 10px; padding: 10px 14px; }
.rfm-vt-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); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rfm-vt-card:nth-child(4) { opacity: 0.6; }

/* Lietuviska premjera */
.rfm-pr-grid { display: flex; flex-direction: column; gap: 18px; }
.rfm-pr-row { display: grid; gap: 18px; }
.rfm-pr-row-2 { grid-template-columns: 1fr 1fr; }
.rfm-pr-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.rfm-pr-card { position: relative; border-radius: 16px; overflow: hidden; text-decoration: none; display: block; box-shadow: 0 8px 25px rgba(38, 28, 29, 0.08); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); aspect-ratio: 16/9; background: #e0d0d2; }
.rfm-pr-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(210, 4, 45, 0.15); }
.rfm-pr-card-img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; transition: transform 0.4s ease; }
.rfm-pr-card:hover .rfm-pr-card-img { transform: scale(1.04); }
.rfm-pr-card-overlay { 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: 2; }
.rfm-pr-card-info { position: absolute; bottom: 14px; left: 12px; right: 12px; z-index: 3; background: rgba(255, 255, 255, 0.12); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 10px; padding: 10px 14px; }
.rfm-pr-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); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Atlikejai */
/* v1.0.154: home artist marquee no longer scales on hover, so round portraits do not get clipped by the top mask/frame. */
.rfm-art-marquee-wrapper { position: relative; overflow: hidden; }
.rfm-art-marquee-wrapper::before,
.rfm-art-marquee-wrapper::after { content: ''; position: absolute; top: 0; width: 120px; height: 100%; z-index: 10; pointer-events: none; }
.rfm-art-marquee-wrapper::before { left: 0; background: linear-gradient(to right, rgba(250, 246, 245, 0.98), transparent); }
.rfm-art-marquee-wrapper::after { right: 0; background: linear-gradient(to left, rgba(250, 246, 245, 0.98), transparent); }
.rfm-art-marquee-track { display: flex; gap: 24px; width: max-content; animation: rfm-artists-scroll 190s linear infinite; align-items: flex-start; padding-bottom: 8px; }
.rfm-art-marquee-track:hover { animation-play-state: paused; }
@keyframes rfm-artists-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.rfm-art-card { flex: 0 0 146px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; transition: transform 0.2s ease; }
.rfm-art-card:hover { transform: none; }
.rfm-art-bubble { width: 132px; height: 132px; border-radius: 50%; overflow: hidden; position: relative; box-shadow: 0 6px 20px rgba(38, 28, 29, 0.12); border: 3px solid rgba(255, 255, 255, 0.8); flex-shrink: 0; transition: all 0.3s ease; background: #D2042D; }
.rfm-art-card:hover .rfm-art-bubble { box-shadow: 0 10px 30px rgba(210, 4, 45, 0.25); border-color: #D2042D; transform: none; }
.rfm-art-bubble img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rfm-art-initials { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; color: #FFFFFF; text-transform: uppercase; letter-spacing: -1px; background: linear-gradient(135deg, #D2042D 0%, #8B0018 100%); }
.rfm-art-name { font-size: 12.5px; font-weight: 700; color: #261C1D; text-align: center; line-height: 1.25; max-width: 140px; min-height: 31px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }

@media (max-width: 1400px) {
  .rfm-vt-section,
  .rfm-pr-section,
  .rfm-art-section { padding-left: 32px; padding-right: 32px; }
  .rfm-vt-card { flex: 0 0 calc(28% - 14px); }
}
@media (max-width: 991px) {
  .rfm-vt-card { flex: 0 0 calc(40% - 14px); }
  .rfm-vt-card:nth-child(4) { opacity: 1; }
}
@media (max-width: 768px) {
  .rfm-vt-section,
  .rfm-pr-section,
  .rfm-art-section { padding-left: 16px; padding-right: 16px; margin-top: 22px; margin-bottom: 22px; }
  .rfm-art-section { margin-bottom: 24px; }
  .rfm-vt-card { flex: 0 0 calc(70% - 14px); min-width: 200px; }
  .rfm-vt-slider-wrapper::after { width: 60px; }
  .rfm-pr-row-2 { grid-template-columns: 1fr; }
  .rfm-pr-row-3 { grid-template-columns: 1fr 1fr; }
  .rfm-art-bubble { width: 98px; height: 98px; }
  .rfm-art-card { flex: 0 0 112px; gap: 8px; }
  .rfm-art-name { font-size: 11px; max-width: 108px; min-height: 28px; }
  .rfm-art-initials { font-size: 22px; }
  .rfm-art-marquee-track { gap: 16px; animation-duration: 60s; }
  .rfm-art-marquee-wrapper::before,
  .rfm-art-marquee-wrapper::after { width: 60px; }
}
@media (max-width: 480px) { .rfm-pr-row-3 { grid-template-columns: 1fr; } }


/* v1.0.279 - Mobile Lietuviska premjera peek carousel
   On phones show one full item and only a small part of the next one. */
@media (max-width: 768px) {
  .rfm-pr-grid {
    position: relative !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    scrollbar-width: none !important;
    padding: 0 34px 12px 0 !important;
    margin-right: -16px !important;
  }

  .rfm-pr-grid::-webkit-scrollbar {
    display: none !important;
  }

  .rfm-pr-row {
    display: contents !important;
  }

  .rfm-pr-row-2,
  .rfm-pr-row-3 {
    grid-template-columns: none !important;
  }

  .rfm-pr-card {
    flex: 0 0 calc(100% - 42px) !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    scroll-snap-align: start !important;
    transform: none !important;
  }

  .rfm-pr-card:hover {
    transform: none !important;
  }
}

@media (max-width: 380px) {
  .rfm-pr-grid {
    padding-right: 30px !important;
    margin-right: -12px !important;
  }

  .rfm-pr-card {
    flex-basis: calc(100% - 38px) !important;
  }
}


/* v1.0.280 - Mobile peek fade for Lietuviska premjera, matching Vienos temos dainos edge hint */
@media (max-width: 768px) {
  .rfm-pr-grid {
    mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 58px), rgba(0, 0, 0, .18) 92%, rgba(0, 0, 0, 0) 100%) !important;
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 58px), rgba(0, 0, 0, .18) 92%, rgba(0, 0, 0, 0) 100%) !important;
  }
}

@media (max-width: 380px) {
  .rfm-pr-grid {
    mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 50px), rgba(0, 0, 0, .18) 92%, rgba(0, 0, 0, 0) 100%) !important;
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 50px), rgba(0, 0, 0, .18) 92%, rgba(0, 0, 0, 0) 100%) !important;
  }
}

/* v1.0.472 - Homepage split block: Vienos temos dainos + Horoskopai */
.rfm-vt-duo-section .rfm-vt-inner {
  max-width: none;
}

.rfm-vt-duo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.rfm-vt-duo-panel {
  min-width: 0;
}

.rfm-vt-duo-header {
  justify-content: flex-start;
  margin-bottom: 20px;
}

.rfm-vt-duo-card {
  width: 100%;
  min-width: 0;
  flex: none;
}

.rfm-vt-duo-panel--horoscopes .rfm-vt-card {
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, .22), transparent 54%),
    linear-gradient(135deg, rgba(210, 4, 45, .14), rgba(250, 246, 245, .62));
}

.rfm-vt-duo-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, .58);
  border: 1px dashed rgba(210, 4, 45, .24);
  color: #6B6061;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 8px 25px rgba(38, 28, 29, .04);
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .rfm-vt-duo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .rfm-vt-duo-header {
    margin-bottom: 14px;
  }
}


/* v1.0.787 - Homepage artists: static desktop row and touch-only mobile rail.
   Removes the duplicated marquee track and all continuous animation work. */
@media (min-width: 769px) {
  .home .rfm-art-marquee-wrapper,
  .front-page .rfm-art-marquee-wrapper {
    overflow: hidden !important;
  }

  .home .rfm-art-marquee-wrapper::before,
  .home .rfm-art-marquee-wrapper::after,
  .front-page .rfm-art-marquee-wrapper::before,
  .front-page .rfm-art-marquee-wrapper::after {
    display: none !important;
  }

  .home .rfm-art-marquee-track,
  .front-page .rfm-art-marquee-track {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    gap: 24px !important;
    overflow: hidden !important;
    animation: none !important;
    transform: none !important;
    will-change: auto !important;
  }

  .home .rfm-art-marquee-track > .rfm-art-card,
  .front-page .rfm-art-marquee-track > .rfm-art-card {
    display: flex;
  }

  /* 1600px content area: eight full cards, with no clipped partial card. */
  .home .rfm-art-marquee-track > .rfm-art-card:nth-child(n+9),
  .front-page .rfm-art-marquee-track > .rfm-art-card:nth-child(n+9) {
    display: none !important;
  }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  .home .rfm-art-marquee-track > .rfm-art-card:nth-child(n+8),
  .front-page .rfm-art-marquee-track > .rfm-art-card:nth-child(n+8) {
    display: none !important;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .home .rfm-art-marquee-track > .rfm-art-card:nth-child(n+7),
  .front-page .rfm-art-marquee-track > .rfm-art-card:nth-child(n+7) {
    display: none !important;
  }
}

@media (min-width: 769px) and (max-width: 991px) {
  .home .rfm-art-marquee-track > .rfm-art-card:nth-child(n+6),
  .front-page .rfm-art-marquee-track > .rfm-art-card:nth-child(n+6) {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .home .rfm-art-marquee-wrapper,
  .front-page .rfm-art-marquee-wrapper {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    scrollbar-width: none;
    margin-right: -16px;
    padding-right: 16px;
  }

  .home .rfm-art-marquee-wrapper::-webkit-scrollbar,
  .front-page .rfm-art-marquee-wrapper::-webkit-scrollbar {
    display: none;
  }

  .home .rfm-art-marquee-wrapper::before,
  .front-page .rfm-art-marquee-wrapper::before {
    display: none !important;
  }

  .home .rfm-art-marquee-wrapper::after,
  .front-page .rfm-art-marquee-wrapper::after {
    display: none !important;
  }

  .home .rfm-art-marquee-track,
  .front-page .rfm-art-marquee-track {
    width: max-content !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    gap: 16px !important;
    overflow: visible !important;
    animation: none !important;
    transform: none !important;
    will-change: auto !important;
    padding-right: 18px !important;
  }

  .home .rfm-art-marquee-track > .rfm-art-card,
  .front-page .rfm-art-marquee-track > .rfm-art-card {
    display: flex !important;
  }
}
