/*
Theme Name: Raadio1 Modern
Theme URI: https://raadio1.ee
Description: Современная воздушная тема для raadio1.ee — подкасты, транскрипты, плеер. Дочерняя тема от Podcast.
Author: raadio1.ee
Version: 1.0.0
Template: podcast
Text Domain: raadio1-modern
*/

/* ===========================================================
   RAADIO1 MODERN — глобальные переменные и сброс
   =========================================================== */

:root {
  --r1-bg: #fafafa;
  --r1-surface: #ffffff;
  --r1-surface-2: #f4f4f5;
  --r1-border: #e5e7eb;
  --r1-text: #18181b;
  --r1-text-muted: #71717a;
  --r1-text-subtle: #a1a1aa;
  --r1-accent: #6366f1;
  --r1-accent-hover: #4f46e5;
  --r1-accent-soft: #eef2ff;
  --r1-success: #10b981;
  --r1-radius-sm: 8px;
  --r1-radius: 14px;
  --r1-radius-lg: 24px;
  --r1-shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --r1-shadow: 0 4px 24px -8px rgba(0,0,0,0.08);
  --r1-shadow-lg: 0 24px 48px -16px rgba(0,0,0,0.12);
  --r1-font: "Inter", "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --r1-font-display: "Inter", "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
  --r1-container: 1200px;
  --r1-container-narrow: 820px;
}

/* Подключаем шрифт Inter, который выглядит современнее Poppins */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

/* Убираем лишние стили родительской темы там, где они мешают */
body.raadio1-modern,
body.raadio1-modern * {
  box-sizing: border-box;
}

body.raadio1-modern {
  font-family: var(--r1-font);
  background: var(--r1-bg);
  color: var(--r1-text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
}

body.raadio1-modern h1,
body.raadio1-modern h2,
body.raadio1-modern h3,
body.raadio1-modern h4 {
  font-family: var(--r1-font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--r1-text);
  margin: 0 0 0.5em;
}

body.raadio1-modern a {
  color: var(--r1-accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

body.raadio1-modern a:hover {
  color: var(--r1-accent-hover);
}

body.raadio1-modern .r1-container {
  max-width: var(--r1-container);
  margin: 0 auto;
  padding: 0 24px;
}

body.raadio1-modern .r1-container--narrow {
  max-width: var(--r1-container-narrow);
}

/* ===========================================================
   ШАПКА
   =========================================================== */

.r1-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--r1-border);
}

.r1-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 16px 0;
}

.r1-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 20px;
  color: var(--r1-text) !important;
  letter-spacing: -0.03em;
}

.r1-logo__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--r1-accent) 0%, #8b5cf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.r1-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.r1-logo__text small {
  font-size: 11px;
  font-weight: 500;
  color: var(--r1-text-muted);
  letter-spacing: 0;
}

.r1-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.r1-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  color: var(--r1-text-muted) !important;
  transition: all 0.15s ease;
}

.r1-nav a:hover,
.r1-nav .current-menu-item a,
.r1-nav .current_page_item a {
  color: var(--r1-text) !important;
  background: var(--r1-surface-2);
}

.r1-search {
  position: relative;
}

.r1-search input {
  background: var(--r1-surface-2);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 9px 14px 9px 38px;
  font-size: 14px;
  width: 240px;
  font-family: inherit;
  color: var(--r1-text);
  transition: all 0.15s ease;
}

.r1-search input:focus {
  outline: none;
  background: #fff;
  border-color: var(--r1-accent);
  box-shadow: 0 0 0 3px var(--r1-accent-soft);
}

.r1-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--r1-text-subtle);
  pointer-events: none;
}

.r1-mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  color: var(--r1-text);
  cursor: pointer;
}

@media (max-width: 860px) {
  .r1-nav, .r1-search { display: none; }
  .r1-mobile-toggle { display: block; }
  .r1-header.is-open .r1-nav,
  .r1-header.is-open .r1-search {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 16px;
  }
  .r1-header.is-open .r1-search input { width: 100%; }
  .r1-header__inner { flex-wrap: wrap; }
}

/* ===========================================================
   HERO ГЛАВНОЙ
   =========================================================== */

.r1-hero {
  padding: 80px 0 40px;
  text-align: center;
}

