* { box-sizing: border-box; }
html { background: var(--bg); overflow-x: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--jp-font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.head { display: flex; min-width: 0; align-items: center; gap: 14px; max-width: 1000px; margin: 0 auto; padding: 22px 20px 12px; }
.home { flex: none; color: var(--accent); font-family: var(--disp); font-size: 44px; font-weight: 700; letter-spacing: .16em; line-height: 1; text-transform: uppercase; white-space: nowrap; }
.home small { margin-left: .4em; color: inherit; font: inherit; }
.back { display: grid; width: 38px; height: 38px; flex: none; place-items: center; margin-left: -8px; border-radius: 50%; }
.back svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.2; }
.rl-wrap { max-width: 1000px; margin: 0 auto; padding: 16px 20px 80px 64px; }
.rl-wrap > * { max-width: 800px; }
.rl-title { margin: 0 0 12px; font-size: clamp(20px, 3vw, 28px); line-height: 1.5; }
.rl-nowrap { white-space: nowrap; }
.rl-status { min-height: 1.5em; margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.rl-status:empty { min-height: 0; margin: 0; }
.rl-copy { margin: 0 0 16px; line-height: 1.8; overflow-wrap: anywhere; }
.rl-empty-title { margin: 8px 0; font-size: 22px; line-height: 1.5; }
.rl-empty-text { margin: 0 0 16px; color: var(--muted); line-height: 1.8; overflow-wrap: anywhere; }
.rl-note { margin: 12px 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.rl-list { margin: 20px 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.rl-item { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px 16px; }
.rl-item + .rl-item { border-top: 1px solid var(--line); }
.rl-meta { display: flex; flex: 1; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.rl-date, .rl-time { font-variant-numeric: tabular-nums; white-space: nowrap; }
.rl-chip { display: inline-flex; padding: 3px 10px; border: 1px solid color-mix(in srgb, var(--rl-chip-color) 45%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--rl-chip-color) 16%, transparent); color: var(--rl-chip-color); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.rl-chip--mark { --rl-chip-color: var(--cue, #ffd450); }
.rl-chip--gram { --rl-chip-color: #3b82f6; }
.rl-channel, .rl-video { min-width: 0; overflow-wrap: anywhere; }
.rl-video { flex: 1 1 180px; color: var(--ink); }
.rl-progress { margin: 0 0 10px; color: var(--accent); font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rl-player { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 16px 0; overflow: hidden; border-radius: 12px; background: #000; }
.rl-player > [data-review-player] { position: absolute; inset: 0; }
.rl-player iframe { display: block; width: 100%; height: 100%; border: 0; }
.rl-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }
.rl-controls > p, .rl-actions, .rl-reveal { flex: 1 0 100%; min-width: 0; }
.rl-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.rl-actions > button { flex: 1 1 180px; }
.rl-button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 10px 20px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 700; line-height: 1.5; text-align: center; }
.rl-button--primary { border-color: var(--accent); background: var(--accent); color: #111; }
.rl-button:disabled { opacity: .55; cursor: default; }
.rl-button:focus-visible, .home:focus-visible, .back:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.rl-subtitle { margin-top: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 18px; line-height: 1.8; overflow-wrap: anywhere; }
.rl-subtitle mark { padding: 0 3px; border-radius: 3px; background: var(--accent); color: #111; }
.rl-line { margin: 0; color: var(--muted); }
.rl-line--mark { color: var(--ink); font-weight: 700; }
.rl-score { margin: 20px 0 12px; color: var(--accent); font-size: clamp(28px, 5vw, 44px); font-weight: 700; line-height: 1.4; font-variant-numeric: tabular-nums; }
.rl-result-mark { flex: none; width: 1.6em; color: var(--accent); font-size: 22px; text-align: center; }
@media (hover: hover) {
  .rl-button:hover:not(:disabled) { border-color: var(--accent); filter: brightness(1.1); }
}
@media (max-width: 600px) {
  .head { gap: 10px; padding: 24px 22px 10px; }
  .home { font-size: 46px; letter-spacing: .2em; }
  .home small { display: none; }
  .back { width: 44px; height: 44px; }
  .rl-wrap { padding: 12px 22px calc(60px + env(safe-area-inset-bottom)); }
  .rl-empty-title { font-size: 20px; }
  .rl-empty-text { font-size: 15px; }
  .rl-item { padding: 12px; }
  .rl-controls > .rl-button { flex: 1 1 100%; }
}
