:root {
  --soil: #2c1a0e;
  --hay: #c8922a;
  --hay-light: #e8b84b;
  --cream: #f5ede0;
  --muted: #8a6f56;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background-color: var(--soil);
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(200,146,42,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(74,124,63,0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.grain {
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 1; opacity: 0.5;
}

.wrapper {
  position: relative; z-index: 2;
  max-width: 900px; margin: 0 auto;
  padding: 0 16px 60px;
}

/* Header */
header {
  padding: 28px 0 24px;
  display: flex; align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}

.logo-area h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 700; color: var(--hay-light);
  line-height: 1; letter-spacing: -0.5px;
}

.logo-area p {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem; color: var(--muted);
  text-transform: none; letter-spacing: 0.2px; margin-top: 6px;
}

.header-right {
  display: flex; align-items: center;
  gap: 10px; flex-wrap: wrap; margin-top: 6px;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  border: 1px solid rgba(200,146,42,0.3);
  border-radius: 999px; overflow: hidden;
  font-family: 'DM Mono', monospace; font-size: 0.7rem;
}

.lang-btn {
  padding: 5px 11px;
  background: transparent; color: var(--muted);
  border: none; cursor: pointer;
  letter-spacing: 0.2px; text-transform: none;
  transition: background 0.2s, color 0.2s;
}

.lang-btn.active { background: rgba(200,146,42,0.2); color: var(--hay-light); }
.lang-btn:hover:not(.active) { background: rgba(200,146,42,0.08); color: var(--cream); }

.live-badge {
  display: flex; align-items: center; gap: 7px;
  background: rgba(192,57,43,0.15);
  border: 1px solid rgba(192,57,43,0.4);
  border-radius: 999px; padding: 6px 14px;
  font-family: 'DM Mono', monospace; font-size: 0.72rem;
  color: #e74c3c; letter-spacing: 1.5px; text-transform: uppercase;
}

.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #e74c3c;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* Video */
.video-wrap {
  position: relative; width: 100%; aspect-ratio: 16/9;
  background: #0a0604; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(200,146,42,0.2);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04), 0 24px 80px rgba(0,0,0,0.6);
}

.video-wrap iframe,
.video-wrap video { width: 100%; height: 100%; display: block; border: 0; background: #0a0604; object-fit: contain; }

/* Loader del vídeo */
.video-loader {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
  background: #0a0604;
  color: var(--muted);
  font-family: 'DM Mono', monospace; font-size: 0.72rem;
  letter-spacing: 0.2px; text-transform: none;
  transition: opacity 0.4s ease;
  z-index: 3;
}
.video-loader.hidden { opacity: 0; pointer-events: none; }
.video-loader .spinner {
  width: 38px; height: 38px;
  border: 3px solid rgba(200,146,42,0.2);
  border-top-color: var(--hay-light);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Stats bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 16px;
  border: 1px solid rgba(200,146,42,0.15);
  border-radius: 12px; overflow: hidden;
}

.stat {
  padding: 12px 10px;
  border-right: 1px solid rgba(200,146,42,0.1);
  display: flex; flex-direction: column;
  align-items: center; gap: 3px;
  text-align: center;
}

.stat:last-child { border-right: none; }

.stat-label {
  font-family: 'DM Mono', monospace; font-size: 0.55rem;
  color: var(--muted); text-transform: none; letter-spacing: 0.2px;
}

.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; color: var(--hay-light); font-weight: 700;
  white-space: nowrap;
}

/* Cards */
.info-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-top: 20px;
}

.card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(200,146,42,0.12);
  border-radius: 12px; padding: 18px;
}

.card h3 {
  font-family: 'Playfair Display', serif; font-size: 1rem;
  color: var(--hay-light); margin-bottom: 10px;
}

.card p, .card li {
  font-size: 0.85rem;
  color: rgba(245,237,224,0.65); line-height: 1.6;
}

.card ul { list-style: none; }
.card ul li::before { content: '—'; margin-right: 8px; color: var(--hay); opacity: 0.6; }
.card a { color: var(--hay); text-decoration: none; }
.card a:hover { color: var(--hay-light); }

/* Donation section */
.donate-section {
  margin-top: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(200,146,42,0.15);
  border-radius: 16px; padding: 28px 24px;
  text-align: center;
}

.donate-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; color: var(--hay-light); margin-bottom: 6px;
}

.donate-section > p {
  font-size: 0.85rem; color: rgba(245,237,224,0.5); margin-bottom: 22px;
}

.donate-amounts {
  display: flex; gap: 10px;
  justify-content: center; flex-wrap: wrap; margin-bottom: 20px;
}

.amount-btn {
  padding: 10px 22px;
  background: rgba(200,146,42,0.12);
  border: 1px solid rgba(200,146,42,0.3);
  border-radius: 999px; color: var(--hay-light);
  font-family: 'DM Mono', monospace; font-size: 0.9rem;
  cursor: pointer; transition: all 0.2s;
  text-decoration: none; display: inline-block;
}

.amount-btn:hover {
  background: rgba(200,146,42,0.25);
  border-color: var(--hay); transform: translateY(-2px);
}

