/* ════════════════════════════════════════════
   GYMBUDDY INDIA · EXERCISE LIBRARY STYLES
   Shared by exercises/index.html and all
   detail pages. Mirrors tokens from the main
   site (index.html, templates.html, tools.html).
════════════════════════════════════════════ */

:root {
  --black:    #080808;
  --dark:     #0f0f0f;
  --card:     #141414;
  --card2:    #1a1a1a;
  --border:   rgba(255,255,255,0.07);
  --border2:  rgba(255,255,255,0.12);
  --text:     #e8e8e8;
  --muted:    #666;
  --muted2:   #999;
  --white:    #ffffff;
  --lime:     #c8f135;
  --lime2:    #a8cc20;
  --lime-glow:rgba(200,241,53,0.12);
  --red:      #ef4444;
  --green:    #22c55e;
  --wa:       #25D366;
  --radius:   12px;
  --radius-lg:20px;
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-font-smoothing:antialiased}
body{
  background:var(--black);
  color:var(--text);
  font-family:'DM Sans',sans-serif;
  font-size:16px;
  line-height:1.6;
  overflow-x:hidden;
}

::-webkit-scrollbar{width:4px}
::-webkit-scrollbar-track{background:var(--black)}
::-webkit-scrollbar-thumb{background:var(--lime);border-radius:4px}

body::before{
  content:'';
  position:fixed;inset:0;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity:0.025;pointer-events:none;z-index:1000;
}

/* ════════════════════════════════════════════
   NAV (identical to main site)
════════════════════════════════════════════ */
nav{
  position:fixed;top:0;left:0;right:0;z-index:900;
  padding:0 40px;height:64px;
  display:flex;align-items:center;justify-content:space-between;
  background:rgba(8,8,8,0.85);
  backdrop-filter:blur(20px);
  border-bottom:1px solid var(--border);
  transition:all 0.3s;
}
.nav-logo{
  font-family:'Bebas Neue',sans-serif;
  font-size:22px;letter-spacing:3px;
  color:var(--lime);text-decoration:none;
}
.nav-logo span{color:var(--white)}
.nav-links{
  display:flex;align-items:center;gap:clamp(18px,2vw,32px);list-style:none;
  margin-left:auto;
}
.nav-links a{
  font-size:13px;font-weight:500;letter-spacing:0.5px;
  color:var(--muted2);text-decoration:none;transition:color 0.2s;
  display:inline-flex;align-items:center;justify-content:center;
  line-height:1.1;white-space:nowrap;
}
.nav-links a:hover{color:var(--white)}
.nav-links a.active{color:var(--lime)}
.nav-cta{
  background:var(--lime)!important;
  color:#000!important;
  padding:8px 20px;border-radius:6px;
  font-weight:700!important;font-size:13px!important;
  display:flex;align-items:center;gap:6px;
  transition:opacity 0.2s!important;
  letter-spacing:0.5px;
  text-decoration:none;
  min-height:40px;white-space:nowrap;
}
.nav-cta:hover{opacity:0.88}
.hamburger{display:none;flex-direction:column;gap:5px;cursor:pointer;padding:4px}
.hamburger span{display:block;width:24px;height:2px;background:var(--text);border-radius:2px;transition:all 0.3s}
.mobile-menu{
  display:none;position:fixed;top:64px;left:0;right:0;z-index:899;
  background:rgba(8,8,8,0.97);backdrop-filter:blur(20px);
  border-bottom:1px solid var(--border);
  padding:24px 40px;flex-direction:column;gap:20px;
}
.mobile-menu.open{display:flex}
.mobile-menu a{color:var(--text);text-decoration:none;font-size:16px;font-weight:500}

/* ════════════════════════════════════════════
   SHARED UTILITIES
════════════════════════════════════════════ */
.max-w{max-width:1200px;margin:0 auto}
.reveal{opacity:0;transform:translateY(28px);transition:opacity .7s ease,transform .7s ease}
.reveal.visible{opacity:1;transform:none}

@keyframes fadeUp {
  from{opacity:0;transform:translateY(16px)}
  to{opacity:1;transform:translateY(0)}
}
@keyframes fadeDown {
  from{opacity:0;transform:translateY(-12px)}
  to{opacity:1;transform:translateY(0)}
}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}

/* ════════════════════════════════════════════
   LIBRARY LANDING PAGE  (/exercises)
════════════════════════════════════════════ */

/* HERO */
.ex-hero{
  padding:120px 40px 40px;
  position:relative;overflow:hidden;
  text-align:center;
}
.ex-hero::before{
  content:'';position:absolute;inset:0;
  background-image:
    linear-gradient(rgba(200,241,53,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,241,53,0.04) 1px, transparent 1px);
  background-size:60px 60px;
  mask-image:radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 100%);
}
.ex-hero-orb{
  position:absolute;top:-200px;left:50%;transform:translateX(-50%);
  width:800px;height:500px;
  background:radial-gradient(circle, rgba(200,241,53,0.08) 0%, transparent 65%);
  pointer-events:none;
}
.ex-hero-inner{position:relative;z-index:2;max-width:820px;margin:0 auto}
.ex-hero-badge{
  display:inline-flex;align-items:center;gap:8px;
  background:rgba(200,241,53,0.08);
  border:1px solid rgba(200,241,53,0.25);
  border-radius:100px;
  padding:6px 16px;margin-bottom:24px;
  font-size:12px;font-weight:600;letter-spacing:1px;text-transform:uppercase;
  color:var(--lime);
  animation:fadeDown 0.8s ease both;
}
.ex-hero-badge::before{
  content:'';display:block;
  width:6px;height:6px;border-radius:50%;
  background:var(--lime);
}
.ex-hero h1{
  font-family:'Bebas Neue',sans-serif;
  font-size:clamp(52px,10vw,110px);
  line-height:0.92;letter-spacing:2px;
  color:var(--white);
  margin-bottom:20px;
  animation:fadeUp 0.8s 0.1s ease both;
}
.ex-hero h1 em{
  font-family:'Instrument Serif',serif;
  font-style:italic;color:var(--lime);letter-spacing:0;
  display:inline-block;
}
.ex-hero-sub{
  font-size:clamp(15px,1.8vw,18px);
  color:var(--muted2);
  max-width:580px;margin:0 auto;
  line-height:1.7;
  animation:fadeUp 0.8s 0.2s ease both;
}

