/* Photos and albums (ttc-photos.js) */
.tph-main{gap:16px}
.tph-main>*{flex-shrink:0}
.tph-head{padding:20px 22px 0;display:flex;flex-wrap:wrap;align-items:center;gap:14px 20px}
.tph-who{display:flex;align-items:center;gap:14px;flex:1;min-width:0}
#ttc-feed-app .tph-h1{margin:0;font-size:28px}
.tph-sub{color:#8FA6AD!important;font-size:14px;font-weight:600}
.tph-actions{display:flex;gap:8px;flex-wrap:wrap}
.tph-tabs{flex:1 0 100%;display:flex;gap:4px;border-top:1px solid #1E2F36;margin:0 -22px;padding:0 14px}
.tph-tabs a{padding:14px 12px 12px;color:#8FA6AD!important;font-weight:600;font-size:15px;border-bottom:3px solid transparent;display:flex;align-items:center;gap:6px}
.tph-tabs a[aria-current=page]{color:#3FD2E8!important;border-color:#3FD2E8}
.tph-n{font-size:12px;background:#15242A;border-radius:999px;padding:1px 7px;color:#B9CCD1}
.tph-body{padding:16px}
.tph-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:6px}
#ttc-feed-app .tph-thumb{position:relative;aspect-ratio:1;padding:0;border:0;border-radius:10px;overflow:hidden;background:#0E191D;cursor:zoom-in;opacity:1}
.tph-thumb img,.tph-thumb video{width:100%;height:100%;object-fit:cover;display:block;transition:transform .2s}
.tph-thumb:hover img,.tph-thumb:hover video{transform:scale(1.04)}
.tph-play{position:absolute;left:8px;bottom:8px;width:28px;height:28px;border-radius:50%;background:#0009;display:flex;align-items:center;justify-content:center;color:#fff}
.tph-play .tf-ic{width:16px;height:16px}
.tph-more{display:flex;justify-content:center;margin-top:12px}
.tph-more:empty{display:none}
.tph-empty{display:flex;flex-direction:column;align-items:center;gap:6px;padding:40px 10px;color:#8FA6AD;text-align:center}
.tph-empty .tf-ic{width:40px;height:40px;color:#3A5560}
.tph-empty p{margin:0}
.tph-albums{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:16px}
#ttc-feed-app .tph-album{display:flex;flex-direction:column;gap:4px;color:#E8F1F3!important;text-decoration:none;text-align:left;background:none;border:0;padding:0;cursor:pointer;opacity:1}
.tph-cover{aspect-ratio:1;border-radius:12px;overflow:hidden;background:#0E191D;display:flex;align-items:center;justify-content:center;margin-bottom:4px;border:1px solid #1E2F36}
.tph-cover img,.tph-cover video{width:100%;height:100%;object-fit:cover}
.tph-cover .tf-ic{width:34px;height:34px;color:#3A5560}
.tph-new .tph-cover{border:2px dashed #2A3F46;background:#0B151A}
.tph-new .tph-cover .tf-ic{color:#3FD2E8}
.tph-new:hover .tph-cover{border-color:#3FD2E8}
.tph-album strong{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tph-album small{font-size:13px;color:#8FA6AD;display:flex;align-items:center;gap:3px;flex-wrap:wrap}
.tph-album small .tf-ic,.tph-meta .tf-ic{width:13px;height:13px;vertical-align:-2px}
.tph-aud{display:inline-flex;align-items:center;gap:3px}
.tph-noimg{display:flex}
.tph-ahead{flex-direction:column;align-items:flex-start;gap:6px;padding-bottom:18px}
.tph-desc{margin:0!important;color:#C9D8DC!important;font-size:15px}
.tph-meta{margin:0!important;color:#8FA6AD!important;font-size:14px;display:flex;align-items:center;gap:2px;flex-wrap:wrap}
.tph-meta a{color:#E8F1F3!important;font-weight:600}
.tph-ahead .tph-actions{margin-top:6px}
/* Dialogs */
.tph-dlg{width:560px}
.tph-label{margin:6px 0 -4px!important;font-size:12px!important;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#8FA6AD!important}
.tph-dlg input[type=text],.tph-dlg textarea{margin:0;border-radius:12px;border:1px solid #23363D;background:#0E191D;color:#E8F1F3;font:15px Inter,sans-serif;padding:10px 14px}
.tph-audpick{display:flex;gap:6px;flex-wrap:wrap}
#ttc-feed-app .tph-audpick button{display:inline-flex;align-items:center;gap:6px;height:38px;padding:0 12px;border-radius:19px;border:1px solid #23363D;background:#0E191D;color:#C9D8DC!important;font:600 14px Inter,sans-serif}
#ttc-feed-app .tph-audpick button[aria-checked=true]{border-color:#3FD2E8;color:#3FD2E8!important;background:#3FD2E812}
.tph-audpick .tf-ic{width:16px;height:16px}
#ttc-feed-app .tph-drop{display:flex;flex-direction:column;align-items:center;gap:4px;padding:22px;border-radius:14px;border:2px dashed #2A3F46;background:#0B151A;color:#C9D8DC!important;cursor:pointer;width:100%}
#ttc-feed-app .tph-drop.over,#ttc-feed-app .tph-drop:hover{border-color:#3FD2E8}
.tph-drop .tf-ic{width:30px;height:30px;color:#3FD2E8}
.tph-drop small{color:#8FA6AD;font-size:13px}
.tph-pending{display:grid;grid-template-columns:repeat(auto-fill,minmax(76px,1fr));gap:6px}
.tph-pending:empty{display:none}
.tph-pthumb{position:relative;aspect-ratio:1;border-radius:8px;overflow:hidden;background:#0E191D}
.tph-pthumb img,.tph-pthumb video{width:100%;height:100%;object-fit:cover}
#ttc-feed-app .tph-pthumb button{position:absolute;top:4px;right:4px;width:24px;height:24px;padding:0;border-radius:50%;border:0;background:#000b;color:#fff!important;display:flex;align-items:center;justify-content:center}
.tph-pthumb .tf-ic{width:14px;height:14px}
.tph-check{display:flex!important;align-items:center;gap:10px;margin:2px 0!important;font-size:14px!important;color:#C9D8DC!important}
.tph-check input{width:18px;height:18px;margin:0;accent-color:#3FD2E8}
.tph-progress{margin:0;color:#3FD2E8!important;font-weight:600;font-size:14px}
.tph-progress:empty{display:none}
.tph-note{margin:0!important;font-size:14px}
.tph-pickgrid{grid-template-columns:repeat(auto-fill,minmax(96px,1fr));max-height:50vh;overflow-y:auto}
.tph-pickgrid .tph-thumb{cursor:pointer}
.tph-tick{position:absolute;top:6px;right:6px;width:24px;height:24px;border-radius:50%;border:2px solid #fff;background:#0006;display:flex;align-items:center;justify-content:center;color:transparent}
.tph-tick .tf-ic{width:14px;height:14px}
.tph-thumb.picked{outline:3px solid #3FD2E8;outline-offset:-3px}
.tph-thumb.picked .tph-tick{background:#3FD2E8;border-color:#3FD2E8;color:#062026}
/* The viewer */
body.tpv-open{overflow:hidden}
.tpv{position:fixed;inset:0;z-index:2000;display:grid;grid-template-columns:minmax(0,1fr) 380px;background:#000}
.tpv-main{position:relative;min-width:0;min-height:0;display:flex;background:#000}
.tpv-stage{flex:1;display:flex;align-items:center;justify-content:center;min-width:0;min-height:0}
.tpv-stage img,.tpv-stage video{max-width:100%;max-height:100%;object-fit:contain;display:block;user-select:none;-webkit-user-select:none}
.tpv-top{position:absolute;left:0;right:0;top:0;display:flex;align-items:center;gap:12px;padding:12px 14px;background:linear-gradient(#000c,#0000);pointer-events:none}
.tpv-top>*{pointer-events:auto}
#ttc-feed-app .tpv-close{width:40px;height:40px;border-radius:50%;border:0;padding:0;background:#ffffff1f;color:#fff!important;display:flex;align-items:center;justify-content:center}
#ttc-feed-app .tpv-close:hover{background:#ffffff33}
.tpv-title{color:#fff;font-weight:700;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.tpv-count{color:#B9CCD1;font-size:13px;white-space:nowrap}
.tpv-tools{margin-left:auto;display:flex;gap:6px}
#ttc-feed-app .tpv-tool{height:34px;padding:0 12px;border-radius:17px;border:0;background:#ffffff1f;color:#fff!important;font:600 13px Inter,sans-serif;white-space:nowrap}
#ttc-feed-app .tpv-tool:hover{background:#ffffff33}
#ttc-feed-app .tpv-nav{position:absolute;top:50%;transform:translateY(-50%);width:48px;height:48px;border-radius:50%;border:0;padding:0 0 4px;background:#ffffff1f;color:#fff!important;font:400 36px/1 Inter,sans-serif;display:flex;align-items:center;justify-content:center}
#ttc-feed-app .tpv-nav:hover{background:#ffffff38}
.tpv-nav.prev{left:16px}.tpv-nav.next{right:16px}
.tpv-side{background:#0F1A1F;border-left:1px solid #1E2F36;overflow-y:auto;display:flex;flex-direction:column}
.tpv-sidehead{display:flex;align-items:center;justify-content:space-between;padding:14px 16px 4px;font-size:14px;color:#8FA6AD}
.tpv-sheet-close{display:none!important}
.tpv-side .tf-post{border-radius:0;border:0;box-shadow:none;margin:0;background:transparent}
.tpv-side .tf-media,.tpv-side .tf-hide{display:none}
.tpv-loading{padding:20px 16px;margin:0}
.tpv-bar{display:none}
@media(max-width:899px){
  .tpv{grid-template-columns:1fr}
  .tpv-nav{display:none!important}
  .tpv-bar{display:flex;position:absolute;left:0;right:0;bottom:0;flex-direction:column;gap:8px;padding:40px 16px calc(14px + env(safe-area-inset-bottom));background:linear-gradient(#0000,#000d 40%)}
  .tpv-bar:empty{display:none}
  .tpv-who{display:flex;align-items:center;gap:10px;color:#fff!important}
  .tpv-who span{display:flex;flex-direction:column}
  .tpv-who small{color:#B9CCD1;font-size:12px}
  .tpv-cap{margin:0;color:#fff;font-size:14px;max-height:4.2em;overflow:hidden}
  #ttc-feed-app .tpv-open-sheet{align-self:flex-start;display:flex;align-items:center;gap:6px;height:38px;padding:0 14px;border-radius:19px;border:0;background:#ffffff26;color:#fff!important;font:600 14px Inter,sans-serif}
  .tpv-open-sheet .tf-ic{width:18px;height:18px}
  .tpv-open-sheet .tf-ic+.tf-ic{margin-left:6px}
  .tpv-side{position:absolute;left:0;right:0;bottom:0;max-height:78vh;border-radius:18px 18px 0 0;border-left:0;transform:translateY(105%);transition:transform .25s ease;z-index:3;box-shadow:0 -10px 40px #000a}
  .tpv.sheet .tpv-side{transform:none}
  .tpv-sheet-close{display:flex!important}
  .tpv-tools{max-width:60vw;overflow-x:auto}
  .tph-head{padding:16px 16px 0}
  .tph-tabs{margin:0 -16px;padding:0 8px}
  #ttc-feed-app .tph-h1{font-size:24px}
  .tph-grid{grid-template-columns:repeat(3,1fr);gap:3px}
  #ttc-feed-app .tph-thumb{border-radius:4px}
  .tph-body{padding:10px}
  .tph-albums{grid-template-columns:repeat(2,1fr);gap:12px}
}
@media(prefers-reduced-motion:reduce){.tpv-side{transition:none}.tph-thumb img{transition:none}}
#ttc-feed-app .tpv-sheet-close{width:34px;height:34px;padding:0;border-radius:50%;border:0;background:#15242A;color:#C9D8DC!important;align-items:center;justify-content:center}
.tpv-side .tf-comment-form{position:sticky;bottom:0;background:#0F1A1F}
