/* ==========================================================
   Reader21 - Player Round
   ========================================================== */

.r21-round,
.r21-round * {
  box-sizing: border-box;
  font-family: inherit !important;
  line-height: normal;
  color: inherit;
  fill: currentColor;
  text-decoration: none;
  border: 0;
  outline: 0;
  background: none;
}

.r21-round {
  --r21-accent: #fedd00;
  --r21-surface: #ffffff;
  --r21-text: #111827;
  --r21-muted: #6b7280;
  width: 100% !important;
  max-width: 900px;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 12px auto;
  padding: 14px 16px;
  display: block !important;
  background: var(--r21-surface);
  color: var(--r21-text);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  isolation: isolate;
  user-select: none;
}

.r21-round > * {
  flex: none !important;
}

.r21-round > audio {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.r21-round .r21-main-row {
  display: grid !important;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 14px;
  row-gap: 0;
  width: 100%;
  min-width: 0;
  margin: 0 !important;
  min-height: 0 !important;
  height: auto !important;
}

.r21-round .r21-main-row > p:empty {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.r21-round .r21-left {
  display: flex;
  align-items: center;
  justify-content: center;
}

.r21-round .r21-center {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.r21-round .r21-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.r21-round .r21-btn.r21-play {
  appearance: none;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(17, 24, 39, 0.22);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.r21-round .r21-btn.r21-play:hover {
  background: var(--r21-accent);
  color: #111827;
  transform: scale(1.04);
}

.r21-round .r21-btn.r21-play svg {
  display: block;
  width: 16px;
  height: 16px;
}

.r21-round .r21-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--r21-muted);
}

.r21-round .r21-title-main {
  display: inline;
}

.r21-round .r21-title-ad {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.r21-round .r21-title-ad-sub {
  opacity: 0.84;
  font-weight: 600;
}

.r21-round .r21-progress {
  position: relative;
  height: 6px;
  background: #111827;
  border-radius: 999px;
  overflow: visible;
  cursor: pointer;
}

.r21-round .r21-progress-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  height: 100%;
  background: var(--r21-accent);
  border-radius: 999px;
}

.r21-round .r21-progress-handle {
  position: absolute;
  right: -10px;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--r21-accent);
  transform: translateY(-50%);
  box-shadow:
    0 0 0 3px #ffffff,
    0 0 8px rgba(254, 221, 0, 0.85),
    0 0 16px rgba(254, 221, 0, 0.55);
  pointer-events: none;
  z-index: 2;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.r21-round .r21-progress:hover .r21-progress-handle {
  transform: translateY(-50%) scale(1.12);
}

.r21-round .r21-time {
  display: grid;
  grid-template-columns: minmax(42px, 1fr) auto minmax(42px, 1fr);
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--r21-text);
}

.r21-round .r21-current {
  justify-self: start;
}

.r21-round .r21-duration {
  justify-self: end;
}

.r21-round .r21-brand-inline__text {
  font-size: 7px;
}

.r21-round .r21-brand-inline__logo {
  padding-top: 4px;
  padding-bottom: 4px;
}

.r21-round .r21-brand-inline__logo-text {
  font-size: 11px;
}

.r21-round .r21-rate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #111827;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.r21-round .r21-rate:hover {
  background: var(--r21-accent);
  color: #111827;
}

.r21-round .r21-rate:active {
  transform: scale(0.96);
}

.r21-round .r21-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111827 !important;
  font-size: 18px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.r21-round .r21-download:hover {
  color: var(--r21-accent) !important;
}

.r21-round .r21-ad-banner {
  display: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  line-height: 1;
  color: inherit !important;
  text-decoration: none !important;
}

.r21-round .r21-ad-banner[hidden] {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

.r21-round.r21-banner-visible .r21-ad-banner,
.r21-round.r21-show-ad .r21-ad-banner {
  display: flex !important;
  margin-top: 10px !important;
}

.r21-round .r21-ad-label {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  margin: 0 !important;
  padding: 6px 10px;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.r21-round .r21-ad-frame {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  line-height: 0;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.r21-round .r21-ad-banner img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  vertical-align: top;
}

.r21-round .r21-ad-banner:hover .r21-ad-frame {
  transform: translateY(-1px);
  box-shadow: 0 14px 22px rgba(15, 23, 42, 0.16);
}

.r21-round.r21-show-ad .r21-title-main {
  display: none;
}

.r21-round.r21-show-ad .r21-title-ad {
  display: inline-flex;
}

.r21-round.r21-show-ad .r21-progress {
  cursor: not-allowed;
  opacity: 0.78;
}

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

@media (max-width: 640px) {
  .r21-round {
    padding: 12px;
    gap: 8px;
  }

  .r21-round .r21-main-row {
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 8px;
    column-gap: 0;
  }

  .r21-round .r21-left,
  .r21-round .r21-right {
    justify-content: center;
    width: 100%;
  }

  .r21-round .r21-center {
    width: 100%;
  }

  .r21-round .r21-btn.r21-play {
    width: 44px;
    height: 44px;
  }

  .r21-round .r21-title {
    justify-content: center;
    font-size: 11px;
    margin-bottom: 4px;
    text-align: center;
  }

  .r21-round .r21-time {
    margin-top: 4px;
    font-size: 11px;
  }

  .r21-round .r21-right {
    gap: 8px;
  }

  .r21-round .r21-rate {
    min-width: 0;
    font-size: 10px;
  }

  .r21-round .r21-ad-label {
    align-self: center;
  }

  .r21-round .r21-ad-frame {
    border-radius: 14px;
  }

  .r21-round.r21-show-ad .r21-right,
  .r21-round.r21-show-ad .r21-time {
    display: none;
  }
}