.donate-divider {
  font-family: 'DM Mono', monospace; font-size: 0.7rem;
  color: var(--muted); text-transform: none;
  letter-spacing: 0.2px; margin-bottom: 16px;
}

.donate-custom {
  display: flex; gap: 10px;
  justify-content: center; align-items: center; flex-wrap: wrap;
}

.custom-input-wrap {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(200,146,42,0.2);
  border-radius: 999px; overflow: hidden;
  padding: 0 6px 0 16px;
}

.custom-input-wrap span {
  font-family: 'DM Mono', monospace;
  font-size: 0.9rem; color: var(--muted);
}

.custom-input {
  background: transparent; border: none; outline: none;
  color: var(--cream); font-family: 'DM Mono', monospace;
  font-size: 0.9rem; width: 70px;
  padding: 10px 8px; text-align: center;
}

.custom-input::placeholder { color: var(--muted); }

.donate-btn {
  padding: 10px 24px; background: var(--hay);
  color: #2c1a0e; font-family: 'DM Sans', sans-serif;
  font-weight: 600; font-size: 0.9rem;
  border: none; border-radius: 999px;
  cursor: pointer; transition: background 0.2s, transform 0.15s;
}

.donate-btn:hover { background: var(--hay-light); transform: translateY(-2px); }
.donate-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.donate-error {
  margin-top: 12px; font-size: 0.8rem;
  color: #e74c3c; font-family: 'DM Mono', monospace;
  min-height: 20px;
}

.donate-separator {
  display: flex; align-items: center; gap: 12px;
  margin: 24px 0 20px;
  color: var(--muted); font-family: 'DM Mono', monospace;
  font-size: 0.65rem; text-transform: none; letter-spacing: 0.2px;
}
.donate-separator::before, .donate-separator::after {
  content: ''; flex: 1;
  border-top: 1px solid rgba(200,146,42,0.12);
}
.kofi-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; background: #ff5e5b; color: #fff;
  font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 0.95rem;
  border-radius: 999px; text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.kofi-btn:hover { background: #e04340; transform: translateY(-2px); }
.kofi-subtitle {
  margin-top: 10px; font-size: 0.75rem;
  color: rgba(245,237,224,0.35); font-family: 'DM Mono', monospace;
}

/* Social */
.social-links {
  display: flex; gap: 10px;
  justify-content: center; margin-top: 20px; flex-wrap: wrap;
}

.social-btn {
  padding: 8px 20px; background: transparent;
  border: 1px solid rgba(200,146,42,0.2);
  border-radius: 999px; color: rgba(245,237,224,0.6);
  font-family: 'DM Mono', monospace; font-size: 0.72rem;
  text-decoration: none; letter-spacing: 1px; transition: all 0.2s;
}

.social-btn:hover { border-color: var(--hay); color: var(--hay-light); }

/* Clips */
.clips-section { margin-top: 28px; }
.clips-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; color: var(--hay-light);
  margin-bottom: 16px; text-align: center;
}
.clips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.clip-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(200,146,42,0.12);
  border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column;
}
.clip-card .clip-iframe-wrap {
  position: relative; width: 100%; aspect-ratio: 16/9;
  background: #0a0604;
}
.clip-card iframe { width: 100%; height: 100%; border: 0; display: block; }
.clip-meta {
  padding: 10px 12px; display: flex; flex-direction: column; gap: 4px;
}
.clip-title-text {
  font-size: 0.85rem; color: var(--cream);
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical;
}
.clip-date {
  font-family: 'DM Mono', monospace; font-size: 0.65rem;
  color: var(--muted); letter-spacing: 0.5px;
}
.clips-empty {
  text-align: center; padding: 24px;
  color: var(--muted); font-family: 'DM Mono', monospace;
  font-size: 0.8rem; grid-column: 1 / -1;
}
.clips-more-wrap { text-align: center; margin-top: 16px; }
.clips-more-btn {
  padding: 10px 26px;
  background: rgba(200,146,42,0.12);
  border: 1px solid rgba(200,146,42,0.3);
  border-radius: 999px; color: var(--hay-light);
  font-family: 'DM Mono', monospace; font-size: 0.78rem;
  letter-spacing: 0.2px; text-transform: none;
  cursor: pointer; transition: all 0.2s;
}
.clips-more-btn:hover {
  background: rgba(200,146,42,0.25);
  border-color: var(--hay); transform: translateY(-2px);
}

.sysinfo {
  margin-top: 28px; text-align: center;
  display: flex; justify-content: center; align-items: center;
  gap: 10px; flex-wrap: wrap;
  font-family: 'DM Mono', monospace; font-size: 0.7rem;
  color: var(--muted); letter-spacing: 0.5px;
}
.sysinfo-sep { opacity: 0.4; }
.sysinfo span[id] { color: var(--hay-light); }

footer {
  margin-top: 16px; text-align: center;
  font-family: 'DM Mono', monospace; font-size: 0.65rem;
  color: var(--muted); letter-spacing: 0.2px;
  text-transform: none; opacity: 0.5;
}

