/* @import ./components/posters.css */
/* ─── Posters slideshow ──────────────────────────────────────────────── */

.posters-wrapper {
    background: #fff;
}

.posters {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 480px;
    background: #000;
    overflow: hidden;
}

.posters-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.poster {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease-in-out;
    color: #fff;
    text-decoration: none;
}

.poster.is-active {
    opacity: 1;
    pointer-events: auto;
}

.poster-image {
    position: absolute;
    left: 26%;
    right: 0;
    top: 0;
    bottom: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.poster-wedge {
    position: absolute;
    left: 26%;
    top: 0;
    width: 13%;
    height: 100%;
    background: #000;
    clip-path: polygon(0 0, 100% 0, 0 100%);
    pointer-events: none;
    z-index: 1;
}

.poster-panel {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 26%;
    background: #000;
    padding: 6vh 3vw 5vh 3vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    z-index: 2;
}

.poster-meta {
    margin-bottom: 2rem;
    font-size: 0.875rem;
    line-height: 1.6;
    letter-spacing: 0.05em;
}

.poster-date {
    font-weight: 600;
}

.poster-place {
    opacity: 0.85;
    font-weight: 500;
}

.poster-title {
    font-size: clamp(1.75rem, 3.5vw, 3rem);
    line-height: 1.1;
    font-weight: 700;
    margin: 0 0 1rem;
}

/* Length-bucket scaler — bucket class is set in partials/posters.twig.
   Mirrors the .spectacle-hero-title rules, scaled to the smaller poster
   panel. Each tier shrinks the font and relaxes line-height. */
.poster-title.is-medium {
    font-size: clamp(1.5rem, 2.8vw, 2.4rem);
    line-height: 1.15;
}
.poster-title.is-long {
    font-size: clamp(1.25rem, 2.3vw, 2rem);
    line-height: 1.2;
}
.poster-title.is-very-long {
    font-size: clamp(1rem, 1.9vw, 1.6rem);
    line-height: 1.25;
}

.poster-subtitle {
    font-size: 1rem;
    line-height: 1.4;
    opacity: 0.85;
    margin-bottom: 1.5rem;
    max-width: 90%;
}

.poster-author {
    font-size: 0.875rem;
    line-height: 1.4;
    opacity: 0.85;
    margin-bottom: 1.5rem;
}

.poster-tag-premiere {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: #ff5252;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.poster-actions {
    margin-top: 1rem;
}

.btn-buy {
    display: inline-block;
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
    padding: 0.85rem 1.75rem;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.2s, color 0.2s;
}

.btn-buy:hover {
    background: #fff;
    color: #000;
}

/* Pager dots */
.posters-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 0;
    background: #fff;
}

.poster-dot {
    position: relative;
    width: 12px;
    height: 12px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #d0d0d0;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.15s ease, background-color 0.2s ease;
}

.poster-dot:hover {
    transform: scale(1.25);
    background: #999;
}

.poster-dot:active {
    transform: scale(0.85);
    transition-duration: 0.05s;
}

.poster-dot:focus-visible {
    outline: 2px solid #000;
    outline-offset: 3px;
}

.poster-dot-progress {
    position: absolute;
    inset: 0;
    background: #000;
    border-radius: 50%;
    transform: scale(0);
    transform-origin: center;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.poster-dot.is-active .poster-dot-progress {
    transform: scale(1);
}

.poster-dot.is-clicked::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid #000;
    animation: dot-ripple 0.5s ease-out;
    pointer-events: none;
}

@keyframes dot-ripple {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2.5); opacity: 0; }
}

@media (max-width: 768px) {
    .posters { height: auto; min-height: 0; }
    .poster {
        position: relative;
        display: none;
    }
    .poster.is-active {
        display: block;
    }
    .poster-image {
        position: relative;
        height: 50vh;
        clip-path: none;
        inset: auto;
    }
    /* The diagonal wedge only makes sense in the side-by-side desktop
       layout — hide it once the poster stacks into two rows. */
    .poster-wedge {
        display: none;
    }
    .poster-panel {
        position: relative;
        width: 100%;
        padding: 2rem 1.5rem;
    }
}
/* @import ./components/day-strip.css */
/* ─── Day strip ──────────────────────────────────────────────────────── */

.day-strip-wrapper {
    background: #fff;
    position: relative;
}

