:root {
  --bg: #0a0d10;
  --frame: #0f1216;
  --card: #161a22;
  --card-2: #1c2029;
  --accent: #d4ff3a;
  --accent-ink: #0a0d10;
  --text: #e7e9ee;
  --muted: #8a90a0;
  --border: #232836;
  --danger: #ff5a5a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { opacity: .9; }

/* ===== App frame: olhar de app mobile mesmo no desktop ===== */
.app-frame {
  background: var(--frame);
  min-height: 100vh;
  max-width: 460px;
  margin: 0 auto;
  padding: 24px 20px 110px;
  position: relative;
}

@media (min-width: 600px) {
  body { padding: 24px 0; }
  .app-frame {
    border-radius: 28px;
    box-shadow: 0 30px 60px rgba(0,0,0,.6);
    min-height: calc(100vh - 48px);
  }
}

/* ===== Hero / Saudação ===== */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: 22px;
  margin: 0;
  font-weight: 700;
}
.hero .subtitle { color: var(--muted); font-size: 13px; margin-top: 2px; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--card-2);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px;
  border: 1px solid var(--border);
}

/* ===== Section ===== */
.section-title {
  font-size: 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 600;
  margin: 24px 0 10px;
}
.section-header {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 24px 0 12px;
}
.section-header h2 { margin: 0; font-size: 18px; }
.see-all { font-size: 13px; color: var(--muted); }

/* ===== Week strip ===== */
.week-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.week-strip::-webkit-scrollbar { display: none; }
.day {
  flex: 0 0 auto;
  width: 52px; padding: 12px 0;
  border-radius: 18px;
  background: var(--card);
  text-align: center;
  border: 1px solid var(--border);
}
.day .dow { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; }
.day .dom { display: block; font-size: 18px; font-weight: 700; margin-top: 4px; }
.day.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.day.active .dow { color: var(--accent-ink); opacity: .7; }

/* ===== Featured card ===== */
.featured-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 20px;
  margin-top: 14px;
  overflow: hidden;
}
.featured-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.featured-title {
  font-size: 22px;
  margin: 12px 0 6px;
  max-width: 70%;
}
.featured-meta { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.featured-meta span + span { margin-left: 8px; }
.progress-ring {
  position: absolute;
  top: 18px; right: 18px;
  width: 84px; height: 84px;
  display: flex; align-items: center; justify-content: center;
}
.progress-ring svg { position: absolute; inset: 0; }
.progress-ring .label {
  position: relative;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 30px;
  margin-top: 6px;
}
.cta .arrow {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent-ink);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px;
}

/* ===== Activity grid ===== */
.activity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.activity-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  min-height: 130px;
  display: flex; flex-direction: column; justify-content: space-between;
  color: var(--text);
  position: relative;
  overflow: hidden;
}
.activity-card::before {
  content: "";
  position: absolute;
  top: -20px; right: -20px;
  width: 80px; height: 80px;
  background: radial-gradient(circle, rgba(212,255,58,.15), transparent 70%);
  border-radius: 50%;
}
.activity-card h3 { margin: 0; font-size: 16px; }
.activity-card .ex-count {
  color: var(--muted); font-size: 12px; margin-top: 4px;
}
.activity-card .corner-pill {
  align-self: flex-start;
  background: rgba(212,255,58,.15);
  color: var(--accent);
  font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: .4px;
}