.wrapper > * { animation: fadeUp 0.6s ease both; }
.wrapper > *:nth-child(1) { animation-delay: 0.00s; }
.wrapper > *:nth-child(2) { animation-delay: 0.08s; }
.wrapper > *:nth-child(3) { animation-delay: 0.16s; }
.wrapper > *:nth-child(4) { animation-delay: 0.22s; }
.wrapper > *:nth-child(5) { animation-delay: 0.28s; }
.wrapper > *:nth-child(6) { animation-delay: 0.34s; }
.wrapper > *:nth-child(7) { animation-delay: 0.38s; }

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

@media (max-width: 540px) {
  .info-grid { grid-template-columns: 1fr; }
  .donate-custom { flex-direction: column; }

  /* Stats: 2x2 en mobile */
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: 1px solid rgba(200,146,42,0.1); border-bottom: 1px solid rgba(200,146,42,0.1); }
  .stat:nth-child(2n) { border-right: none; }
  .stat:nth-child(n+3) { border-bottom: none; }
}

/* ═══════════ Components afegits (multi-pàgina, dispensador, guies) ═══════════ */
a.lang-btn, a.live-badge { text-decoration: none; }
a.live-badge:hover { background: rgba(192,57,43,0.25); }
.logo-title {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 700; color: var(--hay-light);
  line-height: 1; letter-spacing: -0.5px; text-decoration: none;
}

.site-nav {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: -6px 0 20px;
  font-family: 'DM Mono', monospace; font-size: 0.74rem;
  letter-spacing: 0.2px; text-transform: none;
}
.site-nav a {
  padding: 6px 13px; border-radius: 999px;
  color: var(--muted); text-decoration: none;
  border: 1px solid rgba(200,146,42,0.15);
  transition: background 0.2s, color 0.2s;
}
.site-nav a:hover { color: var(--cream); background: rgba(200,146,42,0.08); }
.site-nav a.active { color: var(--hay-light); background: rgba(200,146,42,0.18); border-color: rgba(200,146,42,0.4); }

.feed-section h2, .faq h2, .guides-teaser h2, .photo-section h2 {
  font-family: 'Playfair Display', serif; font-size: 1.35rem;
  color: var(--hay-light); margin-bottom: 10px;
}
.feed-section, .faq, .guides-teaser, .photo-section { margin-top: 28px; }

/* Dispensador */
.feed-section {
  text-align: center;
  background: linear-gradient(160deg, rgba(200,146,42,0.14), rgba(74,124,63,0.10));
  border: 1px solid rgba(200,146,42,0.3);
  border-radius: 16px; padding: 24px 18px;
}
.feed-section > p { color: rgba(245,237,224,0.75); font-size: 0.92rem; max-width: 560px; margin: 0 auto 16px; line-height: 1.6; }
.feed-pay-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 30px; border-radius: 999px;
  background: var(--hay); color: var(--soil);
  font-weight: 600; font-size: 1rem; text-decoration: none;
  border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.feed-pay-btn:hover { background: var(--hay-light); transform: translateY(-2px); }
.feed-pay-btn.disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.feed-meter { max-width: 360px; margin: 18px auto 0; font-family: 'DM Mono', monospace; font-size: 0.78rem; color: var(--muted); }
.feed-meter strong { color: var(--hay-light); }
.feed-meter-bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,0.08); margin: 8px 0; overflow: hidden; }
.feed-meter-bar > div { height: 100%; width: 0; background: var(--hay); transition: width 0.6s ease; }
.feed-live { min-height: 1.2em; color: var(--cream); }
.feed-last { margin: 14px auto 0; max-width: 360px; text-align: left; }
.feed-last-title { font-family: 'DM Mono', monospace; font-size: 0.7rem; text-transform: none; letter-spacing: 0.2px; color: var(--muted); margin-bottom: 6px; }
.feed-last ul { list-style: none; font-size: 0.88rem; }
.feed-last li { padding: 4px 0; border-bottom: 1px dashed rgba(200,146,42,0.15); }
.feed-last li span { color: var(--muted); font-size: 0.8rem; }
.feed-section > p.feed-note { margin-top: 14px; margin-bottom: 0; font-size: 0.78rem; color: var(--muted); }
.feed-admin-btn {
  margin-top: 12px; padding: 8px 18px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--muted);
  border: 1px dashed rgba(200,146,42,0.4); font-family: 'DM Mono', monospace; font-size: 0.75rem;
}
.feed-admin-btn[hidden] { display: none; }
.feed-admin-btn:disabled { opacity: 0.5; }

/* Foto */
.photo-section { text-align: center; }
.photo-section img { width: 100%; height: auto; border-radius: 12px; border: 1px solid rgba(200,146,42,0.2); display: block; }
.text-link { display: inline-block; margin-top: 8px; color: var(--hay); text-decoration: none; font-size: 0.85rem; }
.text-link:hover { color: var(--hay-light); }