.r1-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--r1-accent-soft);
  color: var(--r1-accent);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.r1-hero__title {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #18181b 0%, #6366f1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.r1-hero__sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--r1-text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.r1-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--r1-text);
  color: #fff !important;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.15s ease;
}

.r1-hero__cta:hover {
  transform: translateY(-2px);
  color: #fff !important;
}

/* ===========================================================
   СЕКЦИИ
   =========================================================== */

.r1-section {
  padding: 60px 0;
}

.r1-section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
}

.r1-section__title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.r1-section__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--r1-text-muted) !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.r1-section__link:hover {
  color: var(--r1-accent) !important;
}

/* ===========================================================
   КАРТОЧКИ ЭПИЗОДОВ
   =========================================================== */

.r1-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.r1-card {
  background: var(--r1-surface);
  border: 1px solid var(--r1-border);
  border-radius: var(--r1-radius);
  overflow: hidden;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.r1-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--r1-shadow-lg);
  border-color: transparent;
}

.r1-card__cover {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--r1-accent) 0%, #8b5cf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.r1-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.r1-card__cover-num {
  font-size: 64px;
  font-weight: 800;
  color: rgba(255,255,255,0.95);
  letter-spacing: -0.04em;
  font-family: var(--r1-font-display);
}

.r1-card__play {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--r1-text);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

.r1-card:hover .r1-card__play {
  opacity: 1;
  transform: translateY(0);
}

.r1-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}

.r1-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--r1-text-muted);
  font-weight: 500;
}

.r1-card__meta-cat {
  background: var(--r1-accent-soft);
  color: var(--r1-accent);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.r1-card__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.r1-card__title a {
  color: var(--r1-text) !important;
}

.r1-card__title a:hover {
  color: var(--r1-accent) !important;
}

.r1-card__excerpt {
  font-size: 14px;
  color: var(--r1-text-muted);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.r1-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--r1-border);
  font-size: 13px;
  color: var(--r1-text-subtle);
}

/* ===========================================================
   СТРАНИЦА ЭПИЗОДА
   =========================================================== */

.r1-episode {
  padding: 40px 0 80px;
}

.r1-episode__crumbs {
  font-size: 13px;
  color: var(--r1-text-muted);
  margin-bottom: 24px;
}

.r1-episode__crumbs a {
  color: var(--r1-text-muted) !important;
}

.r1-episode__crumbs a:hover {
  color: var(--r1-accent) !important;
}

.r1-episode__hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .r1-episode__hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.r1-episode__cover {
  aspect-ratio: 1 / 1;
  border-radius: var(--r1-radius-lg);
  background: linear-gradient(135deg, var(--r1-accent) 0%, #8b5cf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--r1-shadow-lg);
  position: relative;
}

.r1-episode__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.r1-episode__cover-num {
  font-size: 96px;
  font-weight: 800;
  color: rgba(255,255,255,0.95);
  letter-spacing: -0.04em;
}

.r1-episode__head .r1-episode__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--r1-text-muted);
}

.r1-episode__cat {
  background: var(--r1-accent-soft);
  color: var(--r1-accent) !important;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.r1-episode__title {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.r1-episode__sub {
  font-size: 17px;
  color: var(--r1-text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.r1-episode__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.r1-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--r1-border);
  background: var(--r1-surface);
  color: var(--r1-text) !important;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.r1-btn:hover {
  background: var(--r1-surface-2);
  border-color: var(--r1-text-subtle);
}

.r1-btn--primary {
  background: var(--r1-text);
  color: #fff !important;
  border-color: var(--r1-text);
}

.r1-btn--primary:hover {
  background: var(--r1-accent);
  border-color: var(--r1-accent);
  color: #fff !important;
}

/* ===========================================================
   ПЛЕЕР
   =========================================================== */

.r1-player {
  background: var(--r1-text);
  color: #fff;
  border-radius: var(--r1-radius);
  padding: 24px 28px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--r1-shadow);
  position: relative;
  overflow: hidden;
}

.r1-player::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(99,102,241,0.25), transparent 60%);
  pointer-events: none;
}

.r1-player__btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  border: none;
  color: var(--r1-text);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.15s ease;
  z-index: 1;
}

.r1-player__btn:hover {
  transform: scale(1.05);
}

