/* Watch section (المرئيات): hub, item pages, homepage strip and the related shelf on record pages. */
.watch { --w-gap: 1.1rem; }
.watch .w-wrap { max-width: var(--wide, 1280px); margin: 0 auto; padding: var(--space-4, 1.8rem) var(--space-3, 1.15rem) var(--space-5, 3rem); }
.watch .w-head .kicker, .watch .w-feature .kicker { color: var(--clay); font-weight: 600; margin: 0; }
.watch .w-head h1 { margin: .2rem 0 .4rem; }
.watch .w-head .deck { color: var(--ink-soft); max-width: 44rem; margin: 0; }
.watch .w-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1.4rem 0 1.8rem; padding: 0; list-style: none; }
.watch .w-tabs a { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .95rem; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .95rem; background: var(--sheet); }
.watch .w-tabs a:hover, .watch .w-tabs a:focus-visible { border-color: var(--ink); }
.watch .w-tabs a[aria-current] { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.watch .w-tabs small { opacity: .7; font-variant-numeric: tabular-nums; }
.watch .w-empty { margin: 2rem 0; padding: 1.4rem; background: var(--mist); color: var(--ink); }
.watch h2.w-sec { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 2.4rem 0 1rem; font-size: 1.35rem; border-bottom: 1px solid var(--line); padding-bottom: .5rem; }
.watch h2.w-sec a, .watch .w-strip-head a, .watch .w-more a { font-size: .9rem; font-weight: 500; color: var(--clay); text-decoration: none; white-space: nowrap; }
.watch h2.w-sec a:hover, .watch .w-strip-head a:hover, .watch .w-more a:hover { text-decoration: underline; }

/* Posters: our own images, cropped to the card's shape. */
.watch .w-poster { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; background: #0b1b1d; border-radius: var(--radius); }
.watch .w-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .5s ease; }
.watch a:hover .w-poster img, .watch a:focus-visible .w-poster img, .watch .w-player-poster:hover img { transform: scale(1.025); filter: brightness(1.06); }
.watch .w-play { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%; background: rgba(25,45,52,.82); display: grid; place-items: center; box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.watch .w-play::before { content: ""; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent #fbfaf5; margin-left: 6px; }
.watch .w-badge { position: absolute; bottom: .6rem; inset-inline-end: .6rem; background: rgba(0,0,0,.72); color: #fff; font-size: .8rem; padding: .15rem .45rem; border-radius: 3px; font-variant-numeric: tabular-nums; }
.watch .w-meta { color: var(--ink-soft); font-size: .92rem; display: flex; gap: .2rem .6rem; flex-wrap: wrap; margin: .3rem 0 .8rem; }
.watch .w-title { margin: 0; line-height: 1.4; }

/* Click-to-play frame (16:9 or 9:16). */
.watch .w-player { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #0b1b1d; }
.watch .w-player.is-vertical { aspect-ratio: 9/16; max-width: 380px; margin-inline: auto; border-radius: 10px; }
.watch .w-player .w-player-poster { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.watch .w-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Latest documentary. */
.watch .w-feature { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.6rem; background: var(--sheet); border: 1px solid var(--line); padding: 1rem; }
.watch .w-feature h3 { font-size: 1.45rem; margin: .2rem 0; }
.watch .w-feature h3 a { color: var(--ink); text-decoration: none; }
.watch .w-feature h3 a:hover { text-decoration: underline; }
.watch .w-caption { margin: .4rem 0 .6rem; line-height: 1.75; }
.watch .w-chapters { list-style: none; padding: 0; margin: .6rem 0; border-top: 1px solid var(--line); }
.watch .w-chapters li { border-bottom: 1px dashed var(--line); font-size: .93rem; }
.watch .w-chapters a { display: flex; gap: .7rem; padding: .38rem 0; color: var(--ink); text-decoration: none; }
.watch .w-chapters a:hover span, .watch .w-chapters a:focus-visible span { text-decoration: underline; }
.watch .w-chapters time { color: var(--clay); font-variant-numeric: tabular-nums; min-width: 3.2rem; direction: ltr; text-align: start; }
.watch .w-chips { display: flex; gap: .4rem; flex-wrap: wrap; margin: .8rem 0 0; padding: 0; list-style: none; }
.watch .w-chips a { display: inline-block; font-size: .85rem; padding: .25rem .65rem; background: var(--mist); border-radius: 999px; color: var(--ink); text-decoration: none; }
.watch .w-chips a:hover, .watch .w-chips a:focus-visible { background: var(--line); }
.watch .w-more { margin: .6rem 0 0; }

/* Cards. */
.watch .w-films { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--w-gap); margin-top: var(--w-gap); }
.watch .w-card { display: block; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); }
.watch .w-card .w-poster { border-radius: 0; }
.watch .w-card .w-body { display: block; padding: .7rem .85rem .9rem; }
.watch .w-card .w-title { font-size: 1.05rem; margin: 0 0 .25rem; }
.watch .w-card:hover .w-title, .watch .w-card:focus-visible .w-title { text-decoration: underline; }
.watch .w-reels { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(160px, 190px); gap: var(--w-gap); overflow-x: auto; padding-bottom: .6rem; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.watch .w-reels.is-grid { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); overflow: visible; }
.watch .w-reel { display: block; scroll-snap-align: start; text-decoration: none; color: var(--ink); min-width: 0; }
.watch .w-reel .w-poster { aspect-ratio: 9/16; border-radius: 8px; }
.watch .w-reel .w-play { width: 48px; height: 48px; }
.watch .w-reel .w-play::before { border-width: 9px 0 9px 15px; margin-left: 4px; }
.watch .w-reel .w-title { font-size: .95rem; margin: .5rem 0 .15rem; line-height: 1.35; }
.watch .w-reel:hover .w-title, .watch .w-reel:focus-visible .w-title { text-decoration: underline; }
.watch .w-reel small { color: var(--ink-soft); }
.watch .w-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--w-gap); }
.watch .w-post .w-poster { aspect-ratio: 4/5; background-color: var(--paper); }
.watch .w-post .w-badge { top: .6rem; bottom: auto; inset-inline-end: auto; inset-inline-start: .6rem; }
.watch .w-stories { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.watch .w-story { display: block; width: 150px; text-decoration: none; color: var(--ink); }
.watch .w-story .w-poster { aspect-ratio: 9/16; outline: 3px solid var(--clay); outline-offset: 3px; border-radius: 10px; }
.watch .w-story small { display: block; color: var(--ink-soft); margin-top: .55rem; line-height: 1.5; }
.watch .w-story:hover small, .watch .w-story:focus-visible small { color: var(--ink); text-decoration: underline; }
.watch .w-auto { margin-top: 2.6rem; padding: 1rem 1.1rem; background: var(--mist); border-inline-start: 4px solid var(--clay); font-size: .95rem; color: var(--ink); }
.watch a:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

/* Item pages. */
.watch.w-detail .crumbs { margin-bottom: 1rem; }
.watch .w-hidden-note { background: #fff4d6; border: 1px solid #e0c27a; padding: .5rem .8rem; }
.watch .w-detail-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 1.6rem 2rem; align-items: start; margin-top: 1rem; }
.watch .w-detail-grid.is-vertical { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); }
.watch .w-detail-side h2 { font-size: 1.1rem; margin: 0 0 .5rem; }
.watch .w-detail-side .w-chips + h2, .watch .w-detail-side .w-chapters + h2 { margin-top: 1.4rem; }
.watch .w-detail-reel .w-head h1, .watch .w-detail-film .w-head h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.watch .w-note { font-size: .82rem; color: var(--ink-soft); margin: .5rem 0; }
.watch .w-subtitles { margin: .6rem 0; padding: .6rem .8rem; background: var(--mist); font-size: .92rem; }
.watch .w-also { margin: .8rem 0; font-size: .92rem; }
.watch .w-also a { color: var(--clay); }
.watch .w-actions { margin: 1rem 0 .4rem; }
.watch .w-actions .button { display: inline-flex; gap: .4rem; align-items: center; padding: .55rem 1rem; background: var(--ink); color: var(--ivory); text-decoration: none; border-radius: var(--radius); }
.watch .w-actions .button:hover { background: var(--clay-deep); }
.watch .w-from { color: var(--ink-soft); font-size: .92rem; }
.watch .w-slides { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--w-gap); margin: 1.4rem 0 .4rem; }
.watch .w-story-view { max-width: 420px; margin: 1.4rem auto .4rem; }
.watch .w-slide { margin: 0; }
.watch .w-slide a { display: block; border: 1px solid var(--line); background: var(--paper); cursor: zoom-in; }
.watch .w-slide img { display: block; width: 100%; height: auto; }
.watch .w-story-view .w-slide a { border-radius: 10px; overflow: hidden; outline: 3px solid var(--clay); outline-offset: 3px; }
.watch .w-slide figcaption { font-size: .8rem; color: var(--ink-soft); margin-top: .3rem; text-align: center; font-variant-numeric: tabular-nums; }

/* Homepage strip and record-page shelf. */
.watch.watch-strip { margin: 2.6rem 0; padding: 1.2rem 0 0; border-top: 1px solid var(--line); }
.watch .w-strip-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1rem; }
.watch .w-strip-head h2 { margin: .15rem 0 0; }
.watch .w-strip-head .kicker { color: var(--clay); font-weight: 600; margin: 0; }
.watch .w-strip { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 2fr); gap: var(--w-gap); align-items: start; }
.watch .w-strip.is-single { grid-template-columns: minmax(0, 1fr); }
.watch .w-strip-reels { grid-auto-columns: minmax(130px, 160px); }
.watch.watch-related { margin: 0 0 2.2rem; }
.watch.watch-related h2.w-sec { margin-top: 1.2rem; }
.watch .w-row { display: flex; gap: var(--w-gap); overflow-x: auto; padding-bottom: .6rem; scroll-snap-type: x mandatory; align-items: start; }
.watch .w-row-item { flex: 0 0 150px; scroll-snap-align: start; }
.watch .w-row-item.is-film { flex-basis: 300px; }
.watch .w-row-item.is-post { flex-basis: 190px; }
.watch .w-row-item.is-story .w-story { width: auto; }

