/* Кнопка и модалка «От автора о своём плеере» */
.author-card__note {
  display: flex;
  justify-content: center;
  margin-top: 0.55rem;
  width: 100%;
}

.btn--author-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  padding: 0.52rem 0.9rem;
  font-size: 0.86rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent) !important;
  background:
    linear-gradient(145deg, rgba(255, 253, 249, 0.96) 0%, rgba(244, 235, 232, 0.98) 100%);
  border: 1px solid rgba(107, 45, 74, 0.28);
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(107, 45, 74, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn--author-note:hover {
  transform: translateY(-1px);
  border-color: rgba(107, 45, 74, 0.45);
  box-shadow: 0 6px 18px rgba(107, 45, 74, 0.14);
}

.btn--author-note:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
}

.author-note-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(0.75rem, env(safe-area-inset-top, 0px))
    max(0.75rem, env(safe-area-inset-right, 0px))
    max(0.75rem, env(safe-area-inset-bottom, 0px))
    max(0.75rem, env(safe-area-inset-left, 0px));
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.author-note-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.author-note-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 26, 36, 0.62);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.author-note-modal__panel {
  position: relative;
  z-index: 1;
  width: min(34rem, calc(100vw - 1.5rem));
  max-height: min(90dvh, 720px);
  overflow: auto;
  padding: 1.35rem 1.35rem 1.25rem;
  border-radius: 20px;
  border: 2px solid var(--accent);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(107, 45, 74, 0.1) 0%, transparent 55%),
    radial-gradient(90% 70% at 100% 100%, rgba(143, 61, 98, 0.08) 0%, transparent 50%),
    linear-gradient(155deg, #fffdf9 0%, #f8f0ec 48%, #f3e8ef 100%);
  box-shadow:
    0 24px 64px rgba(30, 26, 36, 0.28),
    0 0 0 1px rgba(255, 253, 249, 0.5) inset;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.28s cubic-bezier(0.34, 1.35, 0.64, 1);
}

.author-note-modal.is-open .author-note-modal__panel {
  transform: translateY(0) scale(1);
}

.author-note-modal__panel::before {
  content: "\201E";
  position: absolute;
  top: 0.15rem;
  right: 1.1rem;
  font-size: 4.5rem;
  line-height: 1;
  color: rgba(107, 45, 74, 0.1);
  pointer-events: none;
  font-family: Georgia, "Times New Roman", serif;
}

.author-note-modal__glow {
  position: absolute;
  inset: -30% auto auto -20%;
  width: 55%;
  height: 55%;
  background: radial-gradient(circle, rgba(107, 45, 74, 0.16) 0%, transparent 68%);
  pointer-events: none;
  animation: author-note-glow 8s ease-in-out infinite alternate;
}

@keyframes author-note-glow {
  from { transform: translate(0, 0) scale(1); opacity: 0.65; }
  to { transform: translate(6%, 4%) scale(1.08); opacity: 1; }
}

.author-note-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 3;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.95);
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.author-note-modal__close:hover {
  background: #f3e8ef;
}

.author-note-modal__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-right: 2rem;
}

.author-note-modal__photo-wrap {
  flex: 0 0 auto;
  width: 100px;
  height: 100px;
  border-radius: 18px;
  padding: 3px;
  background: linear-gradient(145deg, var(--accent-soft), var(--accent));
  box-shadow: 0 8px 22px rgba(107, 45, 74, 0.22);
}

.author-note-modal__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  background: #ebe6f0;
}

.author-note-modal__meta {
  min-width: 0;
}

.author-note-modal__eyebrow {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-soft);
  line-height: 1.25;
}

.author-note-modal__title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.25;
  color: var(--accent);
}

.author-note-modal__text {
  position: relative;
  z-index: 1;
  margin: 0 0 1.15rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  font-size: 0.94rem;
  line-height: 1.62;
  color: var(--muted);
  background: rgba(255, 253, 249, 0.82);
  border: 1px solid rgba(107, 45, 74, 0.12);
  box-shadow: 0 2px 12px rgba(30, 26, 36, 0.04);
}

.author-note-modal__actions {
  position: relative;
  z-index: 1;
  margin-top: 0;
}

.author-note-modal__actions.author-card__actions {
  flex-wrap: nowrap;
}

.author-note-modal__actions .btn {
  border-radius: 8px;
}

body.author-note-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .btn--author-note {
    width: 100%;
    min-height: 2.75rem;
    font-size: 0.82rem;
    padding: 0.55rem 0.85rem;
    box-sizing: border-box;
  }

  .author-note-modal__panel {
    width: min(34rem, calc(100vw - 1rem));
    padding: 1.15rem 1rem 1.1rem;
  }

  .author-note-modal__eyebrow {
    font-size: 1.05rem;
    line-height: 1.3;
  }

  .author-note-modal__title {
    font-size: 1.15rem;
  }

  .author-note-modal__text {
    font-size: 0.92rem;
    padding: 0.85rem 0.9rem;
  }

  .author-note-modal__actions.author-card__actions {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
  }

  .author-note-modal__actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.75rem;
    font-size: 0.9rem;
    box-sizing: border-box;
  }
}

@media (max-width: 520px) {
  .author-note-modal__head {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .author-note-modal__panel,
  .author-note-modal,
  .author-note-modal__glow {
    transition: none !important;
    animation: none !important;
  }
}
