/* StormTube V5 — discovery home, category shelves, footer, mobile and ten-foot UI */
.home-v5{width:100%;max-width:1700px;margin:0 auto;min-width:0}
.home-intro,.home-browse-heading{display:flex;align-items:center;justify-content:space-between;gap:22px;margin:3px 0 18px}
.home-intro h1{font-size:clamp(20px,2.5vw,29px);font-weight:900;letter-spacing:-.9px;margin:7px 0}
.home-intro p,.home-browse-heading p{color:#a3adb9;margin:5px 0;font-size:12px;line-height:1.6}
.home-browse-heading h1{margin:7px 0;font-size:clamp(23px,2.8vw,34px);letter-spacing:-1px}
.home-kicker{color:#77f79c;font-size:10px;font-weight:950;letter-spacing:1.1px}
.home-feature-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,27%);gap:10px;align-items:stretch}
.home-feature-video{background:#10141b;border:1px solid #323945;overflow:hidden;border-radius:12px;display:flex;flex-direction:column;min-width:0}
.home-feature-link{position:relative;flex:1;min-height:250px;aspect-ratio:16/7.8;display:block;background:radial-gradient(circle at 45% 35%,#224c3b,#0d1520 65%);overflow:hidden}
.home-feature-link>img,.home-feature-link>video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#080c10}
.home-feature-link>img{object-fit:cover;filter:brightness(.8)}
.home-feature-link>video{z-index:1;opacity:0;transition:opacity .35s ease}.home-feature-link>video.is-playing{opacity:1}
.home-feature-placeholder{height:100%;display:grid;place-items:center;font-size:72px;color:#76ffac}
.home-feature-status,.home-feature-watch{position:absolute;z-index:2;border-radius:6px;font-size:11px;font-weight:900}
.home-feature-status{top:12px;left:12px;background:#f13062;color:#fff;padding:6px 9px}
.home-feature-watch{bottom:17px;right:18px;background:#55fa83;color:#0b1b10;padding:9px 13px;transition:transform .2s}
.home-feature-link:hover .home-feature-watch{transform:scale(1.05)}
.home-feature-info{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:12px 15px}
.home-feature-creator{display:flex;align-items:center;gap:9px;min-width:0}
.home-feature-creator>div{display:flex;flex-direction:column;gap:3px;min-width:0}
.home-feature-creator strong{font-size:13px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.home-feature-creator small{font-size:11px;color:#a0abb6}
.home-feature-chat{display:flex;flex-direction:column;min-height:0;background:#141820;border:1px solid #303843;border-radius:12px;overflow:hidden}
.home-feature-chat-heading{padding:14px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #303945;font-size:13px}
.home-feature-chat-messages{padding:12px;min-height:0;overflow-y:auto;scrollbar-width:thin;flex:1;max-height:390px}
.home-chat-message{display:flex;gap:8px;font-size:12px;line-height:1.5;margin:8px 0;align-items:flex-start;overflow-wrap:anywhere}
.home-chat-message .avatar{width:23px;height:23px;flex:0 0 23px;font-size:10px}
.home-chat-message>span:not(.avatar){flex:1;color:#d8dfe6;min-width:0}
.home-chat-message b{color:#74fba0}
.home-feature-chat-action{display:block;text-align:center;padding:13px 10px;background:#1c2f24;border-top:1px solid #356746;font-size:12px;color:#84f3a7;font-weight:800}
.home-feature-chat-action:hover{background:#214b32}
.home-no-feature{padding:22px;display:flex;gap:15px;align-items:center;justify-content:space-between;background:linear-gradient(110deg,#1b3028,#131a28);border-radius:10px;border:1px solid #2f4d3e}
.home-no-feature h2{font-size:19px;margin:6px 0}.home-no-feature p{font-size:12px;color:#aab4bf}
.home-ad-anchor{min-height:0}
.home-rail,.home-categories-section,.home-results{margin:28px 0 32px;min-width:0}
.home-rail-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 12px}
.home-rail-heading h2{font-size:clamp(16px,1.4vw,21px);font-weight:850;letter-spacing:-.45px;margin:0 0 3px}
.home-rail-heading p{color:#8e99a7;font-size:11px;margin:0}
.home-rail-buttons{display:flex;gap:6px;align-items:center;flex-shrink:0}
.home-view-all{color:#b2c1b9;font-weight:700;font-size:11px;padding:7px 5px;white-space:nowrap}
.home-view-all:hover{color:#75ffab}
.home-rail-arrow{border:1px solid #3b454b;background:#1d232a;color:#cce3d1;width:28px;height:28px;border-radius:6px;font-size:21px;line-height:1;padding:0}
.home-rail-arrow:hover{background:#254834;color:#fff}
.home-rail-track{display:flex;gap:12px;overflow-x:auto;scrollbar-width:thin;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;padding:0 0 12px;min-width:0}
.home-rail-track>.stream-card{flex:0 0 clamp(205px,20%,276px);min-width:0;scroll-snap-align:start}
.home-results-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:15px}
.home-rail-track .thumb,.home-results-grid .thumb{border-radius:7px;aspect-ratio:16/9}
.home-card-cover{border:1px solid #2d3c3f;transition:border-color .18s,transform .18s}
.home-live-card:hover .home-card-cover{border-color:#55f68b;transform:translateY(-2px)}
.home-thumb-fallback{width:100%;height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;background:radial-gradient(circle at 40% 25%,#276047,#10252c 65%,#151d34)}
.home-thumb-fallback span{color:#85fca6;font-size:55px;font-weight:900}.home-thumb-fallback small{color:#8ba29a;letter-spacing:1.5px;font-size:9px}
.home-live-card .stream-meta{padding:10px 2px;gap:8px}
.home-live-card .stream-meta .avatar{height:32px;width:32px;font-size:11px}
.home-live-card .details strong{font-size:12px}.home-live-card .details small{font-size:10px}
.home-language{display:inline-block!important;background:#252f2c;color:#afdabc!important;border-radius:5px;padding:3px 7px;margin-top:4px;width:max-content;font-size:9px!important}
.home-category-track{display:flex;gap:10px;overflow-x:auto;scrollbar-width:thin;padding:0 0 12px;scroll-snap-type:x mandatory}
.home-category-card{position:relative;display:flex;flex-direction:column;justify-content:space-between;min-height:168px;flex:0 0 clamp(128px,13%,167px);padding:15px 12px 13px;border-radius:8px;overflow:hidden;background:linear-gradient(142deg,#403155,#242038);border:1px solid #434253;scroll-snap-align:start;transition:transform .2s,border-color .2s}
.home-category-card:hover{transform:translateY(-3px);border-color:#5fff99}
.home-cat-symbol{font-size:52px;line-height:1.2;align-self:center;filter:drop-shadow(0 7px 20px #0007)}
.home-cat-content{display:flex;flex-direction:column;gap:4px}
.home-cat-content strong{font-size:12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.home-cat-content small{font-size:10px;color:#c5c6ce}.home-cat-count{font-size:9px;color:#aeffc5}
.home-cat-games{background:linear-gradient(140deg,#155640,#112d2b)}.home-cat-retro{background:linear-gradient(140deg,#65215b,#261c42)}
.home-cat-talk{background:linear-gradient(140deg,#61315e,#202333)}.home-cat-valorant{background:linear-gradient(140deg,#671e38,#2f2b37)}
.home-cat-league{background:linear-gradient(140deg,#1a4b5d,#1b233a)}.home-cat-minecraft{background:linear-gradient(140deg,#42602d,#1c3430)}
.home-cat-gta{background:linear-gradient(140deg,#5c3431,#272036)}.home-cat-cs{background:linear-gradient(140deg,#3e5940,#2a2924)}
.home-cat-roblox{background:linear-gradient(140deg,#47515d,#25333d)}.home-cat-music{background:linear-gradient(140deg,#7b3e36,#35213e)}
.home-cat-art{background:linear-gradient(140deg,#71512b,#362544)}.home-cat-tech{background:linear-gradient(140deg,#274f6c,#191f38)}
.home-empty{padding:35px;background:linear-gradient(110deg,#182322,#151b25);border:1px solid #2f4c3c;border-radius:10px;text-align:center}
.home-empty h2{font-size:19px}.home-empty p{color:#acb4c0;font-size:12px}
.site-footer{margin:55px 0 4px;padding:25px 0 0;border-top:1px solid #28343a;color:#a2adb7;max-width:1700px}
.site-footer-head{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:25px}
.site-footer-head p{font-size:11px;margin:0}.site-footer-head .brand{font-size:19px;color:#fff}
.site-footer-columns{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:25px;padding:0 0 32px}
.site-footer-group{min-width:0}.site-footer-group summary{list-style:none;color:#f0f3f5;font-size:13px;font-weight:800;margin-bottom:13px;cursor:default}
.site-footer-group summary::-webkit-details-marker{display:none}
.site-footer-group nav{display:flex;flex-direction:column;gap:9px}
.site-footer-group nav a{color:#a2aeb8;font-size:11px;line-height:1.4}
.site-footer-group nav a:hover{color:#79f9a2;text-decoration:underline}
.site-footer-bottom{display:flex;gap:14px;justify-content:space-between;align-items:center;padding:16px 0 8px;border-top:1px solid #252e37;font-size:10px;flex-wrap:wrap}
.footer-tv-toggle{background:#202d27;border:1px solid #3d624a;border-radius:6px;color:#acffc7;font-weight:800;font-size:11px;padding:9px 12px}
.info-page,.contact-page{max-width:1000px;margin:5px auto 0}.info-breadcrumb{font-size:12px;color:#94b8a4;margin-bottom:18px}
.info-breadcrumb a:hover{color:#64f58a}
.info-hero{padding:22px 25px;background:linear-gradient(110deg,#183c2c,#1c2335);border:1px solid #344e40;border-radius:10px}
.info-hero h1{font-size:clamp(24px,3vw,35px);letter-spacing:-.8px;margin:8px 0}
.info-hero p{max-width:780px;line-height:1.65;color:#b9c3cd;font-size:13px}
.info-sections{padding:15px 4px}
.info-sections section{padding:19px 13px;border-bottom:1px solid #2a333c}
.info-sections h2{font-size:16px;color:#f3f4f5;margin:0 0 9px}
.info-sections p{font-size:13px;color:#bdc5cf;line-height:1.8;max-width:80ch;margin:0}
.info-action{background:#1a2224;border:1px solid #304239;border-radius:9px;padding:19px;margin:18px 0;display:flex;align-items:center;justify-content:space-between;gap:10px}
.info-action p{font-size:12px;color:#bfc8ce}
.contact-page .panel{padding:23px}.contact-page .field{margin:13px 0}
.contact-confirm{display:flex;gap:9px;align-items:flex-start;font-size:12px;color:#b7c2c8;line-height:1.6}
.contact-confirm input{margin-top:4px;accent-color:#53f680}
.support-inbox{display:flex;flex-direction:column;gap:10px}
.support-request{background:#151a21;border:1px solid #303b45;border-radius:10px;padding:15px;min-width:0}
.support-request-head{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;align-items:center}
.support-request-body{margin:12px 0 5px;white-space:pre-wrap;word-break:break-word;color:#bcc5d0;font-size:12px;line-height:1.7}
.support-request small{color:#9da9b8}.support-request a{color:#7dffaf}
.support-request-actions{margin-top:11px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.support-request-actions select{border:1px solid #465344;background:#1f2b29;color:#ecf8ef;padding:9px}
:focus-visible{outline:3px solid #7cffa7!important;outline-offset:3px}
@media(max-width:1100px){.home-feature-grid{grid-template-columns:minmax(0,1fr) minmax(205px,30%)}.home-feature-link{min-height:200px}.home-feature-chat-messages{max-height:300px}}
@media(max-width:900px){.home-feature-grid{grid-template-columns:1fr}.home-feature-chat{max-height:190px}.home-feature-chat-messages{max-height:75px}.site-footer-columns{grid-template-columns:repeat(2,minmax(0,1fr))}.home-category-card{flex-basis:142px}.home-rail-track>.stream-card{flex-basis:220px}}
@media(max-width:620px){.home-intro,.home-browse-heading{align-items:flex-start;flex-direction:column;gap:6px}.home-intro h1{font-size:22px;line-height:1.18}.home-intro .btn{margin-top:5px}.home-feature-link{min-height:170px;aspect-ratio:16/9}.home-feature-chat{max-height:166px}.home-feature-chat-messages{max-height:65px}.home-feature-info{padding:9px}.home-feature-watch{padding:7px;font-size:10px}.home-rail,.home-categories-section{margin:24px 0}.home-rail-track>.stream-card{flex-basis:76vw;max-width:290px}.home-category-card{flex:0 0 132px;min-height:155px}.home-cat-symbol{font-size:44px}.home-rail-buttons{gap:2px}.home-rail-arrow{display:none}.home-rail-heading h2{font-size:17px}.home-results-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.site-footer{margin-top:36px}.site-footer-head{display:block}.site-footer-head p{margin-top:12px}.site-footer-columns{grid-template-columns:1fr;gap:0}.site-footer-group{border-bottom:1px solid #29333b;padding:12px 0}.site-footer-group summary{margin:0;cursor:pointer}.site-footer-group summary::after{content:'+';float:right;color:#7dffa6}.site-footer-group[open] summary::after{content:'−'}.site-footer-group nav{padding:15px 1px 3px;gap:13px}.site-footer-group nav a{font-size:13px}.site-footer-bottom{align-items:flex-start;flex-direction:column}.info-hero{padding:20px 15px}.info-action{flex-direction:column;align-items:flex-start}.contact-page .panel{padding:15px}}
@media(max-width:390px){.home-results-grid{grid-template-columns:1fr}.home-category-card{flex-basis:125px}}
/* Wide screens and TV/console browsers: readable content and gamepad focus. */
@media(min-width:1850px){body.tv-mode{font-size:18px}body.tv-mode .topbar{height:85px}body.tv-mode .sidebar{top:85px;height:calc(100vh - 85px)}body.tv-mode .shell{grid-template-columns:280px minmax(0,1fr)}body.tv-mode .content{max-width:none;padding:35px 48px 90px}body.tv-mode .home-rail-track>.stream-card{flex-basis:clamp(290px,22%,400px)}}
body.tv-mode .home-intro h1{font-size:clamp(29px,3vw,46px)}
body.tv-mode .home-rail-heading h2{font-size:clamp(21px,2vw,28px)}
body.tv-mode .home-rail-track>.stream-card{min-width:clamp(260px,24vw,390px)}
body.tv-mode .home-category-card{min-width:190px;min-height:205px}
body.tv-mode .home-cat-symbol{font-size:65px}
body.tv-mode .home-cat-content strong{font-size:16px}
body.tv-mode .home-live-card .details strong{font-size:16px}
body.tv-mode .home-live-card .details small{font-size:13px}
body.tv-mode .home-view-all,body.tv-mode .site-footer-group nav a{font-size:15px}
body.tv-mode .home-feature-chat{display:none}
body.tv-mode .home-feature-grid{grid-template-columns:1fr}
body.tv-mode :is(a,button,input,select,textarea,summary,[tabindex="0"]):focus-visible{outline:4px solid #66ff91!important;outline-offset:4px;box-shadow:0 0 0 6px #206137aa}
@media(max-width:620px){body.tv-mode .home-rail-track>.stream-card{min-width:min(80vw,370px)}body.tv-mode .home-category-card{min-width:156px;min-height:180px}}
@media(prefers-reduced-motion:reduce){.home-live-card .home-card-cover,.home-category-card,.home-feature-watch{transition:none!important}.home-rail-track,.home-category-track{scroll-behavior:auto!important}}

/* Sponsored unit inserted into horizontal live shelf */
.home-rail-track>.ad-feed-card{flex:0 0 clamp(205px,20%,276px);scroll-snap-align:start;min-width:0}
@media(max-width:620px){.home-rail-track>.ad-feed-card{flex-basis:76vw;max-width:290px}}

/* V6 category covers: real artwork, readable labels and invisible scrollbars. */
.home-category-track{scrollbar-width:none;-ms-overflow-style:none;scroll-padding-inline:3px;padding-bottom:4px;gap:12px}
.home-category-track::-webkit-scrollbar{display:none}
.home-category-card{min-height:216px;aspect-ratio:2/3;flex-basis:clamp(136px,13%,183px);padding:0;justify-content:flex-end;border:1px solid #343e48;background:linear-gradient(160deg,#344a42,#1b1e32);transition:transform .2s,border-color .2s,box-shadow .2s}
.home-category-card:hover{transform:translateY(-3px);box-shadow:0 10px 20px #0005}
.home-category-card::after{content:'';position:absolute;inset:0;pointer-events:none;z-index:1;background:linear-gradient(to bottom,rgba(7,9,13,.03) 15%,rgba(6,9,13,.08) 39%,rgba(5,8,12,.80) 74%,rgba(4,7,10,.98) 100%)}
.home-category-card .home-cat-cover{display:block;position:absolute;inset:0;width:100%;height:100%;z-index:0;object-fit:cover;object-position:center center;transition:transform .22s ease}
.home-category-card:hover .home-cat-cover{transform:scale(1.06)}
.home-category-card .home-cat-symbol{position:absolute;inset:0;display:grid;place-items:center;z-index:0;font-size:66px;opacity:.68}
.home-category-card .home-cat-content{position:relative;z-index:2;width:100%;min-width:0;padding:10px 9px 12px;gap:5px}
.home-category-card .home-cat-content strong{font-size:13px;line-height:1.2;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-shadow:0 2px 4px #000a}
.home-category-card .home-cat-content small{font-size:10px;color:#f0f2f2;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.home-category-card .home-cat-count{color:#8affae;font-weight:850;font-size:10px}
.home-category-card:focus-visible{outline:3px solid #72ffa5!important;outline-offset:3px}
.home-feature-info{justify-content:flex-start}
.home-feature-link:focus-visible .home-feature-watch{outline:2px solid #081c12;outline-offset:2px}
@media(max-width:900px){.home-category-card{flex-basis:145px;min-height:218px}}
@media(max-width:620px){.home-category-card{flex:0 0 142px;min-height:212px}.home-rail-buttons [data-category-dir]{display:none}.home-category-track{gap:9px}}
@media(max-width:390px){.home-category-card{flex-basis:132px;min-height:198px}}
body.tv-mode .home-category-card{min-width:190px;min-height:285px}
body.tv-mode .home-cat-content strong{font-size:18px}
body.tv-mode .home-cat-content small{font-size:14px}
body.tv-mode .home-cat-count{font-size:13px}
@media(max-width:620px){body.tv-mode .home-category-card{min-width:154px;min-height:228px}}
@media(prefers-reduced-motion:reduce){.home-category-card .home-cat-cover{transition:none!important}}


.home-card-cover .home-thumb-live{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#080d12;z-index:1}
.home-card-cover .live-label,.home-card-cover .viewer-pill{z-index:3}
.home-thumb-fallback small{font-size:9px;text-align:center;max-width:88%;line-height:1.4}
