/* ============================================================
   Advisor Poster Hub — Mobile-First App CSS
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --primary:        #EA580C;
  --primary-dark:   #C2410C;
  --primary-light:  #FED7AA;
  --primary-bg:     #FFF7ED;
  --secondary:      #FFFFFF;
  --text:           #1F2937;
  --text-2:         #4B5563;
  --text-3:         #9CA3AF;
  --bg:             #F8FAFC;
  --bg-card:        #FFFFFF;
  --border:         #E5E7EB;
  --shadow-sm:      0 1px 4px rgba(0,0,0,.08);
  --shadow-md:      0 4px 16px rgba(0,0,0,.12);
  --shadow-lg:      0 8px 32px rgba(0,0,0,.16);
  --radius-sm:      8px;
  --radius-md:      14px;
  --radius-lg:      20px;
  --radius-xl:      28px;
  --nav-h:          68px;
  --header-h:       58px;
  --font:           'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition:     0.2s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: var(--primary); text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
input, textarea, select { font-family: var(--font); }

/* ---------- App Shell ---------- */
#app {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  background: var(--bg);
}

/* ---------- Top Header ---------- */
#top-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--secondary);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 16px;
  gap: 10px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.logo-icon { font-size: 22px; }

.logo-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.3px;
}

.header-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text);
  transition: background var(--transition);
  flex-shrink: 0;
}

.btn-icon:hover, .btn-icon:active { background: var(--bg); }

/* ---------- Search Bar ---------- */
.search-bar {
  background: var(--secondary);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--header-h);
  z-index: 99;
}

.search-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 10px 16px;
}

.search-inner svg { color: var(--text-3); flex-shrink: 0; }

#search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  color: var(--text);
  outline: none;
}

#btn-search-close {
  color: var(--text-3);
  font-size: 16px;
  padding: 2px 4px;
}

/* ---------- Main Content ---------- */
#main-content {
  flex: 1;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
  overflow-y: auto;
}

/* ---------- Page Loader ---------- */
.page-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(100dvh - var(--header-h) - var(--nav-h));
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Bottom Navigation ---------- */
#bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--secondary);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  z-index: 200;
  box-shadow: 0 -2px 12px rgba(0,0,0,.08);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 0;
  color: var(--text-3);
  font-size: 11px;
  font-weight: 500;
  transition: color var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.nav-item svg { transition: transform var(--transition); }

.nav-item.active {
  color: var(--primary);
}

.nav-item.active svg { transform: scale(1.1); }

/* ---------- Section ---------- */
.section { padding: 20px 16px 0; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.section-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

/* ---------- Hero Banner ---------- */
.hero-banner {
  margin: 16px 16px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 140px;
  height: 140px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}

.hero-banner::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: 40px;
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
}

.hero-greeting { font-size: 13px; opacity: 0.9; margin-bottom: 4px; }
.hero-name     { font-size: 22px; font-weight: 800; margin-bottom: 4px; letter-spacing: -0.5px; }
.hero-sub      { font-size: 13px; opacity: 0.85; }

/* ---------- Category Pills ---------- */
.category-pills {
  display: flex;
  gap: 8px;
  padding: 16px 16px 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.category-pills::-webkit-scrollbar { display: none; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  background: var(--bg-card);
  color: var(--text-2);
  border: 1.5px solid var(--border);
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.pill.active,
.pill:active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ---------- Poster Grid ---------- */
.poster-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px;
}

.poster-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

.poster-card:active { transform: scale(0.97); }

.poster-thumb {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg);
}

.poster-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.poster-card:active .poster-thumb img { transform: scale(1.04); }

.poster-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--primary);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.poster-info {
  padding: 10px 10px 12px;
}

.poster-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.poster-meta {
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 10px;
}

.btn-generate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px 10px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: background var(--transition);
}

.btn-generate:active { background: var(--primary-dark); }

/* ---------- Poster List (horizontal scroll) ---------- */
.poster-scroll {
  display: flex;
  gap: 12px;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.poster-scroll::-webkit-scrollbar { display: none; }

.poster-card-h {
  flex-shrink: 0;
  width: 160px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.poster-card-h:active { opacity: 0.85; }

.poster-card-h .poster-thumb {
  width: 160px;
  height: 160px;
  aspect-ratio: 1;
}

.poster-card-h .poster-info { padding: 8px 10px 10px; }
.poster-card-h .poster-title { font-size: 12px; -webkit-line-clamp: 1; }

/* ---------- Category Grid ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 16px;
}

.category-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 18px 10px;
  text-align: center;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.category-card:active {
  background: var(--primary-bg);
  border-color: var(--primary);
}

.category-icon { font-size: 28px; margin-bottom: 6px; }

.category-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  line-height: 1.3;
}

.category-count {
  font-size: 10px;
  color: var(--text-3);
  margin-top: 3px;
}

/* ---------- Profile Page ---------- */
.profile-page { padding: 16px; }

.profile-avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0 20px;
}

.avatar-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  margin-bottom: 12px;
}

.avatar-img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  background: var(--bg);
}

.avatar-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  border: 3px solid var(--primary);
}

.avatar-edit-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 30px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
}

/* XL avatar — used on the profile page */
.avatar-wrap-xl  { width: 110px; height: 110px; }
.avatar-img-xl   { width: 110px; height: 110px; border-width: 3.5px; }
.avatar-placeholder-xl { width: 110px; height: 110px; font-size: 44px; border-width: 3.5px; }