/* Guies (targetes) */
.guide-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.guide-card, .guide-item, .hen-card {
  display: flex; flex-direction: column; gap: 6px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(200,146,42,0.15);
  border-radius: 12px; padding: 16px;
  color: var(--cream); text-decoration: none;
  transition: border-color 0.2s, transform 0.15s, background 0.2s;
}
.guide-card:hover, .guide-item:hover, .hen-card:hover { border-color: var(--hay); background: rgba(200,146,42,0.07); transform: translateY(-2px); }
.guide-emoji { font-size: 1.6rem; }
.guide-card-title { font-family: 'Playfair Display', serif; font-size: 1.02rem; color: var(--hay-light); line-height: 1.3; display: block; }
.guide-card-more { margin-top: auto; font-family: 'DM Mono', monospace; font-size: 0.72rem; color: var(--hay); }
.guide-list { display: grid; gap: 12px; }
.guide-item { flex-direction: row; align-items: flex-start; gap: 14px; }
.guide-item-desc { display: block; color: rgba(245,237,224,0.65); font-size: 0.86rem; line-height: 1.5; margin-top: 4px; }

/* FAQ */
.faq details {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(200,146,42,0.12);
  border-radius: 10px; padding: 12px 16px; margin-bottom: 8px;
}
.faq summary { cursor: pointer; font-weight: 500; color: var(--cream); }
.faq summary::marker { color: var(--hay); }
.faq details p { margin-top: 8px; color: rgba(245,237,224,0.7); font-size: 0.9rem; line-height: 1.6; }

/* Pàgines interiors */
.page { margin-top: 4px; }
.breadcrumbs { font-family: 'DM Mono', monospace; font-size: 0.72rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--hay); text-decoration: none; }
.breadcrumbs span { margin: 0 4px; }
.page-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 5vw, 2.3rem);
  color: var(--hay-light); line-height: 1.15; margin-bottom: 12px;
}
.page-intro { color: rgba(245,237,224,0.75); line-height: 1.65; margin-bottom: 22px; max-width: 680px; }

.prose { max-width: 720px; line-height: 1.75; color: rgba(245,237,224,0.85); font-size: 1rem; }
.prose h2 { font-family: 'Playfair Display', serif; color: var(--hay-light); font-size: 1.35rem; margin: 28px 0 10px; }
.prose p { margin-bottom: 14px; }
.prose ul { margin: 0 0 16px 20px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--hay-light); }
.prose strong { color: var(--cream); }
.prose code { font-family: 'DM Mono', monospace; font-size: 0.85em; background: rgba(255,255,255,0.06); padding: 1px 5px; border-radius: 4px; }
pre.code {
  white-space: pre-wrap; word-break: break-all;
  font-family: 'DM Mono', monospace; font-size: 0.78rem;
  background: rgba(0,0,0,0.3); border: 1px solid rgba(200,146,42,0.2);
  border-radius: 10px; padding: 14px; margin-bottom: 10px; color: var(--cream);
}

.live-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin: 32px 0 8px; padding: 18px 20px; border-radius: 14px;
  background: rgba(192,57,43,0.10); border: 1px solid rgba(192,57,43,0.35);
}
.live-cta p { color: rgba(245,237,224,0.7); font-size: 0.88rem; margin-top: 4px; }

/* Clips estàtics */
.clips-static { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.clip-thumb {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  background: #000; aspect-ratio: 16 / 9; overflow: hidden;
}
.clip-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.85; transition: opacity 0.2s; }
.clip-thumb:hover img { opacity: 1; }
.clip-play {
  position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(44,26,14,0.75); color: var(--hay-light); font-size: 1.3rem;
}
h2.clip-title-text { font-family: 'DM Sans', sans-serif; font-size: 0.86rem; font-weight: 500; margin: 0; color: var(--cream); }

/* Gallines */
.hen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.hen-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.hen-name { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--hay-light); }
.hen-breed { font-family: 'DM Mono', monospace; font-size: 0.72rem; color: var(--muted); }
.hen-photo { width: 100%; height: auto; border-radius: 12px; margin-bottom: 16px; }
.prose .hen-facts { list-style: none; margin-left: 0; }
.apadrinar { margin-top: 24px; padding: 18px; border-radius: 14px; background: rgba(200,146,42,0.1); border: 1px solid rgba(200,146,42,0.3); }

.notfound { text-align: center; padding: 40px 0; }
.notfound .page-intro { margin-left: auto; margin-right: auto; }
.notfound-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.clips-more-wrap { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
a.clips-more-btn { text-decoration: none; display: inline-block; }

footer .footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-bottom: 10px; }
footer .footer-links a { color: var(--muted); text-decoration: none; }
footer .footer-links a:hover { color: var(--hay-light); }

@media (max-width: 540px) {
  .feed-pay-btn { width: 100%; }
  .live-cta { flex-direction: column; align-items: stretch; text-align: center; }
  .guide-item { flex-direction: column; }
}

