/* The reel cards, the month headings and the pager: shared by the home page and the channel pages (owner 2026-10-27). Bump ?v=N in the pages' <link> when this file changes. */
:root { --accent: #d9822b; --ink: #222; --muted: #666; --line: #eee; }
/* the reel cards: a vertical poster first, a little text under it (owner 2026-10-27) */
.reel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 1.6rem 1.2rem; align-items: start; }
.reel-grid[hidden], [hidden] { display: none !important; }
h2.month { grid-column: 1 / -1; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 1.4rem 0 -0.4rem; }
.reel { position: relative; display: flex; flex-direction: column; gap: 0.55rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.reel-thumb { order: -1; display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 14px; background: linear-gradient(160deg, #f3e6d6, #e4d3c0); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.reel:hover .reel-thumb { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,0.18); }
.reel-main { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
a.badge { text-decoration: none; }
.reel .badge { position: absolute; top: 10px; left: 10px; z-index: 2; margin: 0; box-shadow: 0 1px 4px rgba(0,0,0,0.25); }
.reel h3 { order: 1; margin: 0; font-size: 0.86rem; line-height: 1.3; font-weight: 650; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.reel h3 a { color: inherit; text-decoration: none; }
.reel-date { order: 2; margin: 0; font-size: 0.72rem; color: var(--muted); }
.reel p { order: 3; margin: 0; font-size: 0.74rem; line-height: 1.4; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.reel-platforms { order: 4; font-size: 0.7rem; color: var(--muted); position: relative; z-index: 2; }
.reel-hit { position: absolute; z-index: 1; top: 0; left: 0; right: 0; aspect-ratio: 9 / 16; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.reel-hit::after { content: ""; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,0.9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18'%3E%3Cpath d='M5 3l10 6-10 6z' fill='%23222'/%3E%3C/svg%3E") center/18px no-repeat; opacity: 0; transition: opacity 0.18s ease; box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.reel:hover .reel-hit::after, .reel-hit:focus-visible::after { opacity: 1; }
.reel-hit:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.badge { display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.02em; padding: 0.18rem 0.6rem; border-radius: 999px; color: #fff; background: #475569; width: fit-content; }
.badge-marmy { background: #d9690a; }
.badge-murray { background: #0f766e; }
/* older months: the pager under the grid (3 months a page) */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.6rem 1.1rem; margin: 2rem 0 0.5rem; }
.pager[hidden] { display: none; }
.pager button { font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--ink); background: #fff; border: 1px solid #cfcfcf; border-radius: 999px; padding: 0.5rem 1.1rem; cursor: pointer; min-height: 40px; }
.pager button:disabled { opacity: 0.4; cursor: default; }
.pager button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.pager-info { font-size: 0.82rem; color: var(--muted); }

.reel-views { order: 2; margin: 0; font-size: 0.72rem; color: var(--muted); }
.pager[hidden] { display: none; }
@media (max-width: 640px) {
  .reel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 0.8rem; }
}

/* the reel player popup (assets/home.js) */
html.vp-open { overflow: hidden; }
.vplayer { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; }
.vplayer[hidden] { display: none; }
.vp-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.72); }
.vp-box { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; max-width: 96vw; max-height: 96vh; }
.vp-frame { width: min(92vw, calc(min(76vh, 720px) * 0.5625)); aspect-ratio: 9 / 16; background: #000; border-radius: 14px; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,0.5); }
.vp-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.vp-close { position: absolute; top: -0.4rem; right: -0.4rem; z-index: 2; width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 0; background: #fff; color: #222; font-size: 1.5rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.vp-close:focus-visible, .vp-links a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.vp-meta { width: min(92vw, calc(min(76vh, 720px) * 0.5625)); min-width: 16rem; color: #fff; text-align: center; }
.vp-title { font-size: 0.92rem; font-weight: 650; line-height: 1.3; }
.vp-date { font-weight: 400; opacity: 0.75; }
.vp-links { margin-top: 0.3rem; font-size: 0.82rem; display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; justify-content: center; align-items: center; }
.vp-links a { color: #fff; }
.vp-links a.vp-yt { background: #fff; color: #222; text-decoration: none; font-weight: 700; padding: 0.3rem 0.9rem; border-radius: 999px; }
.vp-also { opacity: 0.85; }
