.sandbox-section {
    margin-bottom: 1.8rem;
}

.sandbox-title {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    font-size: var(--h5-text-section-title);
    font-weight: var(--h5-fw-heavy);
    margin-bottom: 0.9rem;
    text-shadow: 0 4px 10px rgba(128, 32, 0, 0.16);
}

.sandbox-title-icon {
    width: 1.4rem;
    height: 1.4rem;
    display: block;
    flex: 0 0 auto;
    object-fit: contain;
}

.sandbox-card {
    background-color: rgba(255, 255, 255, 0.94);
    color: #333;
    text-decoration: none;
    border-radius: 1rem;
    padding: 0.85rem;
    display: flex;
    align-items: stretch;
    gap: 0.8rem;
    box-shadow: 0 12px 24px rgba(116, 31, 5, 0.12);
    margin-bottom: 0.95rem;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sandbox-card:active {
    transform: scale(0.992);
    box-shadow: 0 10px 20px rgba(116, 31, 5, 0.14);
}

.sandbox-media {
    flex: 0 0 6.5rem;
    width: 6.5rem;
    height: 6.5rem;
    align-self: flex-start;
    aspect-ratio: 1 / 1;
    border-radius: 0.8rem;
    overflow: hidden;
    background: rgba(238, 242, 250, 0.9);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.sandbox-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sandbox-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
    min-height: 6.5rem;
    padding: 0.06rem 0;
}

.sandbox-body {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    min-width: 0;
}

.sandbox-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.sandbox-meta {
    flex: 1;
    min-width: 0;
}

.sandbox-name {
    font-size: var(--h5-text-card-title);
    font-weight: var(--h5-fw-bold);
    line-height: var(--h5-lh-tight);
    margin-bottom: 0.28rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sandbox-time,
.sandbox-location {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    font-size: var(--h5-text-meta);
    line-height: 1.42;
    color: #666;
    margin-bottom: 0.24rem;
    overflow: hidden;
}

.sandbox-time span,
.sandbox-location span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sandbox-line-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 1px 1px rgba(170, 89, 83, 0.08));
}

.sandbox-footer {
    --sandbox-participant-avatar-size: 24px;
    --sandbox-participant-padding-y: 0.34rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.58rem;
    flex-wrap: nowrap;
    margin-top: auto;
    padding-top: 0.55rem;
}

.sandbox-footer a {
    flex: 0 0 auto;
    text-decoration: none;
}

.sandbox-participants {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 0 1 auto;
    min-width: 0;
    font-size: var(--h5-text-participants);
    line-height: 1;
    color: #de8f83;
    background: rgba(238, 168, 156, 0.38);
    border-radius: 0.78rem;
    padding: var(--sandbox-participant-padding-y) 0.52rem;
    white-space: nowrap;
}

.participants-avatars {
    display: flex;
    margin-right: 4px;
}

.participants-avatars span,
.participants-avatar-image {
    width: var(--sandbox-participant-avatar-size);
    height: var(--sandbox-participant-avatar-size);
    border-radius: 50%;
    background-color: #f0f0f0;
    border: 2px solid #fff;
    margin-left: -8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.participants-avatar-image {
    display: block;
    object-fit: cover;
    flex: 0 0 auto;
}

.sandbox-signup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: calc(var(--sandbox-participant-avatar-size) + (var(--sandbox-participant-padding-y) * 2));
    padding: 0 0.7rem;
    border-radius: 0.75rem;
    background: #ff7a6c;
    box-shadow: 0 8px 18px rgba(255, 122, 108, 0.22);
}

.sandbox-signup-badge {
    width: 4.8rem;
    max-width: 20vw;
    display: block;
    object-fit: contain;
}

.sandbox-status {
    display: none;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

.sandbox-status-badge {
    width: 6.2rem;
    max-width: 25vw;
    display: block;
    object-fit: contain;
}

.loading {
    color: #fff;
    font-size: var(--h5-fs-base);
    text-align: center;
    padding: 1.25rem;
}

.error {
    color: #ff6b6b;
    font-size: var(--h5-fs-md);
    text-align: center;
    padding: 1.25rem;
}

.sandbox-list-state {
    padding: 1.25rem 0.5rem;
    text-align: center;
    font-size: 0.98rem;
    line-height: 1.6;
}

.sandbox-list-state.is-loading {
    color: #fff;
}

.sandbox-list-state.is-empty,
.sandbox-list-state.is-error {
    color: #ffdfd9;
}

@media (max-width: 430px) {
    .sandbox-card {
        padding: 0.8rem;
        gap: 0.72rem;
    }

    .sandbox-media {
        flex-basis: 5.85rem;
        width: 5.85rem;
        height: 5.85rem;
    }

    .sandbox-info {
        min-height: 5.85rem;
    }

    .sandbox-participants {
        padding: 0.3rem 0.48rem;
    }

    .sandbox-signup-badge {
        width: 4.5rem;
        max-width: 20vw;
    }

    .sandbox-status-badge {
        width: 5.7rem;
        max-width: 24vw;
    }
}

@media (max-width: 390px) {
    .sandbox-card {
        padding: 0.75rem;
        gap: 0.65rem;
    }

    .sandbox-media {
        flex-basis: 5.45rem;
        width: 5.45rem;
        height: 5.45rem;
    }

    .sandbox-info {
        min-height: 5.45rem;
    }

    .sandbox-footer {
        --sandbox-participant-avatar-size: 20px;
        --sandbox-participant-padding-y: 0.28rem;
    }

    .sandbox-signup {
        padding: 0 0.62rem;
    }

    .sandbox-participants {
        padding: var(--sandbox-participant-padding-y) 0.42rem;
    }

    .sandbox-signup-badge {
        width: 4.3rem;
        max-width: 19vw;
    }

    .sandbox-status-badge {
        width: 5.45rem;
        max-width: 24vw;
    }

    .participants-avatars span,
    .participants-avatar-image {
        margin-left: -6px;
    }
}

@media (max-width: 360px) {
    .sandbox-card {
        padding: 0.68rem;
        gap: 0.55rem;
    }

    .sandbox-media {
        flex-basis: 4.95rem;
        width: 4.95rem;
        height: 4.95rem;
    }

    .sandbox-info {
        min-height: 4.95rem;
    }

    .sandbox-head {
        gap: 0.4rem;
    }

    .sandbox-name {
        margin-bottom: 0.3rem;
    }

    .sandbox-footer {
        --sandbox-participant-avatar-size: 18px;
        --sandbox-participant-padding-y: 0.24rem;
    }

    .sandbox-participants {
        gap: 3px;
        padding: var(--sandbox-participant-padding-y) 0.38rem;
    }

    .sandbox-signup {
        padding: 0 0.56rem;
    }

    .sandbox-signup-badge {
        width: 3.95rem;
        max-width: 18vw;
    }

    .sandbox-status-badge {
        width: 5rem;
        max-width: 23vw;
    }

    .participants-avatars span,
    .participants-avatar-image {
        margin-left: -5px;
    }
}
