:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;color:#fff;background:#080d16;color-scheme:dark;-webkit-font-smoothing:antialiased;--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--accent:#42e4c3}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overscroll-behavior:none}body{overflow:hidden}button{font:inherit;cursor:pointer;border:0}button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:4px}button:disabled{opacity:.4;cursor:not-allowed}[hidden]{display:none!important}.app{width:100%;height:100vh;height:100dvh;display:flex;justify-content:center;align-items:center;position:relative;isolation:isolate;overflow:hidden}.app:before{content:"";inset:-20%;position:absolute;z-index:-1;background:radial-gradient(circle at 24% 35%,#123044,#080d16 48%),radial-gradient(circle at 80% 70%,#103349,transparent 36%)}.phone-shell{position:relative;flex:0 0 auto;overflow:hidden;width:100%;height:100vh;height:100dvh;background:#081322;isolation:isolate;touch-action:pan-y;user-select:none;-webkit-user-select:none}#storyVideo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#0c1a2b;z-index:0}.film-tint{position:absolute;z-index:1;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(2,9,17,.84) 0%,rgba(2,9,17,.35) 15%,transparent 33%,transparent 42%,rgba(1,6,13,.24) 61%,rgba(1,6,13,.76) 77%,rgba(1,6,13,.95) 100%)}.glow-corner{position:absolute;pointer-events:none;z-index:1;inset:0;background:linear-gradient(110deg,rgba(3,11,27,.25),transparent 72%)}.video-top,.video-bottom,.side-actions,.video-mid,.top-hints,.end-next{position:absolute;z-index:3}.video-top{top:0;left:0;right:0;padding:calc(var(--safe-top) + 17px) 17px 0}.topbar{display:flex;justify-content:space-between;align-items:center;min-height:28px}.mobile-brand{display:flex;align-items:center;gap:6px;font-weight:900;letter-spacing:-.65px;font-size:18px;text-shadow:0 2px 6px #001}.mobile-brand>span:last-child{color:var(--accent)}.brand-mark,.mark{display:flex;align-items:flex-end;gap:3px;height:17px;margin-right:3px}.brand-mark i,.mark i{display:block;border-radius:2px;background:var(--accent);width:4px;transform:skewX(-13deg)}.brand-mark i:nth-child(1),.mark i:nth-child(1){height:9px}.brand-mark i:nth-child(2),.mark i:nth-child(2){height:16px}.brand-mark i:nth-child(3),.mark i:nth-child(3){height:12px}.mode-chip{font-size:10px;letter-spacing:.75px;font-weight:850;color:#d6edf0;border:1px solid #ffffff39;background:#07131db7;padding:6px 8px;border-radius:20px;white-space:nowrap}.category-scroll{display:flex;gap:7px;overflow:auto;margin-top:17px;scrollbar-width:none;padding-bottom:4px}.category-scroll::-webkit-scrollbar{display:none}.category-tab{background:#101927a8;border:1px solid #ffffff2e;padding:8px 13px;border-radius:22px;color:#d5dce4;font-size:12px;font-weight:750;white-space:nowrap;transition:background .2s}.category-tab.active{background:#f1f8f8;color:#0a1a25;border-color:#f1f8f8}.top-hints{top:calc(var(--safe-top) + 102px);left:0;right:0;display:flex;justify-content:center}.update-pill{border-radius:100px;background:rgba(35,80,78,.96);border:1px solid #67e5c4;color:white;padding:10px 15px;display:flex;align-items:center;gap:9px;font-size:12px;font-weight:800;box-shadow:0 10px 34px #0008}.update-dot{width:6px;height:6px;background:#64ffcf;border-radius:50%;box-shadow:0 0 0 5px #4ecba32e}.video-mid{inset:27% 0 31%;pointer-events:none;display:flex;align-items:center;justify-content:center}.video-mid>*{pointer-events:auto}.center-play{background:rgba(0,0,0,.72);border:1px solid #ffffff5c;color:white;border-radius:20px;padding:15px 24px;display:flex;gap:12px;align-items:center;font-weight:780;box-shadow:0 5px 35px #000a}.triangle{width:0;height:0;border-top:9px solid transparent;border-bottom:9px solid transparent;border-left:14px solid white}.video-error{max-width:275px;margin:auto;padding:24px 20px;background:#08131fe8;border:1px solid #ffffff36;border-radius:20px;text-align:center;display:flex;align-items:center;flex-direction:column;gap:11px}.video-error strong{font-size:18px}.video-error small{color:#bed0df}.video-error button{background:#e2f8f4;padding:11px;border-radius:13px;color:#0d2931;font-weight:800}.error-ring{width:40px;height:40px;line-height:36px;border-radius:50%;border:2px solid #f4c78c;color:#f4c78c;font-size:23px}.side-actions{right:11px;bottom:calc(172px + var(--safe-bottom));display:flex;flex-direction:column;gap:17px;align-items:center;width:61px}.action{display:flex;flex-direction:column;align-items:center;gap:5px;background:none;color:white;text-shadow:0 1px 4px #000b;padding:0;min-width:60px;font-size:10px;font-weight:780}.action-icon{width:43px;height:43px;background:#061623a9;border:1px solid #ffffff6a;border-radius:50%;display:flex;justify-content:center;align-items:center;box-shadow:0 4px 15px #0006}.action-icon svg{height:21px;width:21px}.action-sound .action-icon{background:rgba(42,122,105,.94);border:1px solid #67e5ca}.video-bottom{left:0;right:0;bottom:0;padding:0 86px calc(var(--safe-bottom) + 15px) 18px;pointer-events:none}.video-bottom>*{pointer-events:auto}.feed-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.topic-chip{background:#53dfbb;color:#093331;padding:4px 7px;border-radius:5px;letter-spacing:.65px;font-size:10px;font-weight:900}.story-index{font-size:11px;color:#d3e1e9;font-weight:850;letter-spacing:1px}#storyTitle{font-size:clamp(23px,5.7vw,30px);font-weight:850;line-height:1.15;letter-spacing:-.75px;margin:0 0 9px;max-width:99%;text-wrap:balance;text-shadow:0 2px 13px #000b}#storySummary{font-size:13px;line-height:1.47;font-weight:500;color:#e1e8ef;max-width:370px;margin:0 0 11px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.story-context{font-weight:780;padding:9px 12px;border-radius:12px;border:1px solid #b7d4df7d;background:rgba(9,24,39,.63);font-size:12px;color:white;display:flex;gap:9px;align-items:center;width:max-content}.story-context .arrow{color:#67e4c4;font-size:17px}.source-line{display:flex;gap:7px;align-items:center;font-size:10px;font-weight:650;letter-spacing:.2px;margin:9px 0 14px;color:#c5d1df}.source-separator{color:#91a4b7}.playback-progress{height:4px;background:#ffffff40;border-radius:20px;overflow:hidden;max-width:500px}.playback-progress-fill{width:0;height:100%;background:#5ff2cb;transition:width .15s linear}.bottom-rail{display:flex;align-items:center;justify-content:space-between;padding-top:12px;gap:6px;font-size:10px;color:#bfd2d8;font-weight:700}.swipe-prompt{display:flex;align-items:center;gap:5px}.swipe-prompt svg{height:16px;width:16px}.swipe-indicator{position:absolute;z-index:2;right:21px;bottom:calc(147px + var(--safe-bottom));opacity:.45;font-size:19px;pointer-events:none}.end-next{inset:auto 20px calc(265px + var(--safe-bottom)) 20px;padding:18px;border:1px solid #ffffff3c;border-radius:20px;background:#071521e6;display:flex;gap:13px;align-items:center;flex-direction:column;font-weight:750;backdrop-filter:blur(8px)}.end-next button{width:100%;background:#5be7c5;color:#09211e;font-weight:900;border-radius:14px;padding:13px}.end-next button span{float:right}.toast{position:fixed;z-index:30;left:50%;bottom:calc(15% + var(--safe-bottom));transform:translate(-50%,20px);background:#d5fff4;color:#10352c;padding:11px 15px;border-radius:12px;white-space:nowrap;font-size:12px;font-weight:800;box-shadow:0 12px 35px #0009;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}.toast.show{opacity:1;transform:translate(-50%,0)}.details-layer{position:fixed;z-index:20;inset:0;display:flex;align-items:flex-end;justify-content:center}.details-backdrop{position:absolute;inset:0;background:#000a;backdrop-filter:blur(3px)}.details-sheet{position:relative;overflow-y:auto;max-height:82dvh;width:min(100%,520px);padding:15px 23px calc(22px + var(--safe-bottom));border-radius:27px 27px 0 0;background:#111b28;box-shadow:0 -12px 80px #0009;border-top:1px solid #ffffff26}.sheet-handle{width:45px;height:5px;border-radius:20px;background:#718399;margin:0 auto 17px}.sheet-head{display:flex;justify-content:space-between;align-items:center}.detail-flag{font-weight:900;letter-spacing:1.4px;font-size:11px;color:#6ee4c3}.close-details{background:#ffffff1f;color:white;width:32px;height:32px;border-radius:50%}.details-sheet h2{font-size:27px;line-height:1.15;letter-spacing:-.5px;margin:17px 0 10px}.details-sheet p{font-size:14px;line-height:1.65;color:#d9e1eb}.keypoints{border-top:1px solid #ffffff26;border-bottom:1px solid #ffffff26;padding:8px 0 16px;margin:19px 0}.keypoints h3{font-size:14px;margin:13px 0}.keypoints li{font-size:14px;color:#d7e5e7;line-height:1.6;padding:3px}.source-footer{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#9bafbf}.source-footer a{color:#8ce9d2}.details-sheet .demo-foot{font-size:11px;color:#9aabbb}.desktop-info,.desktop-right{display:none}.debug-panel{position:fixed;z-index:50;right:4px;bottom:6px;max-width:300px;overflow:auto;max-height:190px;padding:8px;border-radius:8px;background:#06101bf0;color:#9dfddc;font:10px monospace;pointer-events:none}
@media(min-width:760px){.app{gap:min(6vw,90px)}.phone-shell{width:min(440px,47vw);height:min(900px,94dvh);border-radius:30px;box-shadow:0 20px 90px #000c;border:1px solid #ffffff2a}.desktop-info{display:flex;flex-direction:column;justify-content:space-between;width:min(380px,30vw);height:min(690px,88dvh);padding:5px 0}.desktop-brand{font-size:22px;font-weight:850;letter-spacing:-.9px;display:flex;align-items:center;gap:3px}.desktop-brand>span:last-child{color:var(--accent)}.desktop-body{margin:auto 0}.eyebrow{letter-spacing:2px;color:#73e7ce;font-size:11px;font-weight:850}.desktop-body h1{font-size:clamp(44px,4.5vw,68px);letter-spacing:-3px;line-height:1.06;font-weight:850;margin:25px 0}.desktop-body h1 span{color:var(--accent)}.desktop-body p{color:#afbfce;line-height:1.75;font-size:16px;max-width:355px}.desktop-tips{display:flex;flex-direction:column;gap:14px;margin:45px 0;border-top:1px solid #ffffff2a;padding-top:22px}.desktop-tips div{font-size:13px;color:#dde5eb}.desktop-tips b{font-size:12px;color:#73e6cb;margin-right:18px}.desktop-note{font-size:11px!important;color:#7f8b9c!important}.desktop-right{display:block;position:absolute;right:26px;bottom:23px;text-align:right}.side-counter{font-weight:850;color:#deebf3;font-size:23px}.side-counter span{color:#4b6271}.side-caption{font-size:9px;letter-spacing:2px;color:#8499aa;padding-top:8px}#storyTitle{font-size:29px}}
@media(max-width:375px){.video-bottom{padding-right:76px}.side-actions{right:7px}.video-top{padding-left:13px;padding-right:13px}#storyTitle{font-size:21px}.action-icon{width:38px;height:38px}.side-actions{gap:12px}.source-line{font-size:9px}}@media(max-height:720px){.side-actions{bottom:calc(152px + var(--safe-bottom));gap:10px}.video-bottom{padding-bottom:calc(7px + var(--safe-bottom))}#storyTitle{font-size:21px}#storySummary{font-size:12px;-webkit-line-clamp:1}.feed-meta{margin-bottom:6px}.story-context{padding:7px 9px}.source-line{margin:6px 0 8px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* V2: compact single-line headlines, prominent centered sound and automatic next story. */
.mode-chip,.desktop-note,.demo-foot{display:none!important}
.video-mid{inset:22% 0 25%;display:flex;align-items:center;justify-content:center}
.center-sound,.center-play{width:150px;min-height:150px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:9px;background:rgba(5,14,24,.77);border:1px solid rgba(255,255,255,.6);border-radius:26px;color:#fff;box-shadow:0 14px 55px #0009;backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px);font-size:15px;font-weight:800;text-shadow:0 2px 7px #0008;transition:transform .15s,background .15s}
.center-sound:active,.center-play:active{transform:scale(.96)}
.sound-emblem{width:66px;height:66px;display:flex;align-items:center;justify-content:center;color:#fff}
.sound-emblem svg{width:62px;height:62px;filter:drop-shadow(0 3px 5px #0008)}
.center-sound-label{white-space:nowrap}
.play-emblem{display:flex;align-items:center;justify-content:center;width:65px;height:65px;border:3px solid #fff;border-radius:50%}
.play-emblem .triangle{margin-left:5px;border-top:13px solid transparent;border-bottom:13px solid transparent;border-left:21px solid #fff}
.video-bottom{bottom:0;left:0;right:0;padding:0 17px calc(var(--safe-bottom) + 13px);pointer-events:none}
.video-bottom>*{pointer-events:auto}
.headline-row{display:flex;align-items:center;gap:8px;min-width:0;max-width:100%;margin:0 0 10px}
.headline-row .topic-chip{flex:0 0 auto;font-size:9px;padding:4px 6px;letter-spacing:.3px}
#storyTitle{flex:1;min-width:0;max-width:none;margin:0;font-size:15px!important;font-weight:750;line-height:1.3;letter-spacing:0;white-space:nowrap;text-wrap:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;text-shadow:0 2px 9px #000c}
.feed-meta,.story-index,#storySummary,.story-context,.source-line{display:none!important}
.playback-progress{width:100%;max-width:none;height:3px}
.bottom-rail{padding-top:8px;font-size:10px}
.side-actions{bottom:calc(106px + var(--safe-bottom));gap:13px}
.swipe-indicator{bottom:calc(93px + var(--safe-bottom))}
.end-next{left:50%;right:auto;bottom:calc(85px + var(--safe-bottom));transform:translateX(-50%);width:max-content;min-width:195px;max-width:calc(100% - 40px);gap:8px;padding:12px 15px;font-size:13px;text-align:center;border-radius:16px}
.end-next button{padding:9px 14px;font-size:12px}
@media(min-width:760px){#storyTitle{font-size:16px!important}}
@media(max-width:375px){.video-bottom{padding:0 12px calc(var(--safe-bottom) + 10px)}#storyTitle{font-size:13px!important}.headline-row{gap:6px}.side-actions{bottom:calc(95px + var(--safe-bottom))}.center-sound,.center-play{width:136px;min-height:136px}}
@media(max-height:720px){.video-bottom{padding-bottom:calc(var(--safe-bottom) + 8px)}.side-actions{bottom:calc(90px + var(--safe-bottom))}.center-sound,.center-play{width:130px;min-height:130px}.sound-emblem{height:54px;width:54px}.sound-emblem svg{width:50px;height:50px}}


/* V3: preserve the original, unfiltered video colors. */
.film-tint,.glow-corner{display:none!important}
/* Keep labels legible without dimming the entire video. */
.mobile-brand{text-shadow:0 1px 3px rgba(0,0,0,.92),0 3px 9px rgba(0,0,0,.80)}
.category-tab:not(.active){background:rgba(5,14,27,.64);border-color:rgba(255,255,255,.55);text-shadow:0 1px 4px rgba(0,0,0,.85)}
#storyTitle{text-shadow:0 2px 3px #000,0 2px 9px #000}
.bottom-rail{text-shadow:0 1px 3px #000,0 2px 5px #000}
/* The center of the player never shows a play/pause overlay after a user tap. */
.center-play{display:none!important}

/* V4.1: video is never cropped, even for 16:9 / 4:3 / 1:1 sources. */
.phone-shell{background:#000}
#storyVideo{object-fit:contain!important;object-position:center center;background:#000!important}
/* Show all enabled categories, including currently empty topics, on phones. */
@media(max-width:600px){
  .category-scroll:not(.many-categories){flex-wrap:wrap;overflow:visible;column-gap:6px;row-gap:6px;margin-top:10px}
  .category-scroll:not(.many-categories) .category-tab{font-size:11px;padding:7px 10px}
  .category-scroll.many-categories{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:#77ddc0 transparent;padding-bottom:8px}
}
/* The one-line video headline is retained; the summary appears in Context. */
.detail-summary{font-size:15px;font-weight:650;line-height:1.6;color:#c8f1e6;background:rgba(45,197,163,.09);border-left:3px solid #5ce2bc;padding:11px 13px;margin:14px 0;border-radius:0 9px 9px 0;overflow-wrap:anywhere}
.details-sheet p[hidden],.details-sheet .keypoints[hidden]{display:none!important}
.empty-category{width:min(320px,85%);padding:21px 18px;background:rgba(8,20,30,.93);border:1px solid #ffffff35;border-radius:18px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:13px;box-shadow:0 12px 48px #000a}
.empty-category strong{font-size:16px;line-height:1.35}
.empty-category span{font-size:12px;line-height:1.5;color:#becbd4}
.empty-category button{background:#5ae5c4;color:#071b20;border-radius:9px;padding:10px 17px;font-weight:850}


/* V4.2: responsive swipe-video switching: show the next poster until the first decoded frame. */
#storyVideo,.prewarmed-video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain!important;object-position:center center;background:#000!important;z-index:0;}
.prewarmed-video{opacity:0;pointer-events:none;}
.video-switch-cover{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center center;background:#000;z-index:1;pointer-events:none;opacity:0;transition:opacity .14s ease-out;}
.video-switch-cover.is-visible{opacity:1;}
@media(prefers-reduced-motion:reduce){.video-switch-cover{transition:none}}

/* V4.3: finger-following vertical swipe with a single preview poster. */
.swipe-track{position:absolute;inset:0;z-index:0;transform:translate3d(0,0,0);will-change:transform;touch-action:none;backface-visibility:hidden;}
.swipe-neighbor{position:absolute;left:0;width:100%;height:100%;background-color:#000;background-size:contain;background-position:center;background-repeat:no-repeat;pointer-events:none;z-index:0;}
.swipe-track #storyVideo,.swipe-track .prewarmed-video,.swipe-track .video-switch-cover{position:absolute;inset:0;}
.swipe-track .prewarmed-video{pointer-events:none;}
@media(prefers-reduced-motion:reduce){.swipe-track{transition:none!important}}

/* V4.5.3: YouTube occupies the same media space as uploaded videos.
   Keep the official iframe unobstructed. Site navigation and footer remain outside. */
.youtube-stage{
  position:absolute;z-index:2;left:0;right:0;
  top:100px;bottom:calc(94px + var(--safe-bottom));
  overflow:hidden;background:#000;
  display:flex;align-items:center;justify-content:center;
}
.youtube-embed{width:100%;height:100%;max-width:100%;max-height:100%;
  display:flex;align-items:center;justify-content:center;overflow:hidden;
}
.youtube-embed.vertical{width:100%;height:100%;}
.youtube-embed.horizontal{width:100%;height:100%;}
.youtube-embed>div,.youtube-embed>iframe{
  display:block!important;flex:none!important;border:0!important;
  width:100%!important;height:100%!important;max-width:100%;max-height:100%;
  min-width:200px;min-height:200px;
}
/* The iframe has the exact video aspect-ratio without forced cropping.
   Shrinking only the iframe (not its controls) is permitted within its minimum size. */
.youtube-embed.vertical>div,.youtube-embed.vertical>iframe{
  width:min(100%, calc(var(--yt-available-height, 640px) * .5625))!important;
  height:auto!important;aspect-ratio:9/16;
}
.youtube-embed.horizontal>div,.youtube-embed.horizontal>iframe{
  width:100%!important;height:auto!important;aspect-ratio:16/9;
}
.youtube-entry{position:absolute;inset:0;background:#000;display:flex;align-items:center;justify-content:center;overflow:hidden}
.youtube-entry img{width:100%;height:100%;object-fit:contain;object-position:center;background:#000;filter:none!important}
.yt-entry-credit{position:absolute;top:8px;left:10px;background:#07151bba;color:#f5fff9;
  border-radius:7px;padding:5px 8px;font-size:10px;font-weight:650;letter-spacing:.1px}
.yt-entry-sound{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:1}
.yt-entry-sound:active{transform:translate(-50%,-50%) scale(.96)}
/* Keep existing upper navigation and single-line footer, but move site buttons below video. */
.phone-shell.is-youtube .swipe-track,.phone-shell.is-youtube .video-mid,
.phone-shell.is-youtube .side-actions,.phone-shell.is-youtube .swipe-indicator,
.phone-shell.is-youtube .end-next,.phone-shell.is-youtube .playback-progress{display:none!important}
.phone-shell.is-youtube .video-bottom{padding:0 13px calc(var(--safe-bottom) + 8px)}
.phone-shell.is-youtube .headline-row{margin-bottom:7px}
.youtube-nav{display:flex;gap:6px;justify-content:space-between;align-items:center;margin:0 0 4px}
.youtube-nav button{border:1px solid #7da59e;background:#0b1b22;color:#ecfff8;
  padding:5px 12px;border-radius:9px;font-size:11px;font-weight:700;min-height:28px}
.phone-shell.is-youtube .bottom-rail{padding-top:0}
.phone-shell.is-youtube .bottom-rail .swipe-prompt{display:none}
@media(max-height:680px){
 .youtube-stage{bottom:calc(90px + var(--safe-bottom))}
 .youtube-nav button{padding:3px 9px;min-height:24px}
}

/* V4.5.8: YouTube navigation returns to a visible, separate gutter.
   No element of the official YouTube iframe is covered: native play/pause,
   timeline, subtitles and attribution remain fully interactive. */
.youtube-stage { padding-right:46px; }
.youtube-stage .youtube-embed,
.youtube-stage .youtube-entry { min-width:0; }
.youtube-stage .youtube-entry { right:46px; }
.yt-gesture-rail {
  position:absolute;top:0;right:0;bottom:0;width:46px;z-index:7;
  display:flex;flex-direction:column;align-items:center;justify-content:space-between;
  box-sizing:border-box;border-left:1px solid rgba(110,229,203,.27);
  background:linear-gradient(180deg,#09161e,#0b2024 52%,#09161e);
  color:#ddfff7;touch-action:none;overscroll-behavior:contain;
  -webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;
}
.yt-rail-target {
  flex:1 1 0;min-height:100px;width:100%;padding:8px 1px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;
  background:transparent;color:#f0fff9;touch-action:none;
  cursor:pointer;border:0;border-radius:0;font-weight:800;
}
.yt-rail-target:active{background:rgba(65,207,170,.22)}
.yt-rail-target:focus-visible{outline:2px solid #69ebca;outline-offset:-3px}
.yt-rail-target .yt-rail-arrow{font-size:26px;line-height:1.2;font-weight:750}
.yt-rail-target small{font-size:9px;line-height:1.2;letter-spacing:.25px;font-weight:850}
.yt-rail-hint{flex:0 0 auto;writing-mode:vertical-rl;transform:rotate(180deg);
  font-size:9px;letter-spacing:3px;font-weight:900;line-height:1;
  color:#5fd9bd;padding:10px 0;pointer-events:none}
@media(max-width:375px) {
  .youtube-stage { padding-right:42px; }
  .youtube-stage .youtube-entry { right:42px; }
  .yt-gesture-rail { width:42px; }
  .yt-rail-target .yt-rail-arrow {font-size:23px}
}

/* V4.5.9: one shared side navigation for local MP4 and YouTube. */
/* The rail lives OUTSIDE the player surfaces, never over the YouTube iframe. */
.yt-gesture-rail {
  top:100px; bottom:calc(94px + var(--safe-bottom)); right:0;
  z-index:9;
}
.phone-shell:not(.is-youtube) .swipe-track { right:46px; }
.phone-shell:not(.is-youtube) .video-mid { right:46px; }
/* Move the former four right-hand buttons into a compact footer toolbar.
   PREV / NEXT are now handled by the common rail, not the old Next button. */
.phone-shell:not(.is-youtube) .video-bottom .side-actions {
  position:static;display:flex;flex-direction:row;justify-content:flex-start;
  align-items:center;gap:8px;width:100%;height:34px;margin:4px 0 0;
  background:transparent;pointer-events:auto;
}
.phone-shell:not(.is-youtube) .video-bottom .side-actions .action {
  min-width:0;display:flex;flex-direction:row;align-items:center;gap:5px;
  border:1px solid rgba(125,165,158,.75);border-radius:9px;
  padding:4px 9px;background:rgba(9,25,35,.93);font-size:10px;
  min-height:28px;line-height:1;
}
.phone-shell:not(.is-youtube) .video-bottom .side-actions .action-icon,
.phone-shell:not(.is-youtube) .video-bottom .side-actions .action-sound .action-icon {
  width:17px;height:17px;background:none;border:0;box-shadow:none;
}
.phone-shell:not(.is-youtube) .video-bottom .side-actions .action-icon svg {width:15px;height:15px}
.phone-shell:not(.is-youtube) .video-bottom .side-actions #nextButton {display:none!important}
.phone-shell:not(.is-youtube) .video-bottom {padding-right:13px}
.phone-shell:not(.is-youtube) .bottom-rail .swipe-prompt {display:none}
/* In YouTube mode, its native control surface and the compact site footer
   retain their previous arrangement. The local toolbar is hidden. */
.phone-shell.is-youtube .video-bottom .side-actions{display:none!important}
@media(max-width:375px){
  .yt-gesture-rail{width:42px}
  .phone-shell:not(.is-youtube) .swipe-track{right:42px}
  .phone-shell:not(.is-youtube) .video-mid{right:42px}
  .phone-shell:not(.is-youtube) .video-bottom .side-actions{gap:5px}
  .phone-shell:not(.is-youtube) .video-bottom .side-actions .action{padding:4px 6px}
}
@media(max-height:680px){
  .yt-gesture-rail{bottom:calc(90px + var(--safe-bottom))}
}
