/* PLAYDROP 1.1 · feed verticale e navigazione compatta */
[hidden]{display:none!important}
:root{--nav-width:244px;--bottom-space:0px;--app-height:100vh;--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--reel-height:var(--app-height)}
@supports(height:100dvh){:root{--app-height:100dvh}}
/* Profile clips use the same portrait rhythm as the gaming catalog. */
.profile-page .clip-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 14px}
.profile-page .video-tile{min-width:0;background:none;border:0;border-radius:0}
.profile-page .tile-image{aspect-ratio:9/16;border-radius:12px;overflow:hidden;border:1px solid #ffffff16;background:radial-gradient(ellipse at 0 0,#c6fc551a,transparent 65%),#171b1b}
.profile-page .tile-image img{height:100%;width:100%;object-fit:cover;transition:transform .25s}
.profile-page .video-tile:hover .tile-image img{transform:scale(1.025)}
.profile-page .tile-image .duration{right:9px;bottom:9px;background:#000b;padding:3px 6px}
.profile-page .tile-body{padding:10px 2px 0}
.profile-page .tile-body h3{font-size:.875rem;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.profile-page .tile-body p{font-size:.75rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:5px}
.screen-report{height:230px;font-family:monospace;font-size:.75rem;resize:vertical;margin:12px 0}
@media(max-width:760px){
 .profile-page .clip-grid{gap:16px 8px}
 .profile-page .tile-image{border-radius:8px}
 .profile-page .tile-body h3{font-size:.75rem}
 .profile-page .tile-body p{font-size:.625rem}
 /* Only use the measured full height when iOS reports a shorter dynamic viewport. */
 .pd-viewport-corrected body:not(.feed-shell) .bottom-nav{top:calc(var(--app-height) - var(--bottom-space));bottom:auto}
}
@media(max-width:374px){.profile-page .clip-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.profile-page .tile-image img{transition:none}.profile-page .video-tile:hover .tile-image img{transform:none}}
.sidebar{width:var(--nav-width);padding-top:22px;transition:width .2s,padding .2s}
.sidebar-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:30px}
.sidebar-heading .brand{font-size:1.4rem}.sidebar-heading .icon-button{background:none;border:0;min-width:36px;width:36px}
.sidebar .eyebrow{display:none}.sidebar .side-links a{gap:14px}.nav-label{min-width:0}
.sidebar-launcher{display:none}.nav-collapsed{--nav-width:82px}
.nav-collapsed .sidebar{padding:22px 12px}.nav-collapsed .sidebar-heading{justify-content:center}
.nav-collapsed .sidebar-heading>.brand,.nav-collapsed .sidebar .nav-label,.nav-collapsed .sidebar .footer-links,.nav-collapsed .sidebar .account-chip>span:last-child{display:none}
.nav-collapsed .sidebar .side-links a,.nav-collapsed .sidebar .sidebar-bottom>a,.nav-collapsed .sidebar .text-button,.nav-collapsed .sidebar .account-chip{justify-content:center;padding:12px 0}
.nav-collapsed .sidebar .publish-link{font-size:0;padding:12px;gap:0}.nav-collapsed .sidebar .publish-link svg{width:23px}
.nav-collapsed .sidebar #account-slot>.secondary{font-size:0;min-width:48px;position:relative}
.nav-collapsed .sidebar #account-slot>.secondary::after{content:'↗';font-size:20px}
#main{margin-left:var(--nav-width);transition:margin-left .2s}.right-rail{transition:opacity .2s}
.nav-admin{color:var(--accent)!important;border:1px solid #c6fc552d;background:#c6fc5509}
.admin-account{color:var(--accent);font-size:.75rem;font-weight:700}
.feed-shell{overflow:hidden}.feed-shell .right-rail{display:none}
.feed-shell #main.feed-page{position:relative;margin-right:0;padding:0;height:var(--reel-height);min-height:0;display:flex;justify-content:center;background:#0b0c0d}
.feed-shell .feed-tabs{position:absolute;z-index:12;top:0;left:50%;transform:translateX(-50%);margin:0;height:66px;border:0;justify-content:center;gap:26px;width:min(100%,calc(var(--reel-height)*9/16));background:linear-gradient(#0009,transparent)}
.feed-shell .feed-tabs a{font-size:.9375rem;padding:18px 0 8px;color:#e8e8e8;text-shadow:0 1px 5px #0009}.feed-shell .feed-tabs a.active{border-bottom:2px solid var(--accent);color:white}
.feed-shell .clip-feed{height:var(--reel-height);width:min(100%,calc(var(--reel-height)*9/16));max-width:none;min-height:0;margin:0;border-radius:0;scroll-snap-type:y mandatory;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.clip-feed::-webkit-scrollbar{display:none}
.feed-shell .clip{height:100%;min-height:100%;width:100%;border:0;border-radius:0;margin:0;display:block;position:relative;overflow:hidden;scroll-snap-align:start;scroll-snap-stop:always;background:#000}
.feed-shell .clip-media{position:absolute;inset:0;min-height:0;height:100%;width:100%;display:block;overflow:hidden}
.feed-shell .clip-footer{position:absolute;left:0;right:65px;bottom:27px;z-index:5;padding:28px 18px 6px;background:none;border:0;pointer-events:none}
.feed-shell .clip-footer a,.feed-shell .clip-footer button,.feed-shell .clip-footer summary,.feed-shell .clip-footer details{pointer-events:auto}
.feed-shell .clip::after{content:'';position:absolute;inset:45% 0 0;background:linear-gradient(transparent,#0002 35%,#000b);pointer-events:none;z-index:2}
.feed-shell .creator-line{margin-bottom:10px;gap:9px}.feed-shell .creator-line strong{font-size:.9375rem;color:white;text-shadow:0 1px 5px #000}
.feed-shell .creator-line small{color:#f0f0f0}.feed-shell .avatar{border:1px solid #ffffff80;width:36px;height:36px}
.feed-shell .clip-title{font-size:1rem;line-height:1.35;font-weight:650;color:white;margin-bottom:8px;text-shadow:0 1px 6px #000}
.feed-shell .clip-description{margin:0;font-size:.875rem;color:#fff;line-height:1.45;max-height:25vh;overflow:auto}
.feed-shell .clip-description summary{list-style:none;color:#f4f4f4;text-shadow:0 1px 5px #000}
.feed-shell .clip-description summary::-webkit-details-marker{display:none}
.feed-shell .clip-description[open]{background:#000b;border-radius:10px;padding:10px}
.feed-shell .clip-description p{color:white;line-height:1.5}
.feed-shell .clip-category{display:inline-flex;align-items:center;gap:6px;background:#0003;border:1px solid #ffffff35;border-radius:6px;padding:3px 8px;font-size:.75rem;margin-bottom:10px;max-width:100%;color:#fff}
.feed-shell .clip-category .dot{width:5px;height:5px;border-radius:50%;background:var(--accent)}
.feed-shell .clip-live{margin-left:5px;background:#0005;color:white}
.feed-shell .clip-actions{position:absolute;right:7px;bottom:49px;z-index:6;display:flex;flex-direction:column;gap:12px;border:0;padding:0;margin:0;width:54px}
.feed-shell .reaction{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px;padding:3px;min-width:48px;min-height:48px;margin:0!important;color:white;font-size:.75rem;text-shadow:0 1px 5px #000}
.feed-shell .reaction svg{width:29px;height:29px;filter:drop-shadow(0 2px 4px #0007);stroke-width:1.7}
.feed-shell .reaction.active{color:var(--accent)}.feed-shell .reaction:hover{background:#0002}
.feed-shell .clip-feed>.empty-state,.feed-shell .clip-feed>.loading-state{height:100%;padding-top:90px;border:0;border-radius:0;min-height:0}
.feed-shell .load-more{min-height:70px;width:100%;border-radius:0;background:#101113;margin:0;scroll-snap-align:end}
.feed-games-trigger{position:absolute;z-index:13;top:76px;left:calc(50% - min(50%,var(--reel-height)*9/32) + 16px);font-size:.8125rem;color:white;border:1px solid #ffffff40;border-radius:20px;background:#0005;padding:7px 10px;min-height:34px;max-width:calc(100% - 130px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.feed-games-trigger svg{width:15px;height:15px;margin-right:5px}
.pd-player{position:relative;width:100%;aspect-ratio:9/16;background:#000;overflow:hidden;border-radius:12px;color:#fff;isolation:isolate}
.pd-player.pd-reel{height:100%;aspect-ratio:auto;border-radius:0}
.feed-shell .clip::after{content:none}
.pd-player.pd-reel::after{content:'';position:absolute;inset:45% 0 0;background:linear-gradient(transparent,#0002 35%,#000b);pointer-events:none;z-index:2}
.pd-player .pd-video,.feed-shell .clip .pd-video{position:absolute;inset:0;display:block;width:100%;height:100%;max-height:none;min-height:0;object-fit:cover;background:#000;pointer-events:none}
.pd-player:not(.pd-reel) .pd-video{object-fit:contain}
.pd-video::-webkit-media-controls,.pd-video::-webkit-media-controls-enclosure,.pd-video::-webkit-media-controls-start-playback-button{display:none!important;-webkit-appearance:none}
.pd-tap{position:absolute;inset:0;width:100%;height:100%;border:0;padding:0;background:none;color:white;z-index:1;touch-action:pan-y;display:grid;place-items:center}
.pd-center-play{display:grid;place-items:center;width:72px;height:72px;border-radius:50%;background:#0004;border:1px solid #ffffff35;opacity:0;transition:opacity .15s;backdrop-filter:blur(4px)}
.pd-center-play svg{width:36px;height:36px;margin-left:4px;fill:#fff;stroke-width:1}
.pd-player.is-paused .pd-center-play{opacity:1}
.pd-controls{position:absolute;right:12px;top:12px;display:flex;gap:5px;z-index:5}
.pd-controls button{border:0;border-radius:50%;background:#0004;color:#fff;min-width:44px;width:44px;height:44px;min-height:44px;display:grid;place-items:center;padding:0}
.pd-controls button:hover{background:#0007}.pd-controls button svg{width:22px;height:22px}
.pd-reel .pd-controls{top:73px}
.pd-progress,.pd-player input.pd-progress{position:absolute;z-index:9;left:0;right:0;bottom:0;margin:0;border:0;border-radius:0;min-height:28px;height:28px;width:100%;padding:0;background:transparent;appearance:none;-webkit-appearance:none;cursor:pointer;touch-action:none;color:var(--accent);box-shadow:none}
.pd-progress::-webkit-slider-runnable-track{height:3px;border:0;background:linear-gradient(to right,var(--accent) 0 var(--played),#ffffff65 var(--played) 100%)}
.pd-progress::-moz-range-track{height:3px;background:#ffffff65;border:0}.pd-progress::-moz-range-progress{height:3px;background:var(--accent)}
.pd-progress::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:10px;height:10px;margin-top:-3.5px;border:0;border-radius:50%;background:var(--accent)}
.pd-progress::-moz-range-thumb{width:10px;height:10px;border:0;border-radius:50%;background:var(--accent)}
.pd-progress:focus-visible{outline:1px solid var(--accent);outline-offset:-2px}
.pd-message{position:absolute;inset:40% 25px auto;z-index:8;border-radius:12px;background:#101113e8;padding:18px;text-align:center;font-size:.875rem;box-shadow:0 4px 20px #0003}
.pd-message span{display:block;margin-bottom:12px}.pd-retry{border:0;background:var(--accent);color:#162000;border-radius:9px;padding:10px 18px;font-weight:700;min-height:44px}
#sheet-body>.pd-player{max-height:66dvh;max-width:100%;aspect-ratio:9/16;width:auto;margin:auto}
#upload-preview .pd-player{height:380px;aspect-ratio:auto}
.nav-backdrop{position:fixed;inset:0;z-index:69;background:#0009;border:0;backdrop-filter:blur(3px);width:100%;height:100%;padding:0}
.admin-page .page-top h1{color:var(--accent)}.admin-page .admin-tabs{position:sticky;top:0;padding:12px 0;background:var(--bg);z-index:8}
@media(max-width:1180px) and (min-width:761px){:root{--nav-width:224px}.nav-collapsed{--nav-width:82px}#main{margin-left:var(--nav-width)}.feed-shell #main.feed-page{padding:0}}
@media(max-width:760px){
 :root{--nav-width:0px;--nav-safe-bottom:var(--safe-bottom);--bottom-space:calc(54px + var(--nav-safe-bottom));--reel-height:calc(var(--app-height) - var(--bottom-space))}
 /* iOS standalone può riportare anche l'altezza di una toolbar Safari assente.
    Limite circoscritto alla navigazione su iPhone: mantieni l'area Home, non la toolbar. */
 :root.iphone-standalone{--nav-safe-bottom:min(var(--safe-bottom),34px)}
 body.feed-shell{position:relative;height:var(--app-height);min-height:0}
 .feed-shell .bottom-nav{position:absolute;bottom:0}
 #main{margin-left:0}.mobile-header{padding-left:10px;gap:8px;height:60px}.mobile-header .brand{font-size:1.2rem;margin-right:auto}.mobile-header .header-actions{gap:4px}.mobile-header .nav-toggle{flex-shrink:0;border:0;background:none;min-width:44px;width:44px;height:44px}.mobile-header .header-actions a{min-width:40px;min-height:44px}
 .sidebar{display:flex;position:fixed;z-index:70;width:min(310px,87vw);padding:20px 20px calc(18px + env(safe-area-inset-bottom));padding-top:calc(18px + env(safe-area-inset-top));inset:0 auto 0 0;transform:translateX(-100%);visibility:hidden;transition:transform .2s;background:#121416;border-right:1px solid #ffffff15}
 .nav-open .sidebar{transform:translateX(0);visibility:visible}.nav-open{overflow:hidden}.sidebar .sidebar-heading{margin-bottom:15px}.sidebar .sidebar-bottom{padding-top:20px}.sidebar .side-links{gap:4px}.sidebar .publish-link{margin-top:16px}.sidebar .brand{font-size:1.5rem}
 .bottom-nav{min-height:var(--bottom-space);height:var(--bottom-space);padding:4px max(8px,env(safe-area-inset-right)) calc(4px + var(--nav-safe-bottom)) max(8px,env(safe-area-inset-left));background:#0e1012;border-top:1px solid #ffffff12;backdrop-filter:none;-webkit-backdrop-filter:none}.bottom-nav .bottom-publish{height:44px;min-height:44px}.bottom-nav a{height:44px;min-height:44px;gap:2px}.bottom-nav a span:last-child:not(:first-child){font-size:.625rem}
 .feed-shell .mobile-header{position:absolute;top:env(safe-area-inset-top);left:0;right:0;height:54px;background:none;border:0;backdrop-filter:none;pointer-events:none;z-index:18}.feed-shell .mobile-header .brand{display:none}.feed-shell .mobile-header .header-actions{margin-left:auto}.feed-shell .mobile-header .header-actions>a:last-child{display:none}.feed-shell .mobile-header a,.feed-shell .mobile-header button{pointer-events:auto;color:white;filter:drop-shadow(0 1px 4px #0008)}
 .feed-shell #main.feed-page{height:var(--reel-height);min-height:0;padding:0;margin:0;width:100%;display:block}
 .feed-shell .clip-feed{width:100%;height:var(--reel-height);min-height:0}
 .feed-shell .feed-tabs{top:var(--safe-top);height:54px;width:100%;gap:21px;background:none;padding:0 52px;white-space:nowrap}
 .feed-shell .feed-tabs a{padding-top:12px;font-size:.875rem}.feed-shell .feed-tabs a:last-child:nth-child(4){display:none}
 .feed-games-trigger{top:calc(66px + env(safe-area-inset-top));left:15px;padding:6px 10px;max-width:calc(100% - 130px)}
 .pd-reel .pd-controls{top:calc(61px + env(safe-area-inset-top));right:9px}
 .feed-shell .clip-footer{left:0;right:66px;bottom:25px;padding:20px 15px 4px}.feed-shell .clip-actions{right:5px;bottom:47px;gap:12px}.feed-shell .clip-title{font-size:.9375rem}.feed-shell .clip-description{font-size:.8125rem}.feed-shell .clip-category{font-size:.6875rem}.feed-shell .creator-line strong{font-size:.875rem}
 .admin-page .admin-tabs{top:60px}.admin-page .row-actions{gap:7px}.admin-page .row-actions button{min-height:44px}
}
/* Le copertine restano verticali in catalogo e nel selettore del feed. */
.game-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:20px 14px}
.game-grid .game-card{display:block;min-width:0;min-height:0;padding:0;border:0;border-radius:0;background:none;transition:transform .18s}
.game-card:hover{transform:translateY(-3px)}
.game-cover{display:block;position:relative;aspect-ratio:3/4;width:100%;overflow:hidden;border-radius:9px;background:linear-gradient(150deg,color-mix(in srgb,var(--game-color,#c6fc55) 32%,#17191d),#111318);border:1px solid #ffffff18}
.game-cover img{display:block;width:100%;height:100%;object-fit:cover}
.game-cover-fallback{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;color:var(--game-color,var(--accent));background:radial-gradient(ellipse at 10% 0,#ffffff10,transparent 70%)}
.game-cover-fallback svg{width:40px;height:40px;opacity:.65}.game-cover-fallback b{font-size:2.6rem;letter-spacing:-.05em}.game-cover-fallback small{position:absolute;bottom:12px;font-size:.55rem;letter-spacing:.2em;color:#ffffff70}
.game-grid .game-card strong{display:block;margin-top:9px;font-size:.875rem;line-height:1.4;overflow-wrap:anywhere;color:var(--text)}
.game-row .game-cover{width:48px;min-width:48px;aspect-ratio:3/4}.game-row .game-cover-fallback b{font-size:1rem}.game-row .game-cover-fallback svg,.game-row .game-cover-fallback small{display:none}
.pd-like-burst{position:absolute;inset:0;z-index:7;pointer-events:none;display:grid;place-items:center;color:var(--accent)}
.pd-like-burst svg{width:100%;height:100%;fill:currentColor;stroke:currentColor;filter:drop-shadow(0 3px 12px #10111355)}
.pd-heart-main{width:100px;height:100px;animation:pd-heart-pop .9s cubic-bezier(.2,.8,.25,1) both}
.pd-heart-particle{position:absolute;left:calc(50% - 12px);top:calc(50% - 12px);width:24px;height:24px;animation:pd-heart-scatter .8s var(--delay) ease-out both}
@keyframes pd-heart-pop{0%{opacity:0;transform:scale(.2) rotate(-18deg)}25%{opacity:1;transform:scale(1.18) rotate(7deg)}45%,65%{opacity:1;transform:scale(1) rotate(0)}100%{opacity:0;transform:scale(1.08) translateY(-18px)}}
@keyframes pd-heart-scatter{0%,10%{opacity:0;transform:rotate(var(--angle)) translateY(0) scale(.3)}35%{opacity:1}100%{opacity:0;transform:rotate(var(--angle)) translateY(calc(-1 * var(--travel))) rotate(calc(-1 * var(--angle))) scale(.65)}}
.feed-shell .reaction.active[data-action=like] svg{fill:var(--accent)}
.comments-open{--comments-width:clamp(310px,29vw,420px)}
.comments-open #main.feed-page{margin-right:var(--comments-width)}
#comments-panel{position:fixed;inset:0 0 0 auto;width:var(--comments-width);height:var(--app-height);z-index:20;background:#141619;border-left:1px solid var(--line);display:flex;flex-direction:column;box-shadow:-12px 0 45px #0002}
#comments-panel .sheet-header{flex:none;gap:14px;padding:20px;background:#141619}
#comments-panel .sheet-header h2{font-size:1.1rem}#comments-title span{color:var(--muted);font-size:.875rem;font-weight:400;margin-left:6px}
#comments-panel .sheet-header p{font-size:.75rem;color:var(--muted);margin:5px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#comments-panel .sheet-header .icon-button{flex-shrink:0}
#comments-body{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.comments-scroll{overflow-y:auto;overscroll-behavior:contain;min-height:0;padding:6px 20px 20px;flex:1;scrollbar-width:thin}
#comments-panel .comment-row footer{flex-wrap:wrap;gap:3px 12px}
#comments-panel .comment-form{flex:none;padding:16px 20px max(16px,var(--safe-bottom));margin:0;border-top:1px solid var(--line);background:#191b1e}
#comments-panel .comment-form textarea{min-height:68px;max-height:130px;resize:vertical;font-size:.875rem}
#comments-panel .comment-form label{font-size:.8125rem;gap:7px}#comments-panel .comment-form .primary{width:100%;min-height:40px;padding:8px}
#comments-panel .comment-form .form-error:empty{display:none}#comments-body>.primary{margin:18px}
dialog.comments-sheet #sheet-body{display:flex;flex-direction:column;max-height:calc(80svh - 70px);padding:0}
.comments-sheet .comment-form{padding:14px 20px max(14px,var(--safe-bottom));margin:0;border-top:1px solid var(--line)}
@media(max-width:760px){
 .feed-shell #main.feed-page::before{content:'';position:absolute;z-index:11;top:0;left:0;right:0;height:calc(var(--safe-top) + 145px);background:linear-gradient(to bottom,#000b 0,#0009 var(--safe-top),#0005 calc(var(--safe-top) + 60px),transparent 100%);pointer-events:none}
 .feed-shell .mobile-header{top:var(--safe-top)}
 .feed-games-trigger{top:calc(66px + var(--safe-top))}.pd-reel .pd-controls{top:calc(61px + var(--safe-top))}
 body:not(.feed-shell) .mobile-header{height:calc(60px + var(--safe-top));padding-top:var(--safe-top)}
 body:not(.feed-shell) #main{padding-bottom:calc(var(--bottom-space) + 24px)}
 .game-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 10px}.game-grid .game-card strong{font-size:.75rem}
 .game-cover-fallback b{font-size:2rem}.game-cover-fallback svg{width:30px;height:30px}
}
@media(max-width:760px) and (orientation:landscape){:root.iphone-standalone{--nav-safe-bottom:min(var(--safe-bottom),21px)}}
@media(max-width:360px){.game-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.pd-heart-main{animation:none;opacity:1}.pd-heart-particle{display:none}.game-card{transition:none}.game-card:hover{transform:none}}
@media(max-height:650px){.feed-shell .clip-actions{gap:3px}.feed-shell .clip-description{max-height:13vh}.feed-shell .clip-category{display:none}.sidebar .footer-links{display:none}.sidebar .sidebar-bottom{padding-top:10px;gap:4px}.sidebar .side-links a{padding-top:8px;padding-bottom:8px}}
@media(prefers-reduced-motion:reduce){.sidebar,#main,.pd-center-play{transition:none!important}}
