/* Practice date grid – 4 cols so dates are readable */
.info-grid-4-dates {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

/* Practice date grid – 8 cols so dates are readable */
.info-grid-8-dates {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 不再使用 16 欄網格，但保留類別避免舊樣式衝突 */
.info-grid-16-dates {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (max-width: 600px) {
    .info-grid-4-dates {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Practice date chip (replaces raw circle text) */
.practice-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px;
    font-weight: 700;
    line-height: 1.4;
    border-radius: 10px;
    font-size: 0.9em;
    width: 100%;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
}

.practice-chip .chip-month {
    font-size: 0.65em;
    opacity: 0.85;
    letter-spacing: 0.5px;
}

.practice-chip .chip-day {
    font-size: 1.15em;
}

.practice-month-group {
    padding-bottom: 4px;
    border-bottom: 1px solid #e5e7eb;
}

.practice-month-header {
    font-size: 0.78em;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 4px;
}

.practice-month-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

/* 狀態顏色：缺席深灰、有來深綠、未來淺綠、停練半透明綠、下一次團練會發光 */
.practice-chip.circle-absent {
    background: #888;
    border: 1px solid #cbd5e1;
    color: #475569;
}

.practice-chip.circle-attended {
    background: #16a34a;
    border: 1px solid #15803d;
    color: #ecfdf5;
}

.practice-chip.circle-attended.circle-today {
    background: #facc15;
    border-color: #eab308;
    color: #78350f;
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.6);
}

.practice-chip.circle-upcoming,
.practice-chip.circle-upcoming-far {
    background: #bbf7d0;
    border: 1px solid #16a34a;
    color: #166534;
}

.practice-chip.circle-upcoming-soon {
    animation: practicePulse 1.2s ease-in-out infinite;
}

.practice-chip.circle-upcoming-next {
    animation: practiceGlow 1.1s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.8);
}

.practice-chip.circle-paused {
    background: rgba(34, 197, 94, 0.08);
    border: 1px dashed #16a34a;
    color: #166534;
    opacity: 0.7;
}

.practice-chip.practice-placeholder {
    background: transparent;
    border: 1px dashed #e2e8f0;
    color: transparent;
}

@keyframes practicePulse {
    0% {
        transform: translateY(0);
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
    }

    50% {
        transform: translateY(-1px);
        box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.0);
    }

    100% {
        transform: translateY(0);
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.0);
    }
}

@keyframes practiceGlow {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.8);
    }

    50% {
        transform: scale(1.06);
        box-shadow: 0 0 12px 4px rgba(22, 163, 74, 0.4);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.0);
    }
}

.sheet-music-label {
    font-weight: 700;
    color: var(--primary);
    font-size: 1em;
}

/* Event announcement card */
.event-card img {
    width: 100%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 8px;
}

/* Hide broken event image gracefully */
.event-card img[src="#"],
.event-card img:not([src]) {
    display: none;
}

.event-card .info-label {
    font-size: 1em;
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
}

.count-play {
    background: linear-gradient(135deg, #ffffff 0%, #E67E22 100%);
    color: #000;
    border-radius: initial;
}

.count-play {
    background: linear-gradient(135deg, #ffffff 0%, var(--primary) 100%);
    color: #000;
    border-radius: initial;
}