
:root{
  --red:#ed1111;
  --ink:#101219;
  --soft:#f7f7f8;
  --line:#ececf0;
  --muted:#747985;
  --card:#fffffff2;
}
*{box-sizing:border-box}
html,body{margin:0;height:100%;background:#fff;color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
body{overflow:hidden}
button,input,textarea{font:inherit}
button{cursor:pointer}
.topbar{
  position:fixed;
  top:0;left:0;right:0;
  height:108px;
  padding:26px max(22px,env(safe-area-inset-left)) 18px;
  z-index:20;
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:linear-gradient(180deg,#fff 78%,rgba(255,255,255,.86));
  border-bottom:1px solid rgba(0,0,0,.04);
}
.brand img{width:245px;max-width:70vw;display:block}
.hamburger{
  border:0;
  background:#fff;
  color:#168ae6;
  font-size:32px;
  line-height:1;
  padding:8px 4px;
}
.feed{
  height:100dvh;
  overflow-y:auto;
  scroll-snap-type:y mandatory;
  -webkit-overflow-scrolling:touch;
}
.shot{
  min-height:100dvh;
  scroll-snap-align:start;
  position:relative;
  padding-top:108px;
  background:#fff;
}
.shot-media{
  margin:0;
  height:calc(100dvh - 108px);
  background:#05070c;
  position:relative;
  overflow:hidden;
}
.shot-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.shot-media:after{
  content:"";
  position:absolute;
  inset:45% 0 0;
  background:linear-gradient(180deg,transparent,rgba(0,0,0,.52) 58%,rgba(0,0,0,.72));
  pointer-events:none;
}
.side-actions{
  position:absolute;
  right:14px;
  bottom:230px;
  display:flex;
  flex-direction:column;
  gap:14px;
  z-index:5;
}
.side-actions button{
  width:54px;height:54px;
  border:0;border-radius:18px;
  color:#fff;
  background:rgba(0,0,0,.38);
  backdrop-filter:blur(12px);
  font-size:24px;
  box-shadow:0 12px 36px rgba(0,0,0,.22);
}
.side-actions span{
  display:block;
  font-size:10px;
  text-transform:uppercase;
  font-weight:900;
  margin-top:1px;
}
.caption-card{
  position:absolute;
  left:14px;
  right:78px;
  bottom:92px;
  z-index:6;
  background:var(--card);
  color:var(--ink);
  border-radius:30px 30px 12px 12px;
  padding:18px 18px 16px;
  box-shadow:0 22px 70px rgba(0,0,0,.22);
  backdrop-filter:blur(18px);
}
.runner-row{display:flex;gap:12px;align-items:center;margin-bottom:10px}
.runner-avatar{
  width:42px;height:42px;
  border-radius:12px;
  display:grid;place-items:center;
  color:#fff;
  font-weight:1000;
  background:linear-gradient(135deg,#171a24,#343b4a);
  box-shadow:inset 0 0 0 2px #fff,0 0 0 1px #d9dce4;
}
.runner-row strong{display:block;text-transform:uppercase;font-size:13px;letter-spacing:.08em}
.runner-row span{display:block;color:var(--muted);font-size:12px;margin-top:2px}
h1{
  margin:0 0 8px;
  font-size:clamp(30px,8vw,52px);
  line-height:.96;
  letter-spacing:-.04em;
}
.caption-card p{margin:0;color:#363b46;line-height:1.42;font-size:15px}
.tags{display:flex;flex-wrap:wrap;gap:7px;margin-top:13px}
.tags span{
  border-radius:999px;
  padding:7px 10px;
  background:#eef0f5;
  color:#2f3440;
  font-size:12px;
  font-weight:800;
}
details{margin-top:11px}
summary{
  color:var(--red);
  font-size:12px;
  text-transform:uppercase;
  font-weight:1000;
  letter-spacing:.1em;
}
details p{margin-top:8px;font-size:13px;color:#4e5360}
.bottom-nav{
  position:fixed;
  left:0;right:0;bottom:0;
  z-index:30;
  height:82px;
  padding:8px 12px max(8px,env(safe-area-inset-bottom));
  display:grid;
  grid-template-columns:1fr 1fr 74px 1fr 1fr;
  align-items:center;
  background:rgba(255,255,255,.94);
  border-top:1px solid var(--line);
  backdrop-filter:blur(20px);
}
.bottom-nav a{
  text-align:center;
  text-decoration:none;
  color:#141820;
  font-size:22px;
}
.bottom-nav a span{
  display:block;
  margin-top:2px;
  font-size:10px;
  text-transform:uppercase;
  font-weight:1000;
  letter-spacing:.06em;
}
.bottom-nav a.active{color:var(--red)}
.bottom-nav button{
  width:64px;height:64px;
  border:0;border-radius:50%;
  background:var(--red);
  color:#fff;
  font-size:42px;
  line-height:0;
  box-shadow:0 12px 38px rgba(237,17,17,.32);
}
.empty-shot{
  display:grid;
  place-items:center;
  padding:108px 24px 96px;
  background:linear-gradient(180deg,#fff,#f6f7fa);
}
.empty-panel{
  max-width:560px;
  text-align:center;
  border:1px solid var(--line);
  background:#fff;
  border-radius:28px;
  padding:38px 24px;
  box-shadow:0 24px 80px rgba(10,12,18,.08);
}
.empty-panel img{width:250px;max-width:82%;margin-bottom:20px}
.empty-panel h2{font-size:34px;line-height:1;margin:0 0 12px}
.empty-panel p{color:var(--muted);font-size:16px;line-height:1.5}
.empty-panel button,.publish{
  border:0;
  background:var(--red);
  color:#fff;
  height:54px;
  border-radius:999px;
  padding:0 24px;
  text-transform:uppercase;
  font-weight:1000;
  letter-spacing:.08em;
}
dialog{
  border:0;
  border-radius:28px;
  width:min(92vw,520px);
  padding:28px;
  box-shadow:0 34px 120px rgba(0,0,0,.32);
}
dialog::backdrop{background:rgba(0,0,0,.48);backdrop-filter:blur(5px)}
.close{
  position:absolute;right:14px;top:12px;
  width:36px;height:36px;
  border:0;border-radius:50%;
  background:#f1f2f5;
  font-size:24px;
}
dialog h2{font-size:34px;margin:0 0 8px}
.muted{color:var(--muted)}
label{
  display:block;
  margin-top:16px;
  text-transform:uppercase;
  font-size:12px;
  letter-spacing:.08em;
  font-weight:1000;
}
input,textarea{
  margin-top:8px;
  width:100%;
  padding:14px;
  border:1px solid var(--line);
  background:#f7f8fa;
}
textarea{min-height:100px;resize:vertical}
.publish{width:100%;margin-top:22px}
@media (min-width: 820px){
  body{overflow:auto;background:#f4f5f7}
  .topbar{
    position:sticky;
    height:116px;
    padding:28px 46px 20px;
  }
  .brand img{width:310px}
  .feed{
    height:auto;
    max-width:760px;
    margin:0 auto;
    overflow:visible;
    scroll-snap-type:none;
    background:#fff;
    box-shadow:0 28px 100px rgba(10,12,18,.14);
  }
  .shot{
    min-height:980px;
    padding-top:0;
  }
  .shot-media{height:980px}
  .caption-card{bottom:110px;left:22px;right:106px}
  .side-actions{right:24px;bottom:270px}
  .bottom-nav{
    left:50%;
    transform:translateX(-50%);
    max-width:760px;
  }
  .empty-shot{min-height:760px}
}