/* Avatars de gallina (sense foto) */
.hen-avatar {
  display: flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%; font-size: 2rem;
  border: 2px solid rgba(200,146,42,0.4);
}
.hen-avatar-lg { width: 88px; height: 88px; font-size: 2.8rem; flex-shrink: 0; }
.hen-negra  { background: radial-gradient(circle at 35% 30%, #3a3a3a, #0d0d0d); }
.hen-blanca { background: radial-gradient(circle at 35% 30%, #ffffff, #d9d2c3); }
.hen-marro  { background: radial-gradient(circle at 35% 30%, #b0703a, #5e3417); }
.hen-desc { color: rgba(245,237,224,0.65); font-size: 0.84rem; line-height: 1.5; }
.hen-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.hen-head .page-title { margin: 0; }
.hen-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.hen-card-sm { align-items: center; text-align: center; }
.hen-card-sm .hen-avatar { width: 48px; height: 48px; font-size: 1.5rem; }
.guides-teaser .hen-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }

/* ═══════════ Races (llistes, fitxa, comparador) ═══════════ */
.species-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.species-card, .breed-card {
  display: flex; flex-direction: column; gap: 4px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(200,146,42,0.15);
  border-radius: 12px; overflow: hidden; color: var(--cream); text-decoration: none;
  transition: border-color 0.2s, transform 0.15s, background 0.2s;
}
.species-card:hover, .breed-card:hover { border-color: var(--hay); background: rgba(200,146,42,0.07); transform: translateY(-2px); }
.species-card img, .breed-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #1a0f08; }
.species-card > span, .breed-card > span:not(.breed-nophoto) { padding: 0 12px; }
.species-card > span:last-child, .breed-card > span:last-child { padding-bottom: 12px; }
.species-name { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--hay-light); margin-top: 8px; }
.breed-name { font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--hay-light); margin-top: 8px; line-height: 1.25; }
.breed-egg { font-size: 0.78rem; color: rgba(245,237,224,0.65); }
.breed-nophoto {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  aspect-ratio: 4 / 3; font-size: 2.4rem; background: rgba(0,0,0,0.25); color: var(--muted);
}
.breed-nophoto small { font-family: 'DM Mono', monospace; font-size: 0.68rem; }
.breed-nophoto-lg { border-radius: 12px; font-size: 4rem; margin-bottom: 12px; }
.breed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.breed-grid-sm { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); margin-bottom: 14px; }
.breed-card[hidden] { display: none; }

.breed-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.breed-filters input[type=search], .breed-filters select {
  flex: 1 1 200px; min-width: 0; padding: 10px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(200,146,42,0.3);
  color: var(--cream); font-family: 'DM Sans', sans-serif; font-size: 0.9rem;
}
.breed-filters select option { background: var(--soil); }
.breed-check { font-size: 0.85rem; color: rgba(245,237,224,0.75); display: flex; gap: 6px; align-items: center; }
.breed-count { font-family: 'DM Mono', monospace; font-size: 0.75rem; color: var(--muted); }
.breed-credits { margin-top: 18px; font-size: 0.74rem; color: var(--muted); line-height: 1.5; }
.breed-credits a { color: var(--hay); }

.breed-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; margin-bottom: 18px; }
.breed-media figure { margin: 0 0 12px; }
.breed-media img { width: 100%; height: auto; border-radius: 12px; display: block; }
.breed-media figcaption { font-size: 0.72rem; color: var(--muted); margin-top: 6px; word-break: break-word; }
.breed-media figcaption a { color: var(--hay); }
.breed-facts h2 { font-family: 'Playfair Display', serif; color: var(--hay-light); font-size: 1.2rem; margin-bottom: 8px; }
.breed-facts dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 0.88rem; }
.breed-facts dt { color: var(--muted); font-family: 'DM Mono', monospace; font-size: 0.74rem; padding-top: 2px; }
.breed-facts dd { color: var(--cream); margin: 0; }
.breed-other-lang summary { cursor: pointer; color: var(--hay); font-size: 0.85rem; margin-bottom: 8px; }

.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; min-width: 420px; }
.compare-table th, .compare-table td { padding: 8px 10px; border-bottom: 1px solid rgba(200,146,42,0.15); text-align: left; vertical-align: top; }
.compare-table thead th { vertical-align: bottom; min-width: 140px; }
.compare-table thead img { width: 100%; max-width: 180px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; display: block; margin-bottom: 6px; }
.compare-table thead a { color: var(--hay-light); font-family: 'Playfair Display', serif; font-size: 1rem; text-decoration: none; }
.compare-table thead button { margin-left: 6px; background: none; border: 0; color: var(--muted); cursor: pointer; }
.compare-table tbody th { color: var(--muted); font-family: 'DM Mono', monospace; font-size: 0.72rem; font-weight: 400; white-space: nowrap; }