/* WORKOUT BUILDER INTRO */
.ex-builder-intro{
  padding:0 40px 24px;
  position:relative;
  z-index:2;
}
.ex-builder-intro-inner{
  max-width:1200px;
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  gap:22px;
  align-items:center;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px 20px;
}
.ex-builder-intro h2{
  font-family:'Bebas Neue',sans-serif;
  font-size:32px;
  line-height:1;
  letter-spacing:1px;
  color:var(--white);
  margin:4px 0 6px;
}
.ex-builder-intro p{
  max-width:620px;
  color:var(--muted2);
  font-size:13px;
  line-height:1.6;
}
.ex-builder-steps{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.ex-builder-steps span{
  min-height:32px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--border2);
  border-radius:100px;
  padding:0 12px;
  color:var(--text);
  font-size:12px;
  font-weight:800;
}
.ex-builder-steps strong{
  color:var(--lime);
  font-family:'Bebas Neue',sans-serif;
  font-size:22px;
  line-height:1;
  margin-right:5px;
}
.ex-builder-link{
  min-height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:var(--lime);
  color:#050505;
  border-radius:7px;
  padding:0 16px;
  text-decoration:none;
  font-size:13px;
  font-weight:900;
  white-space:nowrap;
}

/* STICKY SEARCH + TABS */
.ex-search-wrap{
  position:sticky;top:64px;z-index:800;
  background:rgba(8,8,8,0.85);
  backdrop-filter:blur(20px);
  border-bottom:1px solid var(--border);
  padding:20px 40px 16px;
  animation:fadeUp 0.8s 0.3s ease both;
}
.ex-search-inner{max-width:1200px;margin:0 auto}
.ex-search{
  position:relative;
  max-width:640px;margin:0 auto 16px;
}
.ex-search input{
  width:100%;
  background:var(--card);
  border:1px solid var(--border2);
  color:var(--text);
  font-family:'DM Sans',sans-serif;
  font-size:15px;
  padding:14px 44px 14px 44px;
  border-radius:12px;
  transition:border-color 0.2s, background 0.2s;
  outline:none;
}
.ex-search input::placeholder{color:var(--muted)}
.ex-search input:focus{
  border-color:rgba(200,241,53,0.4);
  background:var(--card2);
}
.ex-search-icon{
  position:absolute;left:16px;top:50%;transform:translateY(-50%);
  color:var(--muted2);pointer-events:none;
  width:18px;height:18px;
}
.ex-search-clear{
  position:absolute;right:12px;top:50%;transform:translateY(-50%);
  background:var(--card2);border:1px solid var(--border2);
  color:var(--muted2);width:24px;height:24px;
  border-radius:50%;font-size:14px;line-height:1;
  cursor:pointer;display:none;align-items:center;justify-content:center;
  transition:all 0.15s;
}
.ex-search-clear.show{display:flex}
.ex-search-clear:hover{color:var(--white);border-color:rgba(255,255,255,0.3)}

/* TAB BAR */
.ex-tabs{
  display:flex;justify-content:center;gap:8px;
  flex-wrap:wrap;
}
.ex-tab{
  background:transparent;
  border:1px solid var(--border2);
  color:var(--muted2);
  font-family:'DM Sans',sans-serif;
  font-size:13px;font-weight:600;letter-spacing:0.3px;
  padding:8px 18px;border-radius:100px;
  cursor:pointer;
  transition:all 0.2s;
  user-select:none;
}
.ex-tab:hover{color:var(--text);border-color:rgba(255,255,255,0.2)}
.ex-tab.active{
  background:var(--lime);
  color:#000;
  border-color:var(--lime);
}

/* FILTER CHIP ROW */
.ex-chips-section{
  padding:24px 40px 0;
}
.ex-chips-inner{max-width:1200px;margin:0 auto}
.ex-chip-row{
  display:flex;flex-wrap:wrap;gap:8px;
}
.ex-chip{
  background:var(--card);
  border:1px solid var(--border);
  color:var(--muted2);
  font-family:'DM Sans',sans-serif;
  font-size:13px;font-weight:500;
  padding:8px 18px;border-radius:100px;
  cursor:pointer;
  transition:all 0.2s;
  user-select:none;
}
.ex-chip:hover{
  border-color:var(--border2);
  color:var(--text);
  background:var(--card2);
}
.ex-chip.active{
  background:rgba(200,241,53,0.1);
  border-color:rgba(200,241,53,0.35);
  color:var(--lime);
}

/* SECONDARY FILTER ROW */
.ex-secondary{
  padding:20px 40px 0;
}
.ex-secondary-inner{
  max-width:1200px;margin:0 auto;
  display:flex;align-items:center;gap:12px;flex-wrap:wrap;
}
.ex-sec-label{
  font-size:11px;font-weight:700;letter-spacing:2px;text-transform:uppercase;
  color:var(--muted);
}
.ex-dd{position:relative}
.ex-dd-btn{
  background:var(--card);
  border:1px solid var(--border);
  color:var(--muted2);
  font-family:'DM Sans',sans-serif;
  font-size:13px;font-weight:500;
  padding:8px 14px 8px 14px;border-radius:8px;
  cursor:pointer;
  display:flex;align-items:center;gap:8px;
  transition:all 0.2s;
}
.ex-dd-btn:hover{border-color:var(--border2);color:var(--text)}
.ex-dd-btn.active{
  background:rgba(200,241,53,0.1);
  border-color:rgba(200,241,53,0.35);
  color:var(--lime);
}
.ex-dd-btn svg{width:12px;height:12px;opacity:0.7;transition:transform 0.2s}
.ex-dd.open .ex-dd-btn svg{transform:rotate(180deg)}
.ex-dd-menu{
  position:absolute;top:calc(100% + 6px);left:0;
  background:var(--card2);
  border:1px solid var(--border2);
  border-radius:10px;
  padding:6px;
  min-width:180px;
  box-shadow:0 12px 40px rgba(0,0,0,0.6);
  z-index:100;
  display:none;
}
.ex-dd.open .ex-dd-menu{display:block;animation:fadeIn 0.15s ease both}
.ex-dd-menu button{
  display:block;width:100%;text-align:left;
  background:transparent;border:none;
  color:var(--text);
  font-family:'DM Sans',sans-serif;font-size:13px;
  padding:8px 12px;border-radius:6px;
  cursor:pointer;
}
.ex-dd-menu button:hover{background:rgba(255,255,255,0.05)}
.ex-dd-menu button.selected{color:var(--lime);background:rgba(200,241,53,0.08)}

