/* =============================================================
   My Favorite Martin — Main Stylesheet
   ============================================================= */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Nunito:wght@300;400;600;700&display=swap');

/* ── Variables ── */
:root {
  --bg:           #fdfcff;
  --bg-alt:       #f0ebfa;
  --bg-dark:      #3a1f5c;
  --text:         #2a1840;
  --text-mid:     #5a4a72;
  --text-light:   #9080aa;
  --accent:       #2d7a5c;
  --accent-dark:  #1f5c42;
  --accent-light: #c9b8e8;
  --purple:       #7c4bb5;
  --purple-dark:  #5c3490;
  --card-bg:      #ffffff;
  --border:       #e0d8f0;
  --white:        #ffffff;
  --shadow:       rgba(58, 31, 92, 0.12);
  --shadow-hover: rgba(58, 31, 92, 0.22);
  --radius:       8px;
  --nav-height:   70px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  line-height: 1.3;
  color: var(--text);
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }
h5 { font-size: 0.95rem; letter-spacing: 0.05em; text-transform: uppercase; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

em { font-style: italic; }

/* ── Layout ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

/* ── Navigation ── */
.site-nav {
  background: var(--bg-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-logo img {
  height: 48px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
  align-items: center;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a {
  display: block;
  padding: 0 1rem;
  height: var(--nav-height);
  line-height: var(--nav-height);
  color: #ede8f8;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.nav-links > li > a:hover,
.nav-links > li:hover > a {
  color: var(--accent-light);
  background: rgba(255,255,255,0.05);
}

/* Dropdown */
.nav-links .dropdown {
  position: absolute;
  top: var(--nav-height);
  left: 0;
  background: var(--bg-dark);
  min-width: 200px;
  list-style: none;
  border-top: 2px solid var(--accent);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s;
}

.nav-links li:hover .dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 0.65rem 1.2rem;
  color: #ede8f8;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}

.dropdown li a:hover {
  background: rgba(255,255,255,0.08);
  color: var(--accent-light);
}

/* Social icons in nav */
.nav-social {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.nav-social a {
  color: #c9b8e8;
  font-size: 1.1rem;
  transition: color 0.2s;
  line-height: 1;
}

.nav-social a:hover { color: var(--accent-light); }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ede8f8;
  transition: all 0.3s;
}

/* ── Site Header (logo area above nav) ── */
.site-header {
  background: var(--bg-dark);
  text-align: center;
  padding: 1.2rem 1.5rem 0;
}

.site-header .logo-full {
  max-height: 90px;
  width: auto;
  margin: 0 auto;
}

/* ── Hero / Page Header ── */
.page-hero {
  background: var(--bg-alt);
  text-align: center;
  padding: 3rem 1.5rem;
  border-bottom: 1px solid var(--accent-light);
}

.page-hero h1 { margin-bottom: 0.5rem; }
.page-hero p  { color: var(--text-mid); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.65rem 1.6rem;
  background: var(--accent);
  color: var(--white);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn:hover {
  background: var(--accent-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

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

/* ── Polaroid Cards ── */
.polaroid-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  padding: 2rem 0;
}

.polaroid-card {
  background: var(--white);
  padding: 12px 12px 48px;
  box-shadow: 3px 3px 10px var(--shadow), 6px 6px 20px var(--shadow);
  width: 200px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  text-decoration: none;
  color: var(--text);
  display: block;
}

.polaroid-card:nth-child(odd)  { transform: rotate(-2.5deg); }
.polaroid-card:nth-child(even) { transform: rotate(2deg); }
.polaroid-card:nth-child(3n)   { transform: rotate(-1.2deg); }

.polaroid-card:hover {
  transform: rotate(0deg) scale(1.04);
  box-shadow: 5px 8px 20px var(--shadow-hover);
  color: var(--text);
  z-index: 1;
  position: relative;
}

.polaroid-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.polaroid-caption {
  padding: 0.6rem 0.2rem 0;
  font-family: 'Nunito', sans-serif;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-mid);
  text-align: center;
}

/* ── Home Page Profile Cards ── */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  padding: 2rem 0;
}

.profile-card {
  text-align: center;
}

.profile-photo-wrap {
  display: inline-block;
  background: var(--white);
  padding: 10px 10px 40px;
  box-shadow: 3px 3px 10px var(--shadow), 6px 6px 20px var(--shadow);
  margin-bottom: 1.5rem;
  transform: rotate(-2deg);
  transition: transform 0.35s ease;
}

.profile-photo-wrap:hover { transform: rotate(0deg); }

.profile-photo-wrap img {
  width: 260px;
  height: 260px;
  object-fit: cover;
}

.profile-card h2 { font-size: 1.8rem; margin-bottom: 0.2rem; }
.profile-card h5 { color: var(--accent); margin-bottom: 1rem; }
.profile-card p  { color: var(--text-mid); max-width: 340px; margin: 0 auto 1.2rem; }

/* ── Footer ── */
.site-footer {
  background: var(--bg-dark);
  color: #c9b8e8;
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.875rem;
}

.site-footer a { color: var(--accent-light); }
.site-footer a:hover { color: var(--white); }

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.3rem 1.5rem;
  list-style: none;
  margin-bottom: 1rem;
}

.footer-nav a { color: #c4b0a0; font-size: 0.85rem; }
.footer-nav a:hover { color: var(--white); }

/* ── Blog ── */
.post-list { max-width: 780px; margin: 0 auto; }

.post-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px var(--shadow);
  transition: box-shadow 0.2s;
}

.post-card:hover { box-shadow: 0 4px 16px var(--shadow-hover); }

.post-date {
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.post-card h2 { font-size: 1.4rem; margin-bottom: 0.6rem; }
.post-card h2 a { color: var(--text); }
.post-card h2 a:hover { color: var(--accent); }
.post-excerpt { color: var(--text-mid); }

.post-body { max-width: 780px; margin: 0 auto; }
.post-body h1 { margin-bottom: 0.3rem; }
.post-body .post-date { margin-bottom: 2rem; }
.post-body p { margin-bottom: 1.2rem; }

/* ── Cat Profile Pages ── */
.cat-hero {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.cat-stats {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  box-shadow: 0 2px 8px var(--shadow);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.cat-stat label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.cat-stat span {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
}

.cat-story {
  max-width: 780px;
  margin: 0 auto 2rem;
}

.cat-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}

.cat-gallery img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 6px var(--shadow);
  cursor: pointer;
  transition: transform 0.2s;
}

.cat-gallery img:hover { transform: scale(1.05); }

/* Memorial */
.memorial-wrap {
  text-align: center;
  padding: 2rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
  margin: 2rem 0;
}

.memorial-heart {
  width: 180px;
  height: 180px;
  object-fit: cover;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 88 L15 52 C5 42 5 25 20 18 C30 13 40 18 50 28 C60 18 70 13 80 18 C95 25 95 42 85 52 Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 88 L15 52 C5 42 5 25 20 18 C30 13 40 18 50 28 C60 18 70 13 80 18 C95 25 95 42 85 52 Z'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  margin: 0 auto 1rem;
}

/* Candle flicker */
.candle {
  font-size: 2.5rem;
  display: inline-block;
  animation: flicker 2s infinite alternate;
  transform-origin: bottom center;
}

@keyframes flicker {
  0%   { transform: rotate(-1deg) scaleY(1);    opacity: 1;    }
  25%  { transform: rotate(1.5deg) scaleY(0.97); opacity: 0.9; }
  50%  { transform: rotate(-0.5deg) scaleY(1.02); opacity: 1;  }
  75%  { transform: rotate(1deg) scaleY(0.98);  opacity: 0.85; }
  100% { transform: rotate(-1.5deg) scaleY(1);  opacity: 1;    }
}

/* ── Movie Selector ── */
.movie-selector-wrap { max-width: 900px; margin: 0 auto; }

.genre-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.genre-btn {
  padding: 0.35rem 0.9rem;
  border: 2px solid var(--accent-light);
  border-radius: 999px;
  background: transparent;
  color: var(--text-mid);
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.genre-btn.active,
.genre-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.movie-result {
  display: none;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 4px 16px var(--shadow);
  margin-top: 2rem;
  gap: 1.5rem;
  align-items: flex-start;
}

.movie-result.visible { display: flex; }

.movie-poster {
  width: 120px;
  flex-shrink: 0;
  border-radius: 4px;
  box-shadow: 0 2px 8px var(--shadow);
}

.movie-poster-placeholder {
  width: 120px;
  height: 180px;
  background: var(--bg-alt);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.75rem;
  text-align: center;
  flex-shrink: 0;
}

.movie-info h2 { margin-bottom: 0.3rem; }
.movie-meta { color: var(--text-light); font-size: 0.85rem; margin-bottom: 0.8rem; }
.movie-genres { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.8rem; }

.genre-tag {
  background: var(--bg-alt);
  color: var(--text-mid);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* ── Movie Collection Table ── */
.movie-search-bar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.movie-search-bar input,
.movie-search-bar select {
  padding: 0.55rem 0.9rem;
  border: 2px solid var(--bg-alt);
  border-radius: var(--radius);
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  background: var(--white);
  color: var(--text);
  flex: 1;
  min-width: 180px;
}

.movie-search-bar input:focus,
.movie-search-bar select:focus {
  outline: none;
  border-color: var(--accent-light);
}

.movie-table { width: 100%; border-collapse: collapse; }
.movie-table th {
  text-align: left;
  padding: 0.6rem 0.75rem;
  background: var(--bg-dark);
  color: #ede8f8;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.movie-table td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--bg-alt);
  font-size: 0.88rem;
  vertical-align: top;
}

.movie-table tr:hover td { background: var(--bg-alt); }

/* ── Tie Gallery ── */
.tie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0;
}

.tie-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}

.tie-card:hover {
  box-shadow: 0 4px 16px var(--shadow-hover);
  transform: translateY(-2px);
}

.tie-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.tie-card-info {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--text-mid);
}

/* ── Admin ── */
.admin-wrap {
  max-width: 700px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.admin-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  box-shadow: 0 2px 12px var(--shadow);
}

.admin-card h2 { margin-bottom: 1.5rem; }

.form-group { margin-bottom: 1.2rem; }

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group input[type="file"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 2px solid var(--bg-alt);
  border-radius: var(--radius);
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-light);
}

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

/* ── Utility ── */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }

.alert {
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-weight: 600;
}

.alert-success { background: #eaf7ea; color: #2d7a2d; border: 1px solid #b2d8b2; }
.alert-error   { background: #fdf0f0; color: #9b2c2c; border: 1px solid #f0b0b0; }

/* ── Movie Selector ── */
.movie-filter-wrap {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
}

.genre-filter-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.genre-checkbox {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.15s, border-color 0.15s;
  user-select: none;
}

.genre-checkbox:hover { border-color: var(--accent); }
.genre-checkbox input { accent-color: var(--accent); width: 14px; height: 14px; }
.genre-checkbox em.genre-checkbox em { color: var(--text-mid); font-size: 0.78rem; }

.btn-lg { font-size: 1.1rem; padding: 0.8rem 2.5rem; }
.btn-sm { font-size: 0.85rem; padding: 0.35rem 0.9rem; }

.movie-result-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.movie-result-inner { display: flex; gap: 2rem; align-items: flex-start; }

.movie-poster-wrap { flex-shrink: 0; width: 150px; }
.movie-poster-wrap img { width: 100%; border-radius: 6px; box-shadow: 0 4px 16px rgba(0,0,0,0.15); }

.no-poster {
  width: 150px;
  height: 225px;
  background: var(--bg-dark);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.movie-result-info { flex: 1; }
.movie-result-info h2 { margin-bottom: 0.5rem; }
.movie-meta { color: var(--text-mid); font-size: 0.9rem; margin-bottom: 0.3rem; }
.movie-overview { margin-top: 1rem; line-height: 1.6; color: var(--text); }
.genre-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem; }
.genre-tag {
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 2rem;
  font-weight: 600;
}

/* ── Movie Collection ── */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.25rem;
}

.movie-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.movie-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px var(--shadow-hover); }
.movie-card-poster { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; }
.movie-card-no-poster {
  width: 100%;
  aspect-ratio: 2/3;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.movie-card-body { padding: 0.6rem 0.75rem 0.75rem; }
.movie-card-title { font-weight: 700; font-size: 0.85rem; line-height: 1.3; margin-bottom: 0.2rem; }
.movie-card-year { font-size: 0.75rem; color: var(--text-mid); }

.collection-controls {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1.5rem;
}

.collection-search {
  flex: 1;
  min-width: 200px;
  padding: 0.55rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--text);
}

.collection-search:focus { outline: none; border-color: var(--accent); }

.collection-genre-select {
  padding: 0.55rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--text);
}

.movie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}

