/* Section styling */
.section {
    padding-top: 60px; /* Consistent top padding with other pages */
}

/* Performances grid */
.performances-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    padding: var(--spacing-md) 0;
}

.performance-item {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.performance-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.performance-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.performance-details {
    padding: var(--spacing-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.performance-details h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    text-shadow: var(--heading-shadow);
}

.performance-date {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--spacing-xs);
    text-shadow: var(--text-shadow);
}

.performance-venue {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-sm);
    text-shadow: var(--text-shadow);
}

.credits {
    margin-top: auto;
    padding-top: var(--spacing-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-shadow: var(--text-shadow);
}

.credits p {
    margin: var(--spacing-xs) 0;
    line-height: 1.4;
    text-shadow: var(--text-shadow);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .performances-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: var(--spacing-md);
    }

    .performance-item img {
        height: 200px;
    }

    .performance-details {
        padding: var(--spacing-sm);
    }

    .performance-details h3 {
        font-size: 1.1rem;
    }
}

/* 展开/收起按钮 */
.expand-btn {
    background: none;
    border: none;
    color: #bbbbbb;
    font-size: 0.8rem;
    font-weight: bold;
    text-align: left;
    padding: 0;
    margin: var(--spacing-xs) 0;
    cursor: pointer;
    box-shadow: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out, color 0.2s ease-in-out;
    outline: none;
    display: inline-block;
}
.performance-item:hover .expand-btn,
.expand-btn[aria-expanded="true"] {
    opacity: 1;
    pointer-events: auto;
}
.expand-btn:hover {
    color: #ffffff;
}
/* 演出/装置描述 */
.performance-description {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
    opacity: 0;
    pointer-events: none;
}
.performance-description.expanded {
    max-height: 1000px;
    opacity: 1;
    pointer-events: auto;
}

/* Style for paragraphs within the description */
.performance-description p {
    font-size: 0.95rem; /* Match music.css */
    line-height: 1.5;   /* Match music.css */
    margin-bottom: var(--spacing-sm); /* Consistent spacing */
    color: rgba(255, 255, 255, 0.9); /* Consistent color */
    text-shadow: var(--text-shadow); /* Consistent shadow */
}

/* Ensure last paragraph doesn't have extra bottom margin */
.performance-description p:last-child {
    margin-bottom: 0;
}

/* Override style specifically for paragraphs within .credits */
.performance-description .credits p {
    font-size: 0.85rem; /* Restore smaller font size */
    color: rgba(255, 255, 255, 0.6); /* Restore dimmer color */
    line-height: 1.4; /* Maintain specific line height if needed */
    margin: var(--spacing-xs) 0; /* Restore specific margin */
    /* text-shadow is likely inherited or already set correctly */
}

/* Performance Links */
.performance-links {
    display: flex;
    gap: 18px;
    margin-top: var(--spacing-xs); /* Add some top margin */
    margin-bottom: var(--spacing-xs); /* Ensure consistent spacing before button */
    align-items: center;
}

.performance-links a {
    color: #bbbbbb;
    /* Set a smaller base font size for the link text */
    font-size: 0.9rem; 
    transition: color 0.2s;
    text-decoration: none;
    display: inline-flex; /* Helps alignment */
    align-items: center;
}

.performance-links a:hover {
    color: #fff;
}

/* Apply uniform size to all SVG icons within the link with high specificity */
.performances-grid .performance-item .performance-details .performance-links a svg {
    /* font-size might not directly control SVG size, use width/height */
    width: 1.6rem;  /* Set explicit width */
    height: 1.6rem; /* Set explicit height */
    vertical-align: middle; 
    margin-right: 5px; /* Consistent spacing */
    display: inline-block; 
    /* Ensure the color is inherited or set */
    fill: currentColor; /* Makes SVG color match the link color */
}

/* Remove the old i selector rule */
/* 
.performances-grid .performance-item .performance-details .performance-links a i {
    font-size: 1.6rem; 
    vertical-align: middle; 
    margin-right: 5px; 
    display: inline-block; 
}
*/ 