/* Home (media draft): hero + New releases + Inside NCEG news + Videos. Uses tokens from site.css. */
.hm { overflow-x: clip; }
.btn-dark { background: var(--bg); color: var(--text); }
.btn-dark:hover { background: var(--text); color: var(--bg); }

/* Rails: horizontal scrollers that snap, with room for focus rings */
.hm-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 16px; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.hm-rail > * { scroll-snap-align: start; }
.hm-empty { color: inherit; opacity: .75; padding: 24px 0; }

/* Pills (category / playlist filters) */
.hm-pills { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--surface); clip-path: var(--clip-sm); }
.hm-pills button { min-height: 36px; padding: 0 14px; border: 0; background: transparent; color: var(--muted); font: 700 12px/1 var(--head); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.hm-pills button:hover { color: var(--text); }
.hm-pills button[aria-selected="true"] { background: var(--lime); color: var(--bg); clip-path: var(--slash); }

/* 1 · Hero: B&W photo cut on a diagonal, headline on the right */
.hm-hero { position: relative; min-height: min(760px, 92vh); display: flex; align-items: center; border-bottom: 1px solid var(--border); background: var(--bg); }
.hm-hero-photo { position: absolute; inset: 0 auto 0 0; width: 54%; background: #000 url("https://static.wixstatic.com/media/fbcee9_c5a23b95504746138e374b29a5f04718~mv2.jpg/v1/fill/w_1400,h_1600,al_c,q_82/hero.jpg") center 30% / cover no-repeat; filter: grayscale(1) contrast(1.08); clip-path: polygon(0 0, 100% 0, 74% 100%, 0 100%); }
.hm-hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,21,26,0) 55%, rgba(20,21,26,.55) 100%); }
.hm-hero-inner { position: relative; width: 100%; display: grid; grid-template-columns: 1fr minmax(0, 560px); gap: 32px; padding-block: 64px; }
.hm-hero-copy, .hm-now { grid-column: 2; }
.hm-hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hm-hero-copy .h1 { font-size: clamp(52px, 6.4vw, 96px); }
.hm-hero-copy .h1::first-line { color: var(--lime); }
.hm-now { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.hm-now-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; aspect-ratio: 4 / 3; padding: 12px; text-decoration: none; color: var(--text); background: var(--surface) center / cover no-repeat; clip-path: var(--clip-sm); overflow: hidden; }
.hm-now-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,21,26,0) 30%, rgba(20,21,26,.92) 100%); }
.hm-now-card > * { position: relative; }
.hm-now-card .label { font-size: 10px; color: var(--lime); }
.hm-now-card b { font: 700 14px/1.2 var(--head); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hm-now-card:hover { outline: 2px solid var(--lime); outline-offset: -2px; }
.hm-now-card.is-loading { background-image: none; }
@media (max-width: 900px) {
  .hm-hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .hm-hero-photo { position: relative; width: 100%; height: 62vw; max-height: 520px; clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%); background-position: center 25%; }
  .hm-hero-photo::after { background: linear-gradient(180deg, rgba(20,21,26,0) 60%, rgba(20,21,26,.6) 100%); }
  .hm-hero-inner { grid-template-columns: 1fr; padding-block: 8px 48px; }
  .hm-hero-copy, .hm-now { grid-column: 1; }
}
@media (max-width: 520px) { .hm-now { grid-template-columns: 1fr 1fr; } .hm-now-card:nth-child(3) { display: none; } }

