@charset 'utf-8';

/* 공연 상세 전용.
   공연 카드(.perf-grid / .perf-card ...)는 목록·랜딩에서도 쓰므로 common.css 에 있다. */

.perf-detail {
    display: grid;
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
    gap: 44px;
    align-items: start;
}

.perf-detail-poster {
    aspect-ratio: 3 / 4;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
}

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

.perf-detail-poster .poster-title {
    font-size: 1.5rem;
}

.perf-detail-title {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 8px 0 20px;
}

.perf-meta {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
    margin-bottom: 24px;
}

.perf-meta-row {
    display: flex;
    gap: 16px;
    padding: 7px 0;
    font-size: 0.95rem;
}

.perf-meta-row dt {
    width: 84px;
    color: var(--text-dim);
    flex-shrink: 0;
}

.book-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px 24px 24px;
}

.book-box h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.book-row {
    display: flex;
    gap: 14px;
}

.book-row > div {
    flex: 1;
}

.book-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.book-total strong {
    font-size: 1.4rem;
}

@media (max-width: 900px) {
    .perf-detail {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .perf-detail-poster {
        max-width: 320px;
    }

    .perf-detail-title {
        font-size: 1.5rem;
    }

    .book-row {
        flex-direction: column;
        gap: 0;
    }
}
