/* ============================================================
   Bawarchi Recipes — Component styles
   ============================================================ */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

/* Subtle rustic spice/leaf texture on the background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .5;
  background-image:
    radial-gradient(circle at 12% 20%, rgba(224,165,0,.06) 0 8px, transparent 9px),
    radial-gradient(circle at 82% 12%, rgba(62,123,62,.05) 0 10px, transparent 11px),
    radial-gradient(circle at 68% 78%, rgba(224,165,0,.05) 0 6px, transparent 7px),
    radial-gradient(circle at 25% 88%, rgba(227,30,36,.04) 0 9px, transparent 10px);
  background-size: 480px 480px;
}

#app { position: relative; z-index: 1; }

img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 30;
  background: var(--red);
  background-image: linear-gradient(180deg, var(--red) 0%, var(--red-dark) 100%);
  box-shadow: var(--shadow-sm);
}
.top-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 20px;
}
.brand { display: flex; align-items: center; gap: 12px; cursor: pointer; border: 0; background: none; padding: 0; }
.brand img { height: 108px; width: 108px; border-radius: 50%; object-fit: contain; background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.25), 0 0 0 3px rgba(255,255,255,.45); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.brand-text .name { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: #fff; letter-spacing: .01em; }
.brand-text .sub { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.72); margin-top: 2px; }
.top-spacer { flex: 1; }
.top-tag { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.4); padding: 6px 12px; border-radius: 999px; white-space: nowrap; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 22px 20px 120px; }

/* Breadcrumb / back */
.crumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; font-size: 13.5px; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); text-decoration: none; cursor: pointer; }
.crumbs a:hover { color: var(--red); }
.crumbs .sep { color: var(--ink-faint); }
.crumbs .here { color: var(--ink); font-weight: 600; }

.back-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 18px; font-size: 14px; font-weight: 600; cursor: pointer;
  box-shadow: var(--shadow-sm); margin-bottom: 18px;
}
.back-btn:hover { border-color: var(--red); color: var(--red); }

/* Section headings */
.section-title { font-family: var(--font-display); font-size: 22px; margin: 6px 0 4px; color: var(--ink); }
.section-sub { font-size: 14px; color: var(--ink-soft); margin: 0 0 20px; }
.eyebrow { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--red); font-weight: 700; margin-bottom: 6px; }

/* ---------- Hero (home) ---------- */
.hero {
  background: linear-gradient(135deg, var(--cream-2), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 30px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.hero h2 { font-family: var(--font-display); font-size: 30px; margin: 0 0 8px; color: var(--ink); }
.hero p { margin: 0; color: var(--ink-soft); font-size: 15.5px; max-width: 560px; }
.hero .chip { position: absolute; top: 22px; right: 24px; background: var(--red-soft); color: var(--red-deep);
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; }

/* ---------- Category grid ---------- */
.grid { display: grid; gap: 18px; }
.cat-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.cat-card {
  text-align: left; cursor: pointer;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  display: flex; align-items: center; gap: 16px; min-height: 104px;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--red); }
.cat-card:active { transform: translateY(0); }
.cat-icon { width: 58px; height: 58px; flex: 0 0 58px; border-radius: 16px; display: grid; place-items: center;
  background: var(--red-soft); font-size: 30px; }
.cat-meta .cat-name { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--ink); }
.cat-meta .cat-count { font-size: 13px; color: var(--ink-soft); margin-top: 3px; }

/* ---------- Recipe cards ---------- */
.recipe-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.recipe-card {
  text-align: left; cursor: pointer; padding: 0; overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  display: flex; flex-direction: column;
}
.recipe-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--red); }
.recipe-thumb { aspect-ratio: 16/10; width: 100%; object-fit: cover; background: var(--cream-2); }
.recipe-card .rc-body { padding: 16px 18px 18px; }
.recipe-card .rc-cat { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); font-weight: 700; }
.recipe-card .rc-name { font-family: var(--font-display); font-size: 18px; color: var(--ink); margin: 5px 0 6px; line-height: 1.2; }
.recipe-card .rc-desc { font-size: 13.5px; color: var(--ink-soft); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rc-tags { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.tag { font-size: 11.5px; font-weight: 600; color: var(--ink-soft); background: var(--cream-2);
  border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }

.empty {
  grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--ink-soft);
  background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius);
}
.empty .big { font-size: 34px; margin-bottom: 10px; }