@media (max-width: 640px) {
  .breed-layout { grid-template-columns: 1fr; }
  .breed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .species-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Pàgina de clip ───────────────────────────────────────────── */
.clip-page .clip-thumb-lg { width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; margin: 8px 0 14px; }
.clip-page .clip-iframe-wrap { width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; margin: 8px 0 14px; }
.clip-page .clip-iframe-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.clip-nav { display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; margin: 14px 0 6px; }
a.clip-link { text-decoration: none; color: inherit; display: block; }
a.clip-link .clip-thumb { display: block; position: relative; aspect-ratio: 480 / 272; }
a.clip-link .clip-meta, a.clip-link .clip-title-text, a.clip-link .clip-date { display: block; }
h2.clip-title-text a { color: inherit; text-decoration: none; }
h2.clip-title-text a:hover { text-decoration: underline; }
.clip-page { min-width: 0; max-width: 100%; }
.clip-page .clip-thumb-lg, .clip-page .clip-thumb-lg img { max-width: 100%; min-width: 0; }
.clip-page .clip-thumb-lg img { height: auto; }

/* ── Timelapse ────────────────────────────────────────────────── */
.tl-main { margin: 8px 0 22px; }
.tl-main video, video.tl-inline { width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; border-radius: 14px; background: #000; }
video.tl-inline { border-radius: 0; }
.tl-main figcaption { margin-top: 8px; }
.tl-photo img { width: 100%; height: auto; border-radius: 14px; display: block; }

/* ── Codi per incrustar ───────────────────────────────────────── */
.embed-code { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; margin: 10px 0 20px; }
.embed-code textarea {
  width: 100%; box-sizing: border-box; font-family: 'Space Mono', monospace; font-size: 0.78rem;
  background: rgba(0,0,0,0.3); color: var(--cream); border: 1px solid rgba(232,168,56,0.3);
  border-radius: 10px; padding: 12px; resize: vertical;
}
.embed-preview { width: 100%; max-width: 640px; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; }
.embed-preview iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ═══════════ Capçalera: barra única amb desplegables ═══════════ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 18px;
  /* fons a tota l'amplada; el contingut alineat amb la pàgina */
  margin: 0 calc(50% - 50vw) 22px;
  padding: 12px max(16px, calc(50vw - 50%));
  /* Opac a propòsit: el Safari d'iOS 26 només estén el color de la capçalera sota la
     seva barra d'adreces si és opaca; translúcida, s'hi veia el que passava per sota
     (p. ex. el vídeo de Twitch a les pàgines de clip). */
  background: var(--soil);
  border-bottom: 1px solid rgba(200,146,42,0.18);
}
.brand, .brand a {
  font-family: 'Playfair Display', serif; font-weight: 700;
  font-size: 1.55rem; line-height: 1; letter-spacing: -0.3px;
  color: var(--hay-light); text-decoration: none; white-space: nowrap;
}
h1.brand { margin: 0; }
.menu { display: flex; align-items: center; gap: 4px; flex: 1; }
.menu-link, .dd-btn {
  font-family: 'DM Mono', monospace; font-size: 0.74rem;
  letter-spacing: 0.2px; text-transform: none;
  color: var(--muted); background: transparent; border: 1px solid transparent;
  padding: 7px 12px; border-radius: 999px; cursor: pointer;
  text-decoration: none; white-space: nowrap; transition: background 0.2s, color 0.2s;
}
.menu-link:hover, .dd-btn:hover, .dd.open > .dd-btn { color: var(--cream); background: rgba(200,146,42,0.1); }
.menu-link.active, .dd-btn.active { color: var(--hay-light); background: rgba(200,146,42,0.16); border-color: rgba(200,146,42,0.35); }
.caret { display: inline-block; font-size: 0.7em; margin-left: 2px; transition: transform 0.2s; }
.dd.open > .dd-btn .caret { transform: rotate(180deg); }
.dd { position: relative; }
.dd-panel {
  display: none; position: absolute; top: calc(100% + 8px); left: 0; min-width: 200px;
  background: #3a2414; border: 1px solid rgba(200,146,42,0.3); border-radius: 12px;
  padding: 6px; box-shadow: 0 14px 34px rgba(0,0,0,0.45);
}
.dd-panel.dd-right { left: auto; right: 0; min-width: 150px; }
.dd.open > .dd-panel { display: block; }
.dd-panel a {
  display: block; padding: 9px 12px; border-radius: 8px;
  color: var(--cream); text-decoration: none; font-size: 0.92rem; white-space: nowrap;
}
.dd-panel a:hover { background: rgba(200,146,42,0.14); }
.dd-panel a.active { color: var(--hay-light); background: rgba(200,146,42,0.18); }
.topbar-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.topbar .live-badge { padding: 6px 12px; }
.lang-current { border-color: rgba(200,146,42,0.3); }
.menu-toggle { display: none; }

/* La capçalera antiga ja no hi és */
.site-nav, .logo-area, .header-right { display: none; }

@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  .brand, .brand a { font-size: 1.35rem; }
  .menu-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 4px;
    width: 38px; height: 34px; padding: 0 9px; border-radius: 10px; cursor: pointer;
    background: transparent; border: 1px solid rgba(200,146,42,0.3);
  }
  .menu-toggle span { display: block; height: 2px; background: var(--hay-light); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
  .menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  /* Al mòbil el menú és un panell amb tots els grups oberts */
  .menu { display: none; order: 3; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 6px 0 4px; }
  .menu-open .menu { display: flex; }
  .menu .dd-btn { pointer-events: none; text-align: left; padding: 10px 4px 4px; border: 0; background: none; color: var(--muted); }
  .menu .dd-btn .caret { display: none; }
  .menu .dd-panel { display: block; position: static; background: none; border: 0; box-shadow: none; padding: 0; min-width: 0; }
  .menu-link { text-align: left; font-family: 'DM Sans', sans-serif; font-size: 0.92rem; letter-spacing: 0; text-transform: none; color: var(--cream); padding: 10px 12px; }
  .menu .dd-panel a { padding: 10px 12px; }
  .topbar .live-badge { padding: 6px 10px; font-size: 0.66rem; letter-spacing: 1px; }
  .topbar .lang-current { padding: 7px 9px; }
}
@media (max-width: 380px) {
  .topbar .live-badge span { display: none; }
  .topbar .live-badge { padding: 9px 10px; }
}

