:root{color-scheme:dark;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#09090c;color:#fff;font-synthesis:none}*{box-sizing:border-box}body{margin:0;overflow:hidden}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit}button:focus-visible,a:focus-visible,main:focus-visible{outline:2px solid #bdff63;outline-offset:4px}button{border:0}a{color:inherit;text-decoration:none}.brand{position:fixed;z-index:4;top:33px;left:40px}.brand a{display:flex;align-items:center;font-size:28px;font-weight:800;letter-spacing:-1.4px}.brand a>span:not(.brand-icon){color:#bdff63}.brand-icon{display:grid;place-items:center;width:31px;height:35px;margin-right:10px;background:#bdff63;color:#10120c;border-radius:9px;font-size:30px;font-style:italic}.brand i{width:5px;height:5px;background:#bdff63;border-radius:50%;margin:17px 0 0 4px}.brand p{font-size:11px;color:#73737f;margin-left:42px;letter-spacing:.7px}.desktop-intro{position:fixed;left:40px;top:32%;width:calc((100vw - 490px)/2 - 60px)}.eyebrow{font-size:9px;font-weight:700;letter-spacing:2px;color:#93939c}h1{font-size:clamp(25px,3vw,45px);line-height:1.13;letter-spacing:-1.8px;font-weight:650;margin:22px 0}h1 em{font-style:normal;color:#bdff63}.desktop-intro p{color:#777782;font-size:13px;line-height:1.9}.key-guide{font-size:10px;line-height:3.3;color:#6d6d78;margin-top:42px}.key-guide span{display:inline-block;min-width:23px;text-align:center;line-height:23px;border:1px solid #303037;border-radius:5px;margin-right:5px;color:#aaaab2;padding:0 5px}#feed{height:100vh;height:100dvh;width:min(100vw,56.25dvh);margin:auto;overflow-y:auto;scroll-snap-type:y mandatory;scrollbar-width:none;background:#131317;position:relative}#feed::-webkit-scrollbar{display:none}.feed-card{height:100vh;height:100dvh;width:100%;scroll-snap-align:start;scroll-snap-stop:always;position:relative;overflow:hidden;background:#15151b}.feed-card video{width:100%;height:100%;object-fit:cover;display:block}.shade{position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,#0006,transparent 25%,transparent 48%,#000b)}.feed-heading{position:fixed;top:max(25px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);z-index:3;font-size:13px;font-weight:700;display:flex;gap:9px;align-items:center;pointer-events:none;text-shadow:0 1px 8px #000}.feed-heading>span:first-child{padding-bottom:10px;border-bottom:2px solid #bdff63}.live-dot{height:5px;width:5px;border-radius:50%;background:#bdff63;margin-bottom:10px}.metadata{position:absolute;left:22px;right:76px;bottom:calc(34px + env(safe-area-inset-bottom));text-shadow:0 1px 6px #0008}.video-tag{font-size:9px;letter-spacing:1.7px;color:#bdff63;font-weight:700;margin-bottom:12px}.metadata h2{font-size:21px;line-height:1.25;margin:0 0 9px;letter-spacing:-.5px}.description{font-size:12px;line-height:1.7;margin:0;color:#eee;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-line;overflow-wrap:anywhere;max-height:35vh}.description.expanded{display:block;overflow:auto}.more{padding:5px 0;background:none;font-size:11px;color:#c7c7cc}.actions{position:absolute;right:13px;bottom:calc(39px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:20px;align-items:center}.action{background:none;display:flex;flex-direction:column;align-items:center;gap:6px;font-size:10px;text-shadow:0 1px 5px #000}.action svg{width:29px;height:29px;filter:drop-shadow(0 2px 3px #0004)}.action.liked{color:#ff4d79}.action-icon{display:grid;place-items:center;width:42px;height:42px;background:#ffffff15;border-radius:50%;backdrop-filter:blur(8px)}.play-indicator{position:absolute;top:45%;left:50%;transform:translate(-50%,-50%);background:#0006;width:65px;height:65px;border-radius:50%;display:grid;place-items:center;font-size:25px;pointer-events:none}.heart-burst{position:absolute;left:50%;top:42%;font-size:100px;color:#ff4d79;pointer-events:none;animation:heart .75s ease-out forwards;filter:drop-shadow(0 4px 16px #0005)}@keyframes heart{0%{transform:translate(-50%,-50%) scale(.3);opacity:0}30%{transform:translate(-50%,-50%) rotate(-12deg) scale(1.2);opacity:1}100%{transform:translate(-50%,-90%) scale(1);opacity:0}}.feed-nav{position:fixed;left:calc(50% + 28.125dvh + 20px);top:45%;display:grid;gap:12px}.feed-nav button{width:40px;height:40px;border:1px solid #33333b;border-radius:50%;background:#17171d;font-size:21px}.feed-nav button:hover{background:#303039}#sidebar{position:fixed;right:35px;top:30%;width:180px}.sidebar-ad{display:block;border:1px solid #28282f;border-radius:12px;overflow:hidden;margin-bottom:20px;background:#121217}.sidebar-ad img{width:100%;display:block}.ad-copy{padding:13px}.ad-copy small,.sponsored-label{color:#a8a8b3;font-size:9px;text-transform:uppercase;letter-spacing:1.7px}.ad-copy h3{font-size:14px;line-height:1.5}.ad-cta{display:inline-flex;align-items:center;justify-content:center;background:#bdff63;color:#17210b;font-size:12px;font-weight:750;border-radius:7px;padding:13px 20px}.sponsor-card{display:flex;flex-direction:column;justify-content:center;padding:35px;background:radial-gradient(ellipse at top,#2e3822,#11130f 70%)}.sponsor-card img{width:100%;max-height:52%;object-fit:contain;border-radius:12px;margin:24px 0}.sponsor-card h2{font-size:25px}.sponsor-card .ad-cta{align-self:flex-start}.desktop-footer{position:fixed;bottom:27px;left:40px;color:#6b6b77;font-size:10px}.desktop-footer span{display:block;font-size:9px;margin-top:7px;color:#464650}.feed-status{min-height:0}.feed-status.visible{height:100vh;height:100dvh;scroll-snap-align:start;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px;color:#9999a5;gap:14px}.feed-status h2{font-size:23px;color:white;margin:0}.feed-status p{font-size:13px;line-height:1.7;margin:0}.feed-status button{background:#bdff63;color:#17210b;border-radius:8px;padding:12px 22px;font-weight:700}.skeleton{width:100%;height:55%;border-radius:15px;background:linear-gradient(110deg,#1d1d24 20%,#2a2a32 40%,#1d1d24 60%);background-size:200% 100%;animation:shimmer 1.5s infinite}@keyframes shimmer{to{background-position:-200% 0}}#sentinel{height:1px}#toast{position:fixed;bottom:100px;left:50%;transform:translateX(-50%);z-index:50;background:#eee;color:#17171c;border-radius:30px;padding:12px 20px;font-size:12px;opacity:0;pointer-events:none;transition:opacity .2s}#toast.visible{opacity:1}.media-error{position:absolute;top:40%;left:15%;right:15%;text-align:center;font-size:13px;color:#ccc}.media-error button{display:block;margin:12px auto;padding:9px 16px;background:#333;border-radius:6px}
@media(min-width:900px){#feed{border-left:1px solid #25252b;border-right:1px solid #25252b}}@media(min-width:900px) and (max-width:1200px){#sidebar{width:135px;right:20px}.desktop-intro{left:25px;width:180px}.brand{left:25px}.feed-nav{left:auto;right:170px}}@media(max-width:899px){#feed{width:100%}.brand{top:max(20px,env(safe-area-inset-top));left:18px}.brand a{font-size:21px}.brand-icon{width:23px;height:26px;font-size:22px;border-radius:6px;margin-right:6px}.brand p,.brand i,.desktop-intro,.desktop-footer,.feed-nav,#sidebar{display:none}.feed-heading{top:max(26px,env(safe-area-inset-top))}.metadata{bottom:calc(27px + env(safe-area-inset-bottom))}.actions{bottom:calc(32px + env(safe-area-inset-bottom))}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.heart-burst{display:none}}
/* Preserve native hidden semantics even on components with explicit display. */
.brand a{font-size:25px}.brand-icon{font-size:18px;font-style:normal;letter-spacing:-1.5px}
@media(max-width:899px){.brand a{font-size:19px}.brand-icon{font-size:14px}.view-feed .feed-heading.has-tabs{left:auto;right:18px;transform:none}}
[hidden]{display:none!important}
/* Windowed feed: only the active neighborhood contains card DOM. */
:root{font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
#feed{width:min(100vw,56.25vh);width:min(100vw,56.25dvh);overflow-anchor:none}
.feed-card{contain:layout paint;overflow-anchor:none}
.feed-spacer{pointer-events:none;contain:strict;overflow-anchor:none}
.feed-card.is-active{will-change:transform}
.player-media{position:absolute;inset:0}
.play-indicator{pointer-events:auto;z-index:2;width:auto;min-width:80px;min-height:52px;padding:12px 18px;border-radius:28px;font-size:14px;background:#111d}
.actions{gap:16px;bottom:calc(90px + env(safe-area-inset-bottom))}
.action{min-height:44px;min-width:44px;background:#1119;border-radius:22px;padding:8px;font-size:11px}
.action[aria-pressed="true"]{color:#bdff63}
.metadata{bottom:calc(88px + env(safe-area-inset-bottom))}
.autoplay-setting{position:fixed;z-index:4;left:50%;transform:translateX(-50%);bottom:calc(15px + env(safe-area-inset-bottom));min-height:44px;border-radius:22px;padding:10px 16px;background:#13131fe8;border:1px solid #686875;font-size:11px;color:#eee}
.sidebar-ad img{height:auto;aspect-ratio:16/9;object-fit:cover}
.sponsor-card img{height:auto;aspect-ratio:16/9;object-fit:contain}
#toast{pointer-events:auto;max-width:90vw;text-align:center}
#toast:not(.visible){visibility:hidden}
#toast button{margin-left:12px;border-radius:12px;padding:9px;background:#17210b;color:#bdff63}
.offline{display:grid;place-items:center;min-height:100vh;overflow:auto;padding:25px;text-align:center}
.offline main{max-width:480px}.offline p{color:#b3b3bd;line-height:1.7;margin-bottom:25px}
@media(min-width:900px){.autoplay-setting{bottom:calc(62px + env(safe-area-inset-bottom))}.feed-nav{left:calc(50% + 28.125vh + 20px);left:calc(50% + 28.125dvh + 20px)}}
@media(max-width:899px){#feed{width:100%}.autoplay-setting{bottom:calc(12px + env(safe-area-inset-bottom))}.actions{bottom:calc(83px + env(safe-area-inset-bottom))}.metadata{bottom:calc(83px + env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){.feed-card.is-active{will-change:auto}}

/* TikTok-style action rail, play overlay and progress bar */
.actions{right:8px;bottom:calc(96px + env(safe-area-inset-bottom));gap:18px}
.action{min-width:52px;min-height:52px;padding:0;background:none;border:0;border-radius:0;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:12px;font-weight:600;color:#fff;text-shadow:0 1px 3px #000b;backdrop-filter:none}
.action svg{width:34px;height:34px;fill:#fff;filter:drop-shadow(0 1px 4px #0009);transition:transform .15s ease}
.action:active svg{transform:scale(.86)}
.action[aria-pressed="true"]{color:#fff}
.action.liked svg{fill:#fe2c55}
.action.pop svg{animation:likepop .38s ease-out}
@keyframes likepop{0%{transform:scale(1)}45%{transform:scale(1.32)}100%{transform:scale(1)}}
.play-indicator{top:50%;left:50%;transform:translate(-50%,-50%);width:88px;height:88px;min-width:0;min-height:0;padding:0;border:0;border-radius:50%;background:none;display:grid;place-items:center;color:#fff}
.play-indicator svg{width:76px;height:76px;fill:#ffffffd9;filter:drop-shadow(0 2px 10px #0008)}
.play-indicator.with-text{width:auto;height:auto;padding:12px 20px;border-radius:24px;background:#000b;font-size:14px;font-weight:600}
.progress{position:absolute;left:0;right:0;bottom:0;height:3px;background:#ffffff2e;z-index:1;pointer-events:none}
.progress-fill{height:100%;background:#fff;transform-origin:left;transform:scaleX(0);transition:transform .25s linear}
.metadata{right:80px}
@media(max-width:899px){.actions{bottom:calc(88px + env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){.action.pop svg{animation:none}.progress-fill{transition:none}}
.icon{display:grid;place-items:center;line-height:0}
/* Autoplay toggle: quiet text control in the feed's top-right corner */
.autoplay-setting{top:max(18px,env(safe-area-inset-top));bottom:auto;left:auto;right:calc(50% - min(50vw,28.125vh) + 10px);right:calc(50% - min(50vw,28.125dvh) + 10px);transform:none;min-height:44px;padding:10px 6px;border:0;border-radius:0;background:none;font-size:12px;font-weight:600;color:#ffffffd9;text-shadow:0 1px 3px #000b;display:flex;align-items:center;gap:6px}
.autoplay-setting::before{content:"";width:7px;height:7px;border-radius:50%;background:#ffffff66}
.autoplay-setting[aria-pressed="true"]::before{background:#bdff63}
@media(min-width:900px){.autoplay-setting{bottom:auto}}
@media(max-width:899px){.autoplay-setting{bottom:auto;right:10px}}

/* Home | Kategori | Suka navigation */
.feed-card,.feed-status.visible{height:100%}
.app-nav{z-index:6;display:flex}
.nav-item{display:flex;align-items:center;color:#ffffff99;font-weight:650;transition:color .15s ease}
.nav-item svg{fill:currentColor;flex-shrink:0}
.nav-item:hover{color:#fff}
.nav-item.active{color:#bdff63}
.video-tag{display:inline-block;text-transform:uppercase;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
a.video-tag:hover{text-decoration:underline}
.view-browse .live-dot,.view-browse .feed-nav,.view-browse .key-guide,.view-sub .feed-heading{display:none}
.feed-back{position:fixed;z-index:5;top:max(18px,env(safe-area-inset-top));left:calc(50% - min(50vw,28.125vh) + 6px);left:calc(50% - min(50vw,28.125dvh) + 6px);max-width:calc(min(100vw,56.25dvh) - 150px);min-height:44px;display:flex;align-items:center;gap:6px;padding:8px 6px;background:none;font-size:14px;font-weight:650;color:#fff;text-shadow:0 1px 4px #000b;white-space:nowrap}
.feed-back svg{width:22px;height:22px;filter:drop-shadow(0 1px 3px #0009)}
.feed-back .back-parent{color:#ffffffc2}
.back-sep{color:#ffffff80}
.feed-back strong{overflow:hidden;text-overflow:ellipsis;font-weight:750}
/* Browse pages share the feed column */
.browse{height:100vh;height:100dvh;width:min(100vw,56.25vh);width:min(100vw,56.25dvh);margin:auto;overflow-y:auto;scrollbar-width:none;background:#0e0e12;padding:76px 14px 32px;outline:none}
.browse::-webkit-scrollbar{display:none}
.category-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:18px 12px}
.category-card{display:flex;flex-direction:column;min-width:0}
.category-cover{display:grid;place-items:center;aspect-ratio:4/5;border-radius:10px;overflow:hidden;background:linear-gradient(155deg,#2a3320,#15161a 70%)}
.category-cover img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .25s ease}
.category-card:hover img{transform:scale(1.04)}
.category-initial{font-size:44px;font-weight:800;color:#bdff6399;letter-spacing:-2px}
.category-name{margin-top:9px;font-size:14px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.category-count{margin-top:3px;font-size:11px;color:#8b8b96}
.liked-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;margin:0 -11px}
.liked-card{position:relative;display:block;aspect-ratio:9/16;overflow:hidden;background:#1b1b21}
.liked-card img,.liked-placeholder{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.liked-placeholder{background:linear-gradient(160deg,#25252d,#141418)}
.liked-card::after{content:"";position:absolute;inset:45% 0 0;background:linear-gradient(transparent,#000c);pointer-events:none}
.liked-info{position:absolute;z-index:1;left:7px;right:7px;bottom:7px;display:flex;flex-direction:column;gap:4px;text-shadow:0 1px 3px #000b}
.liked-title{font-size:11px;font-weight:650;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.liked-count{display:flex;align-items:center;gap:4px;font-size:11px;font-weight:600}
.liked-count svg{width:13px;height:13px;fill:#fff}
.tile-skeleton{display:block;border-radius:10px;background:linear-gradient(110deg,#1d1d24 20%,#2a2a32 40%,#1d1d24 60%);background-size:200% 100%;animation:shimmer 1.5s infinite}
.category-grid .tile-skeleton{aspect-ratio:4/5}
.liked-grid .tile-skeleton{aspect-ratio:9/16;border-radius:0}
.browse-state{min-height:62%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center;padding:30px 20px;color:#9999a5}
.browse-state h2{margin:0;font-size:20px;color:#fff;letter-spacing:-.3px}
.browse-state p{margin:0;font-size:13px;line-height:1.7}
.state-action{margin-top:6px;background:#bdff63;color:#17210b;border-radius:8px;padding:12px 22px;font-weight:700;font-size:13px}
.browse-note{margin:18px 0 0;font-size:12px;color:#9999a5;text-align:center}
.note-action{margin-left:8px;background:none;color:#bdff63;font-weight:700;padding:8px 4px}
@media(min-width:900px){
  .app-nav{position:fixed;top:118px;left:40px;flex-direction:column;gap:2px}
  .nav-item{gap:14px;padding:10px 0;font-size:16px}
  .nav-item svg{width:24px;height:24px}
  .desktop-intro{top:max(300px,38%)}
  .browse{border-left:1px solid #25252b;border-right:1px solid #25252b;padding-bottom:84px}
}
@media(min-width:900px) and (max-width:1200px){.app-nav{left:25px}}
@media(max-width:899px){
  :root{--tabbar:calc(54px + env(safe-area-inset-bottom))}
  #feed,.browse{width:100%;height:calc(100vh - var(--tabbar));height:calc(100dvh - var(--tabbar))}
  .app-nav{position:fixed;left:0;right:0;bottom:0;height:var(--tabbar);padding-bottom:env(safe-area-inset-bottom);background:#000;border-top:1px solid #ffffff14}
  .nav-item{flex:1;flex-direction:column;justify-content:center;gap:3px;font-size:10px;letter-spacing:.2px}
  .nav-item svg{width:23px;height:23px}
  .nav-item.active{color:#fff}
  .nav-item.active svg{color:#bdff63}
  /* The feed now ends above the tab bar, so card overlays sit low again. */
  .actions{bottom:14px}
  .metadata{bottom:18px}
  #toast{bottom:calc(var(--tabbar) + 24px)}
  .view-sub .brand{display:none}
  .feed-back{left:6px;max-width:calc(100% - 140px)}
}
@media(prefers-reduced-motion:reduce){.category-card:hover img{transform:none}}

/* Closable ads: X button, pop-in when an ad returns after being closed */
.ad-close{border:0;background:none;color:#fff;font-size:22px;line-height:1;min-width:36px;min-height:36px;display:grid;place-items:center;text-shadow:0 1px 3px #000b;cursor:pointer}
#sidebar .ad-close{position:absolute;top:4px;right:4px;z-index:1}
.sponsor-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.sponsor-head .ad-close{margin-right:-10px}
.ad-popin{animation:adpopin .45s cubic-bezier(.2,.9,.3,1.2)}
@keyframes adpopin{from{opacity:0;translate:0 14px;scale:.96}to{opacity:1;translate:0 0;scale:1}}
@media(prefers-reduced-motion:reduce){.ad-popin{animation:none}}

/* Banner stack: up to 3 sponsor rows rotating together. JS sets --banner-rows (rows on
   screen) on <body>; --banner-stack-h derives from it and drives every offset below. */
body{--banner-row-h:46px;--banner-gap:6px;--banner-stack-h:max(0px,calc(var(--banner-rows,0)*var(--banner-row-h) + (var(--banner-rows,0) - 1)*var(--banner-gap)))}
.banner-stack{position:fixed;z-index:5;left:50%;transform:translateX(-50%);width:min(100vw,56.25vh);width:min(100vw,56.25dvh);display:flex;flex-direction:column;gap:var(--banner-gap);pointer-events:none}
.banner{position:relative;flex:none;height:var(--banner-row-h);display:flex;align-items:center;padding:0 40px 0 8px;background:#20231fed;border:1px solid #414b34;font-size:11px;overflow:hidden;pointer-events:auto}
.banner a{display:flex;align-items:center;gap:9px;min-width:0;flex:1;height:100%}
.banner img{width:32px;height:32px;flex-shrink:0;object-fit:cover;border-radius:5px}
.banner small{flex-shrink:0;color:#bdff63;font-size:9px}
.banner strong{min-width:0;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.banner a>span{flex-shrink:0;color:#ffffffb3}
.banner .ad-close{position:absolute;top:0;right:2px;height:100%;min-height:0;min-width:38px;font-size:20px}
.banner.ad-rotate{animation:adrotate .38s ease-out}
@keyframes adrotate{from{opacity:0;translate:0 8px}to{opacity:1;translate:0 0}}
@media(max-width:899px){
  .banner-stack{top:calc(66px + env(safe-area-inset-top));width:calc(100% - 24px)}
  .banner{border-radius:9px}
  .browse{padding-top:calc(76px + var(--banner-stack-h))}
  /* In-feed sponsor card: start below the banner stack so its header and X stay clear of it. */
  .sponsor-card{padding-top:calc(76px + var(--banner-stack-h));padding-bottom:24px}
  .sponsor-card img{min-height:0;flex:0 1 auto}
}
@media(min-width:900px){
  /* Bottom of the feed column, growing upward; the card overlays move up with it. */
  body{--banner-row-h:48px;--banner-gap:0px}
  .banner-stack{bottom:0;padding-bottom:env(safe-area-inset-bottom)}
  .banner{border-width:1px 0 0}
  .actions{bottom:calc(40px + var(--banner-stack-h) + env(safe-area-inset-bottom))}
  .metadata{bottom:calc(32px + var(--banner-stack-h) + env(safe-area-inset-bottom))}
  .browse{padding-bottom:calc(28px + var(--banner-stack-h))}
  #toast{bottom:calc(44px + max(56px,var(--banner-stack-h)))}
}
@media(prefers-reduced-motion:reduce){.banner.ad-rotate{animation:none}}

/* Toast: compact dark card instead of a white pill */
#toast{display:flex;align-items:center;gap:12px;width:max-content;max-width:min(92vw,380px);padding:10px 10px 10px 16px;border-radius:14px;background:#1a1c21f2;color:#f4f4f6;border:1px solid #ffffff1f;box-shadow:0 10px 30px #0008;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);text-align:left;font-size:13px;opacity:0;translate:0 12px;transition:opacity .22s ease,translate .22s ease}
#toast.visible{opacity:1;translate:0 0}
#toast:not(.has-action){padding:11px 16px}
.toast-copy{display:flex;flex-direction:column;gap:2px;min-width:0}
.toast-copy strong{font-weight:600;font-size:13px}
.toast-copy small{color:#a9abb3;font-size:11.5px}
#toast .toast-action{margin:0;flex-shrink:0;border:0;border-radius:10px;padding:9px 14px;background:#bdff63;color:#10140a;font-weight:700;font-size:13px}
#toast .toast-action:active{transform:scale(.97)}
#toast .toast-close{margin:0;flex-shrink:0;border:0;background:none;color:#a9abb3;font-size:20px;line-height:1;min-width:32px;min-height:32px;padding:0}
@media(prefers-reduced-motion:reduce){#toast{transition:none}}
/* Toast sits at the top so it never covers the video title or action rail */
#toast,#toast.visible{bottom:auto}
#toast{top:max(12px,env(safe-area-inset-top));translate:0 -12px;width:min(92vw,380px);max-width:min(92vw,380px)}
#toast.visible{translate:0 0}
@media(max-width:899px){#toast{bottom:auto;top:max(12px,env(safe-area-inset-top))}}
@media(min-width:900px){#toast{bottom:auto;top:16px}}
#toast{top:max(8px,env(safe-area-inset-top));padding:8px 8px 8px 14px}
.toast-copy small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:899px){#toast{top:max(8px,env(safe-area-inset-top))}}

/* Banner rows: image fills the left half, two-level text, no "Sponsor" label */
body{--banner-row-h:76px}
@media(min-width:900px){body{--banner-row-h:72px}}
.banner{padding:0 40px 0 0}
.banner a{gap:12px}
.banner img{width:50%;height:100%;flex:none;object-fit:cover;border-radius:0}
.banner-text{display:flex;flex-direction:column;justify-content:center;gap:4px;min-width:0;flex:1}
.banner-text strong{font-size:13px;line-height:1.25;font-weight:700;color:#fff;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.banner-text span{font-size:11px;color:#bdff63;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* FYP | Trending tabs in the feed heading: plain text, active tab white with the lime underline. */
.feed-tabs{display:flex;gap:16px;pointer-events:auto}
.feed-tab{display:block;padding:12px 2px 10px;margin-top:-12px;border-bottom:2px solid transparent;color:#ffffff99;font-weight:700;transition:color .15s ease}
.feed-tab:hover{color:#ffffffd9}
.feed-tab.active{color:#fff;border-bottom-color:#bdff63}
/* The tabs carry their own underline: no live dot next to them, at any width. */
.feed-heading.has-tabs .live-dot,.feed-heading:has(.feed-tabs:not([hidden])) .live-dot{display:none}
@media(max-width:899px){.feed-tabs{gap:14px}}
/* Very narrow phones: the logo collapses to its icon and the tabs sit next to it, clear of the autoplay toggle. */
@media(max-width:359px){.brand a{font-size:0}.feed-heading{left:52px;transform:none}.feed-tab{font-size:12px}.feed-tabs{gap:12px}}
.feed-card.has-placeholder{background-size:cover;background-position:center}
/* Search (#/cari) and hashtags. Flat, outlined controls on the page background; no filled pills. */
.description a.hashtag{color:#bdff63;font-weight:650}
.description a.hashtag:hover{text-decoration:underline}
.search-page{display:flex;flex-direction:column;min-height:100%}
.search-form{display:flex;align-items:center;gap:10px;height:48px;padding:0 12px;margin:0 0 6px;border:1px solid #ffffff2e;border-radius:10px;background:#0e0e12}
.search-form:focus-within{border-color:#bdff63}
.search-icon svg{display:block;width:20px;height:20px;color:#ffffff99}
.search-input{flex:1;min-width:0;height:100%;border:0;background:none;color:#fff;font:inherit;font-size:16px;outline:none}
.search-input::placeholder{color:#ffffff66}
.search-input::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none;display:none}
.search-clear{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;margin-right:-10px;padding:0;background:none;border-radius:6px;color:#f2f2f5}
.search-clear[hidden]{display:none}
.search-clear svg{width:22px;height:22px}
.search-clear:hover{color:#bdff63}
.search-suggestions{list-style:none;margin:0 0 10px;padding:4px 0;border-bottom:1px solid #ffffff14}
.suggestion a,.suggestion button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;padding:8px 4px;background:none;text-align:left;font-size:14px;color:#fff;overflow:hidden}
.suggestion button{display:block;white-space:nowrap;text-overflow:ellipsis}
.suggestion a span{color:#bdff63;font-weight:650}
.suggestion small{flex-shrink:0;font-size:11px;color:#8b8b96}
.suggestion+.suggestion{border-top:1px solid #ffffff0d}
.search-section{margin:14px 0 10px;font-size:13px;font-weight:700;color:#ffffffc2;letter-spacing:.2px}
.chip-row{display:flex;flex-wrap:wrap;gap:6px 14px;margin:4px 0 14px}
/* Text chips: no fill and no pill shape, just the label with a thin underline (44px-tall hit area). */
.tag-chip{display:inline-flex;align-items:center;gap:6px;min-height:44px;max-width:100%;padding:0 2px;background:none;border-radius:4px;font-size:14px;font-weight:650;color:#bdff63}
.tag-chip-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:underline;text-decoration-color:#bdff6366;text-underline-offset:4px}
.tag-chip:hover .tag-chip-name{text-decoration-color:currentColor}
.tag-chip-count{font-size:11px;font-weight:600;color:#8b8b96}
.category-chip{color:#fff;text-decoration:underline;text-decoration-color:#ffffff59;text-underline-offset:4px}
.category-chip:hover{text-decoration-color:#fff}
.search-note{margin:2px 0 10px;font-size:12px;color:#9999a5}
.search-grid{margin-top:2px}
.search-more{display:block;margin:18px auto 0;padding:12px 18px;background:none;color:#bdff63;font-weight:700;font-size:13px}
.search-more[disabled]{color:#8b8b96}
.search-page .browse-state{min-height:40vh}
/* Captions ("Teks"): CC toggle in the action rail (lime while on) and readable cues on video. */
.action.captions-on{color:#bdff63}
.action.captions-on svg{fill:#bdff63}
.feed-card video::cue{color:#fff;background-color:rgb(0 0 0 / .55);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:15px;font-weight:600;line-height:1.35;text-shadow:0 1px 2px rgb(0 0 0 / .6)}
/* Accounts: Profil tab, account settings and the login sheet. Flat or outlined controls, no filled dark pills. */
.avatar{display:grid;place-items:center;flex-shrink:0;width:56px;height:56px;border-radius:50%;background:#bdff63;color:#111;font-size:24px;font-weight:800;letter-spacing:-.5px;user-select:none}
.avatar-empty{background:none;border:1.5px dashed #ffffff40}
.avatar-large{width:72px;height:72px;font-size:30px}
.profile-header{display:flex;align-items:center;gap:14px;padding:4px 2px 18px;border-bottom:1px solid #ffffff14;margin-bottom:6px}
.profile-copy{flex:1;min-width:0}
.profile-name{margin:0;font-size:18px;font-weight:750;letter-spacing:-.3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-sub{margin:3px 0 0;font-size:13px;color:#9999a5;line-height:1.5;overflow-wrap:anywhere}
.profile-action{flex-shrink:0;min-height:44px;display:inline-flex;align-items:center;padding:0 14px;border:1px solid #ffffff38;border-radius:8px;background:none;color:#fff;font-size:13px;font-weight:700}
.profile-action:hover{border-color:#fff}
.profile-action.primary{border-color:#bdff63;background:#bdff63;color:#17210b}
.profile-section{margin:14px 0 10px;font-size:13px;font-weight:700;color:#ffffffc2;letter-spacing:.2px}
.account-page{display:flex;flex-direction:column;gap:6px;padding-bottom:24px}
.account-back{align-self:flex-start;min-height:44px;display:inline-flex;align-items:center;font-size:14px;font-weight:650;color:#ffffffc2}
.account-back:hover{color:#fff}
.account-top{display:flex;align-items:center;gap:14px;margin:4px 0 8px}
.account-title{margin:0;font-size:20px;letter-spacing:-.4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-loading{color:#9999a5;font-size:13px;padding:30px 0;text-align:center}
.account-section{display:flex;flex-direction:column;gap:10px;padding:18px 0;border-top:1px solid #ffffff14}
.account-heading{margin:0;font-size:13px;font-weight:700;color:#ffffffc2;letter-spacing:.2px;text-transform:uppercase}
.account-text{margin:0;font-size:14px;line-height:1.6;color:#e6e6ea;overflow-wrap:anywhere}
.field{display:flex;flex-direction:column;gap:6px}
.field-label{font-size:12px;font-weight:650;color:#c7c7cc;margin:0}
.field-input,.login-input{height:46px;padding:0 12px;border:1px solid #ffffff2e;border-radius:8px;background:#0e0e12;color:#fff;font:inherit;font-size:16px;outline:none;min-width:0}
.field-input:focus,.login-input:focus{border-color:#bdff63}
.field-hint{margin:0;font-size:12px;line-height:1.5;color:#8b8b96}
.color-row{display:flex;flex-wrap:wrap;gap:10px}
.avatar-colors{border:0;padding:0;margin:0;min-width:0}
.avatar-colors legend{padding:0;margin-bottom:10px}
.swatch-label{display:inline-flex;cursor:pointer}
.swatch-label .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.swatch{appearance:none;display:block;margin:0;width:34px;height:34px;padding:0;border-radius:50%;border:2px solid transparent;box-shadow:inset 0 0 0 2px #0e0e12;cursor:pointer}
.swatch:checked{border-color:#fff}
.swatch:focus-visible{outline:2px solid #bdff63;outline-offset:3px}
@media(forced-colors:active){.swatch{appearance:auto;box-shadow:none}}
.account-button{align-self:flex-start;min-height:44px;padding:0 16px;border:1px solid #ffffff38;border-radius:8px;background:none;color:#fff;font-size:13px;font-weight:700}
.account-button:hover{border-color:#fff}
.account-button.primary{border-color:#bdff63;background:#bdff63;color:#17210b}
.account-button.danger{border-color:#ff4d79;color:#ff6b8f}
.account-button[disabled],.login-panel button[disabled]{opacity:.55;cursor:default}
.form-message{margin:0;min-height:18px;font-size:12px;color:#9999a5}
.form-message.ok,.login-status.ok{color:#bdff63}
.form-message.error,.login-status.error{color:#ff8aa6}
.passkey-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.passkey-item{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid #ffffff0d}
.passkey-info{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.passkey-name{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.passkey-meta,.passkey-empty{font-size:12px;color:#8b8b96}
.passkey-actions{display:flex;flex-wrap:wrap}
.passkey-edit{display:flex;flex-wrap:wrap;align-items:center;gap:4px}
.passkey-edit .field{flex:1 1 100%;min-width:0}
.passkey-edit .field-input{flex:1;height:40px}
.text-button{min-height:44px;padding:0 8px;background:none;color:#bdff63;font-size:13px;font-weight:700}
.text-button.danger{color:#ff6b8f}
.login-sheet{position:fixed;inset:0;z-index:40;display:flex;align-items:flex-end;justify-content:center}
.login-sheet[hidden]{display:none}
.login-backdrop{position:absolute;inset:0;background:#000000a6}
.login-panel{position:relative;width:min(100%,440px);max-height:92dvh;overflow-y:auto;display:flex;flex-direction:column;gap:12px;padding:26px 20px calc(22px + env(safe-area-inset-bottom));background:#121217;border-top:1px solid #ffffff1f;border-radius:16px 16px 0 0;animation:sheet-up .2s ease-out}
@keyframes sheet-up{from{transform:translateY(24px);opacity:0}}
.login-close{position:absolute;top:8px;right:8px;width:44px;height:44px;display:grid;place-items:center;padding:0;background:none;color:#c7c7cc}
.login-close:hover{color:#fff}
.login-close svg{width:22px;height:22px}
.login-title{margin:0;font-size:20px;letter-spacing:-.4px;padding-right:40px}
.login-reason{margin:0 0 4px;font-size:13px;line-height:1.6;color:#9999a5}
.login-primary{display:flex;align-items:center;justify-content:center;gap:10px;min-height:48px;border-radius:8px;background:#bdff63;color:#17210b;font-size:14px;font-weight:750}
.login-primary svg{display:block;width:20px;height:20px}
.login-or{display:flex;align-items:center;gap:10px;font-size:11px;color:#8b8b96;text-transform:uppercase;letter-spacing:1.4px}
.login-or::before,.login-or::after{content:"";flex:1;height:1px;background:#ffffff1a}
.login-email{display:flex;flex-direction:column;gap:8px}
.login-email[hidden]{display:none}
.login-label{font-size:12px;font-weight:650;color:#c7c7cc}
.login-secondary{min-height:46px;border:1px solid #ffffff38;border-radius:8px;background:none;color:#fff;font-size:14px;font-weight:700}
.login-secondary:hover{border-color:#fff}
.login-link{align-self:center;min-height:44px;padding:0 6px;background:none;color:#bdff63;font-size:13px;font-weight:650}
.login-status{margin:0;min-height:18px;font-size:13px;line-height:1.5;color:#c7c7cc;text-align:center}
.login-fine{margin:0;font-size:11px;color:#6d6d78;text-align:center}
@media(min-width:900px){.login-sheet{align-items:center}.login-panel{border:1px solid #ffffff1f;border-radius:14px}}
@media(prefers-reduced-motion:reduce){.login-panel{animation:none}}

/* In-feed VAST video ads: full-bleed clip like a normal card; plain text controls, no pills. */
.video-ad-card{background:#15151b center/cover no-repeat}
.video-ad-card video{width:100%;height:100%;object-fit:cover;display:block}
.video-ad-top{position:absolute;left:22px;top:calc(70px + env(safe-area-inset-top));text-shadow:0 1px 4px #000c}
.video-ad-top .sponsored-label{color:#fff;opacity:.85}
.video-ad-meta{display:flex;flex-direction:column;align-items:flex-start;gap:12px}
.video-ad-meta h2{margin:0}
.video-ad-cta{padding:11px 18px}
.video-ad-skip{position:absolute;right:16px;bottom:calc(150px + env(safe-area-inset-bottom));background:none;border:0;padding:8px 0;color:#ffffffb3;font-size:13px;font-weight:600;text-shadow:0 1px 4px #000c;font-variant-numeric:tabular-nums;cursor:default}
.video-ad-skip.ready{color:#fff;cursor:pointer;text-decoration:underline;text-decoration-color:#bdff63;text-underline-offset:5px;text-decoration-thickness:2px}
.video-ad-card.ad-ended .shade{background:linear-gradient(180deg,#0008,#0004 40%,#000c)}
@media(max-width:899px){.video-ad-top{top:calc(70px + var(--banner-stack-h) + env(safe-area-inset-top))}.video-ad-skip{bottom:calc(200px + env(safe-area-inset-bottom))}}
@media(min-width:900px){.video-ad-skip{bottom:calc(150px + var(--banner-stack-h) + env(safe-area-inset-bottom))}}

/* "Video serupa": a compact row inside the metadata (above the title, clear of the action rail). */
.related-toggle{margin-left:0}
.more+.related-toggle{margin-left:12px}
.related-toggle[aria-expanded="true"]{color:#bdff63}
.related-row{margin:0 0 14px;text-shadow:none}
.related-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.related-head strong{font-size:10px;letter-spacing:1.4px;text-transform:uppercase;color:#ffffffd9}
.related-close{background:none;border:0;color:#fff;font-size:20px;line-height:1;min-width:32px;min-height:28px;margin-right:-8px;text-shadow:0 1px 3px #000b}
.related-list{display:flex;gap:10px;overflow-x:auto;scrollbar-width:none;scroll-snap-type:x proximity;padding-bottom:2px}
.related-list::-webkit-scrollbar{display:none}
.related-item{flex:0 0 72px;scroll-snap-align:start;display:flex;flex-direction:column;gap:5px}
.related-item img{width:72px;height:96px;object-fit:cover;border-radius:8px;background:#ffffff14;display:block}
.related-title{font-size:10.5px;line-height:1.3;color:#f2f2f4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-shadow:0 1px 3px #000a}
.related-note{font-size:11px;color:#c7c7cc}
.related-item:focus-visible img{outline:2px solid #bdff63;outline-offset:2px}
/* Desktop: right column under the sidebar ad (JS sets top and hides it when there is no room). */
.related-rail{position:fixed;right:35px;width:180px;display:flex;flex-direction:column;gap:10px}
.related-rail small{color:#a8a8b3;font-size:9px;text-transform:uppercase;letter-spacing:1.7px}
.related-rail-item{display:flex;gap:10px;align-items:center;min-height:62px}
.related-rail-item img{width:44px;height:62px;flex:none;object-fit:cover;border-radius:6px;background:#ffffff10}
.related-rail-item .related-title{font-size:12px;color:#d9d9de;text-shadow:none}
.related-rail-item:hover .related-title{color:#fff}
@media(min-width:900px) and (max-width:1200px){.related-rail{width:135px;right:20px}}
@media(max-width:899px){.related-rail{display:none}}

/* Keep overlays inside separate columns and within the space left by sponsor rows. */
body{--overlay-top:calc(76px + env(safe-area-inset-top));--overlay-bottom:calc(32px + var(--banner-stack-h) + env(safe-area-inset-bottom))}
.metadata{right:calc(84px + env(safe-area-inset-right));max-height:max(44px,calc(100% - var(--overlay-top) - var(--overlay-bottom)));overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;overflow-wrap:anywhere}
.metadata h2{overflow-wrap:anywhere}
.actions{right:max(8px,env(safe-area-inset-right));bottom:var(--overlay-bottom);max-height:max(44px,calc(100% - var(--overlay-top) - var(--overlay-bottom)));overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;gap:12px;padding:4px}
.actions .action{flex-shrink:0}
.actions::-webkit-scrollbar{display:none}
.more,.ad-close,.related-close,.swatch,.feed-nav button,.feed-tab,#toast .toast-close,#toast .toast-action{min-width:44px;min-height:44px}
.more{padding:10px 0}
.feed-tab{display:flex;align-items:center;justify-content:center}
:focus-visible{outline:2px solid #bdff63;outline-offset:3px}
.browse:focus-visible{outline-offset:-3px}
.metadata:focus-within,.actions:focus-within{outline-offset:-3px}
.brand p,.desktop-intro p,.key-guide,.desktop-footer,.desktop-footer span,.login-fine{color:#a0a0ad}
.video-ad-skip{min-width:44px;min-height:44px}
@media(max-width:899px){
  body{--overlay-top:calc(76px + var(--banner-stack-h) + env(safe-area-inset-top));--overlay-bottom:18px}
  .metadata{left:max(16px,env(safe-area-inset-left));right:calc(84px + env(safe-area-inset-right));bottom:var(--overlay-bottom)}
  .banner-stack{left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));width:auto;transform:none}
  .browse{padding-left:max(14px,env(safe-area-inset-left));padding-right:max(14px,env(safe-area-inset-right))}
}
/* Short phones, including landscape: retain all rows and 44px controls without covering the rail. */
@media(max-height:600px){
  body{--banner-row-h:44px;--banner-gap:2px}
  .actions{gap:4px}
  .action{min-height:44px;font-size:10px;gap:1px}
  .action svg{width:25px;height:25px}
  .metadata h2{font-size:18px}
  .video-tag{margin-bottom:6px}
  .description{font-size:12px;line-height:1.5}
  .related-item img{height:64px}
}
@media(max-width:359px){.profile-header{flex-wrap:wrap}.profile-copy{min-width:170px}.passkey-item{flex-wrap:wrap}}
.banner{padding-right:46px}
.banner .ad-close{min-width:44px;min-height:44px}
a.video-tag{min-height:44px;display:inline-flex;align-items:center;margin-bottom:0}

/* Crawlable collection links supplement the existing immersive feed. */
.site-info-menu{position:fixed;z-index:7;left:40px;bottom:90px;max-width:230px;font-size:12px;color:#e2e2e9}
.site-info-menu summary{cursor:pointer;min-height:44px;padding:12px 16px;border:1px solid #44444c;border-radius:10px;background:#15151bf2}
.site-info-menu summary:focus-visible{outline:2px solid #bdff63;outline-offset:4px}
.site-info-menu .site-page-links{position:absolute;bottom:100%;left:0;min-width:170px;display:grid;padding:8px;margin-bottom:6px;border:1px solid #44444c;border-radius:10px;background:#15151b}
.site-info-menu a{display:flex;align-items:center;min-height:44px;padding:8px 12px}
@media(max-width:899px){.site-info-menu{left:12px;bottom:calc(78px + env(safe-area-inset-bottom))}}
.topic-nav{position:fixed;z-index:4;right:24px;top:30px;display:flex;flex-direction:column;gap:2px;width:140px}
.topic-nav a{min-height:44px;display:flex;align-items:center;padding:9px 12px;border:1px solid #ffffff19;border-radius:8px;background:#09090ce8;color:#e2e2e9;font-size:12px;font-weight:600}
.topic-nav a:hover{border-color:#bdff6366;color:#bdff63}
.view-browse .topic-nav,.view-sub .topic-nav{display:none}
@media(max-width:899px){
  .topic-nav{top:calc(64px + env(safe-area-inset-top));left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));width:auto;flex-direction:row;gap:6px}
  .topic-nav a{flex:1;justify-content:center;min-width:0;font-size:11px;padding:9px 4px;background:#09090ce8}
  body.view-feed{--overlay-top:calc(124px + var(--banner-stack-h) + env(safe-area-inset-top))}
  .view-feed .banner-stack{top:calc(114px + env(safe-area-inset-top))}
  .view-feed .sponsor-card{padding-top:calc(124px + var(--banner-stack-h))}
  .view-feed .video-ad-top{top:calc(118px + var(--banner-stack-h) + env(safe-area-inset-top))}
}

/* Shared desktop column bounds keep fixed navigation clear of the video. */
@media (min-width: 900px) {
  body {
    --desktop-gutter: clamp(240px, 24vw, 288px);
    --feed-width: min(56.25vh, calc(100vw - 2 * var(--desktop-gutter)));
    --feed-width: min(56.25dvh, calc(100vw - 2 * var(--desktop-gutter)));
  }
  .brand { left: 32px; top: 24px; width: calc(var(--desktop-gutter) - 64px); }
  .brand a { font-size: 23px; white-space: nowrap; letter-spacing: -1px; }
  .brand p { margin: 8px 0 0; line-height: 1.5; letter-spacing: 0; }
  .app-nav, .desktop-footer { left: 32px; }
  #feed, .browse, .banner-stack { width: var(--feed-width); }
  .feed-nav {
    left: calc(50% + var(--feed-width) / 2 + 16px);
    right: auto;
    top: 50%;
    transform: translateY(-50%);
  }
  .feed-back {
    left: calc(50% - var(--feed-width) / 2 + 12px);
    max-width: calc(var(--feed-width) - 140px);
  }
  .autoplay-setting { right: calc(50% - var(--feed-width) / 2 + 12px); }
  .desktop-intro {
    left: 32px;
    width: calc(var(--desktop-gutter) - 64px);
    top: max(340px, 38%);
    bottom: 108px;
    overflow-y: auto;
    scrollbar-width: thin;
  }
  .desktop-intro h1 { font-size: clamp(24px, 2vw, 30px); line-height: 1.2; letter-spacing: -.8px; margin: 16px 0; }
  .desktop-intro p { font-size: 12px; line-height: 1.7; }
  .key-guide { margin-top: 24px; }
  .topic-nav { gap: 8px; }
  .topic-nav a { line-height: 1.35; }
}
@media (min-width: 900px) and (max-height: 650px) {
  .desktop-intro { display: none; }
}

/* Mobile controls share one header row, followed by an even collection grid. */
@media (max-width: 899px) {
  body { --tabbar: calc(64px + env(safe-area-inset-bottom)); }
  .brand {
    top: calc(12px + env(safe-area-inset-top));
    left: max(16px, env(safe-area-inset-left));
  }
  .brand a { min-height: 44px; font-size: 19px; }
  .feed-heading,
  .view-feed .feed-heading.has-tabs {
    top: calc(12px + env(safe-area-inset-top));
    right: max(16px, env(safe-area-inset-right));
    left: auto;
    transform: none;
    min-height: 44px;
  }
  .feed-tabs { gap: 8px; }
  .feed-tab { margin-top: 0; padding: 0 6px; min-height: 44px; font-size: 13px; }
  .topic-nav {
    top: calc(64px + env(safe-area-inset-top));
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }
  .topic-nav a {
    min-height: 48px;
    padding: 8px 4px;
    font-size: 12px;
    line-height: 1.25;
    text-align: center;
    text-wrap: balance;
  }
  .app-nav {
    padding-left: max(8px, env(safe-area-inset-left));
    padding-right: max(8px, env(safe-area-inset-right));
  }
  .nav-item { min-width: 0; min-height: 64px; gap: 4px; font-size: 11px; line-height: 1.2; }
  .nav-item svg { width: 22px; height: 22px; }
  .view-feed .feed-status.visible {
    padding-top: calc(124px + var(--banner-stack-h) + env(safe-area-inset-top));
    padding-bottom: 32px;
  }
}

/* No previous/next actions are available while the feed has no cards. */
body:has(#feed-status.visible):not(:has(#feed .feed-card)) .feed-nav { display: none; }

/* The search form owns the input focus ring; keep it within the rounded field. */
.search-form:focus-within { border-color: #bdff63; box-shadow: 0 0 0 1px #bdff63; }
.search-icon { flex-shrink: 0; }
.search-input { height: 44px; margin: 0; padding: 0; border-radius: 0; appearance: none; -webkit-appearance: none; }
.search-input:focus, .search-input:focus-visible { outline: none; box-shadow: none; }
.search-clear { margin-right: 0; }
.search-clear:focus-visible { outline-offset: -4px; }
