/* ==========================================================================
   CROWN Scout Girls — Homepage layout
   Ported from design_handoff_w25_recruiting_platform/screens/CROWN Homepage.html
   All rules scoped under .csg-home so they never leak into legacy pages.

   Data constraints from W-25 README (enforced in template + reflected here):
   - No date columns or "N ago" stamps rendered anywhere on this page.
     CSS classes .csg-home .story .dt and .csg-home .wrow .ago were
     intentionally dropped (the design source had them; production must not).
   - Player movement rows are D1 / U SPORTS only; the template filters.
   ========================================================================== */

.csg-home { background: #fff; color: #2A2A2A; }
.csg-home .csg-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* --- Shared bits ------------------------------------------------------- */
.csg-home .chip {
  font-family: var(--font-ui); font-weight: 600; font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 11px; border: 1px solid #DADADA; color: #444;
  border-radius: var(--radius-sm); background: #F6F6F6; display: inline-block;
}
.csg-home .chip--red { background: var(--csg-red); border-color: var(--csg-red); color: #fff; }

.csg-home .stars { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; color: #BBB; }
.csg-home .stars .f { color: var(--csg-red); }

.csg-home .imgslot {
  position: relative; overflow: hidden; background: transparent;
  display: block; /* required so aspect-ratio applies on <a> containers */
}
.csg-home .imgslot img { width: 100%; height: 100%; object-fit: contain; display: block; }
.csg-home .imgslot__ph {
  object-fit: contain !important; padding: 12%; opacity: 0.55; background: #F2F2F2;
}

/* Section headers */
.csg-home .sec-hd {
  display: flex; align-items: center; gap: 12px;
  border-bottom: 2px solid #E4E4E4; padding-bottom: 10px; margin-bottom: 18px;
}
.csg-home .sec-hd .dot { width: 9px; height: 9px; background: var(--csg-red); flex: none; }
.csg-home .sec-hd h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  letter-spacing: 0.12em; text-transform: uppercase; color: #111; margin: 0;
}
.csg-home .sec-hd .r { margin-left: auto; font-family: var(--font-ui); font-size: 12px; letter-spacing: 0.04em; }
.csg-home .sec-hd .r a { color: var(--csg-red); text-decoration: none; }

/* --- Hero -------------------------------------------------------------- */
.csg-home .lead { padding: 34px 0 30px; }
.csg-home .lead-grid { display: grid; grid-template-columns: 1fr 348px; gap: 40px; align-items: start; }
.csg-home .feat .fimg {
  aspect-ratio: 16 / 9; position: relative; border-radius: var(--radius-md);
  overflow: hidden; box-shadow: 0 0 0 1px #E4E4E4;
}
.csg-home .feat .fimg .flag { position: absolute; left: 16px; top: 16px; }
.csg-home .feat .fh {
  font-family: var(--font-display); font-weight: 700; font-size: 52px;
  line-height: 1.02; letter-spacing: 0.01em; text-transform: uppercase;
  color: #111; margin: 16px 0 0;
}
.csg-home .feat .rule { width: 60px; height: 3px; background: var(--csg-red); margin: 16px 0; }
.csg-home .feat .fsub { font-family: var(--font-body); font-size: 20px; line-height: 1.5; color: #222; max-width: 44ch; }
.csg-home .feat .byl {
  font-family: var(--font-ui); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: #666; margin-top: 14px;
}

/* Right rail */
.csg-home .rail { display: flex; flex-direction: column; gap: 24px; }
.csg-home .story { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #EDEDED; text-decoration: none; }
.csg-home .story:last-child { border-bottom: 0; }
.csg-home .story .im { width: 96px; height: 64px; flex: none; border-radius: var(--radius-sm); overflow: hidden; position: relative; }
.csg-home .story .tx { flex: 1; min-width: 0; }
.csg-home .story .tag {
  font-family: var(--font-ui); font-weight: 700; font-size: 9px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--csg-red);
}
.csg-home .story h4 {
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  line-height: 1.12; text-transform: uppercase; color: #111; margin: 4px 0 0;
}

/* Upsell */
.csg-home .upsell {
  border: 1px solid var(--csg-red); border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(237,0,0,.08), rgba(255,255,255,0));
  padding: 22px;
}
.csg-home .upsell h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; text-transform: uppercase; color: #111; margin: 0 0 8px; }
.csg-home .upsell p  { font-family: var(--font-body); font-size: 14px; color: #333; margin: 0 0 16px; line-height: 1.55; }
.csg-home .upsell ul { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.csg-home .upsell li { font-family: var(--font-ui); font-size: 13px; color: #222; padding-left: 20px; position: relative; }
.csg-home .upsell li::before { content: ""; position: absolute; left: 0; top: 6px; width: 9px; height: 9px; background: var(--csg-red); border-radius: 2px; }

/* --- Latest grid ------------------------------------------------------- */
.csg-home .band { padding: 28px 0; border-top: 1px solid #E4E4E4; }
.csg-home .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.csg-home .acard { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.csg-home .acard .im { aspect-ratio: 16 / 10; position: relative; border-radius: var(--radius-md); overflow: hidden; box-shadow: 0 0 0 1px #E4E4E4; }
.csg-home .acard .bd { padding: 12px 2px 0; }
.csg-home .acard .tag { font-family: var(--font-ui); font-weight: 700; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--csg-red); }
.csg-home .acard h4  { font-family: var(--font-display); font-weight: 700; font-size: 21px; line-height: 1.1; text-transform: uppercase; color: #111; margin: 7px 0 6px; }
.csg-home .acard p   { font-family: var(--font-body); font-size: 14px; line-height: 1.5; color: #333; margin: 0; }
.csg-home .acard .dt { font-family: var(--font-ui); font-size: 11px; letter-spacing: 0.04em; color: #777; margin-top: 8px; }

/* --- Commitments ------------------------------------------------------- */
.csg-home .cmt-band { background: #FAFAFA; }
.csg-home .cmt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.csg-home .cmt { position: relative; border-radius: var(--radius-md); overflow: hidden; box-shadow: 0 0 0 1px #E4E4E4; display: block; text-decoration: none; color: inherit; }
.csg-home .cmt .im   { aspect-ratio: 4 / 5; position: relative; }
.csg-home .cmt .grad { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.85) 4%, rgba(0,0,0,.35) 42%, transparent 66%); pointer-events: none; }
.csg-home .cmt .flag { position: absolute; left: 14px; top: 14px; }
.csg-home .cmt .info { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; color: #fff; }
.csg-home .cmt .nm     { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1; text-transform: uppercase; letter-spacing: 0.01em; }
.csg-home .cmt .meta   { font-family: var(--font-ui); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: #D8D8D8; margin-top: 6px; }
.csg-home .cmt .school { font-family: var(--font-display); font-weight: 600; font-size: 15px; text-transform: uppercase; color: #fff; margin-top: 9px; display: flex; align-items: center; gap: 8px; }
.csg-home .cmt .school em { font-style: normal; color: var(--csg-red); font-size: 18px; }

/* --- Film Room (dark) --------------------------------------------------- */
.csg-home .film { background: #151515; padding: 42px 0; position: relative; }
.csg-home .film .sec-hd { border-bottom-color: #343434; }
.csg-home .film .sec-hd h3   { color: #fff; }
.csg-home .film .sec-hd .r a { color: #fff; }
.csg-home .film-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 26px; align-items: start; }
.csg-home .vfeat { position: relative; display: block; text-decoration: none; }
.csg-home .vfeat .im { aspect-ratio: 16 / 9; position: relative; border-radius: var(--radius-md); overflow: hidden; }
.csg-home .vfeat .bd { padding: 14px 2px 0; }
.csg-home .vfeat .tag { font-family: var(--font-ui); font-weight: 700; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--csg-red); }
.csg-home .vfeat h4   { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1.08; text-transform: uppercase; color: #fff; margin: 8px 0 0; }
.csg-home .vfeat .dt  { font-family: var(--font-ui); font-size: 11px; color: #9A9A9A; margin-top: 7px; }
.csg-home .vlist { display: flex; flex-direction: column; }
.csg-home .vrow { display: flex; gap: 13px; align-items: center; padding: 11px 0; border-top: 1px solid #2A2A2A; text-decoration: none; }
.csg-home .vrow:first-child { border-top: 0; padding-top: 0; }
.csg-home .vrow .im { width: 118px; height: 70px; flex: none; border-radius: var(--radius-sm); overflow: hidden; position: relative; }
.csg-home .vrow .tx { flex: 1; min-width: 0; }
.csg-home .vrow .tag { font-family: var(--font-ui); font-weight: 700; font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--csg-red); }
.csg-home .vrow h5   { font-family: var(--font-display); font-weight: 600; font-size: 15px; line-height: 1.12; text-transform: uppercase; color: #EDEDED; margin: 3px 0 0; }

/* Play button + duration */
.csg-home .play { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.csg-home .play span { width: 52px; height: 52px; border-radius: 50%; background: rgba(0,0,0,.55); border: 2px solid #fff; display: grid; place-items: center; }
.csg-home .play span::after { content: ""; border-left: 15px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }
.csg-home .play.sm span { width: 34px; height: 34px; }
.csg-home .play.sm span::after { border-left-width: 10px; border-top-width: 6px; border-bottom-width: 6px; margin-left: 3px; }
.csg-home .dur { position: absolute; right: 7px; bottom: 7px; font-family: var(--font-ui); font-weight: 700; font-size: 10px; letter-spacing: 0.04em; color: #fff; background: rgba(0,0,0,.72); padding: 2px 6px; border-radius: 3px; }
.csg-home .vrow .dur { right: 5px; bottom: 5px; font-size: 9px; padding: 1px 5px; }

/* --- Buzz -------------------------------------------------------------- */
.csg-home .buzz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.csg-home .buzz { display: flex; gap: 15px; align-items: center; border: 1px solid #E4E4E4; border-radius: var(--radius-md); padding: 16px 18px; background: #fff; text-decoration: none; color: inherit; }
.csg-home .buzz .num { font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 0.8; color: var(--csg-red); flex: none; width: 42px; }
.csg-home .buzz .im  { width: 74px; height: 74px; flex: none; border-radius: var(--radius-sm); overflow: hidden; position: relative; background: #F2F2F2; }
.csg-home .buzz .tx  { flex: 1; min-width: 0; }
.csg-home .buzz .tag { font-family: var(--font-ui); font-weight: 700; font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--csg-red); display: flex; align-items: center; gap: 5px; }
.csg-home .buzz .tag svg { width: 11px; height: 11px; }
.csg-home .buzz h4  { font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 1.12; text-transform: uppercase; color: #111; margin: 5px 0 0; }
.csg-home .buzz .src{ font-family: var(--font-ui); font-size: 11px; color: #888; margin-top: 5px; }

/* --- Bottom split: Board + Wire ---------------------------------------- */
.csg-home .split { display: grid; grid-template-columns: 1fr 348px; gap: 40px; align-items: start; }
.csg-home .board-wrap { position: relative; }
.csg-home .board.is-locked { filter: blur(5px); pointer-events: none; user-select: none; }
.csg-home .veil {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.4), rgba(255,255,255,.82));
  border-radius: var(--radius-md);
}
.csg-home .veil .card {
  text-align: center; background: #fff; border: 1px solid var(--csg-red);
  border-radius: var(--radius-md); padding: 26px 30px;
  box-shadow: 0 12px 34px rgba(0,0,0,.14); max-width: 360px;
}
.csg-home .veil .lock { width: 44px; height: 44px; border-radius: 50%; background: var(--csg-red); display: grid; place-items: center; margin: 0 auto 14px; }
.csg-home .veil .lock svg { width: 20px; height: 20px; color: #fff; }
.csg-home .veil h4 { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.05; text-transform: uppercase; color: #111; margin: 0 0 8px; }
.csg-home .veil p  { font-family: var(--font-body); font-size: 14px; line-height: 1.5; color: #333; margin: 0 0 16px; }

.csg-home .board { border: 1px solid #E4E4E4; border-radius: var(--radius-md); overflow: hidden; }
.csg-home .brow { display: flex; align-items: center; gap: 16px; padding: 13px 18px; border-bottom: 1px solid #EDEDED; }
.csg-home .brow:last-child { border-bottom: 0; }
.csg-home .brow .rk { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: #111; width: 40px; flex: none; text-align: center; }
.csg-home .brow .rk.top { color: var(--csg-red); }
.csg-home .brow .av { width: 44px; height: 44px; flex: none; border-radius: 50%; overflow: hidden; position: relative; background: #F2F2F2; box-shadow: 0 0 0 1px #E4E4E4; }
.csg-home .brow .who { flex: 1; min-width: 0; }
.csg-home .brow .who .nm  { font-family: var(--font-display); font-weight: 600; font-size: 16px; text-transform: uppercase; color: #111; }
.csg-home .brow .who .sub { font-family: var(--font-ui); font-size: 12px; color: #666; margin-top: 2px; }

.csg-home .wire { border: 1px solid #E4E4E4; border-radius: var(--radius-md); overflow: hidden; }
.csg-home .wrow { display: flex; align-items: center; gap: 11px; padding: 13px 16px; border-bottom: 1px solid #EDEDED; }
.csg-home .wrow:last-child { border-bottom: 0; }
.csg-home .wrow .live {
  font-family: var(--font-ui); font-weight: 700; font-size: 9px;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--csg-red); color: #fff; padding: 3px 7px;
  border-radius: var(--radius-sm); flex: none;
}
.csg-home .wrow .mv { flex: 1; min-width: 0; font-family: var(--font-display); font-weight: 600; font-size: 15px; text-transform: uppercase; color: #111; }
.csg-home .wrow .mv em { font-style: normal; color: var(--csg-red); }
.csg-home .wrow .lvl {
  font-family: var(--font-ui); font-weight: 700; font-size: 9px;
  letter-spacing: 0.1em; text-transform: uppercase; color: #666; flex: none;
}

/* --- Responsive -------------------------------------------------------- */
@media (max-width: 1080px) {
  .csg-home .lead-grid,
  .csg-home .split,
  .csg-home .film-grid { grid-template-columns: 1fr; gap: 28px; }
  .csg-home .feat .fh { font-size: 40px; }
  .csg-home .vlist { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; }
}
@media (max-width: 720px) {
  .csg-home .csg-wrap { padding: 0 16px; }
  .csg-home .grid3,
  .csg-home .cmt-grid,
  .csg-home .buzz-grid { grid-template-columns: 1fr; }
  .csg-home .vlist { grid-template-columns: 1fr; }
  .csg-home .feat .fh   { font-size: 32px; }
  .csg-home .feat .fsub { font-size: 17px; }
}