.r1-player__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  z-index: 1;
}

.r1-player__progress {
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.r1-player__progress-fill {
  height: 100%;
  background: var(--r1-accent);
  width: 0;
  transition: width 0.1s linear;
}

.r1-player__times {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  font-variant-numeric: tabular-nums;
}

.r1-player__placeholder {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  z-index: 1;
}

.r1-player__placeholder strong {
  color: #fff;
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.r1-player__platforms {
  display: flex;
  gap: 8px;
  z-index: 1;
  flex-wrap: wrap;
}

.r1-player__platform {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.1);
  color: #fff !important;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  transition: background 0.15s ease;
}

.r1-player__platform:hover {
  background: rgba(255,255,255,0.18);
  color: #fff !important;
}

@media (max-width: 600px) {
  .r1-player {
    flex-direction: column;
    align-items: stretch;
  }
  .r1-player__btn { align-self: center; }
}

/* ===========================================================
   ТАБЫ
   =========================================================== */

.r1-tabs {
  margin-bottom: 32px;
  border-bottom: 1px solid var(--r1-border);
  display: flex;
  gap: 4px;
  overflow-x: auto;
}

.r1-tab {
  background: none;
  border: none;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--r1-text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.15s ease;
  white-space: nowrap;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.r1-tab:hover {
  color: var(--r1-text);
}

.r1-tab.is-active {
  color: var(--r1-accent);
  border-bottom-color: var(--r1-accent);
}

.r1-tab__count {
  background: var(--r1-surface-2);
  color: var(--r1-text-muted);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.r1-tab.is-active .r1-tab__count {
  background: var(--r1-accent-soft);
  color: var(--r1-accent);
}

.r1-tab-panel {
  display: none;
  animation: r1-fade 0.3s ease;
}

.r1-tab-panel.is-active {
  display: block;
}

@keyframes r1-fade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===========================================================
   КОНТЕНТ ЭПИЗОДА
   =========================================================== */

.r1-content {
  font-size: 17px;
  line-height: 1.8;
  color: #27272a;
}

.r1-content p {
  margin: 0 0 1.2em;
}

.r1-content strong {
  color: var(--r1-text);
  font-weight: 600;
}

.r1-content h2,
.r1-content h3 {
  margin-top: 1.5em;
}

.r1-content a {
  color: var(--r1-accent);
  border-bottom: 1px solid var(--r1-accent-soft);
}

.r1-content a:hover {
  border-bottom-color: var(--r1-accent);
}

/* Транскрипт — особое оформление диалога */
.r1-transcript {
  font-size: 16px;
  line-height: 1.75;
}

.r1-transcript p {
  margin: 0 0 1.5em;
  padding-left: 0;
  position: relative;
}

.r1-transcript p:has(strong:first-child) {
  background: var(--r1-surface);
  border: 1px solid var(--r1-border);
  border-radius: var(--r1-radius-sm);
  padding: 16px 20px;
  margin-bottom: 16px;
}

.r1-transcript strong:first-child {
  display: block;
  color: var(--r1-accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

/* ===========================================================
   AS A SIDEBAR — гости/инфо
   =========================================================== */

.r1-info {
  background: var(--r1-surface);
  border: 1px solid var(--r1-border);
  border-radius: var(--r1-radius);
  padding: 24px;
  margin-bottom: 24px;
}

.r1-info__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--r1-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.r1-info__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.r1-info__list li {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--r1-text);
}

.r1-info__list li span:first-child {
  color: var(--r1-text-muted);
}

/* ===========================================================
   FOOTER
   =========================================================== */

.r1-footer {
  background: var(--r1-text);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
  margin-top: 80px;
}

.r1-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .r1-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

.r1-footer__brand {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.r1-footer__about {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
}

.r1-footer__heading {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 16px;
}

.r1-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.r1-footer__list a {
  color: rgba(255,255,255,0.7) !important;
  font-size: 14px;
  transition: color 0.15s ease;
}

.r1-footer__list a:hover {
  color: #fff !important;
}

.r1-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 16px;
}

/* ===========================================================
   PAGINATION
   =========================================================== */

.r1-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.r1-pagination a,
.r1-pagination span {
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--r1-text-muted) !important;
  background: var(--r1-surface);
  border: 1px solid var(--r1-border);
  transition: all 0.15s ease;
}

.r1-pagination a:hover,
.r1-pagination .current {
  background: var(--r1-text);
  color: #fff !important;
  border-color: var(--r1-text);
}

/* ===========================================================
   ARCHIVE / CATEGORIES
   =========================================================== */

.r1-archive-head {
  padding: 60px 0 40px;
  text-align: center;
}

.r1-archive-head__eyebrow {
  font-size: 13px;
  color: var(--r1-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 12px;
}

.r1-archive-head__title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

/* Чипы категорий */
.r1-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

.r1-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--r1-surface);
  border: 1px solid var(--r1-border);
  font-size: 13px;
  font-weight: 500;
  color: var(--r1-text) !important;
  transition: all 0.15s ease;
}

.r1-chip:hover,
.r1-chip.is-active {
  background: var(--r1-text);
  color: #fff !important;
  border-color: var(--r1-text);
}

.r1-chip__count {
  font-size: 11px;
  opacity: 0.6;
}

/* ===========================================================
   AGGREGATE PODCASTS (External feed)
   =========================================================== */

.r1-feed {
  background: var(--r1-surface);
  border: 1px solid var(--r1-border);
  border-radius: var(--r1-radius);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.2s ease;
}

.r1-feed:hover {
  box-shadow: var(--r1-shadow);
}

.r1-feed__cover {
  width: 80px;
  height: 80px;
  border-radius: var(--r1-radius-sm);
  flex-shrink: 0;
  overflow: hidden;
  background: var(--r1-surface-2);
}

.r1-feed__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.r1-feed__body {
  flex: 1;
  min-width: 0;
}

.r1-feed__source {
  font-size: 12px;
  color: var(--r1-text-muted);
  font-weight: 500;
  margin-bottom: 4px;
}

.r1-feed__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
}

.r1-feed__excerpt {
  font-size: 14px;
  color: var(--r1-text-muted);
  line-height: 1.5;
}

/* ===========================================================
   ОЧИЩАЕМ родительские стили которые мешают
   =========================================================== */

body.raadio1-modern .site,
body.raadio1-modern .site-content,
body.raadio1-modern .content-area,
body.raadio1-modern .site-main,
body.raadio1-modern article {
  background: transparent;
  padding: 0;
  margin: 0;
  max-width: none;
  border: none;
  box-shadow: none;
}

body.raadio1-modern .widget-area,
body.raadio1-modern #secondary { display: none; }

body.raadio1-modern.has-sidebar .content-area { width: 100%; }

/* ===========================================================
   HERO --full (главная)
   =========================================================== */

.r1-hero--full {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
}

.r1-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.r1-hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.r1-hero__blob--1 {
  width: 500px; height: 500px;
  background: #6366f1;
  top: -200px; left: -100px;
  opacity: 0.25;
}

.r1-hero__blob--2 {
  width: 400px; height: 400px;
  background: #ec4899;
  top: 100px; right: -100px;
  opacity: 0.18;
}

.r1-hero__blob--3 {
  width: 300px; height: 300px;
  background: #06b6d4;
  bottom: -100px; left: 30%;
  opacity: 0.15;
}

.r1-hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 920px) {
  .r1-hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .r1-hero__visual { display: none; }
}