/* AUTOPLAY TOGGLE */
.ex-autoplay{
  margin-left:auto;
  display:flex;align-items:center;gap:8px;
  font-size:12px;color:var(--muted2);
}
.ex-switch{
  position:relative;width:32px;height:18px;
  background:var(--card);
  border:1px solid var(--border2);
  border-radius:100px;cursor:pointer;
  transition:background 0.2s,border-color 0.2s;
}
.ex-switch::after{
  content:'';position:absolute;
  top:2px;left:2px;
  width:12px;height:12px;
  background:var(--muted2);
  border-radius:50%;
  transition:transform 0.2s,background 0.2s;
}
.ex-switch.on{background:rgba(200,241,53,0.15);border-color:rgba(200,241,53,0.4)}
.ex-switch.on::after{transform:translateX(14px);background:var(--lime)}

/* COUNT BAR */
.ex-count-bar{
  padding:20px 40px 0;
}
.ex-count-inner{
  max-width:1200px;margin:0 auto;
  display:flex;align-items:center;justify-content:space-between;
  padding:16px 0 0;
  border-top:1px solid var(--border);
}
.ex-count{font-size:13px;color:var(--muted2)}
.ex-count strong{color:var(--white);font-weight:600}
.ex-reset{
  background:none;border:1px solid var(--border2);
  color:var(--muted2);font-size:12px;font-weight:500;
  padding:6px 14px;border-radius:6px;cursor:pointer;
  font-family:'DM Sans',sans-serif;
  transition:all 0.2s;
  display:none;
}
.ex-reset.show{display:inline-flex;align-items:center;gap:6px}
.ex-reset:hover{border-color:var(--lime);color:var(--lime)}

/* GRID */
.ex-grid-section{padding:24px 40px 100px}
.ex-grid{
  max-width:1200px;margin:0 auto;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}

/* EMPTY STATE */
.ex-empty{
  grid-column:1/-1;
  text-align:center;
  padding:64px 20px;
}
.ex-empty-icon{font-size:44px;margin-bottom:14px;opacity:0.4}
.ex-empty-title{font-family:'Bebas Neue',sans-serif;font-size:22px;letter-spacing:1px;color:var(--white);margin-bottom:6px}
.ex-empty-desc{font-size:13px;color:var(--muted2)}

/* EXERCISE CARD */
.ex-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  display:flex;flex-direction:column;
  text-decoration:none;
  color:inherit;
  transition:transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  position:relative;
  cursor:pointer;
}
.ex-card:hover{
  transform:translateY(-3px);
  border-color:rgba(200,241,53,0.35);
  box-shadow:0 14px 36px rgba(0,0,0,0.4);
}
.ex-card-link{
  color:inherit;
  text-decoration:none;
  display:flex;
  flex-direction:column;
  min-height:100%;
}

