/* Battle: one intentional comparison per viewport */
.battle-screen{height:calc(100dvh - var(--header) - var(--nav));background:#07080d}.battle-scroll{height:100%;overflow-y:auto;scroll-snap-type:y mandatory;scrollbar-width:none;overscroll-behavior:contain;outline:none}.battle-scroll::-webkit-scrollbar{display:none}.battle-slide{height:100%;min-height:100%;scroll-snap-align:start;scroll-snap-stop:always;display:grid;place-items:center;padding:24px 34px;background:radial-gradient(circle at 50% 22%,#2d193622,transparent 45%),#07080d}.battle-slide-inner{width:min(1120px,100%);display:flex;flex-direction:column;justify-content:center;gap:18px}.battle-heading{text-align:center}.battle-heading p{font-size:11px;letter-spacing:2px;color:#bfa8d0}.battle-heading h1{margin:5px 0;font-size:clamp(23px,2.5vw,32px);letter-spacing:0}.battle-heading>span{font-size:12px;color:var(--muted)}.battle-pair{display:grid;grid-template-columns:minmax(0,1fr) 38px minmax(0,1fr);align-items:center;gap:14px}.battle-option{min-width:0}.battle-media{position:relative;display:block;width:100%;aspect-ratio:16/9;padding:0;border:1px solid #ffffff18;border-radius:9px;overflow:hidden;background:#171a25;box-shadow:0 12px 35px #0005}.battle-option.a .battle-media{box-shadow:inset 0 3px 0 var(--pink),0 12px 35px #0005}.battle-option.b .battle-media{box-shadow:inset 0 3px 0 var(--purple),0 12px 35px #0005}.battle-media:hover{border-color:#ffffff66;transform:translateY(-2px)}.battle-video,.battle-video-fallback{display:block;width:100%;height:100%;object-fit:cover;background:#0e1018}.battle-video-fallback{position:relative;overflow:hidden;background:radial-gradient(ellipse at 60% 32%,#515b7e44,transparent 55%),linear-gradient(140deg,#171c2a,#11131d)}.battle-video-fallback.scene-inferno,.battle-video-fallback.scene-ancient{background:radial-gradient(ellipse at 35% 40%,#50665050,transparent 60%),#10171b}.battle-video-fallback.scene-mirage,.battle-video-fallback.scene-vertigo{background:radial-gradient(ellipse at 65% 30%,#7b4b3150,transparent 60%),#161317}.battle-video-fallback .scene-grid{opacity:.8}.battle-video-fallback>span{position:absolute;inset:40% 0 auto;text-align:center;letter-spacing:6px;color:#ffffff1f;font-size:clamp(25px,5vw,56px);font-weight:800;text-transform:uppercase}.battle-video-fallback small{position:absolute;inset:58% 0 auto;text-align:center;color:#9a9dad}.battle-media-error{height:100%;display:grid;place-items:center;color:var(--muted);background:#12141d}.battle-play-mark{position:absolute;left:50%;top:50%;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;transform:translate(-50%,-50%);background:#ffffffed;color:#1a1b24;font-size:14px;opacity:.95}.battle-option-meta{display:flex;gap:10px;align-items:flex-start;margin-top:10px}.battle-option-meta>b,.battle-option-meta>div>b{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border-radius:50%;background:#f5449420;color:var(--pink);font-size:13px}.battle-option.b .battle-option-meta>div>b{background:#a17aff20;color:var(--purple)}.battle-option-meta h2{font-size:16px;line-height:1.35;margin:0}.battle-option-meta p{font-size:11px;color:var(--muted);margin-top:3px}.battle-vs{font-size:12px;font-weight:800;font-style:italic;color:#96839f;text-align:center}.battle-reason{display:flex;gap:8px;align-items:center;margin-top:8px;font-size:11px;color:#d2cedc}.battle-reason span{color:var(--muted);font-size:10px}.battle-choice-zone{display:grid;grid-template-columns:minmax(120px,1fr) minmax(240px,320px) minmax(120px,1fr);gap:12px;align-items:center}.battle-choice-button,.battle-choice-core{min-height:42px;padding:10px 16px}.battle-choice-button{font-size:12px;background:#181a25}.battle-choice-button.a{justify-self:start;border-color:#f5449455;color:#ffadd1}.battle-choice-button.b{justify-self:end;border-color:#a17aff55;color:#c9baff}.battle-choice-core{display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:9px;background:#f1f2f6;color:#181920;border:0}.battle-choice-core span{font-size:10px;letter-spacing:1px;color:#696b76}.battle-choice-core b{font-size:13px}.battle-choice-button:hover,.battle-choice-core:hover{transform:translateY(-1px)}.battle-result{width:min(420px,100%);margin:auto;text-align:center}.battle-result-bar{height:8px;border-radius:10px;overflow:hidden;background:var(--purple)}.battle-result-bar span{display:block;height:100%;background:var(--pink)}.battle-result p{display:flex;justify-content:space-between;margin-top:8px;font-size:13px}.battle-result p b:last-child{color:#c7baff}.battle-result small{display:block;margin-top:5px}.battle-footer{display:flex;justify-content:center;align-items:center;gap:18px;color:#777b8b;font-size:10px}.battle-share{padding:5px 10px;background:transparent;font-size:11px;color:#aaa5b9}.battle-empty{align-self:center;width:min(520px,calc(100% - 40px));margin:auto;text-align:center;padding:40px 20px;border:1px solid #ffffff12;border-radius:12px;background:#11121a}.battle-empty h1{font-size:22px;margin-bottom:8px}.battle-empty p{color:var(--muted);margin-bottom:20px}.battle-slide.is-voting{pointer-events:none}.battle-slide.is-voting .battle-media{opacity:.72}
@media(max-width:640px){.battle-screen{height:calc(100dvh - var(--header) - var(--nav))}.battle-slide{padding:12px 16px}.battle-slide-inner{gap:6px}.battle-heading h1{font-size:21px}.battle-heading>span{font-size:10px}.battle-pair{grid-template-columns:1fr;gap:4px}.battle-vs{display:none}.battle-media{aspect-ratio:16/8.4;border-radius:7px}.battle-option-meta{margin-top:3px}.battle-option-meta h2{font-size:13px}.battle-option-meta p{font-size:10px}.battle-reason{margin-top:2px;font-size:10px}.battle-choice-zone{grid-template-columns:minmax(0,1fr) minmax(0,1.45fr) minmax(0,1fr);gap:5px;margin-top:3px}.battle-choice-core{grid-column:auto;grid-row:auto;min-height:36px;padding:6px 3px}.battle-choice-core span{font-size:8px}.battle-choice-core b{font-size:10px;white-space:nowrap}.battle-choice-button{grid-row:auto;min-height:36px;padding:7px 4px;font-size:10px}.battle-choice-button.a,.battle-choice-button.b{justify-self:stretch}.battle-footer{gap:8px;font-size:9px}.battle-share{font-size:10px;padding:4px 8px}}

/* One reusable player for the sequential A/B duel experience. */
.battle-watch-player{display:grid;gap:10px;min-width:0}
.battle-watch-stage{position:relative;width:min(100%,860px);height:min(48dvh,480px);min-height:220px;aspect-ratio:16/9;margin:0 auto;overflow:hidden;border:1px solid #ffffff18;border-radius:10px;background:#05060b}
.battle-watch-stage .battle-single-video{display:block;width:100%;height:100%;object-fit:contain;background:#05060b}
.battle-watch-stage .battle-video-empty{position:absolute;inset:0;min-height:0;z-index:2}
.battle-watch-stage .playback-prompt{z-index:8}
.battle-watch-stage .player-seek-feed{right:18px;left:18px}
.battle-watch-stage .watch-controls{right:18px;left:18px}
.battle-side-picker{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:10px;width:min(100%,860px);margin:0 auto}
.battle-side-select{display:flex;align-items:center;gap:10px;min-width:0;min-height:44px;padding:8px 12px;text-align:left;border:1px solid #ffffff18;border-radius:9px;background:#11131b;color:var(--text)}
.battle-side-select b{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border-radius:50%;background:#f5449425;color:#ff8cbb}
.battle-side-select[data-battle-side-select="B"] b{background:#a17aff25;color:#c1adff}
.battle-side-select.active{border-color:#f5449480;background:#f5449410}
.battle-side-select span{overflow:hidden;color:var(--muted);font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.battle-side-vs{color:var(--muted);font-size:11px;font-weight:800}
.battle-speed{width:min(100%,860px);margin:0 auto;align-items:center;flex-wrap:wrap}
.battle-speed button{min-height:36px;padding:6px 10px;border:1px solid #ffffff15;border-radius:7px;background:#ffffff08;color:var(--muted)}
.battle-speed button[data-battle-replay]{margin-left:auto;color:var(--text)}
.battle-watch-progress,.battle-player-status{width:min(100%,860px);margin:0 auto;color:var(--muted);font-size:12px;line-height:1.5}
.battle-player-status{min-height:1.5em;color:#d7d3df}
.battle-current-details{display:grid;gap:7px;width:min(100%,860px);margin:0 auto;padding-top:8px;border-top:1px solid #ffffff10}
.battle-current-details[hidden]{display:none!important}
.battle-current-heading{display:grid;gap:3px;min-width:0}
.battle-current-heading>b{overflow:hidden;font-size:14px;text-overflow:ellipsis;white-space:nowrap}
.battle-current-heading>span{color:var(--muted);font-size:12px}
.battle-current-details .video-action-rail{position:static;display:flex;gap:10px;justify-content:flex-start;min-height:40px;padding:0}
.battle-video-detail-link{justify-self:start;min-height:36px;padding:6px 10px;background:transparent;color:var(--muted)}
.battle-vote-panel{display:grid;gap:8px;margin-top:12px;padding-top:12px;border-top:1px solid #ffffff12}
.battle-vote-heading,.battle-result-meta{display:flex;align-items:center;justify-content:space-between;gap:8px}
.battle-vote-heading strong{font-size:14px}.battle-vote-heading span,.battle-vote-hint{color:var(--muted);font-size:12px}
.battle-choice-row{margin-top:0}.battle-choice{min-height:48px}.battle-choice:disabled{opacity:.52;cursor:not-allowed}
.battle-result-meta{flex-wrap:wrap}.battle-result-meta small{flex-basis:100%;color:var(--muted)}
.battle-share-button{justify-self:start;min-height:40px;padding:8px 12px}
.battle-response-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;color:var(--muted);font-size:12px}
.battle-response-row button{min-height:44px}
@media(max-width:760px){.battle-card{padding:14px;border-radius:12px}.battle-card-head h2{font-size:18px}.battle-watch-stage{height:min(38dvh,330px);min-height:170px;border-radius:8px}.battle-side-picker{gap:5px}.battle-side-select{gap:6px;padding:7px}.battle-side-select b{flex-basis:25px;width:25px;height:25px}.battle-side-select span{font-size:11px}.battle-watch-progress,.battle-player-status{font-size:11px}.battle-response-row{align-items:stretch;flex-direction:column}.battle-response-row button{width:100%}}
@media(max-width:380px){.battle-watch-stage{height:min(34dvh,270px);min-height:150px}.battle-side-picker{gap:3px}.battle-side-select{padding:6px 5px}.battle-side-select span{font-size:10px}.battle-side-vs{font-size:9px}}
@media(max-width:760px) and (orientation:landscape){.battle-watch-stage{height:min(44dvh,310px);min-height:120px}.battle-card{padding:10px}.battle-watch-player{gap:6px}}

.public-challenge-card{display:grid;gap:14px;margin:0 0 18px;padding:18px;border:1px solid #ffffff18;border-radius:14px;background:#151720}.public-challenge-card>header,.public-challenge-card>footer{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.public-challenge-card h2{margin:4px 0;font-size:clamp(18px,2vw,24px)}.public-challenge-source{display:grid;grid-template-columns:minmax(220px,42%) minmax(0,1fr);gap:16px;align-items:center}.public-challenge-video{display:block;width:100%;max-height:280px;aspect-ratio:16/9;object-fit:contain;background:#08090d;border-radius:9px}.public-challenge-source>div{min-width:0}.public-challenge-source strong{font-size:16px}.public-challenge-source p,.public-challenge-card footer>span{color:var(--muted);font-size:13px}.public-challenge-source small{color:#b5b5c0}.public-challenge-card footer{align-items:center}.public-challenge-child-matches{display:flex;flex-wrap:wrap;gap:8px;align-items:center;border-top:1px solid #ffffff12;padding-top:12px}.public-challenge-child-matches>span{color:var(--muted);font-size:12px}.public-challenge-child-matches button{min-height:36px;padding:7px 10px;font-size:12px}.submission-mode-switch{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 14px}.submission-mode-switch button{min-height:44px;border:1px solid #ffffff1a;border-radius:9px;background:#171923;color:#aeb0bd;font-weight:700}.submission-mode-switch button.active{border-color:var(--pink);color:#fff;background:#f5449418}.approved-video-challenge{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end;margin:10px 0;padding:12px;border:1px solid #ffffff16;border-radius:10px;background:#11131a}.approved-video-challenge[hidden],.public-challenge-fields[hidden]{display:none}.approved-video-challenge select{width:100%;min-height:42px}.public-challenge-fields{margin-top:14px;padding-top:10px;border-top:1px solid #ffffff14}.public-challenge-card .battle-count{max-width:42%;white-space:normal;text-align:right}
@media(max-width:640px){.public-challenge-card{padding:13px;gap:11px}.public-challenge-card>header,.public-challenge-card>footer{align-items:flex-start;flex-direction:column;gap:10px}.public-challenge-card h2{font-size:18px}.public-challenge-source{grid-template-columns:1fr;gap:9px}.public-challenge-video{max-height:240px}.public-challenge-card footer .primary-button,.public-challenge-card footer .secondary-button{width:100%;min-height:44px}.approved-video-challenge{grid-template-columns:1fr}.approved-video-challenge .secondary-button{width:100%;min-height:44px}.submission-mode-switch{position:sticky;top:calc(var(--header,0px) + env(safe-area-inset-top));z-index:2;background:var(--surface,#101116);padding:4px 0}}
.notification-badge{display:inline-flex;min-width:1.25rem;height:1.25rem;align-items:center;justify-content:center;padding:0 .25rem;border-radius:999px;background:var(--brand-pink,#ff4f73);color:#fff;font-size:.72rem;font-weight:700;line-height:1}
.friend-challenge-videos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;margin:.65rem 0}
.friend-challenge-videos video{display:block;width:100%;max-height:12rem;aspect-ratio:16/9;object-fit:contain;background:#08090b;border-radius:.65rem}
.submission-mode-switch{grid-template-columns:repeat(3,minmax(0,1fr))}.submission-mode-switch button{padding-inline:6px;font-size:clamp(11px,2.8vw,14px)}
.challenge-target-preview{display:block;width:100%;max-height:320px;aspect-ratio:16/9;object-fit:contain;margin:8px 0;border-radius:10px;background:#08090b}
.related-match-list{display:grid;gap:12px;padding:18px 4px 6px}.related-match-list h2{margin:0 0 4px;font-size:clamp(20px,4vw,25px)}.related-match-list>div{display:grid;gap:8px}.related-match-option{display:grid;gap:5px;width:100%;min-height:64px;padding:13px 14px;text-align:left;border:1px solid var(--line);border-radius:var(--radius-card);background:var(--surface);color:var(--text)}.related-match-option strong{font-size:14px}.related-match-option span{color:var(--text-secondary);font-size:12px}.related-match-option small{color:var(--color-brand);font-size:11px}
