/* ============================================================
   ROLLIT — HOME FEED  (css/homefeed.72defb2e.css)
   Feed-first home: compact hero, Watching/Everyone tabs, a centered
   Frames feed with interleaved suggestion strips, and a desktop right
   rail (streak / drops / watch party / trending) that stacks under the
   feed on narrow screens.
   ============================================================ */

.home-main { max-width: 1180px; margin: 0 auto; padding: 1.4rem 1.5rem 4rem; }

/* ---- HERO ---- */
.home-hero {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 1.4rem;
  flex-wrap: wrap; margin-bottom: 1.6rem;
  padding: 1.7rem 1.9rem;
  border-radius: 18px; border: 1px solid var(--border2);
  background:
    radial-gradient(130% 150% at 0% 0%, rgba(232,201,107,.16), transparent 55%),
    radial-gradient(130% 150% at 100% 130%, rgba(62,212,154,.10), transparent 50%),
    var(--surface);
}
.home-hero-kicker {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase;
  color: var(--gold); background: rgba(232,201,107,.12);
  border: 1px solid rgba(232,201,107,.32); border-radius: 20px; padding: 3px 11px;
}
.home-hero-kicker i { font-size: 12px; }
.home-hero-txt h1 {
  font-family: 'Bebas Neue', sans-serif; font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 2.9rem); line-height: 1; letter-spacing: 1px;
  margin: 0 0 6px; color: var(--text);
}
.home-hero-txt p { font-size: 13.5px; color: var(--muted); margin: 0; max-width: 460px; line-height: 1.5; }
.home-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.home-cta {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap;
  font-size: 13px; font-weight: 600; text-decoration: none;
  color: #160d2e; background: linear-gradient(180deg, #f2d885, var(--gold));
  border: 1px solid var(--gold); border-radius: 11px; padding: 10px 16px;
  box-shadow: 0 6px 16px rgba(232,201,107,.22);
  transition: transform .15s, box-shadow .18s, background .18s;
}
.home-cta:hover { transform: translateY(-1px); box-shadow: 0 9px 22px rgba(232,201,107,.32); }
.home-cta.ghost {
  color: var(--text); background: rgba(255,255,255,.04); border-color: var(--border2); box-shadow: none;
}
.home-cta.ghost:hover { background: rgba(255,255,255,.08); border-color: var(--gold); color: var(--gold); }

/* ---- TABS ---- */
.home-tabs { display: flex; gap: 8px; max-width: 660px; margin: 0 auto 1.2rem; }
.home-tab {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--muted);
  background: var(--surface); border: 0.5px solid var(--border); border-radius: 20px; padding: 7px 16px;
}
.home-tab.active { color: #160d2e; background: var(--gold); border-color: var(--gold); }
.home-tab i { font-size: 15px; }

/* ---- COLUMNS ---- */
.home-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.6rem; align-items: start; }
.home-feed { max-width: 660px; margin: 0 auto; width: 100%; }
.home-rail { position: sticky; top: calc(var(--nav-h, 58px) + 16px); display: flex; flex-direction: column; gap: 12px; }