/* Menú: text normal (com la resta de la web), sense fletxes, i obertura en passar el ratolí */
.menu-link, .dd-btn {
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem; font-weight: 500;
  letter-spacing: 0; text-transform: none; color: rgba(245,237,224,0.75);
}
.caret { display: none; }
@media (hover: hover) and (min-width: 761px) {
  .dd:hover > .dd-panel { display: block; }
  .dd:hover > .dd-btn { color: var(--cream); background: rgba(200,146,42,0.1); }
  /* pont invisible perquè el ratolí no "caigui" entre el botó i el panell */
  .dd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
}
@media (max-width: 760px) {
  .menu .dd-btn { font-size: 0.82rem; font-weight: 500; color: var(--muted); padding-top: 14px; }
  .menu-link { color: var(--cream); }
}

/* Idiomes: desplegable a la barra (escriptori) o grup dins el ☰ (mòbil) */
.menu-langs { display: none; }
@media (max-width: 760px) {
  .topbar .dd-lang { display: none; }
  .menu .menu-langs { display: block; border-top: 1px solid rgba(200,146,42,0.15); margin-top: 6px; }
}

/* ═══════════ Comparador de races ═══════════ */
.cmp-picker { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 22px; }
.cmp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cmp-chips:empty { display: none; }
.cmp-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px;
  background: rgba(200,146,42,0.16); border: 1px solid rgba(200,146,42,0.4);
  border-radius: 999px; color: var(--hay-light); font-size: 0.9rem;
}
.cmp-chip button, .cmp-head button {
  background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 0.85rem; padding: 2px 4px;
}
.cmp-chip button:hover, .cmp-head button:hover { color: var(--cream); }
.cmp-combo { position: relative; }
.cmp-combo input {
  width: 100%; box-sizing: border-box; padding: 12px 16px; border-radius: 999px;
  background: rgba(0,0,0,0.25); border: 1px solid rgba(200,146,42,0.35);
  color: var(--cream); font: inherit; font-size: 1rem;
}
.cmp-combo input:focus { outline: none; border-color: var(--hay-light); }
.cmp-combo input:disabled { opacity: 0.45; }
.cmp-list {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px);
  max-height: 340px; overflow-y: auto; margin: 0; padding: 6px; list-style: none;
  background: #3a2414; border: 1px solid rgba(200,146,42,0.3); border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.45);
}
.cmp-list li { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; cursor: pointer; }
.cmp-list li.active, .cmp-list li:hover { background: rgba(200,146,42,0.18); }
.cmp-list img, .cmp-list .cmp-noimg { width: 44px; height: 34px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.cmp-list strong { display: block; color: var(--cream); font-weight: 500; font-size: 0.95rem; }
.cmp-list small { display: block; color: var(--muted); font-size: 0.78rem; }
.cmp-list .cmp-none { color: var(--muted); cursor: default; }
.cmp-noimg { display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.25); }
.cmp-share { align-self: flex-start; }

.cmp { --n: 2; }
.cmp-heads, .cmp-vals { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 12px; }
.cmp-heads { margin-bottom: 8px; }
.cmp-head { position: relative; text-align: center; }
.cmp-head img, .cmp-noimg-lg { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: block; margin-bottom: 8px; font-size: 2rem; }
.cmp-head a { color: var(--hay-light); font-family: 'Playfair Display', serif; font-size: 1.05rem; text-decoration: none; line-height: 1.2; }
.cmp-head button { position: absolute; top: 6px; right: 6px; background: rgba(26,15,8,0.75); border-radius: 50%; width: 28px; height: 28px; }
.cmp-row { padding: 12px 0; border-top: 1px solid rgba(200,146,42,0.15); }
.cmp-row h3 { font-family: 'DM Sans', sans-serif; font-size: 0.8rem; font-weight: 500; color: var(--muted); margin: 0 0 6px; }
.cmp-val { font-size: 0.92rem; line-height: 1.45; overflow-wrap: anywhere; }
.cmp-who { display: none; }

