/* Reels (ttc-reels.js) */
.ta-layout.trl-layout{max-width:none;padding-top:0!important;padding-bottom:0!important}
.trl-main{position:relative;flex:999 1 520px!important;gap:0!important}
.trl-top{display:none}
.trl-deck{height:calc(100vh - 66px);overflow-y:auto;scroll-snap-type:y mandatory;scrollbar-width:none;outline:none;overscroll-behavior:contain}
.trl-deck::-webkit-scrollbar{display:none}
#ttc-feed-app .trl-deck:focus,#ttc-feed-app .trl-deck:focus-visible{outline:none}
.trl-reel{height:calc(100vh - 66px);scroll-snap-align:start;scroll-snap-stop:always;display:flex;align-items:center;justify-content:center;gap:16px;padding:16px 0;box-sizing:border-box}
.trl-frame{position:relative;height:100%;aspect-ratio:9/16;max-width:calc(100vw - 420px);border-radius:16px;overflow:hidden;background:#000;box-shadow:0 12px 40px #0008;isolation:isolate}
.trl-frame video{width:100%;height:100%;object-fit:cover;display:block;background:#000}
.trl-tap{position:absolute;inset:0;z-index:1;cursor:pointer}
.trl-paused{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:2;width:72px;height:72px;border-radius:50%;background:#0009;display:flex;align-items:center;justify-content:center;pointer-events:none;color:#fff}
.trl-paused .tf-ic{width:34px;height:34px;fill:#fff;margin-left:4px}
.trl-paused[hidden]{display:none}
#ttc-feed-app .trl-mute{position:absolute;right:12px;top:12px;z-index:3;width:40px;height:40px;border-radius:50%;border:0;background:#0008;color:#fff;font-size:18px;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.trl-info{position:absolute;left:0;right:0;bottom:0;z-index:2;padding:48px 16px 18px;background:linear-gradient(transparent,#000c);color:#fff;display:flex;flex-direction:column;gap:8px;pointer-events:none}
.trl-info>*{pointer-events:auto}
#ttc-feed-app .trl-author{display:flex;align-items:center;gap:8px;color:#fff!important;text-decoration:none;align-self:flex-start;font-size:15px;text-shadow:0 1px 3px #0009}
.trl-author small{color:#ffffffb3;font-size:13px}
.trl-cap{margin:0;font-size:14px;line-height:1.4;color:#fff;text-shadow:0 1px 3px #0009;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;cursor:pointer;white-space:pre-wrap;overflow-wrap:anywhere}
.trl-cap.open{-webkit-line-clamp:12;max-height:40vh;overflow:auto}
.trl-progress{position:absolute;left:0;right:0;bottom:0;height:3px;background:#ffffff26;z-index:3}
.trl-progress i{display:block;height:100%;width:0;background:#3FD2E8}
.trl-heart{position:absolute;left:50%;top:50%;z-index:4;font-size:110px;transform:translate(-50%,-50%) scale(.2);pointer-events:none;animation:trl-heart .85s ease-out forwards;filter:drop-shadow(0 6px 18px #0008)}
@keyframes trl-heart{0%{transform:translate(-50%,-50%) scale(.2);opacity:0}25%{transform:translate(-50%,-50%) scale(1.15);opacity:1}55%{transform:translate(-50%,-50%) scale(1)}100%{transform:translate(-50%,-90%) scale(1.1);opacity:0}}
.trl-cover{position:absolute;inset:0;z-index:5;background:linear-gradient(160deg,#1b2a30,#050a0d);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:24px;text-align:center;color:#E8F1F3}
.trl-cover-ic{width:56px;height:56px;border-radius:50%;border:2px solid #F28B82;color:#F28B82;display:flex;align-items:center;justify-content:center;font-weight:800}
.trl-cover small{color:#8FA6AD;max-width:260px}
.trl-cover-acts{display:flex;gap:8px;margin-top:6px}

/* Side buttons */
.trl-actions{display:flex;flex-direction:column;align-items:center;gap:14px;align-self:flex-end;padding-bottom:8px}
#ttc-feed-app .trl-act{display:flex;flex-direction:column;align-items:center;gap:4px;border:0;background:none;color:#E8F1F3!important;cursor:pointer;padding:0;font:600 12px Inter,sans-serif;text-decoration:none}
.trl-act-ic{width:48px;height:48px;border-radius:50%;background:#15242A;display:flex;align-items:center;justify-content:center;transition:transform .15s,background .15s}
.trl-act:hover .trl-act-ic{background:#1E2F36}
.trl-act:active .trl-act-ic{transform:scale(.9)}
.trl-act-ic .tf-ic{width:24px;height:24px}
.trl-act[aria-pressed=true].like .trl-act-ic{background:#F2486220;color:#FF5C7A}
.trl-act[aria-pressed=true].like .tf-ic{fill:#FF5C7A;stroke:#FF5C7A}
.trl-act[aria-pressed=true].save .trl-act-ic{color:#3FD2E8}
.trl-act[aria-pressed=true].save .tf-ic{fill:#3FD2E8}
.trl-who-act .tf-avatar,.trl-who-act img,.trl-who-act>span{border:2px solid #fff;border-radius:50%}

/* Up and down on computers */
.trl-nav{position:absolute;right:24px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:12px;z-index:6}
#ttc-feed-app .trl-navbtn{width:48px;height:48px;border-radius:50%;border:0;background:#15242A;color:#E8F1F3;display:flex;align-items:center;justify-content:center;cursor:pointer}
.trl-navbtn:hover{background:#1E2F36}
.trl-navbtn.up svg{transform:rotate(-90deg)}.trl-navbtn.down svg{transform:rotate(90deg)}

/* Comments */
.trl-sheet{position:fixed;right:0;top:66px;bottom:0;width:min(440px,100vw);z-index:40;background:#0F1A1F;border-left:1px solid #1E2F36;display:flex;flex-direction:column;box-shadow:-12px 0 40px #0008}
.trl-sheet[hidden]{display:none}
.trl-sheet-head{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid #1E2F36;font-size:16px}
.trl-sheet-body{flex:1;overflow:auto;padding:8px}
.trl-sheet-body .tf-post{margin:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.trl-sheet-body .tf-media,.trl-sheet-body .tf-hide{display:none}
.trl-dim{color:#8FA6AD;padding:16px;margin:0}
.trl-toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);z-index:50;background:#E8F1F3;color:#0B1418;font-weight:600;font-size:14px;padding:10px 16px;border-radius:12px;margin:0;box-shadow:0 8px 24px #0008}
.trl-toast[hidden]{display:none}
.trl-empty{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;color:#E8F1F3}
.trl-empty>span{font-size:54px}
.trl-empty small{color:#8FA6AD}

@media(min-width:1100px){body.trl-sheet-open .trl-deck{margin-right:440px}body.trl-sheet-open .trl-nav{display:none}}
@media(max-width:1099px){
  .trl-frame{max-width:calc(100vw - 120px)}
  .trl-nav{display:none}
}
/* Phones: full screen, like the Facebook app */
@media(max-width:759px){
  body.trl-on{background:#000!important}
  body.trl-on #ttc-feed-app{background:#000!important}
  body.trl-on #ttc-feed-app>.tf-header{display:none!important}
  .ta-layout.trl-layout{padding:0!important}
  .trl-main{padding:0!important}
  .trl-top{display:flex;position:absolute;left:0;right:0;top:0;z-index:8;align-items:center;gap:8px;padding:calc(10px + env(safe-area-inset-top)) 12px 10px;background:linear-gradient(#0009,transparent);pointer-events:none}
  .trl-top>*{pointer-events:auto}
  #ttc-feed-app .trl-top h1{flex:1;margin:0;font:700 22px 'Space Grotesk',Inter,sans-serif;color:#fff;text-shadow:0 1px 4px #0009}
  #ttc-feed-app .trl-back,#ttc-feed-app .trl-create{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff!important;background:#0006}
  .trl-back .tf-ic,.trl-create .tf-ic{width:22px;height:22px}
  .trl-deck{height:100dvh}
  .trl-reel{height:100dvh;padding:0;position:relative;display:block}
  .trl-frame{width:100%;height:100%;max-width:none;aspect-ratio:auto;border-radius:0;box-shadow:none}
  .trl-info{padding:60px 76px calc(104px + env(safe-area-inset-bottom)) 14px}
  .trl-progress{bottom:calc(92px + env(safe-area-inset-bottom))}
  #ttc-feed-app .trl-mute{top:calc(62px + env(safe-area-inset-top))}
  .trl-actions{position:absolute;right:8px;bottom:calc(110px + env(safe-area-inset-bottom));z-index:6;gap:16px;padding:0}
  .trl-act-ic{background:none;width:44px;height:44px}
  .trl-act-ic .tf-ic{width:30px;height:30px;filter:drop-shadow(0 1px 3px #000a)}
  #ttc-feed-app .trl-act{color:#fff!important;text-shadow:0 1px 3px #000a}
  .trl-act[aria-pressed=true].like .trl-act-ic,.trl-act[aria-pressed=true].save .trl-act-ic{background:none}
  .trl-sheet{top:auto;left:0;right:0;width:auto;height:78dvh;border-left:0;border-radius:18px 18px 0 0;box-shadow:0 -12px 40px #000a;z-index:60}
  body.trl-sheet-open .tf-tabbar{display:none!important}
  .trl-toast{bottom:calc(110px + env(safe-area-inset-bottom))}
}

/* Create reel */
.trc-main{gap:16px!important}
.trc-head{display:flex;align-items:center;gap:10px}
#ttc-feed-app .trc-head .ta-h1{margin:0}
.trc-body{display:flex;gap:24px;align-items:flex-start;flex-wrap:wrap}
.trc-frame{height:min(640px,calc(100vh - 170px));flex-shrink:0;max-width:100%;background:transparent!important;border-radius:16px!important}
.trc-frame video{display:none}
.trc-frame.has video{display:block}
.trc-frame .trl-info{display:none}
.trc-frame.has .trl-info{display:flex}
.trc-pick{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:24px;text-align:center;color:#E8F1F3;cursor:pointer;background:linear-gradient(160deg,#15242A,#050A0D);border:2px dashed #23363D;border-radius:16px}
.trc-frame.has .trc-pick{display:none}
.trc-frame.drop .trc-pick{border-color:#3FD2E8}
.trc-pick small{color:#8FA6AD;max-width:220px}
.trc-pick-ic{width:64px;height:64px;border-radius:50%;background:#3FD2E81f;color:#3FD2E8;display:flex;align-items:center;justify-content:center}
.trc-pick-ic .tf-ic{width:30px;height:30px}
.trc-file{position:absolute;inset:0;opacity:0;cursor:pointer}
.trc-form{flex:1 1 320px;max-width:520px;padding:18px!important;display:flex;flex-direction:column;gap:14px}
#ttc-feed-app .trc-form textarea,#ttc-feed-app .trc-form select{width:100%;box-sizing:border-box;border-radius:12px;border:1px solid #23363D;background:#0E191D;color:#E8F1F3;font:15px Inter,sans-serif;padding:10px 12px;margin:0;color-scheme:dark}
#ttc-feed-app .trc-form select{height:44px;padding:0 12px}
.trc-check span{display:flex;flex-direction:column}
.trc-check small{color:#8FA6AD;font-size:12px}
.trc-meta{color:#8FA6AD;font-size:13px;min-height:18px}
.trc-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}
.trc-change{position:relative;overflow:hidden}
.trc-small{font-size:12px!important;margin:0}
@media(max-width:759px){
  .trc-main{padding:12px 12px 0!important}
  .trc-body{gap:14px}
  .trc-frame{width:100%;height:auto;aspect-ratio:9/16;max-height:62vh;margin:0 auto}
  .trc-form{max-width:none}
  .trc-actions .ta-btn{flex:1;justify-content:center}
}
