/* Vacation Picture Share Site — Salou 2026 */
:root {
  --navy: #1d3557;
  --red: #d62828;
  --orange: #f77f00;
  --yellow: #fcbf49;
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --line: #e6e2dc;
  --bg: #fdfcf9;
  --card: #ffffff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}
header.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #274b7a 55%, #2a6f97 100%);
  color: #fff;
  padding: 40px 20px 32px;
  text-align: center;
}
.hero .logo-chip {
  display: inline-block;
  background: #fff;
  border-radius: 18px;
  padding: 10px 14px;
  box-shadow: 0 4px 18px rgba(0,0,0,.25);
  margin-bottom: 18px;
}
.hero .logo-chip img { display: block; width: 150px; height: 150px; object-fit: contain; }
.hero h1 {
  margin: 0 auto 10px;
  max-width: 900px;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  line-height: 1.2;
  font-weight: 800;
}
.hero p.sub { margin: 0 auto 16px; max-width: 720px; color: #dbe7f3; font-size: 1.05rem; }
.counts { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.counts span {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  padding: 6px 16px;
  font-weight: 700;
  font-size: .95rem;
}
.counts b { color: var(--yellow); }
main { max-width: 1180px; margin: 0 auto; padding: 0 16px 60px; }
section { margin-top: 36px; }
section h2 {
  font-size: 1.35rem;
  color: var(--navy);
  border-bottom: 3px solid var(--orange);
  padding-bottom: 6px;
  margin: 0 0 16px;
}
.results { display: grid; gap: 10px; }
.result {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 12px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 5px solid var(--navy);
  border-radius: 10px;
  padding: 12px 16px;
}
.result.win { border-left-color: #2a9d3f; }
.result.loss { border-left-color: var(--red); }
.result .date { font-weight: 700; color: var(--navy); font-size: .95rem; }
.result .match { font-size: 1rem; }
.result .match small { display: block; color: var(--muted); font-size: .85rem; }
.result .score { font-size: 1.25rem; font-weight: 800; color: var(--navy); white-space: nowrap; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.timeline li:last-child { border-bottom: none; }
.timeline .day { font-weight: 800; color: var(--navy); }
.timeline .day small { display: block; font-weight: 600; color: var(--muted); font-size: .8rem; }
.filters {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  margin: 8px 0 18px;
}
.filters button {
  font: inherit; font-weight: 700; cursor: pointer;
  border: 2px solid var(--navy); background: #fff; color: var(--navy);
  border-radius: 999px; padding: 8px 18px;
}
.filters button.active { background: var(--navy); color: #fff; }
.filters .shown { margin-left: auto; color: var(--muted); font-size: .95rem; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.card .thumb { position: relative; aspect-ratio: 4 / 3; background: #eee; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .thumb .play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.18);
}
.card .thumb .play i {
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(29,53,87,.92); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-style: normal; font-size: 22px; padding-left: 4px;
}
.card .thumb .dur {
  position: absolute; right: 8px; bottom: 8px;
  background: rgba(0,0,0,.75); color: #fff; font-size: .8rem; font-weight: 700;
  border-radius: 6px; padding: 2px 7px;
}
.card .meta { padding: 10px 12px; }
.card .meta .t { font-weight: 700; font-size: .95rem; line-height: 1.3; }
.card .meta .n { color: var(--muted); font-size: .8rem; margin-top: 2px; }
.card .meta .c { color: var(--muted); font-size: .85rem; margin-top: 2px; }
/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(10, 14, 24, .92);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: 1000px; width: 100%; text-align: center; }
.lightbox img, .lightbox video {
  max-width: 100%; max-height: 76vh; border-radius: 8px;
  background: #000; box-shadow: 0 10px 40px rgba(0,0,0,.5);
}
.lightbox figcaption { color: #fff; margin-top: 12px; }
.lightbox figcaption .t { font-weight: 800; font-size: 1.1rem; }
.lightbox figcaption .c { color: #cdd7e4; font-size: .95rem; }
.lightbox figcaption .n { color: #8fa3bb; font-size: .85rem; margin-top: 2px; }
.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.16); color: #fff; border: none;
  width: 48px; height: 48px; border-radius: 50%; font-size: 26px; cursor: pointer;
}
.lb-btn:hover { background: rgba(255,255,255,.32); }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lb-close {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,.16); color: #fff; border: none;
  width: 44px; height: 44px; border-radius: 50%; font-size: 22px; cursor: pointer;
}
.lb-close:hover { background: rgba(255,255,255,.32); }
footer {
  text-align: center; color: var(--muted); font-size: .9rem;
  padding: 28px 16px 40px; border-top: 1px solid var(--line);
}
@media (max-width: 640px) {
  .result { grid-template-columns: 1fr; gap: 4px; }
  .result .score { font-size: 1.1rem; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  .lb-btn { width: 40px; height: 40px; }
}
