/* ═══════════════════════════════════════════════════════════
   Suzie's Kitchen Hub — Design System & Global Styles
   ═══════════════════════════════════════════════════════════ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --color-bg:           #FAFAF8;
  --color-surface:      #FFFFFF;
  --color-surface-alt:  #F5F4F0;
  --color-border:       #E8E6E1;
  --color-border-light: #F0EEE9;
  --color-text:         #1C1917;
  --color-text-muted:   #78716C;
  --color-text-subtle:  #A8A29E;
  --color-accent:       #5F7A68;
  --color-accent-light: #EBF0EC;
  --color-accent-hover: #4A6352;
  --color-accent-deep:  #3A4F3F;
  --color-warm:         #C2803A;
  --color-warm-light:   #FBF3EA;
  --color-danger:       #B54848;
  --color-danger-light: #FBE8E8;
  --color-star:         #D4A843;

  /* Category accent colors */
  --cat-everyday:   #5F7A68;
  --cat-baking:     #C2803A;
  --cat-holiday:    #8B4A8B;
  --cat-noahs:      #3A7AB5;
  --cat-drinks:     #2E8B8B;
  --cat-discoveries:#7A6B5A;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-xs:  4px;
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-full:9999px;

  --shadow-xs:  0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm:  0 1px 4px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.05);
  --shadow-lg:  0 10px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.07);
  --shadow-xl:  0 20px 60px rgba(0,0,0,0.16), 0 8px 20px rgba(0,0,0,0.10);

  --transition:       all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:  all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring:all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-height:    72px;
  --header-height: 56px;
  --fab-size:      52px;
  --content-max:   900px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
a { color: inherit; text-decoration: none; }
input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: transparent;
  border: none;
  outline: none;
}
ul, ol { list-style: none; }

/* ── App Shell ──────────────────────────────────────────────── */
#app {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  position: relative;
}

/* ── Top Bar ────────────────────────────────────────────────── */
.top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(250,250,248,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-light);
}
.top-bar-inner {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 12px;
  gap: 4px;
}
.breadcrumbs {
  flex: 1;
  font-size: 13px;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  white-space: nowrap;
}
.breadcrumbs .bc-sep { color: var(--color-border); }
.breadcrumbs .bc-item {
  color: var(--color-text-muted);
  transition: var(--transition);
  cursor: pointer;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.breadcrumbs .bc-item:hover { color: var(--color-accent); }
.breadcrumbs .bc-item.current {
  color: var(--color-text);
  font-weight: 500;
  cursor: default;
}
.breadcrumbs .bc-item.current:hover { color: var(--color-text); }

.icon-btn {
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-muted);
  transition: var(--transition);
  flex-shrink: 0;
}
.icon-btn:hover { background: var(--color-surface-alt); color: var(--color-text); }
.icon-btn:active { transform: scale(0.93); }
.icon-btn svg { width: 20px; height: 20px; stroke-width: 1.8; }

/* ── Main Content ────────────────────────────────────────────── */
#main-content {
  flex: 1;
  padding-top: var(--header-height);
  padding-bottom: calc(var(--nav-height) + 16px);
  min-height: 100dvh;
}

/* ── Bottom Navigation ───────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--color-border-light);
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  padding: 8px 0 max(8px, env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--radius-md);
  color: var(--color-text-subtle);
  transition: var(--transition);
  min-width: 52px;
}
.nav-item svg { width: 22px; height: 22px; stroke-width: 1.8; }
.nav-item span { font-size: 11px; font-weight: 500; }
.nav-item svg, .nav-item span, .nav-home-icon { pointer-events: none; }
.nav-item:hover { color: var(--color-accent); }
.nav-item.active { color: var(--color-accent); }
.nav-item.active span { font-weight: 600; }

.nav-home {
  position: relative;
  top: -12px;
}
.nav-home-icon {
  width: 48px; height: 48px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(95,122,104,0.35);
  transition: var(--transition-spring);
}
.nav-home-icon svg { color: white; stroke-width: 2; }
.nav-home:hover .nav-home-icon { transform: scale(1.08); background: var(--color-accent-hover); }
.nav-home.active .nav-home-icon { background: var(--color-accent-deep); }
.nav-home span { margin-top: 2px; }

/* ── Loading Screen ──────────────────────────────────────────── */
.loading-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - var(--header-height) - var(--nav-height));
}
.loading-logo {
  text-align: center;
  animation: fadeInUp 0.6s ease;
}
.loading-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
  animation: pulse 2s ease infinite;
}
.loading-logo h1 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}
.loading-logo p {
  color: var(--color-text-muted);
  font-size: 15px;
}