/* Video area : top ~70% */
.ex-card-media{
  position:relative;
  aspect-ratio:1/1;
  background:linear-gradient(145deg,#1a1a1a 0%,#0d0d0d 100%);
  overflow:hidden;
}
.ex-card-media video,
.ex-card-media img{
  width:100%;height:100%;
  object-fit:cover;
  display:block;
}
/* Video visibility logic:
   - If the card has a poster <img>, the video sits hidden on top and fades in on hover/in-view.
   - If there's no poster <img>, the video is visible at rest so its first frame acts as the thumbnail.
   We flag this with .no-poster on the media wrapper. */
.ex-card-media video{opacity:0;transition:opacity 0.25s}
.ex-card-media video.visible{opacity:1}
.ex-card-media.no-poster video{opacity:1}
/* Fallback placeholder when no poster */
.ex-card-placeholder{
  position:absolute;inset:0;
  display:flex;align-items:center;justify-content:center;
  font-family:'Bebas Neue',sans-serif;
  font-size:22px;letter-spacing:1.5px;
  color:rgba(255,255,255,0.14);
  text-align:center;padding:10px;
  line-height:1.1;
}
/* Dark tint overlay */
.ex-card-media::after{
  content:'';position:absolute;inset:0;
  background:linear-gradient(180deg,transparent 40%,rgba(0,0,0,0.4) 100%);
  pointer-events:none;
}

/* Card body : bottom */
.ex-card-body{
  padding:14px 14px 14px;
  display:flex;flex-direction:column;gap:6px;
}
.ex-card-name{
  font-family:'Bebas Neue',sans-serif;
  font-size:18px;letter-spacing:1px;line-height:1.1;
  color:var(--white);
}
.ex-card-meta{
  display:flex;align-items:center;gap:10px;
  font-size:11px;color:var(--muted2);flex-wrap:wrap;
}
.ex-card-meta .muscle{color:var(--muted2);font-weight:500}
.ex-card-meta .sep{width:3px;height:3px;border-radius:50%;background:var(--border2)}
.ex-card-meta .equip{
  display:inline-flex;align-items:center;gap:4px;
  color:var(--muted);
}
.ex-card-meta .equip svg{width:12px;height:12px}

/* Difficulty dots */
.ex-card-diff{
  display:inline-flex;align-items:center;gap:3px;
}
.ex-card-diff .d{
  width:5px;height:5px;border-radius:50%;
  background:rgba(255,255,255,0.12);
}
.ex-card-diff[data-level="beginner"]  .d:nth-child(1){background:var(--green)}
.ex-card-diff[data-level="intermediate"] .d:nth-child(1),
.ex-card-diff[data-level="intermediate"] .d:nth-child(2){background:var(--lime)}
.ex-card-diff[data-level="advanced"]  .d{background:#f59e0b}

/* Workout builder hooks */
.gb-add-exercise-btn,
.ex-add-detail-btn{
  border:1px solid rgba(200,241,53,0.45);
  background:var(--lime);
  color:#050505;
  cursor:pointer;
  transition:transform 0.18s,border-color 0.18s,opacity 0.18s;
}
.gb-add-exercise-btn{
  position:absolute;
  right:10px;
  top:10px;
  z-index:5;
  width:34px;
  height:34px;
  border-radius:50%;
  font-family:'Bebas Neue',sans-serif;
  font-size:24px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
}
.gb-add-exercise-btn:hover,
.ex-add-detail-btn:hover{
  transform:translateY(-1px) scale(1.03);
  opacity:0.92;
}
.gb-add-exercise-btn.is-selected,
.ex-add-detail-btn.is-selected{
  background:var(--card2);
  color:var(--lime);
  border-color:var(--lime);
}
.gb-add-exercise-btn.is-selected{
  font-size:22px;
}
.ex-title-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}
.ex-add-detail-btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  border-radius:8px;
  padding:12px 20px;
  font-family:'DM Sans',sans-serif;
  font-size:14px;
  font-weight:800;
  letter-spacing:0.2px;
}
.ex-add-detail-btn .plus{
  font-family:'Bebas Neue',sans-serif;
  font-size:22px;
  line-height:0.8;
}
.gb-workout-bar{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:950;
  transform:translateY(110%);
  opacity:0;
  pointer-events:none;
  transition:transform 0.24s ease,opacity 0.24s ease;
  padding:0 20px 16px;
}
.gb-workout-bar.show{
  transform:translateY(0);
  opacity:1;
  pointer-events:auto;
}
.gb-workout-bar-inner{
  max-width:980px;
  min-height:64px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  background:rgba(20,20,20,0.96);
  border:1px solid var(--border2);
  border-radius:10px;
  padding:8px 10px 8px 18px;
  backdrop-filter:blur(18px);
  box-shadow:0 18px 42px rgba(0,0,0,0.44);
}
.gb-workout-bar.pulse .gb-workout-bar-inner{border-color:rgba(200,241,53,0.75)}
.gb-workout-bar-main{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:7px;
}
.gb-workout-count{
  font-size:14px;
  font-weight:700;
  color:var(--text);
}
.gb-workout-selected{
  display:flex;
  align-items:center;
  gap:6px;
  overflow-x:auto;
  max-width:680px;
  padding-bottom:1px;
  scrollbar-width:none;
}
.gb-workout-selected::-webkit-scrollbar{display:none}
.gb-workout-chip{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  gap:8px;
  max-width:180px;
  min-height:28px;
  border:1px solid var(--border2);
  border-radius:100px;
  padding:0 5px 0 10px;
  color:var(--muted2);
  font-size:12px;
  line-height:1;
}
.gb-workout-chip span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.gb-workout-chip button{
  width:20px;
  height:20px;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,0.08);
  color:var(--text);
  cursor:pointer;
  line-height:1;
  font-size:15px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.gb-workout-chip button:hover{
  background:var(--lime);
  color:#050505;
}
.gb-workout-more{
  color:var(--muted);
  font-size:12px;
  white-space:nowrap;
}
.gb-workout-link{
  min-height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:var(--lime);
  color:#050505;
  text-decoration:none;
  font-size:13px;
  font-weight:800;
  border-radius:7px;
  padding:0 18px;
  white-space:nowrap;
}
body.has-workout-bar footer{padding-bottom:104px}

