/* Reference measurements verified in desktop, phone and landscape viewports. */
.reference{font-family:Figtree,"Helvetica Neue",Arial,sans-serif;font-size:14px;line-height:1.45;background:#000;-webkit-text-size-adjust:100%;text-size-adjust:100%;user-select:none}
.reference button{font-family:inherit;line-height:inherit}
.reference video{background:#000;transform-origin:center}
.reference .top{padding:16px;align-items:flex-start}
.reference .top h1{font-size:clamp(15px,2.6vw,20px);font-weight:700;line-height:1.25;letter-spacing:-.01em;margin:0 0 5px;text-shadow:0 1px 8px #0009}
.reference .top #status{font-size:12px;color:rgba(232,236,241,.82)}
.reference .badge{display:none}
.reference .big-play{width:64px;height:64px;background:transparent;border:0;border-radius:0;backdrop-filter:none;z-index:6;transition:opacity .18s,transform .18s}
.reference .big-play svg{width:30px;height:30px;max-width:30px;max-height:30px;filter:drop-shadow(0 2px 10px #000c)}
.reference .big-play:hover{background:transparent;transform:translate(-50%,-50%) scale(1.08)}
.reference.is-playing .big-play{opacity:.82}
.reference.idle .big-play{opacity:0;pointer-events:none}
.reference .controls{padding:48px 14px 12px;z-index:5;background:linear-gradient(to top,rgba(0,0,0,.88),transparent)}
.reference .control-row{gap:2px;margin:0;min-height:38px;min-width:0;width:100%}
.reference .control-row .spacer{flex:1 1 auto;min-width:8px}
.reference .control-row button{width:38px;min-width:0;height:38px;padding:0;color:#fff;border-radius:4px;flex-shrink:0;font-size:12.5px;font-weight:600;gap:6px}
.reference .control-row button:hover{background:rgba(255,255,255,.08);color:#fff}
.reference .control-row svg{width:20px;height:20px;fill:currentColor}
.reference #back,.reference #forward{display:none}
.reference .control-row #audio,.reference .control-row #subs,.reference .control-row #quality,.reference .control-row #speed{display:inline-flex;width:auto;min-width:0;height:30px;padding:0 12px;margin:0 2px;border-radius:15px;white-space:nowrap}
.reference .control-row #audio,.reference .control-row #subs{padding:0 10px 0 8px;gap:5px;font-variant-numeric:tabular-nums}
.reference #audioLabel,.reference #subLabel{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:11.5px;letter-spacing:.04em;text-transform:uppercase;font-weight:600;color:#fff;min-width:0}
.reference .control-row #audio svg,.reference .control-row #subs svg{width:18px;height:18px;opacity:.85;flex-shrink:0}
.reference .control-row #audio.active svg,.reference .control-row #subs.active svg,.reference #audio.active #audioLabel,.reference #subs.active #subLabel{color:var(--accent);opacity:1}
.reference .control-row #quality{padding:0 10px 0 6px;gap:2px;max-width:42vw}
.reference #qualityLabel{font-family:inherit;font-size:12.5px;letter-spacing:0;text-transform:none;line-height:1;color:#fff;white-space:nowrap}
.reference #quality svg{width:18px;height:18px;opacity:.85}
.reference #quality.active #qualityLabel{color:var(--accent)}
.reference .control-row #speed{padding:0 10px;font-size:12.5px;letter-spacing:.02em;font-variant-numeric:tabular-nums}
.reference #pip svg{width:18px;height:18px}
.reference .control-row #pip,.reference .control-row #fit,.reference .control-row #speed{display:inline-flex}
.reference .control-row .optional[hidden]{display:none!important}
.reference .volume-wrap{display:flex;align-items:center;padding:6px 0;margin:-6px 0;flex-shrink:0}
.reference #volume{display:block;width:0;height:4px;margin:0;opacity:0;accent-color:white;transition:width .2s,margin .2s;appearance:none;background:#ffffff40}
.reference .volume-wrap:hover #volume,.reference .volume-wrap:focus-within #volume{width:90px;margin:0 10px 0 6px;opacity:1}
.reference .timeline-label{font-family:ui-monospace,Menlo,monospace;font-size:12.5px;letter-spacing:.02em;line-height:1;margin:0 0 3px;color:#9a9a9a;gap:8px}
.reference #duration{color:#6a6a6a;margin-left:auto}
.reference .seek-wrap{height:5px;touch-action:none}
.reference .seek-wrap:before,.reference #buffered,.reference #seek{height:3px;border-radius:1.5px}
.reference .seek-wrap:before{background:#ffffff2e}
.reference #buffered{background:#ffffff38}
.reference #seek::-webkit-slider-thumb{width:14px;height:14px;box-shadow:0 0 0 3px #ff900023}
.reference #seek::-moz-range-thumb{width:14px;height:14px}
.reference .backdrop{background:transparent;z-index:19}
.reference .sheet{position:absolute;left:auto;right:8px;bottom:56px;display:flex;flex-direction:column;background:#181818;border:1px solid #ffffff14;border-radius:10px;box-shadow:0 10px 28px #0009;z-index:20;width:auto;min-width:160px;max-width:60%;max-height:60%;overflow:hidden;padding:0;backdrop-filter:none;transform-origin:bottom right;animation:sheet-in .14s ease}
@keyframes sheet-in{from{opacity:0;transform:translateY(6px) scale(.96)}to{opacity:1;transform:none}}
.reference .sheet-head{display:none;position:relative;flex-shrink:0;background:#181818;border-bottom:1px solid #ffffff0f}
.reference #sheetBody{flex:1;overflow-y:auto;min-height:0;padding:8px 0;scrollbar-width:thin;scrollbar-color:#ffffff2e transparent;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
.reference #sheetBody::-webkit-scrollbar{width:4px}
.reference #sheetBody::-webkit-scrollbar-thumb{background:#ffffff2e;border-radius:2px}
.reference .option{display:flex;align-items:center;justify-content:flex-start;width:100%;padding:9px 14px;gap:10px;min-height:0;font-size:13.5px;font-weight:400;line-height:1.45;color:#e9e9e9;text-align:left;background:transparent;border:0;cursor:pointer;transition:background .12s}
.reference .option:hover{background:#ffffff0d;color:#e9e9e9}
.reference .option:active{background:#ffffff17}
.reference .option-label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:flex;align-items:center}
.reference .option .detail{font-size:10px;color:#ffffff73;font-family:ui-monospace,Menlo,monospace;letter-spacing:.04em;text-transform:uppercase;flex-shrink:0;white-space:nowrap}
.reference .option-check{width:16px;height:16px;color:var(--accent);flex-shrink:0;opacity:0}
.reference .option-check svg{display:block;width:100%;height:100%;fill:currentColor}
.reference .option.selected{background:rgba(255,144,0,.08)}
.reference .option.selected .option-label{color:var(--accent);font-weight:600}
.reference .option.selected .option-check{opacity:1}
.reference #dialogueBoost .option-label svg{display:block;width:18px;height:18px;fill:currentColor;color:#ffffff8c;flex-shrink:0;margin-right:10px}
.reference .sheet-section{padding:10px 14px 4px;font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#ffffff66}
.reference .sheet-note{font-size:12px;margin:0;padding:9px 14px}
.reference .screen-wizard{padding:0 12px 6px;display:flex;flex-direction:column;gap:12px}
.reference .screen-label{font-size:12px;font-weight:600;color:#ffffffc7;margin-bottom:6px}
.reference .segments{display:flex;overflow-x:auto;scrollbar-width:none;border:1px solid #ffffff29;border-radius:6px;background:#00000047}
.reference .segments button{flex:1 0 auto;padding:7px 10px;border-right:1px solid #ffffff1f;color:#ffffffd1;font-size:12px;line-height:1.2;font-weight:600;white-space:nowrap}
.reference .segments button:last-child{border:0}
.reference .segments button.selected{background:#ffffff29;color:white}
.reference .seek-ripple{position:absolute;top:30%;height:40%;width:30%;display:grid;align-content:center;justify-items:center;gap:5px;background:#ffffff16;color:white;border-radius:50%;font:12px ui-monospace,monospace;pointer-events:none;animation:ripple .6s ease forwards;z-index:7}
.reference .seek-ripple.left{left:3%}.reference .seek-ripple.right{right:3%}
@keyframes ripple{0%{opacity:0;transform:scale(.8)}25%{opacity:1}100%{opacity:0;transform:scale(1.1)}}
.reference .volume-hud{position:absolute;right:9%;top:35%;background:#111d;border-radius:8px;padding:12px 16px;z-index:8;pointer-events:none;color:white;font:14px ui-monospace,monospace}
.reference:fullscreen,.reference:-webkit-full-screen{width:100%;height:100%;max-width:none;max-height:none}
@media(hover:hover) and (min-width:721px){
  .reference .sheet{right:12px;bottom:64px;width:300px;min-width:160px;max-width:calc(100% - 24px);max-height:50%;border-radius:8px;box-shadow:0 14px 36px #0009}
  .reference .sheet-head{display:block;padding:12px 14px 10px}
  .reference #sheetTitle{font-size:11px;line-height:1.45;text-transform:uppercase;letter-spacing:.1em;color:#ffffff8c;font-weight:700;margin:0}
  .reference #closeSheet{position:absolute;top:6px;right:6px;width:26px;height:26px;border-radius:50%;padding:0;display:grid;place-items:center;color:#fff;font-size:0}
  .reference #closeSheet svg{width:16px;height:16px;fill:currentColor}
  .reference .option{font-size:13px}
  .reference .sheet.fit-sheet{width:min(420px,calc(100% - 24px));max-height:none}
}
@media(max-width:720px){
  .reference .controls{padding:40px 8px 8px}
  .reference .control-row{gap:0;min-height:40px}
  .reference .control-row button{width:40px;height:40px}
  .reference .control-row #audio,.reference .control-row #subs,.reference .control-row #quality,.reference .control-row #speed{height:32px;margin:0;padding:0 8px;border-radius:16px;font-size:12px}
  .reference .control-row #audio{padding:0 7px 0 6px}
  .reference .control-row #audio svg,.reference .control-row #subs svg{width:17px;height:17px}
  .reference #subLabel{display:none}
  .reference #qualityLabel{overflow:hidden;text-overflow:ellipsis;max-width:100%}
  .reference .timeline-label{font-size:11px}
  .reference .big-play{width:56px;height:56px}
  .reference .big-play svg{width:30px;height:30px}
}
@media(hover:none) and (pointer:coarse){
  .reference .seek-wrap{height:6px}
  .reference #volume{display:none!important}
  .reference #subLabel{display:none}
  .reference .control-row #subs{padding:0 8px}
  .reference .control-row button:hover{background:transparent}
  .reference #seek::-webkit-slider-thumb{width:12px;height:12px}
}
.reference.compact-controls .control-row #audio,.reference.compact-controls .control-row #subs,.reference.compact-controls .control-row #quality{height:28px;padding:0 5px 0 4px;margin:0;gap:2px}
.reference.compact-controls #audioLabel,.reference.compact-controls #qualityLabel{font-size:11px}
.reference.compact-controls .control-row #audio svg,.reference.compact-controls .control-row #subs svg,.reference.compact-controls #quality svg{width:15px;height:15px}
.reference.compact-controls #qualityLabel{max-width:6.2em;overflow:hidden;text-overflow:ellipsis}
.reference.compact-controls .control-row #pip,.reference.compact-controls .control-row #fit,.reference.compact-controls .control-row #fullscreen{width:32px;height:32px}
.reference.compact-controls .control-row #speed{height:28px;padding:0 8px;font-size:11px}
@media(max-width:420px){.reference .big-play{width:52px;height:52px}}

.reference .top.watch-heading{padding:12px 20px}.reference .top.watch-heading h1{font-size:24px;font-weight:700;line-height:1.25;margin:0 0 7px}.watch-meta{font-size:14px;line-height:1.45;color:#b8b8b8;overflow-wrap:anywhere}.watch-languages{color:#ffa43b;font-weight:600}.watch-meta-separator{margin:0 5px}.watch-year{font-weight:400}

/* Heading follows the actual player size, including small embeds and fullscreen. */
.reference .top.watch-heading{padding:clamp(6px,2.5vh,12px) clamp(8px,min(2vw,3vh),20px)}
.reference .top.watch-heading>div{min-width:0;max-width:100%}
.reference .top.watch-heading h1{font-size:clamp(12px,min(3.8vw,6.5vh),24px);line-height:1.2;margin-bottom:clamp(3px,1vh,7px);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
.reference .watch-meta{font-size:clamp(10px,min(2.6vw,4.5vh),14px);line-height:1.35;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.reference .quality-unavailable{opacity:.55;cursor:not-allowed}
.reference .quality-unavailable:hover{color:inherit;background:transparent}
.reference .quality-unavailable .detail{white-space:nowrap;max-width:160px}
.reference .quality-unavailable .option-check{display:none}
@supports(container-type:size){
 .reference{container-type:size}
 .reference .top.watch-heading{padding:clamp(6px,2.5cqh,12px) clamp(8px,min(2cqw,3cqh),20px)}
 .reference .top.watch-heading h1{font-size:clamp(12px,min(3.8cqw,6.5cqh),24px);margin-bottom:clamp(3px,1cqh,7px)}
 .reference .watch-meta{font-size:clamp(10px,min(2.6cqw,4.5cqh),14px)}
}

/* Touch gestures: a vertical player-only volume indicator. */
.reference .gesture-hud{position:absolute;top:50%;transform:translateY(-50%);width:66px;min-height:188px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:14px 10px;background:rgba(14,16,18,.88);border:1px solid #ffffff18;border-radius:11px;box-shadow:0 8px 28px #0005;z-index:10;pointer-events:none;color:#fff;font:13px/1.2 system-ui,sans-serif}
.reference .gesture-hud{right:7%}
.reference .gesture-percent{font-size:14px;font-weight:700}.reference .gesture-track{position:relative;width:7px;height:94px;overflow:hidden;background:#ffffff25;border-radius:8px}.reference .gesture-fill{position:absolute;bottom:0;left:0;width:100%;background:#fff;border-radius:8px}.reference .gesture-icon{height:17px}.reference .gesture-icon svg{width:17px;height:17px;fill:currentColor}.reference .gesture-label{font-size:10px;letter-spacing:.11em;color:#d0d0d0}
@media(max-height:400px){.reference .gesture-hud{top:40%;min-height:154px;padding:10px;gap:7px}.reference .gesture-track{height:74px}}
