/* Read Play Love – shared styles for all play pages and the hub */

body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  background-color: #fff8f0;
  color: #333;
}

header {
  background-color: #fdd835;
  color: #da4444;
  padding: 1rem 2rem;
  text-align: center;
  font-family: 'Playfair Display', serif;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
  margin: 0;
  color: #da4444;
  font-size: 2rem;
}

header .tagline {
  display: block;
  font-size: 1.1rem;
  font-weight: normal;
}

h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #da4444;
}

main {
  max-width: 1280px;
  margin: 2rem auto;
  padding: 0 1rem;
}

a {
  color: #da4444;
}

/* ---- Livestream frames ---- */

/* Two-up grid for the two performance nights (stacks on narrow screens) */
.streams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.stream-block h3 {
  text-align: center;
  color: #da4444;
  font-family: 'Playfair Display', serif;
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.stream-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.stream-wrapper iframe,
.stream-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
}

/* Placeholder shown where a stream/link is not yet available */
.placeholder {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 8px;
  background: repeating-linear-gradient(
    45deg,
    #fff3cd,
    #fff3cd 20px,
    #ffe9a8 20px,
    #ffe9a8 40px
  );
  box-shadow: inset 0 0 0 2px #e0c067;
}

.placeholder span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #6a4e42;
  font-weight: 600;
  padding: 0 1rem;
}

.description {
  margin-top: 2rem;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.6;
}

.notice {
  margin: 1rem auto;
  text-align: center;
  background: #fff3cd;
  color: #6a4e42;
  padding: 1rem;
  border-radius: 6px;
  max-width: 700px;
  font-size: 1rem;
}

.back-link {
  display: inline-block;
  margin: 1.5rem 0 0;
  font-size: 0.95rem;
}

/* ---- Hub (index) ---- */

.hub-intro {
  text-align: center;
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.section-label {
  text-align: center;
  font-family: 'Playfair Display', serif;
  color: #da4444;
  margin: 2.5rem 0 1rem;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.play-card {
  display: block;
  background: #fff;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: #333;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  border-top: 5px solid #fdd835;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.play-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.play-card h3 {
  margin: 0 0 0.35rem;
  color: #da4444;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
}

.play-card .dates {
  font-size: 0.95rem;
  color: #6a4e42;
}

.play-card .status {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: #fff3cd;
  color: #6a4e42;
}

.play-card.upcoming {
  border-top-color: #9cc6e0;
  opacity: 0.95;
}

footer {
  text-align: center;
  padding: 2rem;
  background-color: #fff3cd;
  color: #6a4e42;
  font-size: 0.9rem;
}