/* ===== Bottom nav ===== */
.bottom-nav {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 420px;
  background: rgba(22,26,34,.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 30px;
  display: flex;
  justify-content: space-around;
  padding: 10px 8px;
  z-index: 50;
}
.bottom-nav a {
  flex: 1;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  padding: 6px 4px;
  border-radius: 22px;
}
.bottom-nav a .icon {
  display: block;
  font-size: 18px;
  margin-bottom: 2px;
}
.bottom-nav a.active {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}

/* ===== Cards genéricos / forms ===== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 16px;
}
h1 { font-size: 22px; margin: 0 0 16px; }
h2 { font-size: 17px; margin: 22px 0 12px; }

.form-row { margin-bottom: 14px; display: flex; flex-direction: column; }
.form-row label { font-size: 12px; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .4px; }
.form-row input, .form-row textarea, .form-row select {
  background: #0d1116;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.row-inline { display: flex; gap: 10px; }
.row-inline .form-row { flex: 1; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  border-radius: 24px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.btn.secondary { background: var(--card-2); color: var(--text); border: 1px solid var(--border); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.small { padding: 6px 12px; font-size: 12px; }

.alert { padding: 10px 14px; border-radius: 12px; margin-bottom: 14px; font-size: 14px; }
.alert.error { background: #2a1414; border: 1px solid #6b2a2a; color: #ffb9b9; }
.alert.success { background: #14291a; border: 1px solid #2a6b3a; color: #b9ffc4; }

table.exercises { width: 100%; border-collapse: collapse; }
table.exercises th, table.exercises td {
  padding: 10px; border-bottom: 1px solid var(--border);
  text-align: left; font-size: 13px;
}
table.exercises th { color: var(--muted); font-weight: 500; }

.empty {
  text-align: center;
  color: var(--muted);
  padding: 28px 18px;
  border: 1px dashed var(--border);
  border-radius: 18px;
  background: var(--card);
}

.muted { color: var(--muted); }
.text-right { text-align: right; }
.mt-16 { margin-top: 16px; }

/* topbar antiga (auth screens) */
.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.auth-screen .card {
  width: 100%;
  max-width: 380px;
}
.auth-brand {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 20px;
  letter-spacing: .5px;
}

.btn.btn-block { display: block; width: 100%; text-align: left; padding: 14px 18px; font-size: 15px; }
.btn-large { font-size: 16px; padding: 14px 20px; }

/* ===== Creator (Novo treino landing) ===== */
.creator-card { text-align: left; }
.creator-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: rgba(212,255,58,.12);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin-bottom: 14px;
}
.quick-tips {
  background: rgba(255,255,255,.02);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
  margin-top: 14px;
}
.quick-tips h3 { margin: 0 0 8px; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.quick-tips ul { margin: 0; padding-left: 18px; color: var(--text); font-size: 14px; line-height: 1.7; }

/* ===== Workout editor ===== */
.editor-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  font-size: 16px;
}
.icon-btn.danger { color: var(--danger); }
.session-timer {
  font-variant-numeric: tabular-nums;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}
.rest-pill {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.exercise-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  margin: 0 -4px 12px;
  scrollbar-width: none;
}
.exercise-thumbs::-webkit-scrollbar { display: none; }
.thumb {
  flex: 0 0 auto;
  width: 60px; height: 60px;
  border-radius: 14px;
  background: var(--card);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 18px;
}
.thumb.active { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px rgba(212,255,58,.1); }
.thumb.add-thumb { color: var(--accent); border-style: dashed; }