/* ── Timer Widget ─────────────────────────────────────────────── */
.timer-fab {
  position: fixed;
  bottom: calc(var(--nav-height) + 16px);
  right: 16px;
  z-index: 90;
  width: var(--fab-size);
  height: var(--fab-size);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-accent);
  border: 1px solid var(--color-border);
  transition: var(--transition-spring);
}
.timer-fab:hover { transform: scale(1.1); box-shadow: var(--shadow-xl); }
.timer-fab:active { transform: scale(0.95); }
.timer-fab svg { width: 22px; height: 22px; }

.timer-widget {
  position: fixed;
  bottom: calc(var(--nav-height) + 16px);
  right: 16px;
  z-index: 95;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
  padding: 16px 20px;
  min-width: 220px;
  animation: slideUp 0.3s var(--transition-spring);
}
.timer-widget-inner { text-align: center; }
.timer-display {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -1px;
  margin-bottom: 12px;
  line-height: 1;
}
.timer-display.running { color: var(--color-accent); }
.timer-display.expired { color: var(--color-danger); animation: timerBlink 0.6s ease infinite; }
.timer-controls { display: flex; gap: 8px; justify-content: center; }
.timer-btn {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  background: var(--color-surface-alt);
  color: var(--color-text);
  transition: var(--transition);
}
.timer-btn:hover { background: var(--color-border); }
.timer-btn-primary {
  background: var(--color-accent);
  color: white;
  padding: 8px 20px;
}
.timer-btn-primary:hover { background: var(--color-accent-hover); }
.timer-close {
  position: absolute;
  top: 8px; right: 8px;
  width: 28px; height: 28px;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-subtle);
  transition: var(--transition);
}
.timer-close:hover { background: var(--color-surface-alt); color: var(--color-text); }
.timer-close svg { width: 14px; height: 14px; }

/* ── Toast Notifications ────────────────────────────────────── */
#toast-container {
  position: fixed;
  top: calc(var(--header-height) + 12px);
  right: 16px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--color-text);
  color: white;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 320px;
}
.toast.success { background: var(--color-accent); }
.toast.error { background: var(--color-danger); }
.toast.warning { background: var(--color-warm); }
.toast.fade-out { animation: fadeOut 0.3s ease forwards; }

/* ── Page Containers ────────────────────────────────────────── */
.page { animation: fadeIn 0.3s ease; }
.page-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 16px;
}
.section { margin-bottom: 32px; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
}
.section-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-accent);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  transition: var(--transition);
}
.section-link:hover { background: var(--color-accent-light); }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.card-pressable:active { transform: scale(0.98); box-shadow: var(--shadow-xs); }

.recipe-card {
  cursor: pointer;
}
.recipe-card-thumb {
  aspect-ratio: 4/3;
  background: var(--color-surface-alt);
  overflow: hidden;
  position: relative;
}
.recipe-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.recipe-card:hover .recipe-card-thumb img { transform: scale(1.04); }
.recipe-card-thumb .no-image {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
  background: linear-gradient(135deg, var(--color-surface-alt), var(--color-border));
}
.recipe-card-body { padding: 14px 16px; }
.recipe-card-category {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  color: var(--color-accent);
}
.recipe-card-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.recipe-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--color-text-muted);
}
.recipe-card-meta svg { width: 13px; height: 13px; }
.star-btn {
  position: absolute;
  top: 10px; right: 10px;
  width: 32px; height: 32px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-muted);
  transition: var(--transition);
}
.star-btn:hover { transform: scale(1.15); }
.star-btn.starred { color: var(--color-star); }
.star-btn svg { width: 16px; height: 16px; }

