/* ==========================================================================
   Site-wide: sidebar sections, dashboard, My Bag, friends, channel
   (loaded after app.css)
   ========================================================================== */

/* ---------- Sidebar sections ---------- */
.menu { gap: 22px; }
.menu-group { position: relative; }
.menu-item { font-size: 30px; transition: color .2s; }
.menu-item:not(.is-active) { color: #8a8a8a; }
.menu-item:not(.is-active):hover { color: var(--white); }
.menu-item.is-active { color: var(--white); }
.menu-badge {
  position: absolute; top: -6px; left: 132px; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--red); color: var(--white); font-size: 11px; font-weight: 600; line-height: 18px; text-align: center;
}
.menu-group .steps { margin-top: 14px; }
.submenu { list-style: none; margin: 12px 0 0; padding: 0 0 0 20px; border-left: 1px solid #222; }
.submenu a { display: flex; align-items: center; gap: 8px; padding: 7px 0; color: #8a8a8a; text-decoration: none; font-size: 14px; transition: color .2s; }
.submenu a:hover { color: var(--white); }
.submenu a.on { color: var(--white); }
.submenu a.on::before { content: ""; width: 6px; height: 6px; background: var(--red); margin-left: -23px; margin-right: 11px; }
.pill { display: inline-block; min-width: 18px; padding: 1px 6px; background: var(--red); color: var(--white); font-size: 11px; font-weight: 600; text-align: center; }
.pill-dark { background: var(--black); vertical-align: middle; font-family: var(--body); font-style: normal; font-size: 13px; }
.menu-sub-btn { display: block; margin: 10px 0 0 20px; background: none; border: 0; padding: 0; cursor: pointer; color: var(--white); font-family: var(--display); font-style: italic; font-weight: 700; text-transform: uppercase; font-size: 20px; }
.menu-sub-btn:disabled { color: #3c3c3c; cursor: default; }
.menu-sub-btn.is-active::before { content: ""; display: inline-block; width: 7px; height: 7px; background: var(--red); margin-right: 8px; vertical-align: 3px; }

.side-foot { margin-top: 28px; display: grid; gap: 14px; }
.socials { display: flex; gap: 8px; flex-wrap: wrap; }
.social {
  width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #333; color: var(--white);
  text-decoration: none; font-size: 11px; font-weight: 600; letter-spacing: .02em; transition: background .2s, border-color .2s;
}
.social img { width: 16px; height: 16px; object-fit: contain; }
.social:hover { background: var(--red); border-color: var(--red); }
.side-note { font-size: 11px; color: #555; }

/* ---------- Mobile drawer ---------- */
.burger { display: none; }
.mobile-title { flex: 1; font-family: var(--display); font-style: italic; font-weight: 700; font-size: 22px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 30; }
@media (max-width: 860px) {
  .sidebar {
    display: flex; width: min(320px, 86vw); z-index: 40; transform: translateX(-100%);
    transition: transform .3s var(--ease); padding-top: max(28px, env(safe-area-inset-top));
  }
  body.menu-open .sidebar { transform: none; }
  body.menu-open { overflow: hidden; }
  .burger { display: grid; gap: 5px; width: 40px; height: 40px; place-content: center; background: none; border: 0; cursor: pointer; flex: none; }
  .burger span { display: block; width: 22px; height: 2px; background: var(--white); transition: transform .25s, opacity .2s; }
  body.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-open .burger span:nth-child(2) { opacity: 0; }
  body.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Shared bits ---------- */
.stage-wide { max-width: 1320px; }
.muted-text { color: var(--grey-4); font-size: 14px; }
.chip-link { background: none; cursor: pointer; text-decoration: none; color: var(--black); font: inherit; font-size: 13px; transition: background .2s, color .2s; }
.chip-link:hover { background: var(--black); color: var(--white); }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--red); }
.empty a, .section-sub a, .q-sub a, .form-foot a, .back-link a { color: inherit; text-underline-offset: 3px; }
.empty a:hover, .section-sub a:hover, .form-foot a:hover, .back-link a:hover { color: var(--red); }
.section-title-sm { font-size: 36px; margin-top: 44px; margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.section-title-flush { margin: 0; }
.back-link { margin: 0 0 18px; font-size: 14px; }
.alert { border: 2px solid var(--red); padding: 12px 16px; margin: 0 0 20px; font-size: 14px; background: #fff5f4; }
.alert-ok { border-color: var(--black); background: var(--grey-1); }
.alert-link { display: block; border-color: var(--black); background: var(--black); color: var(--white); text-decoration: none; font-weight: 600; }
.alert-link:hover { background: var(--red); border-color: var(--red); }
.btn-danger { background: var(--white); color: var(--red); border-color: var(--red); }
.btn-danger:hover { background: var(--red); color: var(--white); }

/* avatars */
.avatar { display: inline-grid; place-items: center; flex: none; background: var(--black); color: var(--white); font-family: var(--display); font-style: italic; font-weight: 700; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 36px; height: 36px; font-size: 16px; }
.avatar-md { width: 48px; height: 48px; font-size: 20px; }
.avatar-lg { width: 96px; height: 96px; font-size: 40px; }

/* light forms */
.form-light { display: grid; gap: 16px; max-width: 560px; }
.form-light .field label { color: var(--grey-4); }
.form-light .field input {
  height: 52px; padding: 0 16px; border: 2px solid var(--black); background: var(--white); color: var(--black);
  font: 16px var(--body); border-radius: 0; width: 100%;
}
.form-light .field input[type=file] { height: auto; padding: 10px; border-style: dashed; }
.form-light .field input:focus { outline: none; border-color: var(--red); }
.form-light .btn { justify-self: start; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.opt { text-transform: none; letter-spacing: 0; color: var(--grey-3); }
.check-light { color: var(--grey-4); }
.form-foot { margin: 0; font-size: 14px; }
.tabs-row { display: flex; gap: 0; margin-bottom: 24px; border-bottom: 2px solid var(--black); max-width: 560px; }
.tab { padding: 12px 20px; text-decoration: none; color: var(--grey-3); font-family: var(--display); font-style: italic; font-weight: 700; text-transform: uppercase; font-size: 22px; }
.tab.on { background: var(--black); color: var(--white); }
.tab:not(.on):hover { color: var(--black); }
.panel-light { border: 2px solid var(--black); padding: 28px; max-width: 760px; margin-bottom: 20px; }
.panel-title { font-size: 30px; margin: 0; }
.danger-zone { border-color: var(--grey-2); }
.avatar-edit { display: flex; gap: 20px; align-items: center; }
.seg { display: flex; border: 2px solid var(--black); height: 52px; }
.seg label { flex: 1; display: flex; cursor: pointer; position: relative; min-width: 0; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { flex: 1; display: grid; place-items: center; font-size: 14px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--black); }
.seg input:checked + span { background: var(--black); color: var(--white); }
.seg input:focus-visible + span { outline: 3px solid var(--red); outline-offset: -3px; }

/* ---------- Dashboard ---------- */
.dash { display: grid; gap: 40px; }
.dash-hero { display: grid; gap: 28px; }
.type-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.type-tile { border: 2px solid var(--black); text-decoration: none; color: var(--black); display: flex; flex-direction: column; transition: background .2s, color .2s, transform .2s var(--ease); }
.type-tile:hover { background: var(--black); color: var(--white); transform: translateY(-2px); }
.tile-img { aspect-ratio: 1; background: var(--grey-1); display: grid; place-items: center; overflow: hidden; }
.tile-img img { width: 70%; height: 70%; object-fit: contain; transition: transform .35s var(--ease); }
.type-tile:hover .tile-img { background: #161616; }
.type-tile:hover .tile-img img { transform: scale(1.06) rotate(-3deg); filter: invert(1); }
.tile-label { padding: 10px 12px; font-family: var(--display); font-style: italic; font-weight: 700; text-transform: uppercase; font-size: 20px; line-height: 1; }

.ad { position: relative; }
.ad-live img { width: 100%; display: block; }
.ad-label { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,.7); color: var(--white); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 6px; z-index: 1; }
.ad-placeholder {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  min-height: 200px; padding: 32px 36px; color: var(--white);
  background: repeating-linear-gradient(-45deg, #0b0b0b 0 14px, #141414 14px 28px);
  border-left: 8px solid var(--red);
}
.ad-kicker { display: block; color: var(--red); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.ad-head { display: block; font-family: var(--display); font-style: italic; font-weight: 700; text-transform: uppercase; font-size: 56px; line-height: .95; margin: 6px 0 10px; }
.ad-copy p { margin: 0; color: #aaa; max-width: 520px; line-height: 1.5; font-size: 14px; }
.ad-spec { display: grid; gap: 6px; justify-items: end; font-size: 12px; color: #777; }
.ad-spec .btn { margin-top: 8px; background: var(--red); border-color: var(--red); }
.ad-spec .btn:hover { background: var(--white); border-color: var(--white); color: var(--black); }

.dash-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.dash-panel { border: 2px solid var(--black); padding: 22px; display: grid; gap: 16px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.panel-head-out { margin-bottom: 18px; }
.panel-head-title { font-size: 34px; line-height: 1; margin: 0; }
.panel-link { font-size: 14px; font-weight: 600; color: var(--black); text-decoration: none; white-space: nowrap; }
.panel-link:hover { color: var(--red); }
.vid-mini-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.vid-mini-row .vid-title { font-size: 13px; }
.mini-profile { display: flex; gap: 14px; align-items: center; }
.mini-profile strong { display: block; font-size: 16px; }
.mini-bag { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mini-bag li { display: flex; gap: 12px; align-items: center; border-bottom: 1px solid var(--grey-2); padding-bottom: 8px; font-size: 14px; font-weight: 600; }
.mini-bag img { width: 44px; height: 44px; object-fit: contain; background: var(--grey-1); padding: 4px; flex: none; }
.mini-bag small { display: block; font-weight: 400; color: var(--grey-4); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.dash-bag-links { display: flex; gap: 8px; flex-wrap: wrap; }
.bag-cta p { margin: 8px 0 18px; color: var(--grey-4); line-height: 1.5; }
.cta-head { display: block; font-family: var(--display); font-style: italic; font-weight: 700; text-transform: uppercase; font-size: 34px; line-height: .95; }
.cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }

.pcard { border: 2px solid var(--black); display: flex; flex-direction: column; }
.pcard-img { background: var(--grey-1); aspect-ratio: 1; display: grid; place-items: center; position: relative; padding: 22px; }
.pcard-img img { max-height: 100%; width: 78%; object-fit: contain; }
.pcard-img .pick-tag { font-size: 17px; padding: 6px 10px; }
.pcard-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.pcard-body .btn { margin-top: auto; width: 100%; white-space: normal; height: auto; min-height: 40px; padding: 8px 12px; line-height: 1; font-size: 17px; text-align: center; }

/* ---------- Channel ---------- */
.vid-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
.vid-grid .vid-feature { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 4px 28px; align-items: end; }
.vid-grid .vid-feature .vid-thumb { grid-row: span 2; }
.vid-grid .vid-feature .vid-title { font-size: 38px; }
.vid-card { display: grid; gap: 8px; text-decoration: none; color: var(--black); align-content: start; }
.vid-thumb { position: relative; display: block; aspect-ratio: 16/9; background: var(--black); overflow: hidden; }
.vid-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease), opacity .3s; }
.vid-card:hover .vid-thumb img { transform: scale(1.04); opacity: .85; }
.vid-play {
  position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; transform: translate(-50%, -50%) scale(.9);
  background: var(--red); opacity: 0; transition: opacity .25s, transform .25s var(--ease);
}
.vid-play::after { content: ""; position: absolute; left: 23px; top: 18px; border-left: 16px solid var(--white); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.vid-card:hover .vid-play, .vid-card:focus-visible .vid-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.vid-feature .vid-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.vid-dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.85); color: var(--white); font-size: 12px; font-weight: 600; padding: 2px 6px; }
.vid-title { font-family: var(--display); font-style: italic; font-weight: 700; text-transform: uppercase; font-size: 22px; line-height: 1; transition: color .2s; }
.vid-card:hover .vid-title { color: var(--red); }
.vid-meta { font-size: 13px; color: var(--grey-4); }
.dash .vid-feature { display: grid; gap: 8px; }
.dash .vid-feature .vid-title { font-size: 30px; }

.video-page { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; align-items: start; }
.player { position: relative; aspect-ratio: 16/9; background: var(--black); scroll-margin-top: 80px; }
.player iframe, .player #ytPlayer { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-title { font-size: clamp(32px, 4vw, 52px); line-height: .92; margin: 22px 0 8px; }
.video-meta { color: var(--grey-4); font-size: 14px; }
.video-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 16px; }
.video-actions .btn.is-on { background: var(--black); }
.video-desc { border-top: 2px solid var(--black); padding-top: 16px; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; position: relative; }
.video-desc.clamped { max-height: 220px; overflow: hidden; }
.video-desc.clamped::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: linear-gradient(transparent, var(--white)); }
.video-desc a { color: var(--black); text-underline-offset: 3px; }
.video-desc a.ts { color: var(--red); font-weight: 600; text-decoration: none; }
.video-desc a:hover { color: var(--red); }
.video-note { font-size: 12px; color: var(--grey-3); margin: 16px 0 0; }
.side-title { font-size: 28px; margin: 0 0 14px; }
.vid-row { display: grid; grid-template-columns: 150px 1fr; gap: 12px; text-decoration: none; color: var(--black); margin-bottom: 14px; }
.vid-row .vid-title { font-size: 17px; display: block; }
.vid-row:hover .vid-title { color: var(--red); }
.vid-info { display: grid; gap: 4px; align-content: start; }

/* ---------- My Bag ---------- */
.profile-head { display: flex; gap: 24px; align-items: center; margin-bottom: 32px; }
.profile-head .q-title { font-size: clamp(40px, 5vw, 64px); }
.profile-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
.friend-actions { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.bag-search { margin-bottom: 28px; position: relative; }
.field-label { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-4); margin-bottom: 8px; }
.search-box input {
  width: 100%; height: 56px; padding: 0 18px 0 48px; border: 2px solid var(--black); border-radius: 0; font: 16px var(--body);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 16px center / 20px no-repeat;
  -webkit-appearance: none;
}
.search-box input:focus { outline: none; border-color: var(--red); }
.filter-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.fchip { border: 1px solid var(--black); background: var(--white); padding: 6px 12px; font-size: 13px; cursor: pointer; }
.fchip.on { background: var(--black); color: var(--white); }
.fchip:not(.on):hover { border-color: var(--red); color: var(--red); }
.search-results:not(:empty) { border: 2px solid var(--black); border-top: 0; max-height: 420px; overflow-y: auto; }
.sr-row { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-bottom: 1px solid var(--grey-2); }
.sr-row:last-child { border-bottom: 0; }
.sr-row img { width: 48px; height: 48px; object-fit: contain; background: var(--grey-1); padding: 4px; flex: none; }
.sr-text { flex: 1; font-weight: 600; font-size: 15px; color: var(--black); text-decoration: none; }
a.sr-text:hover { color: var(--red); }
.sr-text small { display: block; font-weight: 400; color: var(--grey-4); font-size: 12px; }
.sr-in { font-size: 13px; color: var(--grey-4); white-space: nowrap; }
.sr-msg { padding: 14px; color: var(--grey-4); font-size: 14px; }

.bag-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bag-slot { border: 2px solid var(--black); padding: 14px; display: grid; gap: 10px; align-content: start; }
.bag-slot-head { display: flex; justify-content: space-between; align-items: baseline; }
.bag-slot-label { font-family: var(--display); font-style: italic; font-weight: 700; text-transform: uppercase; font-size: 24px; line-height: 1; }
.bag-item { display: flex; gap: 12px; align-items: center; background: var(--grey-1); padding: 8px; }
.bag-item img { width: 56px; height: 56px; object-fit: contain; flex: none; }
.bag-item-text { flex: 1; min-width: 0; }
.bag-item-name { display: block; font-weight: 600; font-size: 14px; line-height: 1.3; }
.bag-remove { width: 30px; height: 30px; flex: none; border: 1px solid var(--black); background: var(--white); cursor: pointer; font-size: 18px; line-height: 1; }
.bag-remove:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.bag-empty { border: 2px dashed var(--grey-2); background: none; min-height: 72px; cursor: pointer; color: var(--grey-4); font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; transition: border-color .2s, color .2s; }
.bag-empty span { font-size: 22px; line-height: 1; }
.bag-empty:hover { border-color: var(--black); color: var(--black); }

.cta-strip { margin-top: 56px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 32px; background: var(--black); color: var(--white); flex-wrap: wrap; }
.cta-strip p { margin: 6px 0 0; color: #aaa; }
.cta-strip .btn { background: var(--red); border-color: var(--red); }
.cta-strip .btn:hover { background: var(--white); color: var(--black); border-color: var(--white); }

/* ---------- Friends ---------- */
.people { display: grid; gap: 10px; max-width: 760px; }
.person { display: flex; align-items: center; gap: 14px; border: 2px solid var(--black); padding: 10px 14px; }
.person-name { flex: 1; font-weight: 600; }
.friend-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.friend-card { border: 2px solid var(--black); padding: 22px 18px; display: grid; justify-items: center; gap: 8px; text-align: center; text-decoration: none; color: var(--black); transition: background .2s, color .2s, transform .2s var(--ease); }
.friend-card:hover { background: var(--black); color: var(--white); transform: translateY(-2px); }
.friend-card:hover .avatar { background: var(--red); }
.friend-name { font-family: var(--display); font-style: italic; font-weight: 700; text-transform: uppercase; font-size: 26px; line-height: 1; margin-top: 6px; }
.friend-meta { font-size: 13px; color: var(--grey-4); }
.friend-card:hover .friend-meta { color: #bbb; }
.friend-cta { font-size: 13px; font-weight: 600; margin-top: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .type-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dash-cols, .video-page { grid-template-columns: 1fr; }
  .bag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vid-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vid-grid .vid-feature { grid-template-columns: 1fr; }
  .vid-grid .vid-feature .vid-thumb { grid-row: auto; }
}
@media (max-width: 860px) {
  .dash { gap: 28px; }
  .type-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .tile-label { font-size: 16px; padding: 8px; }
  .ad-placeholder { padding: 24px 20px; min-height: 0; }
  .ad-head { font-size: 40px; }
  .ad-spec { justify-items: start; }
  .dash-panel { padding: 16px; }
  .vid-grid { grid-template-columns: 1fr; gap: 22px; }
  .vid-grid .vid-feature .vid-title { font-size: 28px; }
  .bag-grid { grid-template-columns: 1fr; }
  .profile-head { gap: 16px; align-items: flex-start; }
  .profile-head .avatar-lg { width: 72px; height: 72px; font-size: 30px; }
  .field-row { grid-template-columns: 1fr; }
  .panel-light { padding: 20px; }
  .avatar-edit { flex-direction: column; align-items: flex-start; }
  .vid-row { grid-template-columns: 130px 1fr; }
  .cta-strip { padding: 22px 20px; margin-left: -16px; margin-right: -16px; }
  .ad-placeholder { margin-left: -16px; margin-right: -16px; }
}
@media (max-width: 420px) {
  .vid-mini-row { grid-template-columns: 1fr 1fr; }
  .vid-mini-row .vid-card:nth-child(3) { display: none; }
  .friend-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .friend-name { font-size: 20px; }
}

/* keep form fields inside narrow screens */
.form-light .field, .field-row > * { min-width: 0; }
.form-light input[type=file] { max-width: 100%; }
.avatar-edit .field { width: 100%; }
.form-light .field input[type=checkbox] { width: 16px; height: 16px; padding: 0; border: 0; }

/* ==========================================================================
   Match your app.css edits: grey page background, white panels,
   webp club images shown whole (no grey box, no invert)
   ========================================================================== */
.dash-panel, .bag-slot, .panel-light, .friend-card, .person, .pcard, .type-tile,
.search-box input, .search-results:not(:empty), .fchip, .bag-remove, .tabs-row, .form-light .field input,
.acc, .empty, .chip, .people .person { background-color: var(--white); }
.chip-link:hover, .fchip.on, .friend-card:hover, .type-tile:hover { background-color: var(--black); }
.bag-remove:hover { background-color: var(--red); }
.search-box input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E"); }

.tile-img { background: none; padding: 8px; }
.tile-img img { width: 100%; height: 100%; object-fit: contain; }
.type-tile:hover .tile-img { background: none; }
.type-tile:hover .tile-img img { transform: scale(1.05); filter: none; }
.pcard-img { background: none; padding: 10px; }
.pcard-img img { width: 100%; }
.bag-item { background: var(--grey-1); }
.mini-bag img, .sr-row img { background: none; }

.video-desc.clamped::after { background: linear-gradient(transparent, var(--grey-1)); }
@media (max-width: 860px) {
  .q-foot { background: linear-gradient(transparent, var(--grey-1) 30%); }
}

/* Hand icon is a left hand, so the Right card is the mirrored one */
.card-hand.left svg { transform: none; }
.card-hand.left:hover svg { transform: rotate(-6deg); }
.card-hand.right svg { transform: scaleX(-1); }
.card-hand.right:hover svg { transform: scaleX(-1) rotate(-6deg); }

/* ==========================================================================
   v3: refined sidebar (icons, Home, user footer) + channel layout
   ========================================================================== */
.ico { width: 18px; height: 18px; flex: none; display: block; }

/* sidebar */
.sidebar { padding: 22px 16px 18px; }
.logo { width: 56px; margin: 0 0 26px 8px; }
.menu { gap: 2px; }
.menu-item {
  gap: 12px; padding: 10px 12px; font-size: 22px; color: #8a8a8a; border-radius: 0;
  transition: background .2s, color .2s;
}
.menu-item .ico { width: 19px; height: 19px; stroke-width: 2.2; }
.menu-item.is-active::before { content: none; }
.menu-item:hover { background: #111; color: var(--white); }
.menu-item.is-active { background: #161616; color: var(--white); box-shadow: inset 3px 0 var(--red); }
.menu-item.is-active .ico { color: var(--red); }
.menu-item .pill { margin-left: auto; font-family: var(--body); font-style: normal; }
.menu-badge { display: none; }

.submenu { margin: 6px 0 10px 21px; padding-left: 12px; }
.submenu a { gap: 10px; padding: 7px 8px; font-size: 13px; }
.submenu a .ico { width: 15px; height: 15px; }
.submenu a.on { color: var(--white); }
.submenu a.on::before { content: none; }
.submenu a.on .ico { color: var(--red); }
.submenu a .pill { margin-left: auto; }

.menu-group .steps { margin: 6px 0 4px 21px; padding-left: 12px; }
.steps button { padding: 5px 8px; font-size: 13px; }
.steps button::before { font-size: 14px; width: 20px; }
.menu-sub-btn { display: flex; align-items: center; gap: 10px; margin: 6px 0 8px 33px; font-size: 17px; }
.menu-sub-btn .ico { width: 15px; height: 15px; }
.menu-sub-btn.is-active::before { content: none; }
.menu-sub-btn.is-active .ico { color: var(--red); }

.side-foot { border-top: 1px solid #1c1c1c; padding-top: 16px; margin-top: 20px; gap: 14px; }
.socials { padding: 0 4px; }
.social { width: 30px; height: 30px; }
.side-user { display: flex; align-items: center; gap: 8px; }
.side-user-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 6px; color: var(--white); text-decoration: none; transition: background .2s; }
.side-user-link:hover { background: #111; }
.side-user-link .avatar { width: 34px; height: 34px; font-size: 15px; background: #222; }
.side-user-text { min-width: 0; display: grid; }
.side-user-text strong { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user-text small { font-size: 11px; color: #777; }
.side-signout { width: 34px; height: 34px; display: grid; place-items: center; flex: none; border: 1px solid #333; color: #aaa; transition: background .2s, color .2s, border-color .2s; }
.side-signout:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.side-signout .ico { width: 16px; height: 16px; }
.side-signin { display: flex; align-items: center; gap: 10px; padding: 8px 10px; color: #aaa; text-decoration: none; font-size: 13px; font-weight: 600; border: 1px solid #333; }
.side-signin:hover { color: var(--white); border-color: var(--white); }
.side-signin .ico { width: 16px; height: 16px; }

/* buttons with icons */
.btn .ico { width: 20px; height: 20px; }
.btn-sm .ico { width: 17px; height: 17px; }
.btn-yt { background: var(--red); border-color: var(--red); color: var(--white); white-space: nowrap; }
.btn-yt:hover { background: var(--black); border-color: var(--black); }

/* channel grid */
.channel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 36px; }
.channel-head .q-sub { max-width: 620px; }
.vid-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* single video */
.video-page { grid-template-columns: minmax(0, 1fr) 240px; gap: 32px; }
.video-title { margin: 20px 0 10px; }
.video-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 2px solid var(--black); margin-bottom: 16px; }
.video-desc { border-top: 0; padding-top: 0; }
.video-desc.clamped { max-height: 150px; }
.desc-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; padding: 6px 0; background: none; border: 0; cursor: pointer; font-weight: 600; font-size: 14px; }
.desc-more:hover { color: var(--red); }
.desc-more .ico { width: 16px; height: 16px; transition: transform .2s; }
.desc-more.open .ico { transform: rotate(180deg); }

.share-panel { position: sticky; top: 24px; display: grid; gap: 8px; align-content: start; }
.share-panel .side-title { margin-bottom: 6px; }
.share-btn {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; background: var(--white); border: 2px solid var(--black);
  color: var(--black); text-decoration: none; font: 600 14px var(--body); cursor: pointer; text-align: left; transition: background .2s, color .2s;
}
.share-btn:hover { background: var(--black); color: var(--white); }
.share-btn:hover .ico { color: var(--red); }
.share-btn .ico { width: 18px; height: 18px; }

.more-videos { margin-top: 56px; }
.more-videos .panel-head { margin-bottom: 18px; }
.vid-row-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 18px; }
.vid-row-grid .vid-title { font-size: 19px; }

@media (max-width: 1100px) {
  .video-page { grid-template-columns: 1fr; }
  .share-panel { position: static; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .share-panel .side-title { grid-column: 1 / -1; }
  .vid-row-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .channel-head { flex-direction: column; gap: 16px; margin-bottom: 24px; }
  .vid-grid { grid-template-columns: 1fr; }
  .share-panel { grid-template-columns: 1fr 1fr; }
  .share-btn { padding: 10px 12px; font-size: 13px; }
  .more-videos { margin-top: 40px; }
}
@media (max-width: 420px) {
  .vid-row-grid { grid-template-columns: 1fr 1fr; gap: 18px 10px; }
  .vid-row-grid .vid-title { font-size: 15px; }
}

.social img { width: 16px; height: 16px; filter: brightness(0) invert(1); }


.social { width: 34px; height: 34px; border: 0; }
.social img { width: 20px; height: 20px; }


/* ==========================================================================
   Quiz questions fit the screen on desktop: cards shrink rather than
   the bottom row being cut off. Results still scroll normally.
   ========================================================================== */
@media (min-width: 861px) {
  body.section-quiz .stage:has(> section > .q-foot) {
    height: 100vh; height: 100dvh; display: flex; flex-direction: column;
    padding-top: clamp(20px, 5vh, 56px); padding-bottom: clamp(16px, 3vh, 32px);
  }
  body.section-quiz .stage > section:has(> .q-foot) { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  body.section-quiz .stage > section:has(> .q-foot) > .q-head { flex: none; margin-bottom: clamp(14px, 3vh, 36px); }
  body.section-quiz .stage > section:has(> .q-foot) > .q-head .q-title { font-size: clamp(36px, min(6vw, 8vh), 76px); }
  body.section-quiz .stage > section:has(> .q-foot) > .q-head .q-sub { margin-top: clamp(6px, 1.4vh, 14px); }
  body.section-quiz .stage > section:has(> .q-foot) > .q-foot { flex: none; margin-top: clamp(14px, 3vh, 40px); }

  /* the grid keeps its natural size but shrinks when the screen is short */
  body.section-quiz .stage > section:has(> .q-foot) > .grid {
    flex: 0 1 auto; min-height: 0; grid-auto-rows: minmax(0, 1fr);
  }
  body.section-quiz .grid > .card { min-height: 0; overflow: hidden; }
  body.section-quiz .card-img, body.section-quiz .card-gfx { display: flex; flex-direction: column; }
  body.section-quiz .card-img .ph, body.section-quiz .card-gfx .gfx { flex: 1 1 auto; min-height: 0; }
  body.section-quiz .card-img .ph { position: relative; }
  body.section-quiz .card-img .ph img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain; }
  body.section-quiz .card-gfx .gfx svg { height: 86%; max-height: 100%; }
  body.section-quiz .card-img .card-body, body.section-quiz .card-gfx .card-body { flex: none; }
  body.section-quiz .card-hand { min-height: min(240px, 30vh); }
  body.section-quiz .card-hand svg { height: min(120px, 14vh); width: min(120px, 14vh); }
}

/* CTA strip inside a dashboard card */
.dash-panel .cta-strip { margin: 4px 0 0; padding: 20px; gap: 14px; }
.dash-panel .cta-strip .cta-head { font-size: 26px; }
.dash-panel .cta-strip p { font-size: 14px; }
.dash-panel .cta-strip .btn { width: 100%; }
@media (max-width: 860px) {
  .dash-panel .cta-strip { margin-left: 0; margin-right: 0; padding: 18px; }
}

.results-ad { margin: 0 0 20px; }


/* "Coming soon" club types */
.type-tile { position: relative; }
.is-soon { cursor: not-allowed; }
.card.is-soon:hover, .type-tile.is-soon:hover { transform: none; }
.type-tile.is-soon:hover { background: var(--white); color: var(--black); }
.type-tile.is-soon:hover .tile-img img, .card.is-soon:hover .ph img { transform: none; }
.soon-tag {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center;
  background: rgba(0, 0, 0, .82); color: var(--white);
  font-family: var(--display); font-style: italic; font-weight: 700; text-transform: uppercase; font-size: 26px;
  opacity: 0; transition: opacity .2s; pointer-events: none;
}
.is-soon:hover .soon-tag, .is-soon:focus-visible .soon-tag { opacity: 1; }
/* Phones have no hover: grey the card out and show a small "Coming soon" badge in the corner */
@media (hover: none) {
  .card.is-soon, .type-tile.is-soon { border-color: var(--grey-2); color: var(--grey-3); }
  .card.is-soon .ph img, .type-tile.is-soon .tile-img img { opacity: .35; filter: grayscale(1); }
  .soon-tag {
    inset: 8px 8px auto auto; padding: 4px 7px; opacity: 1;
    background: var(--grey-2); color: var(--grey-4); font-size: 13px; line-height: 1;
  }
}


/* ==========================================================================
   Shot shape cards: fairway, dotted line that fills solid red (style B4)
   ========================================================================== */
.card-gfx .gfx { overflow: hidden; }
.card-gfx .gfx svg.fw, body.section-quiz .card-gfx .gfx svg.fw { width: 100%; height: 100%; max-height: none; overflow: hidden; }
.gfx .fw .dots { fill: none; stroke: #000; stroke-width: 2.8; stroke-linecap: round; stroke-dasharray: .01 7; }
.gfx .fw .shot { stroke: var(--red); stroke-width: 3; transition: stroke-dashoffset .9s var(--ease); }
.card-gfx.is-selected .gfx .fw .shot { stroke: var(--red); }
.gfx .fw .fly {
  fill: var(--white); stroke: var(--red); stroke-width: 1.6;
  offset-distance: 0%; offset-rotate: 0deg; opacity: 0;
  transition: offset-distance 0s .2s, opacity .2s;
}
.card-gfx:hover .fw .fly, .card-gfx:focus-visible .fw .fly, .card-gfx.is-selected .fw .fly {
  offset-distance: 100%; opacity: 1;
  transition: offset-distance .9s var(--ease), opacity .05s;
}
/* Phones: dots at rest, solid once tapped */
@media (hover: none) {
  .card-gfx .gfx .fw .shot { stroke-dashoffset: 1; }
  .card-gfx.is-selected .gfx .fw .shot { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .gfx .fw .shot { stroke-dashoffset: 1; }
  .card-gfx:hover .gfx .fw .shot, .card-gfx.is-selected .gfx .fw .shot { stroke-dashoffset: 0; }
}
/* Older browsers without CSS motion paths: hide the flying ball, the line still fills in */
@supports not (offset-path: path('M0 0')) { .gfx .fw .fly { display: none; } }

/* ==========================================================================
   Category tabs above the club cards (dashboard + quiz step 1)
   ========================================================================== */
.shop { display: grid; gap: 14px; }
.shop-tabs {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; padding-bottom: 2px;
}
.shop-tabs::-webkit-scrollbar { display: none; }
.shop-tab {
  flex: none; padding: 9px 16px; border: 2px solid var(--black); background: var(--white); color: var(--black);
  font-family: var(--display); font-style: italic; font-weight: 700; text-transform: uppercase; font-size: 18px; line-height: 1;
  cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, border-color .2s;
}
.shop-tab:hover { border-color: var(--red); color: var(--red); }
.shop-tab.on { background: var(--black); border-color: var(--black); color: var(--white); }
.shop-tab:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.q-head + .shop-tabs { margin-bottom: 16px; flex: none; }
.shop-panel[hidden] { display: none; }

@media (max-width: 860px) {
  .shop-tabs { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  .shop-tab { font-size: 16px; padding: 8px 12px; }
}
/* long labels like "Rangefinders" wrap instead of running off narrow tiles */
.tile-label { overflow-wrap: break-word; hyphens: auto; min-width: 0; }

/* ==========================================================================
   Dashboard: bigger category cards in a sideways-scrolling row with arrows
   ========================================================================== */
.shop-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.shop-head .shop-tabs { min-width: 0; }
.shop-arrows { display: flex; gap: 6px; flex: none; }
.shop-arrow {
  width: 40px; height: 40px; display: grid; place-items: center; padding: 0;
  border: 2px solid var(--black); background: var(--white); color: var(--black); cursor: pointer;
  transition: background .2s, color .2s, opacity .2s;
}
.shop-arrow .ico { width: 20px; height: 20px; }
.shop-arrow:hover:not(:disabled) { background: var(--black); color: var(--white); }
.shop-arrow:disabled { opacity: .3; cursor: default; }
.shop-arrow:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.shop .shop-panel {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; overscroll-behavior-x: contain; padding-bottom: 4px;
}
.shop .shop-panel::-webkit-scrollbar { display: none; }
.shop .shop-panel[hidden] { display: none; }
.shop .type-tile { flex: 0 0 clamp(190px, 21vw, 250px); scroll-snap-align: start; }
.shop .tile-label { font-size: 24px; padding: 12px 14px 14px; }

@media (max-width: 860px) {
  .shop-arrows { display: none; }
  .shop .shop-panel { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; scroll-padding-left: 16px; gap: 10px; }
  .shop .type-tile { flex-basis: 44vw; }
  .shop .tile-label { font-size: 20px; padding: 10px; }
}
/* stop the scrolling row stretching the page sideways */
.dash > *, .dash-hero > *, .shop > *, .shop-head > * { min-width: 0; }

/* ==========================================================================
   Mango Grotesque is narrower than the fallback, so small display text is sized up
   ========================================================================== */
.menu-item { font-size: 26px; }
.menu-sub-btn { font-size: 20px; }
.sum-club { font-size: 26px; }
.step-num { font-size: 26px; }
.shop-tab { font-size: 22px; padding: 8px 16px; }
.btn { font-size: 28px; }
.btn-sm { font-size: 22px; }
.card-title { font-size: 34px; }
.tile-label { font-size: 26px; }
.shop .tile-label { font-size: 30px; }
.pick-tag, .chip-link { letter-spacing: .02em; }
.soon-tag { font-size: 30px; }
@media (max-width: 860px) {
  .shop-tab { font-size: 20px; }
  .card-title { font-size: 28px; }
  .shop .tile-label { font-size: 24px; }
  .mobile-title, .mobile-count { font-size: 26px; }
}
@media (hover: none) { .soon-tag { font-size: 15px; } }

/* ==========================================================================
   Crisper small display text: upright ExtraBold for UI labels,
   Black italic for card titles. Big headings stay Bold Italic.
   ========================================================================== */
.shop-tab, .btn, .menu-item, .menu-sub-btn, .step-num, .tab, .pick-tag, .soon-tag,
.mobile-title, .mobile-count, .sum-club, .steps button::before, .tile-label {
  font-style: normal; font-weight: 800; letter-spacing: .03em;
}
/* Card, video, accessory and panel titles: upright too, so they stay sharp */
.card-title, .shop .tile-label, .acc-name, .vid-title, .bag-slot-label, .friend-name, .cta-head, .panel-head-title,
.side-title, .sum-club, .brand-word, .offer-price {
  font-style: normal; font-weight: 800; letter-spacing: .03em;
}
.q-title, .section-title, .pick-name, .video-title { letter-spacing: .005em; }

/* small video titles under the featured video were too tiny for this font */
.vid-mini-row .vid-title { font-size: 18px; line-height: 1.05; }
.vid-row .vid-title { font-size: 20px; }
