/*
Theme Name:  Everything Theatre
Theme URI:   https://everythingtheatre.net
Author:      Everything Theatre
Author URI:  https://everythingtheatre.net
Description: A minimal black-on-white theme for the 100 Greatest Plays list. Fast, clean, typographic.
Version:     1.0.7
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: everything-theatre
Tags:        minimal, custom-post-types, fast
*/

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 19px; -webkit-text-size-adjust: 100%; }

body {
  font-family: Georgia, 'Times New Roman', Times, serif;
  background: #ffffff;
  color: #111111;
  line-height: 1.6;
  max-width: 1344px;
  margin: 0 auto;
  padding: 0 38px;
}

a { color: #111; }
a:hover { opacity: 0.65; }
img { max-width: 1344px; display: block; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  border-bottom: 2.5px solid #111;
  padding: 31px 0 0;
  margin-bottom: 0;
}

.site-header__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 31px;
  padding-bottom: 31px;
}

.site-header__brand {
  display: flex;
  align-items: flex-end;
  gap: 29px;
  text-decoration: none;
  color: inherit;
}

.site-header__character {
  width: auto;
  height: 140px;
  display: block;
  flex-shrink: 0;
}


.site-header__titles {
  padding-bottom: 7px;
}

.site-header__domain {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #888;
  display: block;
  margin-bottom: 7px;
}

.site-header__name {
  font-family: Georgia, serif;
  font-size: 43px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.5px;
  color: #111;
}

.site-header__yt {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
  padding-bottom: 10px;
}

.yt-btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: #111;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 12px 22px;
  border-radius: 5px;
  text-decoration: none;
  transition: opacity 0.15s;
}