/* ── Recipe Grid ─────────────────────────────────────────────── */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

/* ── Category Chips ──────────────────────────────────────────── */
.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  border: 1.5px solid var(--color-border);
  color: var(--color-text-muted);
  background: var(--color-surface);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.chip:hover { border-color: var(--color-accent); color: var(--color-accent); background: var(--color-accent-light); }
.chip.active { background: var(--color-accent); border-color: var(--color-accent); color: white; }
.chip svg { width: 14px; height: 14px; }

/* ── Forms ───────────────────────────────────────────────────── */
.field {
  margin-bottom: 20px;
}
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.field-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  font-size: 15px;
  color: var(--color-text);
  transition: var(--transition);
}
.field-input:focus { border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(95,122,104,0.12); }
.field-input::placeholder { color: var(--color-text-subtle); }
textarea.field-input { resize: vertical; min-height: 100px; }
select.field-input { cursor: pointer; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--color-accent);
  color: white;
}
.btn-primary:hover { background: var(--color-accent-hover); }

.btn-secondary {
  background: var(--color-surface-alt);
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}
.btn-secondary:hover { background: var(--color-border); }

.btn-ghost {
  background: transparent;
  color: var(--color-accent);
}
.btn-ghost:hover { background: var(--color-accent-light); }

.btn-danger {
  background: var(--color-danger);
  color: white;
}
.btn-danger:hover { background: #963a3a; }

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}
.btn-lg {
  padding: 16px 32px;
  font-size: 17px;
  border-radius: var(--radius-lg);
}
.btn-full { width: 100%; }

.btn-coming-soon {
  background: var(--color-surface-alt);
  color: var(--color-text-muted);
  border: 1.5px dashed var(--color-border);
  cursor: default;
}
.btn-coming-soon:hover { transform: none; }
.btn-coming-soon-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--color-warm-light);
  color: var(--color-warm);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* ── Empty States ────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--color-text-muted);
}
.empty-state-icon { font-size: 52px; margin-bottom: 16px; display: block; }
.empty-state h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}
.empty-state p { font-size: 15px; line-height: 1.6; max-width: 300px; margin: 0 auto 24px; }

/* ── Tags ────────────────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  background: var(--color-surface-alt);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border-light);
}
.tag-accent { background: var(--color-accent-light); color: var(--color-accent); }

/* ── Category color helpers ──────────────────────────────────── */
.cat-everyday   { --cat-color: var(--cat-everyday);   }
.cat-baking     { --cat-color: var(--cat-baking);     }
.cat-holiday    { --cat-color: var(--cat-holiday);    }
.cat-noahs      { --cat-color: var(--cat-noahs);      }
.cat-drinks     { --cat-color: var(--cat-drinks);     }
.cat-discoveries{ --cat-color: var(--cat-discoveries);}

.cat-dot {
  width: 8px; height: 8px;
  border-radius: var(--radius-full);
  background: var(--cat-color, var(--color-accent));
  display: inline-block;
  flex-shrink: 0;
}

/* ── Dividers ────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--color-border-light);
  margin: 24px 0;
}

/* ── Overlay/Modal ───────────────────────────────────────────── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  z-index: 150;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}
.sheet {
  background: var(--color-surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%;
  max-width: 600px;
  max-height: 85dvh;
  overflow-y: auto;
  padding: 8px 24px 32px;
  animation: slideUp 0.35s var(--transition-spring);
}
.sheet-handle {
  width: 36px; height: 4px;
  border-radius: var(--radius-full);
  background: var(--color-border);
  margin: 12px auto 20px;
}
.sheet-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
}

/* ── Horizontal Scroll Lists ─────────────────────────────────── */
.h-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 16px 8px;
  margin: 0 -16px;
  scrollbar-width: none;
}
.h-scroll::-webkit-scrollbar { display: none; }
.h-scroll-card {
  flex-shrink: 0;
  width: 180px;
}