/* ---- INFINITE-SCROLL SENTINEL ---- */
.home-feed-sentinel { display: flex; justify-content: center; padding: 1.4rem 0 2.4rem; min-height: 1px; }
.home-feed-sentinel .spinner { width: 26px; height: 26px; }
.home-feed-sentinel.is-end { padding: 1.6rem 0 2.4rem; }
.home-feed-end { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.home-feed-end i { color: var(--toproll, var(--gold)); font-size: 15px; }

/* ---- REFRESH BUTTON SPIN ---- */
.home-cta i.spin { animation: home-spin .7s linear infinite; }
@keyframes home-spin { to { transform: rotate(360deg); } }

/* ---- SUGGESTION STRIPS ---- */
.home-strip { margin: 2px 0 14px; }
.home-strip-head {
  display: flex; align-items: center; gap: 7px; margin-bottom: 10px;
  font-family: 'Bebas Neue', sans-serif; font-size: 1.15rem; letter-spacing: .5px; color: var(--text);
}
.home-strip-head i { color: var(--gold); font-size: 1.1rem; }
.home-strip-head .home-strip-see {
  margin-left: auto; font-size: 11px; font-weight: 600; color: var(--gold); text-decoration: none;
  font-family: 'DM Sans', sans-serif; letter-spacing: 0;
  background: rgba(232,201,107,.1); border: 1px solid rgba(232,201,107,.22);
  border-radius: 20px; padding: 3px 11px; transition: background .15s;
}
.home-strip-head .home-strip-see:hover { background: rgba(232,201,107,.2); }
.home-strip-row { display: flex; gap: 12px; overflow-x: auto; align-items: flex-start; padding-bottom: 6px; scrollbar-width: thin; }
.home-strip-row::-webkit-scrollbar { height: 6px; }
.home-strip-row::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
.home-strip-people .suggest-card { width: 158px; flex-shrink: 0; }
.home-strip-titles .media-card { width: 165px; flex-shrink: 0; }

/* ---- RIGHT RAIL ---- */
.rail-card {
  background: var(--surface); border: 0.5px solid var(--border); border-radius: 14px; padding: 13px 15px;
  transition: border-color .18s, transform .18s;
}
.rail-card:hover { border-color: var(--border2); transform: translateY(-1px); }
.rail-h { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.rail-sub { font-size: 12px; color: var(--muted); line-height: 1.5; margin-bottom: 7px; }
.rail-sub b { color: var(--text); font-weight: 600; }
.rail-link { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--gold); text-decoration: none; }
.rail-link:hover { text-decoration: underline; }
.rail-trend { display: flex; align-items: center; gap: 8px; padding: 5px 0; text-decoration: none; cursor: pointer; }
.rail-trend + .rail-trend { border-top: 0.5px solid var(--border); }
.rail-trend-rank { font-family: 'Bebas Neue', sans-serif; font-size: 1rem; color: var(--gold); width: 14px; }
.rail-trend-name { flex: 1; min-width: 0; font-size: 12px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-trend:hover .rail-trend-name { color: var(--gold); }
.rail-trend-sc { font-size: 11.5px; font-weight: 600; color: var(--muted); }

/* ---- EMPTY STATE ---- */
.home-empty {
  text-align: center; padding: 2.6rem 1.5rem; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  background: var(--surface); border: 0.5px dashed var(--border2); border-radius: 14px; margin-bottom: 14px;
}
.home-empty i { font-size: 2.4rem; color: var(--dim); }
.home-empty div { font-size: 15px; color: var(--text); }
.home-empty p { font-size: 12.5px; margin: 0; max-width: 320px; }
.home-empty-actions { display: flex; gap: 8px; margin-top: .6rem; flex-wrap: wrap; justify-content: center; }

/* ---- TOUCH TAP TARGETS ----
   These two are plain text links that measured ~19-25px tall — comfortably
   clickable with a mouse, fiddly with a thumb. Padding only, so the visual
   weight is unchanged; nothing here is positioned over artwork. */
@media (hover: none) {
  .home-strip-head .home-strip-see { padding: 8px 13px; }
  .rail-link { padding: 7px 0; }
  .rail-trend { padding: 9px 0; }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  /* minmax(0,…) not 1fr: a bare 1fr floors at the column's min-content, and the
     strip cards inside the feed made that ~660px — which pushed the whole page
     into horizontal scroll on every phone. */
  .home-cols { grid-template-columns: minmax(0, 1fr); }
  /* Below the two-column breakpoint the rail is a side rail no more — stacked
     under the feed it was just a tail of link cards the feed itself already
     covers, so it's desktop-only. Kept in the DOM (the refresh path in
     homefeed.js repaints it) — hidden, not removed. */
  .home-rail { display: none; }
}
@media (max-width: 600px) {
  .home-main { padding: 1rem 1rem 3rem; }
  .home-hero h1 { font-size: 1.7rem; }
}
