:root {
  --orange: #e5632f;
  --amber: #f4a63a;
  --dark: #2b2320;
  --grey: #5f524b;
  --light: #fbf7f2;
  --border: #ece4dc;
  --green: #16a34a;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--light); color: var(--dark);
  font-family: 'Nunito', 'Noto Sans Gurmukhi', 'Trebuchet MS', system-ui, sans-serif;
}
.wrap { max-width: 480px; margin: 0 auto; min-height: 100vh; background: #fff; display: flex; flex-direction: column; }
.wrap.wide { max-width: 960px; }
.header {
  padding: 28px 22px; background: linear-gradient(160deg, var(--amber) 0%, var(--orange) 100%);
  color: #fff; display: flex; flex-direction: column; gap: 4px;
}
.header h1 { margin: 0; font-size: 24px; font-weight: 800; }
.header .sub { font-size: 13px; opacity: .92; font-weight: 600; }
.body { padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; flex-grow: 1; }
.card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 16px; }
.card.active { border: 2px solid var(--amber); box-shadow: 0 6px 18px rgba(229,99,47,.16); }
.btn {
  display: inline-block; text-align: center; padding: 14px 18px; border-radius: 14px; border: none;
  background: var(--dark); color: #fff; font-weight: 800; font-size: 16px; cursor: pointer; text-decoration: none;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.orange { background: var(--orange); }
input[type=text], input[type=password], input[type=file], select {
  padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--border); font-size: 15px; width: 100%;
}
label { font-size: 13px; font-weight: 700; color: var(--grey); }
.error { background: #fee2e2; color: #b91c1c; padding: 10px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 700; }
.notice { background: #dcfce7; color: #15803d; padding: 10px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 700; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); }
th { color: var(--grey); text-transform: uppercase; font-size: 11px; letter-spacing: .05em; }
.progress-track { height: 6px; border-radius: 99px; background: var(--border); overflow: hidden; }
.progress-fill { height: 100%; background: var(--orange); transition: width .3s; }
.locked-note { font-size: 12px; color: var(--grey); font-weight: 600; }
.player-box { display: flex; flex-direction: column; gap: 10px; align-items: center; padding: 20px; background: var(--dark); border-radius: 16px; color: #fff; }
.player-box audio, .player-box video { width: 100%; }
.nav { display: flex; justify-content: space-around; border-top: 1px solid var(--border); padding: 10px 0; }
.nav a { font-size: 12px; font-weight: 700; color: var(--grey); text-decoration: none; }
.nav a.active { color: var(--orange); }