.r1-hero__copy { text-align: left; }

.r1-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--r1-border);
  color: var(--r1-text);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 28px;
  box-shadow: var(--r1-shadow-sm);
}

.r1-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #10b981;
  position: relative;
  flex-shrink: 0;
}

.r1-pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: #10b981;
  opacity: 0.4;
  animation: r1-pulse 2s ease-out infinite;
}

@keyframes r1-pulse {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(2); opacity: 0; }
}

.r1-hero--full .r1-hero__title {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  color: var(--r1-text);
  -webkit-text-fill-color: var(--r1-text);
  background: none;
}

.r1-grad {
  background: linear-gradient(135deg, #6366f1 0%, #ec4899 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.r1-hero--full .r1-hero__sub {
  font-size: 18px;
  color: var(--r1-text-muted);
  max-width: 540px;
  margin: 0 0 32px;
  line-height: 1.6;
}

.r1-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.r1-hero__cta--ghost {
  background: transparent !important;
  color: var(--r1-text) !important;
  border: 1px solid var(--r1-border);
}

.r1-hero__cta--ghost:hover {
  background: var(--r1-surface-2) !important;
  color: var(--r1-text) !important;
}

.r1-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 24px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--r1-border);
  border-radius: var(--r1-radius);
  box-shadow: var(--r1-shadow-sm);
}

