/* PornHubTK v12 — fixed mobile video, separate actions and permanently accessible swipe zones */
:root{color-scheme:dark;--bg:#07080d;--panel:#14151e;--text:#f6f6fa;--muted:#a4a8b8;--edge:#353846;--accent:#fc3c78;--cyan:#8cece9;--safeB:env(safe-area-inset-bottom,0px);--safeT:env(safe-area-inset-top,0px)}
*{box-sizing:border-box}html,body{margin:0;min-width:0;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Roboto,Arial,sans-serif;-webkit-font-smoothing:antialiased}body{overflow-x:hidden}button,input,textarea{font:inherit}button{color:inherit;cursor:pointer}button:disabled{cursor:default;opacity:.38}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--cyan);outline-offset:2px}a{color:inherit;text-decoration:none}[hidden]{display:none!important}
.shell{min-height:100vh;display:block}.main{min-width:0;min-height:100vh;display:flex;flex-direction:column}.topbar{min-height:60px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #222532;padding:8px clamp(16px,3vw,45px);background:#090a10}.top-title{display:flex;align-items:center;gap:7px;white-space:nowrap;font-size:14px;font-weight:800}.mobile-brand{display:inline;font-size:28px;font-weight:920;letter-spacing:-1.3px}.mobile-brand span{color:var(--accent)}.top-controls{display:flex;gap:9px;align-items:center}.icon-btn,.language-btn{min-height:40px;border:1px solid #343846;background:#171b25;border-radius:11px;padding:0 12px;display:flex;align-items:center;justify-content:center;font-size:17px;font-weight:700}.icon-btn{width:40px}.icon-btn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}.language-btn{font-size:12px;gap:6px}.language-btn span:first-child{font-size:19px}.desktop-feed-nav{display:flex;align-items:center;gap:9px;margin-right:auto;margin-left:clamp(20px,5vw,80px)}.top-filter{display:flex;align-items:center;gap:7px;background:transparent;border:0;color:#aaadbb;padding:10px 13px;border-radius:9px;font-size:13px}.top-filter span:first-child{font-size:19px}.top-filter.selected,.top-filter:hover{background:#20212c;color:#fff}
.content{width:100%;flex:1;display:flex;justify-content:center;align-items:flex-start;padding:14px 14px 22px}.center{display:flex;align-items:center;flex-direction:column;min-width:0;width:min(100%,700px)}.category-wrap{width:100%;max-width:650px;overflow:hidden;margin-bottom:12px}.category-list{display:flex;align-items:center;gap:7px;padding:2px 1px 7px;overflow:auto;scrollbar-width:none}.category-list::-webkit-scrollbar{display:none}.category-list button{flex:none;white-space:nowrap;border:1px solid #353746;background:#171a24;color:#b9bdce;font-size:12px;font-weight:690;border-radius:20px;padding:9px 15px}.category-list button.selected{background:#56273b;border-color:#914364;color:#fff}.player-outer{position:relative;display:flex;justify-content:center;gap:13px;width:100%;min-width:0}.player-frame{position:relative;isolation:isolate;overflow:hidden;flex:0 0 auto;width:auto;height:min(76dvh,775px);min-height:350px;max-width:calc(100% - 74px);aspect-ratio:9/16;border-radius:14px;border:1px solid #303443;background:#050505;box-shadow:0 24px 50px #0008;outline:0}.cover-shimmer{position:absolute;inset:0;background:radial-gradient(ellipse at top,#394153,#151926 60%,#0b0f1a)}.shimmer-shape{position:absolute;inset:18%;border-radius:50%;background:#55526a;filter:blur(60px)}.poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:1}.cover-gradient{position:absolute;inset:0;z-index:2;pointer-events:none;background:linear-gradient(180deg,#0004,transparent 33%,#000c)}.iframe-slot{position:absolute;inset:0;z-index:5;background:#070707}.iframe-slot:empty{display:none}.iframe-slot iframe{display:block;width:100%;height:100%;border:0;background:black;touch-action:auto}/* No full-screen pointer overlay: video and player settings receive taps directly. */
.player-top{position:absolute;z-index:8;pointer-events:none;top:0;left:0;right:0;display:flex;justify-content:space-between;align-items:center;padding:14px}.player-badges{display:flex;gap:5px}.small-badge,.source-label{background:#000b;backdrop-filter:blur(6px);padding:6px 8px;border-radius:6px;font-size:10px;font-weight:770}.small-badge.pink{background:var(--accent)}.play-intro{position:absolute;z-index:12;inset:0;pointer-events:none;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:13px;font-size:12px;text-shadow:0 1px 6px black}.play-intro>*{pointer-events:auto}.play-circle{border:0;border-radius:50%;width:74px;height:74px;background:var(--accent);color:white;font-size:33px}.player-frame.is-playing .cover-gradient,.player-frame.is-playing .player-caption,.player-frame.is-playing .play-intro{display:none}.player-caption{position:absolute;z-index:8;pointer-events:none;bottom:0;left:0;right:0;padding:30px 16px 22px}.creator-line{display:flex;align-items:center;gap:8px;font-size:12px}.creator-avatar{display:grid;place-items:center;background:linear-gradient(120deg,var(--cyan),var(--accent));border-radius:50%;width:28px;height:28px;font-weight:900;color:#101018}.short-time{border-radius:14px;border:1px solid #fff7;padding:3px 8px;font-size:11px}.player-caption h1{line-height:1.3;font-size:16px;font-weight:740;margin:8px 0}.caption-footer{display:flex;gap:8px;font-size:11px;color:#dadbe0}.tiny-beat{font-size:18px}.player-status{position:absolute;z-index:14;top:60px;left:15px;right:15px;font-size:12px;line-height:1.5;background:#151823e8;border-radius:10px;padding:12px;pointer-events:none}
/* Persistent, narrow swipe edges: never cover center play/speaker/HD controls. */
.swipe-strip{position:absolute;z-index:15;top:100px;bottom:84px;width:42px;touch-action:none;cursor:ns-resize;user-select:none;-webkit-user-select:none;background:transparent}.swipe-strip.left{left:0}.swipe-strip.right{right:0}.swipe-strip::before{content:'↕';position:absolute;top:46%;font-size:18px;font-weight:750;color:#f8f8fcaa;text-shadow:0 2px 6px #000;pointer-events:none}.swipe-strip.left::before{left:7px}.swipe-strip.right::before{right:7px}.gesture-hint{position:absolute;z-index:13;top:60px;left:12px;right:12px;padding:7px 10px;color:#eee;background:#07080dc8;border-radius:9px;font-size:10px;text-align:center;pointer-events:none;animation:hint-out .3s 6s forwards}@keyframes hint-out{to{opacity:0;visibility:hidden}}
.action-rail{flex:0 0 64px;z-index:18;align-self:end;padding-bottom:10px;display:flex;flex-direction:column;gap:2px;align-items:center}.rail-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:2px;border:0;background:transparent;color:#e3e3ea;font-size:10px;min-height:59px;width:62px;text-align:center}.rail-button.is-active{color:#ff507e}.rail-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#222634;border:1px solid #414450;font-size:24px;color:inherit}.settings-button .rail-icon{font-size:21px}.nav-arrows{display:flex;flex-direction:column;align-items:center;gap:6px;margin-top:5px}.arrow-btn{height:38px;width:40px;border:1px solid #414654;background:#232630;border-radius:50%;font-size:23px}.below-feed{width:min(100%,560px);padding:10px 2px 0;display:flex;align-items:center;justify-content:space-between;gap:14px;color:#afb0bf;font-size:11px}.swipe-note{display:flex;gap:7px}.feed-count{font-variant-numeric:tabular-nums;white-space:nowrap}.messagebar{width:100%;text-align:center;font-size:12px;min-height:17px;margin-top:8px;color:#c5c9d9}.messagebar.error{color:#ff809e}.bottom-nav{display:none}
.player-help{position:absolute;z-index:90;top:clamp(120px,20vh,190px);right:72px;width:min(320px,calc(100% - 85px));border:1px solid #666c7e;border-radius:15px;background:#151923f4;backdrop-filter:blur(14px);padding:15px;box-shadow:0 16px 35px #000b}.player-help-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.player-help-head strong{font-size:15px}.player-help-head button{background:#272d3b;border:0;border-radius:50%;width:27px;height:27px;font-size:23px;line-height:1}.player-help p{font-size:12px;line-height:1.7;color:#c8cbd5;margin:13px 0}.player-help-actions{display:flex;gap:7px;flex-wrap:wrap}.player-help-actions>*{background:#2a3041;border:1px solid #444a5b;border-radius:8px;padding:8px 10px;font-size:11px}.player-help-actions a{background:#49263a}
.overlay{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;padding:22px;background:#000b;backdrop-filter:blur(6px)}.modal{display:flex;flex-direction:column;overflow:hidden;width:min(100%,530px);max-height:86dvh;border-radius:18px;border:1px solid #414559;background:#1b1f2a;box-shadow:0 20px 70px #000c}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:15px 18px;border-bottom:1px solid #373b48;min-height:60px}.modal-head h2{font-size:18px;margin:0}.plain-close{height:36px;width:36px;border:0;border-radius:50%;background:#303543;font-size:26px}.modal-content{padding:18px 21px;overflow:auto;font-size:13px;line-height:1.6}.modal-content p{color:#b6bac9}.modal-content button{background:#343848;border:1px solid #454a5b;padding:9px 12px;border-radius:9px}.modal-content .primary-btn{background:var(--accent);border:0}.lang-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.lang-grid button{text-align:left}.lang-grid button.selected{border-color:#fa618b;background:#473341}.search-form{display:flex;gap:9px}.search-form input{flex:1;min-width:0;background:#0f111a;border:1px solid #4b5061;border-radius:10px;padding:11px;color:#fff;font-size:16px}.comment-list{display:grid;gap:8px;max-height:36dvh;overflow:auto}.comment{background:#141824;border:1px solid #323644;border-radius:9px;padding:11px}.comment small{display:block;color:#a0a7b8;margin-top:5px}.comment-box{width:100%;min-height:90px;margin-top:12px;background:#131721;color:white;border:1px solid #53586c;border-radius:10px;padding:11px;resize:vertical;font-size:16px}.comment-actions{display:flex;justify-content:flex-end;margin-top:9px}
.agegate{position:fixed;inset:0;z-index:300;display:grid;place-items:center;overflow:auto;background:#0b0c13;padding:calc(20px + var(--safeT)) 14px calc(20px + var(--safeB))}.age-bg{position:absolute;inset:0;background:radial-gradient(ellipse at 75% 20%,#53213e,transparent 42%),radial-gradient(ellipse at 12% 80%,#164347,transparent 50%);pointer-events:none}.age-card{position:relative;z-index:1;width:min(100%,470px);padding:30px clamp(18px,5vw,40px);border:1px solid #4b4659;border-radius:23px;background:#181b26f2;text-align:center;box-shadow:0 16px 60px #000a}.age-logo{display:grid;place-items:center;margin:0 auto 13px;width:64px;height:64px;border-radius:18px;background:linear-gradient(135deg,var(--cyan),#b78fff,var(--accent));color:#080b10;font-size:40px;font-weight:900}.age-label{font-size:10px;letter-spacing:.1em;color:#ff7ba3;font-weight:850}.age-card h2{font-size:clamp(24px,4vw,31px);line-height:1.2}.age-card p{font-size:13px;line-height:1.6;color:#bbc0d0}.primary-btn{display:block;width:100%;padding:13px 15px;background:var(--accent);border:0;border-radius:10px;color:white;font-weight:820;margin-top:20px}.age-leave{display:block;width:100%;margin-top:9px;padding:12px 14px;background:#2d3240;border:1px solid #41475b;border-radius:10px}.age-foot{font-size:11px!important;color:#9299ae!important;margin-bottom:0}.toast{position:fixed;z-index:400;bottom:calc(22px + var(--safeB));left:50%;transform:translate(-50%,16px);opacity:0;pointer-events:none;border-radius:11px;border:1px solid #505667;background:#262c38;padding:10px 15px;box-shadow:0 6px 25px #000a;font-size:12px;text-align:center;max-width:90vw;transition:opacity .2s,transform .2s}.toast.show{opacity:1;transform:translate(-50%,0)}
button,.category-list button,.swipe-strip{-webkit-tap-highlight-color:transparent}

/* v12 / PornHubTK: ALWAYS direct tap on provider; side + dock swipe controls.
   No transparent overlay across the center or the provider seek bar. */
.brand-link{display:inline-flex;align-items:center;flex-shrink:0}
.brand-link img{display:block;width:150px;max-width:100%;height:auto}
.age-logo{background:none!important;box-shadow:none!important}
.age-logo img{width:64px;height:64px}
.diagnostic-text{font-size:11px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere;background:#0d101a;color:#cdd3e2;border:1px solid #424a5e;border-radius:9px;padding:9px;max-height:125px;overflow:auto;margin:8px 0}
.diagnostic-text.selectable{user-select:text;-webkit-user-select:text}
.player-frame .iframe-slot{inset:0}
.player-frame .iframe-slot iframe{width:100%;height:100%;display:block;touch-action:auto;pointer-events:auto}
/* Do not mask embedded native controls with captions or controls. */
.player-frame.is-playing .player-top,.player-frame.is-playing .cover-gradient,.player-frame.is-playing .player-caption,.player-frame.is-playing .play-intro{display:none}
.player-frame.is-playing .gesture-hint{display:none}
.swipe-strip,.swipe-strip.left,.swipe-strip.right{
  top:clamp(75px,17%,105px);bottom:clamp(80px,17%,105px);
  width:clamp(46px,12%,58px);z-index:45;display:flex;align-items:center;justify-content:center;
  touch-action:none;-webkit-user-select:none;user-select:none;
  background:linear-gradient(90deg,#03040866,#03040808);border:0;border-radius:0;
  color:#ffffffce;font-size:22px;cursor:ns-resize;pointer-events:auto
}
.swipe-strip.right{background:linear-gradient(270deg,#03040866,#03040808)}
.swipe-strip::before{display:none!important}
.swipe-strip span{display:inline-flex;align-items:center;justify-content:center;height:38px;width:32px;line-height:1;border:1px solid #ffffff4d;border-radius:13px;background:#080a1399;box-shadow:0 2px 10px #0006;pointer-events:none}
.swipe-strip:active span{background:#fd4280b0}
.action-rail{z-index:50}
.gesture-dock{flex:0 0 100%;width:min(100%,510px);min-height:52px;display:flex;align-items:stretch;gap:6px;padding:5px;border:1px solid #343849;background:#131722;border-radius:14px;z-index:50;position:relative;touch-action:pan-x}
.nav-action{border:1px solid #42485b;background:#222735;border-radius:10px;min-width:78px;padding:3px 8px;color:#f5f6fc;display:flex;gap:7px;align-items:center;justify-content:center;touch-action:manipulation}
.nav-action span{font-size:24px;line-height:1;color:#ff7ca7}
.nav-action small{font-size:11px}
.gesture-track{display:flex;flex:1;min-width:0;align-items:center;justify-content:center;gap:9px;border:1px solid #6d4864;border-radius:10px;background:#2d1f35;color:#fae1ec;cursor:ns-resize;touch-action:none;-webkit-user-select:none;user-select:none;text-align:center;padding:4px 7px;font-size:12px;font-weight:680}
.gesture-track .gesture-glyph{font-size:26px;color:#ff7ca7}
.gesture-track:focus-visible{outline:2px solid #8cece9;outline-offset:2px}
.gesture-hint{animation:hint-out .3s 3.5s forwards}
.player-help{z-index:100}
button{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
@media(max-width:780px), (pointer:coarse) and (max-width:1024px){
 :root{--navH:58px;--railH:61px;--dockH:52px}
 html,body{height:100%;width:100%;overflow:hidden;overscroll-behavior:none}
 body{position:relative;inset:0}
 .shell,.main{height:100%;height:100dvh;min-height:0;overflow:hidden;position:relative}
 .main{display:block}
 .content,.center,.player-outer{position:static;width:100%;height:100%;display:block;margin:0;padding:0;min-width:0}
 .topbar{position:fixed;z-index:91;top:0;left:0;right:0;height:calc(54px + var(--safeT));min-height:0;padding:var(--safeT) 10px 0;border:0;background:linear-gradient(180deg,#0b0c13f8,#0b0c13de);pointer-events:none;gap:7px}
 .topbar>*{pointer-events:auto}
 .top-title{gap:2px;font-size:11px}
 .brand-link img{width:116px}
 .desktop-feed-nav{display:none}
 .top-controls{display:flex;gap:5px}
 .icon-btn,.language-btn{height:36px;min-height:36px;padding:0 8px;background:#1a1d29de;border:1px solid #343846}
 .icon-btn{width:36px}
 .language-btn{gap:3px;font-size:11px}
 .category-wrap{position:fixed;top:calc(56px + var(--safeT));z-index:90;left:0;right:0;width:100%;max-width:none;padding:0 8px;margin:0;background:#090b11ce}
 .category-list{padding:0 0 7px;min-height:39px;display:flex;gap:6px;overflow:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
 .category-list button{font-size:11px;white-space:nowrap;min-height:32px;padding:7px 11px;background:#202331d9}
 .player-outer{position:fixed;inset:0;overflow:hidden}
 .player-outer .player-frame{position:absolute;z-index:10;left:0;right:0;top:calc(102px + var(--safeT));bottom:calc(var(--navH) + var(--railH) + var(--dockH) + 5px + var(--safeB));width:100%;height:auto;min-height:0;max-width:none;flex:auto;aspect-ratio:auto;border:0;border-radius:0;box-shadow:none;background:#030404;overflow:hidden;touch-action:manipulation}
 .player-frame .iframe-slot{inset:0!important;z-index:5;pointer-events:auto}
 .player-frame .iframe-slot iframe{inset:0;width:100%!important;height:100%!important;display:block;border:0;pointer-events:auto}
 .player-frame .player-top{top:0;left:0;right:0;padding:8px;z-index:6;pointer-events:none}
 .player-frame .player-caption{z-index:6;bottom:5px;padding:15px 12px 12px;pointer-events:none}
 .player-frame .player-caption h1{font-size:14px;max-height:57px;overflow:hidden}
 .player-frame .gesture-hint{top:42px;left:62px;right:62px;font-size:10px;padding:5px 7px;z-index:6;pointer-events:none}
 .player-frame .swipe-strip{top:clamp(65px,17%,100px);bottom:clamp(69px,18%,115px);width:clamp(45px,14vw,58px);z-index:40;touch-action:none;pointer-events:auto}
 .player-frame .swipe-strip.left{left:0}
 .player-frame .swipe-strip.right{right:0}
 .player-frame .swipe-strip span{height:36px;width:28px;font-size:20px}
 .gesture-dock{position:fixed;z-index:85;bottom:calc(var(--navH) + var(--railH) + var(--safeB));height:var(--dockH);min-height:var(--dockH);left:0;right:0;width:100%;margin:0;padding:5px 9px;border-radius:0;border-left:0;border-right:0;background:#121523f4;box-shadow:0 -6px 14px #0006;gap:8px}
 .nav-action{min-width:74px;padding:0 7px}
 .nav-action span{font-size:24px}.nav-action small{font-size:10px}
 .gesture-track{font-size:11px;gap:6px;line-height:1.15;padding:3px 4px}
 .gesture-track .gesture-glyph{font-size:24px;line-height:1}
 .player-outer .action-rail{position:fixed;z-index:84;bottom:calc(var(--navH) + var(--safeB));height:var(--railH);left:0;right:0;width:100%;margin:0;padding:4px 7px;border:0;border-top:1px solid #363a48;display:flex;flex-direction:row;align-items:center;justify-content:space-around;gap:0;background:#10131cf7;transform:none}
 .player-outer .action-rail .rail-button{flex:1 1 20%;width:auto;min-height:52px;height:52px;padding:2px;gap:2px;font-size:10px;text-shadow:none}
 .player-outer .action-rail .rail-icon{width:33px;height:33px;font-size:20px;background:#242836}
 .player-outer .action-rail .settings-button .rail-icon{font-size:18px}
 .below-feed{display:none!important}
 .messagebar{position:fixed;z-index:83;top:calc(102px + var(--safeT));left:14px;right:14px;width:auto;min-height:0;margin:0;text-align:center;line-height:1.3;font-size:11px;pointer-events:none;text-shadow:0 1px 5px #000}
 .bottom-nav{position:fixed;display:flex;z-index:91;left:0;right:0;bottom:0;height:calc(var(--navH) + var(--safeB));padding:0 7px var(--safeB);border-top:1px solid #292e3a;background:#090b12f9;backdrop-filter:blur(8px)}
 .bottom-nav button{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:0;background:transparent;border:0;color:#c6ccda;font-size:10px;padding:0}
 .bottom-nav button.selected{color:white}
 .bottom-nav button span{font-size:21px;line-height:23px}
 .bottom-nav button small{font-size:10px}
 .player-help{position:fixed;z-index:100;left:12px;right:12px;top:auto;bottom:calc(var(--navH) + var(--railH) + var(--dockH) + 10px + var(--safeB));width:auto;max-width:460px;max-height:min(52dvh,360px);overflow-y:auto;margin:auto;padding:14px;border-radius:14px;background:#181c2af7;backdrop-filter:blur(10px)}
 .player-help p{max-height:none;overflow:visible}
 .overlay{align-items:end;padding:0}
 .modal{width:100%;max-height:82dvh;border-radius:20px 20px 0 0;border-bottom:0;padding-bottom:var(--safeB)}
 .modal-content{padding:15px}.modal-content input,.modal-content textarea{font-size:16px}
 .age-card{max-height:calc(100dvh - 30px - var(--safeB) - var(--safeT));overflow:auto}
 .toast{bottom:calc(var(--navH) + var(--safeB) + 12px)}
}
@media(max-width:345px){
 .brand-link img{width:100px}
 .top-controls{gap:3px}.icon-btn{width:33px;padding:0}.language-btn{padding:0 5px}
 .player-outer .action-rail .rail-button{font-size:9px}
 .player-outer .action-rail .rail-icon{height:31px;width:31px;font-size:19px}
 .nav-action{min-width:62px}.nav-action small{font-size:9px}
 .gesture-track{font-size:10px}
}
@media(pointer:coarse) and (max-height:480px) and (max-width:1024px){
 :root{--navH:42px;--railH:43px;--dockH:39px}
 .topbar{height:calc(45px + var(--safeT))}
 .brand-link img{width:99px}.icon-btn,.language-btn{height:30px;min-height:30px}
 .category-wrap{top:calc(46px + var(--safeT))}.category-list{min-height:29px;padding-bottom:3px}.category-list button{min-height:27px;padding:4px 10px}
 .player-outer .player-frame{top:calc(80px + var(--safeT));bottom:calc(var(--navH) + var(--railH) + var(--dockH) + 2px + var(--safeB))}
 .player-frame .swipe-strip{top:30px;bottom:76px;width:42px}
 .player-frame .swipe-strip span{height:29px;width:25px}
 .gesture-dock{padding:2px 7px;gap:5px}.nav-action{min-width:69px}.nav-action span{font-size:18px}.nav-action small{font-size:9px}.gesture-track .gesture-glyph{font-size:19px}
 .player-outer .action-rail{padding:1px 5px}.player-outer .action-rail .rail-button{height:39px;min-height:39px;font-size:0}.player-outer .action-rail .rail-icon{height:28px;width:28px;font-size:17px}
 .bottom-nav button span{font-size:18px;line-height:19px}.bottom-nav button small{font-size:8px}
 .messagebar{top:calc(81px + var(--safeT))}
 .player-help{bottom:calc(var(--navH) + var(--railH) + var(--dockH) + var(--safeB));max-height:50dvh}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* v13: multilingual selector and RTL text; keep physical video navigation stable. */
.lang-search{display:block;width:100%;position:relative;margin:0 0 12px;padding:12px 13px;border:1px solid #50566a;border-radius:11px;background:#111522;color:#fff;font-size:16px;min-height:44px}
.lang-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:min(50vh,390px);overflow-y:auto;overscroll-behavior:contain;align-content:start;padding:2px 3px 4px 0}
.lang-grid button{white-space:normal;overflow-wrap:anywhere;min-width:0;min-height:41px;line-height:1.35}
html[dir=rtl] .topbar,html[dir=rtl] .category-list,html[dir=rtl] .player-outer,html[dir=rtl] .gesture-dock,html[dir=rtl] .bottom-nav{direction:ltr}
html[dir=rtl] .player-help,html[dir=rtl] .modal-content,html[dir=rtl] .age-card{direction:rtl}
html[dir=rtl] .modal-content .lang-grid{direction:ltr}
html[dir=rtl] .modal-content .lang-grid button[dir=rtl]{text-align:right}
html[dir=rtl] .search-form input,html[dir=rtl] .lang-search,html[dir=rtl] .comment-box{direction:rtl;text-align:right}
html[dir=rtl] .player-caption{direction:rtl;text-align:right}
@media(max-width:360px){.lang-grid{gap:6px}.lang-grid button{padding:9px 7px;font-size:12px}}

/* Safari home screen installation help. */
.a2hs-backdrop{position:fixed;z-index:1100;inset:0;display:flex;align-items:flex-end;justify-content:center;padding:12px 12px calc(14px + var(--safeB));background:#000a;backdrop-filter:blur(6px)}
.a2hs-sheet{width:min(100%,510px);max-height:calc(100dvh - 26px - var(--safeB));overflow:auto;background:#1a1d2a;border:1px solid #4a4c60;border-radius:23px;padding:15px 18px 19px;box-shadow:0 20px 70px #000c;color:#f7f7fb}
.a2hs-handle{width:41px;height:5px;border-radius:15px;background:#5f6376;margin:0 auto 19px}
.a2hs-heading{display:flex;align-items:center;gap:13px;margin:0 0 15px}
.a2hs-icon{flex:none;width:56px;height:56px;border-radius:14px;background:#222838;display:grid;place-items:center}
.a2hs-icon img{border-radius:12px;width:52px;height:52px}
.a2hs-heading h2{font-size:17px;line-height:1.25;margin:0 0 5px}.a2hs-heading p{font-size:12px;line-height:1.5;color:#bac0d1;margin:0}
.a2hs-steps{display:grid;gap:11px;margin:0 0 19px}.a2hs-step{display:flex;align-items:center;gap:12px;font-size:13px;line-height:1.55;color:#e5e8f3;padding:11px 12px;border:1px solid #373b4c;background:#232737;border-radius:12px}
.a2hs-step-icon{flex:none;display:grid;place-items:center;width:39px;height:39px;font-size:28px;font-weight:500;color:#8fecdf;border-radius:10px;background:#172834}
.a2hs-nonsafari p{font-size:13px;line-height:1.65;color:#d6d9e4}.a2hs-copy{background:#293e4a;border:1px solid #436478;border-radius:10px;padding:11px 14px;font-size:13px;width:100%;margin:0 0 12px}
.a2hs-actions{display:flex;gap:9px}.a2hs-actions button{flex:1;min-height:45px;border:1px solid #545a6b;border-radius:11px;padding:10px 12px;font-size:13px;font-weight:750}
.a2hs-secondary{background:#2b3040}.a2hs-primary{border-color:#fb5788!important;background:#ed3f78;color:#fff}
html[dir=rtl] .a2hs-sheet{direction:rtl}
html[dir=rtl] .a2hs-steps .a2hs-step{text-align:right}
@media(min-width:768px){.a2hs-backdrop{align-items:center}.a2hs-sheet{border-radius:20px}}
@media(max-width:350px){.a2hs-sheet{padding:12px}.a2hs-heading h2{font-size:15px}.a2hs-step{font-size:12px;padding:8px}.age-card{padding:15px 14px}}

/* v15: visible site information links on age-gate and desktop feed */
.age-about-link{margin:9px 0 0;text-align:center;font-size:12px;line-height:1.55;color:#bac0d5}
.age-about-link a,.seo-about-link{color:#d5e1fa;text-decoration:underline;text-decoration-color:#76839b;text-underline-offset:3px}
.age-about-link a:focus-visible,.seo-about-link:focus-visible{outline:2px solid #8cece9;outline-offset:3px}
.seo-about-link{font-size:11px;white-space:nowrap}
@media(max-width:780px){.seo-about-link{display:none}}

/* v16: published index links should remain crawlable and usable on phones */
.seo-video-links{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:16px;width:100%;padding:8px 4px 12px}
.bottom-videos-link{display:none}
@media(max-width:780px), (pointer:coarse) and (max-width:1024px){
 .seo-video-links{display:none}
 .bottom-nav a.bottom-videos-link{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:0;color:#c6ccda;font-size:10px;padding:0}
 .bottom-videos-link span{font-size:21px;line-height:23px}
 .bottom-videos-link small{font-size:10px}
}
/* PornHubTK v17 — continuous gallery, 20 cards per batch. Old player-specific
   rules are superseded; startup, age gate and Safari installation rules remain. */
:root { --grid-page:#0a0b12;--grid-panel:#151822;--grid-border:#2c3242;--grid-text:#f6f7fa;--grid-muted:#a6afc2;--grid-pink:#f54a86;--grid-cyan:#93efe6; }
html { scroll-behavior:auto; }
body { background:var(--grid-page); color:var(--grid-text); min-height:100vh; overflow-x:hidden; }
body.modal-open { overflow:hidden; }
.sr-only { position:absolute; width:1px;height:1px; padding:0; margin:-1px; border:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap; }
.site-app { min-height:100dvh; display:flex; flex-direction:column; }
.site-header { position:sticky;top:0;z-index:35;height:calc(70px + env(safe-area-inset-top,0px));padding-top:env(safe-area-inset-top,0px);background:rgba(9,11,18,.93);border-bottom:1px solid #242939;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px); }
.header-inner { display:flex; align-items:center;gap:13px;max-width:1410px;padding:0 clamp(16px,4vw,40px);height:70px;margin:auto; }
.header-inner .logo { display:flex;align-items:center; flex:none; }
.header-inner .logo img { width:146px;height:auto; }
.header-tag { border-radius:6px;color:#fa8da7;background:#fa487b19;border:1px solid #d944684e;font-size:10px;font-weight:850;letter-spacing:.02em;padding:5px 7px; }
.header-actions { display:flex;align-items:center; gap:9px;margin-inline-start:auto; }
.header-button,.language-button { display:inline-flex;justify-content:center;align-items:center;gap:8px;height:40px;min-width:41px;border:1px solid #343a4e;background:#1a1e2b;border-radius:12px;color:#ecedf5;transition:background .15s; }
.header-button:hover,.language-button:hover { background:#282d40; }
.header-button svg,.language-button svg {width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;}
.header-button {font-size:28px;font-weight:400;line-height:1;}
.language-button {min-width:66px;padding:0 10px;color:#c8d6e9;font-weight:700;font-size:12px;}
.gallery-layout { width:min(100%,1410px);padding:33px clamp(16px,4vw,40px) 80px; margin:0 auto; flex:1; }
.section-intro {padding:0 0 24px;}
.intro-spot {display:flex;gap:9px;align-items:center;letter-spacing:.15em;color:#fb7ca6;font-weight:820;font-size:10px;}
.intro-line {height:2px;width:18px;background:linear-gradient(90deg,var(--grid-pink),#ffc1d5);border-radius:5px;}
.intro-heading {display:flex;align-items:center;gap:16px;justify-content:space-between;}
.intro-heading h1 {font-size:clamp(25px,4vw,43px);line-height:1.14;letter-spacing:-.035em;margin:13px 0 8px;font-weight:850;}
.intro-heading p {margin:0; color:#a8b0c0;font-size:13px;line-height:1.5;}
.shorts-label { flex:none;font-size:11px;font-weight:820;padding:8px 11px;border:1px solid #434554;border-radius:100px;letter-spacing:.06em;color:#bfcce1; }
.search-panel { display:flex; align-items:center; gap:9px; padding:12px;margin:0 0 19px;border:1px solid #343b4d;background:#171c29;border-radius:15px; }
.search-panel input {min-width:0;flex:1;background:#0e121c;border:1px solid #343a4b;border-radius:10px;font-size:16px;color:white;padding:13px;outline-color:var(--grid-cyan);}
.search-panel button {height:45px;padding:0 15px;border:0;border-radius:9px;background:var(--grid-pink);font-weight:780;color:#fff;white-space:nowrap;}
.search-panel button.text-button {border:1px solid #434a5e;background:#252b3b;color:#d9e0ee;}
.filter-nav {display:flex; gap:9px; overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;margin:0 0 22px;padding:1px 0 9px;}
.filter-nav::-webkit-scrollbar {display:none;}
.filter-chip {border-radius:100px;border:1px solid #32394b;background:#181c29;color:#c4cad7;font-size:13px;font-weight:735;padding:11px 17px;white-space:nowrap;min-height:43px;display:inline-flex;gap:7px;align-items:center;justify-content:center;}
.filter-chip.active {background:#f84783;border-color:#f84783;color:white;box-shadow:0 3px 20px #ed427a30;}
.filter-chip .dot {height:7px;width:7px;background:currentColor;border-radius:100%;}
.collection-toolbar {display:flex; align-items:center;justify-content:space-between;gap:15px;border-top:1px solid #282d3a;border-bottom:1px solid #282d3a;padding:13px 0;margin:0 0 23px;}
.collection-tabs {display:flex;align-items:center;gap:5px;min-width:0;flex-wrap:wrap;}
.collection-tab {color:#aab3c5;min-height:39px;padding:9px 13px;font-size:12px;border:none;background:transparent;border-radius:9px;font-weight:720;white-space:nowrap;}
.collection-tab.active {color:#fff;background:#252b3c;}
.loaded-badge {color:#858fa3;font-size:11px;white-space:nowrap;font-variant-numeric:tabular-nums;}
.video-grid { display:grid;grid-template-columns:repeat(5,minmax(0,1fr));column-gap:18px;row-gap:26px;align-items:start; }
.video-card {position:relative;min-width:0;animation:card-appear .23s ease both;}
@keyframes card-appear {from{opacity:.1;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
.card-open {display:block;position:relative;width:100%;padding:0;margin:0;cursor:pointer;border:0;background:#1b1e2a;border-radius:13px;overflow:hidden;text-align:left;box-shadow:0 12px 22px #0003;}
.card-thumb {display:block;position:relative;width:100%;aspect-ratio:9/14;background:radial-gradient(circle at 50% 20%,#3e2940 0,#1d273a 50%,#10151e 100%);overflow:hidden;}
.card-thumb img {height:100%;width:100%;display:block;object-fit:cover;object-position:center;transition:transform .25s;}
.card-open:hover img {transform:scale(1.035)}
.card-thumb:after{content:'';position:absolute;left:0;right:0;bottom:0;height:32%;background:linear-gradient(transparent,#09091193);pointer-events:none}
.card-play {display:grid;place-items:center;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:47px;height:47px;border-radius:50%;background:#080b14a8;border:1px solid #fff6;backdrop-filter:blur(6px);opacity:.9;font-size:20px;padding-left:3px;pointer-events:none;transition:background .15s;}
.card-duration {position:absolute;bottom:10px;right:10px;z-index:1;border-radius:6px;background:#090e15db;border:1px solid #ffffff35;color:white;font-size:11px;font-weight:800;padding:4px 6px;font-variant-numeric:tabular-nums;}
.card-top {position:absolute;top:10px;left:10px;display:flex;align-items:center;gap:5px;z-index:1;font-size:9px;font-weight:850;background:#0e111cc9;border:1px solid #ffffff1f;color:#ffd9e3;border-radius:6px;padding:4px 6px;}
.card-meta {padding:10px 2px 0;display:flex;align-items:flex-start;gap:5px;justify-content:space-between;}
.card-title {font-size:13px;font-weight:700;color:#e7ebf4;line-height:1.42;margin:0;min-height:37px;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow-wrap:anywhere;}
.card-subtitle {font-size:10.5px;color:#8390a5;margin:5px 0 0;}
.card-save {flex:none;border:0;background:transparent;color:#a4acbc;border-radius:7px;font-size:22px;line-height:1;padding:3px;}
.card-save.is-active {color:#fb4b84;}
.card-page-link {display:inline-block;margin:7px 0 0;font-size:10.5px;color:#b7ccf9;text-decoration:underline;text-underline-offset:2px;}
.video-grid .empty-state {grid-column:1/-1;text-align:center;padding:54px 20px;border:1px dashed #3b4354;border-radius:17px;background:#141925;color:#aeb7c8;}
.empty-state strong{display:block;color:#e7eaf2;font-size:16px;margin-bottom:8px;}
.feed-controls {padding:34px 0 22px;text-align:center;}
.feed-status {font-size:12px;color:#b2bcce;min-height:20px;margin-bottom:10px;}
.feed-status.error {color:#ff9fac;}
.load-button {display:inline-flex;align-items:center;justify-content:center;gap:13px;min-height:54px;width:min(100%,320px);background:linear-gradient(135deg,#f54a86,#e83976);color:#fff;border:1px solid #fa6d9d;border-radius:14px;font-size:15px;font-weight:830;box-shadow:0 11px 29px #e739742d;transition:transform .12s,filter .12s;}
.load-button:hover:not(:disabled) {transform:translateY(-2px);filter:brightness(1.06);}
.load-button:disabled {opacity:.6;cursor:default;}
.load-button .load-icon{font-size:23px;line-height:1;font-weight:400;}
.load-button .btn-chevron{margin-left:auto;margin-right:15px;opacity:.65;}
.feed-footnote {font-size:11px;color:#7f889b;line-height:1.6;margin:13px 0 0;}
.site-footer-links {display:flex;gap:22px;align-items:center;justify-content:center;flex-wrap:wrap;padding:27px 10px 0;margin:14px auto 0;border-top:1px solid #272e3a;}
.site-footer-links a {font-size:12px;text-decoration:underline;text-underline-offset:3px;text-decoration-color:#667a9d;color:#aabddf;}
.site-footer {padding:20px 16px 30px;text-align:center;color:#68778e;font-size:11px;border-top:1px solid #232939;line-height:1.6;}
.viewer-backdrop,.overlay-backdrop {position:fixed;inset:0;z-index:600;display:flex;align-items:center;justify-content:center;padding:14px;background:#000d;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);}
.viewer {display:flex;flex-direction:column;background:#151925;border:1px solid #4a485d;box-shadow:0 30px 85px #000a;border-radius:18px;overflow:hidden;width:min(970px,100%);height:min(780px,calc(100dvh - 30px));}
.viewer-header {height:58px;flex:none;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #313746;padding:0 18px;}
.viewer-back {border:0;background:transparent;color:#e8eaf2;font-size:13px;font-weight:740;padding:10px;min-height:40px;}
.viewer-back span:first-child{font-size:21px;vertical-align:middle;margin-right:6px;}
.viewer-brand {font-size:17px;font-weight:870;letter-spacing:-.04em;}
.viewer-brand span{font-size:10px;background:#f4488135;color:#ffa2be;border:1px solid #dc46786c;padding:3px 5px;border-radius:4px;margin-left:5px;letter-spacing:normal;}
.viewer-body {display:grid;grid-template-columns:minmax(0,1.1fr) minmax(270px,.9fr);min-height:0;flex:1;}
.video-stage {min-width:0;min-height:0;position:relative;background:#000;display:grid;place-items:center;}
.viewer-iframe {height:100%;width:100%;}
.viewer-iframe iframe {display:block;width:100%;height:100%;border:0;background:#000;}
.viewer-error {padding:25px;color:#ffb3c1;text-align:center;font-size:13px;}
.viewer-description {overflow-y:auto;min-height:0;padding:24px 22px 20px;display:flex;flex-direction:column;gap:18px;}
.viewer-info h2 {margin:0 0 10px;font-size:20px;line-height:1.4;overflow-wrap:anywhere;}
.viewer-info p {color:#a2aec0;font-size:12px;margin:0;}
.viewer-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;}
.viewer-action {background:#232a3a;border:1px solid #3f4759;border-radius:10px;padding:12px 8px;min-height:44px;font-size:12px;font-weight:710;}
.viewer-action.active {color:#ff90b4;border-color:#df4674;}
.viewer-nav {display:grid;grid-template-columns:repeat(2,1fr);gap:10px;}
.viewer-nav button {min-height:40px;background:#1d2735;border:1px solid #34465a;border-radius:10px;font-size:13px;}
.viewer-links {display:flex;gap:14px;flex-wrap:wrap;font-size:12px;color:#abd4e1;}
.viewer-links a {text-decoration:underline;text-underline-offset:3px;}
#viewerNotice{color:#8390a4;font-size:11px;line-height:1.6;}
.sheet {width:min(100%,490px);max-height:min(86dvh,710px);overflow:auto;background:#1b1f2c;border-radius:20px;border:1px solid #505667;padding:23px;box-shadow:0 22px 70px #000c;}
.sheet-head {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px;}
.sheet-head h2 {font-size:19px;margin:0;}
.sheet-head button {width:39px;height:39px;border:0;border-radius:50%;background:#303747;font-size:25px;}
.sheet p {font-size:12px;color:#a7b2c7;line-height:1.6;}
.sheet textarea,.sheet input[type="search"] {display:block;width:100%;min-height:45px;border:1px solid #4c556b;background:#0d111c;border-radius:11px;color:white;padding:12px;font-size:16px;}
.sheet textarea {resize:vertical;margin-top:16px;}
.sheet-primary{border:0;background:#ec477d;color:white;font-size:13px;font-weight:780;padding:12px 17px;min-height:44px;border-radius:10px;margin-top:11px;}
.note-item {padding:13px;background:#272d3e;border:1px solid #3f475e;border-radius:10px;font-size:13px;line-height:1.5;margin-top:10px;overflow-wrap:anywhere;}
.note-item button {float:right;margin-left:8px;border:0;background:transparent;color:#ff9fbf;font-size:12px;}
.language-choices {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:13px;}
.language-choices button {background:#262c3c;border:1px solid #434b60;border-radius:11px;min-width:0;min-height:43px;text-align:start;padding:11px;white-space:normal;word-break:break-word;}
.language-choices button.chosen {background:#4b2a40;border-color:#f65b92;color:#fff;}
body > .toast[hidden] {display:none!important;}
html[dir="rtl"] .header-inner,html[dir="rtl"] .filter-nav,html[dir="rtl"] .collection-tabs {direction:rtl;}
html[dir="rtl"] .card-title,html[dir="rtl"] .intro-heading,html[dir="rtl"] .viewer-description {text-align:right;}
@media(min-width:1440px){.video-grid {grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:1050px){.video-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:22px 14px;}}
@media(max-width:730px){
 .site-header{height:calc(60px + env(safe-area-inset-top,0px))}.header-inner{height:60px;padding:0 14px;gap:8px;}
 .header-inner .logo img{width:112px}.header-tag{font-size:9px;padding:4px 5px}.header-actions{gap:6px}
 .header-button,.language-button{height:36px;min-width:36px;border-radius:11px}.language-button{min-width:58px;padding:0 6px;gap:5px}
 .language-button svg{width:16px}.header-button svg{width:18px}
 .gallery-layout{padding:21px 13px 60px}.section-intro{padding-bottom:18px}
 .intro-heading h1{font-size:26px;margin:10px 0 7px}.intro-heading p{font-size:12px;max-width:30ch}
 .shorts-label{font-size:9px;padding:7px}
 .filter-nav{gap:8px;margin-bottom:14px;padding-bottom:6px}.filter-chip{font-size:12px;padding:10px 14px;min-height:40px}
 .collection-toolbar{padding:10px 0;margin-bottom:18px}.collection-tabs{gap:2px}.collection-tab{font-size:11px;padding:8px 9px}
 .video-grid{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:11px;row-gap:20px}
 .card-open{border-radius:11px}.card-play{width:42px;height:42px;font-size:18px}.card-title{font-size:12px;min-height:34px}.card-meta{padding-top:8px}
 .feed-controls{padding-top:29px}
 .viewer-backdrop{padding:0;align-items:stretch}
 .viewer{height:100dvh;max-height:none;width:100%;border:0;border-radius:0;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px);}
 .viewer-header{height:50px;padding:0 13px}
 .viewer-body{display:flex;flex-direction:column;min-height:0;overflow:auto;}
 .video-stage{height:min(53dvh,calc(100dvh - 240px));min-height:230px;flex:none;}
 .viewer-iframe{height:100%;width:100%}
 .viewer-description{overflow:visible;flex:none;padding:17px 15px 24px;gap:12px}
 .viewer-info h2{font-size:16px;margin-bottom:4px}.viewer-info p{font-size:11px}
 .viewer-actions{grid-template-columns:repeat(4,1fr);gap:6px}.viewer-action{padding:10px 3px;font-size:10px;min-height:40px}
 .viewer-nav{gap:8px}.viewer-nav button{min-height:38px;font-size:12px}
 .overlay-backdrop{align-items:flex-end;padding:0}
 .sheet{width:100%;max-height:88dvh;border-radius:20px 20px 0 0;padding:20px 17px calc(17px + env(safe-area-inset-bottom,0px));}
}
@media(max-width:350px){.header-inner .logo img{width:95px}.header-actions{gap:3px}.language-button{min-width:49px}.header-tag{display:none}.collection-tab{padding:7px 8px}.loaded-badge{font-size:10px}.intro-heading h1{font-size:23px}.video-stage{height:48dvh;min-height:180px}}
@media(pointer:coarse) and (orientation:landscape) and (max-height:480px){
 .site-header{height:49px;padding-top:0}.header-inner{height:49px}
 .gallery-layout{padding-top:12px}
 .viewer{padding-top:env(safe-area-inset-top,0px)}
 .viewer-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(200px,.8fr);overflow:hidden;}
 .video-stage{height:auto;min-height:0;max-height:none}
 .viewer-description{overflow:auto;padding:9px 12px;gap:8px;}
 .viewer-info h2{font-size:14px}.viewer-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(prefers-reduced-motion:reduce){.video-card{animation:none}}


/* v19 mobile feed scrolling repair. v12 fullscreen mobile CSS is still above:
   it had html,body overflow:hidden, which locked the v17/v18 scroll gallery. */
@media (max-width:780px), (pointer:coarse) and (max-width:1024px) {
  html { height:auto; min-height:100%; overflow-x:hidden; overflow-y:auto !important; overscroll-behavior-y:auto; }
  body { height:auto; min-height:100dvh; position:static; inset:auto; overflow-x:hidden; overflow-y:auto !important; overscroll-behavior-y:auto; -webkit-overflow-scrolling:touch; touch-action:pan-y; }
  body.modal-open { overflow:hidden !important; }
  .site-app,.gallery-layout,.video-grid { height:auto; overflow:visible; touch-action:pan-y; }
  .filter-nav { touch-action:pan-x; }
  .viewer-body { min-height:0; overflow-y:auto; overscroll-behavior-y:contain; -webkit-overflow-scrolling:touch; touch-action:pan-y; }
  .viewer-related { touch-action:pan-y; }
}
/* The non-modal Safari installation guide should not eat touches outside its sheet. */
.a2hs-backdrop { pointer-events:none; background:transparent; backdrop-filter:none; -webkit-backdrop-filter:none; }
.a2hs-sheet { pointer-events:auto; }
/* Related videos in player — a fully separate, scrollable recommendation section. */
.viewer-related { border-top:1px solid #353b4b; padding-top:17px; display:flex; flex-direction:column; gap:12px; }
.related-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.related-heading h3 { font-size:16px; font-weight:800; margin:0; line-height:1.3; }
.related-heading button { min-height:36px; border-radius:9px; padding:8px 11px; border:1px solid #485168; background:#262e43; color:#dfe8fc; font-size:11px; font-weight:680; white-space:nowrap; }
.related-heading button:disabled { opacity:.5; }
.related-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; align-items:start; }
.related-card { display:block; min-width:0; overflow:hidden; padding:0; border:1px solid #303b50; border-radius:11px; background:#1b2231; text-align:start; color:inherit; }
.related-card:hover { background:#253149; border-color:#5c6f88; }
.related-card:focus-visible { outline:2px solid var(--grid-cyan); outline-offset:2px; }
.related-cover { display:block; position:relative; aspect-ratio:9/11; overflow:hidden; background:radial-gradient(circle at 50% 20%,#433047,#1c273a 52%,#10141d); }
.related-cover img { width:100%;height:100%;display:block;object-fit:cover; }
.related-cover .related-play { display:grid;place-items:center;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:34px;height:34px;border-radius:50%;font-size:15px;background:#080b15b9;border:1px solid #fff8;padding-left:2px;pointer-events:none; }
.related-cover .related-time { position:absolute;right:6px;bottom:7px;font-size:10px;font-weight:780;color:white;border-radius:5px;background:#080b15d6;padding:3px 5px; }
.related-card-title { display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-clamp:2;overflow:hidden;padding:9px 8px 11px;font-size:11.5px;line-height:1.42;min-height:52px;overflow-wrap:anywhere; }
.related-status { min-height:15px;margin:0;color:#8d9aac;font-size:11px;line-height:1.45; }
html[dir="rtl"] .related-heading,html[dir="rtl"] .related-grid { direction:rtl; }
@media (max-width:730px){
  .viewer-related{padding-top:15px;gap:11px;}
  .related-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
  .related-cover{aspect-ratio:9/10;}
  .related-card-title{min-height:48px;}
  .viewer-description{padding-bottom:calc(27px + env(safe-area-inset-bottom,0px));}
}
@media (pointer:coarse) and (orientation:landscape) and (max-height:480px){
  .related-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .related-cover{aspect-ratio:9/8;}
}

/* v19 usability enhancements */
.collection-trailing{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.clear-recent{min-height:34px;border:1px solid #465269;border-radius:9px;background:#20273a;color:#dce4f3;padding:7px 10px;font-size:11px;font-weight:700}
.back-to-top{position:fixed;bottom:calc(21px + env(safe-area-inset-bottom,0px));right:calc(18px + env(safe-area-inset-right,0px));z-index:55;height:46px;width:46px;display:grid;place-items:center;border-radius:50%;background:#f34b85;color:#fff;border:1px solid #ff7aa4;box-shadow:0 8px 25px #000b;font-size:21px;font-weight:900;touch-action:manipulation}
.back-to-top[hidden]{display:none!important}
.viewer-retry{min-height:36px;border:1px solid #40546b;background:#222e41;border-radius:9px;padding:7px 11px;font-size:11px;font-weight:700;color:#bddff4}
.skeleton-card{min-width:0;display:flex;flex-direction:column;gap:8px;pointer-events:none}
.skeleton-poster{aspect-ratio:9/14;border-radius:12px;background:linear-gradient(110deg,#1c2332 15%,#343e50 48%,#1c2332 80%);background-size:230% 100%;animation:skeleton-wave 1.5s ease-in-out infinite}
.skeleton-text{height:13px;width:89%;border-radius:6px;background:#283244}.skeleton-text.short{width:62%;height:10px}
@keyframes skeleton-wave{0%{background-position:120% 50%}100%{background-position:-120% 50%}}
@media(prefers-reduced-motion:reduce){.skeleton-poster{animation:none}}
@media(max-width:730px){.collection-toolbar{flex-wrap:wrap}.collection-tabs{flex:1 1 100%}.collection-trailing{width:100%;gap:10px;justify-content:space-between}.collection-tab{min-height:40px}.back-to-top{bottom:calc(16px + env(safe-area-inset-bottom,0px));right:14px;height:42px;width:42px}}
html[dir="rtl"] .back-to-top{right:auto;left:calc(18px + env(safe-area-inset-left,0px))}

/* v21 player suggestions: true append-only 20-item pagination. */
.related-heading { min-height:30px; }
.related-count { font-size:11px; color:#93a7c6; white-space:nowrap; }
.related-pagination { display:flex; flex-direction:column; gap:9px; padding:6px 0 8px; }
.related-more { width:100%; min-height:48px; display:flex; align-items:center; justify-content:center; gap:12px; border:1px solid #465b79; border-radius:12px; background:#263450; color:#f0f4ff; font-weight:760; font-size:13px; cursor:pointer; touch-action:manipulation; }
.related-more:focus-visible { outline:2px solid #75dbf8; outline-offset:2px; }
.related-more:disabled { opacity:.65; cursor:progress; }
.related-more[hidden] { display:none !important; }
.related-plus { color:#ff7ba3; font-size:20px; line-height:1; }
.related-card { touch-action:manipulation; }
@media (max-width:780px) { .related-more { min-height:52px; font-size:14px; } .related-pagination { padding-bottom:calc(15px + env(safe-area-inset-bottom,0px)); } }

/* v22 — local recommendations, save for later, and search filters. */
.search-panel{flex-wrap:wrap}
.search-advanced{flex:1 1 100%;width:100%;display:flex;align-items:center;gap:10px;flex-wrap:wrap;border-top:1px solid #303849;padding-top:12px}
.duration-label{font-size:12px;font-weight:720;color:#b8c9db}
.search-advanced select{min-height:42px;min-width:140px;max-width:100%;background:#101724;border:1px solid #41506a;border-radius:10px;padding:8px 12px;color:#f3f5fd;font-size:14px}
.unwatched-switch{min-height:42px;display:inline-flex;align-items:center;gap:8px;padding:8px 10px;border-radius:10px;background:#202b3d;color:#e6ebf5;font-size:12px;cursor:pointer}
.unwatched-switch input{accent-color:#f64b85;width:17px;height:17px}
.personal-note{margin:-13px 0 18px;color:#9babbd;font-size:11.5px;line-height:1.55}
.reset-recs{min-height:36px;padding:8px 11px;border:1px solid #434c62;background:#1c2536;border-radius:9px;font-size:11px;font-weight:700;color:#cad8e9;white-space:nowrap}
.video-card{position:relative}
.card-actions{flex:none;display:flex;align-items:center;gap:0}
.card-later,.card-save{display:grid;place-items:center;width:34px;height:35px;min-height:35px;padding:0;border:none;border-radius:7px;background:transparent;color:#a8b5c9;font-size:22px;line-height:1;touch-action:manipulation}
.card-later.is-active,.card-save.is-active{color:#fa6698;background:#ef467c1b}
.card-hide{position:absolute;right:7px;top:7px;z-index:3;width:32px;height:32px;display:grid;place-items:center;background:#0b101cc9;border:1px solid #737b8b8c;color:#fff;border-radius:50%;font-size:21px;line-height:1;touch-action:manipulation}
.card-hide:hover,.card-hide:focus-visible{background:#c74470;outline-color:#fff}
.viewer-actions{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:730px){
 .collection-tabs{overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none;max-width:100%}
 .collection-tabs::-webkit-scrollbar{display:none}
 .collection-tab{flex:none;font-size:11px;min-height:39px}
 .search-panel{gap:8px}
 .search-panel > input{flex-basis:100%;min-width:0}
 .search-panel button{min-height:42px;height:auto}
 .search-advanced{align-items:stretch}
 .unwatched-switch{flex:1 0 100%}
 .card-actions{gap:0}
 .card-later,.card-save{width:28px;height:32px;min-height:32px;font-size:20px}
 .card-hide{width:29px;height:29px;right:5px;top:5px}
 .viewer-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 .viewer-action{min-height:45px;padding:8px 4px;font-size:10px;overflow-wrap:anywhere}
 .reset-recs{font-size:10px;max-width:68%;white-space:normal;line-height:1.2}
}
@media(max-width:350px){.card-later,.card-save{width:25px;font-size:18px}.card-title{font-size:11px}.collection-tab{font-size:10px}}
html[dir="rtl"] .card-hide{right:auto;left:7px}
/* Keep the iOS search field layout from stretching the checkbox itself. */
@media(max-width:730px){
 .search-panel > input{flex-basis:100%;min-width:0}
 .unwatched-switch input{flex:0 0 17px!important;width:17px!important;height:17px!important;min-width:17px!important}
 .unwatched-switch span{flex:1;min-width:0}
}

/* v23: email/password account modal; safe mobile sheet, independent of the video iframe. */
.auth-open{position:relative;padding:0 11px;gap:7px;font-size:12px;font-weight:750;min-width:92px;white-space:nowrap}
.auth-open svg{flex:none}.auth-header-label{overflow:hidden;text-overflow:ellipsis;max-width:86px}
.auth-indicator{position:absolute;right:4px;top:3px;width:7px;height:7px;border-radius:50%;background:#4fe2aa;box-shadow:0 0 0 2px #131927}
.auth-backdrop{position:fixed;inset:0;z-index:850;display:grid;place-items:center;padding:calc(16px + env(safe-area-inset-top,0px)) 14px calc(16px + env(safe-area-inset-bottom,0px));background:rgba(3,4,10,.84);backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px);overflow-y:auto;overscroll-behavior:contain}
.auth-backdrop[hidden]{display:none!important}
.auth-panel{width:min(100%,435px);max-height:calc(100dvh - 34px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));overflow-y:auto;overscroll-behavior:contain;outline:none;border:1px solid #444b62;border-radius:21px;background:#171b29;box-shadow:0 20px 70px #000b;padding:clamp(17px,4vw,27px);color:#f3f4fb;text-align:start}
.auth-panel-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.auth-overline{font-size:10px;letter-spacing:.1em;color:#f881af;font-weight:800}
.auth-panel h2{font-size:25px;line-height:1.2;margin:6px 0 5px}.auth-subtitle{color:#a9b4c8;font-size:12px;line-height:1.45;margin:0 0 15px}
.auth-close{flex:none;width:38px;height:38px;border-radius:12px;border:1px solid #464e64;background:#24293a;font-size:24px;line-height:1;min-width:38px}
.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:4px;border-radius:12px;background:#0d1120;margin:4px 0 15px}
.auth-tabs button{border:0;border-radius:9px;min-height:42px;background:transparent;color:#aeb7c9;font-size:14px;font-weight:750}
.auth-tabs button[aria-selected="true"]{background:#343b55;color:#fff;box-shadow:0 2px 8px #0005}
.auth-form{display:flex;flex-direction:column;gap:8px}.auth-form[hidden],.auth-account[hidden]{display:none!important}
.auth-form label{color:#dee3ef;font-size:12px;font-weight:700;margin-top:3px}
.auth-form input{display:block;width:100%;min-width:0;min-height:47px;border:1px solid #46516c;border-radius:11px;color:#fff;background:#0d1120;padding:12px 13px;font-size:16px;direction:ltr;text-align:start}
.auth-form input:focus{border-color:#f36d9b;outline:2px solid #f36d9b33;outline-offset:1px}
.auth-form input::placeholder{color:#818ba0}.auth-submit{display:block;width:100%;min-height:46px;border:0;border-radius:11px;background:#f24783;color:white;font-size:14px;font-weight:800;margin-top:12px;padding:10px 12px}
.auth-submit:disabled{opacity:.62}.auth-text-button{border:0;background:transparent;color:#a5d4ff;min-height:42px;text-align:center;font-size:12px;padding:7px}
.auth-config-warning{padding:12px;background:#3c2b22;border:1px solid #72543a;color:#ffe0aa;border-radius:11px;font-size:12px;line-height:1.55}
.auth-message{padding:12px;background:#193644;border:1px solid #376478;border-radius:10px;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.auth-message.is-error{background:#482832;border-color:#8d4759;color:#ffe2e8}
.auth-hint{font-size:11px;color:#aab4c8;line-height:1.55;margin:3px 0}
.auth-footer{font-size:10px;line-height:1.6;color:#858ea5;margin:16px 0 0}
.auth-account{text-align:center;padding:10px 0}.auth-account-avatar{display:grid;place-items:center;width:58px;height:58px;border-radius:50%;margin:0 auto 12px;background:#174839;color:#8ffac9;font-size:28px}.auth-account strong{font-size:17px}.auth-account #authAccountEmail{overflow-wrap:anywhere;font-size:13px;color:#dbe4f4}.auth-logout{background:#33394a;border:1px solid #566074}
body.auth-dialog-open{overflow:hidden}
@media(max-width:730px){.auth-open{min-width:36px;width:36px;padding:0}.auth-header-label{display:none}.auth-panel{max-height:calc(100dvh - 20px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}.auth-backdrop{padding:10px}}
@media(max-width:350px){.auth-open{min-width:32px;width:32px}.auth-open svg{width:16px;height:16px}.header-inner .logo img{width:86px}.header-actions{gap:3px}.header-button,.language-button{min-width:32px}.language-button{min-width:45px;padding-inline:4px}}

/* v24 brand / domain emphasis: visible across desktop and mobile languages */
#gallerySubtitle{display:inline-flex;align-items:center;max-width:100%;margin-top:9px;padding:9px 16px;border:1px solid rgba(255,90,150,.48);border-radius:12px;background:linear-gradient(110deg,rgba(252,60,120,.19),rgba(139,69,222,.10));color:#fff0f6;font-size:clamp(18px,2.65vw,29px);font-weight:850;line-height:1.25;letter-spacing:-.025em;overflow-wrap:anywhere;word-break:break-word;box-shadow:0 5px 22px #0004}
.auth-local-notice{background:#132633;border:1px solid #43677c;color:#d4ecff;font-size:12px;line-height:1.55;padding:11px 13px;border-radius:12px;margin:7px 0 13px}
@media(max-width:600px){#gallerySubtitle{font-size:clamp(17px,4.7vw,23px);padding:9px 12px;letter-spacing:-.03em}}
@media(max-width:345px){#gallerySubtitle{font-size:17px;max-width:100%}.intro-heading{min-width:0}}