/* 2 · New releases: lime band */
.hm-band { background: var(--lime); color: var(--bg); }
.hm-band-inner { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 40px; align-items: center; padding-block: 64px; }
.hm-band-head { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.hm-band-head .label { color: var(--bg); opacity: .7; }
.hm-band-head p { font-size: 16px; }
.hm-releases .hm-rail { grid-auto-columns: minmax(220px, 250px); scrollbar-color: rgba(20,21,26,.35) transparent; }
.hm-rel { display: flex; flex-direction: column; background: var(--bg); color: var(--text); clip-path: var(--clip); }
.hm-rel .cover { aspect-ratio: 1; background: var(--surface); position: relative; }
.hm-rel .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-rel .cover .tag { position: absolute; left: 10px; top: 10px; }
.hm-rel .body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.hm-rel .t { font: 700 18px/1.2 var(--head); }
.hm-rel .x { color: var(--muted); font-size: 14px; }
.hm-rel .listen-row { padding-top: 8px; }
.hm-rel .listen-btn { min-height: 36px; font-size: 11px; }
@media (max-width: 900px) { .hm-band-inner { grid-template-columns: 1fr; gap: 24px; padding-block: 48px; } }

/* 3 · Inside NCEG news */
.hm-news-head { display: flex; flex-wrap: wrap; align-items: end; gap: 16px 28px; margin-bottom: 28px; }
.hm-news-head .hm-pills { margin-right: auto; }
.hm-more { font: 700 13px/1 var(--head); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--lime); }
.hm-rail-news { grid-auto-columns: minmax(260px, 320px); }
.hm-rail-news .post-card { height: 100%; }
.hm-rail-news .post-card .t { font-size: 19px; }

/* 4 · Videos: featured player + playlist rail over a darkened still */
.hm-videos { position: relative; isolation: isolate; padding-block: 72px; background: var(--surface); overflow: hidden; }
.hm-videos-bg { position: absolute; inset: 0; z-index: -1; background: center / cover no-repeat; filter: grayscale(1); opacity: .35; transition: background-image .3s; }
.hm-videos-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(20,21,26,.82) 45%, rgba(20,21,26,.95) 100%); }
.hm-videos-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: end; }
.hm-feature { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.hm-feature .h2 { font-size: clamp(34px, 4vw, 54px); }
.hm-feature .h2::before { content: ""; display: block; width: 72px; height: 6px; background: var(--lime); margin-bottom: 18px; }
.hm-play { display: inline-flex; align-items: center; gap: 14px; background: none; border: 0; padding: 0; color: var(--text); cursor: pointer; text-align: left; }
.hm-play-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--text); color: var(--bg); display: grid; place-items: center; transition: background .15s; }
.hm-play-ico svg { width: 26px; height: 26px; margin-left: 3px; }
.hm-play b { display: block; font: 700 18px/1.2 var(--head); }
.hm-play small { color: var(--muted); font-size: 13px; }
.hm-play:hover .hm-play-ico, .hm-play:focus-visible .hm-play-ico { background: var(--lime); }
.hm-play[disabled] { opacity: .5; cursor: default; }
.hm-player { width: 100%; aspect-ratio: 16 / 9; background: #000; clip-path: var(--clip); }
.hm-player iframe { width: 100%; height: 100%; border: 0; display: block; }
.hm-vid-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 20px; }
.hm-rail-vid { grid-auto-columns: minmax(220px, 260px); }
.hm-vid { display: flex; flex-direction: column; gap: 10px; background: none; border: 0; padding: 0; color: var(--text); text-align: left; cursor: pointer; }
.hm-vid .thumb { position: relative; aspect-ratio: 16 / 9; background: var(--bg) center / cover no-repeat; clip-path: var(--clip-sm); box-shadow: inset 0 0 0 0 var(--lime); transition: box-shadow .15s; }
.hm-vid .thumb .dur { position: absolute; right: 8px; bottom: 8px; padding: 2px 6px; background: rgba(20,21,26,.85); font: 600 11px/1.4 var(--head); letter-spacing: .06em; }
.hm-vid .t { font: 700 15px/1.25 var(--head); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hm-vid .m { font-size: 12px; color: var(--muted); }
.hm-vid:hover .t, .hm-vid[aria-current="true"] .t { color: var(--lime); }
.hm-vid[aria-current="true"] .thumb { box-shadow: inset 0 0 0 3px var(--lime); }
@media (max-width: 900px) { .hm-videos { padding-block: 48px; } .hm-videos-inner { grid-template-columns: 1fr; gap: 32px; } }.hm-play[hidden], .hm-player[hidden] { display: none; }