@media (max-width: 640px) {
  /* Al mòbil: màxim 2 columnes; amb 3-4 races, cada valor porta el nom de la raça */
  /* fotos sempre en una fila; amb 3-4 races, valors en llista (una raça per línia) */
  .cmp-heads { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 8px; }
  .cmp-vals { grid-template-columns: repeat(min(var(--n), 2), minmax(0, 1fr)); gap: 8px; }
  .cmp[data-n="3"] .cmp-vals, .cmp[data-n="4"] .cmp-vals { grid-template-columns: 1fr; gap: 6px; }
  .cmp[data-n="3"] .cmp-head a, .cmp[data-n="4"] .cmp-head a { font-size: 0.8rem; }
  .cmp[data-n="4"] .cmp-head button { width: 22px; height: 22px; font-size: 0.7rem; top: 3px; right: 3px; }
  .cmp-head a { font-size: 0.95rem; }
  .cmp-val { background: rgba(0,0,0,0.18); border-radius: 8px; padding: 7px 9px; font-size: 0.88rem; }
  .cmp-who { display: block; color: var(--hay-light); font-size: 0.72rem; margin-bottom: 2px; }
}
@media (max-width: 640px) {
  .cmp[data-n="3"] .cmp-val, .cmp[data-n="4"] .cmp-val { display: flex; gap: 10px; align-items: baseline; }
  .cmp[data-n="3"] .cmp-who, .cmp[data-n="4"] .cmp-who { flex: 0 0 34%; margin: 0; }
}

/* Mòbil: ☰ a l'esquerra, grups més separats i idioma plegat */
.menu-group-title { display: none; }
@media (max-width: 760px) {
  .topbar .menu-toggle { order: -1; }
  .topbar .brand { margin-right: auto; }
  .menu .dd { border-top: 1px solid rgba(200,146,42,0.15); margin-top: 10px; padding-top: 4px; }
  .menu .menu-langs .menu-group-title { display: block; font-size: 0.82rem; font-weight: 500; color: var(--muted); padding: 14px 4px 4px; }
  .menu .menu-langs .lang-toggle {
    pointer-events: auto; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
    width: 100%; padding: 10px 12px; font-size: 0.92rem; color: var(--cream); border-radius: 8px;
  }
  .menu .menu-langs .lang-toggle small { color: var(--hay-light); font-size: 0.8rem; }
  .menu .menu-langs .dd-panel { display: none; }
  .menu .menu-langs.open .dd-panel { display: block; }
  .menu .menu-langs.open .lang-toggle small { visibility: hidden; }
}

.mo-home video { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 14px; background: #000; display: block; }

/* Avís de la web (configurable a l'admin) */
.site-banner { padding: 10px 16px; text-align: center; font-size: 0.95rem; line-height: 1.45;
  background: rgba(200, 146, 42, 0.18); color: var(--cream); border-bottom: 1px solid rgba(200, 146, 42, 0.35); }
.site-banner-dol { background: rgba(245, 237, 224, 0.08); border-bottom-color: rgba(245, 237, 224, 0.18); }
.site-banner-alerta { background: rgba(190, 60, 40, 0.35); border-bottom-color: rgba(190, 60, 40, 0.6); }
/* Gallines en record */
.hens-memorial { margin-top: 36px; }
.hen-card-memorial img, .hen-card-memorial .hen-avatar { filter: grayscale(1); opacity: 0.85; }
.hen-page-memorial .hen-photo { filter: grayscale(0.6); }
.hen-memorial-note { padding: 12px 16px; border-left: 3px solid var(--muted); background: rgba(245, 237, 224, 0.05);
  border-radius: 0 10px 10px 0; color: var(--cream); }

.tl-nights { margin-top: 32px; }

/* Ara mateix al galliner (portada) */
.now-box { margin: 18px 0 8px; padding: 16px 18px; border-radius: 14px;
  background: rgba(200, 146, 42, 0.07); border: 1px solid rgba(200, 146, 42, 0.22); }
.now-box h2 { margin: 0 0 6px; font-size: 1.15rem; }
.now-box p { margin: 4px 0; }
.now-state { font-size: 1.02rem; color: var(--cream); }
.now-weather { color: rgba(245, 237, 224, 0.75); font-size: 0.93rem; }
/* Diari */
.diary-month h2 { margin-top: 26px; }
.diary-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.diary-card { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--cream);
  border-radius: 12px; overflow: hidden; background: rgba(245, 237, 224, 0.04); border: 1px solid rgba(200, 146, 42, 0.18);
  padding-bottom: 8px; transition: border-color 0.2s, background 0.2s; }
.diary-card:hover { border-color: rgba(200, 146, 42, 0.45); background: rgba(200, 146, 42, 0.07); }
.diary-card img, .diary-noimg { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: #1c120a; }
.diary-noimg { display: grid; place-items: center; font-size: 2rem; }
.diary-date { padding: 0 10px; font-weight: 600; }
.diary-icons { padding: 0 10px; font-size: 0.85rem; color: rgba(245, 237, 224, 0.7); }
.diary-nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; margin: 8px 0 18px; }
.diary-part { margin-top: 26px; }

/* Navegació entre clips: anterior a l'esquerra, més nou a la dreta */
.clip-nav .clip-nav-next { margin-left: auto; }

/* Alertes de nit al diari */
.night-alerts { margin-top: 12px; padding: 12px 16px; border-radius: 12px;
  background: rgba(245, 237, 224, 0.04); border: 1px solid rgba(200, 146, 42, 0.18); }
.night-alerts h3 { margin: 0 0 6px; font-size: 1rem; }
.night-alerts ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 8px; }
.night-alerts li { padding: 3px 10px; border-radius: 999px; background: rgba(200, 146, 42, 0.14);
  font-family: 'DM Mono', monospace; font-size: 0.85rem; }
