/* memory.css */
.memory-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    width: 100%;
    padding: 0 4px;
    box-sizing: border-box;
}

.memory-slot {
    position: relative;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 4px 2px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 60px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s;
    text-align: center;
}

.memory-slot:hover {
    border-color: var(--idol-color, #ff4d8d);
    box-shadow: 0 2px 6px var(--idol-color-transparent, rgba(255, 77, 141, 0.15));
}

.memory-slot-line {
    font-size: 0.75rem;
    color: #666;
    line-height: 1.2;
    margin: 1px 0;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.memory-slot-line.title {
    font-weight: bold;
    color: #333;
    font-size: 0.7rem;
}

.memory-slot-badge {
    position: absolute;
    top: -7px;
    left: -4px;
    background: rgba(0, 0, 0, 0.65);
    color: white;
    font-size: 0.45rem;
    font-weight: bold;
    padding: 0px 5px;
    border-radius: 10px;
    white-space: nowrap;
    z-index: 5;
    pointer-events: none;
    letter-spacing: -0.2px;
    backdrop-filter: blur(2px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

@media (min-width: 769px) {
    .memory-slot-badge {
        top: -8px;
        font-size: 0.5rem;
        padding: 0px 6px;
    }
}

@media (max-width: 768px) {
    .memory-slot-line {
        font-size: 0.65rem;
    }
    .memory-slot-line.title {
        font-size: 0.6rem;
    }
}
