/* STW Shorts INDEX page — TikTok/YT-channel-shorts grid + STW editorial DNA */

:root {
  --stw-bg-black: #0a0a0a;
  --stw-bg-cream: #f3f1e7;
  --stw-text-paper: #ffffff;
  --stw-text-ink: #171c26;
  --stw-text-muted: rgba(255,255,255,.55);
  --stw-text-muted-2: rgba(255,255,255,.7);
  --stw-brand-red: #C0392B;
  --stw-line: rgba(255,255,255,.08);
  --stw-tile-radius: 14px;
  --stw-ease: cubic-bezier(.22,1,.36,1);
}

body.page-shorts { background: var(--stw-bg-black); color: var(--stw-text-paper); }

.stw-shorts-index { background: var(--stw-bg-black); color: var(--stw-text-paper); min-height: 100vh; padding: 0 0 96px; }

/* Hero */
.stw-shorts-index__hero { max-width: 1200px; margin: 0 auto; padding: 140px 24px 32px; text-align: left; }
@media (max-width: 700px) { .stw-shorts-index__hero { padding-top: 110px; } }
.stw-shorts-index__eyebrow { font-family: 'Inter', sans-serif; font-size: 11px; letter-spacing: .5px; text-transform: uppercase; color: var(--stw-brand-red); margin: 0 0 14px; }
.stw-shorts-index__title { font-family: 'Inter', sans-serif; font-size: 72px; line-height: 1; font-weight: 600; letter-spacing: -.02em; margin: 0 0 16px; color: var(--stw-text-paper); }
.stw-shorts-index__sub { font-family: 'Instrument Serif', Georgia, serif; font-size: 22px; line-height: 1.4; max-width: 600px; color: var(--stw-text-muted-2); margin: 0 0 22px; }
.stw-shorts-index__count { font-family: 'Inter', sans-serif; font-size: 12px; letter-spacing: .3px; color: var(--stw-text-muted); margin: 0; }
.stw-shorts-index__count span { color: var(--stw-text-paper); font-weight: 600; }

/* Filter pills */
.stw-shorts-index__filters { max-width: 1200px; margin: 0 auto; padding: 12px 24px 28px; border-bottom: 1px solid var(--stw-line); display: flex; flex-direction: column; gap: 12px; }
.stw-shorts-index__filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.stw-shorts-index__filter-label { font-family: 'Inter', sans-serif; font-size: 10px; letter-spacing: .8px; text-transform: uppercase; color: var(--stw-text-muted); margin-right: 4px; min-width: 56px; }
.stw-pill { background: rgba(255,255,255,.06); color: var(--stw-text-paper); border: 1px solid rgba(255,255,255,.08); padding: 7px 14px; border-radius: 999px; font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500; cursor: pointer; transition: background .2s var(--stw-ease), border-color .2s, color .2s, transform .15s; }
.stw-pill:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.18); }
.stw-pill.is-active { background: var(--stw-brand-red); border-color: var(--stw-brand-red); color: #fff; }
.stw-pill__count { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: rgba(255,255,255,.18); font-size: 10px; font-weight: 600; vertical-align: 1px; }
.stw-pill.is-active .stw-pill__count { background: rgba(0,0,0,.25); }

/* Grid — 5 col desktop, 4/3/2 responsive */
.stw-shorts-index__grid { max-width: 1200px; margin: 32px auto 0; padding: 0 24px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
@media (max-width: 1100px) { .stw-shorts-index__grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
@media (max-width: 850px)  { .stw-shorts-index__grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (max-width: 600px)  { .stw-shorts-index__grid { grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 0 4px; } .stw-tile__media { border-radius: 2px; } }

/* Tile */
.stw-tile { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .25s var(--stw-ease); }
.stw-tile:hover { transform: translateY(-2px); }
.stw-tile__media { position: relative; width: 100%; aspect-ratio: 9/16; border-radius: var(--stw-tile-radius); overflow: hidden; background: #111; }
.stw-tile__poster, .stw-tile__preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s var(--stw-ease), transform .6s var(--stw-ease); }
.stw-tile__preview { opacity: 0; }
.stw-tile:hover .stw-tile__poster { transform: scale(1.04); }
.stw-tile.is-previewing .stw-tile__preview { opacity: 1; }
.stw-tile.is-previewing .stw-tile__poster { opacity: 0; }
.stw-tile__duration { position: absolute; right: 10px; bottom: 10px; padding: 3px 8px; border-radius: 4px; background: rgba(0,0,0,.72); color: #fff; font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .3px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.stw-tile__play { position: absolute; left: 10px; bottom: 10px; width: 28px; height: 28px; border-radius: 50%; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; color: #fff; opacity: 0; transition: opacity .2s var(--stw-ease); }
.stw-tile:hover .stw-tile__play { opacity: 1; }
.stw-tile__meta { padding: 12px 4px 0; }
.stw-tile__title { font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--stw-text-paper); margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.stw-tile__sub { font-family: 'Inter', sans-serif; font-size: 12px; color: var(--stw-text-muted); margin: 0; }

/* Empty state */
.stw-shorts-index__empty { text-align: center; color: var(--stw-text-muted); font-family: 'Instrument Serif', serif; font-size: 18px; padding: 48px 24px; }

/* Make sure default WP/site ads/announce don't bleed onto dark canvas */
body.page-shorts .site-footer, body.page-shorts footer { background: var(--stw-bg-black); }