@media (max-width: 540px) {
  .r1-hero__stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

.r1-stat {
  text-align: center;
  padding: 8px;
}

.r1-stat__num {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #18181b, #6366f1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.r1-stat__label {
  font-size: 12px;
  color: var(--r1-text-muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* Floating stack of cards */
.r1-hero__visual {
  position: relative;
  height: 480px;
}

.r1-stack {
  position: absolute;
  width: 100%;
  background: #fff;
  border: 1px solid var(--r1-border);
  border-radius: var(--r1-radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--r1-shadow-lg);
  text-decoration: none;
  color: var(--r1-text) !important;
  transition: all 0.3s ease;
}

.r1-stack:hover { transform: translateY(-4px) rotate(0deg) !important; }

.r1-stack--1 { top: 30px;   right: 0; transform: rotate(2deg); z-index: 3; }
.r1-stack--2 { top: 130px;  right: 40px; transform: rotate(-3deg); z-index: 2; opacity: 0.95; }
.r1-stack--3 { top: 230px;  right: 10px; transform: rotate(4deg); z-index: 1; opacity: 0.9; }

.r1-stack__cover {
  width: 70px; height: 70px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  overflow: hidden;
}

.r1-stack__cover img { width: 100%; height: 100%; object-fit: cover; }

.r1-stack__body { flex: 1; min-width: 0; }

.r1-stack__cat {
  font-size: 11px;
  font-weight: 600;
  color: var(--r1-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.r1-stack__title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--r1-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===========================================================
   FEATURED банер
   =========================================================== */

.r1-featured-wrap { padding: 20px 0 60px; }

.r1-featured {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 0;
  border-radius: var(--r1-radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: #fff !important;
  position: relative;
  min-height: 320px;
  box-shadow: var(--r1-shadow-lg);
  transition: transform 0.3s ease;
}

.r1-featured::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}

.r1-featured:hover { transform: scale(1.005); }

@media (max-width: 768px) {
  .r1-featured { grid-template-columns: 1fr; }
}

.r1-featured__cover {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  overflow: hidden;
}

.r1-featured__cover img { width: 100%; height: 100%; object-fit: cover; }

.r1-featured__num {
  font-size: 120px;
  font-weight: 800;
  color: rgba(255,255,255,0.95);
  letter-spacing: -0.04em;
}

.r1-featured__body {
  position: relative;
  z-index: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.r1-featured__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  width: fit-content;
}

.r1-featured__title {
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff !important;
  margin: 0;
}

.r1-featured__excerpt {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.r1-featured__meta {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

.r1-featured__cta { margin-top: 8px; }

.r1-btn--white {
  background: #fff !important;
  color: var(--r1-text) !important;
  border-color: #fff !important;
}

/* ===========================================================
   SECTION eyebrow
   =========================================================== */

.r1-section__eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: var(--r1-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.r1-section--narrow { padding: 40px 0; }

/* ===========================================================
   CAT GRID — большие карточки категорий
   =========================================================== */

.r1-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.r1-cat-card {
  position: relative;
  border-radius: var(--r1-radius);
  padding: 28px;
  min-height: 200px;
  color: #fff !important;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.r1-cat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.2), transparent 70%);
  pointer-events: none;
}

.r1-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--r1-shadow-lg);
}

.r1-cat-card__top {
  display: flex;
  align-items: baseline;
  gap: 6px;
  z-index: 1;
}

.r1-cat-card__count {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.r1-cat-card__count-label {
  font-size: 14px;
  opacity: 0.85;
  font-weight: 500;
}

.r1-cat-card__bottom { z-index: 1; }

.r1-cat-card__name {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
  color: #fff !important;
}

.r1-cat-card__latest {
  font-size: 13px;
  opacity: 0.85;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.r1-cat-card__arrow {
  position: absolute;
  bottom: 24px;
  right: 24px;
  opacity: 0.7;
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 1;
}

.r1-cat-card:hover .r1-cat-card__arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* ===========================================================
   ROW (горизонтальный скролл)
   =========================================================== */

.r1-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) {
  .r1-row { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .r1-row {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 -24px;
    padding: 0 24px 8px;
    gap: 16px;
    -webkit-overflow-scrolling: touch;
  }
  .r1-row > .r1-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
  }
}

/* ===========================================================
   SPEAKERS
   =========================================================== */

.r1-speakers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.r1-speaker {
  text-align: center;
  padding: 24px 16px;
  background: var(--r1-surface);
  border: 1px solid var(--r1-border);
  border-radius: var(--r1-radius);
  transition: all 0.2s ease;
}

.r1-speaker:hover {
  transform: translateY(-2px);
  box-shadow: var(--r1-shadow);
}

.r1-speaker__avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
}

.r1-speaker__name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.r1-speaker__count {
  font-size: 12px;
  color: var(--r1-text-muted);
}

/* ===========================================================
   CTA STRIP
   =========================================================== */

.r1-cta-strip {
  background: linear-gradient(135deg, #18181b 0%, #312e81 100%);
  border-radius: var(--r1-radius-lg);
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.r1-cta-strip::before {
  content: "";
  position: absolute;
  top: -50%; right: -10%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.4), transparent 70%);
  pointer-events: none;
}

@media (max-width: 768px) {
  .r1-cta-strip {
    grid-template-columns: 1fr;
    padding: 36px 28px;
  }
}

.r1-cta-strip__eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.r1-cta-strip__title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff !important;
  margin: 0 0 12px;
  position: relative;
  z-index: 1;
}

.r1-cta-strip__sub {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  margin: 0;
  position: relative;
  z-index: 1;
  line-height: 1.5;
}

.r1-cta-strip__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.r1-cta-strip .r1-btn {
  background: rgba(255,255,255,0.1) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,0.2) !important;
}

.r1-cta-strip .r1-btn:hover {
  background: rgba(255,255,255,0.18) !important;
}

.r1-cta-strip .r1-btn--primary {
  background: #fff !important;
  color: var(--r1-text) !important;
  border-color: #fff !important;
}

.r1-cta-strip .r1-btn--primary:hover {
  background: var(--r1-accent) !important;
  color: #fff !important;
  border-color: var(--r1-accent) !important;
}

/* ===========================================================
   FEED CARDS (Eesti podcastid)
   =========================================================== */

.r1-feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.r1-feed-card {
  background: var(--r1-surface);
  border: 1px solid var(--r1-border);
  border-radius: var(--r1-radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--r1-text) !important;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.r1-feed-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--r1-shadow-lg);
  border-color: transparent;
}

.r1-feed-card__cover {
  position: relative;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.r1-feed-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.r1-feed-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
}

.r1-feed-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.r1-feed-card__cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--r1-accent);
}

.r1-feed-card__name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--r1-text);
}