@media (max-width: 760px) {
  .watch .w-feature { grid-template-columns: 1fr; padding: .75rem; }
  .watch .w-reels { grid-auto-columns: 44%; }
  .watch .w-strip { grid-template-columns: 1fr; }
  .watch .w-strip-reels { grid-auto-columns: 40%; }
  .watch .w-detail-grid, .watch .w-detail-grid.is-vertical { grid-template-columns: 1fr; }
  .watch .w-slides { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 85%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
  .watch .w-slide { scroll-snap-align: center; }
  .watch .w-films { grid-template-columns: 1fr; }
  .watch .w-posts { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
  .watch .w-stories { gap: .9rem; }
  .watch .w-story { width: calc(50% - .5rem); max-width: 170px; }
  .watch .w-row-item.is-film { flex-basis: 78%; }
}
@media (prefers-reduced-motion: reduce) { .watch .w-poster img { transition: none; } }

/* "Live now" strip at the top of the hub, leading to /live. */
.watch .w-live { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .8rem; margin: 1.3rem 0 .2rem; padding: .8rem 1.1rem; background: #fbf0ea; border: 1px solid #ecc9bd; border-inline-start: 4px solid #c4302b; border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.watch .w-live strong { color: #9e2a22; }
.watch .w-live .w-live-text { flex: 1 1 16rem; min-width: 0; color: var(--ink-soft); }
.watch .w-live .w-live-go { font-weight: 600; color: #9e2a22; white-space: nowrap; }
.watch .w-live:hover .w-live-go, .watch .w-live:focus-visible .w-live-go { text-decoration: underline; }

/* Homepage shelves (includes/watch_strip.html): documentaries, then the Illustrated Tales, then short clips. */
.watch-home-films .w-home-films { margin-top: 0; }
.w-home-tales { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); }
.w-home-tales li { margin: 0; }
.w-tale-card { display: block; block-size: 100%; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius, 12px); overflow: hidden; color: var(--ink); text-decoration: none; }
.w-tale-cover { display: block; aspect-ratio: 16 / 9; background: #1D4D50; }
.w-tale-cover img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }
.w-tale-text { display: flex; flex-direction: column; gap: .15rem; padding: .55rem .7rem .7rem; }
.w-tale-text strong { font-size: .95rem; line-height: 1.35; }
.w-tale-text small { color: var(--ink-soft); font-size: .78rem; }
.w-tale-card:is(:hover, :focus-visible) strong { text-decoration: underline; }
@media (max-width: 40rem) {
  .watch-home-films .w-home-films { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-block-end: .4rem; }
  .watch-home-films .w-home-films > * { scroll-snap-align: start; }
  .w-home-tales { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .w-tale-text { padding: .45rem .55rem .6rem; }
  .w-tale-text strong { font-size: .88rem; }
}
