.watch-viewing #main{margin-left:var(--watch-rail,216px);padding:24px 34px;max-width:1760px}
.watch-view{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:24px;margin:auto;max-width:1500px;font-family:Arial,Helvetica,sans-serif}
.watch-film-column{min-width:0}.watch-film-column>h1{font:700 21px/1.35 Arial,sans-serif;letter-spacing:0;margin:15px 0}
.watch-playback-host{position:relative;display:block;width:100%;aspect-ratio:16/9;min-width:0;min-height:0;overflow:hidden;border:0;border-radius:12px;background:#000;color:#fff}
.watch-playback-host>video,.watch-playback-host>iframe{position:absolute;inset:0;display:block;width:100%;height:100%;min-height:0;max-height:none;object-fit:contain;border:0;border-radius:0;opacity:1;visibility:visible}
.watch-view-identity{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}
.watch-view-channel{display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit;font:600 14px Arial,sans-serif}.watch-view-channel>img{width:40px;height:40px;border-radius:50%;object-fit:contain;background:#fff}
.watch-up-next{display:grid;align-content:start;gap:13px}.watch-next-card{display:grid;grid-template-columns:160px minmax(0,1fr);gap:10px;text-decoration:none;color:inherit}.watch-next-card>img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:8px}.watch-next-card strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font:600 14px/1.35 Arial,sans-serif}.watch-next-card span{display:block;color:var(--muted);font:12px/1.5 Arial,sans-serif;margin-top:5px}
.watch-comments-mount .watch-comments{background:transparent;height:auto;display:flex;flex-direction:column;overflow:visible;margin-top:25px;color:var(--text)}.watch-comments-mount .watch-comments>header{background:none;border:0;padding:0}.watch-comments-mount .watch-comments .ig-comments-scroll{overflow:visible;padding-inline:0}.watch-comments-mount .watch-comments .comments-form{background:none;border:0;padding-inline:0}.watch-comments-mount .watch-comments .comments-close,.watch-comments-mount .watch-comments .ig-comments-handle{display:none}
.watch-short-view #main{padding:12px 30px 16px}.watch-short-view .watch-view{display:flex;justify-content:center;align-items:center;position:relative;max-width:100%;min-height:calc(100dvh - 88px)}
.watch-short-layout{display:flex;align-items:flex-end;gap:18px}.watch-short-stage{position:relative;height:min(850px,calc(100dvh - 88px));aspect-ratio:9/16;border-radius:12px;overflow:hidden;background:#000;color:#fff;touch-action:pan-x pinch-zoom;isolation:isolate}
.watch-short-media{height:100%;width:100%;aspect-ratio:9/16;border-radius:0}.watch-short-media>iframe{pointer-events:none}.watch-short-media>video{object-fit:contain}
.watch-short-top{position:absolute;z-index:3;inset:0 0 auto;display:flex;align-items:center;gap:8px;padding:14px;background:linear-gradient(#0008,transparent);opacity:0;transition:opacity .18s}.watch-short-stage:hover .watch-short-top,.watch-short-stage.is-paused .watch-short-top,.watch-short-top:focus-within{opacity:1}
.watch-short-top button{display:grid;place-items:center;width:42px;height:42px;border:0;border-radius:50%;color:#fff;background:#0007;cursor:pointer;padding:10px}.watch-short-top .short-sound{margin-left:auto}.watch-short-top svg{width:22px;height:22px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linejoin:round}.short-play svg{fill:currentColor;stroke:none}
.watch-short-caption{position:absolute;z-index:2;bottom:8px;left:0;right:0;padding:70px 16px 18px;background:linear-gradient(transparent,#0009);pointer-events:none}.watch-short-caption>*{pointer-events:auto}.watch-short-caption h1{font:500 15px/1.4 Arial,sans-serif;letter-spacing:0;margin:12px 0 0;color:#fff}.watch-short-caption .watch-view-channel{font-size:14px}.watch-short-caption .watch-view-channel>img{width:32px;height:32px}
.watch-short-stage .watch-short-progress{appearance:none;-webkit-appearance:none;position:absolute;z-index:5;bottom:0;left:0;width:100%;height:4px;min-height:0;padding:0;border:0;border-radius:0;margin:0;background:linear-gradient(to right,#f03 var(--played,0%),#ffffff40 var(--played,0%));accent-color:#f03;cursor:pointer}.watch-short-progress::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:8px;height:8px;background:#f03;border-radius:50%}
.watch-short-actions .social-action-set{display:flex;flex-direction:column;align-items:center;gap:18px}.watch-short-actions .social-action-set button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:6px;width:54px;min-height:62px;padding:0;border:0;background:transparent;color:var(--text);font:500 12px Arial,sans-serif;cursor:pointer}.watch-short-actions .social-action-set svg{box-sizing:content-box;padding:14px;width:22px;height:22px;border-radius:50%;background:var(--surface);stroke:currentColor;fill:none;stroke-width:1.8}.watch-short-actions .ig-site-like-count{display:none!important}.watch-short-actions .social-action-set .is-liked svg{fill:currentColor}.watch-short-actions .social-action-set button:hover svg{filter:brightness(.9)}
.watch-short-next{position:absolute;right:0;display:flex;flex-direction:column;gap:16px}.watch-short-next button{display:grid;place-items:center;border:0;border-radius:50%;width:48px;height:48px;cursor:pointer;background:var(--surface);color:var(--text)}.watch-short-next svg{width:24px;height:24px;stroke:currentColor;fill:none;stroke-width:1.7}.watch-short-next button:disabled{opacity:.25;cursor:default}
.short-comments-mount:not([hidden]){position:absolute;z-index:8;right:50px;top:0;width:340px;height:100%;border-radius:12px;overflow:hidden;background:var(--bg);box-shadow:0 12px 45px #0005}.watch-short-media .media-load-error{position:relative;z-index:6;background:#111;color:#fff;padding:25px}
@media(max-width:1300px){.watch-viewing #main{margin-left:var(--watch-rail,216px)}.watch-view{grid-template-columns:minmax(0,1fr) 310px}.watch-next-card{grid-template-columns:140px minmax(0,1fr)}}
@media(max-width:1000px){.watch-view{grid-template-columns:1fr;max-width:850px}.watch-up-next{grid-template-columns:repeat(2,minmax(0,1fr))}.watch-next-card{grid-template-columns:120px minmax(0,1fr)}.watch-short-next{right:0}}
@media(max-width:700px){.watch-viewing #main{margin:0;padding:0}.watch-film-column>h1,.watch-view-identity,.watch-film-column>.watch-description,.watch-comments-mount,.watch-up-next{margin-inline:14px}.watch-playback-host{border-radius:0}.watch-up-next{grid-template-columns:1fr;padding-bottom:25px}.watch-next-card{grid-template-columns:155px minmax(0,1fr)}.watch-film-column>h1{font-size:19px}.watch-short-view #main{padding:0}.watch-short-view .watch-view{min-height:0}.watch-short-stage{height:calc(100dvh - 64px);width:100vw;max-width:calc((100dvh - 64px)*.5625);aspect-ratio:auto;border-radius:0}.watch-short-layout{display:block;position:relative}.watch-short-actions{position:absolute;right:8px;bottom:105px;color:#fff}.watch-short-actions .social-action-set{gap:15px}.watch-short-actions .social-action-set button{color:#fff}.watch-short-actions .social-action-set svg{background:#0007;padding:11px}.watch-short-caption{padding-right:70px}.watch-short-next{display:none}.watch-short-top{opacity:1}.short-comments-mount:not([hidden]){position:fixed;inset:auto 0 0;width:100%;height:65dvh;border-radius:16px 16px 0 0}}
@media(prefers-reduced-motion:reduce){.watch-short-top{transition:none}}

.watch-short-actions .social-action-set .like-count,.watch-short-actions .social-action-set [data-comment-content]>span{display:block}

@media(max-width:700px){.watch-short-view{--watch-header-height:64px}.watch-short-view .watch-header{height:64px;min-height:64px;flex-wrap:nowrap}.watch-short-view .watch-search{display:none}.watch-short-media>video{object-fit:cover}}

/* Shorts scroll as full-height cards, using the same native motion as Reels. */
.watch-short-view .watch-view{height:calc(100dvh - 92px);min-height:0;align-items:stretch;overflow:visible}
.watch-short-feed{position:relative;width:100%;height:100%;min-height:0;overflow-x:hidden;overflow-y:auto;scroll-snap-type:y mandatory;scrollbar-width:none;overscroll-behavior-y:contain;touch-action:pan-y pinch-zoom}
.watch-short-feed::-webkit-scrollbar{display:none}
.watch-short-slide{height:100%;min-height:100%;width:100%;display:flex;align-items:center;justify-content:center;scroll-snap-align:start;scroll-snap-stop:always;position:relative}
.watch-short-slide .watch-short-stage{height:100%;max-height:100%;touch-action:pan-y pinch-zoom;flex:none}
.watch-short-slide .watch-short-layout{height:100%;max-width:100%;flex:none}
.watch-short-poster{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none;-webkit-user-drag:none}
.watch-short-slide .watch-short-media{background:transparent;position:absolute;inset:0;touch-action:pan-y pinch-zoom}
.watch-short-feed.is-dragging{scroll-snap-type:none;cursor:grabbing;user-select:none}
.watch-short-back{position:absolute;z-index:7;top:12px;left:12px;display:flex;align-items:center;gap:8px;padding:10px 14px;border:1px solid var(--line);border-radius:24px;background:var(--bg);color:var(--text);text-decoration:none;font:600 13px Arial,sans-serif;min-height:42px;box-sizing:border-box}
.watch-short-back svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}
.watch-short-view .watch-short-next{top:50%;transform:translateY(-50%);z-index:6}
@media(max-width:700px){
 .watch-short-view .watch-view{height:calc(100dvh - 64px)}
 .watch-short-slide .watch-short-layout{display:block;width:100%;height:100%}
 .watch-short-slide .watch-short-stage{width:100%;max-width:none;height:100%;aspect-ratio:auto}
 .watch-short-back{left:12px;top:12px;background:#0007;color:#fff;border-color:#ffffff30;padding:10px 12px;font-size:12px}
 .watch-short-slide .watch-short-top{padding-left:146px}
 .watch-short-slide .watch-short-media>video,.watch-short-slide .watch-short-poster{object-fit:contain}
}
@media(max-height:600px) and (orientation:landscape) and (max-width:1100px){
 .watch-viewing:not(.watch-short-view) #main{padding:12px max(16px,env(safe-area-inset-left))}
 .watch-film-column>.watch-playback-host{max-width:calc((100svh - var(--watch-header-height,64px) - 24px)*16/9);margin-inline:auto}
}
@media(max-height:600px) and (orientation:landscape){
 .watch-short-view .watch-view{height:calc(100dvh - 88px)}
 .watch-short-view .watch-short-stage{height:100%;max-width:none;width:auto;aspect-ratio:9/16}
 .watch-short-view .watch-short-layout{display:flex;width:auto;height:100%}
 .watch-short-view .watch-short-top{padding:8px;gap:4px}
 .watch-short-view .watch-short-top button{width:32px;height:32px;padding:6px}
 .watch-short-view .watch-short-back{left:4px;top:6px}
 .watch-short-view .watch-short-actions{position:static;align-self:flex-end}
 .watch-short-view .watch-short-actions .social-action-set{gap:4px}
 .watch-short-view .watch-short-actions .social-action-set button{min-height:44px;color:var(--text)}
 .watch-short-view .watch-short-actions .social-action-set svg{padding:8px}
 .watch-short-view .watch-short-caption{padding:40px 10px 12px}
 .watch-short-view .watch-short-caption h1{font-size:12px;margin-top:6px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 .watch-short-view .watch-short-caption .watch-view-channel>img{width:24px;height:24px}
 .watch-short-view .watch-short-caption .watch-view-channel{font-size:11px;gap:6px}
}

/* The watch page reserves the screen for the player and its recommendation rail. */
.watch-page.watch-viewing:not(.watch-short-view){--watch-rail:0px}
.watch-page.watch-viewing:not(.watch-short-view) #main{margin:0 auto;max-width:1840px;padding:16px 24px 48px}
.watch-page.watch-viewing:not(.watch-short-view) .watch-view{max-width:none;grid-template-columns:minmax(0,1fr) clamp(320px,27vw,402px);gap:24px;align-items:start}
.watch-page.watch-viewing .watch-guide{display:none}
.watch-page.watch-viewing:not(.watch-rail-collapsed) .watch-guide,.watch-page.watch-viewing.watch-rail-open .watch-guide{display:block;width:216px;z-index:50;background:var(--bg);box-shadow:8px 0 24px #0002;padding:8px 12px}
.watch-page.watch-viewing:not(.watch-rail-collapsed) .watch-guide :is(.watch-guide-channels,.watch-guide-more){display:grid}
.watch-page.watch-viewing:not(.watch-rail-collapsed) .watch-nav-item{flex-direction:row;gap:22px;padding:10px 12px;font-size:14px}
.watch-page.watch-viewing:not(.watch-short-view) .watch-playback-host{border-radius:12px}
.watch-film-column>h1{font-size:20px;line-height:1.4;margin:12px 0 10px}
.watch-view-owner{display:flex;align-items:center;gap:22px;min-width:0}
.watch-view-channel-copy{display:grid;gap:4px;min-width:0}
.watch-view-channel-copy strong{font-size:16px;line-height:1.2}
.watch-view-channel-copy small{font-size:12px;color:var(--muted);font-weight:400}
.watch-view-identity{gap:12px;margin-bottom:12px}
.watch-subscribe{flex:none;min-height:36px;padding:9px 16px;border:0;border-radius:999px;background:var(--text);color:var(--bg);font:600 14px Arial,sans-serif;box-shadow:none}
.watch-subscribe[aria-pressed=true]{background:var(--surface);color:var(--text)}
.watch-actions .social-action-set{flex-wrap:nowrap;gap:8px}
.watch-actions .social-action-set>.ig-site-like-count{display:none!important}
.watch-actions .social-action-set .social-action,.watch-actions .social-action-set .like-button{min-height:36px;padding:8px 14px;border:0;border-radius:999px;background:var(--surface);font:500 14px Arial,sans-serif;color:var(--text);gap:8px;box-shadow:none}
.watch-actions .social-action-set .like-count{display:inline!important}
.watch-actions .social-action-set svg{width:21px;height:21px}
.watch-description{display:block;background:var(--surface);color:var(--text);padding:12px;border-radius:12px;font:14px/1.5 Arial,sans-serif;white-space:normal;margin:0 0 22px}
.watch-description-summary{display:block;list-style:none;cursor:pointer}
.watch-description-summary::-webkit-details-marker{display:none}
.watch-description-meta{display:block;font-weight:600;margin-bottom:5px}
.watch-description-meta:empty{display:none}
.watch-description-preview{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-wrap}
.watch-description-more{display:inline-block;margin-top:5px;font-weight:600}
.watch-description-full{white-space:pre-wrap;overflow-wrap:anywhere;padding-top:8px}
.watch-description[open] .watch-description-preview{display:none}
.watch-up-next-title{font:600 16px Arial,sans-serif;margin:0 0 2px;letter-spacing:0}
.watch-next-card{grid-template-columns:168px minmax(0,1fr);gap:8px;align-items:start}
.watch-next-tile{position:relative;display:block;width:100%;aspect-ratio:16/9;overflow:hidden;border-radius:8px;background:var(--surface)}
.watch-next-tile>img{width:100%;height:100%;object-fit:cover}
.watch-next-duration{position:absolute;right:4px;bottom:4px;color:#fff;background:#000c;border-radius:4px;padding:2px 4px;font:600 11px Arial,sans-serif}
.watch-next-card strong{font-size:14px;line-height:1.4}
.watch-next-card span:not(.watch-next-tile){font-size:12px;line-height:1.5}
@media(max-width:1050px){.watch-page.watch-viewing:not(.watch-short-view) .watch-view{grid-template-columns:1fr;max-width:980px}.watch-up-next{grid-template-columns:1fr}.watch-next-card{grid-template-columns:minmax(160px,30%) minmax(0,1fr)}}
@media(max-width:700px){
 .watch-page.watch-viewing:not(.watch-short-view) #main{padding:0 0 30px}
 .watch-page.watch-viewing:not(.watch-short-view) .watch-view{gap:20px}
 .watch-page.watch-viewing:not(.watch-short-view) .watch-playback-host{border-radius:0}
 .watch-film-column>h1{font-size:18px;line-height:1.35;margin:12px 12px 10px}
 .watch-view-identity{display:block;margin:0 12px 12px}
 .watch-view-owner{justify-content:space-between;gap:12px;margin-bottom:12px}
 .watch-view-channel>img{width:36px;height:36px}
 .watch-view-channel-copy strong{font-size:14px}.watch-view-channel-copy small{font-size:11px}
 .watch-actions .social-action-set{overflow-x:auto;scrollbar-width:none;gap:8px;padding:0}
 .watch-actions .social-action-set .social-action,.watch-actions .social-action-set .like-button{padding:8px 16px;white-space:nowrap}
 .watch-film-column>.watch-description{margin:0 12px 16px;padding:12px;font-size:13px}
 .watch-comments-mount{margin-inline:12px}
 .watch-up-next{margin-inline:0;gap:22px}
 .watch-up-next-title{margin-inline:12px}
 .watch-next-card{display:block}
 .watch-next-tile{border-radius:0;width:100%}
 .watch-next-card>div{padding:10px 12px 0}
 .watch-next-card strong{font-size:15px}.watch-next-card span:not(.watch-next-tile){font-size:12px}
 .watch-next-duration{font-size:12px;right:8px;bottom:8px}
}
