/* TEMA Clips home (/video/): grid of covers like a TikTok profile, 21.11.2026 */
html:has(.tcg-body),body.tcg-body{margin:0;background:#0d0d0d}
.tcg-body #tema-to-top,.tcg-body .tpu-pop,.tcg-body .gtranslate_wrapper{display:none!important}
.tcg{min-height:100vh;background:#0d0d0d;color:#fff;font-family:Arial,Helvetica,sans-serif;-webkit-tap-highlight-color:transparent}
.tcg *{box-sizing:border-box}
.tcg svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tc-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.tcg-top{position:sticky;top:0;z-index:5;display:flex;justify-content:space-between;align-items:center;padding:calc(10px + env(safe-area-inset-top)) 14px 10px 16px;background:#0d0d0de6;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
.tcg .tc-logo{display:inline-flex;align-items:center;gap:7px;color:#fff!important;text-decoration:none!important;font-weight:700;font-size:19px;letter-spacing:-.5px}
.tcg .tc-logo b{color:#df7411}
.tcg .tc-mark{width:34px;height:34px;flex:none;color:#fff}
.tcg-x{width:40px;height:40px;border-radius:50%;background:#ffffff1f;display:grid;place-items:center;color:#fff!important}
.tcg-x:hover{background:#ffffff33}
.tcg-head{padding:6px 16px 16px}
.tcg-head h1{margin:0 0 6px;font-size:22px!important;line-height:1.2;font-weight:700;color:#fff}
.tcg-head p{margin:0;font-size:14px;line-height:1.4;color:#ffffffb3}
.tcg-head p span{white-space:nowrap;color:#fff;font-weight:700}
.tcg-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:2px}
.tcg-grid li{margin:0;padding:0}
.tcg-grid a{position:relative;display:block;aspect-ratio:3/4;overflow:hidden;background:#222;color:#fff!important;text-decoration:none!important}
.tcg-grid img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .3s,filter .3s}
.tcg-grid a:after{content:"";position:absolute;inset:auto 0 0;height:40%;background:linear-gradient(180deg,#0000,#00000080);pointer-events:none}
.tcg-d{position:absolute;z-index:1;left:8px;bottom:7px;display:flex;align-items:center;gap:4px;font-size:14px;font-weight:700;text-shadow:0 1px 3px #000a}
.tcg-d svg{width:16px;height:16px;stroke:#fff;stroke-width:2.2;filter:drop-shadow(0 1px 2px #0008)}
.tcg-grid em{position:absolute;z-index:1;top:7px;left:7px;font-style:normal;font-size:11px;font-weight:700;background:#df7411;color:#fff;padding:3px 7px;border-radius:5px}
.tcg-grid a:hover img{transform:scale(1.04);filter:brightness(1.08)}
.tcg-grid a:focus-visible{outline:3px solid #df7411;outline-offset:-3px}
.tcg-foot{padding:22px 16px calc(30px + env(safe-area-inset-bottom));margin:0;font-size:13px;color:#ffffff99;text-align:center}
.tcg-foot a{color:#fff!important}
@media(min-width:700px){
  .tcg-top{padding:14px 26px}
  .tcg-head,.tcg-grid,.tcg-foot{max-width:1180px;margin-left:auto;margin-right:auto}
  .tcg-head{padding:14px 26px 22px}.tcg-head h1{font-size:28px!important}
  .tcg-grid{grid-template-columns:repeat(4,1fr);gap:12px;padding:0 26px}
  .tcg-grid a{border-radius:10px}
}
@media(min-width:1100px){.tcg-grid{grid-template-columns:repeat(5,1fr)}}
@media(prefers-reduced-motion:reduce){.tcg-grid img{transition:none}}