.movie-modal {
  background: var(--card-bg);
  border-radius: var(--radius);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
}

.movie-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-mid);
  line-height: 1;
}

.movie-modal-close:hover { color: var(--text); }

/* ── Cat Profile Pages (new grid layout) ── */
.cat-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.cat-stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
}

.cat-stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-mid);
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.cat-stat-value { font-size: 0.95rem; font-weight: 600; color: var(--text); }

.cat-story { line-height: 1.8; font-size: 1.05rem; }
.cat-story p { margin-bottom: 1.2rem; }

.rainbow-badge {
  display: inline-block;
  background: linear-gradient(90deg,#f87171,#fb923c,#fbbf24,#4ade80,#60a5fa,#c084fc);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.8rem;
  border-radius: 2rem;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.living-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.8rem;
  border-radius: 2rem;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links, .nav-social {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-dark);
    padding: 1rem 0;
    gap: 0;
  }

  .nav-links.open, .nav-social.open { display: flex; }

  .nav-links > li > a {
    height: auto;
    line-height: 1;
    padding: 0.8rem 1.5rem;
  }

  .nav-toggle { display: flex; }

  .nav-links .dropdown {
    display: none;
    position: static;
    opacity: 1;
    pointer-events: all;
    transform: none;
    box-shadow: none;
    border-top: none;
    padding-left: 1rem;
  }

  .nav-links li.open > .dropdown {
    display: block;
  }

  .nav-links > li > a.has-dropdown::after {
    content: ' ▾';
    font-size: 0.75em;
  }

  .nav-links > li.open > a.has-dropdown::after {
    content: ' ▴';
  }

  .profile-grid { grid-template-columns: 1fr; }
  .movie-result-inner { flex-direction: column; }
  .movie-poster-wrap { width: 100%; max-width: 200px; }
  .no-poster { width: 100%; max-width: 200px; height: 150px; }
  .cat-stats-grid { grid-template-columns: 1fr 1fr; }
  .movie-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}
