/* ReyaMon – Replay-Archiv (portal/js/replays.js) */
.rp-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rp-filter input[type="search"] { flex: 1 1 220px; min-width: 180px; }
.rp-filter select { max-width: 220px; }
.rp-count { margin-bottom: 6px; }
.rp-table td { vertical-align: middle; }
.rp-battle { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.rp-battle .vs { color: var(--muted); font-size: .8rem; }
.rp-side { display: inline-flex; flex-direction: column; gap: 2px; min-width: 150px; }
.rp-side.lost b { color: var(--muted); font-weight: 600; }
.rp-icons { display: flex; flex-wrap: wrap; line-height: 0; }
.rp-crown { font-size: .8rem; }
.rp-tour { font-size: .78rem; }
.nowrap { white-space: nowrap; }
.rp-tourbar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; margin-top: 14px; }
.rp-tourbar select { max-width: 260px; }
.rp-player { margin-top: 14px; padding: 10px; }
.rp-frame { width: 100%; height: 480px; border: 0; display: block; background: transparent; }
@media (max-width: 1000px) { .rp-frame { height: 900px; } }
.rp-tools { margin-top: 8px; flex-wrap: wrap; gap: 8px; }
.rp-link { text-decoration: none; margin-right: 2px; }
.rp-link.w1, .rp-link.w2 { font-weight: 700; }
.rp-prefill { background: color-mix(in srgb, var(--info) 10%, transparent); border: 1px solid color-mix(in srgb, var(--info) 35%, transparent); border-radius: 8px; padding: 8px 10px; margin: 8px 0; }

/* Replay-Seite v2: Kopf mit beiden Spielern zentriert, Player über die volle Breite, Theater-Modus */
.rp-head2 { position: relative; overflow: hidden; padding: 22px 20px; background: var(--panel); }
.rp-head2::before, .rp-head2::after { content: ""; position: absolute; top: 0; bottom: 0; width: 50%; background-size: cover; background-position: center; opacity: .35; }
.rp-head2::before { left: 0; background-image: var(--bg1, none); -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent); mask-image: linear-gradient(90deg, #000 40%, transparent); }
.rp-head2::after { right: 0; background-image: var(--bg2, none); -webkit-mask-image: linear-gradient(270deg, #000 40%, transparent); mask-image: linear-gradient(270deg, #000 40%, transparent); }
.rp-head2 .vs-head { position: relative; z-index: 1; grid-template-columns: 1fr auto 1fr; }
.rp-head2 .vs-head .side, .rp-head2 .vs-head .side.right { align-items: center; text-align: center; justify-self: center; gap: 6px; }
.rp-head2 .vs-head .side h2 { font-size: 1.35rem; }
.rp-head2 .vs-head .side.lost { opacity: .8; }
.rp-head2 .vs-head .side.won .avatar { box-shadow: 0 0 0 3px #2ecc71, 0 6px 18px rgba(0,0,0,.25); }
.rp-head2 .rp-badge-space { height: 22px; }
.rp-head2 .rp-noav { width: 80px; height: 80px; }
.rp-head2 .vs { gap: 4px; }
.rp-head2 .vs b { font-size: 2.2rem; letter-spacing: .08em; color: var(--accent); line-height: 1; }
.rp-frame { width: 100%; height: auto; aspect-ratio: 1000 / 460; margin: 0 auto; border-radius: 8px; }
@media (max-width: 1000px) { .rp-frame { height: auto; } }
body.rp-theater .rp-player { position: relative; left: 50%; width: calc(100vw - 48px); max-width: none; transform: translateX(-50%); }
body.rp-theater .rp-frame { display: block; }
html.rp-theater, html.rp-theater body { overflow-x: hidden; }
.rp-frame:fullscreen { width: 100vw !important; height: 100vh !important; background: #111; }
