:root {
  color-scheme: dark;
  --bg: #101311;
  --surface: #181d1a;
  --surface-raised: #1d241f;
  --surface-soft: #202923;
  --line: rgba(236, 242, 232, .09);
  --line-strong: rgba(236, 242, 232, .15);
  --text: #eef2eb;
  --muted: #9aa69d;
  --faint: #748178;
  --accent: #c4f26b;
  --accent-ink: #1a2411;
  --accent-soft: rgba(196, 242, 107, .11);
  --warning: #ffb99b;
  font-family: "Noto Sans Arabic", "Noto Naskh Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(ellipse at 83% 0%, rgba(130, 171, 79, .09), transparent 33rem),
    radial-gradient(ellipse at 0% 67%, rgba(76, 120, 104, .075), transparent 34rem),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, label:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.app-shell { width: min(1180px, calc(100% - 64px)); margin: 0 auto; }
.topbar { min-height: 84px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; color: var(--accent); }
.brand-mark svg { width: 40px; height: 40px; }
.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { font-size: 16px; letter-spacing: -.04em; }
.brand-copy small { color: var(--muted); font-size: 11px; }
.privacy-chip { display: inline-flex; gap: 9px; align-items: center; border: 1px solid var(--line); border-radius: 100px; padding: 8px 12px; color: #c4ccc4; font-size: 11px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.topbar-install-button { min-height: 34px; padding: 0 11px; border: 1px solid rgba(196, 242, 107, .28); border-radius: 100px; color: var(--accent); background: rgba(196, 242, 107, .09); font-size: 10px; font-weight: 700; cursor: pointer; }
.topbar-install-button[hidden] { display: none; }
.privacy-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(196, 242, 107, .5); }
main { padding: 46px 0 66px; }
.intro { max-width: 640px; margin-bottom: 34px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--accent); font-size: 12px; font-weight: 700; }
.eyebrow-line { width: 24px; height: 1px; background: var(--accent); }
h1 { margin: 13px 0 8px; font-size: clamp(34px, 5vw, 48px); line-height: 1.25; letter-spacing: -.055em; font-weight: 750; }
h1 span { color: var(--accent); }
.intro p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.67fr) minmax(290px, .83fr); align-items: start; gap: 22px; }
.player-column, .side-column { min-width: 0; }
.player-card, .panel, .caption-card, .help-card { border: 1px solid var(--line); background: rgba(24, 29, 26, .88); border-radius: 17px; }
.player-card { padding: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, .17); }
.player-topline { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 13px; }
.player-label { display: flex; align-items: center; gap: 9px; color: #d6ddd4; font-size: 12px; font-weight: 600; }
.live-indicator { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(196, 242, 107, .45); }
.format-label { display: flex; align-items: center; gap: 7px; color: var(--faint); font-size: 10px; direction: ltr; }
.format-label i { width: 3px; height: 3px; border-radius: 50%; background: #647167; }
.video-frame { position: relative; display: grid; place-items: center; min-height: 230px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 11px; background: #090c0a; }
#video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #090c0a; }
.video-subtitle-overlay { position: absolute; z-index: 3; right: 5%; bottom: 7%; left: 5%; width: fit-content; max-width: 90%; margin-inline: auto; padding: 6px 15px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 8px; color: #fff; background: rgba(0, 0, 0, .72); font-size: clamp(13px, 2.4vw, 25px); font-weight: 750; line-height: 1.55; text-align: center; text-shadow: 0 2px 3px rgba(0, 0, 0, .7); white-space: pre-line; overflow-wrap: anywhere; pointer-events: none; backdrop-filter: blur(3px); }
.video-subtitle-overlay[hidden] { display: none; }
.video-empty { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; color: var(--text); background: radial-gradient(ellipse at center, rgba(63, 80, 61, .26), transparent 58%), #0d110e; text-align: center; }
.video-empty[hidden] { display: none; }
.empty-art { position: relative; display: grid; place-items: center; width: 76px; height: 68px; margin-bottom: 2px; }
.empty-ring { position: absolute; border: 1px solid rgba(196, 242, 107, .12); border-radius: 50%; }
.ring-one { width: 50px; height: 50px; }
.ring-two { width: 69px; height: 69px; border-color: rgba(196, 242, 107, .07); }
.empty-play { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 36px rgba(196, 242, 107, .21); }
.empty-play svg { width: 20px; height: 20px; }
.video-empty strong { margin-top: 5px; font-size: 14px; }
.video-empty > span { color: var(--muted); font-size: 11px; }
.choose-video-button { display: inline-flex; align-items: center; gap: 8px; margin-top: 9px; padding: 9px 14px; border: 1px solid rgba(196, 242, 107, .28); border-radius: 9px; color: var(--accent); background: rgba(196, 242, 107, .07); font-size: 11px; font-weight: 700; cursor: pointer; transition: background .18s ease, transform .18s ease; }
.choose-video-button:hover { background: rgba(196, 242, 107, .14); transform: translateY(-1px); }
.video-badge { position: absolute; top: 12px; right: 12px; z-index: 2; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 30px; color: rgba(255, 255, 255, .76); background: rgba(8, 11, 9, .63); backdrop-filter: blur(8px); font-size: 10px; }
.video-badge:not([hidden]) { display: inline-flex; }
.video-badge span { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.video-badge #videoBadgeText { width: auto; height: auto; border-radius: 0; background: transparent; }
.controls { padding: 13px 3px 0; }
.seek-row { display: flex; align-items: center; gap: 12px; }
.timecode { min-width: 37px; color: #a7b0a8; font: 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; direction: ltr; text-align: center; }
.range { --fill: 0%; appearance: none; height: 3px; border-radius: 10px; background: linear-gradient(to right, var(--accent) var(--fill), #465148 var(--fill)); cursor: pointer; }
.range::-webkit-slider-thumb { appearance: none; width: 11px; height: 11px; border: 2px solid #1c2418; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px rgba(196, 242, 107, .14); }
.range::-moz-range-thumb { width: 8px; height: 8px; border: 2px solid #1c2418; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px rgba(196, 242, 107, .14); }
.range:disabled { cursor: default; opacity: .45; }
.seek-range { width: 100%; }
.control-row { display: flex; min-height: 45px; align-items: center; justify-content: space-between; gap: 10px; padding-top: 7px; }
.transport-controls { display: flex; align-items: center; gap: 12px; }
.icon-button, .subtle-button { display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: #bac3ba; cursor: pointer; transition: color .18s ease, opacity .18s ease; }
.icon-button:hover:not(:disabled), .subtle-button:hover:not(:disabled) { color: var(--accent); }
.icon-button:disabled, .subtle-button:disabled, .main-play-button:disabled { cursor: not-allowed; opacity: .38; }
.icon-button svg { width: 21px; height: 21px; }
.skip-button { position: relative; }
.skip-button span { position: absolute; top: 7px; font-size: 6px; font-weight: 700; }
.main-play-button { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; color: var(--accent-ink); background: var(--accent); cursor: pointer; box-shadow: 0 3px 18px rgba(196, 242, 107, .16); transition: transform .18s ease, box-shadow .18s ease; }
.main-play-button:hover:not(:disabled) { transform: scale(1.06); box-shadow: 0 4px 24px rgba(196, 242, 107, .26); }
.main-play-button svg { width: 19px; height: 19px; }
.pause-glyph { display: none; }
.main-play-button.is-playing .play-glyph { display: none; }
.main-play-button.is-playing .pause-glyph { display: block; }
.volume-control { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; color: #aab4ab; }
.volume-control svg, .subtle-button svg { width: 19px; height: 19px; }
.volume-range { width: 78px; }
.subtle-button { width: 28px; height: 28px; }
.feature-button { width: 31px; height: 31px; border: 1px solid var(--line); border-radius: 8px; }
.feature-button:disabled { cursor: not-allowed; opacity: .38; }
.subtitles-toggle-button { display: inline-flex; width: auto; min-width: 82px; height: 32px; align-items: center; justify-content: center; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 9px; font-weight: 700; white-space: nowrap; }
.subtitles-toggle-button[aria-pressed="true"] { border-color: rgba(196, 242, 107, .32); color: var(--accent); background: rgba(196, 242, 107, .08); }
.vr-glyph { color: inherit; font: 800 9px/1 ui-monospace, monospace; letter-spacing: -.08em; }
.cast-status { margin: 4px 2px 0; color: var(--faint); font-size: 9px; line-height: 1.7; }
.subtitle-toggle-hint { min-height: 14px; margin: 4px 2px 0; color: var(--muted); font-size: 9px; line-height: 1.6; }
.caption-card { display: flex; min-height: 104px; align-items: center; gap: 16px; margin-top: 13px; padding: 17px 19px; background: linear-gradient(110deg, rgba(31, 40, 32, .92), rgba(22, 29, 25, .94)); }
.caption-side-mark { display: flex; align-items: center; justify-content: center; gap: 3px; flex: 0 0 30px; width: 30px; height: 36px; border: 1px solid rgba(196, 242, 107, .14); border-radius: 9px; background: var(--accent-soft); }
.caption-side-mark span { width: 2px; border-radius: 4px; background: var(--accent); opacity: .8; }
.caption-side-mark span:nth-child(1) { height: 9px; }
.caption-side-mark span:nth-child(2) { height: 17px; }
.caption-side-mark span:nth-child(3) { height: 12px; }
.caption-content { min-width: 0; flex: 1; }
.caption-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.caption-label { color: var(--accent); font-size: 10px; font-weight: 700; }
#cueCounter { color: var(--faint); font-size: 10px; }
#currentCaption { margin: 8px 0 0; color: #eef2eb; font-size: 14px; font-weight: 520; line-height: 1.8; overflow-wrap: anywhere; }
.speaking-indicator { display: inline-flex; align-items: center; gap: 3px; height: 22px; padding-inline: 2px; }
.speaking-indicator[hidden] { display: none; }
.speaking-indicator i { width: 2px; height: 7px; border-radius: 3px; background: var(--accent); animation: soundwave .8s ease-in-out infinite alternate; }
.speaking-indicator i:nth-child(2) { height: 14px; animation-delay: .18s; }
.speaking-indicator i:nth-child(3) { height: 10px; animation-delay: .32s; }
.speaking-indicator i:nth-child(4) { height: 5px; animation-delay: .46s; }
@keyframes soundwave { to { transform: scaleY(.4); opacity: .5; } }
.side-column { display: grid; gap: 13px; }
.panel { padding: 19px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-kicker { display: block; margin-bottom: 5px; color: var(--faint); font-size: 9px; font-weight: 700; letter-spacing: .02em; }
.panel h2 { margin: 0; font-size: 16px; letter-spacing: -.035em; }
.step-number { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 8px; color: #a1aca1; font: 10px ui-monospace, monospace; direction: ltr; }
.file-card { display: flex; align-items: center; gap: 11px; min-height: 63px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 11px; background: rgba(10, 13, 11, .22); cursor: pointer; transition: border-color .18s ease, background .18s ease; }
.file-card + .file-card { margin-top: 9px; }
.file-card:hover { border-color: rgba(196, 242, 107, .34); background: rgba(196, 242, 107, .035); }
.file-card input[type="file"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
.file-icon { display: grid; flex: 0 0 37px; place-items: center; width: 37px; height: 37px; border-radius: 10px; }
.file-icon svg { width: 20px; height: 20px; }
.video-file-icon { color: #c8e8ff; background: rgba(111, 173, 224, .11); }
.subtitle-file-icon { color: var(--accent); background: var(--accent-soft); }
.file-copy { display: grid; min-width: 0; flex: 1; gap: 4px; }
.file-copy strong { font-size: 11px; }
.file-copy small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.file-action { display: grid; flex: 0 0 23px; place-items: center; width: 23px; height: 23px; border: 1px solid var(--line-strong); border-radius: 7px; color: #b7c0b8; font-size: 16px; line-height: 1; }
.privacy-note { display: flex; align-items: center; gap: 7px; margin: 13px 1px 0; color: var(--faint); font-size: 9px; }
.privacy-note svg { width: 16px; height: 16px; color: #8cae66; }
.file-error { margin-top: 11px; padding: 9px 10px; border: 1px solid rgba(255, 185, 155, .2); border-radius: 8px; color: var(--warning); background: rgba(255, 185, 155, .06); font-size: 10px; line-height: 1.7; }
.file-error[hidden] { display: none; }
.online-source { margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(10, 13, 11, .22); }
.online-source summary { padding: 11px 12px; color: #cbd4cb; font-size: 10px; font-weight: 650; cursor: pointer; }
.online-source[open] summary { border-bottom: 1px solid var(--line); color: var(--accent); }
.source-form { padding: 0 11px 10px; }
.source-form .field-label { margin-top: 11px; }
.page-scan-form { border-top: 1px solid var(--line); }
.url-row { display: flex; align-items: stretch; gap: 7px; }
.url-input { min-width: 0; flex: 1; height: 38px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; outline: 0; color: var(--text); background: #111612; direction: ltr; text-align: left; font-size: 10px; }
.url-input::placeholder { color: #6d7970; }
.url-input:focus { border-color: rgba(196, 242, 107, .48); }
.action-button { flex: 0 0 auto; min-height: 38px; padding: 0 11px; border: 1px solid rgba(196, 242, 107, .27); border-radius: 8px; color: var(--accent); background: rgba(196, 242, 107, .08); font-size: 9px; font-weight: 700; cursor: pointer; }
.action-button:hover:not(:disabled) { background: rgba(196, 242, 107, .15); }
.action-button:disabled { cursor: wait; opacity: .55; }
.secondary-action { border-color: var(--line-strong); color: #c5cec6; background: rgba(255, 255, 255, .035); }
.source-results { margin: 0 11px 10px; padding-top: 9px; border-top: 1px solid var(--line); }
.source-results[hidden] { display: none; }
.source-results > p { margin: 0 0 8px; color: var(--muted); font-size: 9px; line-height: 1.7; }
.candidate-list { display: grid; gap: 6px; }
.candidate-row { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 7px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, .025); }
.candidate-copy { min-width: 0; flex: 1; display: grid; gap: 3px; }
.candidate-copy strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.candidate-copy small { color: var(--faint); font-size: 8px; direction: ltr; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.candidate-play, .candidate-open { flex: 0 0 auto; padding: 6px 8px; border: 1px solid rgba(196, 242, 107, .24); border-radius: 7px; color: var(--accent); background: rgba(196, 242, 107, .07); font-size: 8px; text-decoration: none; cursor: pointer; }
.candidate-open { border-color: var(--line); color: #c3ccc4; background: transparent; }
.source-limit-note { margin: 0; padding: 0 11px 10px; color: var(--faint); font-size: 8px; line-height: 1.7; }
.voice-panel { padding-bottom: 16px; }
.voice-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0 14px; border-block: 1px solid var(--line); }
.voice-toggle-copy { display: grid; gap: 4px; }
.voice-toggle-copy strong { font-size: 11px; }
.voice-toggle-copy small { color: var(--muted); font-size: 9px; }
.switch { position: relative; flex: 0 0 39px; width: 39px; height: 22px; cursor: pointer; }
.switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch-track { position: absolute; inset: 0; border-radius: 22px; background: #343d36; transition: background .2s ease; }
.switch-thumb { position: absolute; top: 3px; right: 3px; width: 16px; height: 16px; border-radius: 50%; background: #9aa69d; transition: transform .2s ease, background .2s ease; }
.switch input:checked + .switch-track { background: #769849; }
.switch input:checked + .switch-track .switch-thumb { transform: translateX(-17px); background: #efffd2; }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--accent); outline-offset: 3px; }
.field-label { display: block; margin: 13px 0 7px; color: #bdc6bd; font-size: 10px; font-weight: 600; }
.select-wrap { position: relative; }
.select-wrap select { width: 100%; height: 39px; appearance: none; padding: 0 11px 0 34px; border: 1px solid var(--line); border-radius: 9px; color: #d9e0d9; background: #141916; font-size: 10px; cursor: pointer; }
.select-wrap select option { color: var(--text); background: var(--surface); }
.select-wrap > svg { position: absolute; left: 11px; top: 11px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.rate-row { margin-top: 4px; }
.rate-row > .field-label { margin-top: 13px; }
.rate-control { display: flex; align-items: center; gap: 11px; }
.rate-range { flex: 1; }
#rateValue { min-width: 26px; color: var(--accent); font: 10px ui-monospace, monospace; direction: ltr; text-align: left; }
.voice-note { margin: 13px 0 0; padding-top: 11px; border-top: 1px solid var(--line); color: var(--faint); font-size: 9px; line-height: 1.8; }
.help-card { display: flex; align-items: flex-start; gap: 11px; padding: 13px 15px; background: rgba(28, 36, 30, .5); }
.help-mark { display: grid; flex: 0 0 19px; place-items: center; width: 19px; height: 19px; border: 1px solid rgba(196, 242, 107, .24); border-radius: 50%; color: var(--accent); font: italic 11px Georgia, serif; }
.help-card p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.8; }
.help-card strong { color: #dce3db; font-size: 10px; }
.footer { display: flex; justify-content: space-between; gap: 12px; padding: 19px 0 24px; border-top: 1px solid var(--line); color: var(--faint); font-size: 9px; }
.footer span:first-child { color: #bac4ba; font-weight: 700; }
.support-guides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.support-card { min-width: 0; padding: 19px; border: 1px solid var(--line); border-radius: 17px; background: linear-gradient(135deg, rgba(29, 36, 31, .95), rgba(20, 25, 22, .94)); }
.support-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.support-heading h2 { margin: 3px 0 0; font-size: 14px; letter-spacing: -.02em; }
.guide-mark { display: grid; flex: 0 0 35px; place-items: center; width: 35px; height: 35px; border: 1px solid rgba(196, 242, 107, .2); border-radius: 11px; color: var(--accent); background: var(--accent-soft); font: 700 12px ui-monospace, monospace; }
.offline-status { min-height: 35px; margin: 0 0 10px; color: var(--muted); font-size: 10px; line-height: 1.8; }
.install-app-button { min-height: 38px; padding: 0 14px; border: 1px solid rgba(196, 242, 107, .28); border-radius: 9px; color: var(--accent); background: rgba(196, 242, 107, .09); font-size: 10px; font-weight: 700; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.install-app-button:hover:not(:disabled) { transform: translateY(-1px); background: rgba(196, 242, 107, .15); }
.install-app-button:disabled { cursor: default; opacity: .65; }
.guide-steps { display: grid; gap: 9px; margin-top: 13px; }
.guide-steps p { margin: 0; padding: 10px 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: rgba(8, 12, 9, .25); font-size: 9px; line-height: 1.8; }
.guide-steps strong { color: #dce3db; font-size: 10px; }
.guide-lead { margin: 0; color: var(--accent); font-size: 10px; font-weight: 600; line-height: 1.8; }
.guide-note { margin: 11px 0 0; color: var(--faint); font-size: 9px; line-height: 1.8; }
@media (min-width: 1400px) { .app-shell { width: min(1220px, calc(100% - 96px)); } }
@media (max-width: 920px) {
  .app-shell { width: min(760px, calc(100% - 40px)); }
  .workspace { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .side-column { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .help-card { grid-column: 1 / -1; }
  main { padding-top: 36px; }
}
@media (max-width: 600px) {
  .app-shell { width: calc(100% - 28px); }
  .topbar { min-height: 70px; }
  .brand-mark, .brand-mark svg { width: 36px; height: 36px; }
  .brand-copy strong { font-size: 14px; }
  .brand-copy small { font-size: 10px; }
  .topbar-actions { gap: 5px; }
  .topbar-install-button { min-height: 30px; padding: 0 8px; font-size: 8px; }
  .privacy-chip { gap: 5px; padding: 7px 7px; font-size: 8px; }
  main { padding: 31px 0 40px; }
  .intro { margin-bottom: 22px; }
  h1 { margin-top: 10px; font-size: 35px; }
  .intro p { max-width: 350px; font-size: 12px; }
  .workspace { gap: 12px; }
  .player-card { padding: 10px; border-radius: 14px; }
  .video-frame { min-height: 184px; border-radius: 9px; }
  .player-topline { padding-bottom: 10px; }
  .controls { padding: 11px 2px 0; }
  .seek-row { gap: 7px; }
  .timecode { min-width: 33px; font-size: 9px; }
  .transport-controls { gap: 9px; }
  .control-row { gap: 6px; }
  .volume-control { gap: 5px; }
  .volume-range { width: 53px; }
  .control-row { gap: 4px; }
  .feature-button { width: 28px; height: 28px; }
  .volume-range { width: 42px; }
  .subtitles-toggle-button { min-width: 78px; height: 28px; padding: 0 6px; font-size: 8px; }
  .subtitle-toggle-hint { font-size: 8px; }
  .support-guides { grid-template-columns: 1fr; gap: 11px; margin-top: 14px; }
  .support-card { padding: 15px; border-radius: 14px; }
  .support-heading h2 { font-size: 13px; }
  .offline-status, .guide-steps p, .guide-note { font-size: 9px; }
  .caption-card { min-height: 90px; gap: 11px; margin-top: 10px; padding: 13px; border-radius: 13px; }
  .caption-side-mark { flex-basis: 27px; width: 27px; height: 32px; }
  #currentCaption { font-size: 12px; }
  #cueCounter { font-size: 9px; }
  .side-column { grid-template-columns: 1fr; gap: 10px; }
  .panel { padding: 15px; border-radius: 14px; }
  .panel-heading { margin-bottom: 12px; }
  .file-card { min-height: 59px; }
  .help-card { grid-column: auto; }
  .footer { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

.voice-controls { display: flex; align-items: center; gap: 8px; }
.voice-controls .select-wrap { min-width: 0; flex: 1; }
.voice-controls .select-wrap select { text-overflow: ellipsis; white-space: nowrap; }
.voice-controls .select-wrap select:disabled { cursor: not-allowed; opacity: .58; }
.test-voice-button { flex: 0 0 auto; min-height: 39px; padding: 0 10px; border: 1px solid rgba(196, 242, 107, .25); border-radius: 9px; color: var(--accent); background: rgba(196, 242, 107, .07); font-size: 9px; font-weight: 700; cursor: pointer; transition: background .18s ease, border-color .18s ease; }
.test-voice-button:hover:not(:disabled) { border-color: rgba(196, 242, 107, .48); background: rgba(196, 242, 107, .14); }
.test-voice-button:disabled { cursor: not-allowed; opacity: .45; }
.voice-note { min-height: 31px; }
.help-card { border-color: rgba(196, 242, 107, .13); }
.help-card p { line-height: 1.95; }
.vr-stage { position: fixed; inset: 0; z-index: 9999; overflow: hidden; color: white; background: #000; }
.vr-stage[hidden] { display: none; }
.vr-canvas { display: block; width: 100%; height: 100%; background: #000; touch-action: none; }
.vr-canvas[hidden] { display: none; }
.vr-stage-tools { position: absolute; top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); left: max(12px, env(safe-area-inset-left)); display: flex; align-items: center; justify-content: space-between; gap: 12px; pointer-events: none; font-size: 12px; text-shadow: 0 1px 7px #000; }
.vr-stage-tools > * { pointer-events: auto; }
.vr-exit-button, .vr-play-button { min-height: 38px; padding: 0 14px; border: 1px solid rgba(255,255,255,.24); border-radius: 10px; color: #fff; background: rgba(10,12,10,.72); backdrop-filter: blur(8px); font-size: 11px; cursor: pointer; }
.vr-play-button { border-color: rgba(196,242,107,.52); color: var(--accent); font-weight: 700; }
.vr-stage-controls { position: absolute; right: max(14px, env(safe-area-inset-right)); bottom: max(15px, env(safe-area-inset-bottom)); left: max(14px, env(safe-area-inset-left)); display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; pointer-events: none; }
.vr-stage-controls > * { pointer-events: auto; }
.vr-caption { max-width: min(80vw, 680px); padding: 7px 11px; border-radius: 7px; color: white; background: rgba(0,0,0,.62); font-size: 12px; text-align: center; }
.vr-caption:empty { display: none; }
.vr-stage[data-mode="stereo"] .vr-caption,
.vr-stage[data-mode="stereo"] .vr-hint { display: none; }
.vr-hint { flex-basis: 100%; color: rgba(255,255,255,.68); font-size: 9px; text-align: center; }
