.screenings-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px 20px 20px;
}

.screenings-hero {
    margin-bottom: 40px;
}

.hero-content {
    text-align: center;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin: 0 0 15px 0;
    color: var(--color-text);
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.hero-text__subnav {
    margin: 18px 0 0 0;
    font-size: 1rem;
}

.hero-text__subnav-link {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

.hero-text__subnav-link:hover {
    text-decoration: underline;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: stretch;
    margin-top: 20px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    box-sizing: border-box;
    transition: background 0.2s ease, transform 0.15s ease;
}

.hero-actions .btn:hover {
    transform: translateY(-1px);
}

.hero-actions .btn-primary {
    background: var(--color-primary);
    color: white;
    /* Match .btn-secondary border box so paired buttons align in height. */
    border: 1px solid var(--color-primary);
}

.hero-actions .btn-secondary {
    background: var(--color-bg-secondary);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.hero-actions .btn-icon {
    font-size: 1.1rem;
    font-weight: 700;
}

.screenings-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.screening-card {
    background: var(--color-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    cursor: pointer;
}

.screening-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.screening-poster {
    width: 100%;
    height: 450px;
    overflow: hidden;
    background: var(--color-bg-secondary);
}

.screening-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Open-vote card: mosaic of candidate posters (2–5 tiles) */
.screening-poster--collage {
    display: grid;
    gap: 3px;
    padding: 0;
    background: #0f0f12;
}

.open-vote-collage__tile {
    position: relative;
    min-height: 0;
    overflow: hidden;
    background: var(--color-bg-secondary);
}

.open-vote-collage__tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.open-vote-collage__placeholder {
    width: 100%;
    height: 100%;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.5rem, 6vw, 2.25rem);
    opacity: 0.65;
}

/* Single option (unexpected data); still show one hero tile */
.open-vote-collage--tiles-1 {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

/* 2 across */
.open-vote-collage--tiles-2 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
}

/* 2 top + 1 wide bottom */
.open-vote-collage--tiles-3 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.open-vote-collage--tiles-3 .open-vote-collage__tile:nth-child(3) {
    grid-column: 1 / -1;
}

/* 2×2 */
.open-vote-collage--tiles-4 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

/* 3 on top row + 2 on bottom (6-column track) */
.open-vote-collage--tiles-5 {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: 1fr 1fr;
}

.open-vote-collage--tiles-5 .open-vote-collage__tile:nth-child(1),
.open-vote-collage--tiles-5 .open-vote-collage__tile:nth-child(2),
.open-vote-collage--tiles-5 .open-vote-collage__tile:nth-child(3) {
    grid-column: span 2;
}

.open-vote-collage--tiles-5 .open-vote-collage__tile:nth-child(4),
.open-vote-collage--tiles-5 .open-vote-collage__tile:nth-child(5) {
    grid-column: span 3;
}

.screening-poster--open-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        145deg,
        rgba(99, 102, 241, 0.2) 0%,
        var(--color-bg-secondary) 45%,
        rgba(99, 102, 241, 0.12) 100%
    );
}

.screening-poster--open-placeholder__icon {
    font-size: 3rem;
    line-height: 1;
    opacity: 0.85;
}

.screening-card__title {
    line-height: 1.25;
}

.screening-card__subtitle {
    display: block;
    margin-top: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.screening-info {
    padding: 20px;
}

.screening-info h3 {
    font-size: 1.5rem;
    margin: 0 0 10px 0;
    color: var(--color-text);
}

.screening-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.screening-rating .stars {
    color: #f5c518;
    letter-spacing: 1px;
}

.screening-rating-text {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.screening-datetime {
    margin: 0 0 15px 0;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.4;
}

.screening-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.genre-tag {
    background: var(--color-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.screening-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.screening-attendance {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.attendance-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.attendance-badge--attending {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
}

.attendance-badge--maybe {
    background: rgba(255, 193, 7, 0.15);
    color: #e0a800;
}

.no-screenings {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-secondary);
    font-size: 1.1rem;
}

/* Open screening badges */
.screening-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.screening-badge--vote-open {
    background: rgba(99, 102, 241, 0.15);
    color: #6366f1;
}

.screening-badge--vote-closed {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
}

.screening-badge--winner {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
}

.screening-card__badges--timeline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.screening-badge--active {
    background: rgba(59, 130, 246, 0.18);
    color: #2563eb;
}

.screening-badge--closed {
    background: rgba(107, 114, 128, 0.18);
    color: #4b5563;
}

/* Top suggestions */
.top-suggestions {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}

.top-suggestions__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.top-suggestions__header h2 {
    font-size: 1.6rem;
    margin: 0;
    color: var(--color-text);
}

.top-suggestions__see-all {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

.top-suggestions__see-all:hover {
    text-decoration: underline;
}

.top-suggestions__cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.top-suggestion-card {
    display: flex;
    gap: 16px;
    background: var(--color-card-bg);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.top-suggestion-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.top-suggestion-card__poster {
    display: block;
    width: 70px;
    height: 105px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-bg-secondary);
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
}

.top-suggestion-card__poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-suggestion-card__poster--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.top-suggestion-card__info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.top-suggestion-card__info h3 {
    font-size: 1.1rem;
    margin: 0 0 6px 0;
    color: var(--color-text);
    line-height: 1.3;
}

.top-suggestion-card__title-link {
    color: var(--color-primary);
    text-decoration: none;
}

.top-suggestion-card__title-link:hover {
    text-decoration: underline;
}

.top-suggestion-card__year {
    font-weight: 400;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.top-suggestion-card__votes {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}

.top-suggestion-card__votes svg {
    color: #28a745;
}

/* Trailer + schedule share one horizontal row on the card. */
.top-suggestion-card__actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    min-width: 0;
}

.top-suggestion-card__schedule {
    display: inline-block;
    margin-top: 0;
    padding: 5px 14px;
    background: var(--color-primary);
    color: white;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
    align-self: flex-start;
}

.top-suggestion-card__schedule:hover {
    background: var(--color-primary-dark, var(--color-primary));
}

.top-suggestion-card__trailer {
    margin-bottom: 0;
    flex-shrink: 0;
}

.top-suggestion-card .trailer-cta__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--color-surface, #fff);
    background: var(--color-primary);
    border: 2px solid var(--color-primary);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.top-suggestion-card .trailer-cta__link:hover {
    background: var(--color-primary-dark, var(--color-primary));
    border-color: var(--color-primary-dark, var(--color-primary));
    color: var(--color-surface, #fff);
    text-decoration: none;
}

.top-suggestion-card .trailer-cta__link:active {
    transform: scale(0.98);
}

@media (max-width: 768px) {
    .screenings-container {
        /* Fixed header + subpage logo row; safe-area for notched phones */
        padding: max(7.75rem, calc(env(safe-area-inset-top, 0px) + 6.25rem)) 16px 30px 16px;
    }

    .screenings-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-actions {
        flex-wrap: nowrap;
        gap: 10px;
        max-width: none;
        padding: 0 2px;
    }

    .hero-actions .btn {
        flex: 1 1 0;
        min-width: 0;
        padding: 10px 12px;
        font-size: clamp(0.78rem, 2.9vw, 0.9rem);
        line-height: 1.2;
    }

    .hero-actions .btn-icon {
        flex-shrink: 0;
    }

    .hero-actions .btn:only-child {
        flex: 0 1 auto;
        max-width: min(100%, 320px);
    }

    .screening-poster {
        height: 300px;
    }

    .top-suggestions {
        margin-top: 40px;
        padding-top: 24px;
    }

    .top-suggestions__cards {
        grid-template-columns: 1fr;
    }

    .top-suggestions__header h2 {
        font-size: 1.3rem;
    }

    .top-suggestion-card {
        padding: 12px;
        gap: 12px;
    }

    .top-suggestion-card__poster {
        width: 55px;
        height: 82px;
    }

    .screening-badge {
        font-size: 0.75rem;
        padding: 3px 10px;
    }
}