.profile-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.profile-desig {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 3px;
}

/* ---------- Forms ---------- */
.form-section {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}

.form-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 16px;
}

.form-group { margin-bottom: 14px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color var(--transition);
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  background: white;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.req { color: var(--primary); }

.form-note {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 16px;
  line-height: 1.5;
}

/* Logo/Photo upload strip */
.upload-strip {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.upload-box {
  flex: 1;
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 16px 8px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.upload-box:active, .upload-box.has-image {
  border-color: var(--primary);
  background: var(--primary-bg);
}

.upload-box-img {
  width: 100%;
  height: 80px;
  object-fit: contain;
  border-radius: 8px;
}

.upload-box-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-3);
}

.upload-box-placeholder span { font-size: 12px; font-weight: 500; }
.upload-icon { font-size: 28px; }

.upload-box input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.btn-primary:active { background: var(--primary-dark); border-color: var(--primary-dark); }

.btn-outline {
  background: white;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:active { background: var(--primary-bg); }

.btn-ghost {
  background: var(--bg);
  color: var(--text-2);
  border-color: var(--border);
}
.btn-ghost:active { background: var(--border); }

.btn-full { width: 100%; }

.btn-danger {
  background: #EF4444;
  color: white;
  border-color: #EF4444;
}

/* ---------- Downloads Page ---------- */
.downloads-page { padding: 16px; }

.download-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
}

.download-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg);
}

.download-info { flex: 1; min-width: 0; }

.download-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.download-date { font-size: 11px; color: var(--text-3); }

.download-actions { display: flex; gap: 8px; }

.btn-sm {
  padding: 8px 12px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

/* ---------- Empty State ---------- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
  gap: 12px;
}

.empty-icon { font-size: 56px; }
.empty-title { font-size: 18px; font-weight: 700; color: var(--text); }
.empty-sub   { font-size: 14px; color: var(--text-2); line-height: 1.5; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: calc(var(--nav-h) + 12px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1F2937;
  color: white;
  padding: 12px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  max-width: calc(100vw - 32px);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 9999;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.success { background: #059669; }
.toast.error   { background: #DC2626; }

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
}

.modal-box {
  position: relative;
  z-index: 1001;
  background: var(--bg-card);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  max-height: 92dvh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

.modal-box-lg { max-height: 96dvh; }

@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.modal-header {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.modal-icon  { font-size: 40px; margin-bottom: 8px; }

.modal-header h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}

.modal-header p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
}

.modal-form { display: flex; flex-direction: column; gap: 14px; }

.btn-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--text-2);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Generator ---------- */
.gen-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 0;
  color: var(--text-2);
  font-size: 14px;
}

.gen-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

#gen-preview {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: block;
  margin-bottom: 4px;
}

.gen-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.gen-actions .btn-primary {
  grid-column: 1 / -1;
}

/* ---------- Photo Cropper ---------- */
.cropper-stage {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.cropper-stage canvas {
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  display: block;
  touch-action: none;   /* prevent page scroll while dragging */
  user-select: none;
}

.cropper-zoom-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 4px 8px;
}

.cropper-zoom-row svg { color: var(--text-3); flex-shrink: 0; }

.cropper-zoom-row input[type="range"] {
  flex: 1;
  accent-color: var(--primary);
  height: 4px;
  cursor: pointer;
  border: none;
  padding: 0;
  background: transparent;
}

.cropper-hint {
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.4;
  margin-bottom: 4px;
}

/* ---------- Template Detail ---------- */
.template-detail { padding: 0 0 24px; }

.template-preview {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--bg);
}

.template-info {
  padding: 20px 16px 0;
}

.template-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}

.template-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-3);
}

.template-meta span { display: flex; align-items: center; gap: 4px; }

.profile-required-note {
  background: var(--primary-bg);
  border: 1px solid var(--primary-light);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.profile-required-note .icon { font-size: 20px; flex-shrink: 0; }
.profile-required-note p { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.profile-required-note strong { color: var(--primary); }

.btn-generate-large {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-md);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.2px;
  transition: background var(--transition);
}
.btn-generate-large:active { background: var(--primary-dark); }

/* ---------- Info Card ---------- */
.info-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 16px;
  margin: 12px 16px 0;
}

.info-card-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-3);
  margin-bottom: 10px;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.info-row:last-child { border-bottom: none; padding-bottom: 0; }

.info-label { font-size: 12px; color: var(--text-3); width: 90px; flex-shrink: 0; }
.info-value { font-size: 14px; font-weight: 600; color: var(--text); flex: 1; }

/* ---------- Skeleton Loading ---------- */
.skeleton {
  background: linear-gradient(90deg, var(--bg) 25%, var(--border) 50%, var(--bg) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

.skeleton-card { height: 240px; border-radius: var(--radius-md); }

/* ---------- Utility ---------- */
.spacer-sm  { height: 12px; }
.spacer-md  { height: 20px; }
.spacer-lg  { height: 32px; }
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.pb-20 { padding-bottom: 20px; }

/* ---------- Tablet / Desktop polish ---------- */
@media (min-width: 480px) {
  #app {
    box-shadow: 0 0 40px rgba(0,0,0,.12);
  }

  .poster-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
