/* Кнопка и модалка «От автора о своём плеере» */
.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(--neon-cyan) !important;
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 999px;
  box-shadow: 0 2px 12px rgba(0, 240, 255, 0.1);
  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(0, 240, 255, 0.45);
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.2);
  background: rgba(0, 240, 255, 0.1);
}

.btn--author-note:focus-visible {
  outline: 2px solid var(--neon-cyan);
  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(5, 5, 8, 0.85);
}

.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: 1px solid rgba(255, 45, 123, 0.3);
  background: rgba(10, 8, 16, 0.98);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(255, 45, 123, 0.1);
  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(255, 45, 123, 0.08);
  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(255, 45, 123, 0.12) 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 rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.3s;
}

.author-note-modal__close:hover {
  background: rgba(255, 45, 123, 0.3);
}

.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(--neon-pink), var(--neon-violet));
  box-shadow: 0 8px 22px rgba(255, 45, 123, 0.3);
}

.author-note-modal__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  background: rgba(255, 45, 123, 0.1);
}

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

.author-note-modal__eyebrow {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.25;
}

.author-note-modal__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.25;
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.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.65;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.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: 100px;
}

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: 0.85rem;
    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;
  }
}
