/* Status: the row of circles at the top of Home, and the full-screen viewer.
   See status.js. */

/* ---- the row ---- */
.st-row{ display: flex; gap: 14px; margin: 0 -2px 14px; padding: 4px 2px 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.st-row::-webkit-scrollbar{ display: none; }
.st-row:empty{ display: none; }
.st-item{ flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 68px; padding: 0; border: none; background: none; font: inherit; color: var(--ink, #111); cursor: pointer; }
.st-item b{ max-width: 100%; font-size: 11.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The ring: the familiar warm gradient while there is something unseen, grey after. */
.st-ring{ position: relative; display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; background: conic-gradient(from 210deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75); }
.st-item.seen .st-ring{ background: #d1d1d6; }
.st-mine .st-ring{ background: none; }
.st-mine.has .st-ring{ background: #d1d1d6; }
.st-face{ display: block; width: 58px; height: 58px; border-radius: 50%; overflow: hidden; border: 3px solid var(--paper, #fff); box-sizing: content-box; background: #e5e5ea; }
.st-face img{ display: block; width: 100%; height: 100%; object-fit: cover; }
.st-face i{ display: grid; place-items: center; width: 100%; height: 100%; font-style: normal; font-size: 22px; font-weight: 600; color: #fff; }
.st-face.sm{ width: 34px; height: 34px; border: none; flex: none; }
.st-face.sm i{ font-size: 15px; }
.st-plus{ position: absolute; right: -1px; bottom: -1px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--paper, #fff); background: #0095f6; color: #fff; font-style: normal; font-size: 16px; font-weight: 700; line-height: 1; }

/* ---- the viewer ---- */
body.st-open{ overflow: hidden; }
.st-view{ position: fixed; inset: 0; z-index: 3000; background: #000; color: #fff; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; animation: st-in .18s ease-out both; }
@keyframes st-in{ from{ opacity: 0; transform: scale(.97); } }
@media (prefers-reduced-motion: reduce){ .st-view{ animation: none; } }
/* On a wide screen it is a phone-shaped column in the middle, as on the web. */
@media (min-width: 620px){
  .st-view{ display: grid; place-items: center; background: rgba(0,0,0,.92); }
  .st-view > .st-stage, .st-view > .st-top, .st-view > .st-foot, .st-view > .st-tap, .st-view > .st-sheet{ left: 50%; right: auto; width: min(420px, 100vw); margin-left: calc(min(420px, 100vw) / -2); }
  .st-view > .st-stage{ border-radius: 14px; top: 16px; bottom: 16px; }
  .st-view > .st-top{ top: 16px; }
  .st-view > .st-foot{ bottom: 16px; }
  .st-view > .st-tap.next{ margin-left: 0; left: 50%; width: calc(min(420px, 100vw) / 2); }
  .st-view > .st-tap.prev{ width: calc(min(420px, 100vw) / 3); }
}
.st-stage{ position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; }
.st-photo{ position: relative; max-width: 100%; max-height: 100%; object-fit: contain; }
/* A photo or video in the viewer cannot be pressed, held or dragged: taps go
   to the viewer itself, and there is no "save image" from a long press. */
.st-view:not(.st-compose) .st-stage img, .st-view:not(.st-compose) .st-stage video{ pointer-events: none; -webkit-touch-callout: none; -webkit-user-drag: none; user-select: none; }
.st-blur{ position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(34px) brightness(.55); }
.st-words{ position: relative; margin: 0; padding: 0 28px; max-width: 100%; text-align: center; font-size: 28px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; text-shadow: 0 1px 12px rgba(0,0,0,.18); }
.st-words.long{ font-size: 21px; }
.st-cap{ position: absolute; left: 0; right: 0; bottom: 74px; margin: 0; padding: 10px 20px; text-align: center; font-size: 16px; line-height: 1.35; background: rgba(0,0,0,.42); overflow-wrap: anywhere; }
.st-top{ position: absolute; top: 0; left: 0; right: 0; z-index: 3; padding: calc(8px + env(safe-area-inset-top)) 10px 18px; background: linear-gradient(rgba(0,0,0,.5), transparent); }
.st-bars{ display: flex; gap: 4px; }
.st-bars span{ flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255,255,255,.36); overflow: hidden; }
.st-bars i{ display: block; height: 100%; width: 0; background: #fff; }
.st-head{ display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.st-who{ flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.st-who b{ font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-who i{ font-style: normal; font-size: 13px; opacity: .78; }
.st-btn{ flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: none; border-radius: 50%; background: none; color: #fff; cursor: pointer; }
.st-btn svg{ width: 24px; height: 24px; }
/* Two invisible halves: left goes back, right goes on. */
.st-tap{ position: absolute; top: 90px; bottom: 80px; z-index: 2; padding: 0; border: none; background: none; }
.st-tap.prev{ left: 0; width: 34%; }
.st-tap.next{ right: 0; width: 66%; }
.st-foot{ position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0,0,0,.5)); }
.st-foot:empty{ display: none; }
.st-foot button{ display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border: none; border-radius: 20px; background: rgba(255,255,255,.18); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.st-foot svg{ width: 19px; height: 19px; }

/* ---- the small sheet over it ---- */
.st-sheet{ position: absolute; inset: 0; z-index: 5; display: flex; align-items: flex-end; background: rgba(0,0,0,.45); }
.st-sheet-in{ width: 100%; max-height: 70%; overflow-y: auto; padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; background: #fff; color: #111; }
.st-sheet h3{ margin: 8px 8px 6px; font-size: 16px; font-weight: 600; }
.st-opt{ display: block; width: 100%; min-height: 50px; padding: 0 12px; border: none; border-radius: 12px; background: none; font: inherit; font-size: 16px; text-align: center; color: #111; cursor: pointer; }
.st-opt.danger{ color: #e53935; font-weight: 600; }
.st-opt:active{ background: #f2f2f7; }
.st-seen-row{ display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 11px 8px; font-size: 15px; }
.st-seen-row b{ font-weight: 500; }
.st-seen-row i, .st-muted{ font-style: normal; font-size: 13px; color: #8e8e93; }
.st-muted{ margin: 12px 8px; }

/* ---- adding one ---- */
.st-write{ width: 100%; min-height: 40%; border: none; outline: none; resize: none; background: none; color: #fff; font-family: inherit; user-select: text; -webkit-user-select: text; }
.st-write::placeholder{ color: rgba(255,255,255,.72); }
.st-compose{ touch-action: auto; }
.st-foot.compose{ flex-wrap: nowrap; }
.st-dots{ display: flex; gap: 9px; }
.st-dots[hidden], .st-capin[hidden], .st-write[hidden]{ display: none; }
.st-dots button{ width: 28px; height: 28px; min-height: 0; padding: 0; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); }
.st-dots button.on{ border-color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.55); }
.st-capin{ flex: 1; min-width: 0; height: 42px; padding: 0 14px; border: none; border-radius: 21px; outline: none; background: rgba(255,255,255,.2); color: #fff; font: inherit; font-size: 15px; user-select: text; -webkit-user-select: text; }
.st-capin::placeholder{ color: rgba(255,255,255,.75); }
.st-foot .st-share{ flex: none; background: #fff; color: #111; padding: 0 20px; }
.st-foot .st-share:disabled{ opacity: .6; }

/* ---- a song with a status ---- */
/* The card in the viewer. Its picture is YouTube's own player, which is what plays the song. */
.st-song{ position: absolute; left: 12px; bottom: 78px; z-index: 4; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 24px); padding: 6px 14px 6px 6px; border: none; border-radius: 14px; background: rgba(0,0,0,.5); color: #fff; font: inherit; text-align: left; cursor: pointer; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.st-song[hidden], .st-pick[hidden]{ display: none; }
.st-song-pl{ position: relative; flex: none; width: 96px; height: 54px; border-radius: 9px; overflow: hidden; background: #111; }
.st-song-pl iframe, .st-song-yt{ position: absolute; left: 50%; top: 50%; width: 160px; height: 90px; transform: translate(-50%, -50%) scale(.6); border: 0; pointer-events: none; }
.st-song-txt{ min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.st-song-txt b{ font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-song-txt i{ font-style: normal; font-size: 12.5px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-song.tap::after{ content: "Tap for sound"; flex: none; margin-left: 4px; padding: 4px 9px; border-radius: 10px; background: #fff; color: #111; font-size: 11.5px; font-weight: 700; }
@media (min-width: 620px){ .st-view > .st-song{ left: calc(50% - min(420px, 100vw) / 2 + 12px); bottom: 94px; max-width: calc(min(420px, 100vw) - 24px); } }

/* Choosing one, when adding a status. */
.st-songs{ display: flex; flex-direction: column; gap: 8px; height: 72vh; max-height: 72%; }
.st-songs input{ flex: none; height: 44px; padding: 0 14px; border: none; border-radius: 12px; outline: none; background: #f2f2f7; font: inherit; font-size: 16px; color: #111; user-select: text; -webkit-user-select: text; }
.st-song-list{ flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.st-song-row{ display: flex; align-items: center; gap: 12px; width: 100%; padding: 7px 4px; border: none; border-radius: 10px; background: none; font: inherit; color: #111; text-align: left; cursor: pointer; }
.st-song-row:active{ background: #f2f2f7; }
.st-song-row img{ flex: none; width: 64px; height: 36px; border-radius: 6px; object-fit: cover; background: #e5e5ea; }
.st-song-row .st-song-txt i{ opacity: 1; color: #8e8e93; }
/* The one chosen, above the Share row. */
.st-pick{ position: absolute; left: 12px; right: 12px; bottom: 78px; z-index: 3; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 10px; padding: 8px 6px 10px 8px; border-radius: 14px; background: rgba(0,0,0,.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.st-pick img{ width: 64px; height: 36px; border-radius: 6px; object-fit: cover; }
.st-from{ grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 0 6px; font-size: 12.5px; font-weight: 600; }
.st-from span{ flex: none; min-width: 74px; }
.st-from input{ flex: 1; min-width: 0; accent-color: #fff; }
@media (min-width: 620px){ .st-view > .st-pick{ left: calc(50% - min(420px, 100vw) / 2 + 12px); right: auto; width: calc(min(420px, 100vw) - 24px); bottom: 94px; } }

/* How long a part of the song: 5, 10 or 15 seconds, with the player that lets it be heard. */
.st-lens{ grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding: 2px 6px 0; }
.st-lens button{ min-width: 46px; height: 30px; padding: 0 10px; border: 1.5px solid rgba(255,255,255,.55); border-radius: 15px; background: none; color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.st-lens button.on{ background: #fff; border-color: #fff; color: #111; }
.st-pre{ position: relative; flex: none; margin-left: auto; width: 64px; height: 36px; border-radius: 6px; overflow: hidden; background: #111; }
.st-pre iframe, .st-pre-yt{ position: absolute; left: 50%; top: 50%; width: 160px; height: 90px; transform: translate(-50%, -50%) scale(.4); border: 0; pointer-events: none; }

/* The video is not shown: the song's cover is, and the player only makes the
   sound. It stays in the page, a pixel big and see-through, since a player
   that is removed or hidden outright stops playing. */
.st-song-pl{ width: 54px; }
.st-song-pl iframe, .st-song-yt{ opacity: 0; }
.st-song-cover{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.st-pre{ position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }

/* Popular / Bollywood / Punjabi, above the list of songs. */
.st-mixes{ flex: none; display: flex; gap: 8px; }
.st-mixes[hidden]{ display: none; }
.st-mixes button{ height: 34px; padding: 0 14px; border: none; border-radius: 17px; background: #f2f2f7; font: inherit; font-size: 14px; font-weight: 500; color: #111; cursor: pointer; }
.st-mixes button.on{ background: #111; color: #fff; }

.st-btn[hidden]{ display: none; }

/* Photo, Video and Song when adding a status: each with its name under it, so
   there is no guessing what a button adds. */
.st-pickbtn{ width: auto; min-width: 46px; height: 46px; border-radius: 12px; flex-direction: column; display: flex; align-items: center; justify-content: center; gap: 1px; padding: 0 4px; }
.st-pickbtn svg{ width: 22px; height: 22px; }
.st-pickbtn em{ font-style: normal; font-size: 10px; font-weight: 600; line-height: 1; }

/* ---- the camera, when adding a status: tap for a photo, hold for a video ---- */
.st-cam{ position: absolute; inset: 0; z-index: 6; background: #000; }
.st-cam[hidden]{ display: none; }
.st-cam-live{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.st-cam-live.mirror{ transform: scaleX(-1); }
.st-cam-top{ position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: calc(10px + env(safe-area-inset-top)) 10px 20px; background: linear-gradient(rgba(0,0,0,.45), transparent); }
.st-cam-time{ padding: 3px 10px; border-radius: 10px; background: #e53935; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.st-cam-time[hidden]{ display: none; }
.st-cam-foot{ position: absolute; left: 0; right: 0; bottom: calc(54px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-around; padding: 0 24px; }
.st-cam-gal, .st-cam-gap{ flex: none; width: 46px; height: 46px; }
.st-cam-gal{ display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.2); color: #fff; cursor: pointer; }
.st-cam-gal svg{ width: 24px; height: 24px; }
/* The button: a white ring; held, it turns red and the ring fills over fifteen seconds. */
.st-shutter{ --p: 0%; position: relative; flex: none; width: 78px; height: 78px; padding: 0; border: none; border-radius: 50%; background: conic-gradient(#e53935 var(--p), rgba(255,255,255,.95) 0); cursor: pointer; touch-action: none; -webkit-touch-callout: none; transition: transform .15s ease; }
.st-shutter::before{ content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #000; opacity: .35; }
.st-shutter i{ position: absolute; inset: 9px; border-radius: 50%; background: #fff; transition: inset .15s ease, border-radius .15s ease, background .15s ease; }
.st-shutter.rec{ transform: scale(1.12); }
.st-shutter.rec i{ inset: 25px; border-radius: 8px; background: #e53935; }
.st-cam-hint{ position: absolute; left: 0; right: 0; bottom: calc(18px + env(safe-area-inset-bottom)); margin: 0; text-align: center; font-size: 13px; font-weight: 500; opacity: .9; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
@media (min-width: 620px){ .st-view > .st-cam{ left: 50%; right: auto; width: min(420px, 100vw); margin-left: calc(min(420px, 100vw) / -2); top: 16px; bottom: 16px; border-radius: 14px; overflow: hidden; } }

/* An official circle: the college crest on white, and its name in full underneath. */
/* The whole shield, clear of the circle's edge: the picture has a clear
   background, so it sits on white with room round it. */
.st-face .st-crest{ object-fit: contain; padding: 10px 11px 9px; background: #fff; box-sizing: border-box; }
.st-face.sm .st-crest{ padding: 6px 6px 5px; }
.st-item.official{ width: 76px; }
.st-item.official b{ font-weight: 600; }
/* "Post as IILM Updates", for administrators, above the Share row. */
.st-as{ position: absolute; left: 14px; bottom: 150px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 16px; background: rgba(0,0,0,.5); font-size: 13px; font-weight: 600; cursor: pointer; }
.st-as[hidden]{ display: none; }
.st-as input{ width: 16px; height: 16px; accent-color: #fff; }
@media (min-width: 620px){ .st-view > .st-as{ left: calc(50% - min(420px, 100vw) / 2 + 14px); bottom: 166px; } }

/* A caption and a song together: the caption sits above the song's card. */
.st-view.has-song .st-cap{ bottom: 146px; }
/* An official update's card fills the screen; its words are part of the picture. */
.st-full{ position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; object-position: center top; }

/* ---- how the words look: plain, or on a highlight ---- */
.st-hl{ padding: .12em .42em; border-radius: .32em; -webkit-box-decoration-break: clone; box-decoration-break: clone; line-height: 1.75; text-shadow: none; }
.st-light .st-hl{ background: #fff; color: #111; }
.st-dark .st-hl{ background: #111; color: #fff; }
.st-sun .st-hl{ background: #ffd60a; color: #111; }
.st-cap.st-light, .st-cap.st-dark, .st-cap.st-sun{ background: none; }
/* While typing, the whole box takes the look. */
textarea.st-light, input.st-light{ background: #fff; color: #111; border-radius: 14px; }
textarea.st-dark, input.st-dark{ background: #111; color: #fff; border-radius: 14px; }
textarea.st-sun, input.st-sun{ background: #ffd60a; color: #111; border-radius: 14px; }
textarea.st-light::placeholder, textarea.st-sun::placeholder, input.st-light::placeholder, input.st-sun::placeholder{ color: rgba(0,0,0,.5); }
textarea.st-write.st-light, textarea.st-write.st-dark, textarea.st-write.st-sun{ width: calc(100% - 48px); min-height: 0; height: 9.5em; padding: 16px 14px; }
.st-aa{ flex: none; width: 42px; min-height: 42px !important; padding: 0 !important; justify-content: center; border-radius: 12px !important; font-size: 17px !important; font-weight: 700 !important; border: 2px solid rgba(255,255,255,.75) !important; background: none !important; }
.st-aa[data-style="light"]{ background: #fff !important; color: #111 !important; }
.st-aa[data-style="dark"]{ background: #111 !important; color: #fff !important; }
.st-aa[data-style="sun"]{ background: #ffd60a !important; color: #111 !important; border-color: #ffd60a !important; }
.st-foot [data-act="share"] svg{ width: 18px; height: 18px; }

/* ---- a reply and a like, on somebody else's status ---- */
.st-reply{ flex: 1; min-width: 0; }
.st-reply input{ width: 100%; height: 44px; padding: 0 17px; border: 1.5px solid rgba(255,255,255,.75); border-radius: 22px; background: rgba(0,0,0,.28); color: #fff; font: inherit; font-size: 15px; outline: none; }
.st-reply input::placeholder{ color: rgba(255,255,255,.85); }
.st-reply input:focus{ border-color: #fff; background: rgba(0,0,0,.5); }
.st-foot .st-like, .st-foot .st-ico{ flex: none; width: 44px; min-height: 44px; padding: 0; justify-content: center; border-radius: 50%; }
.st-foot .st-like svg, .st-foot .st-ico svg{ width: 22px; height: 22px; }
.st-foot .st-like.on{ background: rgba(255,255,255,.95); color: #ff3b5c; }
.st-foot .st-like.on svg{ fill: currentColor; }
.st-liked{ display: inline-flex; align-items: center; gap: 4px; margin-left: 9px; color: #ff5c77; }
.st-liked svg{ width: 15px; height: 15px; fill: currentColor; }
