*{box-sizing:border-box}
:root{color-scheme:dark;--bg:#000000;--panel:#101010;--line:#292929;--text:#ffffff;--muted:#c7c7c7;--accent:#be9aff;font-family:Inter,system-ui,sans-serif;color:var(--text);background:var(--bg)}
body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}button,a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}a{text-decoration:none}[hidden]{display:none!important}
.shell{display:grid;grid-template-columns:230px minmax(0,1fr);max-width:1550px;margin:auto;min-height:100dvh;padding-right:24px;gap:26px}
.sidebar{position:sticky;top:0;height:100dvh;display:flex;flex-direction:column;border-right:1px solid var(--line);padding:30px 17px 22px}
.brand{display:flex;align-items:center;gap:10px;font-size:1.35rem;font-weight:850;letter-spacing:-.065em;margin:0 0 47px 8px}.accent{color:var(--accent)}.mark{display:grid;place-items:center;width:35px;height:35px;border-radius:11px;background:var(--accent);color:#10051e;font-size:14px;letter-spacing:0}
.nav-label,.eyebrow{color:var(--muted);font-size:.73rem;font-weight:750;letter-spacing:.13em}.nav-label{margin:0 0 12px 12px}nav{display:grid;gap:7px}nav button,.account{display:flex;align-items:center;gap:11px;width:100%;border:1px solid transparent;background:transparent;color:var(--muted);text-align:left;padding:12px 10px;border-radius:11px;font-size:.9rem;font-weight:650}
nav button:hover,.account:hover,.secondary:hover,.icon-button:hover{background:#191919;color:var(--text)}nav button.active{background:#210d37;border-color:#52317c;color:var(--accent)}.account{margin-top:auto;border-color:var(--line)}
i{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}svg{width:21px;height:21px;display:block}
main{min-width:0}.top{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:26px 0 20px;border-bottom:1px solid var(--line)}h1,h2,p{margin:0}h1{font-size:clamp(1.7rem,3.5vw,2.6rem);line-height:1.12;letter-spacing:-.055em;margin-top:4px}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 15px;border-radius:10px;font-weight:750;border:1px solid transparent}.primary{background:var(--accent);color:#130522}.primary:hover{background:#d9cbff}.secondary{background:var(--panel);border-color:var(--line)}
.info{align-self:start;margin-top:111px;background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:18px}.info-title{font-weight:800;display:flex;gap:9px;align-items:center}.pulse{display:block;width:9px;height:9px;border-radius:50%;background:var(--accent)}.info p{margin-top:10px;color:var(--muted);font-size:.9rem;line-height:1.6}
.clip{height:100%;scroll-snap-align:start;scroll-snap-stop:always;display:grid;place-items:center;overflow:hidden}.frame{position:relative;width:min(100%,56.25cqh);height:100%;overflow:hidden;background:#000;border-radius:16px}.frame video{width:100%;height:100%;object-fit:cover;display:block;cursor:pointer}.frame .shade{pointer-events:none;position:absolute;inset:0;background:linear-gradient(0deg,#000d,transparent 29%),linear-gradient(270deg,#0007,transparent 30%)}.creator{position:absolute;bottom:22px;left:14px;right:76px;display:grid;gap:8px;pointer-events:none;color:#fff;text-shadow:0 1px 5px #000}.creator button{pointer-events:auto;justify-self:start}.creator p{overflow-wrap:anywhere;white-space:pre-wrap;max-height:5rem;overflow:auto;pointer-events:auto}.author{display:inline-flex;align-items:center;gap:9px;text-align:left;background:none;border:0;padding:0;font-weight:750}.author small{display:block;color:#ededed;font: .78rem system-ui}.avatar{width:37px;height:37px;border-radius:50%;background:#4b217c;color:#ffffff;display:inline-grid;place-items:center;object-fit:cover;flex-shrink:0}.controls{position:absolute;right:9px;bottom:22px;display:grid;gap:12px;justify-items:center}.controls button{display:grid;min-width:56px;place-items:center;gap:3px;background:transparent;border:0;padding:0;color:#fff;text-shadow:0 1px 5px #000;font-size:.72rem;font-weight:650}.controls i,.icon-button{display:grid;place-items:center;width:43px;height:43px;border:1px solid var(--line);border-radius:50%;background:var(--panel);color:var(--text)}.controls i{background:#000b;border-color:#ffffff40}.controls button:hover i,.controls .selected i{background:#321653;color:var(--accent)}.controls .selected svg{fill:currentColor}
.frame-tools{position:absolute;top:10px;right:10px;display:flex;gap:5px}.frame-tools .icon-button{background:#000000dc}.progress{position:absolute;inset:auto 0 2px;width:100%;height:5px;margin:0;accent-color:var(--accent)}
.empty{min-height:100%;display:grid;place-items:center;padding:24px}.empty-card{width:min(100%,500px);text-align:center;border:1px solid #452668;border-radius:27px;padding:45px 24px;background:radial-gradient(ellipse at top,#2b1144 0%,#100916 46%,#0c0c0c 85%)}.empty-card>i{color:var(--accent);width:60px;height:60px;background:#351757;border-radius:19px;margin-bottom:17px}.empty-card>i svg{width:30px;height:30px}.empty-card p{line-height:1.65;color:var(--muted);margin:12px auto 20px;max-width:34ch}
#profile{padding:15px 0}.banner{height:clamp(90px,19vw,180px);width:100%;background:linear-gradient(115deg,#503f78,#1d182b);border-radius:16px;object-fit:cover}.profile-row{display:flex;align-items:center;gap:12px;padding:12px 0}.profile-row .avatar{width:54px;height:54px}.profile-row p{color:var(--muted);font-size:.88rem}.profile-row>.secondary{margin-left:auto}
.font-serif{font-family:Georgia,serif}.font-mono{font-family:Consolas,monospace}.font-rounded{font-family:'Trebuchet MS',sans-serif}.font-sans{font-family:system-ui,sans-serif}
dialog{width:min(92vw,490px);max-height:86dvh;overflow:auto;border:1px solid #39244e;border-radius:19px;background:#101010;padding:21px;color:var(--text)}dialog::backdrop{background:#000000aa;backdrop-filter:blur(5px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.dialog-head .icon-button{width:33px;height:33px}.stack{display:grid;gap:12px}.stack label{display:grid;gap:6px;font-weight:650}.stack input,.stack textarea,.stack select{width:100%;border:1px solid var(--line);background:#000000;border-radius:8px;color:var(--text);padding:10px}.stack textarea{resize:vertical}.hint,.comment p,.error{overflow-wrap:anywhere}.hint{color:var(--muted);font-size:.9rem}.error{color:#ffb3c1}.comment{display:grid;gap:8px;padding:10px 0;border-top:1px solid var(--line)}.comment p{white-space:pre-wrap}.comment-list{max-height:36dvh;overflow:auto;margin-bottom:12px}
#toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);z-index:5;background:#33174d;border-radius:10px;padding:10px 16px;color:var(--text);max-width:90vw}#toast:empty{display:none}
@media(max-width:1100px){.shell{grid-template-columns:195px minmax(0,1fr)}.info{display:none}}



html,body{height:100%;overflow:hidden}
.shell{height:100dvh;min-height:0}
main{height:100%;min-height:0;display:flex;flex-direction:column}
.top,#profile{flex:none}
#feed{container-type:size;flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;scroll-snap-type:y mandatory;scrollbar-width:none;outline-offset:-3px}
#feed::-webkit-scrollbar{display:none}
.feed-end{height:100%;scroll-snap-align:start;scroll-snap-stop:always;display:grid;place-items:center;text-align:center;padding:24px}
.feed-end>div{display:grid;gap:14px;justify-items:center}
@media(max-width:650px){
  .shell{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:0;padding:0}
  main{grid-row:1}
  .sidebar{position:static;grid-row:2;width:100%;height:auto;min-height:58px;z-index:3;background:#090909;border-top:1px solid var(--line);border-right:0;padding:4px 4px max(4px,env(safe-area-inset-bottom));display:flex;flex-direction:row;align-items:center}
  .brand,.nav-label,.eyebrow{display:none}
  .sidebar nav{display:flex;flex:1;justify-content:space-around;min-width:0;gap:0}
  .sidebar nav button,.account{width:auto;min-width:0;min-height:44px;display:grid;place-content:center;justify-items:center;gap:3px;padding:4px;font-size:clamp(.53rem,2.25vw,.69rem);text-align:center}
  .account{margin:0;max-width:74px}
  .account span:last-child{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .account .avatar{width:21px;height:21px;font-size:.72rem}
  .sidebar svg{width:19px;height:19px}
  .top{min-height:53px;padding:6px 12px;gap:8px}
  .top h1{margin:0;font-size:1.38rem}
  .top .primary{padding:7px 10px;font-size:.83rem}
  .frame{width:100%;border-radius:0}
  .controls{right:max(7px,env(safe-area-inset-right));gap:10px}
  .controls i{width:43px;height:43px}
  #profile{padding:8px 10px}
  #profile .banner{height:clamp(42px,12vh,85px)}
  .profile-row{flex-wrap:wrap;gap:7px;padding:6px 0 0}
  .profile-row .secondary{font-size:.75rem;padding:7px}
  .profile-row .avatar{width:39px;height:39px}
  #toast{bottom:calc(64px + env(safe-area-inset-bottom))}
}
@media(max-height:480px){
  .controls{gap:4px;bottom:10px}
  .controls i{width:33px;height:33px}
  .creator{bottom:10px}
}

@font-face{
  font-family:"Outfit";
  src:url("/fonts/outfit.woff2") format("woff2");
  font-style:normal;
  font-weight:100 900;
  font-display:swap;
}
:root{font-family:"Outfit",system-ui,sans-serif}
.top-heading{display:flex;align-items:center;gap:10px;min-width:0}
.top-heading>div{min-width:0}
.top-heading h1{letter-spacing:-.035em;font-weight:750;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#back{flex:none;width:42px;height:42px}
.top .primary{flex:none}
.font-sans,.author small{font-family:inherit}
.account{min-width:0}
.account span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.crop-preview{width:min(100%,260px);height:auto;aspect-ratio:1;display:block;justify-self:center;border-radius:50%;outline:1px solid var(--accent);background:#000;touch-action:none;cursor:grab}
.crop-preview:active{cursor:grabbing}
.stack input[type="range"]{accent-color:var(--accent)}
.stack input[type="color"]{height:48px;padding:4px}
.banner-settings{padding-top:14px;border-top:1px solid var(--line)}
.profile-view{overflow:auto;scrollbar-width:none}
.profile-view::-webkit-scrollbar{display:none}
.profile-view #feed{container-type:normal;flex:none;min-height:0;overflow:visible;scroll-snap-type:none}
.profile-view #feed>.empty{min-height:220px}
.profile-videos{padding:14px 0 30px;border-top:1px solid var(--line)}
.profile-videos h2{font-size:1.15rem;margin-bottom:13px}
.video-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(135px,1fr));gap:17px 10px}
.video-tile{min-width:0;display:grid;gap:6px;font-size:.88rem;font-weight:650}
.tile-preview{position:relative;aspect-ratio:9/14;overflow:hidden;border-radius:10px;background:#130b20}
.tile-preview video{width:100%;height:100%;object-fit:cover;pointer-events:none}
.tile-preview i,.tile-duration{position:absolute;bottom:7px;background:#000b;color:#fff;border-radius:5px}
.tile-preview i{left:7px;padding:3px}
.tile-preview i svg{width:17px;height:17px}
.tile-duration{right:7px;padding:3px 5px;font-size:.7rem}
.tile-caption{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tile-views{color:var(--muted);font-size:.75rem;font-weight:450;margin-top:-3px}
.video-tile:hover .tile-caption{color:var(--accent)}
@media(max-width:650px){
  .sidebar{position:relative}
  .sidebar::before{content:"";position:absolute;inset:auto 0 100%;height:17px;background:linear-gradient(transparent,#0009);pointer-events:none}
  .profile-view{padding-bottom:10px}
  .profile-videos{padding-inline:10px}
  .video-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 6px}
  .tile-preview{border-radius:7px}
  .tile-caption{font-size:.78rem}
}

@font-face{
  font-family:"Barlow Semi Condensed";
  src:url("/fonts/barlow-semi-condensed.woff2") format("woff2");
  font-style:normal;
  font-weight:600;
  font-display:swap;
}
.sidebar nav button span{
  font-family:"Barlow Semi Condensed","Arial Narrow",sans-serif;
  font-size:1rem;
  font-weight:600;
  line-height:1.1;
  letter-spacing:.015em;
}
@media(max-width:650px){
  .sidebar nav{display:grid;grid-template-columns:.8fr 1fr .95fr 1.1fr;gap:3px;margin-right:5px}
  .sidebar nav button{width:100%;padding-inline:1px;gap:4px}
  .sidebar nav button span{font-size:clamp(.66rem,3.05vw,.84rem);letter-spacing:0}
}

/* Shared surfaces for publication, discussion and profile settings. */
dialog{background:linear-gradient(150deg,#21182d,#101012 45%);border-color:#45364e;padding:22px;box-shadow:0 24px 80px #000a}
.dialog-head{border-bottom:1px solid #ffffff18;padding-bottom:14px}
.dialog-head h2,.profile-videos h2{letter-spacing:-.035em}
.stack label{font-size:.92rem;gap:8px}
.stack input,.stack textarea,.stack select{background:#0a090c;border-color:#403748;border-radius:12px;padding:12px}
.stack input[type=file]{padding:18px 12px;border:1px dashed #836391;background:#201629}
.stack input::file-selector-button{background:#39284a;border:0;border-radius:7px;color:white;padding:8px;margin-right:8px}
#dialog-body>.stack>form+.stack{border-top:1px solid var(--line);padding-top:18px}
.comment-list{max-height:45dvh;display:grid;gap:8px;margin-bottom:18px}
.comment{background:#211c26;border:0;border-radius:14px;padding:12px}
.comment p{padding-left:46px}
.clip-title{font-size:1.15rem;overflow-wrap:anywhere}
.clip-tag{color:#e7caff;font-weight:650}
.profile-row{background:#131016;border-radius:14px;padding:12px}
.info{background:linear-gradient(145deg,#211629,#101010)}
.primary{background:linear-gradient(125deg,#dec6ff,#ac85ed)}
@media(max-width:650px){
  dialog{margin:auto 0 0;width:100%;max-width:100%;max-height:90dvh;border-radius:22px 22px 0 0;padding:20px 18px max(18px,env(safe-area-inset-bottom))}
  .profile-row{padding:10px}
}

/* Surfaces tonales et navigation flottante */
:root{--panel:#201e25;--line:#49454f;--text:#f4eff8;--muted:#ccc4d2;--accent:#d0bcff}
.top{position:relative;display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:4px;padding:6px 9px;margin:10px 0;border:0;border-radius:24px;background:#323038;color:var(--text)}
.top-heading{grid-column:2;grid-row:1;justify-content:center}
.top-heading .eyebrow{display:none}
.top-heading h1{margin:0;font-size:1.12rem;font-weight:520;letter-spacing:.005em}
#publish,#search{grid-row:1;width:44px;height:44px;background:transparent;border:0}
#publish{grid-column:1}
#search{grid-column:3}
.top:has(#back:not([hidden])) #publish{display:none}
#back{position:absolute;left:9px;top:50%;transform:translateY(-50%);background:transparent;border:0}
#back:hover,#publish:hover,#search:hover{background:#49454f}
.frame .shade{inset:0;background:linear-gradient(to top,rgba(12,9,15,.93),rgba(12,9,15,.69) 11%,rgba(12,9,15,.24) 26%,transparent 44%),linear-gradient(to bottom,#15121b55,transparent 20%)}
.controls i,.frame-tools .icon-button{background:#242127dd;color:#faf4ff;border:0}
.controls button.selected i{background:#4c3d63;color:#eaddff}
dialog,.info,.profile-row,.empty-card{background:#242128;border:1px solid #45404b;border-radius:26px}
.primary{background:#d0bcff;color:#261440;border-radius:24px}
.secondary,.search-results button{border-radius:20px;background:#37323d;border-color:transparent}
.stack input,.stack textarea,.stack select,.comment{background:#302c34;border-radius:14px}
.search-results{display:grid;gap:6px;margin-top:12px}
.search-results button{text-align:left;justify-content:flex-start}
@media(max-width:650px){
  .shell{display:block}
  main{height:100dvh}
  .top{flex:none;margin:6px 7px 4px;padding:2px 7px;min-height:48px;border-radius:21px;z-index:1}
  .top-heading h1{font-size:clamp(.91rem,4.25vw,1.14rem)}
  .sidebar{position:fixed;inset:auto auto max(9px,env(safe-area-inset-bottom)) 50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 24px);min-height:52px;height:auto;padding:4px 7px;border:1px solid #ffffff1f;border-radius:50px;background:#242127f2;box-shadow:0 4px 16px #0007;backdrop-filter:blur(14px)}
  .sidebar::before{display:none}
  .sidebar nav{display:flex;flex:none;gap:1px;margin:0}
  .sidebar nav button,.sidebar .account{min-width:44px;width:44px;height:44px;padding:0;display:grid;place-items:center;border:0;border-radius:50%;color:#ede7f2}
  .sidebar nav button.active{background:#493d58;color:#eaddff}
  .sidebar nav button span,.sidebar .account span:last-child{position:absolute;overflow:hidden;width:1px;height:1px;clip-path:inset(50%)}
  .sidebar .account .avatar{width:29px;height:29px}
  .sidebar svg{width:21px;height:21px}
  .creator{bottom:84px}
  .controls{top:50%;bottom:auto;transform:translateY(-50%);gap:7px}
  .controls i{width:38px;height:38px;border-radius:16px}
  .progress{bottom:0}
  .profile-view{padding-bottom:82px}
  .profile-view .top{position:sticky;top:5px}
  dialog{border-radius:26px 26px 0 0}
  .feed-end,.empty{padding-bottom:80px}
}

.header-logo{width:24px;height:24px;vertical-align:middle;object-fit:contain}
.controls{top:50%;bottom:auto;right:7px;transform:translateY(-50%);gap:7px}
.controls button{min-width:48px;min-height:48px}
.controls i{width:47px;height:47px;border-radius:19px}
.controls button span{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
.controls button:first-child span{position:static;clip-path:none;width:auto;height:auto}
main:not(.profile-view){position:relative}
main:not(.profile-view) .top{position:absolute;inset:0 0 auto;z-index:2;background:#302e38e8;backdrop-filter:blur(14px)}
#profile{padding:0}
#profile .banner{display:block;border-radius:0}
#profile .profile-row{border-radius:0;margin:0;padding:12px 14px}
.font-outfit{font-family:Outfit,sans-serif}.font-barlow{font-family:"Barlow Semi Condensed",sans-serif}.font-classic{font:italic 700 1em Georgia,serif}.font-typewriter{font-family:"Courier New",monospace;font-weight:bold}
.tag-options,.page-controls,.gif-palette{display:flex;flex-wrap:wrap;gap:6px}
.tag-options button{padding:4px 9px;font-size:.82rem}
.comment-composer{display:grid;grid-template-columns:32px minmax(0,1fr) 36px 38px;align-items:center;gap:5px}
.comment-composer .avatar{width:32px;height:32px}
.comment-composer input{font:inherit;min-width:0;border:1px solid var(--line);background:#29252c;border-radius:20px;padding:8px 10px}
.comment-composer button{width:36px;height:36px}
.comment-composer button:last-child{background:var(--accent);color:#20152a}
.gif-palette img{width:60px}.reaction-gif{margin-left:44px;width:112px}
@media(max-width:650px){.profile-view{margin-inline:0}.controls i{width:46px;height:46px}}
@media(min-width:651px){
  .shell{column-gap:0;max-width:none;padding-right:0}
  .top,.profile-videos{padding-inline:14px}
}

.profile-row>.secondary+.secondary{margin-left:0}
.profile-row:has(.secondary+.secondary){column-gap:5px}
.controls .comment-count span{position:static;clip-path:none;width:auto;height:auto}
.comment-actions{display:flex;gap:6px;padding-left:46px}
.comment-actions button{font-size:.8rem;padding:5px 9px}
.gif-palette small{flex-basis:100%}

.gif-palette input{width:100%;border-radius:16px;padding:8px 12px;background:var(--panel);color:var(--text);border:1px solid var(--line)}
.gif-grid{display:flex;flex-wrap:wrap;align-content:flex-start;align-items:flex-start;width:100%;min-width:0;gap:6px;max-height:32dvh;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}
.gif-grid button{padding:2px;overflow:hidden}
.gif-grid img{width:100%;height:64px;object-fit:cover}
.comment-draft{display:flex;align-items:center;gap:6px}
.comment-draft:not(:empty){margin-bottom:8px}
.draft-gif img{width:46px;height:36px;object-fit:cover}

@media(min-width:651px){
  .top{margin:0;border-radius:0}
  .frame .controls{
    top:auto;right:12px;bottom:18px;transform:none;
    display:flex;align-items:flex-start;gap:5px
  }
  .frame .controls button{
    min-width:36px;
    grid-template-rows:36px 1em;
    align-content:start;
  }
  .frame .controls i{width:36px;height:36px;border-radius:15px}
  .frame .creator{bottom:20px;right:176px;gap:4px;overflow-wrap:anywhere}
  .feed-end:has(.page-controls:empty){display:none}
  .feed-end h2,.feed-end .page-controls+button{display:none}
}
@media(min-width:651px) and (max-height:560px){
  .frame .creator{bottom:68px;right:14px}
}
.gif-grid button:has(img){position:relative;display:block;flex:0 0 calc((100% - 12px)/3);width:auto;height:auto;aspect-ratio:1;padding:0;overflow:hidden;border-radius:12px}
.gif-grid button img,.comment .reaction-gif,.draft-gif img{display:block;height:auto;aspect-ratio:1;object-fit:contain;background:#19161d}
.gif-grid button img{position:absolute;inset:0;width:100%;height:100%}.gif-grid button:not(:has(img)){flex-basis:100%}
.comment .reaction-gif{width:min(148px,65%)}
.draft-gif img{width:52px}