.hero-exercise {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 14px;
  margin-bottom: 14px;
}
.hero-media {
  aspect-ratio: 16 / 11;
  background: #0d1116;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-placeholder { text-align: center; color: var(--muted); }
.hero-icon { display: block; font-size: 56px; margin-bottom: 6px; }
.hero-info { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 10px; }
.hero-info h2 { font-size: 16px; margin: 0; flex: 1; }
.how-to {
  background: var(--card-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.session-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.back-btn, .check-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
}
.back-btn { background: var(--card); border: 1px solid var(--border); color: var(--text); }
.check-btn { background: var(--accent); color: var(--accent-ink); margin-left: auto; }
.session-title-wrap { flex: 1; display: flex; flex-direction: column; }
.session-title-input {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
  padding: 2px 0;
  width: 100%;
  font-family: inherit;
}
.session-title-input:focus { outline: none; border-bottom: 2px solid var(--accent); }
.session-hint {
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 600;
}

.session-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 8px;
  margin-bottom: 14px;
}
.stat { text-align: center; }
.stat-label {
  display: block;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .8px;
  margin-bottom: 4px;
}
.stat-value { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-value.duration { color: var(--accent); }
.stat-value.volume { color: #5ab3ff; }
.stat-value.sets { color: var(--text); }

.exercise-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 12px;
}
.exercise-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.exercise-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.exercise-name-wrap { flex: 1; min-width: 0; }
.exercise-name-wrap h3 { margin: 0; font-size: 15px; letter-spacing: .3px; }
.exercise-subtitle { margin: 4px 0 0; font-size: 12px; color: var(--accent); }
.delete-inline { margin: 0; }

.sets-table {
  background: rgba(0,0,0,.18);
  border-radius: 12px;
  padding: 10px;
}
.sets-header-row, .set-row {
  display: grid;
  grid-template-columns: 36px 1fr 1fr 40px;
  gap: 10px;
  align-items: center;
}
.sets-header-row {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .8px;
  padding: 4px 6px 8px;
}
.set-row { padding: 4px 0; }
.set-row + .set-row { margin-top: 6px; }
.set-num {
  text-align: center;
  font-weight: 700;
  color: var(--text);
}
.set-pill {
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.set-check {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--card-2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}
.set-check.done { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.exercise-foot { margin-top: 10px; font-size: 12px; }

.add-exercise-card {
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 12px;
}
.add-exercise-card h3 { margin: 0 0 12px; font-size: 15px; color: var(--accent); }

.danger-card { border-color: rgba(255,90,90,.3); margin-bottom: 100px; }

/* Rest timer bar (fixed bottom) */
.rest-timer-bar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 420px;
  background: rgba(22,26,34,.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  z-index: 50;
}
.rest-ring {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  flex-shrink: 0;
}
.rest-ring.running { animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,255,58,.4); }
  50% { box-shadow: 0 0 0 6px rgba(212,255,58,0); }
}
.time-btn {
  flex: 1;
  background: var(--card-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 22px;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.time-btn.accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); flex: 0 0 50px; }

/* Modal */
.modal {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: 18px;
  padding: 20px;
  max-width: 320px;
}
.modal::backdrop { background: rgba(0,0,0,.6); }
.modal h3 { margin: 0 0 8px; }

/* Capa do treino (workout_edit) */
.cover-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 14px;
}
.cover-preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  margin-bottom: 12px;
}
.cover-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cover-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  padding: 28px 16px;
  border: 2px dashed var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.cover-dropzone:hover {
  border-color: var(--accent);
  background: rgba(212,255,58,.04);
}
.cover-dropzone-icon { font-size: 32px; }
.cover-dropzone strong { color: var(--text); font-size: 14px; }
.cover-dropzone small { color: var(--muted); font-size: 12px; }

/* ===========================================
   DESKTOP WORKOUT EDITOR
   =========================================== */
.session-pill {
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 30px;
  padding: 8px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
  color: #fff;
}
.session-pill-label { font-size: 9px; color: rgba(255,255,255,.6); letter-spacing: .8px; }
.session-pill-time { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--accent); }

.editor-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
  align-items: start;
}
.editor-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.editor-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 20px; }

