@font-face{font-family:Kantumruy Pro;src:url(media/khmer.woff2) format("woff2");font-weight:300 700;font-display:swap;unicode-range:U+1780-17FF,U+19E0-19FF,U+200C-200D,U+25CC}
@font-face{font-family:DM Sans;src:url(media/latin.woff2) format("woff2");font-weight:400 900;font-display:swap}
:root{color-scheme:dark;--bg:#101010;--panel:#1c1c1c;--text:#fafafa;--muted:#b7b7b7;--line:#ffffff21;--mint:#f4f4f4;--ink:#181818;--accent:#b49aff;--ease:cubic-bezier(.2,.75,.25,1);--top:calc(60px + env(safe-area-inset-top));--bottom:calc(66px + env(safe-area-inset-bottom));--width:460px;--outer:max(0px,calc((100dvh - 920px)/2))}
*{box-sizing:border-box}
body{display:flow-root;margin:0;background:#0b0b0b;color:var(--text);font:15px/1.5 "DM Sans","Kantumruy Pro",system-ui,sans-serif;min-height:100dvh}
:lang(km) body,:lang(km) input,:lang(km) textarea{font-family:"Kantumruy Pro","DM Sans",system-ui,sans-serif}
button,input,textarea{font:inherit}
button{cursor:pointer;border:0;color:inherit;background:none;-webkit-tap-highlight-color:transparent;transition:background .2s var(--ease),color .2s var(--ease),transform .2s var(--ease),opacity .2s var(--ease)}
button:active:not(:disabled){transform:scale(.94)}
button:disabled{cursor:not-allowed;opacity:.5}
a{color:var(--mint)}
h1,h2,h3,p{margin:0}
svg{display:block;width:22px;height:22px;flex:none}
:focus-visible{outline:2px solid var(--mint);outline-offset:3px}
[hidden]{display:none!important}
.skip{position:fixed;top:8px;left:8px;z-index:10;transform:translateY(-150%);padding:8px 12px;background:var(--bg)}
.skip:focus{transform:none}
.app{position:relative;isolation:isolate;display:flex;flex-direction:column;max-width:var(--width);height:min(100dvh,920px);margin:var(--outer) auto 0;background:var(--bg);overflow:hidden}
@media(min-width:500px){body{background:#0b0b0b}.app{border-inline:1px solid var(--line);box-shadow:0 0 90px #0008}}
@media(min-height:960px) and (min-width:500px){.app{border:1px solid var(--line);border-radius:26px}}
.topbar{position:absolute;inset:0 0 auto;height:var(--top);z-index:4;display:flex;align-items:center;justify-content:space-between;padding:env(safe-area-inset-top) 16px 0;border-bottom:1px solid var(--line);background:var(--bg)}
.app[data-view=watch] .topbar{border-color:transparent;background:linear-gradient(#000a,transparent);pointer-events:none}
.topbar button,.topbar form{pointer-events:auto}
.brand{display:flex;gap:8px;align-items:center;padding:0}
.brand-mark{display:block;width:33px;height:33px;flex:none}
.wordmark{font:850 21px/1 "DM Sans",system-ui,sans-serif;letter-spacing:-.85px}
.wordmark span{color:var(--mint)}
.language{display:flex;gap:5px;align-items:center;min-height:36px;padding:4px 9px;border:1px solid #ffffff30;border-radius:999px;background:#10191da3;color:var(--text);font-size:11px;font-weight:750;backdrop-filter:blur(12px)}
.language svg{width:15px;height:15px}
#main{flex:1;min-height:0;outline:none}
#view{height:100%}
#navigation{z-index:4;flex:none;height:var(--bottom);display:grid;grid-template-columns:repeat(4,1fr);padding:4px 6px env(safe-area-inset-bottom);border-top:1px solid var(--line);background:#101010}
.nav-button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#b6bfc3;font-size:11px;font-weight:700;white-space:nowrap;border-radius:12px;padding:0 2px}
.nav-button:hover{background:#ffffff08}
.nav-button[aria-current=page]{color:#fff;font-weight:850}
.nav-button svg{width:22px;height:22px}.nav-button[aria-current=page] svg{stroke-width:2.4}
.nav-icon{display:grid;place-items:center;height:27px}
.create-nav .nav-icon{width:27px;border:1.5px solid currentColor;border-radius:50%;color:#f5f5f5}.create-nav svg{width:19px;height:19px}
.watch,.player-zone,.stage{height:100%}
.player-zone,.stage{position:relative}
.stage{overflow:hidden;isolation:isolate;background:#121212;touch-action:pan-x;animation:surface-in .28s var(--ease) both}
@keyframes surface-in{from{opacity:.65;transform:translateY(5px)}to{opacity:1;transform:none}}
.stage video{pointer-events:none;width:100%;height:100%;position:absolute;inset:0;object-fit:cover}
.stage::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(180deg,transparent 64%,#0005 82%,#000b 100%)}
.play-surface{position:absolute;inset:0;z-index:2;width:100%;display:grid;place-items:center}
.play-surface:focus-visible{outline-offset:-4px}
.play-indicator{visibility:hidden;opacity:0;transform:scale(.9);display:grid;place-items:center;width:66px;height:66px;border:1px solid #ffffff55;border-radius:50%;background:#0a11169c;backdrop-filter:blur(10px);transition:opacity .2s,transform .2s}
.stage.paused .play-indicator{visibility:visible;opacity:1;transform:none}
.play-indicator svg{width:26px;height:26px;fill:#fff;stroke:#fff}
.round{width:42px;height:42px;display:grid;place-items:center;border:1px solid #ffffff29;border-radius:50%;background:#10181aa9;color:#fff;backdrop-filter:blur(12px)}
.round:hover{background:#233035dc}
.round svg{width:19px;height:19px}
.actions{position:absolute;bottom:22px;right:9px;display:grid;gap:10px;z-index:3}
.action{display:grid;justify-items:center;gap:3px;padding:0;min-width:44px;color:#fff;font-size:10px;font-weight:750;text-shadow:0 1px 6px #000;line-height:1.25}
.action .round{width:43px;height:43px}
.action[aria-pressed=true] .round{background:#d9ceff;color:#2e185b;border-color:#d9ceff}.action[data-action=save][aria-pressed=true] svg{fill:currentColor}
.reaction-symbol{display:block;font-size:21px;line-height:1;text-shadow:none;font-family:"Noto Color Emoji","Apple Color Emoji","Segoe UI Emoji",sans-serif}
.caption{position:absolute;z-index:3;left:14px;right:68px;bottom:19px;pointer-events:none}
.caption a,.caption button{pointer-events:auto}
.caption h1{margin-top:7px;font-size:15px;font-weight:650;line-height:1.4;text-shadow:0 1px 5px #000;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
:lang(km) .caption h1{line-height:1.4}
.progress{position:absolute;z-index:3;bottom:0;width:100%;height:2px;background:#ffffff27;pointer-events:none}
.progress span{display:block;background:var(--accent);height:100%;width:0}
.subview{height:100%;overflow:auto;scrollbar-width:thin;scrollbar-color:#666 #111;padding:calc(var(--top) + 18px) 16px 23px;animation:surface-in .24s var(--ease) both}
.screen-title{font-size:24px;line-height:1.35;font-weight:850;margin-bottom:16px}
.subhead{font-size:15px;color:var(--muted);margin:23px 0 10px}
.profile-card{display:flex;align-items:center;gap:12px;padding:15px;background:var(--panel);border:1px solid var(--line);border-radius:17px;margin-bottom:10px}
.avatar{width:47px;height:47px;border-radius:50%;display:grid;place-items:center;background:#333;color:#fff;flex:none}
.profile-card h2{font-size:17px}
.profile-card p,.empty p{color:var(--muted);font-size:13px;margin-top:4px}
.profile-button{width:100%}
.empty{border:1px dashed #ffffff2a;border-radius:15px;padding:18px}
.empty .primary{margin-top:12px}
#panel{position:fixed;inset:auto 0 var(--outer);width:min(100%,var(--width));max-width:none;max-height:calc(min(100dvh,920px) - 22px);margin:0 auto;padding:20px 17px calc(19px + env(safe-area-inset-bottom));background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:25px 25px 0 0;box-shadow:0 -15px 65px #0007;overflow:auto}
#panel[open]{animation:sheet-in .29s var(--ease) both}
@keyframes sheet-in{from{opacity:0;transform:translateY(36px)}to{opacity:1;transform:none}}
#panel::backdrop{background:#04080bbc;backdrop-filter:blur(5px);animation:backdrop-in .22s ease both}
@keyframes backdrop-in{from{opacity:0}to{opacity:1}}
.panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}
.panel-head h2{font-size:20px;line-height:1.4;font-weight:850}
.panel-head .round{width:36px;height:36px;flex:none}
.panel-head .round svg{width:17px;height:17px}
.panel-description{color:var(--muted);font-size:13px;margin-bottom:13px}
form,.options{display:grid;gap:10px}
.field{display:grid;gap:5px}
.field span{font-weight:650}
textarea,input{min-width:0;width:100%;color:var(--text);background:#161616;border:1px solid #ffffff26;border-radius:11px;padding:10px 11px;font-size:16px}
textarea{resize:vertical;min-height:75px}
input[type=file]{font-size:13px}
input[type=file]::file-selector-button{border:0;border-radius:7px;background:#333;color:var(--text);padding:7px 9px;cursor:pointer;margin-right:7px}
.primary,.secondary{padding:10px 14px;border-radius:11px;font-weight:750;min-height:44px}
.primary{background:#f4f4f4;color:#181818}
.primary:hover{filter:brightness(1.1)}
.secondary{border:1px solid var(--line);background:#2a2a2a;color:var(--text)}
.secondary:hover{background:#3a3a3a}
.inline-error{color:#ffb8b6}
.inline-error:empty{display:none}
.comment-list{display:grid;gap:8px;max-height:40dvh;overflow:auto;margin-bottom:14px}
.comment{background:#151515;border-radius:10px;padding:10px;overflow-wrap:anywhere}
.comment strong{display:block;font-size:12px;color:var(--mint)}
.photo-detail{max-height:53dvh;width:100%;object-fit:contain;border-radius:11px;background:#0d1014}
.photo-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:12px}
.reaction-picker{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.reaction-option{flex:0 0 calc((100% - 24px)/4);display:grid;justify-items:center;gap:6px;padding:10px 2px 7px;border:1px solid var(--line);border-radius:14px;background:#ffffff06;color:var(--text);font-size:12px;min-height:72px}
.reaction-option:hover,.reaction-option[aria-pressed=true]{border-color:#b7f9d199;background:#b7f9d119}
.reaction-option .reaction-symbol{display:grid;place-items:center;width:39px;height:39px;border-radius:50%;background:var(--chip,#ffffff15);font-size:23px}
.phone-field{display:flex;align-items:center;border:1px solid #ffffff26;border-radius:11px;background:#161616;min-height:44px}
.phone-field span{padding:0 10px;color:var(--mint);border-right:1px solid var(--line)}
.phone-field input{background:none;border:0}
.auth-divider{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:12px;margin:14px 0 10px}
.auth-divider::before,.auth-divider::after{content:"";height:1px;background:var(--line);flex:1}
.provider{display:flex;align-items:center;gap:10px;text-align:left}
.provider-mark{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#f6f8fa;color:#182127;font:850 15px/1 "DM Sans",sans-serif}
.provider-mark.google{color:#2257bf}.provider-mark.facebook{color:#1261de}.provider-mark.apple{color:#141414}
.provider-mark svg{width:15px;height:15px;fill:currentColor;stroke:none}
.otp-input{font-weight:750;letter-spacing:.4em;text-align:center;font-size:21px}
#toast{position:fixed;z-index:5;left:50%;bottom:calc(var(--outer) + var(--bottom) + 12px);transform:translate(-50%,10px);opacity:0;pointer-events:none;background:var(--mint);color:var(--ink);border-radius:999px;padding:8px 13px;font-size:13px;font-weight:750;width:max-content;max-width:calc(100% - 28px);text-align:center;transition:opacity .18s,transform .18s}
#toast.visible{opacity:1;transform:translate(-50%,0)}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.sheet-body{animation:backdrop-in .22s var(--ease) both}
.topbar{gap:9px;padding-inline:12px}
.brand{gap:6px;flex:none}
.wordmark{font-size:19px}
.wordmark span{color:inherit}
#search-form{min-width:0;flex:1;display:flex;align-items:center;gap:5px;position:relative}
#search-icon{position:absolute;z-index:1;left:8px;pointer-events:none;color:#dadada}
#search-icon svg{width:16px;height:16px}
#top-search{height:36px;padding:4px 7px 4px 28px;border:1px solid #ffffff32;border-radius:8px;background:#131313b8;color:#fff;font-size:16px}
#top-search::placeholder{font-size:11px;color:#e2e2e2}
.language{background:transparent;padding:4px 7px;border:0;backdrop-filter:none}
.app[data-view=search] .brand .wordmark{display:none}
.reel-creator{display:flex;align-items:center;gap:8px}
.reel-creator .creator-avatar{width:33px;height:33px;font-size:11px}
.reel-creator .post-author strong{font-size:13px;text-shadow:0 1px 5px #000}
.reel-creator .post-author small{display:none}
.reel-creator .follow-button{min-height:31px;color:#161616;background:#f5f5f5;border-color:transparent}
.reel-creator .follow-button[aria-pressed=true]{background:#242424bb;color:#fff;border-color:#fff6}
.community-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:9px;margin-bottom:13px}
.community-head .screen-title{margin:0}
.segmented{display:flex;gap:4px;padding:3px;border:1px solid #ffffff25;border-radius:13px;background:#222}
.filter-button{padding:5px 10px;min-height:32px;border-radius:9px;font-size:11px;font-weight:750;color:#ddd;white-space:nowrap}
.filter-button[aria-pressed=true]{background:#f4f4f4;color:#111}
.creator-row{display:flex;gap:9px;overflow-x:auto;padding:2px 0 12px;scrollbar-width:thin}
.creator-chip{flex:1 0 69px;display:grid;justify-items:center;align-content:start;gap:5px;padding:3px 2px;color:#eee;min-width:0;font-size:10px;font-weight:700;text-align:center}
.creator-chip>span:last-child{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.creator-avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;flex:none;color:#171029;font:850 12px/1 "DM Sans",system-ui,sans-serif;border:1px solid #ffffff55}
.creator-chip .creator-avatar{width:50px;height:50px;font-size:15px;box-shadow:0 0 0 2px #ffffff20}
.creator-avatar.violet{background:linear-gradient(145deg,#ecb6ff,#b2a0ff)}
.creator-avatar.rose{background:linear-gradient(145deg,#ffd599,#ff9ebb)}
.creator-avatar.blue{background:linear-gradient(145deg,#9bf9f1,#82a5ff)}
.creator-avatar.lime{background:linear-gradient(145deg,#e6ff89,#8af0c4)}
.creator-avatar.own{background:linear-gradient(145deg,#a4b5ff,#baecff)}
.creator-avatar svg{width:18px;height:18px}
.post-list{display:grid;gap:12px;margin-top:2px}
.post-card{overflow:hidden;border:1px solid var(--line);border-radius:10px;background:#191919}
.post-header{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:10px 10px 4px}
.post-author{display:flex;align-items:center;gap:7px;text-align:left;padding:0;min-width:0}
.post-author>span:last-child{min-width:0;display:grid;gap:0}
.post-author strong,.post-author small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.post-author strong{font-size:13px;line-height:1.35}
.post-author small{font-size:10px;color:var(--muted)}
.post-header-actions{display:flex;align-items:center;gap:4px;flex:none}
.post-header-actions .round{width:30px;height:32px;border:0;background:transparent}
.follow-button{min-height:32px;padding:4px 8px;border:1px solid #ffffff35;border-radius:999px;background:#ffffff09;color:#f5f5f5;font-size:10px;font-weight:800;white-space:nowrap}
.follow-button[aria-pressed=true]{background:#eee;color:#171717}
.post-copy{padding:6px 11px 10px}
.post-copy h2{font-size:16px;line-height:1.45}
.post-body{font-size:13px;line-height:1.55;margin-top:3px;color:#dedede;overflow-wrap:anywhere}
.post-media{display:block;position:relative;width:100%;padding:0;overflow:hidden;background:#202020}
.post-media img,.post-media video{display:block;width:100%;aspect-ratio:1.55;object-fit:cover}
.post-play,.media-label{position:absolute;background:#151515b0;backdrop-filter:blur(7px)}
.post-play{left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:46px;height:46px;border-radius:50%;border:1px solid #ffffff60}
.post-play svg{fill:white}
.media-label{top:8px;right:8px;border-radius:8px;padding:4px 7px;font-size:10px;font-weight:800}
.post-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:2px;padding:6px}
.post-actions .action{display:flex;align-items:center;justify-content:center;gap:4px;min-height:36px;text-shadow:none;font-size:10px;color:#eaeaea;border-radius:9px}
.post-actions .action:hover{background:#ffffff13}
.post-actions .round{width:24px;height:24px;border:0;background:transparent;color:inherit;backdrop-filter:none}
.post-actions .round svg{width:16px;height:16px}
.post-actions .reaction-symbol{font-size:15px}
.post-actions .action[aria-pressed=true]{color:#f7f7f7;background:#ffffff1c}
.post-actions .action[aria-pressed=true] .round{background:transparent;color:inherit}
.creator-profile{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.creator-profile p{color:var(--muted);font-size:12px}
.creator-profile .follow-button{margin-left:auto}
.search-results{display:grid;gap:7px}
.result-card{width:100%;display:flex;align-items:center;gap:10px;text-align:left;background:#222;border:1px solid var(--line);border-radius:12px;padding:7px}
.result-card:hover{background:#303030}
.result-thumb{width:61px;height:47px;object-fit:cover;border-radius:7px;flex:none}
.text-preview{display:grid;place-items:center;background:#383838;color:#fff}
.result-card strong,.result-card small{display:block;overflow-wrap:anywhere}
.result-card strong{font-size:13px}
.result-card small{font-size:11px;color:var(--muted)}
.topics{display:flex;gap:6px;flex-wrap:wrap}
.topic{border-radius:999px;padding:7px 10px;font-size:12px;font-weight:800;color:#ededed;background:#292929}
.profile-tabs{margin:13px 0 10px;display:inline-flex}
@media(max-width:355px){.wordmark{font-size:16px}.topbar{gap:5px;padding-inline:8px}.brand-mark{width:25px;height:25px}.creator-chip{flex-basis:62px}.post-actions .action{gap:2px}}

#reel-tools{display:flex;gap:1px}
#reel-tools .round,.actions .round{border:0;background:transparent;backdrop-filter:none}
#reel-tools .round{width:36px;height:44px}
#reel-tools .round svg{width:21px;height:21px;filter:drop-shadow(0 1px 3px #000a)}
.actions .action{gap:1px}
.actions .round{height:37px}
.actions .round svg{width:25px;height:25px;filter:drop-shadow(0 1px 3px #000b)}
.actions .action[aria-pressed=true] .round{background:transparent;color:#fff}
.actions .reaction-symbol{text-shadow:0 1px 4px #0009}
#reel-language{display:flex;align-items:center;justify-content:center;gap:8px}
#reel-language svg{width:17px;height:17px}
.post-credit{font-size:13px;padding:4px}
@media(max-width:355px){#reel-tools .round{width:31px}#top-search::placeholder{font-size:10px}}
@media(max-height:610px){.actions{gap:4px;bottom:15px}.caption{bottom:15px}}
