:root {
  --bg: #f6f0e8;
  --surface: #fffdf9;
  --text: #241c17;
  --muted: #7b6a5c;
  --accent: #9c2b2b;
  --accent-dark: #7d1f1f;
  --border: #e7dacb;
  --radius: 16px;
  --shadow: 0 12px 32px rgba(70, 40, 20, 0.10);
}

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

.landing .loader {
  padding: 56px 20px;
  text-align: center;
  color: var(--muted);
}

.landing .error {
  max-width: 960px;
  margin: 40px auto;
  padding: 16px 20px;
  border: 1px solid #e3b7b7;
  border-radius: 12px;
  background: #fbeaea;
  color: var(--accent-dark);
  text-align: center;
}

.app {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 16px 56px;
}

/* Текущий спектакль */

.current-play {
  position: relative;
  overflow: hidden;
  margin-bottom: 32px;
  border-radius: 22px;
  background: #1f1a17;
  box-shadow: var(--shadow);
}

.current-play__photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 50% 25%;
  opacity: 0.75;
}

.current-play__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(20, 14, 10, 0.92), rgba(20, 14, 10, 0));
  color: #fff;
}

.current-play__label {
  display: inline-block;
  margin-bottom: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.current-play__title {
  margin: 0 0 6px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  line-height: 1.15;
}

.current-play__desc {
  max-width: 56ch;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

/* Репертуар */

.section-title {
  margin: 0 0 14px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.4rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-btn {
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.plays-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.play-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.play-card.is-highlighted {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.play-card__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.play-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px 16px;
}

.play-card__title {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.1rem;
  line-height: 1.25;
}

.play-card__desc {
  flex: 1;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.play-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  padding: 3px 9px;
  border-radius: 999px;
  background: #f1e6d8;
  color: #6d5747;
  font-size: 0.72rem;
}

.btn {
  font: inherit;
  cursor: pointer;
}

.btn--buy {
  width: 100%;
  margin-top: 4px;
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.15s;
}

.btn--buy:hover {
  background: var(--accent-dark);
}

.current-play .btn--buy {
  width: auto;
}

.landing .empty {
  padding: 28px 0;
  color: var(--muted);
  text-align: center;
}

@media (min-width: 720px) {
  .app {
    padding: 28px 24px 72px;
  }

  .current-play__body {
    padding: 28px;
  }
}
