/* Layout for the built /watch pages (#49). The LOOK is assets/hub-tokens.css,
   which is #134's hand-off from EB Design; nothing here types a colour, a face
   or a radius of its own, so a change to the tokens moves these pages with it.
   Every class is prefixed `hubw-`, beside the token file's `hub-` and the
   player's `hubp-`, so this file is safe next to assets/site.css (#160). */

.hubw-wrap{max-width:1240px;margin:0 auto;padding:0 var(--pad-x)}

/* the index and series headers */
.hubw-head{padding:calc(var(--header-h) + 56px) 0 10px}
.hubw-head h1{margin:18px 0 0;font-size:clamp(40px,6vw,76px)}
.hubw-head .hubw-lede{margin:18px 0 0;max-width:62ch;font-family:var(--body);font-size:clamp(16px,1.5vw,19px);line-height:1.6;color:var(--mist)}
.hubw-head .hub-coord{margin-top:22px}

.hubw-section{padding:48px 0 0}
.hubw-section h2{margin:0 0 20px;font-size:clamp(24px,3vw,34px)}

/* tile grids and series rails. The tile itself is .hub-tile from the tokens. */
.hubw-grid{display:grid;gap:22px;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));margin:0;padding:0;list-style:none}
.hubw-grid>li{margin:0}
.hubw-tile-link{display:block;text-decoration:none;color:inherit;transition:transform var(--dur-tile) var(--ease-spring)}
.hubw-tile-link:hover,.hubw-tile-link:focus-visible{transform:translateY(-4px);outline:none}
.hubw-tile-link:focus-visible .hub-tile{box-shadow:0 0 0 2px var(--leaf)}

/* the title page */
.hubw-title{padding:calc(var(--header-h) + 40px) 0 0}
.hubw-back{display:inline-block;margin:0 0 18px;font-family:var(--body);font-size:13px;letter-spacing:.04em;color:var(--mist);text-decoration:none}
.hubw-back:hover{color:var(--leaf)}
.hubw-title h1{margin:10px 0 0;font-size:clamp(34px,5vw,64px)}
.hubw-meta{margin:14px 0 0;font-family:var(--display);font-weight:700;font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--mist-2)}
.hubw-meta span+span::before{content:"·";margin:0 10px;color:var(--line-2)}
.hubw-synopsis{margin:20px 0 0;max-width:68ch;font-family:var(--body);font-size:17px;line-height:1.7;color:var(--mist)}
/* the credit a licence requires (#608): the licensor's words, set quietly under the synopsis */
.hubw-credit{margin:12px 0 0;max-width:68ch;font-family:var(--body);font-size:14px;line-height:1.6;color:var(--mist-2)}
.hubw-credit p{margin:0}

/* the AI disclosure (#67). Quiet by design: it is a fact about the work, in
   the same register as the runtime, and not a warning. Drawn only when a
   person has stated that a machine was involved. */
.hubw-ai{margin:20px 0 0;max-width:68ch;padding:14px 16px;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--card)}
.hubw-ai-h{margin:0;font-family:var(--display);font-weight:700;font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--mist-2)}
.hubw-ai p{margin:8px 0 0;font-family:var(--body);font-size:15px;line-height:1.6;color:var(--mist)}

.hubw-body{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:48px;padding:34px 0 var(--pad-section)}
@media (max-width:960px){.hubw-body{grid-template-columns:minmax(0,1fr);gap:32px}}

/* the frame. 16:9, artwork until the gate has answered. */
.hubw-player{margin:0 0 18px}
.hubw-frame{position:relative;aspect-ratio:16/9;background:var(--card-solid);border:1px solid var(--line);border-radius:var(--r-md);overflow:hidden}
.hubw-frame video{display:block;width:100%;height:100%;background:var(--ink)}
.hubw-poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hubw-poster[hidden]{display:none}
.hubw-press{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);cursor:pointer}
.hubw-press[hidden]{display:none}
.hubw-state{position:absolute;inset:auto 0 0;padding:14px 18px;background:var(--scrim-foot);font-family:var(--body);font-size:14px;color:var(--bone)}
.hubw-state[hidden]{display:none}
.hubw-state.is-bad{color:var(--sun)}
.hubw-controls{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:12px 0 0}
.hubw-controls[hidden]{display:none}
.hubw-player:fullscreen{display:flex;flex-direction:column;justify-content:center;background:var(--ink);padding:0 16px}
.hubw-player:-webkit-full-screen{display:flex;flex-direction:column;justify-content:center;background:var(--ink);padding:0 16px}

/* chapters, language tracks and the give card */
.hubw-chapters{margin:28px 0 0;padding:0;list-style:none;display:grid;gap:2px}
.hubw-chapters a{display:flex;justify-content:space-between;gap:18px;align-items:baseline;padding:13px 16px;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--card);color:var(--bone);text-decoration:none;font-family:var(--body);font-size:15px;transition:border-color var(--dur-base) var(--ease-out)}
.hubw-chapters a:hover,.hubw-chapters a:focus-visible{border-color:var(--leaf);outline:none}
.hubw-chapters .hubw-at{font-family:var(--display);font-weight:700;font-size:12px;letter-spacing:.06em;color:var(--mist-2);font-feature-settings:"tnum";white-space:nowrap}
.hubw-side{display:grid;gap:18px;align-content:start}
.hubw-card{padding:22px;border:1px solid var(--line);border-radius:var(--r-card);background:var(--card)}
.hubw-card h2,.hubw-card h3{margin:0 0 10px;font-family:var(--display);font-weight:800;font-size:17px;letter-spacing:-.015em;color:var(--bone)}
.hubw-card p{margin:0 0 14px;font-family:var(--body);font-size:14px;line-height:1.6;color:var(--mist)}
.hubw-card .hub-btn{width:100%;justify-content:center}
.hubw-dl{display:grid;grid-template-columns:max-content 1fr;gap:6px 16px;margin:0;font-family:var(--body);font-size:13.5px}
.hubw-dl dt{color:var(--mist-2)}
.hubw-dl dd{margin:0;color:var(--bone)}
.hubw-empty{margin:24px 0 var(--pad-section);font-family:var(--body);font-size:16px;color:var(--mist)}