/* ---------- Recipe overview ---------- */
.overview-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 26px; margin-bottom: 28px; align-items: stretch; }
.overview-img { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: var(--cream-2); }
.overview-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.overview-info { display: flex; flex-direction: column; }
.overview-info h1 { font-family: var(--font-display); font-size: 30px; margin: 8px 0 10px; color: var(--ink); line-height: 1.12; }
.overview-info .desc { font-size: 15.5px; color: var(--ink-soft); line-height: 1.55; margin: 0 0 18px; }
.meta-row { display: flex; gap: 22px; flex-wrap: wrap; margin: 4px 0 22px; }
.meta-item { display: flex; flex-direction: column; }
.meta-item .k { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; }
.meta-item .v { font-size: 16px; color: var(--ink); font-weight: 600; margin-top: 3px; }

.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; margin-bottom: 22px; box-shadow: var(--shadow-sm);
}
.panel h3 { font-family: var(--font-display); font-size: 20px; margin: 0 0 16px; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.panel h3 .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); flex: 0 0 auto; }

/* Ingredients list */
.ingredients { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px 26px; }
.ingredients li { display: flex; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.ing-num { flex: 0 0 26px; height: 26px; border-radius: 8px; background: var(--red-soft); color: var(--red-deep);
  font-size: 12.5px; font-weight: 700; display: grid; place-items: center; }
.ing-name { flex: 1; font-size: 15px; color: var(--ink); }
.ing-qty { font-size: 14px; font-weight: 700; color: var(--red-deep); white-space: nowrap; }

/* Method list */
.method { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.method li { position: relative; padding: 12px 0 12px 44px; border-bottom: 1px dashed var(--line); font-size: 15px; color: var(--ink); line-height: 1.5; }
.method li:last-child { border-bottom: 0; }
.method li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 12px;
  width: 30px; height: 30px; border-radius: 9px; background: var(--red); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; }

/* Chef tips */
.tips { background: linear-gradient(135deg, #FFF8E9, var(--card)); border-color: #F0DFB0; }
.tips h3 .dot { background: var(--spice); }
.tips ul { margin: 0; padding-left: 4px; list-style: none; }
.tips li { position: relative; padding: 9px 0 9px 30px; font-size: 15px; color: var(--ink); line-height: 1.5; border-bottom: 1px dashed #F0DFB0; }
.tips li:last-child { border-bottom: 0; }
.tips li::before { content: "★"; position: absolute; left: 0; top: 9px; color: var(--spice); font-size: 15px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer;
  border: 1px solid transparent; border-radius: 999px; font-weight: 700; transition: filter .12s, transform .06s, box-shadow .12s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { filter: brightness(1.05); box-shadow: var(--shadow-md); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover:not(:disabled) { border-color: var(--red); color: var(--red); }
.btn-lg { font-size: 18px; padding: 18px 34px; min-height: var(--touch); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .4; cursor: not-allowed; }

.start-bar { position: sticky; bottom: 0; z-index: 10; margin-top: 8px; padding-top: 8px; }

/* ---------- Cooking mode ---------- */
.cook { max-width: 960px; margin: 0 auto; }
.cook-top { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.cook-exit { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line);
  color: var(--ink); border-radius: 999px; padding: 10px 16px; font-size: 14px; font-weight: 600; cursor: pointer; }
.cook-exit:hover { border-color: var(--red); color: var(--red); }
.cook-recipe-name { font-family: var(--font-display); font-size: 17px; color: var(--ink); font-weight: 700; }

/* Progress */
.progress { margin-bottom: 22px; }
.progress-track { height: 10px; background: var(--cream-2); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--red), var(--red-dark)); border-radius: 999px; transition: width .3s ease; }
.progress-dots { display: flex; justify-content: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.pdot { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--card);
  color: var(--ink-soft); font-size: 14px; font-weight: 700; display: grid; place-items: center; cursor: pointer; transition: all .12s; }
.pdot.active { background: var(--red); color: #fff; border-color: var(--red); transform: scale(1.06); }
.pdot.done { background: var(--red-soft); color: var(--red-deep); border-color: #F0C7C4; }

/* Step card */
.step-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-md); }
.step-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.step-badge { flex: 0 0 auto; width: 66px; height: 66px; border-radius: 18px; background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff; display: grid; place-items: center; text-align: center; line-height: 1; box-shadow: var(--shadow-sm); }
.step-badge .lbl { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.step-badge .num { font-family: var(--font-display); font-size: 26px; font-weight: 700; margin-top: 2px; }
.step-title { font-family: var(--font-display); font-size: 24px; color: var(--ink); margin: 0; line-height: 1.15; }
.step-of { font-size: 13px; color: var(--ink-soft); margin-top: 3px; }

/* Video area */
.video-area { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden;
  background: #241a14; border: 1px solid var(--line); margin-bottom: 20px; display: grid; place-items: center; }
.video-area video { width: 100%; height: 100%; object-fit: cover; background: #000; }
/* Branding watermark centered over every playing video. Semi-transparent so
   the footage stays visible; pointer-events:none keeps controls usable. */
.video-watermark {
  position: absolute; top: 12px; right: 14px; z-index: 3;
  width: 11%; max-width: 76px; min-width: 46px; height: auto; aspect-ratio: 1;
  object-fit: contain;
  opacity: .92; pointer-events: none; user-select: none;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .5));
}

.video-missing { text-align: center; color: #F6E4C8; padding: 24px; }
.video-missing .icon { font-size: 46px; margin-bottom: 12px; }
.video-missing .msg { font-size: 18px; font-weight: 600; }
.video-missing .sub { font-size: 13px; opacity: .7; margin-top: 6px; }

/* Step ingredients (PUT / ADD) */
.step-put { background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 18px; }
.step-put .put-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); font-weight: 800; margin-bottom: 10px; }
.step-put ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.step-put li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: 15px; font-weight: 600; color: var(--ink); }
.step-put li::before { content: "•"; color: var(--red); margin-right: 8px; font-weight: 800; }

.step-instruction { font-size: 18px; line-height: 1.6; color: var(--ink); background: #FFF8E9; border: 1px solid #F0DFB0;
  border-radius: var(--radius-sm); padding: 16px 20px; }
.step-instruction .in-label { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--spice); font-weight: 800; margin-bottom: 6px; }

/* Nav buttons */
.cook-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.cook-nav .btn { min-height: var(--touch); font-size: 17px; }

/* ---------- Complete screen ---------- */
.complete { max-width: 620px; margin: 30px auto; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 46px 34px; box-shadow: var(--shadow-md); }
.complete .seal { width: 108px; height: 108px; border-radius: 50%; margin: 0 auto 22px;
  background: radial-gradient(circle at 50% 40%, #fff, var(--red-soft)); border: 3px solid var(--red);
  display: grid; place-items: center; font-size: 52px; box-shadow: var(--shadow-sm); }
.complete h2 { font-family: var(--font-display); font-size: 30px; margin: 0 0 8px; color: var(--ink); }
.complete p { color: var(--ink-soft); font-size: 16px; margin: 0 auto 12px; max-width: 440px; line-height: 1.55; }
.final-note { background: #FFF8E9; border: 1px solid #F0DFB0; border-radius: var(--radius-sm); padding: 14px 18px;
  color: var(--ink); font-size: 15px; margin: 20px 0 26px; }
.final-note strong { color: var(--red-deep); }
.complete-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Static player + category bar (home) ---------- */
/* Full-width video window (edge to edge); menu sits in the space below it. */
.player-shell { margin: 0 0 18px; }
.player-window {
  position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 52vh; overflow: hidden;
  background: #000; box-shadow: var(--shadow-md);
}
.player-video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
/* Brand logo overlaid on the video frame (position/size set in JS). */
.video-logo { position: absolute; z-index: 3; display: none; height: auto;
  pointer-events: none; user-select: none; filter: drop-shadow(0 1px 4px rgba(0,0,0,.45)); }
.player-window[data-state="intro"] .video-logo,
.player-window[data-missing] .video-logo { display: none !important; }
.player-hint {
  position: absolute; left: 50%; top: 16px; transform: translateX(-50%);
  background: rgba(0,0,0,.55); color: #fff; padding: 10px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600; backdrop-filter: blur(4px); white-space: nowrap;
}
.player-window[data-state="playing"] .player-hint { display: none; }
.player-window[data-state="intro"] .video-watermark { display: none; }
.player-missing {
  position: absolute; inset: 0; display: none; place-content: center; justify-items: center;
  gap: 8px; text-align: center; color: #F6E4C8; background: #241a14;
}
.player-window[data-missing] .player-missing { display: grid; }
.player-window[data-missing] .video-watermark { display: none; }
.player-missing .pm-ic { font-size: 44px; }
.player-missing .pm-msg { font-size: 18px; font-weight: 600; }

.now-playing { display: flex; align-items: center; gap: 12px; margin: 14px auto 0; padding: 0 20px;
  max-width: var(--maxw); flex-wrap: wrap; }
.np-name { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--ink); }
.np-intro { background: var(--card); border: 1px solid var(--line); color: var(--ink-soft);
  border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; cursor: pointer; }
.np-intro:hover { border-color: var(--red); color: var(--red); }
.step-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.step-chips .chip { width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink-soft); font-size: 15px; font-weight: 700; cursor: pointer; }
.step-chips .chip.active { background: var(--red); color: #fff; border-color: var(--red); }

.cat-bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.cat-btn {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; gap: 1px; cursor: pointer;
  background: #F7E0C6; border: 1px solid #EAD0B0; border-radius: 11px;
  padding: 4px 8px; box-shadow: var(--shadow-sm); min-height: 0; color: var(--ink);
  transition: transform .12s, box-shadow .12s, background .12s, border-color .12s;
}
.cat-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: #F2D0A9; border-color: #E3BE93; }
.cat-btn:active { transform: translateY(0); }
.cat-btn.selected { background: #5E9E68; border-color: #4C8656; color: #fff; box-shadow: var(--shadow-md); }
.cat-btn-ic { display: grid; place-items: center; }
.cat-ic-img { width: 42px; height: 42px; display: block; filter: drop-shadow(0 1px 2px rgba(0,0,0,.14)); }
.cat-btn-name { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; line-height: 1.1; }
.modal-ic { width: 22px; height: 22px; display: block; flex: 0 0 auto; }

/* NEW corner ribbon (shown when a category has recently-added videos) */
.cat-new {
  position: absolute; top: 8px; right: -20px; transform: rotate(45deg);
  background: var(--red); color: #fff; font-size: 8px; font-weight: 800; letter-spacing: .06em;
  padding: 2px 22px; box-shadow: 0 1px 3px rgba(0,0,0,.25);
}

/* Dish picker popup */
/* Anchored below the video window (top set in JS) — covers the category
   area only, never the video. */
.modal-backdrop {
  position: fixed; left: 0; right: 0; bottom: 0; top: 0; z-index: 40;
  background: rgba(30,20,12,.5);
  display: flex; justify-content: center; align-items: flex-start;
  padding: 14px 16px 24px; backdrop-filter: blur(2px);
  animation: fadeIn .15s ease; overflow-y: auto;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  background: var(--card); border-radius: var(--radius-lg); width: min(460px, 100%);
  max-height: 82vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow-md);
  animation: popIn .18s ease;
}
@keyframes popIn { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-head { display: flex; justify-content: space-between; align-items: center;
  padding: 8px 14px; background: linear-gradient(180deg, var(--red), var(--red-dark)); color: #fff; }
.modal-title { display: flex; align-items: center; gap: 7px; white-space: nowrap;
  font-family: var(--font-display); font-size: 16px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.modal-close { background: rgba(255,255,255,.22); border: none; color: #fff; width: 26px; height: 26px;
  border-radius: 50%; font-size: 12px; cursor: pointer; line-height: 1; }
.modal-close:hover { background: rgba(255,255,255,.4); }
.modal-list { overflow-y: auto; padding: 4px 16px; display: flex; flex-direction: column; }
.dish-btn { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 4px; background: none; border: none; border-bottom: 1px solid var(--line); border-radius: 0;
  cursor: pointer; text-align: left; }
.dish-btn:last-child { border-bottom: none; }
.dish-btn:hover .dish-name { color: var(--red); }
.dish-name { font-family: var(--font-display); font-size: 16.5px; font-weight: 700; color: var(--ink); }
.dish-new { display: inline-block; background: #5E9E68; color: #fff; font-size: 9px; font-weight: 800;
  letter-spacing: .06em; padding: 2px 6px; border-radius: 5px; margin-right: 7px; vertical-align: 1px; }
.dish-tag { font-size: 12px; color: var(--red); font-weight: 700; white-space: nowrap; }
.modal-empty { padding: 34px 20px; text-align: center; color: var(--ink-soft); }

/* Staffing form */
.staff-form { padding: 14px 18px 20px; gap: 0; }
.staff-form label { display: block; font-family: var(--font-display); font-size: 12px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); margin: 12px 0 5px; }
.staff-form select, .staff-form input { width: 100%; padding: 11px 12px; border: 1px solid var(--line);
  border-radius: 10px; font: inherit; font-size: 15px; background: #fff; color: var(--ink); }
.staff-mode-label { font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-soft); margin: 16px 0 7px; }
.staff-modes { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.staff-mode { padding: 13px 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--cream-2);
  font-family: var(--font-display); font-weight: 700; font-size: 13.5px; color: var(--ink); cursor: pointer;
  transition: background .12s, color .12s, border-color .12s; }
.staff-mode[data-mode="whatsapp"]:hover { background: #25D366; color: #fff; border-color: #25D366; }
.staff-mode[data-mode="imessage"]:hover { background: #0A84FF; color: #fff; border-color: #0A84FF; }
.staff-mode[data-mode="call"]:hover { background: var(--red); color: #fff; border-color: var(--red); }
.staff-error { color: var(--red); font-size: 13px; font-weight: 600; margin-top: 12px; }

@media (max-width: 900px) { .cat-bar { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) {
  .cat-bar { grid-template-columns: repeat(3, 1fr); }
  .step-chips { margin-left: 0; }
}

/* ---------- Opening / launch video ---------- */
.opening {
  position: fixed; inset: 0; z-index: 100; background: #000;
  display: grid; place-items: center;
  opacity: 1; transition: opacity .45s ease;
}
.opening.hide { opacity: 0; pointer-events: none; }
.opening-video { width: 100%; height: 100%; object-fit: cover; background: #000; }

/* Branded "Tap to Start" launch card */
.opening-start {
  position: absolute; inset: 0; display: grid; place-content: center;
  justify-items: center; gap: 16px; text-align: center; padding: 24px;
  background: radial-gradient(circle at 50% 38%, #8f1a1f, #4a0c0c 82%);
}
.opening-logo { width: 118px; height: 118px; border-radius: 50%; background: #fff;
  padding: 6px; box-shadow: 0 10px 34px rgba(0, 0, 0, .5); }
.opening-title { color: #fff; font-family: var(--font-display); font-size: 30px; font-weight: 700; }
.opening-sub { color: rgba(255, 255, 255, .72); font-size: 12px; letter-spacing: .24em;
  text-transform: uppercase; margin-top: -8px; }
.opening-play { margin-top: 8px; background: #fff; color: var(--red-dark);
  border: none; border-radius: 999px; padding: 18px 42px; font-size: 20px; font-weight: 800;
  cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); min-height: var(--touch); }
.opening-play:hover { filter: brightness(.97); }
.opening-skiplink { background: none; border: none; color: rgba(255, 255, 255, .75);
  font-size: 14px; cursor: pointer; text-decoration: underline; padding: 6px; }

.opening-skip {
  position: absolute; bottom: 24px; right: 24px;
  background: rgba(0, 0, 0, .5); color: #fff;
  border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px;
  padding: 12px 22px; font-size: 15px; font-weight: 700; cursor: pointer;
  backdrop-filter: blur(4px);
}
.opening-skip:hover { background: rgba(0, 0, 0, .75); }

/* Note shown for single-video (step-less) recipes */
.video-note {
  background: #FFF8E9; border: 1px solid #F0DFB0; border-radius: var(--radius-sm);
  padding: 14px 18px; color: var(--ink); font-size: 15px; font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .overview-head { grid-template-columns: 1fr; }
  .brand-text .sub { display: none; }
  .hero { padding: 24px 22px; }
  .hero h2 { font-size: 24px; }
  .hero .chip { position: static; display: inline-block; margin-bottom: 12px; }
}
@media (max-width: 560px) {
  .wrap { padding: 16px 14px 120px; }
  .top-inner { padding: 10px 14px; }
  .top-tag { display: none; }
  .cook-nav { grid-template-columns: 1fr; }
  .step-head { gap: 12px; }
  .step-title { font-size: 20px; }
  .ingredients { grid-template-columns: 1fr; }
}

/* Larger touch targets on coarse pointers (kitchen touchscreens) */
@media (pointer: coarse) {
  .cat-card, .recipe-card { min-height: 118px; }
  .pdot { width: 46px; height: 46px; }
}