.yt-btn:hover { opacity: 0.8; color: #fff; }

.yt-btn svg { flex-shrink: 0; width: 24px; height: 24px; }

.yt-meta {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  color: #aaa;
}

/* ============================================================
   FILTERS
   ============================================================ */
.plays-filters {
  padding: 19px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 0.5px solid #e0e0e0;
  margin-bottom: 0;
}

.filter-btn {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  padding: 6px 20px;
  border-radius: 24px;
  cursor: pointer;
  border: 0.5px solid #ccc;
  background: transparent;
  color: #555;
  transition: all 0.15s;
  text-transform: capitalize;
}

.filter-btn:hover,
.filter-btn.is-active {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* ============================================================
   PLAY LIST
   ============================================================ */
.plays-list { list-style: none; }

.play-item {
  display: grid;
  grid-template-columns: 56px 150px 1fr;
  gap: 0;
  align-items: start;
  padding: 28px 0;
  border-bottom: 0.5px solid #ebebeb;
  transition: background 0.1s;
}

.play-item:hover {
  background: #fafafa;
  margin: 0 -38px;
  padding-left: 38px;
  padding-right: 38px;
}

.play-item__number {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  color: #bbb;
  letter-spacing: 0.04em;
  padding-top: 6px;
}

.play-item__cover {
  width: 150px;
  height: 210px;
  min-width: 150px;
  min-height: 210px;
  background: #f0f0f0;
  border: 0.5px solid #ddd;
  object-fit: cover;
  object-position: center top;
  display: block;
  flex-shrink: 0;
  overflow: hidden;
}

.play-item__cover-placeholder {
  width: 150px;
  height: 210px;
  min-width: 150px;
  min-height: 210px;
  background: #f2f2f2;
  border: 0.5px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.play-item__body {
  padding-left: 24px;
}

.play-item__title {
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  color: #111;
  margin-bottom: 6px;
  line-height: 1.2;
}

.play-item__meta {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 19px;
  color: #888;
  margin-bottom: 11px;
}

.play-item__meta span + span::before {
  content: ' · ';
  color: #ccc;
}

.play-item__description {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
  color: #555;
  line-height: 1.55;
  margin-bottom: 14px;
}

.play-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.play-item__tag {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  padding: 4px 13px;
  border: 0.5px solid #ccc;
  color: #777;
  text-transform: capitalize;
}

.play-item__tag--genre {
  border-color: #111;
  color: #111;
}

/* ============================================================
   YOUTUBE CTA STRIP
   ============================================================ */
.yt-strip {
  background: #f8f8f8;
  border-top: 0.5px solid #e0e0e0;
  padding: 29px 38px;
  display: flex;
  align-items: center;
  gap: 29px;
  margin: 62px -38px 0;
}

.yt-strip__character {
  width: 50px;
  height: auto;
  flex-shrink: 0;
}

.yt-strip__text h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin-bottom: 6px;
}

.yt-strip__text p {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 19px;
  color: #666;
  line-height: 1.5;
}

.yt-strip__text a {
  color: #111;
  font-weight: 700;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 0.5px solid #e0e0e0;
  padding: 31px 0;
  margin-top: 31px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  color: #aaa;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer a { color: #888; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1032px) {
  body { padding: 0 29px; }

  .site-header__name { font-size: 34px; }
  .site-header__character { width: 86px; }

  .play-item { grid-template-columns: 46px 82px 1fr; }
  .play-item__cover,
  .play-item__cover-placeholder {
    width: 150px;
    height: 210px;
    min-width: 150px;
    min-height: 210px;
  }
  .play-item__title { font-size: 23px; }
  .play-item__description { font-size: 18px; }
  .play-item__meta { font-size: 17px; }

  .yt-strip { margin: 48px -29px 0; padding: 24px 29px; }
  .site-header__yt .yt-meta { display: none; }
}

@media (max-width: 672px) {
  body { padding: 0 29px; }

  .site-header__inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .site-header__yt { align-items: flex-start; }
  .site-header__name { font-size: 29px; }
  .site-header__character { width: 70px; }

  .play-item { grid-template-columns: 36px 65px 1fr; }
  .play-item__cover,
  .play-item__cover-placeholder {
    width: 150px;
    height: 210px;
    min-width: 150px;
    min-height: 210px;
  }
  .play-item__title { font-size: 20px; }
  .play-item__description { font-size: 17px; }
  .play-item__meta { font-size: 16px; }

  .yt-strip { margin: 62px -38px 0; padding: 19px; }
}

/* ============================================================
   SINGLE PLAY PAGE
   ============================================================ */
.single-play__back {
  padding: 20px 0 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}

.single-play__back a {
  color: #888;
  text-decoration: none;
}

.single-play__back a:hover { color: #111; }

.single-play__article {
  padding: 32px 0 48px;
}

.single-play__hero {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 36px;
}

.single-play__cover {
  width: 260px;
  height: 360px;
  min-width: 260px;
  object-fit: cover;
  object-position: center top;
  border: 0.5px solid #ddd;
  display: block;
  flex-shrink: 0;
}

.single-play__info {
  padding-top: 8px;
}

.single-play__rank {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: #bbb;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 10px;
}

.single-play__title {
  font-family: Georgia, serif;
  font-size: 42px;
  font-weight: 700;
  color: #111;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.single-play__meta {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: #888;
  margin-bottom: 16px;
}

.single-play__meta span + span::before {
  content: ' · ';
  color: #ccc;
}

.single-play__author {
  font-weight: 600;
  color: #555;
}

.single-play__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.single-play__excerpt {
  font-family: Georgia, serif;
  font-size: 22px;
  color: #333;
  line-height: 1.5;
  border-left: 3px solid #111;
  padding-left: 20px;
  margin-bottom: 32px;
}

.single-play__content {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  color: #444;
  line-height: 1.7;
  max-width: 680px;
}

.single-play__content p { margin-bottom: 1.2em; }
.single-play__content h2 { font-family: Georgia, serif; font-size: 24px; font-weight: 700; color: #111; margin: 2em 0 0.6em; }
.single-play__content h3 { font-family: Georgia, serif; font-size: 20px; font-weight: 700; color: #111; margin: 1.6em 0 0.5em; }
.single-play__content a { color: #111; }

/* Prev / Next navigation */
.single-play__nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0;
  border-top: 0.5px solid #ebebeb;
  border-bottom: 0.5px solid #ebebeb;
  margin-bottom: 48px;
}

.single-play__nav-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  max-width: 45%;
}

.single-play__nav-link--next { text-align: right; margin-left: auto; }

.single-play__nav-label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: #aaa;
  letter-spacing: 0.04em;
}

.single-play__nav-title {
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  color: #111;
  line-height: 1.2;
}

.single-play__nav-link:hover .single-play__nav-title { opacity: 0.6; }

/* Link styles on the list page */
.play-item__title a {
  text-decoration: none;
  color: inherit;
}

.play-item__title a:hover { opacity: 0.65; }

.play-item__cover-link {
  display: block;
  flex-shrink: 0;
}

.play-item__cover-link:hover { opacity: 0.85; }

/* Responsive — single play */
@media (max-width: 680px) {
  .single-play__hero { flex-direction: column; gap: 24px; }
  .single-play__cover { width: 100%; height: auto; min-width: 0; max-width: 260px; }
  .single-play__title { font-size: 30px; }
  .single-play__excerpt { font-size: 18px; }
}

/* ============================================================
   PLAY BUTTONS — YouTube & Amazon
   ============================================================ */
.play-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.single-play__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.play-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 4px;
  text-decoration: none;
  transition: opacity 0.15s;
  white-space: nowrap;
}

.play-btn:hover { opacity: 0.8; }

.play-btn--yt {
  background: #111;
  color: #fff;
}

.play-btn--buy {
  background: transparent;
  color: #111;
  border: 1.5px solid #111;
}

/* Larger versions for the single play page */
.play-btn--large {
  font-size: 16px;
  padding: 11px 20px;
  gap: 8px;
}

.play-btn--large svg {
  width: 18px;
  height: 18px;
}

/* ============================================================
   YOUTUBE LIGHTBOX OVERLAY
   ============================================================ */
#et-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
}

#et-lightbox.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

#et-lightbox__backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.92);
  z-index: 0;
}

#et-lightbox__box {
  position: relative;
  z-index: 1;
  width: min(860px, 92vw);
  background: #000;
}

#et-lightbox__close {
  position: absolute;
  top: -46px;
  right: 0;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.15s;
  z-index: 2;
}

#et-lightbox__close:hover { opacity: 1; }

#et-lightbox__video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: visible;
  z-index: 1;
}

#et-lightbox__iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  z-index: 1;
}