.r1-feed-card__tagline {
  font-size: 13px;
  color: var(--r1-text-muted);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.r1-feed-card__latest {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--r1-border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.r1-feed-card__latest-eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--r1-text-subtle);
  font-weight: 600;
}

.r1-feed-card__latest-title {
  font-size: 13px;
  color: var(--r1-text);
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.r1-feed-card__latest-date {
  font-size: 11px;
  color: var(--r1-text-muted);
  margin-top: 2px;
}

/* ===========================================================
   FEED HERO (single show)
   =========================================================== */

.r1-feed-hero {
  border-radius: var(--r1-radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  color: #fff;
  margin: 24px 0 8px;
  position: relative;
  overflow: hidden;
}

.r1-feed-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(255,255,255,0.2), transparent 60%);
  pointer-events: none;
}

@media (max-width: 768px) {
  .r1-feed-hero {
    grid-template-columns: 1fr;
    padding: 28px;
    gap: 24px;
    text-align: center;
  }
}

.r1-feed-hero__cover {
  aspect-ratio: 1 / 1;
  border-radius: var(--r1-radius);
  overflow: hidden;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.3);
  position: relative;
  z-index: 1;
}

.r1-feed-hero__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.r1-feed-hero__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.r1-feed-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  justify-content: flex-start;
}

@media (max-width: 768px) {
  .r1-feed-hero__chips { justify-content: center; }
}