/* ════════════════════════════════════════════
   MY WORKOUTS
════════════════════════════════════════════ */
.workout-shell{
  max-width:1200px;
  margin:0 auto;
  padding:112px 40px 84px;
}
.workout-hero{
  max-width:780px;
  margin-bottom:34px;
}
.workout-hero h1{
  font-family:'Bebas Neue',sans-serif;
  font-size:clamp(54px,8vw,96px);
  line-height:0.92;
  letter-spacing:2px;
  color:var(--white);
  margin:12px 0 16px;
}
.workout-hero h1 em{
  font-family:'Instrument Serif',serif;
  font-style:italic;
  color:var(--lime);
  letter-spacing:0;
}
.workout-hero p{
  max-width:620px;
  color:var(--muted2);
  font-size:16px;
  line-height:1.7;
}
.builder-panel,
.library-panel{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
}
.builder-panel{padding:22px;margin-bottom:26px}
.builder-head{
  display:grid;
  grid-template-columns:minmax(240px,1fr) auto;
  gap:20px;
  align-items:end;
  margin-bottom:22px;
}
.workout-name-input{
  width:100%;
  max-width:460px;
  background:var(--black);
  border:1px solid var(--border2);
  color:var(--white);
  border-radius:8px;
  padding:13px 14px;
  font-family:'Bebas Neue',sans-serif;
  font-size:28px;
  letter-spacing:1px;
  outline:none;
}
.workout-name-input:focus{border-color:rgba(200,241,53,0.45)}
.builder-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px;
}
.builder-btn{
  border:1px solid var(--border2);
  background:var(--card2);
  color:var(--text);
  min-height:40px;
  border-radius:7px;
  padding:0 14px;
  font-family:'DM Sans',sans-serif;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:border-color 0.18s,background 0.18s,color 0.18s,opacity 0.18s;
}
.builder-btn:hover{border-color:rgba(255,255,255,0.25)}
.builder-btn.primary,
.builder-btn:not(.ghost){
  background:var(--lime);
  border-color:var(--lime);
  color:#050505;
}
.builder-btn.ghost{background:transparent}
.workout-list{display:flex;flex-direction:column;gap:12px}
.workout-item{
  display:grid;
  grid-template-columns:26px 1fr auto;
  gap:14px;
  align-items:center;
  background:var(--black);
  border:1px solid var(--border);
  border-radius:10px;
  padding:14px;
}
.workout-item.dragging{border-color:var(--lime);opacity:0.7}
.drag-handle{
  color:var(--muted);
  font-weight:800;
  letter-spacing:1px;
  cursor:grab;
}
.workout-item-top{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
  margin-bottom:12px;
}
.workout-item h3,
.library-panel h2,
.stored-card h3{
  font-family:'Bebas Neue',sans-serif;
  letter-spacing:1px;
  color:var(--white);
}
.workout-item h3{font-size:24px;line-height:1.05}
.workout-item p,
.stored-card p,
.stored-empty,
.empty-builder p{
  color:var(--muted2);
  font-size:13px;
}
.remove-item{
  width:30px;height:30px;
  border-radius:50%;
  border:1px solid var(--border2);
  background:var(--card);
  color:var(--muted2);
  cursor:pointer;
  font-size:20px;
  line-height:1;
}
.workout-prescription{
  display:grid;
  grid-template-columns:repeat(3,minmax(92px,1fr));
  gap:10px;
}
.workout-prescription label{
  display:flex;
  flex-direction:column;
  gap:5px;
  font-size:10px;
  font-weight:800;
  letter-spacing:1px;
  text-transform:uppercase;
  color:var(--muted);
}
.workout-prescription input{
  width:100%;
  background:var(--card);
  border:1px solid var(--border2);
  color:var(--text);
  border-radius:7px;
  padding:9px 10px;
  font:inherit;
  font-size:14px;
  text-transform:none;
  letter-spacing:0;
  outline:none;
}
.workout-prescription input:focus{border-color:rgba(200,241,53,0.45)}
.move-controls{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.move-controls button{
  width:32px;
  height:32px;
  border:1px solid var(--border2);
  background:var(--card);
  color:var(--text);
  border-radius:7px;
  cursor:pointer;
}
.move-controls button:disabled{opacity:0.25;cursor:not-allowed}
.empty-builder{
  border:1px dashed var(--border2);
  border-radius:10px;
  padding:34px 20px;
  text-align:center;
}
.empty-builder h3{
  font-family:'Bebas Neue',sans-serif;
  font-size:34px;
  color:var(--white);
  letter-spacing:1px;
  margin-bottom:6px;
}
.empty-builder p{max-width:440px;margin:0 auto 18px}
.workout-library-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
}
.library-panel{padding:20px}
.library-panel h2{
  font-size:32px;
  line-height:1.05;
  margin:4px 0 16px;
}
.stored-list{display:flex;flex-direction:column;gap:10px}
.stored-card,
.stored-empty{
  background:var(--black);
  border:1px solid var(--border);
  border-radius:9px;
  padding:14px;
}
.stored-card h3{font-size:22px}
.stored-actions{
  display:flex;
  gap:8px;
  margin-top:12px;
}
.stored-actions button{
  border:1px solid var(--border2);
  background:var(--card);
  color:var(--text);
  border-radius:7px;
  padding:8px 12px;
  cursor:pointer;
  font-weight:800;
  font-size:12px;
}
.stored-actions button:hover{border-color:rgba(200,241,53,0.35)}
.workout-mode{
  position:fixed;
  inset:0;
  z-index:1200;
  background:rgba(8,8,8,0.98);
  display:none;
  padding:30px;
}
.workout-mode.open{
  display:flex;
  flex-direction:column;
}
.mode-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  max-width:920px;
  width:100%;
  margin:0 auto 28px;
}
.mode-close{
  width:42px;height:42px;
  border-radius:50%;
  border:1px solid var(--border2);
  background:var(--card);
  color:var(--text);
  font-size:28px;
  cursor:pointer;
}
.mode-progress{
  color:var(--muted2);
  font-size:13px;
  font-weight:800;
  letter-spacing:1px;
  text-transform:uppercase;
}
.mode-card{
  max-width:760px;
  width:100%;
  margin:auto;
  text-align:center;
}
.mode-kicker{
  color:var(--lime);
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:2px;
  margin-bottom:12px;
}
.mode-card h2{
  font-family:'Bebas Neue',sans-serif;
  font-size:clamp(56px,9vw,116px);
  line-height:0.9;
  letter-spacing:2px;
  color:var(--white);
  margin-bottom:14px;
}
.mode-card p{
  font-family:'Instrument Serif',serif;
  font-style:italic;
  color:var(--muted2);
  font-size:24px;
}
.mode-timer{
  font-family:'Bebas Neue',sans-serif;
  font-size:clamp(86px,14vw,160px);
  line-height:1;
  color:var(--lime);
  margin:28px 0;
  letter-spacing:2px;
}
.mode-controls{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:10px;
}

/* ════════════════════════════════════════════
   DETAIL PAGE
════════════════════════════════════════════ */

/* ════════════════════════════════════════════
   BREADCRUMBS (detail page)
════════════════════════════════════════════ */
.ex-breadcrumb{
  padding:88px 40px 0;
  position:relative;
  z-index:2;
}
.ex-breadcrumb-inner{
  max-width:1200px;
  margin:0 auto;
  padding:14px 18px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:100px;
  display:inline-flex;
  align-items:center;
  gap:4px;
  flex-wrap:wrap;
  font-size:12px;
  font-weight:500;
  letter-spacing:0.2px;
  box-shadow:0 4px 20px rgba(0,0,0,0.2);
  backdrop-filter:blur(10px);
}
/* Chevron home icon */
.ex-breadcrumb-home{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:22px;height:22px;
  color:var(--muted2);
  flex-shrink:0;
  transition:color 0.2s;
}
.ex-breadcrumb-home:hover{color:var(--lime)}
.ex-breadcrumb-home svg{width:13px;height:13px}

