:root {
  --bg: #10172a;
  --card: #18213a;
  --card-2: #212d4a;
  --text: #f8fafc;
  --muted: #b8c2d6;
  --yellow: #ffd84a;
  --blue: #79c7ff;
  --line: rgba(255,255,255,.12);
  --shadow: 0 24px 80px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(121,199,255,.28), transparent 35rem),
    radial-gradient(circle at bottom right, rgba(255,216,74,.18), transparent 32rem),
    var(--bg);
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  padding: 28px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 800;
}

h1 {
  margin: 0;
  font-size: clamp(2.1rem, 7vw, 5rem);
  line-height: .95;
  letter-spacing: -.06em;
}

.tagline { margin: 12px 0 0; color: var(--muted); font-size: 1.1rem; }

.hero-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.hero-links a {
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.07);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: .9rem;
  font-weight: 800;
}

.hero-links a:hover { background: rgba(255,255,255,.12); }

.date-card {
  border-radius: 22px;
  background: var(--yellow);
  color: #172033;
  padding: 18px 22px;
  min-width: 170px;
  text-align: center;
  font-weight: 900;
  font-size: 1.35rem;
  box-shadow: 0 14px 35px rgba(0,0,0,.25);
}

.share-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.06);
  box-shadow: 0 18px 60px rgba(0,0,0,.20);
}

.share-panel h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  letter-spacing: -.02em;
}

.share-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.share-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.share-actions button {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--yellow);
  color: #111827;
  font-weight: 900;
  cursor: pointer;
}

.share-actions button:nth-child(n+2) {
  background: rgba(255,255,255,.10);
  color: var(--text);
  border: 1px solid var(--line);
}

.share-actions button:hover { filter: brightness(1.08); }
.share-status {
  grid-column: 1 / -1;
  min-height: 1.2em;
  color: var(--blue) !important;
  font-weight: 800;
}

.slots {
  display: grid;
  gap: 18px;
}

.card {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(260px, 42%) 1fr;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(145deg, var(--card), var(--card-2));
  box-shadow: var(--shadow);
}

.card:first-child {
  grid-template-columns: minmax(320px, 48%) 1fr;
}

.image-wrap {
  min-height: 240px;
  background:
    linear-gradient(135deg, rgba(255,216,74,.22), rgba(121,199,255,.14)),
    #111827;
  display: grid;
  place-items: center;
}

.image-wrap img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  display: block;
}

.no-image {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  font-weight: 800;
}

.card-body { padding: 26px; }

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.slot-label,
.anniversary {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: .82rem;
  font-weight: 800;
}

.slot-label { background: rgba(121,199,255,.18); color: var(--blue); }
.anniversary { background: rgba(255,216,74,.18); color: var(--yellow); }

.title {
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -.04em;
}

.episode-line,
.reason,
.summary { color: var(--muted); }
.episode-line { margin: 0 0 10px; font-weight: 700; }
.reason { margin: 0 0 14px; }
.summary { margin: 0 0 18px; line-height: 1.55; }

.rating-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--text);
  font-weight: 750;
  margin-bottom: 18px;
}

.rating-pill {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  border-radius: 999px;
  padding: 8px 11px;
}

.links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.links a {
  color: #111827;
  background: var(--yellow);
  text-decoration: none;
  font-weight: 900;
  border-radius: 999px;
  padding: 10px 14px;
}

.links a.secondary {
  color: var(--text);
  background: rgba(255,255,255,.09);
  border: 1px solid var(--line);
}

.nearby {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255,255,255,.06);
  padding: 28px;
  box-shadow: var(--shadow);
}

.nearby h2 { margin-top: 0; }
.nearby-list { display: grid; gap: 12px; }
.nearby-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: rgba(0,0,0,.16);
}
.nearby-item strong { color: var(--yellow); }
.hidden { display: none; }

footer {
  margin-top: 30px;
  padding: 18px 4px 0;
  color: var(--muted);
  font-size: .92rem;
}
footer a { color: var(--blue); }

@media (max-width: 780px) {
  .hero { grid-template-columns: 1fr; align-items: start; }
  .date-card { width: fit-content; }
  .share-panel { grid-template-columns: 1fr; }
  .share-actions { justify-content: flex-start; }
  .card, .card:first-child { grid-template-columns: 1fr; }
  .image-wrap, .image-wrap img { min-height: 210px; }
}


/* Per-card sharing */
.card-share-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.card-share-actions button {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--yellow);
  color: #111827;
  font-weight: 900;
  cursor: pointer;
}

.card-share-actions button:nth-child(n+2) {
  background: rgba(255,255,255,.10);
  color: var(--text);
  border: 1px solid var(--line);
}

.card-share-actions button:hover { filter: brightness(1.08); }

.card .share-status {
  min-height: 1.2em;
  margin: 8px 0 0;
  color: var(--blue) !important;
  font-weight: 800;
}

.slot-label { display: none; }
