.recording-player {
  width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  margin: auto; padding: 24px; overflow: auto; border: 1px solid var(--line);
  border-radius: 24px; background: var(--panel); color: var(--ink); box-shadow: var(--shadow-lift);
}
.recording-player::backdrop { background: rgba(8, 14, 30, .6); backdrop-filter: blur(4px); }
.recording-player button, .recording-player select { font: inherit; }
.recording-player button:focus-visible, .recording-player input:focus-visible, .recording-player select:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 4px;
}
.rp-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.rp-eyebrow { color: var(--accent-ink); font-size: 11px; font-weight: 750; letter-spacing: .13em; }
.rp-icon-button { width: 40px; height: 40px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-soft); color: var(--muted); }
.rp-icon-button svg, .rp-volume svg { width: 20px; height: 20px; display: block; }
.rp-title { font-size: 24px; font-weight: 750; letter-spacing: -.02em; overflow-wrap: anywhere; }
.rp-subtitle { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.rp-art { width: 84px; height: 84px; margin: 24px auto 20px; padding: 23px; border-radius: 24px; color: var(--violet); background: var(--violet-soft); }
.rp-art svg { width: 38px; height: 38px; }
.rp-status-row { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.rp-cloud, .rp-partial { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 20px; font-size: 11px; font-weight: 650; color: var(--green); background: var(--green-soft); }
.rp-cloud svg { width: 13px; height: 13px; }
.rp-partial { color: var(--amber); background: var(--amber-soft); }
.rp-state { min-height: 36px; margin: 12px 0 0; font-size: 12px; text-align: center; color: var(--muted); line-height: 1.5; }
.rp-state.is-error { color: var(--red); }
.rp-progress { margin-top: 2px; }
.recording-player input[type="range"] { padding: 0; border: 0; min-height: 0; box-shadow: none; cursor: pointer; accent-color: var(--accent); }
.rp-seek { --rp-played: 0%; width: 100%; height: 24px; margin: 0; background: transparent; appearance: none; }
.rp-seek::-webkit-slider-runnable-track { height: 5px; border-radius: 8px; background: linear-gradient(to right, var(--accent) var(--rp-played), var(--line-strong) var(--rp-played)); }
.rp-seek::-moz-range-track { height: 5px; border-radius: 8px; background: var(--line-strong); }
.rp-seek::-moz-range-progress { height: 5px; border-radius: 8px; background: var(--accent); }
.rp-seek::-webkit-slider-thumb { appearance: none; width: 15px; height: 15px; margin-top: -5px; border: 2px solid var(--panel); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.rp-seek::-moz-range-thumb { width: 12px; height: 12px; border: 2px solid var(--panel); border-radius: 50%; background: var(--accent); }
.rp-times { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rp-controls { display: flex; align-items: center; justify-content: center; gap: 24px; margin: 24px 0; }
.rp-toggle { width: 68px; height: 68px; padding: 21px; border: 0; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #6d4fd0, #3557df); box-shadow: 0 5px 16px rgba(77, 70, 188, .25); }
.rp-toggle svg { display: block; width: 26px; height: 26px; }
.rp-skip { display: grid; gap: 3px; width: 60px; min-height: 52px; padding: 8px; border: 0; border-radius: 14px; background: var(--panel-soft); color: var(--ink); font-size: 15px !important; font-weight: 700 !important; }
.rp-skip span { color: var(--muted); font-size: 9px; font-weight: 500; }
.rp-options { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.rp-volume { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.rp-volume-input { width: 86px; height: 20px; margin: 0; background: transparent; }
.rp-speed { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.rp-speed select { width: 70px; min-height: 36px; padding: 4px 8px; background: var(--panel-soft); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; font-size: 12px; }
.rp-retry { width: 100%; margin-top: 16px; padding: 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--panel-soft); color: var(--accent-ink); }
.is-loading .rp-art { animation: rp-pulse 1.5s ease-in-out infinite; }
@keyframes rp-pulse { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .is-loading .rp-art { animation: none; } }
@media (max-width: 600px) {
  .recording-player { width: 100%; max-width: 100%; max-height: calc(100dvh - 16px); margin: auto 0 0; border-radius: 24px 24px 0 0; padding: 22px 24px calc(24px + env(safe-area-inset-bottom)); }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