/* Playbill panel — popover, anchored above the strip */
.day-playbill {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    background: #fff;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12);
    z-index: 10;

    transform: translateY(0);
    opacity: 1;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.day-playbill.is-hidden {
    transform: translateY(8px);
    opacity: 0;
    pointer-events: none;
}

.day-playbill-inner {
    display: flex;
    align-items: stretch;
    min-height: 8rem;
}

/* Left column: date + Афиша button */
.day-playbill-date {
    flex: 0 0 200px;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-right: 1px solid #f0f0f0;
}

.day-playbill-date-num {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
}

.day-playbill-date-weekday {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: #666;
    margin-top: 0.4rem;
    margin-bottom: 1.25rem;
}

.day-playbill-all {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid #000;
    color: #000;
    background: #fff;
    transition: background 0.2s, color 0.2s;
    margin-top: auto;  /* push to bottom of date column */
}

.day-playbill-all:hover {
    background: #000;
    color: #fff;
}

/* Right column: list of performance cards */
.day-playbill-list {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Empty-day state */
.day-playbill-empty,
.day-playbill-error,
.day-playbill-loading {
    flex: 1;
    color: #d40000;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Each performance card */
.playbill-item {
    display: block;
    padding: 1.5rem 2rem;
    color: #000;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s ease, color 0.15s ease;
}

.playbill-item:last-child {
    border-bottom: none;
}

.playbill-item:hover {
    background: #000;
    color: #fff;
}

.playbill-item-meta {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: inherit;
    opacity: 0.85;
    margin-bottom: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: baseline;
}

.playbill-item-sep {
    opacity: 0.5;
}

.playbill-item-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.playbill-item-subtitle {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0.85;
}

.playbill-item-author {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ─── Day strip itself ───────────────────────────────────────────────── */

.day-strip {
    background: #000;
    color: #fff;
    display: flex;
    align-items: stretch;
    position: relative;
}

.day-strip-nav {
    background: #000;
    color: #fff;
    border: none;
    padding: 0 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}

.day-strip-nav:hover {
    background: #1a1a1a;
}

.day-strip-track {
    display: flex;
    flex: 1;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.day-strip-track::-webkit-scrollbar {
    display: none;
}

.day-cell {
    flex: 0 0 auto;
    min-width: 160px;
    padding: 1.5rem 1.5rem;
    background: transparent;
    color: #fff;
    border: none;
    cursor: pointer;
    text-align: center;
    scroll-snap-align: start;
    border-right: 1px solid #1a1a1a;
    transition: background 0.2s;
    position: relative;
}

.day-cell:hover {
    background: #1a1a1a;
}

.day-cell.day-cell-empty {
    color: #555;
}

.day-cell.is-active {
    background: #d40000;
    color: #fff;
}

.day-cell.is-active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #fff;  /* white triangle pointing down into the red */
}

.day-cell-weekday {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.day-cell-date {
    font-size: 1.5rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .day-playbill-inner {
        flex-direction: column;
    }
    .day-playbill-date {
        flex: 0 0 auto;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.5rem;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
    }
    .day-playbill-date-weekday {
        margin: 0;
    }
    .day-playbill-all {
        margin: 0;
    }
    .day-cell { min-width: 100px; padding: 1rem; }
    .day-cell-date { font-size: 1.125rem; }
    .playbill-item { padding: 1rem 1.5rem; }
    .playbill-item-title { font-size: 1.125rem; }
}
/* @import ./components/card-carousel.css */
/* ─── Card carousel section ──────────────────────────────────────────── */

.card-carousel {
    padding: 3rem 0 4rem;
    margin: 0 2rem;
    background: #fff;
}

.card-carousel-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.card-carousel-nav {
    display: flex;
    gap: 0.5rem;
}

.card-carousel-prev,
.card-carousel-next {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s, color 0.2s;
}

.card-carousel-prev:hover,
.card-carousel-next:hover {
    color: #666;
}

.card-carousel-prev.is-disabled,
.card-carousel-next.is-disabled {
    opacity: 0.25;
    pointer-events: none;
}

.card-carousel-title {
	margin: 0;
	text-align: center;
	font-size: 1.45rem;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.card-carousel-see-all {
    font-size: 0.85rem;
}

.card-carousel-see-all:hover {
    color: #FFF;
}

/* ─── Track + cards ──────────────────────────────────────────────────── */

.card-carousel-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    cursor: grab;
}

.card-carousel-track:active {
    cursor: grabbing;
}

.card-carousel-track::-webkit-scrollbar {
    display: none;
}

.perf-card {
    flex: 0 0 calc((100% - 4rem) / 5);  /* 5 visible at desktop (4 gaps × 1rem) */
    scroll-snap-align: start;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.perf-card:hover {
    background-color: #f9f9f9;
}

.perf-card-link {
    display: flex;
    flex-direction: column;
    color: #000;
    text-decoration: none;
    flex: 1;
}

/* Thumbnail with fixed heights at breakpoints (matches original) */
.perf-card-thumb {
    width: 100%;
    height: 214px;
    background-size: cover;
    background-position: center;
    background-color: #f5f5f5;
}

.perf-card-thumb-empty {
    background: linear-gradient(135deg, #f5f5f5 25%, #eee 25%, #eee 50%, #f5f5f5 50%, #f5f5f5 75%, #eee 75%);
    background-size: 20px 20px;
}

@media (min-width: 1280px) {
    .perf-card-thumb { height: 270px; }
}

@media (min-width: 1600px) {
    .perf-card-thumb { height: 340px; }
}

.perf-card-body {
    padding: 1rem 0 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.perf-card-meta {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: #000;
}

.perf-card-flag {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #d40000;
    margin-bottom: 0.5rem;
}

.perf-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 0.5rem;
}

.perf-card-subtitle {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #333;
    margin-bottom: 0.5rem;
}

.perf-card-author {
    font-size: 0.85rem;
    color: #000;
    margin-bottom: 1rem;
    margin-top: auto;
}

/* Red buy button */
.perf-card-buy {
    align-self: flex-start;
    background: #d40000;
    color: #fff;
    border: none;
    padding: 0.85rem 1.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.2s;
}

.perf-card-buy:hover {
    background: #b00000;
}

/* Responsive — gradually show fewer cards */
@media (max-width: 1280px) {
    .perf-card {
        flex-basis: calc((100% - 3rem) / 4);
    }
}

@media (max-width: 1024px) {
    .perf-card {
        flex-basis: calc((100% - 2rem) / 3);
    }
}

@media (max-width: 768px) {
    .card-carousel-header {
        padding: 0 1.5rem;
        grid-template-columns: 1fr;
        text-align: center;
    }
    .card-carousel-nav {
        order: 3;
        justify-content: center;
    }
    .card-carousel-see-all {
        order: 2;
    }
    .card-carousel-track {
        padding: 0 1.5rem;
    }
    .perf-card {
        flex-basis: calc((100% - 1rem) / 2);
    }
    .perf-card-thumb { height: 180px; }
}

@media (max-width: 480px) {
    .perf-card {
        flex-basis: 80%;
    }
}
/* @import ./components/news-carousel.css */
.news-carousel {
    padding: 3rem 0 4rem;
    margin: 0 2rem;
}

.news-card {
    flex: 0 0 calc((100% - 5rem) / 6); 
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}

.news-card-link {
    display: flex;
    flex-direction: column;
    color: #000;
    text-decoration: none;
}

.news-card-link:hover .news-card-title {
    color: #666;
}

.news-card-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    background-color: #f5f5f5;
}
.news-card-thumb-empty {
    background: linear-gradient(135deg, #f5f5f5 25%, #eee 25%, #eee 50%, #f5f5f5 50%, #f5f5f5 75%, #eee 75%);
    background-size: 20px 20px;
}

.news-card-body {
    padding: 1rem 0 0;
}

.news-card-date {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 0.5rem;
}

.news-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
    transition: color 0.15s ease;
}

@media (max-width: 1600px) { .news-card { flex-basis: calc((100% - 4rem) / 5); } }
@media (max-width: 1280px) { .news-card { flex-basis: calc((100% - 3rem) / 4); } }
@media (max-width: 1024px) { .news-card { flex-basis: calc((100% - 2rem) / 3); } }
@media (max-width: 768px)  { .news-card { flex-basis: calc((100% - 1rem) / 2); } }
@media (max-width: 480px)  { .news-card { flex-basis: 80%; } }
/* @import ./components/banner-volunteers.css */
.banner-volunteers {
    --banner-height: 120px;
    --banner-accent: #aa1fe8;
    --banner-accent-end: #6000fc;

    position: relative;
    width: 100%;
    min-height: var(--banner-height);
    padding: 1rem 6rem;  /* leave room for the decorative logos */
    overflow: hidden;
    color: #fff;
    text-align: center;
    background: linear-gradient(
        to right,
        var(--banner-accent) 0%,
        var(--banner-accent-end) 100%
    );
}

.banner-volunteers::before,
.banner-volunteers::after {
    content: '';
    position: absolute;
    top: 0;
    width: 73px;
    height: 100%;
    background: url(/images/Logo-Stasik-for-banner.svg) center / contain no-repeat;
    pointer-events: none;
}

.banner-volunteers::before {
    left: -35px;
}

.banner-volunteers::after {
    right: -35px;
    transform: scaleX(-1);  /* mirror so the logo "faces inward" */
}

.banner-volunteers .title {
    font-weight: 300;
    font-size: 2rem;
    line-height: 1.2;
    margin: 0 0 0.5rem;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
}

.banner-volunteers a {
    font-size: 1.5rem;
    text-decoration: underline;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.banner-volunteers a:hover {
    text-decoration: none;
}

@media (max-width: 768px) {
    .banner-volunteers {
        padding: 1rem 4rem;
    }
    .banner-volunteers::before,
    .banner-volunteers::after {
        width: 50px;
    }
    .banner-volunteers::before { left: -20px; }
    .banner-volunteers::after  { right: -20px; }

    .banner-volunteers .title { font-size: 1.25rem; }
    .banner-volunteers a      { font-size: 1rem; }
}