.r1-feed-hero__chip {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
}

.r1-feed-hero__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff !important;
  margin: 0 0 12px;
  line-height: 1.1;
}

.r1-feed-hero__desc {
  color: rgba(255,255,255,0.85);
  font-size: 16px;
  margin: 0 0 24px;
  max-width: 540px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .r1-feed-hero__desc { margin-left: auto; margin-right: auto; }
}

.r1-feed-hero__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .r1-feed-hero__actions { justify-content: center; }
}

.r1-btn--ghost-white {
  background: rgba(255,255,255,0.15) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
}

.r1-btn--ghost-white:hover {
  background: rgba(255,255,255,0.25) !important;
  color: #fff !important;
}

/* ===========================================================
   EPISODES LIST (внутри одного шоу)
   =========================================================== */

.r1-episodes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 120px; /* место для sticky-плеера */
}

.r1-ep {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  background: var(--r1-surface);
  border: 1px solid var(--r1-border);
  border-radius: var(--r1-radius);
  transition: all 0.18s ease;
}

.r1-ep:hover {
  border-color: var(--r1-text-subtle);
  box-shadow: var(--r1-shadow-sm);
}

.r1-ep.is-playing {
  border-color: var(--r1-accent);
  background: var(--r1-accent-soft);
}

.r1-ep__play {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--r1-text);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
  position: relative;
}

.r1-ep__play:hover {
  background: var(--r1-accent);
  transform: scale(1.05);
}

.r1-ep__icon-pause { display: none; }

.r1-ep.is-playing .r1-ep__play { background: var(--r1-accent); }
.r1-ep.is-playing .r1-ep__icon-play { display: none; }
.r1-ep.is-playing .r1-ep__icon-pause { display: block; }

.r1-ep__body {
  flex: 1;
  min-width: 0;
}

.r1-ep__title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--r1-text);
  line-height: 1.4;
}

.r1-ep__desc {
  font-size: 13px;
  color: var(--r1-text-muted);
  margin: 0 0 6px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.r1-ep__meta {
  font-size: 12px;
  color: var(--r1-text-muted);
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .r1-ep { padding: 14px; gap: 12px; }
  .r1-ep__play { width: 42px; height: 42px; }
  .r1-ep__title { font-size: 14px; }
  .r1-ep__desc { display: none; }
}

/* ===========================================================
   STICKY MINI PLAYER
   =========================================================== */

.r1-mini-player {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1000;
  background: rgba(24, 24, 27, 0.96);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  color: #fff;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 12px 0;
  transform: translateY(110%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.r1-mini-player.is-active {
  transform: translateY(0);
}

.r1-mini-player__inner {
  max-width: var(--r1-container);
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 56px 1fr 56px 2fr 36px;
  gap: 16px;
  align-items: center;
}

@media (max-width: 768px) {
  .r1-mini-player__inner {
    grid-template-columns: 48px 1fr 48px 30px;
    gap: 12px;
    padding: 0 12px;
  }
  .r1-mini-player__progress { display: none; }
}

.r1-mini-player__cover {
  width: 56px; height: 56px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .r1-mini-player__cover { width: 48px; height: 48px; }
}

.r1-mini-player__info {
  min-width: 0;
}

.r1-mini-player__title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.r1-mini-player__show {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.r1-mini-player__btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #fff;
  color: var(--r1-text);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

.r1-mini-player__btn:hover { transform: scale(1.06); }

.r1-mini-player.is-loading .r1-mini-player__btn {
  background: rgba(255,255,255,0.4);
  cursor: wait;
}

.r1-mini-player.is-paused .r1-ep__icon-pause,
.r1-mini-player:not(.is-playing) .r1-ep__icon-pause { display: none; }

.r1-mini-player.is-playing .r1-ep__icon-play { display: none; }
.r1-mini-player.is-playing .r1-ep__icon-pause { display: block; }

.r1-mini-player__progress {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.r1-mini-player__progress input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}

.r1-mini-player__progress input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.r1-mini-player__progress input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  border: none;
  cursor: pointer;
}

.r1-mini-player__times {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  font-variant-numeric: tabular-nums;
}

.r1-mini-player__close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.r1-mini-player__close:hover { background: rgba(255,255,255,0.2); }

.r1-mini-player audio { display: none; }