/* ── Animations ──────────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes fadeOut {
  to { opacity: 0; transform: translateX(100%); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.1); }
}
@keyframes timerBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200%  0; }
}

/* ── Skeleton Loaders ────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg,
    var(--color-surface-alt) 25%,
    var(--color-border-light) 50%,
    var(--color-surface-alt) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: var(--radius-sm);
}

/* ── HOME PAGE ───────────────────────────────────────────────── */
.home-hero {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: var(--color-text);
}
.home-hero-slides {
  position: absolute;
  inset: 0;
}
.home-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.home-hero-slide.active { opacity: 1; }
.home-hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.home-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.55) 100%);
}
.home-hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px;
  color: white;
}
.home-hero-date {
  font-size: 13px;
  font-weight: 400;
  opacity: 0.85;
  margin-bottom: 4px;
}
.home-hero-greeting {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 8px;
}
.home-weather {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  opacity: 0.9;
}
.home-weather-icon { font-size: 20px; }
.home-hero-dots {
  position: absolute;
  bottom: 16px;
  right: 20px;
  display: flex;
  gap: 6px;
}
.home-hero-dot {
  width: 6px; height: 6px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.5);
  transition: var(--transition);
}
.home-hero-dot.active {
  background: white;
  width: 18px;
}

.home-content { padding: 20px 16px; }

.week-recipe-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: flex;
  height: 120px;
  transition: var(--transition);
}
.week-recipe-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.week-recipe-thumb {
  width: 140px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--color-surface-alt);
}
.week-recipe-thumb img { width: 100%; height: 100%; object-fit: cover; }
.week-recipe-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.week-recipe-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
}
.week-recipe-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.coming-soon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.coming-soon-card {
  background: var(--color-surface);
  border: 1.5px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: center;
}
.coming-soon-card-icon { font-size: 28px; margin-bottom: 8px; }
.coming-soon-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}
.coming-soon-card-desc {
  font-size: 11px;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 10px;
}
.coming-soon-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-warm);
  background: var(--color-warm-light);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

/* ── RECIPE LIST PAGE ─────────────────────────────────────────── */
.recipes-header {
  padding: 20px 16px 0;
  background: var(--color-bg);
  position: sticky;
  top: var(--header-height);
  z-index: 50;
}
.recipes-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 10px 16px;
  margin-bottom: 12px;
  transition: var(--transition);
}
.recipes-search-bar:focus-within { border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(95,122,104,0.1); }
.recipes-search-bar svg { width: 18px; height: 18px; color: var(--color-text-subtle); flex-shrink: 0; }
.recipes-search-bar input {
  flex: 1;
  font-size: 15px;
  background: transparent;
  border: none;
  outline: none;
}
.recipes-search-bar input::placeholder { color: var(--color-text-subtle); }
.recipes-filter-row { padding: 0 0 12px; }

.recipes-body { padding: 16px; }

/* ── RECIPE DETAIL ───────────────────────────────────────────── */
.recipe-hero {
  position: relative;
  height: 280px;
  background: var(--color-surface-alt);
  overflow: hidden;
}
.recipe-hero img { width: 100%; height: 100%; object-fit: cover; }
.recipe-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.7) 100%);
}
.recipe-hero-actions {
  position: absolute;
  top: 8px; right: 12px;
  display: flex;
  gap: 8px;
}
.recipe-hero-action {
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text);
  transition: var(--transition);
}
.recipe-hero-action:hover { transform: scale(1.1); }
.recipe-hero-action svg { width: 18px; height: 18px; }
.recipe-hero-action.starred { color: var(--color-star); }

.recipe-detail {
  background: var(--color-surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  margin-top: -24px;
  position: relative;
  z-index: 2;
  padding: 24px 20px;
  min-height: calc(100dvh - 280px + 24px);
}
.recipe-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 8px;
}
.recipe-attribution {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}
.recipe-stats {
  display: flex;
  gap: 0;
  border-radius: var(--radius-md);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border-light);
  overflow: hidden;
  margin-bottom: 20px;
}
.recipe-stat {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  border-right: 1px solid var(--color-border-light);
}
.recipe-stat:last-child { border-right: none; }
.recipe-stat-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  display: block;
}
.recipe-stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  font-weight: 500;
  display: block;
}

