/* Papa's Other Stories: gallery (special/papa/stories.html) and viewer (special/papa/watch.html) */

.ps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 36px 16px;
  margin-top: 40px;
}

.ps-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.ps-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--gray);
  margin-bottom: 12px;
}

.ps-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.ps-card:hover .ps-thumb img { transform: scale(1.03); }

.ps-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0.9;
  transition: opacity 0.2s, background 0.2s;
}

.ps-play::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 16px;
  border-left: 16px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

.ps-card:hover .ps-play { opacity: 1; background: rgba(0, 0, 0, 0.75); }

.ps-length {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 7px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.65);
}

.ps-card h3 {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
}

.ps-card p {
  font-size: 13px;
  font-weight: 300;
  color: #444;
  line-height: 1.6;
  margin-top: 6px;
}

/* Viewer: player on the left, running list of titles on the right */
.ps-viewer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: start;
}

.ps-player {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #000;
}

.ps-player iframe,
.ps-player .ps-soon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.ps-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

.ps-soon span {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.7);
}

.ps-now { margin-top: 20px; }

.ps-now h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.ps-now p {
  font-size: 16px;
  font-weight: 300;
  color: #444;
  line-height: 1.7;
  margin-top: 8px;
}

.ps-list {
  position: sticky;
  top: 24px;
}

/* The label sits above the top of the player; the rule under it lines up with the player's top edge. */
.ps-list-title {
  position: absolute;
  left: 0;
  bottom: 100%;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mid);
}

.ps-list ol {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #e5e5e5;
  max-height: calc(100vh - 240px);
  overscroll-behavior: contain;
  padding-right: 14px;
  overflow-y: auto;
}

.ps-list li { border-bottom: 1px solid #e5e5e5; }

.ps-list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 11px 0;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 400;
  color: var(--mid);
  transition: color 0.2s;
}

.ps-list a:hover { color: var(--black); }

.ps-list a.is-current {
  font-weight: 700;
  color: #000;
}

.ps-list-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.ps-list a.is-current .ps-list-name { font-weight: 700; }

.ps-list-short {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.4;
  font-weight: 300;
  color: #999;
}

.ps-list-min {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 400;
}

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

@media (max-width: 900px) {
  .ps-viewer { grid-template-columns: 1fr; gap: 40px; }
  .ps-list { position: static; }
  .ps-list ol { max-height: none; overflow: visible; padding-right: 0; }
  .ps-list-title { position: static; margin-bottom: 12px; }
  .ps-list a { padding: 15px 0; }
  .ps-player { scroll-margin-top: 72px; }
}

@media (max-width: 560px) {
  .ps-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
}

.ps-now p:empty { display: none; }

/* Landing page cards (special/papa.html): show the photo at its own 4:3 shape instead of the Art page's fixed-height crop,
   and stack on phones so each photo gets the full width. */
.papa-grid .art-card-img { height: auto; aspect-ratio: 4 / 3; }
.papa-grid .art-card-img img { object-position: 30% 25%; }

@media (max-width: 640px) {
  .papa-grid { grid-template-columns: 1fr; gap: 36px; }
}