/* Each crumb link */
.ex-breadcrumb a,
.ex-breadcrumb span.current{
  display:inline-flex;
  align-items:center;
  padding:4px 10px;
  border-radius:100px;
  text-decoration:none;
  transition:all 0.2s;
  white-space:nowrap;
}
.ex-breadcrumb a{
  color:var(--muted2);
}
.ex-breadcrumb a:hover{
  color:var(--lime);
  background:rgba(200,241,53,0.08);
}
/* Current page: filled lime pill */
.ex-breadcrumb .current{
  color:var(--lime);
  background:rgba(200,241,53,0.1);
  border:1px solid rgba(200,241,53,0.25);
  font-weight:600;
  padding:3px 10px;
}

/* Separator chevrons */
.ex-breadcrumb .sep{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:var(--border2);
  font-size:10px;
  margin:0 -2px;
  user-select:none;
  flex-shrink:0;
}
.ex-breadcrumb .sep::before{
  content:'›';
  font-size:16px;
  line-height:1;
  color:var(--muted);
  opacity:0.5;
}

/* Wrap the inner so it doesn't stretch full width */
.ex-breadcrumb-wrap{
  max-width:1200px;
  margin:0 auto;
}

@media(max-width:900px){
  .ex-breadcrumb{padding:80px 24px 0}
  .ex-breadcrumb-inner{
    padding:10px 12px;
    font-size:11px;
    border-radius:12px;
    display:flex;
    width:100%;
    overflow-x:auto;
    scrollbar-width:none;
  }
  .ex-breadcrumb-inner::-webkit-scrollbar{display:none}
  .ex-breadcrumb a,
  .ex-breadcrumb span.current{padding:3px 8px}
}

/* LAYOUT: two columns */
.ex-detail{
  padding:24px 40px 80px;
}
.ex-detail-inner{
  max-width:1200px;margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0,40%) minmax(0,60%);
  gap:56px;
  align-items:start;
}

