/* Super 8 Family Archive – Vintage Stylesheet */

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

body {
  background-color: #f5e6c8;
  color: #3a2510;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17px;
  line-height: 1.75;
}

a {
  color: #7a5230;
  text-decoration: underline;
}

a:hover {
  color: #4a2e10;
}

/* ─── Header ─────────────────────────────────────── */

header {
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  border-bottom: 2px solid #c9a96e;
  background: linear-gradient(to bottom, #ede0c0, #f5e6c8);
}

header h1 {
  font-size: 2.4rem;
  letter-spacing: 0.04em;
  color: #5a3515;
  margin-bottom: 0.5rem;
}

header p.intro {
  max-width: 640px;
  margin: 0 auto;
  font-style: italic;
  color: #7a5a30;
  font-size: 1rem;
}

/* ─── Grid ────────────────────────────────────────── */

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 640px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ─── Card ────────────────────────────────────────── */

.card {
  background: #fdf6e3;
  border: 1px solid #d4b483;
  border-radius: 6px;
  box-shadow: 3px 4px 14px rgba(90, 50, 10, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: 4px 6px 20px rgba(90, 50, 10, 0.25);
}

/* ─── Thumbnail area ──────────────────────────────── */

.thumbnail-wrap {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #2a1a0a;
}

.thumbnail-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: sepia(60%) contrast(0.9);
  transition: filter 0.35s ease, transform 0.35s ease;
}

.thumbnail-wrap:hover img {
  filter: sepia(0%) contrast(1);
  transform: scale(1.03);
}

.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.play-btn svg {
  width: 56px;
  height: 56px;
  opacity: 0.85;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6));
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.thumbnail-wrap:hover .play-btn svg {
  opacity: 1;
  transform: scale(1.1);
}

/* Year badge */
.year-badge {
  position: absolute;
  bottom: 8px;
  left: 10px;
  background: rgba(58, 37, 16, 0.82);
  color: #f5e6c8;
  font-size: 0.78rem;
  font-weight: bold;
  letter-spacing: 0.12em;
  padding: 2px 8px;
  border-radius: 3px;
  pointer-events: none;
}

/* ─── Embed iframe ────────────────────────────────── */

.embed-wrap {
  display: none;
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.embed-wrap iframe,
.embed-wrap > div {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.embed-wrap.active {
  display: block;
}

.thumbnail-wrap.hidden {
  display: none;
}

.yt-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 120px;
  background: #1a0f05;
  color: #f5e6c8;
  font-family: Georgia, serif;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s ease;
}

.yt-fallback:hover {
  background: #2a1a0a;
  color: #fff;
}

/* ─── Card body ───────────────────────────────────── */

.card-body {
  padding: 1rem 1.1rem 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.card-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: #4a2e10;
  line-height: 1.3;
}

/* Meta pills */
.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  background: #ede0c0;
  border: 1px solid #c9a96e;
  border-radius: 20px;
  padding: 1px 10px;
  font-size: 0.78rem;
  color: #6a4520;
}

/* People list */
.people {
  font-size: 0.82rem;
  color: #7a5230;
  font-style: italic;
}

.people span {
  display: inline-block;
  margin-right: 0.4em;
}

.people span::after {
  content: '·';
  margin-left: 0.4em;
}

.people span:last-child::after {
  content: '';
}

/* Story text */
.story {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #3a2510;
  border-top: 1px dashed #c9a96e;
  padding-top: 0.6rem;
  margin-top: 0.2rem;
}

.story p {
  margin-bottom: 0.6em;
}

.story p:last-child {
  margin-bottom: 0;
}

/* ─── Empty state ─────────────────────────────────── */

.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: #8a6a40;
  font-style: italic;
}

/* ─── Footer ──────────────────────────────────────── */

footer {
  text-align: center;
  padding: 1.5rem;
  border-top: 1px solid #c9a96e;
  font-size: 0.78rem;
  color: #9a7a50;
  font-style: italic;
}