.recipe-tabs {
  display: flex;
  border-bottom: 2px solid var(--color-border-light);
  margin: 0 -20px 24px;
  padding: 0 20px;
  gap: 4px;
}
.recipe-tab {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
  border-bottom: 2.5px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
  white-space: nowrap;
}
.recipe-tab:hover { color: var(--color-text); }
.recipe-tab.active { color: var(--color-accent); border-bottom-color: var(--color-accent); }

.recipe-section-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.serving-adjuster {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-surface-alt);
  border-radius: var(--radius-full);
  padding: 6px;
  display: inline-flex;
  margin-bottom: 16px;
}
.serving-btn {
  width: 32px; height: 32px;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  font-size: 18px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
}
.serving-btn:hover { background: var(--color-accent); color: white; }
.serving-count {
  font-size: 16px;
  font-weight: 600;
  min-width: 60px;
  text-align: center;
}

.ingredient-list { display: flex; flex-direction: column; gap: 2px; }
.ingredient-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 16px;
  line-height: 1.4;
}
.ingredient-item:last-child { border-bottom: none; }
.ingredient-amount {
  font-weight: 700;
  min-width: 70px;
  color: var(--color-text);
  font-size: 16px;
  flex-shrink: 0;
}
.ingredient-name { flex: 1; color: var(--color-text); font-size: 16px; }
.ingredient-notes { font-size: 14px; color: var(--color-text-muted); font-style: italic; }

/* Larger ingredient text on mobile for kitchen use */
@media (max-width: 640px) {
  .ingredient-item { font-size: 18px; padding: 13px 0; gap: 12px; }
  .ingredient-amount { font-size: 18px; min-width: 80px; }
  .ingredient-name { font-size: 18px; }
  .ingredient-notes { font-size: 15px; }
}

.instruction-list { display: flex; flex-direction: column; gap: 16px; }
.instruction-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.step-number {
  width: 28px; height: 28px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  color: white;
  font-size: 13px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.step-body { flex: 1; }
.step-text { font-size: 15px; line-height: 1.65; }
.step-timer-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
}
.step-timer-btn:hover { background: var(--color-accent); color: white; }
.step-timer-btn svg { width: 14px; height: 14px; }

/* ── COOK MODE ───────────────────────────────────────────────── */
.cook-mode {
  min-height: calc(100dvh - var(--header-height) - var(--nav-height));
  display: flex;
  flex-direction: column;
  background: var(--color-text);
  color: white;
  padding: 24px 20px;
}
.cook-mode-progress {
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  margin-bottom: 32px;
  overflow: hidden;
}
.cook-mode-progress-fill {
  height: 100%;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}
.cook-mode-step-num {
  font-size: 13px;
  opacity: 0.6;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.cook-mode-text {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.5;
  flex: 1;
}
.cook-mode-timer {
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cook-mode-timer-time {
  font-size: 36px;
  font-weight: 600;
  font-family: var(--font-display);
}
.cook-mode-nav {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 24px;
}
.cook-nav-btn {
  flex: 1;
  padding: 16px;
  border-radius: var(--radius-lg);
  font-size: 16px;
  font-weight: 600;
  transition: var(--transition);
}
.cook-nav-btn.prev { background: rgba(255,255,255,0.1); color: white; }
.cook-nav-btn.next { background: var(--color-accent); color: white; }
.cook-nav-btn:hover { opacity: 0.85; }
.cook-nav-btn:active { transform: scale(0.97); }

/* ── SEARCH ──────────────────────────────────────────────────── */
.search-page { padding: 0; }
.search-input-area {
  padding: 16px;
  background: var(--color-bg);
  position: sticky;
  top: var(--header-height);
  z-index: 50;
  border-bottom: 1px solid var(--color-border-light);
}
.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-surface);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-full);
  padding: 12px 18px;
}
.search-input-wrap svg { width: 20px; height: 20px; color: var(--color-accent); flex-shrink: 0; }
.search-input-wrap input {
  flex: 1;
  font-size: 16px;
  background: transparent;
}
.search-results { padding: 16px; }
.search-section { margin-bottom: 28px; }
.search-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

/* ── CALENDAR ────────────────────────────────────────────────── */
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}
.calendar-month-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}
.calendar-nav-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-surface-alt);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text);
  transition: var(--transition);
}
.calendar-nav-btn:hover { background: var(--color-accent-light); color: var(--color-accent); }
.calendar-nav-btn svg { width: 18px; height: 18px; }