/* Title bar */
.editor-title-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 14px 18px;
}
.icon-btn-light {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.1);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 16px;
  cursor: pointer;
}
.icon-btn-light.danger { color: #ff8a8a; }
.icon-btn-light:hover { background: rgba(255,255,255,.18); }

.editor-title-form { flex: 1; display: flex; flex-direction: column; }
.editor-title-input {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  padding: 2px 0;
  font-family: inherit;
  width: 100%;
}
.editor-title-input:focus { outline: none; border-bottom: 2px solid var(--accent); }
.editor-title-hint {
  font-size: 10px;
  color: rgba(255,255,255,.5);
  letter-spacing: .8px;
  text-transform: uppercase;
}

/* Big media (video player / cover) */
.hero-media-big {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0d1116;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
}
.hero-placeholder-big {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.5);
  text-align: center;
  gap: 8px;
}
.hero-icon-big { font-size: 80px; filter: drop-shadow(0 6px 14px rgba(0,0,0,.5)); }
.hero-media-overlay {
  position: absolute;
  left: 24px;
  bottom: 20px;
  right: 24px;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  z-index: 2;
}
.hero-media-overlay::before {
  content: "";
  position: absolute;
  inset: -40px -24px -20px -24px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.75) 70%);
  z-index: -1;
  pointer-events: none;
}
.hero-media-label {
  font-size: 10px;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  letter-spacing: 1px;
  display: block;
}
.hero-media-overlay h2 { color: #fff; font-size: 22px; margin: 4px 0 0; flex: 1; line-height: 1.2; }
.how-to-light {
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}

/* Exercise cards (desktop) */
.exercise-card-d {
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 16px 18px;
}
.exercise-card-d-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.exercise-icon-d {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}
.exercise-name-wrap-d { flex: 1; min-width: 0; color: #fff; }
.exercise-name-wrap-d h3 { margin: 0; font-size: 14px; letter-spacing: .4px; }
.exercise-subtitle-d { margin: 4px 0 0; font-size: 12px; color: var(--accent); }

.sets-table-d {
  background: rgba(0,0,0,.3);
  border-radius: 12px;
  padding: 10px 12px;
}
.sets-header-row-d, .set-row-d {
  display: grid;
  grid-template-columns: 36px 1fr 1fr 40px;
  gap: 10px;
  align-items: center;
  color: #fff;
}
.sets-header-row-d {
  font-size: 10px;
  color: rgba(255,255,255,.5);
  letter-spacing: .8px;
  padding-bottom: 8px;
}
.set-row-d { padding: 4px 0; }
.set-row-d + .set-row-d { margin-top: 6px; border-top: 1px solid rgba(255,255,255,.05); padding-top: 8px; }
.set-num-d { text-align: center; font-weight: 700; color: #fff; }
.set-pill-d {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 8px 10px;
  text-align: center;
  font-weight: 600;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.set-check-d {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.5);
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.set-check-d.done { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.exercise-foot-d { margin-top: 10px; font-size: 12px; color: rgba(255,255,255,.6); }

.add-exercise-card-d {
  background: rgba(0,0,0,.28);
  border: 1px dashed rgba(255,255,255,.18);
  border-radius: 18px;
  padding: 18px;
}
.add-exercise-card-d h3 { margin: 0 0 12px; font-size: 14px; color: var(--accent); }
.add-exercise-card-d .form-row label { color: rgba(255,255,255,.7); }
.add-exercise-card-d input, .add-exercise-card-d textarea {
  background: rgba(0,0,0,.4);
  border-color: rgba(255,255,255,.12);
  color: #fff;
}

/* SIDEBAR cards */
.side-card {
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 16px;
  color: #fff;
}
.side-card-title {
  margin: 0 0 12px;
  font-size: 12px;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
  letter-spacing: .8px;
  font-weight: 700;
}

.side-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.side-stat { text-align: center; }
.side-stat-label {
  display: block;
  font-size: 9px;
  color: rgba(255,255,255,.5);
  letter-spacing: .8px;
  margin-bottom: 4px;
}
.side-stat-value { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.side-stat-value.duration { color: var(--accent); }
.side-stat-value.volume { color: #7dd3fc; }

/* Timer card */
.timer-card-d { text-align: center; }
.big-timer {
  font-size: 42px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  margin: 6px 0 14px;
  letter-spacing: 1px;
}
.big-timer.running { animation: pulseGlow 1.5s ease-in-out infinite; }
@keyframes pulseGlow {
  0%, 100% { text-shadow: 0 0 0 transparent; }
  50% { text-shadow: 0 0 20px rgba(212,255,58,.6); }
}
.timer-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 6px;
}
.time-btn-d {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  color: #fff;
  border-radius: 22px;
  padding: 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.time-btn-d:hover { background: rgba(255,255,255,.15); }
.time-btn-d.play {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  width: 44px;
}

/* Exercise list */
.ex-list { list-style: none; padding: 0; margin: 0 0 10px; }
.ex-list-item {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  margin-bottom: 4px;
  transition: background .2s;
}
.ex-list-item:hover { background: rgba(255,255,255,.06); }
.ex-list-item.active { background: rgba(212,255,58,.12); border: 1px solid rgba(212,255,58,.3); }
.ex-list-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}
.ex-list-item.active .ex-list-num { background: var(--accent); color: var(--accent-ink); }
.ex-list-name {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ex-list-meta { font-size: 11px; color: rgba(255,255,255,.6); font-variant-numeric: tabular-nums; }
.ex-add-link {
  display: block;
  text-align: center;
  padding: 8px;
  border-radius: 12px;
  border: 1px dashed rgba(255,255,255,.18);
  color: var(--accent);
  font-size: 12px;
  text-decoration: none;
}
.ex-add-link:hover { background: rgba(212,255,58,.06); }

/* Cover side card */
.cover-preview-d {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
}
.cover-dropzone-d {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 22px 12px;
  border: 2px dashed rgba(255,255,255,.18);
  border-radius: 12px;
  cursor: pointer;
}
.cover-dropzone-d:hover { border-color: var(--accent); background: rgba(212,255,58,.04); }
.cover-dropzone-d strong { font-size: 13px; color: #fff; }
.cover-dropzone-d small { font-size: 11px; color: rgba(255,255,255,.5); }

.btn.small { padding: 7px 14px; font-size: 12px; }
.danger-card-d { border-color: rgba(255,90,90,.25); }

/* Form rows na sidebar light overrides */
.editor-main .form-row label { color: rgba(255,255,255,.7); }

/* Responsivo */
@media (max-width: 1100px) {
  .editor-grid { grid-template-columns: 1fr; }
  .editor-side { position: static; }
}

/* ===========================================
   DESKTOP NOVO TREINO (create stage)
   =========================================== */
.create-stage {
  max-width: 560px;
  margin: 30px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.create-card {
  background: rgba(0,0,0,.32);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  padding: 32px 28px;
  color: #fff;
  text-align: center;
}
.creator-icon-d {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: rgba(212,255,58,.12);
  border: 1px solid rgba(212,255,58,.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 16px;
}
.create-title { margin: 0 0 6px; font-size: 26px; }
.create-subtitle { color: rgba(255,255,255,.6); margin: 0 0 22px; }
.create-card .form-row { text-align: left; }
.create-card .form-row input {
  background: rgba(0,0,0,.4);
  border-color: rgba(255,255,255,.12);
  color: #fff;
}
.create-card .form-row label { color: rgba(255,255,255,.7); }
.create-tips {
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 18px;
  padding: 18px 22px;
  color: #fff;
}
.create-tips h3 {
  margin: 0 0 8px;
  font-size: 12px;
  color: rgba(255,255,255,.7);
  letter-spacing: .8px;
  text-transform: uppercase;
}
.create-tips ul { margin: 0; padding-left: 20px; color: rgba(255,255,255,.85); font-size: 14px; line-height: 1.8; }

/* ===========================================
   DESKTOP VER TREINO (workout_view)
   =========================================== */
.view-hero {
  position: relative;
  border-radius: 22px;
  min-height: 340px;
  padding: 36px;
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
}
.view-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.3) 60%, transparent 100%),
    linear-gradient(180deg, transparent 50%, rgba(0,0,0,.6) 100%);
}
.view-hero-content { position: relative; z-index: 1; max-width: 65%; }
.view-hero-content h1 { font-size: 38px; margin: 10px 0 12px; line-height: 1.05; letter-spacing: -.5px; }
.view-hero-content p { color: rgba(255,255,255,.85); margin: 0 0 22px; line-height: 1.5; max-width: 540px; }

.view-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
.view-stat {
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 18px;
  text-align: center;
  color: #fff;
}
.view-stat-label { display: block; font-size: 11px; letter-spacing: .8px; color: rgba(255,255,255,.6); margin-bottom: 6px; }
.view-stat-value { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.view-stat-value.volume { color: #7dd3fc; }
.view-stat-value.sets { color: var(--accent); }

.view-section-title {
  color: #fff;
  margin: 24px 0 12px;
  font-size: 16px;
  font-weight: 700;
}

.view-exercises { display: flex; flex-direction: column; gap: 10px; }
.view-exercise {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: flex-start;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 16px 20px;
  color: #fff;
}
.view-exercise-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
}
.view-exercise-body h3 { margin: 0 0 4px; font-size: 16px; }
.view-exercise-notes { margin: 0 0 8px; color: rgba(255,255,255,.65); font-size: 13px; }
.view-exercise-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: rgba(255,255,255,.7);
  font-size: 13px;
}
.view-exercise-meta strong { color: #fff; font-variant-numeric: tabular-nums; }

@media (max-width: 1100px) {
  .view-hero-content { max-width: 100%; }
  .view-hero-content h1 { font-size: 28px; }
}
@media (max-width: 720px) {
  .view-stats { grid-template-columns: 1fr; }
}

/* ===========================================
   EXERCISE LIBRARY (carrosséis no editor)
   =========================================== */
.library-section {
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 18px;
  padding: 16px;
}
.library-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 4px;
}
.library-header h3 { color: #fff; margin: 0; font-size: 16px; }
.library-hint { color: rgba(255,255,255,.55); font-size: 12px; }

.library-group { margin-top: 16px; }
.library-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.library-group-icon {
  width: 32px; height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border: 1px solid rgba(255,255,255,.08);
}
.library-group-header h4 {
  color: #fff;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .3px;
  flex: 1;
}
.library-group-count { color: rgba(255,255,255,.45); font-size: 11px; }

.library-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 4px 14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.2) transparent;
}
.library-row::-webkit-scrollbar { height: 6px; }
.library-row::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 3px; }
.library-row::-webkit-scrollbar-track { background: transparent; }

.library-card-form { margin: 0; flex: 0 0 auto; scroll-snap-align: start; }
.library-card {
  width: 200px;
  display: grid;
  grid-template-columns: 56px 1fr 28px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.1);
  color: #fff;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.library-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212,255,58,.5);
  box-shadow: 0 8px 22px rgba(0,0,0,.4);
}
.library-card-thumb {
  width: 56px; height: 56px;
  border-radius: 10px;
  background: rgba(0,0,0,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.library-card-icon { font-size: 28px; opacity: .85; }
.library-card-play {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}
.library-card-info { min-width: 0; }
.library-card-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.library-card-meta {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,.7);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.library-card-add {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}
.library-card:hover .library-card-add {
  background: var(--accent);
  color: var(--accent-ink);
}

/* Vídeo embed no hero */
.hero-video-frame {
  position: absolute;
  inset: 0;
  background: #000;
}
.hero-video-frame iframe,
.hero-video-frame video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ===========================================
   DESKTOP NETFLIX-STYLE SHELL
   =========================================== */
body.has-desktop {
  background:
    radial-gradient(circle at 20% 30%, #c08a55 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, #6b4423 0%, transparent 50%),
    linear-gradient(135deg, #a8723d 0%, #6b4423 100%);
  background-attachment: fixed;
  min-height: 100vh;
  padding: 0;
}
.desktop-shell {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  min-height: 100vh;
  max-width: 1500px;
  margin: 0 auto;
  padding: 20px;
  align-items: start;
}

/* ===== Sidebar ===== */
.side-nav {
  background: rgba(40, 25, 15, .35);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 26px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 20px;
  height: fit-content;
}
.side-logo {
  width: 44px; height: 44px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  font-size: 22px;
  margin-bottom: 8px;
}
.side-btn {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  color: rgba(255,255,255,.7);
  font-size: 20px;
  transition: background .2s, color .2s;
  background: transparent;
}
.side-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.side-btn.active { background: rgba(255,255,255,.16); color: #fff; }

/* ===== Main pane ===== */
.main-pane {
  background: rgba(35, 22, 12, .35);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 26px;
  padding: 20px;
  min-width: 0;
}

/* ===== Top bar ===== */
.top-bar {
  display: grid;
  grid-template-columns: 260px 1fr auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}
.search-box {
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 30px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-box input {
  background: transparent;
  border: none;
  color: #fff;
  flex: 1;
  font-size: 14px;
  font-family: inherit;
}
.search-box input:focus { outline: none; }
.search-box input::placeholder { color: rgba(255,255,255,.5); }
.search-icon { color: rgba(255,255,255,.6); font-size: 16px; }

.top-tabs {
  display: flex;
  gap: 4px;
  justify-content: center;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 30px;
  padding: 4px;
  width: fit-content;
  justify-self: center;
}
.top-tabs a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 22px;
  transition: background .2s, color .2s;
}
.top-tabs a.active { background: rgba(255,255,255,.16); color: #fff; font-weight: 600; }
.top-tabs a:hover:not(.active) { color: #fff; }

.top-right { display: flex; align-items: center; gap: 12px; }
.notif {
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  cursor: pointer;
  position: relative;
  font-size: 15px;
}
.notif-dot {
  position: absolute;
  top: 9px; right: 11px;
  width: 8px; height: 8px;
  background: #4ade80;
  border-radius: 50%;
  border: 2px solid rgba(40,25,15,1);
}
.profile-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 30px;
  padding: 5px 14px 5px 5px;
  cursor: pointer;
}
.profile-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 14px;
}
.profile-name { display: flex; flex-direction: column; line-height: 1.15; }
.profile-name strong { color: #fff; font-size: 12px; letter-spacing: .3px; }
.profile-name small { color: rgba(255,255,255,.5); font-size: 10px; }
.caret { color: rgba(255,255,255,.5); font-size: 10px; }

/* ===== Content columns ===== */
.content-cols {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 14px;
}

/* ===== Left column ===== */
.left-col { display: flex; flex-direction: column; gap: 14px; }
.left-section {
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 14px;
}
.left-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}
.left-icon { color: #fbbf24; font-size: 14px; }
.see-all-mini { margin-left: auto; font-size: 11px; color: rgba(255,255,255,.5); font-weight: 400; }
.mini-empty { color: rgba(255,255,255,.5); font-size: 12px; padding: 8px; text-align: center; }

.mini-card {
  display: grid;
  grid-template-columns: 46px 1fr 22px;
  gap: 10px;
  align-items: center;
  padding: 6px;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  margin-bottom: 6px;
  transition: background .2s;
}
.mini-card:hover { background: rgba(255,255,255,.06); }
.mini-card:last-child { margin-bottom: 0; }
.mini-thumb {
  width: 46px; height: 46px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mini-emoji { font-size: 22px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.4)); }
.mini-info { min-width: 0; }
.mini-info h4 { margin: 0; font-size: 12px; font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-info small { color: rgba(255,255,255,.5); font-size: 11px; }
.mini-play {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px;
}

/* ===== Right column ===== */
.right-col { display: flex; flex-direction: column; gap: 18px; }

/* Hero feature */
.hero-feature {
  position: relative;
  border-radius: 22px;
  min-height: 320px;
  padding: 32px;
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: center;
}
.hero-feature-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.35) 60%, transparent 100%),
    linear-gradient(180deg, transparent 60%, rgba(0,0,0,.4) 100%);
}
.hero-feature-content {
  position: relative;
  z-index: 2;
  max-width: 60%;
}
.hero-emoji {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 180px;
  opacity: .3;
  z-index: 1;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.5));
}
.hero-badges { display: flex; gap: 8px; margin-bottom: 14px; }
.badge {
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .8px;
}
.hero-feature h1 { font-size: 34px; margin: 0 0 12px; line-height: 1.05; letter-spacing: -.5px; }
.hero-feature p { margin: 0 0 22px; line-height: 1.5; color: rgba(255,255,255,.85); font-size: 14px; max-width: 480px; }
.hero-actions { display: flex; gap: 10px; }
.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.45);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(10px);
  font-family: inherit;
}
.hero-btn:hover { background: rgba(0,0,0,.65); }
.hero-btn-primary { background: #fff; color: #000; border-color: #fff; }
.hero-btn-primary:hover { background: #f0f0f0; }
.hero-btn-icon { padding: 11px 16px; }

.empty-hero {
  background: rgba(0,0,0,.28);
  border: 1px dashed rgba(255,255,255,.15);
  border-radius: 22px;
  padding: 60px 28px;
  text-align: center;
  color: #fff;
}
.empty-hero h2 { color: #fff; margin: 0 0 8px; }
.empty-hero p { color: rgba(255,255,255,.7); margin: 0 0 20px; }

/* Catalog */
.catalog-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.catalog-header h3 { color: #fff; margin: 0; font-size: 16px; font-weight: 700; }
.see-all-link { color: rgba(255,255,255,.7); font-size: 13px; text-decoration: none; }
.see-all-link:hover { color: #fff; }
.catalog-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.catalog-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  transition: transform .25s;
}
.catalog-card:hover { transform: translateY(-3px); }
.catalog-card-emoji {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 88px;
  opacity: .55;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.4));
}
.catalog-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.85) 100%);
}
.catalog-card-info {
  position: relative;
  z-index: 1;
}
.catalog-badge {
  display: inline-block;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
  padding: 3px 8px;
  border-radius: 16px;
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .5px;
  margin-bottom: 6px;
}
.catalog-card h4 { margin: 0 0 2px; font-size: 14px; font-weight: 700; }
.catalog-card p { margin: 0; font-size: 11px; color: rgba(255,255,255,.7); }
.catalog-link { display: block; margin-top: 6px; font-size: 11px; color: rgba(255,255,255,.6); }
.catalog-play {
  position: absolute;
  bottom: 14px; right: 14px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  z-index: 2;
  color: #fff;
}

/* Responsivo: abaixo de 1100px, simplifica */
@media (max-width: 1100px) {
  .content-cols { grid-template-columns: 1fr; }
  .top-bar { grid-template-columns: 1fr; gap: 12px; }
  .search-box { width: 100%; }
  .top-tabs { justify-self: stretch; overflow-x: auto; flex-wrap: nowrap; }
  .top-right { justify-content: flex-end; }
  .catalog-row { grid-template-columns: repeat(3, 1fr); }
  .hero-feature h1 { font-size: 26px; }
  .hero-emoji { font-size: 120px; right: 20px; }
}
@media (max-width: 720px) {
  .desktop-shell { grid-template-columns: 1fr; padding: 12px; }
  .side-nav {
    flex-direction: row;
    position: static;
    width: 100%;
    border-radius: 18px;
    justify-content: space-around;
    padding: 8px;
  }
  .side-logo { display: none; }
  .catalog-row { grid-template-columns: repeat(2, 1fr); }
  .hero-feature-content { max-width: 100%; }
  .hero-emoji { display: none; }
}
