.productions-subpanels {
    width: min(980px, calc(100% - 32px));
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 26px;
    margin: 0 auto;
}

.production-section {
    width: 100%;
}

.production-section-title {
    margin: 0 0 10px;
}

.production-subpanel {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    align-items: start;
    gap: 18px;
    margin: 0 0 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--surface);
}

.production-media {
    width: 160px;
    height: 112px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--surface-raised);
}

.production-media img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
    object-fit: contain;
}

.production-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.production-details {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.production-subpanel h2 {
    margin: 0;
    color: var(--text);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.35;
    text-align: left;
}

.production-subpanel p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
    text-align: left;
}

.production-company {
    display: block;
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}

.production-time {
    font-style: italic;
}

.production-description {
    min-width: 0;
    margin-top: 12px;
}

.production-description p {
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.productions-panel {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 20px;
    padding: 18px 10px 24px;
    border-radius: 0;
    background: var(--bg);
    text-align: left;
}

@media (max-width: 600px) {
    .productions-subpanels {
        width: calc(100% - 20px);
        gap: 22px;
    }

    .production-section-title {
        margin-bottom: 8px;
        text-align: left;
    }

    .production-subpanel {
        grid-template-columns: 84px minmax(0, 1fr);
        grid-template-rows: auto auto;
        gap: 10px 12px;
        margin-bottom: 10px;
        padding: 10px;
    }

    .production-media {
        width: 84px;
        height: 84px;
        grid-column: 1;
        grid-row: 1;
    }

    .production-content {
        display: contents;
    }

    .production-details {
        grid-column: 2;
        grid-row: 1;
    }

    .production-description {
        grid-column: 1 / -1;
        grid-row: 2;
        margin-top: 2px;
    }

    .production-subpanel h2 {
        font-size: 16px;
    }

    .production-subpanel p,
    .production-company {
        font-size: 13px;
        line-height: 1.55;
    }

    .productions-panel {
        margin-bottom: 15px;
        padding: 12px 0 18px;
    }
}