/* LEFT COLUMN: sticky */
.ex-sticky{
  position:sticky;top:84px;
  display:flex;flex-direction:column;gap:20px;
}
.ex-video-box{
  background:linear-gradient(145deg,#1a1a1a 0%,#0d0d0d 100%);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  overflow:hidden;
  aspect-ratio:1/1;
  position:relative;
}
.ex-video-box video,
.ex-video-box img{
  width:100%;height:100%;object-fit:cover;display:block;
}
.ex-video-placeholder{
  position:absolute;inset:0;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  font-family:'Bebas Neue',sans-serif;
  font-size:32px;letter-spacing:2px;
  color:rgba(255,255,255,0.18);
  text-align:center;padding:20px;line-height:1;
}
.ex-video-placeholder span{
  font-family:'DM Sans',sans-serif;
  font-size:11px;font-weight:500;letter-spacing:2px;
  text-transform:uppercase;color:var(--muted);
  margin-top:16px;
}
.ex-video-ctrl{
  position:absolute;bottom:14px;right:14px;
  width:38px;height:38px;
  background:rgba(0,0,0,0.7);
  backdrop-filter:blur(10px);
  border:1px solid rgba(255,255,255,0.15);
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;color:var(--white);
  transition:all 0.2s;
  z-index:2;
}
.ex-video-ctrl:hover{background:rgba(0,0,0,0.85);border-color:rgba(200,241,53,0.4)}

/* Muscles worked panel (small) */
.ex-muscles-panel{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:20px;
}
.ex-muscles-title{
  font-size:11px;font-weight:700;letter-spacing:2px;text-transform:uppercase;
  color:var(--lime);margin-bottom:14px;
}
.ex-muscles-group{margin-bottom:14px}
.ex-muscles-group:last-child{margin-bottom:0}
.ex-muscles-sub{
  font-size:10px;font-weight:600;letter-spacing:1.5px;text-transform:uppercase;
  color:var(--muted);margin-bottom:8px;
}
.ex-muscle-list{
  display:flex;flex-wrap:wrap;gap:6px;
}
.ex-muscle-tag{
  font-size:12px;font-weight:500;
  padding:5px 10px;border-radius:6px;
  background:rgba(200,241,53,0.08);
  border:1px solid rgba(200,241,53,0.25);
  color:var(--lime);
}
.ex-muscle-tag.secondary{
  background:rgba(255,255,255,0.03);
  border-color:var(--border);
  color:var(--muted2);
}

/* RIGHT COLUMN */
.ex-content{min-width:0}

/* Title block */
.ex-title-block{margin-bottom:28px}
.ex-title{
  font-family:'Bebas Neue',sans-serif;
  font-size:clamp(42px,6vw,72px);
  line-height:0.95;letter-spacing:1.5px;
  color:var(--white);
  margin-bottom:16px;
}
.ex-pills{
  display:flex;flex-wrap:wrap;gap:6px;
  margin-bottom:16px;
}
.ex-pill{
  font-size:11px;font-weight:600;
  padding:5px 12px;border-radius:6px;
  letter-spacing:0.3px;
  border:1px solid var(--border);
  background:rgba(255,255,255,0.03);
  color:var(--muted2);
  text-transform:uppercase;
}
.ex-pill.muscle{
  color:var(--lime);
  border-color:rgba(200,241,53,0.25);
  background:rgba(200,241,53,0.06);
}
.ex-pill.diff-beginner{color:var(--green);border-color:rgba(34,197,94,0.3);background:rgba(34,197,94,0.06)}
.ex-pill.diff-intermediate{color:var(--lime);border-color:rgba(200,241,53,0.3);background:rgba(200,241,53,0.06)}
.ex-pill.diff-advanced{color:#f59e0b;border-color:rgba(245,158,11,0.3);background:rgba(245,158,11,0.06)}
.ex-summary{
  font-family:'Instrument Serif',serif;
  font-style:italic;
  font-size:clamp(17px,2.4vw,22px);
  color:var(--muted2);
  line-height:1.45;
}

/* Quick stats strip */
.ex-stats{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:1px;
  background:var(--border);
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  margin-bottom:48px;
}
.ex-stat{
  background:var(--card);
  padding:16px 14px;
  display:flex;flex-direction:column;gap:4px;
}
.ex-stat-label{
  font-size:10px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;
  color:var(--muted);
}
.ex-stat-value{
  font-family:'DM Sans',sans-serif;
  font-size:14px;font-weight:600;
  color:var(--white);
  line-height:1.2;
}

/* Section headings */
.ex-section{margin-bottom:52px}
.ex-section:last-child{margin-bottom:0}
.ex-section-label{
  display:inline-flex;align-items:center;gap:8px;
  font-size:11px;font-weight:700;letter-spacing:3px;text-transform:uppercase;
  color:var(--lime);margin-bottom:14px;
}
.ex-section-label::before{
  content:'';display:block;
  width:20px;height:2px;background:var(--lime);
}
.ex-section h2{
  font-family:'Bebas Neue',sans-serif;
  font-size:clamp(28px,4vw,40px);
  line-height:1;letter-spacing:1px;
  color:var(--white);margin-bottom:24px;
}
.ex-section h2 em{
  font-family:'Instrument Serif',serif;
  font-style:italic;color:var(--lime);letter-spacing:0;
}

/* How to steps */
.ex-steps{
  display:flex;flex-direction:column;gap:20px;
}
.ex-step{
  display:grid;
  grid-template-columns:72px 1fr;
  gap:20px;
  align-items:start;
}
.ex-step-num{
  font-family:'Bebas Neue',sans-serif;
  font-size:52px;line-height:0.9;letter-spacing:1px;
  color:var(--lime);
  padding-top:2px;
}
.ex-step-body{}
.ex-step-title{
  font-family:'DM Sans',sans-serif;
  font-size:16px;font-weight:700;
  color:var(--white);margin-bottom:4px;
}
.ex-step-text{
  font-size:15px;color:var(--muted2);line-height:1.65;
}

/* Mistakes cards */
.ex-mistakes{
  display:flex;flex-direction:column;gap:12px;
}
.ex-mistake{
  background:var(--card);
  border:1px solid var(--border);
  border-left:3px solid var(--red);
  border-radius:var(--radius);
  padding:16px 18px;
}
.ex-mistake-head{
  display:flex;align-items:center;gap:10px;
  margin-bottom:8px;
}
.ex-mistake-x{
  width:22px;height:22px;flex-shrink:0;
  background:rgba(239,68,68,0.12);
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  color:var(--red);
  font-weight:700;font-size:13px;line-height:1;
}
.ex-mistake-name{
  font-family:'DM Sans',sans-serif;
  font-size:15px;font-weight:700;
  color:var(--white);
}
.ex-mistake-body{
  font-size:14px;color:var(--muted2);line-height:1.6;
}
.ex-mistake-fix{
  color:var(--text);
  margin-top:4px;
}
.ex-mistake-fix strong{color:var(--lime);font-weight:600}

/* Easier / Harder two-up */
.ex-variations{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
.ex-variation-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:20px;
}
.ex-variation-head{
  display:flex;align-items:center;gap:10px;
  margin-bottom:14px;
}
.ex-variation-icon{
  width:28px;height:28px;
  border-radius:8px;
  display:flex;align-items:center;justify-content:center;
  font-size:14px;flex-shrink:0;
}
.ex-variation-card.easier .ex-variation-icon{
  background:rgba(34,197,94,0.12);color:var(--green);
}
.ex-variation-card.harder .ex-variation-icon{
  background:rgba(245,158,11,0.12);color:#f59e0b;
}
.ex-variation-title{
  font-family:'Bebas Neue',sans-serif;
  font-size:20px;letter-spacing:1px;color:var(--white);
}
.ex-variation-list{list-style:none;display:flex;flex-direction:column;gap:10px}
.ex-variation-list li{
  font-size:14px;color:var(--muted2);line-height:1.5;
  padding-left:14px;position:relative;
}
.ex-variation-list li::before{
  content:'';position:absolute;
  left:0;top:8px;
  width:5px;height:5px;border-radius:50%;
  background:var(--muted);
}
.ex-variation-card.easier .ex-variation-list li::before{background:var(--green)}
.ex-variation-card.harder .ex-variation-list li::before{background:#f59e0b}

/* Programming table */
.ex-prog{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
}
.ex-prog-table{
  width:100%;border-collapse:collapse;
  font-size:13px;
}
.ex-prog-table th,
.ex-prog-table td{
  padding:14px 16px;text-align:left;
  border-bottom:1px solid var(--border);
  vertical-align:top;
}
.ex-prog-table tr:last-child td{border-bottom:none}
.ex-prog-table th{
  font-size:10px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;
  color:var(--muted);
  background:var(--card2);
}
.ex-prog-table th:first-child,
.ex-prog-table td:first-child{
  font-weight:700;color:var(--white);
}
.ex-prog-table td{color:var(--text)}
.ex-prog-table td strong{color:var(--lime);font-weight:700}
.ex-prog-goal-icon{margin-right:6px}

/* CTA block (conversion moment) */
.ex-cta{
  background:var(--card);
  border:1px solid var(--lime);
  border-radius:var(--radius-lg);
  padding:36px 32px;
  position:relative;overflow:hidden;
  text-align:left;
}
.ex-cta::before{
  content:'';position:absolute;inset:0;
  background:radial-gradient(ellipse 80% 80% at 0% 0%,rgba(200,241,53,0.08),transparent 60%);
  pointer-events:none;
}
.ex-cta-inner{position:relative;z-index:1}
.ex-cta h3{
  font-family:'Bebas Neue',sans-serif;
  font-size:clamp(26px,3.5vw,36px);
  line-height:1.05;letter-spacing:1px;
  color:var(--white);margin-bottom:12px;
}
.ex-cta h3 em{
  font-family:'Instrument Serif',serif;
  font-style:italic;color:var(--lime);
}
.ex-cta p{
  font-size:14px;color:var(--muted2);line-height:1.65;
  margin-bottom:20px;max-width:520px;
}
.ex-cta-btn{
  display:inline-flex;align-items:center;gap:10px;
  background:var(--lime);color:#000;
  font-weight:700;font-size:14px;letter-spacing:0.3px;
  padding:13px 26px;border-radius:8px;
  text-decoration:none;
  transition:transform 0.2s,box-shadow 0.2s,opacity 0.2s;
}
.ex-cta-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 28px rgba(200,241,53,0.25);
  opacity:0.92;
}
.ex-cta-note{
  display:block;margin-top:12px;
  font-size:12px;color:var(--muted);
}

/* Related scroller */
.ex-related-scroller{
  display:flex;gap:14px;
  overflow-x:auto;overflow-y:hidden;
  padding-bottom:8px;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
}
.ex-related-scroller::-webkit-scrollbar{height:4px}
.ex-related-scroller::-webkit-scrollbar-track{background:transparent}
.ex-related-scroller::-webkit-scrollbar-thumb{background:var(--border2);border-radius:4px}
.ex-related-scroller > .ex-card{
  flex:0 0 220px;
  scroll-snap-align:start;
}

/* ════════════════════════════════════════════
   FOOTER (identical)
════════════════════════════════════════════ */
footer{background:var(--dark);border-top:1px solid var(--border);padding:48px 40px 32px}
.footer-inner{
  max-width:1200px;margin:0 auto;
  display:grid;grid-template-columns:2fr 1fr 1fr;gap:48px;margin-bottom:40px;
}
.footer-brand{font-family:'Bebas Neue',sans-serif;font-size:24px;letter-spacing:3px;color:var(--lime);margin-bottom:12px}
.footer-brand span{color:var(--white)}
.footer-desc{font-size:13px;color:var(--muted);line-height:1.7;max-width:280px}
.footer-col-title{font-size:11px;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:var(--muted2);margin-bottom:16px}
.footer-links{list-style:none;display:flex;flex-direction:column;gap:10px}
.footer-links a{font-size:13px;color:var(--muted);text-decoration:none;transition:color 0.2s}
.footer-links a:hover{color:var(--text)}
.footer-bottom{
  border-top:1px solid var(--border);padding-top:24px;
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;
  max-width:1200px;margin:0 auto;
}
.footer-copy{font-size:12px;color:var(--muted)}
.footer-ig{
  display:inline-flex;align-items:center;gap:6px;
  font-size:12px;color:var(--muted);text-decoration:none;transition:color 0.2s;
}
.footer-ig:hover{color:var(--lime)}

/* ════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */
@media(max-width:1100px){
  .ex-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:900px){
  nav{padding:0 20px}
  .nav-links{display:none}
  .hamburger{display:flex}
  .mobile-menu{padding:24px 20px}
  .ex-hero{padding:96px 20px 28px}
  .ex-builder-intro{padding:0 20px 18px}
  .ex-builder-intro-inner{grid-template-columns:1fr;gap:14px;padding:16px}
  .ex-builder-intro h2{font-size:28px}
  .ex-builder-steps{order:2}
  .ex-builder-link{order:3;width:100%}
  .ex-search-wrap{padding:16px 20px 14px}
  .ex-chips-section{padding:20px 20px 0}
  .ex-secondary{padding:16px 20px 0}
  .ex-count-bar{padding:16px 20px 0}
  .ex-grid-section{padding:20px 20px 80px}
  .ex-grid{grid-template-columns:repeat(2,1fr);gap:12px}
  .ex-breadcrumb{padding:84px 20px 0}
  .ex-detail{padding:20px 20px 60px}
  .ex-detail-inner{
    grid-template-columns:1fr;
    gap:28px;
  }
  .ex-sticky{position:static;top:auto}
  .ex-video-box{aspect-ratio:16/10}
  .ex-stats{grid-template-columns:repeat(2,1fr)}
  .ex-variations{grid-template-columns:1fr}
  .ex-prog-table th,
  .ex-prog-table td{padding:10px 12px}
  .ex-cta{padding:28px 22px}
  .ex-step{grid-template-columns:48px 1fr;gap:14px}
  .ex-step-num{font-size:38px}
  .gb-workout-bar{padding:0 0 0}
  .gb-workout-bar-inner{max-width:none;border-radius:0;border-left:0;border-right:0;border-bottom:0;align-items:stretch}
  .gb-workout-selected{max-width:calc(100vw - 170px)}
  .workout-shell{padding:96px 20px 64px}
  .builder-panel{padding:16px}
  .builder-head{grid-template-columns:1fr;align-items:stretch}
  .builder-actions{justify-content:flex-start}
  .workout-library-grid{grid-template-columns:1fr}
  .workout-item{grid-template-columns:1fr;gap:10px}
  .drag-handle{display:none}
  .move-controls{flex-direction:row}
  .footer-inner{grid-template-columns:1fr;gap:32px}
  footer{padding:48px 20px 32px}
}
@media(max-width:480px){
  .ex-grid{grid-template-columns:repeat(2,1fr);gap:10px}
  .ex-card-body{padding:10px 10px 12px}
  .ex-card-name{font-size:15px}
  .ex-card-meta{font-size:10px;gap:6px}
  .ex-stats{grid-template-columns:repeat(2,1fr)}
  .ex-stat{padding:12px 10px}
  .ex-autoplay{font-size:11px}
  .ex-tabs{gap:6px}
  .ex-tab{padding:7px 14px;font-size:12px}
  .ex-chip{padding:7px 14px;font-size:12px}
  .ex-title{font-size:clamp(34px,8vw,48px)}
  .ex-summary{font-size:16px}
  .ex-prog-table{font-size:12px}
  .ex-prog-table th{font-size:9px;letter-spacing:1px}
  .gb-workout-count{font-size:13px}
  .gb-workout-link{padding:0 14px}
  .gb-workout-bar-inner{gap:10px;padding-left:12px}
  .gb-workout-selected{max-width:calc(100vw - 150px)}
  .gb-workout-chip{max-width:132px}
  .workout-hero h1{font-size:50px}
  .workout-name-input{font-size:24px}
  .builder-actions{display:grid;grid-template-columns:1fr 1fr}
  .builder-actions .primary{grid-column:1 / -1}
  .workout-prescription{grid-template-columns:1fr 1fr 1fr;gap:8px}
  .workout-mode{padding:18px}
}