.calendar-grid-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 0 12px;
  margin-bottom: 4px;
}
.cal-day-label {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  padding: 4px 0;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  padding: 0 12px;
}
.cal-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  font-size: 14px;
  min-height: 44px;
}
.cal-day:hover { background: var(--color-surface-alt); }
.cal-day.other-month { opacity: 0.3; }
.cal-day.today {
  background: var(--color-accent-light);
  font-weight: 700;
  color: var(--color-accent);
}
.cal-day.selected { background: var(--color-accent); color: white; }
.cal-day.has-events::after {
  content: '';
  position: absolute;
  bottom: 4px;
  width: 4px; height: 4px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
}
.cal-day.selected::after { background: white; }

.calendar-events { padding: 16px 20px; }
.calendar-events-date {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}
.event-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border-light);
}
.event-item:last-child { border-bottom: none; }
.event-color-bar {
  width: 4px;
  align-self: stretch;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  min-height: 40px;
}
.event-body { flex: 1; }
.event-title { font-weight: 600; font-size: 15px; }
.event-meta { font-size: 13px; color: var(--color-text-muted); margin-top: 2px; }
.event-delete {
  width: 32px; height: 32px;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-subtle);
  transition: var(--transition);
}
.event-delete:hover { background: var(--color-danger-light); color: var(--color-danger); }
.event-delete svg { width: 15px; height: 15px; }

/* ── MORE PAGE ───────────────────────────────────────────────── */
.more-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px;
}
.more-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.more-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.more-card-icon { font-size: 32px; margin-bottom: 10px; }
.more-card-title { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.more-card-desc { font-size: 12px; color: var(--color-text-muted); line-height: 1.4; }
.more-card.coming-soon {
  opacity: 0.75;
  background: var(--color-surface-alt);
  border-style: dashed;
}

/* ── ADMIN ───────────────────────────────────────────────────── */
.admin-page { padding: 20px 16px; }
.admin-section {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  overflow: hidden;
  margin-bottom: 20px;
}
.admin-section-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border-light);
  font-weight: 600;
  font-size: 15px;
  background: var(--color-surface-alt);
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-section-header svg { width: 16px; height: 16px; color: var(--color-accent); }
.admin-section-body { padding: 20px; }

.admin-recipe-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border-light);
}
.admin-recipe-row:last-child { border-bottom: none; }
.admin-recipe-thumb {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-surface-alt);
  flex-shrink: 0;
}
.admin-recipe-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-recipe-info { flex: 1; min-width: 0; }
.admin-recipe-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-recipe-meta { font-size: 12px; color: var(--color-text-muted); }
.admin-recipe-actions { display: flex; gap: 6px; }

/* ── PRINT VIEW ──────────────────────────────────────────────── */
@media print {
  .top-bar, .bottom-nav, .timer-fab, .timer-widget,
  #toast-container, .recipe-tabs, .recipe-hero-actions,
  .btn, .serving-adjuster { display: none !important; }

  #main-content { padding: 0 !important; }
  .recipe-detail { border-radius: 0; padding: 20px; }
  .recipe-hero { height: 180px; }
  body { background: white; }

  @page { size: 4in 6in; margin: 0.5in; }
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (min-width: 600px) {
  .recipe-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .coming-soon-grid { grid-template-columns: repeat(3, 1fr); }
  .more-grid { grid-template-columns: repeat(3, 1fr); }
  .home-hero { height: 380px; }
}

@media (min-width: 768px) {
  :root { --content-max: 960px; }
  .recipe-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .home-hero { height: 420px; }
  .recipe-hero { height: 340px; }
  .cook-mode-text { font-size: 30px; }
  .more-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  :root { --content-max: 1100px; }
  .recipe-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .bottom-nav { justify-content: center; gap: 8px; }
  .nav-item { padding: 4px 24px; }
}

/* Kindle Fire landscape (1024x600) */
@media (min-width: 1000px) and (max-height: 660px) {
  :root { --header-height: 48px; --nav-height: 60px; }
  .home-hero { height: 260px; }
  .recipe-hero { height: 220px; }
}

/* Large TV / wide screens */
@media (min-width: 1400px) {
  :root { --content-max: 1200px; }
  .recipe-grid { grid-template-columns: repeat(5, 1fr); }
}

/* ── Measurement Converter ────────────────────────────────── */
.converter-page {
  padding-bottom: 24px;
}
.converter-header {
  padding: 20px 16px 12px;
}
.converter-type-row {
  display: flex;
  gap: 8px;
  padding: 0 16px 16px;
  flex-wrap: wrap;
}
.converter-type-btn {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.converter-type-btn.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
.converter-type-btn:hover:not(.active) {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.converter-card {
  margin: 0 16px 20px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 20px;
}
.converter-fields {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.converter-field-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}
.converter-field-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.converter-input {
  flex: 1;
  padding: 14px 16px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 22px;
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-bg);
  outline: none;
  transition: var(--transition);
  min-width: 0;
}
.converter-input:focus {
  border-color: var(--color-accent);
  background: var(--color-surface);
}
.converter-result {
  flex: 1;
  padding: 14px 16px;
  background: var(--color-accent-light);
  border: 2px solid var(--color-accent-light);
  border-radius: var(--radius-md);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-accent-deep);
  min-width: 0;
  word-break: break-all;
}
.converter-select {
  padding: 14px 10px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-surface);
  cursor: pointer;
  outline: none;
  min-width: 90px;
  flex-shrink: 0;
}
.converter-select:focus {
  border-color: var(--color-accent);
}
.converter-swap-row {
  display: flex;
  justify-content: center;
  padding: 8px 0;
}
.converter-swap-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.converter-swap-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: rotate(180deg);
}
.converter-swap-btn i { width: 18px; height: 18px; }
.converter-temp-label {
  margin-top: 14px;
  padding: 10px 14px;
  background: var(--color-warm-light);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-warm);
  text-align: center;
}
.converter-ref {
  margin: 0 16px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 16px 20px;
}
.converter-ref-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}
.converter-ref-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.converter-ref-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  padding: 6px 0;
  border-bottom: 1px solid var(--color-border-light);
}
.converter-ref-row:last-child { border-bottom: none; }
.converter-ref-from {
  font-weight: 600;
  color: var(--color-text);
  min-width: 90px;
}
.converter-ref-to {
  color: var(--color-text-muted);
  text-align: right;
}

/* ── Spotify Widget ───────────────────────────────────────── */
.spotify-widget {
  margin: 0 16px 20px;
  background: #191414;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.spotify-widget-inner {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.spotify-widget-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1DB954;
}
.spotify-logo {
  width: 16px;
  height: 16px;
}
.spotify-track-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.spotify-album-art {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: #282828;
}
.spotify-album-art-placeholder {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: #282828;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.spotify-track-info {
  flex: 1;
  min-width: 0;
}
.spotify-track-name {
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.spotify-artist-name {
  font-size: 13px;
  color: #b3b3b3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.spotify-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.spotify-ctrl-btn {
  background: none;
  border: none;
  color: #b3b3b3;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-full);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.spotify-ctrl-btn:hover { color: #fff; }
.spotify-ctrl-btn.primary {
  background: #1DB954;
  color: #000;
  width: 40px;
  height: 40px;
}
.spotify-ctrl-btn.primary:hover { background: #1ed760; }
.spotify-ctrl-btn i { width: 20px; height: 20px; }
.spotify-ctrl-btn.primary i { width: 22px; height: 22px; }
.spotify-volume-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.spotify-volume-icon {
  color: #b3b3b3;
  font-size: 14px;
  flex-shrink: 0;
  width: 16px;
}
.spotify-volume-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: #404040;
  outline: none;
  cursor: pointer;
}
.spotify-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #1DB954;
  cursor: pointer;
}
.spotify-offline-msg {
  padding: 16px;
  text-align: center;
  font-size: 14px;
  color: #b3b3b3;
}
.spotify-connect-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: #1DB954;
  color: #000;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: var(--transition);
}
.spotify-connect-btn:hover { background: #1ed760; }
